@soyfri/template 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (416) hide show
  1. package/README.md +39 -0
  2. package/dist/assets/ts/_utils/DomHelpers.d.ts +29 -0
  3. package/dist/assets/ts/_utils/DomHelpers.js +380 -0
  4. package/dist/assets/ts/_utils/ElementAnimateUtil.d.ts +10 -0
  5. package/dist/assets/ts/_utils/ElementAnimateUtil.js +90 -0
  6. package/dist/assets/ts/_utils/EventHandlerUtil.d.ts +24 -0
  7. package/dist/assets/ts/_utils/EventHandlerUtil.js +105 -0
  8. package/dist/assets/ts/_utils/_DOMEventHandlerUtil.d.ts +6 -0
  9. package/dist/assets/ts/_utils/_DOMEventHandlerUtil.js +55 -0
  10. package/dist/assets/ts/_utils/_DataUtil.d.ts +9 -0
  11. package/dist/assets/ts/_utils/_DataUtil.js +66 -0
  12. package/dist/assets/ts/_utils/_ElementStyleUtil.d.ts +5 -0
  13. package/dist/assets/ts/_utils/_ElementStyleUtil.js +23 -0
  14. package/dist/assets/ts/_utils/_TypesHelpers.d.ts +10 -0
  15. package/dist/assets/ts/_utils/_TypesHelpers.js +54 -0
  16. package/dist/assets/ts/_utils/index.d.ts +9 -0
  17. package/dist/assets/ts/_utils/index.js +28 -0
  18. package/dist/assets/ts/_utils/models/OffsetModel.d.ts +4 -0
  19. package/dist/assets/ts/_utils/models/OffsetModel.js +2 -0
  20. package/dist/assets/ts/_utils/models/ViewPortModel.d.ts +4 -0
  21. package/dist/assets/ts/_utils/models/ViewPortModel.js +2 -0
  22. package/dist/assets/ts/components/MenuComponent.d.ts +88 -0
  23. package/dist/assets/ts/components/MenuComponent.js +857 -0
  24. package/dist/assets/ts/components/SearchComponent.d.ts +66 -0
  25. package/dist/assets/ts/components/SearchComponent.js +362 -0
  26. package/dist/assets/ts/components/_CookieComponent.d.ts +25 -0
  27. package/dist/assets/ts/components/_CookieComponent.js +66 -0
  28. package/dist/assets/ts/components/_DrawerComponent.d.ts +57 -0
  29. package/dist/assets/ts/components/_DrawerComponent.js +325 -0
  30. package/dist/assets/ts/components/_FeedbackComponent.d.ts +32 -0
  31. package/dist/assets/ts/components/_FeedbackComponent.js +113 -0
  32. package/dist/assets/ts/components/_ImageInputComponent.d.ts +43 -0
  33. package/dist/assets/ts/components/_ImageInputComponent.js +176 -0
  34. package/dist/assets/ts/components/_PasswordMeterComponent.d.ts +54 -0
  35. package/dist/assets/ts/components/_PasswordMeterComponent.js +206 -0
  36. package/dist/assets/ts/components/_ScrollComponent.d.ts +32 -0
  37. package/dist/assets/ts/components/_ScrollComponent.js +262 -0
  38. package/dist/assets/ts/components/_ScrollTopComponent.d.ts +24 -0
  39. package/dist/assets/ts/components/_ScrollTopComponent.js +115 -0
  40. package/dist/assets/ts/components/_StepperComponent.d.ts +52 -0
  41. package/dist/assets/ts/components/_StepperComponent.js +256 -0
  42. package/dist/assets/ts/components/_StickyComponent.d.ts +35 -0
  43. package/dist/assets/ts/components/_StickyComponent.js +239 -0
  44. package/dist/assets/ts/components/_SwapperComponent.d.ts +36 -0
  45. package/dist/assets/ts/components/_SwapperComponent.js +173 -0
  46. package/dist/assets/ts/components/_ToggleComponent.d.ts +36 -0
  47. package/dist/assets/ts/components/_ToggleComponent.js +161 -0
  48. package/dist/assets/ts/components/index.d.ts +13 -0
  49. package/dist/assets/ts/components/index.js +30 -0
  50. package/dist/assets/ts/index.d.ts +2 -0
  51. package/dist/assets/ts/index.js +68 -0
  52. package/dist/assets/ts/layout/ThemeMode.d.ts +20 -0
  53. package/dist/assets/ts/layout/ThemeMode.js +182 -0
  54. package/dist/assets/ts/layout/index.d.ts +1 -0
  55. package/dist/assets/ts/layout/index.js +17 -0
  56. package/dist/helpers/AssetHelpers.d.ts +2 -0
  57. package/dist/helpers/AssetHelpers.js +19 -0
  58. package/dist/helpers/RouterHelpers.d.ts +2 -0
  59. package/dist/helpers/RouterHelpers.js +21 -0
  60. package/dist/helpers/components/KTCard.d.ts +17 -0
  61. package/dist/helpers/components/KTCard.js +19 -0
  62. package/dist/helpers/components/KTCardBody.d.ts +9 -0
  63. package/dist/helpers/components/KTCardBody.js +15 -0
  64. package/dist/helpers/components/KTIcon.d.ts +8 -0
  65. package/dist/helpers/components/KTIcon.js +30 -0
  66. package/dist/helpers/components/KTSVG.d.ts +8 -0
  67. package/dist/helpers/components/KTSVG.js +12 -0
  68. package/dist/helpers/crud-helper/consts.d.ts +4 -0
  69. package/dist/helpers/crud-helper/consts.js +7 -0
  70. package/dist/helpers/crud-helper/helpers.d.ts +14 -0
  71. package/dist/helpers/crud-helper/helpers.js +110 -0
  72. package/dist/helpers/crud-helper/models.d.ts +61 -0
  73. package/dist/helpers/crud-helper/models.js +21 -0
  74. package/dist/helpers/dataExamples.d.ts +37 -0
  75. package/dist/helpers/dataExamples.js +251 -0
  76. package/dist/helpers/icons-config/icons.d.ts +5 -0
  77. package/dist/helpers/icons-config/icons.js +578 -0
  78. package/dist/helpers/index.d.ts +11 -0
  79. package/dist/helpers/index.js +27 -0
  80. package/dist/helpers/react18MigrationHelpers.d.ts +6 -0
  81. package/dist/helpers/react18MigrationHelpers.js +10 -0
  82. package/dist/i18n/Metronici18n.d.ts +6 -0
  83. package/dist/i18n/Metronici18n.js +62 -0
  84. package/dist/i18n/i18nProvider.d.ts +11 -0
  85. package/dist/i18n/i18nProvider.js +31 -0
  86. package/dist/index.d.ts +7 -0
  87. package/dist/index.js +24 -0
  88. package/dist/layout/MasterInit.d.ts +2 -0
  89. package/dist/layout/MasterInit.js +39 -0
  90. package/dist/layout/MasterLayout.d.ts +3 -0
  91. package/dist/layout/MasterLayout.js +40 -0
  92. package/dist/layout/components/content/Content.d.ts +4 -0
  93. package/dist/layout/components/content/Content.js +27 -0
  94. package/dist/layout/components/content/index.d.ts +1 -0
  95. package/dist/layout/components/content/index.js +17 -0
  96. package/dist/layout/components/footer/Footer.d.ts +3 -0
  97. package/dist/layout/components/footer/Footer.js +38 -0
  98. package/dist/layout/components/footer/FooterWrapper.d.ts +3 -0
  99. package/dist/layout/components/footer/FooterWrapper.js +20 -0
  100. package/dist/layout/components/footer/index.d.ts +1 -0
  101. package/dist/layout/components/footer/index.js +17 -0
  102. package/dist/layout/components/header/Header.d.ts +3 -0
  103. package/dist/layout/components/header/Header.js +86 -0
  104. package/dist/layout/components/header/HeaderWrapper.d.ts +2 -0
  105. package/dist/layout/components/header/HeaderWrapper.js +44 -0
  106. package/dist/layout/components/header/Navbar.d.ts +3 -0
  107. package/dist/layout/components/header/Navbar.js +43 -0
  108. package/dist/layout/components/header/header-menus/MegaMenu.d.ts +3 -0
  109. package/dist/layout/components/header/header-menus/MegaMenu.js +74 -0
  110. package/dist/layout/components/header/header-menus/MenuInner.d.ts +2 -0
  111. package/dist/layout/components/header/header-menus/MenuInner.js +50 -0
  112. package/dist/layout/components/header/header-menus/MenuInnerWithSub.d.ts +15 -0
  113. package/dist/layout/components/header/header-menus/MenuInnerWithSub.js +58 -0
  114. package/dist/layout/components/header/header-menus/MenuItem.d.ts +11 -0
  115. package/dist/layout/components/header/header-menus/MenuItem.js +28 -0
  116. package/dist/layout/components/header/header-menus/index.d.ts +1 -0
  117. package/dist/layout/components/header/header-menus/index.js +17 -0
  118. package/dist/layout/components/header/index.d.ts +1 -0
  119. package/dist/layout/components/header/index.js +17 -0
  120. package/dist/layout/components/scroll-top/ScrollTop.d.ts +2 -0
  121. package/dist/layout/components/scroll-top/ScrollTop.js +51 -0
  122. package/dist/layout/components/scroll-top/index.d.ts +1 -0
  123. package/dist/layout/components/scroll-top/index.js +17 -0
  124. package/dist/layout/components/sidebar/Sidebar.d.ts +3 -0
  125. package/dist/layout/components/sidebar/Sidebar.js +133 -0
  126. package/dist/layout/components/sidebar/SidebarFooter.d.ts +3 -0
  127. package/dist/layout/components/sidebar/SidebarFooter.js +18 -0
  128. package/dist/layout/components/sidebar/SidebarLogo.d.ts +7 -0
  129. package/dist/layout/components/sidebar/SidebarLogo.js +54 -0
  130. package/dist/layout/components/sidebar/index.d.ts +1 -0
  131. package/dist/layout/components/sidebar/index.js +17 -0
  132. package/dist/layout/components/sidebar/sidebar-menu/SidebarMenu.d.ts +3 -0
  133. package/dist/layout/components/sidebar/sidebar-menu/SidebarMenu.js +15 -0
  134. package/dist/layout/components/sidebar/sidebar-menu/SidebarMenuItem.d.ts +11 -0
  135. package/dist/layout/components/sidebar/sidebar-menu/SidebarMenuItem.js +31 -0
  136. package/dist/layout/components/sidebar/sidebar-menu/SidebarMenuItemWithSub.d.ts +11 -0
  137. package/dist/layout/components/sidebar/sidebar-menu/SidebarMenuItemWithSub.js +30 -0
  138. package/dist/layout/components/sidebar/sidebar-menu/SidebarMenuMain.d.ts +3 -0
  139. package/dist/layout/components/sidebar/sidebar-menu/SidebarMenuMain.js +63 -0
  140. package/dist/layout/components/toolbar/Toolbar.d.ts +3 -0
  141. package/dist/layout/components/toolbar/Toolbar.js +88 -0
  142. package/dist/layout/components/toolbar/ToolbarWrapper.d.ts +3 -0
  143. package/dist/layout/components/toolbar/ToolbarWrapper.js +34 -0
  144. package/dist/layout/components/toolbar/index.d.ts +1 -0
  145. package/dist/layout/components/toolbar/index.js +17 -0
  146. package/dist/layout/components/toolbar/page-title/PageTitle.d.ts +3 -0
  147. package/dist/layout/components/toolbar/page-title/PageTitle.js +44 -0
  148. package/dist/layout/components/toolbar/page-title/PageTitleWrapper.d.ts +3 -0
  149. package/dist/layout/components/toolbar/page-title/PageTitleWrapper.js +18 -0
  150. package/dist/layout/components/toolbar/page-title/index.d.ts +1 -0
  151. package/dist/layout/components/toolbar/page-title/index.js +17 -0
  152. package/dist/layout/components/toolbar/toolbars/ToolbarAccounting.d.ts +3 -0
  153. package/dist/layout/components/toolbar/toolbars/ToolbarAccounting.js +68 -0
  154. package/dist/layout/components/toolbar/toolbars/ToolbarClassic.d.ts +3 -0
  155. package/dist/layout/components/toolbar/toolbars/ToolbarClassic.js +33 -0
  156. package/dist/layout/components/toolbar/toolbars/ToolbarExtended.d.ts +3 -0
  157. package/dist/layout/components/toolbar/toolbars/ToolbarExtended.js +73 -0
  158. package/dist/layout/components/toolbar/toolbars/ToolbarReports.d.ts +3 -0
  159. package/dist/layout/components/toolbar/toolbars/ToolbarReports.js +59 -0
  160. package/dist/layout/components/toolbar/toolbars/ToolbarSaas.d.ts +3 -0
  161. package/dist/layout/components/toolbar/toolbars/ToolbarSaas.js +59 -0
  162. package/dist/layout/components/toolbar/toolbars/index.d.ts +5 -0
  163. package/dist/layout/components/toolbar/toolbars/index.js +21 -0
  164. package/dist/layout/core/MetronicSplashScreen.d.ts +7 -0
  165. package/dist/layout/core/MetronicSplashScreen.js +78 -0
  166. package/dist/layout/core/PageData.d.ts +25 -0
  167. package/dist/layout/core/PageData.js +96 -0
  168. package/dist/layout/core/_LayoutConfig.d.ts +2 -0
  169. package/dist/layout/core/_LayoutConfig.js +140 -0
  170. package/dist/layout/core/_LayoutProvider.d.ts +17 -0
  171. package/dist/layout/core/_LayoutProvider.js +114 -0
  172. package/dist/layout/core/_LayoutSetup.d.ts +33 -0
  173. package/dist/layout/core/_LayoutSetup.js +218 -0
  174. package/dist/layout/core/_Models.d.ts +247 -0
  175. package/dist/layout/core/_Models.js +2 -0
  176. package/dist/layout/core/index.d.ts +6 -0
  177. package/dist/layout/core/index.js +22 -0
  178. package/dist/layout/index.d.ts +12 -0
  179. package/dist/layout/index.js +33 -0
  180. package/dist/partials/chat/ChatInner.d.ts +6 -0
  181. package/dist/partials/chat/ChatInner.js +114 -0
  182. package/dist/partials/content/activity/Item1.d.ts +3 -0
  183. package/dist/partials/content/activity/Item1.js +50 -0
  184. package/dist/partials/content/activity/Item2.d.ts +3 -0
  185. package/dist/partials/content/activity/Item2.js +23 -0
  186. package/dist/partials/content/activity/Item3.d.ts +3 -0
  187. package/dist/partials/content/activity/Item3.js +40 -0
  188. package/dist/partials/content/activity/Item4.d.ts +3 -0
  189. package/dist/partials/content/activity/Item4.js +31 -0
  190. package/dist/partials/content/activity/Item5.d.ts +3 -0
  191. package/dist/partials/content/activity/Item5.js +40 -0
  192. package/dist/partials/content/activity/Item6.d.ts +3 -0
  193. package/dist/partials/content/activity/Item6.js +27 -0
  194. package/dist/partials/content/activity/Item7.d.ts +3 -0
  195. package/dist/partials/content/activity/Item7.js +31 -0
  196. package/dist/partials/content/activity/Item8.d.ts +3 -0
  197. package/dist/partials/content/activity/Item8.js +26 -0
  198. package/dist/partials/content/activity/index.d.ts +8 -0
  199. package/dist/partials/content/activity/index.js +24 -0
  200. package/dist/partials/content/cards/Card1.d.ts +12 -0
  201. package/dist/partials/content/cards/Card1.js +28 -0
  202. package/dist/partials/content/cards/Card2.d.ts +14 -0
  203. package/dist/partials/content/cards/Card2.js +32 -0
  204. package/dist/partials/content/cards/Card3.d.ts +12 -0
  205. package/dist/partials/content/cards/Card3.js +30 -0
  206. package/dist/partials/content/cards/Card4.d.ts +8 -0
  207. package/dist/partials/content/cards/Card4.js +19 -0
  208. package/dist/partials/content/cards/Card5.d.ts +13 -0
  209. package/dist/partials/content/cards/Card5.js +38 -0
  210. package/dist/partials/content/code-highlight/CodeBlock.d.ts +7 -0
  211. package/dist/partials/content/code-highlight/CodeBlock.js +75 -0
  212. package/dist/partials/content/dropdown/Dropdown1.d.ts +2 -0
  213. package/dist/partials/content/dropdown/Dropdown1.js +41 -0
  214. package/dist/partials/content/dropdown/Dropdown2.d.ts +3 -0
  215. package/dist/partials/content/dropdown/Dropdown2.js +35 -0
  216. package/dist/partials/content/dropdown/Dropdown3.d.ts +3 -0
  217. package/dist/partials/content/dropdown/Dropdown3.js +40 -0
  218. package/dist/partials/content/editor/EditorToolbar.d.ts +58 -0
  219. package/dist/partials/content/editor/EditorToolbar.js +54 -0
  220. package/dist/partials/content/portal/Portal.d.ts +12 -0
  221. package/dist/partials/content/portal/Portal.js +25 -0
  222. package/dist/partials/index.d.ts +22 -0
  223. package/dist/partials/index.js +42 -0
  224. package/dist/partials/layout/InboxCompose.d.ts +7 -0
  225. package/dist/partials/layout/InboxCompose.js +98 -0
  226. package/dist/partials/layout/RightToolbar.d.ts +3 -0
  227. package/dist/partials/layout/RightToolbar.js +18 -0
  228. package/dist/partials/layout/SearchModal.d.ts +7 -0
  229. package/dist/partials/layout/SearchModal.js +62 -0
  230. package/dist/partials/layout/activity-drawer/ActivityDrawer.d.ts +3 -0
  231. package/dist/partials/layout/activity-drawer/ActivityDrawer.js +40 -0
  232. package/dist/partials/layout/create-app/CreateApp.d.ts +3 -0
  233. package/dist/partials/layout/create-app/CreateApp.js +11 -0
  234. package/dist/partials/layout/drawer-messenger/DrawerMessenger.d.ts +3 -0
  235. package/dist/partials/layout/drawer-messenger/DrawerMessenger.js +26 -0
  236. package/dist/partials/layout/header-menus/HeaderNotificationsMenu.d.ts +3 -0
  237. package/dist/partials/layout/header-menus/HeaderNotificationsMenu.js +58 -0
  238. package/dist/partials/layout/header-menus/HeaderUserMenu.d.ts +3 -0
  239. package/dist/partials/layout/header-menus/HeaderUserMenu.js +58 -0
  240. package/dist/partials/layout/header-menus/Languages.d.ts +3 -0
  241. package/dist/partials/layout/header-menus/Languages.js +62 -0
  242. package/dist/partials/layout/help-drawer/HelpDrawer.d.ts +3 -0
  243. package/dist/partials/layout/help-drawer/HelpDrawer.js +62 -0
  244. package/dist/partials/layout/help-drawer/ToggleHelpDrawer.d.ts +3 -0
  245. package/dist/partials/layout/help-drawer/ToggleHelpDrawer.js +9 -0
  246. package/dist/partials/layout/purchase/PurchaseButton.d.ts +3 -0
  247. package/dist/partials/layout/purchase/PurchaseButton.js +12 -0
  248. package/dist/partials/layout/quick-links/QuicLinks.d.ts +3 -0
  249. package/dist/partials/layout/quick-links/QuicLinks.js +39 -0
  250. package/dist/partials/layout/search/Search.d.ts +3 -0
  251. package/dist/partials/layout/search/Search.js +334 -0
  252. package/dist/partials/layout/search/SearchInner.d.ts +3 -0
  253. package/dist/partials/layout/search/SearchInner.js +37 -0
  254. package/dist/partials/layout/theme-mode/ThemeModeProvider.d.ts +17 -0
  255. package/dist/partials/layout/theme-mode/ThemeModeProvider.js +102 -0
  256. package/dist/partials/layout/theme-mode/ThemeModeSwitcher.d.ts +9 -0
  257. package/dist/partials/layout/theme-mode/ThemeModeSwitcher.js +42 -0
  258. package/dist/partials/modals/create-app-stepper/CreateAppModal.d.ts +7 -0
  259. package/dist/partials/modals/create-app-stepper/CreateAppModal.js +176 -0
  260. package/dist/partials/modals/create-app-stepper/IAppModels.d.ts +22 -0
  261. package/dist/partials/modals/create-app-stepper/IAppModels.js +9 -0
  262. package/dist/partials/modals/create-app-stepper/steps/Step1.d.ts +4 -0
  263. package/dist/partials/modals/create-app-stepper/steps/Step1.js +84 -0
  264. package/dist/partials/modals/create-app-stepper/steps/Step2.d.ts +4 -0
  265. package/dist/partials/modals/create-app-stepper/steps/Step2.js +57 -0
  266. package/dist/partials/modals/create-app-stepper/steps/Step3.d.ts +4 -0
  267. package/dist/partials/modals/create-app-stepper/steps/Step3.js +81 -0
  268. package/dist/partials/modals/create-app-stepper/steps/Step4.d.ts +4 -0
  269. package/dist/partials/modals/create-app-stepper/steps/Step4.js +47 -0
  270. package/dist/partials/modals/create-app-stepper/steps/Step5.d.ts +3 -0
  271. package/dist/partials/modals/create-app-stepper/steps/Step5.js +18 -0
  272. package/dist/partials/modals/invite-users/InviteUsers.d.ts +3 -0
  273. package/dist/partials/modals/invite-users/InviteUsers.js +161 -0
  274. package/dist/partials/modals/select-location/SelectLocationModal.d.ts +11 -0
  275. package/dist/partials/modals/select-location/SelectLocationModal.js +58 -0
  276. package/dist/partials/modals/upgrade-plan/UpgradePlan.d.ts +3 -0
  277. package/dist/partials/modals/upgrade-plan/UpgradePlan.js +230 -0
  278. package/dist/partials/widgets/_new/cards/CardsWidget17.d.ts +9 -0
  279. package/dist/partials/widgets/_new/cards/CardsWidget17.js +122 -0
  280. package/dist/partials/widgets/_new/cards/CardsWidget20.d.ts +9 -0
  281. package/dist/partials/widgets/_new/cards/CardsWidget20.js +26 -0
  282. package/dist/partials/widgets/_new/cards/CardsWidget7.d.ts +11 -0
  283. package/dist/partials/widgets/_new/cards/CardsWidget7.js +35 -0
  284. package/dist/partials/widgets/_new/engage/EngageWidget10.d.ts +6 -0
  285. package/dist/partials/widgets/_new/engage/EngageWidget10.js +31 -0
  286. package/dist/partials/widgets/_new/lists/ListsWidget26.d.ts +6 -0
  287. package/dist/partials/widgets/_new/lists/ListsWidget26.js +47 -0
  288. package/dist/partials/widgets/charts/ChartsWidget1.d.ts +6 -0
  289. package/dist/partials/widgets/charts/ChartsWidget1.js +182 -0
  290. package/dist/partials/widgets/charts/ChartsWidget2.d.ts +6 -0
  291. package/dist/partials/widgets/charts/ChartsWidget2.js +180 -0
  292. package/dist/partials/widgets/charts/ChartsWidget3.d.ts +6 -0
  293. package/dist/partials/widgets/charts/ChartsWidget3.js +191 -0
  294. package/dist/partials/widgets/charts/ChartsWidget4.d.ts +6 -0
  295. package/dist/partials/widgets/charts/ChartsWidget4.js +196 -0
  296. package/dist/partials/widgets/charts/ChartsWidget5.d.ts +6 -0
  297. package/dist/partials/widgets/charts/ChartsWidget5.js +183 -0
  298. package/dist/partials/widgets/charts/ChartsWidget6.d.ts +6 -0
  299. package/dist/partials/widgets/charts/ChartsWidget6.js +195 -0
  300. package/dist/partials/widgets/charts/ChartsWidget7.d.ts +6 -0
  301. package/dist/partials/widgets/charts/ChartsWidget7.js +215 -0
  302. package/dist/partials/widgets/charts/ChartsWidget8.d.ts +6 -0
  303. package/dist/partials/widgets/charts/ChartsWidget8.js +218 -0
  304. package/dist/partials/widgets/engage/EngageWidget1.d.ts +11 -0
  305. package/dist/partials/widgets/engage/EngageWidget1.js +25 -0
  306. package/dist/partials/widgets/engage/EngageWidget2.d.ts +9 -0
  307. package/dist/partials/widgets/engage/EngageWidget2.js +22 -0
  308. package/dist/partials/widgets/engage/EngageWidget3.d.ts +9 -0
  309. package/dist/partials/widgets/engage/EngageWidget3.js +40 -0
  310. package/dist/partials/widgets/feeds/FeedsWidget2.d.ts +6 -0
  311. package/dist/partials/widgets/feeds/FeedsWidget2.js +43 -0
  312. package/dist/partials/widgets/feeds/FeedsWidget3.d.ts +6 -0
  313. package/dist/partials/widgets/feeds/FeedsWidget3.js +62 -0
  314. package/dist/partials/widgets/feeds/FeedsWidget4.d.ts +6 -0
  315. package/dist/partials/widgets/feeds/FeedsWidget4.js +43 -0
  316. package/dist/partials/widgets/feeds/FeedsWidget5.d.ts +6 -0
  317. package/dist/partials/widgets/feeds/FeedsWidget5.js +46 -0
  318. package/dist/partials/widgets/feeds/FeedsWidget6.d.ts +6 -0
  319. package/dist/partials/widgets/feeds/FeedsWidget6.js +45 -0
  320. package/dist/partials/widgets/index.d.ts +71 -0
  321. package/dist/partials/widgets/index.js +97 -0
  322. package/dist/partials/widgets/lists/ListsWidget1.d.ts +6 -0
  323. package/dist/partials/widgets/lists/ListsWidget1.js +58 -0
  324. package/dist/partials/widgets/lists/ListsWidget2.d.ts +6 -0
  325. package/dist/partials/widgets/lists/ListsWidget2.js +51 -0
  326. package/dist/partials/widgets/lists/ListsWidget3.d.ts +6 -0
  327. package/dist/partials/widgets/lists/ListsWidget3.js +69 -0
  328. package/dist/partials/widgets/lists/ListsWidget4.d.ts +7 -0
  329. package/dist/partials/widgets/lists/ListsWidget4.js +77 -0
  330. package/dist/partials/widgets/lists/ListsWidget5.d.ts +6 -0
  331. package/dist/partials/widgets/lists/ListsWidget5.js +74 -0
  332. package/dist/partials/widgets/lists/ListsWidget6.d.ts +6 -0
  333. package/dist/partials/widgets/lists/ListsWidget6.js +48 -0
  334. package/dist/partials/widgets/lists/ListsWidget7.d.ts +6 -0
  335. package/dist/partials/widgets/lists/ListsWidget7.js +54 -0
  336. package/dist/partials/widgets/lists/ListsWidget8.d.ts +6 -0
  337. package/dist/partials/widgets/lists/ListsWidget8.js +74 -0
  338. package/dist/partials/widgets/lists/ListsWidget9.d.ts +6 -0
  339. package/dist/partials/widgets/lists/ListsWidget9.js +89 -0
  340. package/dist/partials/widgets/mixed/MixedWidget1.d.ts +7 -0
  341. package/dist/partials/widgets/mixed/MixedWidget1.js +70 -0
  342. package/dist/partials/widgets/mixed/MixedWidget10.d.ts +8 -0
  343. package/dist/partials/widgets/mixed/MixedWidget10.js +188 -0
  344. package/dist/partials/widgets/mixed/MixedWidget11.d.ts +8 -0
  345. package/dist/partials/widgets/mixed/MixedWidget11.js +180 -0
  346. package/dist/partials/widgets/mixed/MixedWidget13.d.ts +8 -0
  347. package/dist/partials/widgets/mixed/MixedWidget13.js +204 -0
  348. package/dist/partials/widgets/mixed/MixedWidget14.d.ts +8 -0
  349. package/dist/partials/widgets/mixed/MixedWidget14.js +166 -0
  350. package/dist/partials/widgets/mixed/MixedWidget15.d.ts +7 -0
  351. package/dist/partials/widgets/mixed/MixedWidget15.js +49 -0
  352. package/dist/partials/widgets/mixed/MixedWidget2.d.ts +9 -0
  353. package/dist/partials/widgets/mixed/MixedWidget2.js +213 -0
  354. package/dist/partials/widgets/mixed/MixedWidget3.d.ts +8 -0
  355. package/dist/partials/widgets/mixed/MixedWidget3.js +207 -0
  356. package/dist/partials/widgets/mixed/MixedWidget4.d.ts +11 -0
  357. package/dist/partials/widgets/mixed/MixedWidget4.js +43 -0
  358. package/dist/partials/widgets/mixed/MixedWidget5.d.ts +10 -0
  359. package/dist/partials/widgets/mixed/MixedWidget5.js +29 -0
  360. package/dist/partials/widgets/mixed/MixedWidget6.d.ts +8 -0
  361. package/dist/partials/widgets/mixed/MixedWidget6.js +211 -0
  362. package/dist/partials/widgets/mixed/MixedWidget7.d.ts +8 -0
  363. package/dist/partials/widgets/mixed/MixedWidget7.js +125 -0
  364. package/dist/partials/widgets/mixed/MixedWidget8.d.ts +8 -0
  365. package/dist/partials/widgets/mixed/MixedWidget8.js +239 -0
  366. package/dist/partials/widgets/mixed/MixedWidget9.d.ts +8 -0
  367. package/dist/partials/widgets/mixed/MixedWidget9.js +227 -0
  368. package/dist/partials/widgets/statistics/StatisticsWidget1.d.ts +10 -0
  369. package/dist/partials/widgets/statistics/StatisticsWidget1.js +21 -0
  370. package/dist/partials/widgets/statistics/StatisticsWidget2.d.ts +9 -0
  371. package/dist/partials/widgets/statistics/StatisticsWidget2.js +18 -0
  372. package/dist/partials/widgets/statistics/StatisticsWidget3.d.ts +10 -0
  373. package/dist/partials/widgets/statistics/StatisticsWidget3.js +189 -0
  374. package/dist/partials/widgets/statistics/StatisticsWidget4.d.ts +10 -0
  375. package/dist/partials/widgets/statistics/StatisticsWidget4.js +191 -0
  376. package/dist/partials/widgets/statistics/StatisticsWidget5.d.ts +13 -0
  377. package/dist/partials/widgets/statistics/StatisticsWidget5.js +17 -0
  378. package/dist/partials/widgets/statistics/StatisticsWidget6.d.ts +10 -0
  379. package/dist/partials/widgets/statistics/StatisticsWidget6.js +19 -0
  380. package/dist/partials/widgets/tables/TablesWidget1.d.ts +6 -0
  381. package/dist/partials/widgets/tables/TablesWidget1.js +117 -0
  382. package/dist/partials/widgets/tables/TablesWidget10.d.ts +6 -0
  383. package/dist/partials/widgets/tables/TablesWidget10.js +174 -0
  384. package/dist/partials/widgets/tables/TablesWidget11.d.ts +6 -0
  385. package/dist/partials/widgets/tables/TablesWidget11.js +163 -0
  386. package/dist/partials/widgets/tables/TablesWidget12.d.ts +6 -0
  387. package/dist/partials/widgets/tables/TablesWidget12.js +227 -0
  388. package/dist/partials/widgets/tables/TablesWidget13.d.ts +6 -0
  389. package/dist/partials/widgets/tables/TablesWidget13.js +186 -0
  390. package/dist/partials/widgets/tables/TablesWidget2.d.ts +6 -0
  391. package/dist/partials/widgets/tables/TablesWidget2.js +113 -0
  392. package/dist/partials/widgets/tables/TablesWidget3.d.ts +6 -0
  393. package/dist/partials/widgets/tables/TablesWidget3.js +83 -0
  394. package/dist/partials/widgets/tables/TablesWidget4.d.ts +6 -0
  395. package/dist/partials/widgets/tables/TablesWidget4.js +357 -0
  396. package/dist/partials/widgets/tables/TablesWidget5.d.ts +6 -0
  397. package/dist/partials/widgets/tables/TablesWidget5.js +228 -0
  398. package/dist/partials/widgets/tables/TablesWidget6.d.ts +6 -0
  399. package/dist/partials/widgets/tables/TablesWidget6.js +249 -0
  400. package/dist/partials/widgets/tables/TablesWidget7.d.ts +6 -0
  401. package/dist/partials/widgets/tables/TablesWidget7.js +249 -0
  402. package/dist/partials/widgets/tables/TablesWidget8.d.ts +6 -0
  403. package/dist/partials/widgets/tables/TablesWidget8.js +222 -0
  404. package/dist/partials/widgets/tables/TablesWidget9.d.ts +6 -0
  405. package/dist/partials/widgets/tables/TablesWidget9.js +174 -0
  406. package/dist/partials/widgets/tiles/TilesWidget1.d.ts +8 -0
  407. package/dist/partials/widgets/tiles/TilesWidget1.js +18 -0
  408. package/dist/partials/widgets/tiles/TilesWidget2.d.ts +9 -0
  409. package/dist/partials/widgets/tiles/TilesWidget2.js +28 -0
  410. package/dist/partials/widgets/tiles/TilesWidget3.d.ts +9 -0
  411. package/dist/partials/widgets/tiles/TilesWidget3.js +21 -0
  412. package/dist/partials/widgets/tiles/TilesWidget4.d.ts +6 -0
  413. package/dist/partials/widgets/tiles/TilesWidget4.js +18 -0
  414. package/dist/partials/widgets/tiles/TilesWidget5.d.ts +12 -0
  415. package/dist/partials/widgets/tiles/TilesWidget5.js +19 -0
  416. package/package.json +73 -0
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./_CookieComponent"), exports);
18
+ __exportStar(require("./_DrawerComponent"), exports);
19
+ __exportStar(require("./_FeedbackComponent"), exports);
20
+ __exportStar(require("./_ImageInputComponent"), exports);
21
+ __exportStar(require("./_ScrollComponent"), exports);
22
+ __exportStar(require("./_ScrollTopComponent"), exports);
23
+ __exportStar(require("./_StepperComponent"), exports);
24
+ __exportStar(require("./_StickyComponent"), exports);
25
+ __exportStar(require("./_ToggleComponent"), exports);
26
+ // export * from './_DialerComponent';
27
+ __exportStar(require("./_PasswordMeterComponent"), exports);
28
+ __exportStar(require("./_SwapperComponent"), exports);
29
+ __exportStar(require("./MenuComponent"), exports);
30
+ __exportStar(require("./SearchComponent"), exports);
@@ -0,0 +1,2 @@
1
+ export * as KTUtil from './_utils/index';
2
+ export * as components from './components/index';
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.components = exports.KTUtil = void 0;
27
+ exports.KTUtil = __importStar(require("./_utils/index"));
28
+ exports.components = __importStar(require("./components/index"));
29
+ // declare global {
30
+ // interface Window {
31
+ // keenthemes: any;
32
+ // }
33
+ // }
34
+ // window.keenthemes = {
35
+ // components: {
36
+ // ScrollTop: components.ScrollTopComponent,
37
+ // Coockie: components.CookieComponent,
38
+ // Drawer: components.DrawerComponent,
39
+ // Feedback: components.FeedbackComponent,
40
+ // ImageInput: components.ImageInputComponent,
41
+ // Scroll: components.ScrollComponent,
42
+ // Stepper: components.StepperComponent,
43
+ // Sticky: components.StickyComponent,
44
+ // Toggle: components.ToggleComponent,
45
+ // Menu: components.MenuComponent,
46
+ // Search: components.SearchComponent,
47
+ // Dialder: components.DialerComponent,
48
+ // PasswordMeter: components.PasswordMeterComponent,
49
+ // Place: components.PlaceComponent,
50
+ // defaultDialerOptions: components.defaultDialerOptions,
51
+ // defaultDialderQueries: components.defaultDialerQueires,
52
+ // defaultPasswordMeterOptions: components.defaultPasswordMeterOptions,
53
+ // defaultPasswordMeterQueries: components.defaultPasswordMeterQueires,
54
+ // defaultPlaceOptions: components.defaultPlaceOptions,
55
+ // defaultPlaceQueries: components.defaultPlaceQueires,
56
+ // defaultDrawerOptions: components.defaultDrawerOptions,
57
+ // defaultFeedbackOptions: components.defaultFeedbackOptions,
58
+ // defaultImageInputOptions: components.defaultImageInputOptions,
59
+ // defaultScrollOptions: components.defaultScrollOptions,
60
+ // defaultScrollTopOptions: components.defaultScrollTopOptions,
61
+ // defaultStepperOptions: components.defaultStepperOptions,
62
+ // defaultStickyOptions: components.defaultStickyOptions,
63
+ // defaultToggleOptions: components.defaultToggleOptions,
64
+ // defaultMenuOptions: components.defaultMenuOptions,
65
+ // defaultSearchOptions: components.defaultSearchOptions,
66
+ // },
67
+ // utils: KTUtil,
68
+ // };
@@ -0,0 +1,20 @@
1
+ type Mode = 'light' | 'dark' | 'system';
2
+ declare class ThemeMode {
3
+ menu: HTMLElement | null;
4
+ element: HTMLElement | null;
5
+ private getParamName;
6
+ getMode: () => Mode;
7
+ setMode: (mode: Mode, menuMode: Mode | '') => void;
8
+ getMenuMode: () => Mode | '';
9
+ getSystemMode: () => Mode;
10
+ private initMode;
11
+ private getActiveMenuItem;
12
+ private setActiveMenuItem;
13
+ private handleMenu;
14
+ flipImages: () => void;
15
+ on: (name: string, hander: Function) => void;
16
+ off: (name: string, handlerId: string) => void;
17
+ init: () => void;
18
+ }
19
+ declare const ThemeModeComponent: ThemeMode;
20
+ export { ThemeModeComponent };
@@ -0,0 +1,182 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ThemeModeComponent = void 0;
4
+ var _utils_1 = require("../_utils");
5
+ var ThemeMode = /** @class */ (function () {
6
+ function ThemeMode() {
7
+ var _this = this;
8
+ this.menu = null;
9
+ this.element = null;
10
+ this.getParamName = function (postfix) {
11
+ var ktName = document.body.hasAttribute('data-kt-name');
12
+ var name = ktName ? ktName + '_' : '';
13
+ return 'kt_' + name + 'theme_mode_' + postfix;
14
+ };
15
+ this.getMode = function () {
16
+ var _a;
17
+ var modeParam = _this.getParamName('value');
18
+ var themeMode = _this.getMenuMode();
19
+ var defaultMode = 'light';
20
+ if (!localStorage.getItem(modeParam)) {
21
+ return defaultMode;
22
+ }
23
+ var ls = localStorage.getItem(modeParam);
24
+ if (ls) {
25
+ return ls;
26
+ }
27
+ var dataTheme = (_a = _this.element) === null || _a === void 0 ? void 0 : _a.getAttribute('data-bs-theme');
28
+ if (dataTheme) {
29
+ return dataTheme;
30
+ }
31
+ if (!themeMode) {
32
+ return defaultMode;
33
+ }
34
+ if (themeMode === 'system') {
35
+ return _this.getSystemMode();
36
+ }
37
+ return themeMode;
38
+ };
39
+ this.setMode = function (mode, menuMode) {
40
+ var _a, _b, _c;
41
+ // Check input values
42
+ if (mode !== 'light' && mode !== 'dark') {
43
+ return;
44
+ }
45
+ // Get param names
46
+ var modeParam = _this.getParamName('value');
47
+ var menuModeParam = _this.getParamName('menu');
48
+ // Reset mode if system mode was changed
49
+ if (menuMode === 'system') {
50
+ if (_this.getSystemMode() !== mode) {
51
+ mode = _this.getSystemMode();
52
+ }
53
+ }
54
+ // Check menu mode
55
+ if (!menuMode) {
56
+ menuMode = mode;
57
+ }
58
+ // Read active menu mode value
59
+ var activeMenuItem = ((_a = _this.menu) === null || _a === void 0 ? void 0 : _a.querySelector('[data-kt-element="mode"][data-kt-value="' + menuMode + '"]')) || null;
60
+ // Enable switching state
61
+ (_b = _this.element) === null || _b === void 0 ? void 0 : _b.setAttribute('data-kt-theme-mode-switching', 'true');
62
+ // Set mode to the target element
63
+ (_c = _this.element) === null || _c === void 0 ? void 0 : _c.setAttribute('data-bs-theme', mode);
64
+ // Disable switching state
65
+ var self = _this;
66
+ setTimeout(function () {
67
+ var _a;
68
+ (_a = self.element) === null || _a === void 0 ? void 0 : _a.removeAttribute('data-kt-theme-mode-switching');
69
+ }, 300);
70
+ // Store mode value in storage
71
+ if (localStorage) {
72
+ localStorage.setItem(modeParam, mode);
73
+ }
74
+ // Set active menu item
75
+ if (activeMenuItem && localStorage) {
76
+ localStorage.setItem(menuModeParam, menuMode);
77
+ _this.setActiveMenuItem(activeMenuItem);
78
+ }
79
+ // Flip images
80
+ _this.flipImages();
81
+ };
82
+ this.getMenuMode = function () {
83
+ var _a;
84
+ var menuModeParam = _this.getParamName('menu');
85
+ var menuItem = (_a = _this.menu) === null || _a === void 0 ? void 0 : _a.querySelector('.active[data-kt-element="mode"]');
86
+ var dataKTValue = menuItem === null || menuItem === void 0 ? void 0 : menuItem.getAttribute('data-kt-value');
87
+ if (dataKTValue) {
88
+ return dataKTValue;
89
+ }
90
+ if (!menuModeParam) {
91
+ return '';
92
+ }
93
+ var ls = localStorage ? localStorage.getItem(menuModeParam) : null;
94
+ return ls || '';
95
+ };
96
+ this.getSystemMode = function () {
97
+ return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
98
+ };
99
+ this.initMode = function () {
100
+ _this.setMode(_this.getMode(), _this.getMenuMode());
101
+ if (_this.element) {
102
+ _utils_1.EventHandlerUtil.trigger(_this.element, 'kt.thememode.init');
103
+ }
104
+ };
105
+ this.getActiveMenuItem = function () {
106
+ var _a;
107
+ return (((_a = _this.menu) === null || _a === void 0 ? void 0 : _a.querySelector('[data-kt-element="mode"][data-kt-value="' + _this.getMenuMode() + '"]')) || null);
108
+ };
109
+ this.setActiveMenuItem = function (item) {
110
+ var _a;
111
+ var menuModeParam = _this.getParamName('menu');
112
+ var menuMode = item.getAttribute('data-kt-value');
113
+ var activeItem = (_a = _this.menu) === null || _a === void 0 ? void 0 : _a.querySelector('.active[data-kt-element="mode"]');
114
+ if (activeItem) {
115
+ activeItem.classList.remove('active');
116
+ }
117
+ item.classList.add('active');
118
+ if (localStorage && menuMode && menuModeParam) {
119
+ localStorage.setItem(menuModeParam, menuMode);
120
+ }
121
+ };
122
+ this.handleMenu = function () {
123
+ var _a, _b;
124
+ (_b = (_a = _this.menu) === null || _a === void 0 ? void 0 : _a.querySelectorAll('[data-kt-element="mode"]')) === null || _b === void 0 ? void 0 : _b.forEach(function (item) {
125
+ item.addEventListener('click', function (e) {
126
+ e.preventDefault();
127
+ var menuMode = item.getAttribute('data-kt-value');
128
+ var mode = menuMode === 'system' ? _this.getSystemMode() : menuMode;
129
+ if (mode) {
130
+ _this.setMode(mode, menuMode);
131
+ }
132
+ });
133
+ });
134
+ };
135
+ this.flipImages = function () {
136
+ var _a;
137
+ (_a = document.querySelectorAll('[data-kt-img-dark]')) === null || _a === void 0 ? void 0 : _a.forEach(function (item) {
138
+ if (item.tagName === 'IMG') {
139
+ if (_this.getMode() === 'dark' && item.hasAttribute('data-kt-img-dark')) {
140
+ item.setAttribute('data-kt-img-light', item.getAttribute('src') || '');
141
+ item.setAttribute('src', item.getAttribute('data-kt-img-dark') || '');
142
+ }
143
+ else if (_this.getMode() === 'light' && item.hasAttribute('data-kt-img-light')) {
144
+ item.setAttribute('data-kt-img-dark', item.getAttribute('src') || '');
145
+ item.setAttribute('src', item.getAttribute('data-kt-img-light') || '');
146
+ }
147
+ }
148
+ else {
149
+ if (_this.getMode() === 'dark' && item.hasAttribute('data-kt-img-dark')) {
150
+ item.setAttribute('data-kt-img-light', item.getAttribute('src') || '');
151
+ item.style.backgroundImage = "url('" + item.getAttribute('data-kt-img-dark') + "')";
152
+ }
153
+ else if (_this.getMode() === 'light' && item.hasAttribute('data-kt-img-light')) {
154
+ item.setAttribute('data-kt-img-dark', item.getAttribute('src') || '');
155
+ item.style.backgroundImage = "url('" + item.getAttribute('data-kt-img-light') + "')";
156
+ }
157
+ }
158
+ });
159
+ };
160
+ this.on = function (name, hander) {
161
+ if (_this.element) {
162
+ return _utils_1.EventHandlerUtil.on(_this.element, name, hander);
163
+ }
164
+ };
165
+ this.off = function (name, handlerId) {
166
+ if (_this.element) {
167
+ return _utils_1.EventHandlerUtil.off(_this.element, name, handlerId);
168
+ }
169
+ };
170
+ this.init = function () {
171
+ _this.menu = document.querySelector('[data-kt-element="theme-mode-menu"]');
172
+ _this.element = document.documentElement;
173
+ _this.initMode();
174
+ if (_this.menu) {
175
+ _this.handleMenu();
176
+ }
177
+ };
178
+ }
179
+ return ThemeMode;
180
+ }());
181
+ var ThemeModeComponent = new ThemeMode();
182
+ exports.ThemeModeComponent = ThemeModeComponent;
@@ -0,0 +1 @@
1
+ export * from './ThemeMode';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ThemeMode"), exports);
@@ -0,0 +1,2 @@
1
+ export declare const toAbsoluteUrl: (pathname: string) => string;
2
+ export declare const useIllustrationsPath: (illustrationName: string) => string;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useIllustrationsPath = exports.toAbsoluteUrl = void 0;
4
+ var core_1 = require("../layout/core");
5
+ var layout_1 = require("../assets/ts/layout");
6
+ var toAbsoluteUrl = function (pathname) {
7
+ return pathname;
8
+ };
9
+ exports.toAbsoluteUrl = toAbsoluteUrl;
10
+ var useIllustrationsPath = function (illustrationName) {
11
+ var _a;
12
+ var config = (0, core_1.useLayout)().config;
13
+ var extension = illustrationName.substring(illustrationName.lastIndexOf("."), illustrationName.length);
14
+ var illustration = layout_1.ThemeModeComponent.getMode() === "dark"
15
+ ? "".concat(illustrationName.substring(0, illustrationName.lastIndexOf(".")), "-dark")
16
+ : illustrationName.substring(0, illustrationName.lastIndexOf("."));
17
+ return (0, exports.toAbsoluteUrl)("media/illustrations/".concat((_a = config.illustrations) === null || _a === void 0 ? void 0 : _a.set, "/").concat(illustration).concat(extension));
18
+ };
19
+ exports.useIllustrationsPath = useIllustrationsPath;
@@ -0,0 +1,2 @@
1
+ export declare function getCurrentUrl(pathname: string): string;
2
+ export declare function checkIsActive(pathname: string, url: string): boolean;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.checkIsActive = exports.getCurrentUrl = void 0;
4
+ function getCurrentUrl(pathname) {
5
+ return pathname.split(/[?#]/)[0];
6
+ }
7
+ exports.getCurrentUrl = getCurrentUrl;
8
+ function checkIsActive(pathname, url) {
9
+ var current = getCurrentUrl(pathname);
10
+ if (!current || !url) {
11
+ return false;
12
+ }
13
+ if (current === url) {
14
+ return true;
15
+ }
16
+ if (current.indexOf(url) > -1) {
17
+ return true;
18
+ }
19
+ return false;
20
+ }
21
+ exports.checkIsActive = checkIsActive;
@@ -0,0 +1,17 @@
1
+ import { FC } from 'react';
2
+ import { WithChildren } from '../react18MigrationHelpers';
3
+ type Props = {
4
+ className?: string;
5
+ shadow?: boolean;
6
+ flush?: boolean;
7
+ resetSidePaddings?: boolean;
8
+ border?: boolean;
9
+ dashed?: boolean;
10
+ stretch?: 'stretch' | 'stretch-75' | 'stretch-50' | 'stretch-33' | 'stretch-25';
11
+ rounded?: 'rounded' | 'rounded-top' | 'rounded-bottom';
12
+ utilityP?: number;
13
+ utilityPY?: number;
14
+ utilityPX?: number;
15
+ };
16
+ declare const KTCard: FC<Props & WithChildren>;
17
+ export { KTCard };
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.KTCard = void 0;
7
+ var react_1 = __importDefault(require("react"));
8
+ var clsx_1 = __importDefault(require("clsx"));
9
+ var KTCard = function (props) {
10
+ var className = props.className, shadow = props.shadow, flush = props.flush, resetSidePaddings = props.resetSidePaddings, border = props.border, dashed = props.dashed, stretch = props.stretch, rounded = props.rounded, utilityP = props.utilityP, utilityPY = props.utilityPY, utilityPX = props.utilityPX, children = props.children;
11
+ return (react_1.default.createElement("div", { className: (0, clsx_1.default)('card', className && className, {
12
+ 'shadow-sm': shadow,
13
+ 'card-flush': flush,
14
+ 'card-px-0': resetSidePaddings,
15
+ 'card-bordered': border,
16
+ 'card-dashed': dashed,
17
+ }, stretch && "card-".concat(stretch), utilityP && "p-".concat(utilityP), utilityPX && "px-".concat(utilityPX), utilityPY && "py-".concat(utilityPY), rounded && "card-".concat(rounded)) }, children));
18
+ };
19
+ exports.KTCard = KTCard;
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ import { WithChildren } from '../react18MigrationHelpers';
3
+ type Props = {
4
+ className?: string;
5
+ scroll?: boolean;
6
+ height?: number;
7
+ };
8
+ declare const KTCardBody: FC<Props & WithChildren>;
9
+ export { KTCardBody };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.KTCardBody = void 0;
7
+ var clsx_1 = __importDefault(require("clsx"));
8
+ var react_1 = __importDefault(require("react"));
9
+ var KTCardBody = function (props) {
10
+ var className = props.className, scroll = props.scroll, height = props.height, children = props.children;
11
+ return (react_1.default.createElement("div", { className: (0, clsx_1.default)('card-body', className && className, {
12
+ 'card-scroll': scroll,
13
+ }, height && "h-".concat(height, "px")) }, children));
14
+ };
15
+ exports.KTCardBody = KTCardBody;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ type Props = {
3
+ className?: string;
4
+ iconType?: 'duotone' | 'solid' | 'outline';
5
+ iconName: string;
6
+ };
7
+ declare const KTIcon: FC<Props>;
8
+ export { KTIcon };
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4
+ if (ar || !(i in from)) {
5
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6
+ ar[i] = from[i];
7
+ }
8
+ }
9
+ return to.concat(ar || Array.prototype.slice.call(from));
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.KTIcon = void 0;
16
+ var react_1 = __importDefault(require("react"));
17
+ var icons_1 = __importDefault(require("../icons-config/icons"));
18
+ var core_1 = require("../../layout/core");
19
+ var KTIcon = function (_a) {
20
+ var _b;
21
+ var _c = _a.className, className = _c === void 0 ? '' : _c, iconType = _a.iconType, iconName = _a.iconName;
22
+ if (!iconType) {
23
+ iconType = (_b = (0, core_1.getLayoutFromLocalStorage)().main) === null || _b === void 0 ? void 0 : _b.iconType;
24
+ }
25
+ return (react_1.default.createElement("i", { className: "ki-".concat(iconType, " ki-").concat(iconName).concat(className && ' ' + className) }, iconType === 'duotone' &&
26
+ __spreadArray([], Array(icons_1.default[iconName]), true).map(function (_e, i) {
27
+ return (react_1.default.createElement("span", { key: "".concat(iconType, "-").concat(iconName, "-").concat(className, "-path-").concat(i + 1), className: "path".concat(i + 1) }));
28
+ })));
29
+ };
30
+ exports.KTIcon = KTIcon;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ type Props = {
3
+ className?: string;
4
+ path: string;
5
+ svgClassName?: string;
6
+ };
7
+ export declare const KTSVG: FC<Props>;
8
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.KTSVG = void 0;
7
+ var react_1 = __importDefault(require("react"));
8
+ var KTSVG = function (_a) {
9
+ var _b = _a.className, className = _b === void 0 ? '' : _b, path = _a.path, _c = _a.svgClassName, svgClassName = _c === void 0 ? 'mh-50px' : _c;
10
+ return (react_1.default.createElement(react_1.default.Fragment, null));
11
+ };
12
+ exports.KTSVG = KTSVG;
@@ -0,0 +1,4 @@
1
+ declare const QUERIES: {
2
+ USERS_LIST: string;
3
+ };
4
+ export { QUERIES };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QUERIES = void 0;
4
+ var QUERIES = {
5
+ USERS_LIST: 'users-list',
6
+ };
7
+ exports.QUERIES = QUERIES;
@@ -0,0 +1,14 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { ID, QueryResponseContextProps, QueryState } from './models';
3
+ declare function createResponseContext<T>(initialState: QueryResponseContextProps<T>): import("react").Context<QueryResponseContextProps<T>>;
4
+ declare function isNotEmpty(obj: unknown): boolean;
5
+ declare function stringifyRequestQuery(state: QueryState): string;
6
+ declare function parseRequestQuery(query: string): QueryState;
7
+ declare function calculatedGroupingIsDisabled<T>(isLoading: boolean, data: Array<T> | undefined): boolean;
8
+ declare function calculateIsAllDataSelected<T>(data: Array<T> | undefined, selected: Array<ID>): boolean;
9
+ declare function groupingOnSelect(id: ID, selected: Array<ID>, setSelected: Dispatch<SetStateAction<Array<ID>>>): void;
10
+ declare function groupingOnSelectAll<T>(isAllSelected: boolean, setSelected: Dispatch<SetStateAction<Array<ID>>>, data?: Array<T & {
11
+ id?: ID;
12
+ }>): void;
13
+ declare function useDebounce(value: string | undefined, delay: number): string | undefined;
14
+ export { createResponseContext, stringifyRequestQuery, parseRequestQuery, calculatedGroupingIsDisabled, calculateIsAllDataSelected, groupingOnSelect, groupingOnSelectAll, useDebounce, isNotEmpty, };
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4
+ if (ar || !(i in from)) {
5
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6
+ ar[i] = from[i];
7
+ }
8
+ }
9
+ return to.concat(ar || Array.prototype.slice.call(from));
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.isNotEmpty = exports.useDebounce = exports.groupingOnSelectAll = exports.groupingOnSelect = exports.calculateIsAllDataSelected = exports.calculatedGroupingIsDisabled = exports.parseRequestQuery = exports.stringifyRequestQuery = exports.createResponseContext = void 0;
16
+ var react_1 = require("react");
17
+ var qs_1 = __importDefault(require("qs"));
18
+ function createResponseContext(initialState) {
19
+ return (0, react_1.createContext)(initialState);
20
+ }
21
+ exports.createResponseContext = createResponseContext;
22
+ function isNotEmpty(obj) {
23
+ return obj !== undefined && obj !== null && obj !== '';
24
+ }
25
+ exports.isNotEmpty = isNotEmpty;
26
+ // Example: page=1&items_per_page=10&sort=id&order=desc&search=a&filter_name=a&filter_online=false
27
+ function stringifyRequestQuery(state) {
28
+ var pagination = qs_1.default.stringify(state, { filter: ['page', 'items_per_page'], skipNulls: true });
29
+ var sort = qs_1.default.stringify(state, { filter: ['sort', 'order'], skipNulls: true });
30
+ var search = isNotEmpty(state.search)
31
+ ? qs_1.default.stringify(state, { filter: ['search'], skipNulls: true })
32
+ : '';
33
+ var filter = state.filter
34
+ ? Object.keys(state.filter).map(function (key) { return [key, state.filter[key]]; })
35
+ .filter(function (obj) { return isNotEmpty(obj[1]); })
36
+ .map(function (obj) {
37
+ return "filter_".concat(obj[0], "=").concat(obj[1]);
38
+ })
39
+ .join('&')
40
+ : '';
41
+ return [pagination, sort, search, filter]
42
+ .filter(function (f) { return f; })
43
+ .join('&')
44
+ .toLowerCase();
45
+ }
46
+ exports.stringifyRequestQuery = stringifyRequestQuery;
47
+ function parseRequestQuery(query) {
48
+ var cache = qs_1.default.parse(query);
49
+ return cache;
50
+ }
51
+ exports.parseRequestQuery = parseRequestQuery;
52
+ function calculatedGroupingIsDisabled(isLoading, data) {
53
+ if (isLoading) {
54
+ return true;
55
+ }
56
+ return !data || !data.length;
57
+ }
58
+ exports.calculatedGroupingIsDisabled = calculatedGroupingIsDisabled;
59
+ function calculateIsAllDataSelected(data, selected) {
60
+ if (!data) {
61
+ return false;
62
+ }
63
+ return data.length > 0 && data.length === selected.length;
64
+ }
65
+ exports.calculateIsAllDataSelected = calculateIsAllDataSelected;
66
+ function groupingOnSelect(id, selected, setSelected) {
67
+ if (!id) {
68
+ return;
69
+ }
70
+ if (selected.indexOf(id) !== -1) {
71
+ setSelected(selected.filter(function (itemId) { return itemId !== id; }));
72
+ }
73
+ else {
74
+ var updatedSelected = __spreadArray([], selected, true);
75
+ updatedSelected.push(id);
76
+ setSelected(updatedSelected);
77
+ }
78
+ }
79
+ exports.groupingOnSelect = groupingOnSelect;
80
+ function groupingOnSelectAll(isAllSelected, setSelected, data) {
81
+ if (isAllSelected) {
82
+ setSelected([]);
83
+ return;
84
+ }
85
+ if (!data || !data.length) {
86
+ return;
87
+ }
88
+ setSelected(data.filter(function (item) { return item.id; }).map(function (item) { return item.id; }));
89
+ }
90
+ exports.groupingOnSelectAll = groupingOnSelectAll;
91
+ // Hook
92
+ function useDebounce(value, delay) {
93
+ // State and setters for debounced value
94
+ var _a = (0, react_1.useState)(value), debouncedValue = _a[0], setDebouncedValue = _a[1];
95
+ (0, react_1.useEffect)(function () {
96
+ // Update debounced value after delay
97
+ var handler = setTimeout(function () {
98
+ setDebouncedValue(value);
99
+ }, delay);
100
+ // Cancel the timeout if value changes (also on delay change or unmount)
101
+ // This is how we prevent debounced value from updating if value is changed ...
102
+ // .. within the delay period. Timeout gets cleared and restarted.
103
+ return function () {
104
+ clearTimeout(handler);
105
+ };
106
+ }, [value, delay] // Only re-call effect if value or delay changes
107
+ );
108
+ return debouncedValue;
109
+ }
110
+ exports.useDebounce = useDebounce;