@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.
- package/README.md +39 -0
- package/dist/assets/ts/_utils/DomHelpers.d.ts +29 -0
- package/dist/assets/ts/_utils/DomHelpers.js +380 -0
- package/dist/assets/ts/_utils/ElementAnimateUtil.d.ts +10 -0
- package/dist/assets/ts/_utils/ElementAnimateUtil.js +90 -0
- package/dist/assets/ts/_utils/EventHandlerUtil.d.ts +24 -0
- package/dist/assets/ts/_utils/EventHandlerUtil.js +105 -0
- package/dist/assets/ts/_utils/_DOMEventHandlerUtil.d.ts +6 -0
- package/dist/assets/ts/_utils/_DOMEventHandlerUtil.js +55 -0
- package/dist/assets/ts/_utils/_DataUtil.d.ts +9 -0
- package/dist/assets/ts/_utils/_DataUtil.js +66 -0
- package/dist/assets/ts/_utils/_ElementStyleUtil.d.ts +5 -0
- package/dist/assets/ts/_utils/_ElementStyleUtil.js +23 -0
- package/dist/assets/ts/_utils/_TypesHelpers.d.ts +10 -0
- package/dist/assets/ts/_utils/_TypesHelpers.js +54 -0
- package/dist/assets/ts/_utils/index.d.ts +9 -0
- package/dist/assets/ts/_utils/index.js +28 -0
- package/dist/assets/ts/_utils/models/OffsetModel.d.ts +4 -0
- package/dist/assets/ts/_utils/models/OffsetModel.js +2 -0
- package/dist/assets/ts/_utils/models/ViewPortModel.d.ts +4 -0
- package/dist/assets/ts/_utils/models/ViewPortModel.js +2 -0
- package/dist/assets/ts/components/MenuComponent.d.ts +88 -0
- package/dist/assets/ts/components/MenuComponent.js +857 -0
- package/dist/assets/ts/components/SearchComponent.d.ts +66 -0
- package/dist/assets/ts/components/SearchComponent.js +362 -0
- package/dist/assets/ts/components/_CookieComponent.d.ts +25 -0
- package/dist/assets/ts/components/_CookieComponent.js +66 -0
- package/dist/assets/ts/components/_DrawerComponent.d.ts +57 -0
- package/dist/assets/ts/components/_DrawerComponent.js +325 -0
- package/dist/assets/ts/components/_FeedbackComponent.d.ts +32 -0
- package/dist/assets/ts/components/_FeedbackComponent.js +113 -0
- package/dist/assets/ts/components/_ImageInputComponent.d.ts +43 -0
- package/dist/assets/ts/components/_ImageInputComponent.js +176 -0
- package/dist/assets/ts/components/_PasswordMeterComponent.d.ts +54 -0
- package/dist/assets/ts/components/_PasswordMeterComponent.js +206 -0
- package/dist/assets/ts/components/_ScrollComponent.d.ts +32 -0
- package/dist/assets/ts/components/_ScrollComponent.js +262 -0
- package/dist/assets/ts/components/_ScrollTopComponent.d.ts +24 -0
- package/dist/assets/ts/components/_ScrollTopComponent.js +115 -0
- package/dist/assets/ts/components/_StepperComponent.d.ts +52 -0
- package/dist/assets/ts/components/_StepperComponent.js +256 -0
- package/dist/assets/ts/components/_StickyComponent.d.ts +35 -0
- package/dist/assets/ts/components/_StickyComponent.js +239 -0
- package/dist/assets/ts/components/_SwapperComponent.d.ts +36 -0
- package/dist/assets/ts/components/_SwapperComponent.js +173 -0
- package/dist/assets/ts/components/_ToggleComponent.d.ts +36 -0
- package/dist/assets/ts/components/_ToggleComponent.js +161 -0
- package/dist/assets/ts/components/index.d.ts +13 -0
- package/dist/assets/ts/components/index.js +30 -0
- package/dist/assets/ts/index.d.ts +2 -0
- package/dist/assets/ts/index.js +68 -0
- package/dist/assets/ts/layout/ThemeMode.d.ts +20 -0
- package/dist/assets/ts/layout/ThemeMode.js +182 -0
- package/dist/assets/ts/layout/index.d.ts +1 -0
- package/dist/assets/ts/layout/index.js +17 -0
- package/dist/helpers/AssetHelpers.d.ts +2 -0
- package/dist/helpers/AssetHelpers.js +19 -0
- package/dist/helpers/RouterHelpers.d.ts +2 -0
- package/dist/helpers/RouterHelpers.js +21 -0
- package/dist/helpers/components/KTCard.d.ts +17 -0
- package/dist/helpers/components/KTCard.js +19 -0
- package/dist/helpers/components/KTCardBody.d.ts +9 -0
- package/dist/helpers/components/KTCardBody.js +15 -0
- package/dist/helpers/components/KTIcon.d.ts +8 -0
- package/dist/helpers/components/KTIcon.js +30 -0
- package/dist/helpers/components/KTSVG.d.ts +8 -0
- package/dist/helpers/components/KTSVG.js +12 -0
- package/dist/helpers/crud-helper/consts.d.ts +4 -0
- package/dist/helpers/crud-helper/consts.js +7 -0
- package/dist/helpers/crud-helper/helpers.d.ts +14 -0
- package/dist/helpers/crud-helper/helpers.js +110 -0
- package/dist/helpers/crud-helper/models.d.ts +61 -0
- package/dist/helpers/crud-helper/models.js +21 -0
- package/dist/helpers/dataExamples.d.ts +37 -0
- package/dist/helpers/dataExamples.js +251 -0
- package/dist/helpers/icons-config/icons.d.ts +5 -0
- package/dist/helpers/icons-config/icons.js +578 -0
- package/dist/helpers/index.d.ts +11 -0
- package/dist/helpers/index.js +27 -0
- package/dist/helpers/react18MigrationHelpers.d.ts +6 -0
- package/dist/helpers/react18MigrationHelpers.js +10 -0
- package/dist/i18n/Metronici18n.d.ts +6 -0
- package/dist/i18n/Metronici18n.js +62 -0
- package/dist/i18n/i18nProvider.d.ts +11 -0
- package/dist/i18n/i18nProvider.js +31 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +24 -0
- package/dist/layout/MasterInit.d.ts +2 -0
- package/dist/layout/MasterInit.js +39 -0
- package/dist/layout/MasterLayout.d.ts +3 -0
- package/dist/layout/MasterLayout.js +40 -0
- package/dist/layout/components/content/Content.d.ts +4 -0
- package/dist/layout/components/content/Content.js +27 -0
- package/dist/layout/components/content/index.d.ts +1 -0
- package/dist/layout/components/content/index.js +17 -0
- package/dist/layout/components/footer/Footer.d.ts +3 -0
- package/dist/layout/components/footer/Footer.js +38 -0
- package/dist/layout/components/footer/FooterWrapper.d.ts +3 -0
- package/dist/layout/components/footer/FooterWrapper.js +20 -0
- package/dist/layout/components/footer/index.d.ts +1 -0
- package/dist/layout/components/footer/index.js +17 -0
- package/dist/layout/components/header/Header.d.ts +3 -0
- package/dist/layout/components/header/Header.js +86 -0
- package/dist/layout/components/header/HeaderWrapper.d.ts +2 -0
- package/dist/layout/components/header/HeaderWrapper.js +44 -0
- package/dist/layout/components/header/Navbar.d.ts +3 -0
- package/dist/layout/components/header/Navbar.js +43 -0
- package/dist/layout/components/header/header-menus/MegaMenu.d.ts +3 -0
- package/dist/layout/components/header/header-menus/MegaMenu.js +74 -0
- package/dist/layout/components/header/header-menus/MenuInner.d.ts +2 -0
- package/dist/layout/components/header/header-menus/MenuInner.js +50 -0
- package/dist/layout/components/header/header-menus/MenuInnerWithSub.d.ts +15 -0
- package/dist/layout/components/header/header-menus/MenuInnerWithSub.js +58 -0
- package/dist/layout/components/header/header-menus/MenuItem.d.ts +11 -0
- package/dist/layout/components/header/header-menus/MenuItem.js +28 -0
- package/dist/layout/components/header/header-menus/index.d.ts +1 -0
- package/dist/layout/components/header/header-menus/index.js +17 -0
- package/dist/layout/components/header/index.d.ts +1 -0
- package/dist/layout/components/header/index.js +17 -0
- package/dist/layout/components/scroll-top/ScrollTop.d.ts +2 -0
- package/dist/layout/components/scroll-top/ScrollTop.js +51 -0
- package/dist/layout/components/scroll-top/index.d.ts +1 -0
- package/dist/layout/components/scroll-top/index.js +17 -0
- package/dist/layout/components/sidebar/Sidebar.d.ts +3 -0
- package/dist/layout/components/sidebar/Sidebar.js +133 -0
- package/dist/layout/components/sidebar/SidebarFooter.d.ts +3 -0
- package/dist/layout/components/sidebar/SidebarFooter.js +18 -0
- package/dist/layout/components/sidebar/SidebarLogo.d.ts +7 -0
- package/dist/layout/components/sidebar/SidebarLogo.js +54 -0
- package/dist/layout/components/sidebar/index.d.ts +1 -0
- package/dist/layout/components/sidebar/index.js +17 -0
- package/dist/layout/components/sidebar/sidebar-menu/SidebarMenu.d.ts +3 -0
- package/dist/layout/components/sidebar/sidebar-menu/SidebarMenu.js +15 -0
- package/dist/layout/components/sidebar/sidebar-menu/SidebarMenuItem.d.ts +11 -0
- package/dist/layout/components/sidebar/sidebar-menu/SidebarMenuItem.js +31 -0
- package/dist/layout/components/sidebar/sidebar-menu/SidebarMenuItemWithSub.d.ts +11 -0
- package/dist/layout/components/sidebar/sidebar-menu/SidebarMenuItemWithSub.js +30 -0
- package/dist/layout/components/sidebar/sidebar-menu/SidebarMenuMain.d.ts +3 -0
- package/dist/layout/components/sidebar/sidebar-menu/SidebarMenuMain.js +63 -0
- package/dist/layout/components/toolbar/Toolbar.d.ts +3 -0
- package/dist/layout/components/toolbar/Toolbar.js +88 -0
- package/dist/layout/components/toolbar/ToolbarWrapper.d.ts +3 -0
- package/dist/layout/components/toolbar/ToolbarWrapper.js +34 -0
- package/dist/layout/components/toolbar/index.d.ts +1 -0
- package/dist/layout/components/toolbar/index.js +17 -0
- package/dist/layout/components/toolbar/page-title/PageTitle.d.ts +3 -0
- package/dist/layout/components/toolbar/page-title/PageTitle.js +44 -0
- package/dist/layout/components/toolbar/page-title/PageTitleWrapper.d.ts +3 -0
- package/dist/layout/components/toolbar/page-title/PageTitleWrapper.js +18 -0
- package/dist/layout/components/toolbar/page-title/index.d.ts +1 -0
- package/dist/layout/components/toolbar/page-title/index.js +17 -0
- package/dist/layout/components/toolbar/toolbars/ToolbarAccounting.d.ts +3 -0
- package/dist/layout/components/toolbar/toolbars/ToolbarAccounting.js +68 -0
- package/dist/layout/components/toolbar/toolbars/ToolbarClassic.d.ts +3 -0
- package/dist/layout/components/toolbar/toolbars/ToolbarClassic.js +33 -0
- package/dist/layout/components/toolbar/toolbars/ToolbarExtended.d.ts +3 -0
- package/dist/layout/components/toolbar/toolbars/ToolbarExtended.js +73 -0
- package/dist/layout/components/toolbar/toolbars/ToolbarReports.d.ts +3 -0
- package/dist/layout/components/toolbar/toolbars/ToolbarReports.js +59 -0
- package/dist/layout/components/toolbar/toolbars/ToolbarSaas.d.ts +3 -0
- package/dist/layout/components/toolbar/toolbars/ToolbarSaas.js +59 -0
- package/dist/layout/components/toolbar/toolbars/index.d.ts +5 -0
- package/dist/layout/components/toolbar/toolbars/index.js +21 -0
- package/dist/layout/core/MetronicSplashScreen.d.ts +7 -0
- package/dist/layout/core/MetronicSplashScreen.js +78 -0
- package/dist/layout/core/PageData.d.ts +25 -0
- package/dist/layout/core/PageData.js +96 -0
- package/dist/layout/core/_LayoutConfig.d.ts +2 -0
- package/dist/layout/core/_LayoutConfig.js +140 -0
- package/dist/layout/core/_LayoutProvider.d.ts +17 -0
- package/dist/layout/core/_LayoutProvider.js +114 -0
- package/dist/layout/core/_LayoutSetup.d.ts +33 -0
- package/dist/layout/core/_LayoutSetup.js +218 -0
- package/dist/layout/core/_Models.d.ts +247 -0
- package/dist/layout/core/_Models.js +2 -0
- package/dist/layout/core/index.d.ts +6 -0
- package/dist/layout/core/index.js +22 -0
- package/dist/layout/index.d.ts +12 -0
- package/dist/layout/index.js +33 -0
- package/dist/partials/chat/ChatInner.d.ts +6 -0
- package/dist/partials/chat/ChatInner.js +114 -0
- package/dist/partials/content/activity/Item1.d.ts +3 -0
- package/dist/partials/content/activity/Item1.js +50 -0
- package/dist/partials/content/activity/Item2.d.ts +3 -0
- package/dist/partials/content/activity/Item2.js +23 -0
- package/dist/partials/content/activity/Item3.d.ts +3 -0
- package/dist/partials/content/activity/Item3.js +40 -0
- package/dist/partials/content/activity/Item4.d.ts +3 -0
- package/dist/partials/content/activity/Item4.js +31 -0
- package/dist/partials/content/activity/Item5.d.ts +3 -0
- package/dist/partials/content/activity/Item5.js +40 -0
- package/dist/partials/content/activity/Item6.d.ts +3 -0
- package/dist/partials/content/activity/Item6.js +27 -0
- package/dist/partials/content/activity/Item7.d.ts +3 -0
- package/dist/partials/content/activity/Item7.js +31 -0
- package/dist/partials/content/activity/Item8.d.ts +3 -0
- package/dist/partials/content/activity/Item8.js +26 -0
- package/dist/partials/content/activity/index.d.ts +8 -0
- package/dist/partials/content/activity/index.js +24 -0
- package/dist/partials/content/cards/Card1.d.ts +12 -0
- package/dist/partials/content/cards/Card1.js +28 -0
- package/dist/partials/content/cards/Card2.d.ts +14 -0
- package/dist/partials/content/cards/Card2.js +32 -0
- package/dist/partials/content/cards/Card3.d.ts +12 -0
- package/dist/partials/content/cards/Card3.js +30 -0
- package/dist/partials/content/cards/Card4.d.ts +8 -0
- package/dist/partials/content/cards/Card4.js +19 -0
- package/dist/partials/content/cards/Card5.d.ts +13 -0
- package/dist/partials/content/cards/Card5.js +38 -0
- package/dist/partials/content/code-highlight/CodeBlock.d.ts +7 -0
- package/dist/partials/content/code-highlight/CodeBlock.js +75 -0
- package/dist/partials/content/dropdown/Dropdown1.d.ts +2 -0
- package/dist/partials/content/dropdown/Dropdown1.js +41 -0
- package/dist/partials/content/dropdown/Dropdown2.d.ts +3 -0
- package/dist/partials/content/dropdown/Dropdown2.js +35 -0
- package/dist/partials/content/dropdown/Dropdown3.d.ts +3 -0
- package/dist/partials/content/dropdown/Dropdown3.js +40 -0
- package/dist/partials/content/editor/EditorToolbar.d.ts +58 -0
- package/dist/partials/content/editor/EditorToolbar.js +54 -0
- package/dist/partials/content/portal/Portal.d.ts +12 -0
- package/dist/partials/content/portal/Portal.js +25 -0
- package/dist/partials/index.d.ts +22 -0
- package/dist/partials/index.js +42 -0
- package/dist/partials/layout/InboxCompose.d.ts +7 -0
- package/dist/partials/layout/InboxCompose.js +98 -0
- package/dist/partials/layout/RightToolbar.d.ts +3 -0
- package/dist/partials/layout/RightToolbar.js +18 -0
- package/dist/partials/layout/SearchModal.d.ts +7 -0
- package/dist/partials/layout/SearchModal.js +62 -0
- package/dist/partials/layout/activity-drawer/ActivityDrawer.d.ts +3 -0
- package/dist/partials/layout/activity-drawer/ActivityDrawer.js +40 -0
- package/dist/partials/layout/create-app/CreateApp.d.ts +3 -0
- package/dist/partials/layout/create-app/CreateApp.js +11 -0
- package/dist/partials/layout/drawer-messenger/DrawerMessenger.d.ts +3 -0
- package/dist/partials/layout/drawer-messenger/DrawerMessenger.js +26 -0
- package/dist/partials/layout/header-menus/HeaderNotificationsMenu.d.ts +3 -0
- package/dist/partials/layout/header-menus/HeaderNotificationsMenu.js +58 -0
- package/dist/partials/layout/header-menus/HeaderUserMenu.d.ts +3 -0
- package/dist/partials/layout/header-menus/HeaderUserMenu.js +58 -0
- package/dist/partials/layout/header-menus/Languages.d.ts +3 -0
- package/dist/partials/layout/header-menus/Languages.js +62 -0
- package/dist/partials/layout/help-drawer/HelpDrawer.d.ts +3 -0
- package/dist/partials/layout/help-drawer/HelpDrawer.js +62 -0
- package/dist/partials/layout/help-drawer/ToggleHelpDrawer.d.ts +3 -0
- package/dist/partials/layout/help-drawer/ToggleHelpDrawer.js +9 -0
- package/dist/partials/layout/purchase/PurchaseButton.d.ts +3 -0
- package/dist/partials/layout/purchase/PurchaseButton.js +12 -0
- package/dist/partials/layout/quick-links/QuicLinks.d.ts +3 -0
- package/dist/partials/layout/quick-links/QuicLinks.js +39 -0
- package/dist/partials/layout/search/Search.d.ts +3 -0
- package/dist/partials/layout/search/Search.js +334 -0
- package/dist/partials/layout/search/SearchInner.d.ts +3 -0
- package/dist/partials/layout/search/SearchInner.js +37 -0
- package/dist/partials/layout/theme-mode/ThemeModeProvider.d.ts +17 -0
- package/dist/partials/layout/theme-mode/ThemeModeProvider.js +102 -0
- package/dist/partials/layout/theme-mode/ThemeModeSwitcher.d.ts +9 -0
- package/dist/partials/layout/theme-mode/ThemeModeSwitcher.js +42 -0
- package/dist/partials/modals/create-app-stepper/CreateAppModal.d.ts +7 -0
- package/dist/partials/modals/create-app-stepper/CreateAppModal.js +176 -0
- package/dist/partials/modals/create-app-stepper/IAppModels.d.ts +22 -0
- package/dist/partials/modals/create-app-stepper/IAppModels.js +9 -0
- package/dist/partials/modals/create-app-stepper/steps/Step1.d.ts +4 -0
- package/dist/partials/modals/create-app-stepper/steps/Step1.js +84 -0
- package/dist/partials/modals/create-app-stepper/steps/Step2.d.ts +4 -0
- package/dist/partials/modals/create-app-stepper/steps/Step2.js +57 -0
- package/dist/partials/modals/create-app-stepper/steps/Step3.d.ts +4 -0
- package/dist/partials/modals/create-app-stepper/steps/Step3.js +81 -0
- package/dist/partials/modals/create-app-stepper/steps/Step4.d.ts +4 -0
- package/dist/partials/modals/create-app-stepper/steps/Step4.js +47 -0
- package/dist/partials/modals/create-app-stepper/steps/Step5.d.ts +3 -0
- package/dist/partials/modals/create-app-stepper/steps/Step5.js +18 -0
- package/dist/partials/modals/invite-users/InviteUsers.d.ts +3 -0
- package/dist/partials/modals/invite-users/InviteUsers.js +161 -0
- package/dist/partials/modals/select-location/SelectLocationModal.d.ts +11 -0
- package/dist/partials/modals/select-location/SelectLocationModal.js +58 -0
- package/dist/partials/modals/upgrade-plan/UpgradePlan.d.ts +3 -0
- package/dist/partials/modals/upgrade-plan/UpgradePlan.js +230 -0
- package/dist/partials/widgets/_new/cards/CardsWidget17.d.ts +9 -0
- package/dist/partials/widgets/_new/cards/CardsWidget17.js +122 -0
- package/dist/partials/widgets/_new/cards/CardsWidget20.d.ts +9 -0
- package/dist/partials/widgets/_new/cards/CardsWidget20.js +26 -0
- package/dist/partials/widgets/_new/cards/CardsWidget7.d.ts +11 -0
- package/dist/partials/widgets/_new/cards/CardsWidget7.js +35 -0
- package/dist/partials/widgets/_new/engage/EngageWidget10.d.ts +6 -0
- package/dist/partials/widgets/_new/engage/EngageWidget10.js +31 -0
- package/dist/partials/widgets/_new/lists/ListsWidget26.d.ts +6 -0
- package/dist/partials/widgets/_new/lists/ListsWidget26.js +47 -0
- package/dist/partials/widgets/charts/ChartsWidget1.d.ts +6 -0
- package/dist/partials/widgets/charts/ChartsWidget1.js +182 -0
- package/dist/partials/widgets/charts/ChartsWidget2.d.ts +6 -0
- package/dist/partials/widgets/charts/ChartsWidget2.js +180 -0
- package/dist/partials/widgets/charts/ChartsWidget3.d.ts +6 -0
- package/dist/partials/widgets/charts/ChartsWidget3.js +191 -0
- package/dist/partials/widgets/charts/ChartsWidget4.d.ts +6 -0
- package/dist/partials/widgets/charts/ChartsWidget4.js +196 -0
- package/dist/partials/widgets/charts/ChartsWidget5.d.ts +6 -0
- package/dist/partials/widgets/charts/ChartsWidget5.js +183 -0
- package/dist/partials/widgets/charts/ChartsWidget6.d.ts +6 -0
- package/dist/partials/widgets/charts/ChartsWidget6.js +195 -0
- package/dist/partials/widgets/charts/ChartsWidget7.d.ts +6 -0
- package/dist/partials/widgets/charts/ChartsWidget7.js +215 -0
- package/dist/partials/widgets/charts/ChartsWidget8.d.ts +6 -0
- package/dist/partials/widgets/charts/ChartsWidget8.js +218 -0
- package/dist/partials/widgets/engage/EngageWidget1.d.ts +11 -0
- package/dist/partials/widgets/engage/EngageWidget1.js +25 -0
- package/dist/partials/widgets/engage/EngageWidget2.d.ts +9 -0
- package/dist/partials/widgets/engage/EngageWidget2.js +22 -0
- package/dist/partials/widgets/engage/EngageWidget3.d.ts +9 -0
- package/dist/partials/widgets/engage/EngageWidget3.js +40 -0
- package/dist/partials/widgets/feeds/FeedsWidget2.d.ts +6 -0
- package/dist/partials/widgets/feeds/FeedsWidget2.js +43 -0
- package/dist/partials/widgets/feeds/FeedsWidget3.d.ts +6 -0
- package/dist/partials/widgets/feeds/FeedsWidget3.js +62 -0
- package/dist/partials/widgets/feeds/FeedsWidget4.d.ts +6 -0
- package/dist/partials/widgets/feeds/FeedsWidget4.js +43 -0
- package/dist/partials/widgets/feeds/FeedsWidget5.d.ts +6 -0
- package/dist/partials/widgets/feeds/FeedsWidget5.js +46 -0
- package/dist/partials/widgets/feeds/FeedsWidget6.d.ts +6 -0
- package/dist/partials/widgets/feeds/FeedsWidget6.js +45 -0
- package/dist/partials/widgets/index.d.ts +71 -0
- package/dist/partials/widgets/index.js +97 -0
- package/dist/partials/widgets/lists/ListsWidget1.d.ts +6 -0
- package/dist/partials/widgets/lists/ListsWidget1.js +58 -0
- package/dist/partials/widgets/lists/ListsWidget2.d.ts +6 -0
- package/dist/partials/widgets/lists/ListsWidget2.js +51 -0
- package/dist/partials/widgets/lists/ListsWidget3.d.ts +6 -0
- package/dist/partials/widgets/lists/ListsWidget3.js +69 -0
- package/dist/partials/widgets/lists/ListsWidget4.d.ts +7 -0
- package/dist/partials/widgets/lists/ListsWidget4.js +77 -0
- package/dist/partials/widgets/lists/ListsWidget5.d.ts +6 -0
- package/dist/partials/widgets/lists/ListsWidget5.js +74 -0
- package/dist/partials/widgets/lists/ListsWidget6.d.ts +6 -0
- package/dist/partials/widgets/lists/ListsWidget6.js +48 -0
- package/dist/partials/widgets/lists/ListsWidget7.d.ts +6 -0
- package/dist/partials/widgets/lists/ListsWidget7.js +54 -0
- package/dist/partials/widgets/lists/ListsWidget8.d.ts +6 -0
- package/dist/partials/widgets/lists/ListsWidget8.js +74 -0
- package/dist/partials/widgets/lists/ListsWidget9.d.ts +6 -0
- package/dist/partials/widgets/lists/ListsWidget9.js +89 -0
- package/dist/partials/widgets/mixed/MixedWidget1.d.ts +7 -0
- package/dist/partials/widgets/mixed/MixedWidget1.js +70 -0
- package/dist/partials/widgets/mixed/MixedWidget10.d.ts +8 -0
- package/dist/partials/widgets/mixed/MixedWidget10.js +188 -0
- package/dist/partials/widgets/mixed/MixedWidget11.d.ts +8 -0
- package/dist/partials/widgets/mixed/MixedWidget11.js +180 -0
- package/dist/partials/widgets/mixed/MixedWidget13.d.ts +8 -0
- package/dist/partials/widgets/mixed/MixedWidget13.js +204 -0
- package/dist/partials/widgets/mixed/MixedWidget14.d.ts +8 -0
- package/dist/partials/widgets/mixed/MixedWidget14.js +166 -0
- package/dist/partials/widgets/mixed/MixedWidget15.d.ts +7 -0
- package/dist/partials/widgets/mixed/MixedWidget15.js +49 -0
- package/dist/partials/widgets/mixed/MixedWidget2.d.ts +9 -0
- package/dist/partials/widgets/mixed/MixedWidget2.js +213 -0
- package/dist/partials/widgets/mixed/MixedWidget3.d.ts +8 -0
- package/dist/partials/widgets/mixed/MixedWidget3.js +207 -0
- package/dist/partials/widgets/mixed/MixedWidget4.d.ts +11 -0
- package/dist/partials/widgets/mixed/MixedWidget4.js +43 -0
- package/dist/partials/widgets/mixed/MixedWidget5.d.ts +10 -0
- package/dist/partials/widgets/mixed/MixedWidget5.js +29 -0
- package/dist/partials/widgets/mixed/MixedWidget6.d.ts +8 -0
- package/dist/partials/widgets/mixed/MixedWidget6.js +211 -0
- package/dist/partials/widgets/mixed/MixedWidget7.d.ts +8 -0
- package/dist/partials/widgets/mixed/MixedWidget7.js +125 -0
- package/dist/partials/widgets/mixed/MixedWidget8.d.ts +8 -0
- package/dist/partials/widgets/mixed/MixedWidget8.js +239 -0
- package/dist/partials/widgets/mixed/MixedWidget9.d.ts +8 -0
- package/dist/partials/widgets/mixed/MixedWidget9.js +227 -0
- package/dist/partials/widgets/statistics/StatisticsWidget1.d.ts +10 -0
- package/dist/partials/widgets/statistics/StatisticsWidget1.js +21 -0
- package/dist/partials/widgets/statistics/StatisticsWidget2.d.ts +9 -0
- package/dist/partials/widgets/statistics/StatisticsWidget2.js +18 -0
- package/dist/partials/widgets/statistics/StatisticsWidget3.d.ts +10 -0
- package/dist/partials/widgets/statistics/StatisticsWidget3.js +189 -0
- package/dist/partials/widgets/statistics/StatisticsWidget4.d.ts +10 -0
- package/dist/partials/widgets/statistics/StatisticsWidget4.js +191 -0
- package/dist/partials/widgets/statistics/StatisticsWidget5.d.ts +13 -0
- package/dist/partials/widgets/statistics/StatisticsWidget5.js +17 -0
- package/dist/partials/widgets/statistics/StatisticsWidget6.d.ts +10 -0
- package/dist/partials/widgets/statistics/StatisticsWidget6.js +19 -0
- package/dist/partials/widgets/tables/TablesWidget1.d.ts +6 -0
- package/dist/partials/widgets/tables/TablesWidget1.js +117 -0
- package/dist/partials/widgets/tables/TablesWidget10.d.ts +6 -0
- package/dist/partials/widgets/tables/TablesWidget10.js +174 -0
- package/dist/partials/widgets/tables/TablesWidget11.d.ts +6 -0
- package/dist/partials/widgets/tables/TablesWidget11.js +163 -0
- package/dist/partials/widgets/tables/TablesWidget12.d.ts +6 -0
- package/dist/partials/widgets/tables/TablesWidget12.js +227 -0
- package/dist/partials/widgets/tables/TablesWidget13.d.ts +6 -0
- package/dist/partials/widgets/tables/TablesWidget13.js +186 -0
- package/dist/partials/widgets/tables/TablesWidget2.d.ts +6 -0
- package/dist/partials/widgets/tables/TablesWidget2.js +113 -0
- package/dist/partials/widgets/tables/TablesWidget3.d.ts +6 -0
- package/dist/partials/widgets/tables/TablesWidget3.js +83 -0
- package/dist/partials/widgets/tables/TablesWidget4.d.ts +6 -0
- package/dist/partials/widgets/tables/TablesWidget4.js +357 -0
- package/dist/partials/widgets/tables/TablesWidget5.d.ts +6 -0
- package/dist/partials/widgets/tables/TablesWidget5.js +228 -0
- package/dist/partials/widgets/tables/TablesWidget6.d.ts +6 -0
- package/dist/partials/widgets/tables/TablesWidget6.js +249 -0
- package/dist/partials/widgets/tables/TablesWidget7.d.ts +6 -0
- package/dist/partials/widgets/tables/TablesWidget7.js +249 -0
- package/dist/partials/widgets/tables/TablesWidget8.d.ts +6 -0
- package/dist/partials/widgets/tables/TablesWidget8.js +222 -0
- package/dist/partials/widgets/tables/TablesWidget9.d.ts +6 -0
- package/dist/partials/widgets/tables/TablesWidget9.js +174 -0
- package/dist/partials/widgets/tiles/TilesWidget1.d.ts +8 -0
- package/dist/partials/widgets/tiles/TilesWidget1.js +18 -0
- package/dist/partials/widgets/tiles/TilesWidget2.d.ts +9 -0
- package/dist/partials/widgets/tiles/TilesWidget2.js +28 -0
- package/dist/partials/widgets/tiles/TilesWidget3.d.ts +9 -0
- package/dist/partials/widgets/tiles/TilesWidget3.js +21 -0
- package/dist/partials/widgets/tiles/TilesWidget4.d.ts +6 -0
- package/dist/partials/widgets/tiles/TilesWidget4.js +18 -0
- package/dist/partials/widgets/tiles/TilesWidget5.d.ts +12 -0
- package/dist/partials/widgets/tiles/TilesWidget5.js +19 -0
- 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,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,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,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,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,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,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,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;
|