Built files from Bizgaze WebServer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

walkthrough.js 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. var Unibase;
  2. (function (Unibase) {
  3. let Themes;
  4. (function (Themes) {
  5. let Compact;
  6. (function (Compact) {
  7. let Components;
  8. (function (Components) {
  9. class WalkThrough {
  10. constructor() {
  11. this.dashboardObj = {
  12. des: 'You can view your Dashboard Groups and Dashboards here',
  13. title: "DashBoard"
  14. };
  15. this.reportObj = {
  16. des: 'You can view your Report Groups and Reports list here',
  17. title: "Reports",
  18. };
  19. this.appObj = {
  20. des: 'You can view your App Groups and Apps list here',
  21. title: "Apps",
  22. };
  23. this.dateObj = {
  24. des: 'Select the default date range that need to applied for Dashboards and Reports',
  25. title: "Date Filter",
  26. };
  27. this.branchObj = {
  28. des: 'You can switch your Branch ,Fisical Year and Data access related information',
  29. title: "Branch",
  30. };
  31. this.notificationsObj = {
  32. des: 'You can view your related notifcations list and clear them',
  33. title: "Notifications",
  34. };
  35. this.taskObj = {
  36. des: 'You can view your related tasks and manage them',
  37. title: "Tasks",
  38. };
  39. this.profileObj = {
  40. des: 'To view your Profile info, Application Help ,Themes and User Logoff',
  41. title: "Profile",
  42. };
  43. this.dashboardSettingsObj = {
  44. des: 'You can configure dashboard layout here and manage dashboard permissions to the users',
  45. title: "Dashbaord Settings",
  46. };
  47. this.commonFiltersObj = {
  48. des: 'You can select filters to be applied to a Dashbaord',
  49. title: "Common filters",
  50. };
  51. }
  52. LeftNavigation() {
  53. let steps = [{
  54. element: '[data-buttontype="nav-button-dashboards"]',
  55. title: this.dashboardObj.title,
  56. description: this.dashboardObj.des,
  57. position: "bottom"
  58. },
  59. {
  60. element: '[data-buttontype="nav-button-apps"]',
  61. title: this.appObj.title,
  62. description: this.appObj.des,
  63. position: "bottom"
  64. },
  65. {
  66. element: '[data-buttontype="nav-button-reports"]',
  67. title: this.reportObj.title,
  68. description: this.reportObj.des,
  69. position: "bottom"
  70. },
  71. {
  72. element: '[title="Dashboard Settings"]',
  73. title: this.dashboardSettingsObj.title,
  74. description: this.dashboardSettingsObj.des,
  75. position: "left"
  76. },
  77. {
  78. element: '[title="Common Filters"]',
  79. title: this.commonFiltersObj.title,
  80. description: this.commonFiltersObj.des,
  81. position: "left"
  82. },
  83. {
  84. element: '#right_side_menu_userdetails',
  85. title: this.profileObj.title,
  86. description: this.profileObj.des,
  87. position: "left"
  88. },
  89. {
  90. element: '#navCmnDateFilterDp',
  91. title: this.dateObj.title,
  92. description: this.dateObj.des,
  93. position: "left"
  94. },
  95. {
  96. element: '.usertheme',
  97. title: 'Theme',
  98. description: 'You can choose your theme here.',
  99. position: "left"
  100. },
  101. {
  102. element: '.right-side-menu-content-wrap #lnk_nav_changebranch',
  103. title: this.branchObj.title,
  104. description: this.branchObj.des,
  105. position: "left"
  106. },
  107. {
  108. element: '[title="Notifications"]',
  109. title: this.notificationsObj.title,
  110. description: this.notificationsObj.des,
  111. position: "left"
  112. },
  113. {
  114. element: '[title="Tasks"]',
  115. title: this.taskObj.title,
  116. description: this.taskObj.des,
  117. position: "left"
  118. },
  119. ];
  120. return steps;
  121. }
  122. TopNavigation() {
  123. let steps = [{
  124. element: '.nav-dashboards-item',
  125. title: this.dashboardObj.title,
  126. description: this.dashboardObj.des,
  127. position: "bottom"
  128. },
  129. {
  130. element: '.nav-apps-item',
  131. title: this.appObj.title,
  132. description: this.appObj.des,
  133. position: "bottom"
  134. },
  135. {
  136. element: '.nav-reports-item',
  137. title: this.reportObj.title,
  138. description: this.reportObj.des,
  139. position: "bottom"
  140. },
  141. {
  142. element: '#report-daterange_navCmnDateFilter-0',
  143. title: this.dateObj.title,
  144. description: this.dateObj.des,
  145. position: "left"
  146. },
  147. {
  148. element: '#lnk_nav_changebranch',
  149. title: this.branchObj.title,
  150. description: this.branchObj.des,
  151. position: "left"
  152. },
  153. {
  154. element: '[title="Notifications"]',
  155. title: this.notificationsObj.title,
  156. description: this.notificationsObj.des,
  157. position: "left"
  158. },
  159. {
  160. element: '[title="Tasks"]',
  161. title: this.taskObj.title,
  162. description: this.taskObj.des,
  163. position: "left"
  164. },
  165. {
  166. element: '#nav-profile-dropdown',
  167. title: this.profileObj.title,
  168. description: this.profileObj.des,
  169. position: "left"
  170. },
  171. {
  172. element: '[title="Dashboard Settings"]',
  173. title: this.dashboardSettingsObj.title,
  174. description: this.dashboardSettingsObj.des,
  175. position: "left"
  176. },
  177. {
  178. element: '[title="Common Filters"]',
  179. title: this.commonFiltersObj.title,
  180. description: this.commonFiltersObj.des,
  181. position: "left"
  182. },
  183. ];
  184. return steps;
  185. }
  186. TopandLeftNavigation() {
  187. let steps = [{
  188. element: '.nav-dashboards-item',
  189. title: this.dashboardObj.title,
  190. description: this.dashboardObj.des,
  191. position: "bottom"
  192. },
  193. {
  194. element: '.nav-apps-item',
  195. title: this.appObj.title,
  196. description: this.appObj.des,
  197. position: "bottom"
  198. },
  199. {
  200. element: '.nav-reports-item',
  201. title: this.reportObj.title,
  202. description: this.reportObj.des,
  203. position: "bottom"
  204. },
  205. {
  206. element: '#report-daterange_navCmnDateFilter-0',
  207. title: this.dateObj.title,
  208. description: this.dateObj.des,
  209. position: "left"
  210. },
  211. {
  212. element: '#lnk_nav_changebranch',
  213. title: this.branchObj.title,
  214. description: this.branchObj.des,
  215. position: "left"
  216. },
  217. {
  218. element: '[title="Notifications"]',
  219. title: this.notificationsObj.title,
  220. description: this.notificationsObj.des,
  221. position: "left"
  222. },
  223. {
  224. element: '[title="Tasks"]',
  225. title: this.taskObj.title,
  226. description: this.taskObj.des,
  227. position: "left"
  228. },
  229. {
  230. element: '#nav-profile-dropdown',
  231. title: this.profileObj.title,
  232. description: this.profileObj.des,
  233. position: "left"
  234. },
  235. {
  236. element: '[title="Dashboard Settings"]',
  237. title: this.dashboardSettingsObj.title,
  238. description: this.dashboardSettingsObj.des,
  239. position: "left"
  240. },
  241. {
  242. element: '[title="Common Filters"]',
  243. title: this.commonFiltersObj.title,
  244. description: this.commonFiltersObj.des,
  245. position: "left"
  246. },
  247. ];
  248. return steps;
  249. }
  250. app() {
  251. let steps = [{
  252. element: '.report-title-dp-wrapper',
  253. title: "App Report",
  254. description: 'To View connected reports of the app.',
  255. position: "right"
  256. },
  257. {
  258. element: '#ListSearch',
  259. title: "Search",
  260. description: 'You can search the app realted information by entering keywords.',
  261. position: "right"
  262. },
  263. {
  264. element: '[title="Dynamic Filters"]',
  265. title: "Dynamic Filters",
  266. description: 'You can apply filters here to load relevant data.',
  267. position: "right"
  268. },
  269. {
  270. element: '.create-btn',
  271. title: "Create",
  272. description: 'You can click here to open new creation form.',
  273. position: "left"
  274. },
  275. {
  276. element: '[title="More"]',
  277. title: "App More",
  278. description: 'To open connected child Apps and Manage more settings of the app like notifications, permissions, Stages and other settings.',
  279. position: "left"
  280. }
  281. ];
  282. steps = steps.filter(function (e) {
  283. return $(e.element).is(":visible") == true;
  284. });
  285. return steps;
  286. }
  287. details() {
  288. let steps = [
  289. {
  290. element: '.btnChangeStage',
  291. title: "Stages",
  292. description: 'You can click here to update stage of the record.',
  293. position: "left"
  294. },
  295. {
  296. element: '.Detail_Configurations_' + Unibase.Platform.Helpers.NavigationHelper.Instance().getLastContainerId() + ' a[onclick*="loadForm("]',
  297. title: "Edit",
  298. description: 'You can click here to edit the current record.',
  299. position: "left"
  300. },
  301. {
  302. element: '.select.div_configurationsetting',
  303. title: "More",
  304. description: 'You can click here to view more options.',
  305. position: "left"
  306. },
  307. {
  308. element: '#layout-detail-tabs',
  309. title: "Tabs",
  310. description: 'You can switch tabs here to view relevant data.',
  311. position: "bottom"
  312. },
  313. {
  314. element: '#detail-close',
  315. title: "Back",
  316. description: 'You can click here to load previous page.',
  317. position: "right"
  318. }
  319. ];
  320. steps = steps.filter(function (e) {
  321. return $(e.element).is(":visible") == true;
  322. });
  323. return steps;
  324. }
  325. static Instance() {
  326. if (this._instance === undefined)
  327. this._instance = new Unibase.Themes.Compact.Components.WalkThrough;
  328. return this._instance;
  329. }
  330. }
  331. Components.WalkThrough = WalkThrough;
  332. })(Components = Compact.Components || (Compact.Components = {}));
  333. })(Compact = Themes.Compact || (Themes.Compact = {}));
  334. })(Themes = Unibase.Themes || (Unibase.Themes = {}));
  335. })(Unibase || (Unibase = {}));