@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,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultScrollTopOptions = exports.ScrollTopComponent = void 0;
|
|
4
|
+
var index_1 = require("../_utils/index");
|
|
5
|
+
var defaultScrollTopOptions = {
|
|
6
|
+
offset: 200,
|
|
7
|
+
speed: 600,
|
|
8
|
+
};
|
|
9
|
+
exports.defaultScrollTopOptions = defaultScrollTopOptions;
|
|
10
|
+
var ScrollTopComponent = /** @class */ (function () {
|
|
11
|
+
function ScrollTopComponent(_element, options) {
|
|
12
|
+
var _this = this;
|
|
13
|
+
this._handlers = function () {
|
|
14
|
+
var timer = 0;
|
|
15
|
+
window.addEventListener('scroll', function () {
|
|
16
|
+
(0, index_1.throttle)(timer, function () {
|
|
17
|
+
_this._scroll();
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
_this.element.addEventListener('click', function (e) {
|
|
21
|
+
e.preventDefault();
|
|
22
|
+
_this._go();
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
this._scroll = function () {
|
|
26
|
+
var offset = parseInt(_this._getOption('offset'));
|
|
27
|
+
var pos = (0, index_1.getScrollTop)(); // current vertical position
|
|
28
|
+
if (pos > offset) {
|
|
29
|
+
if (!document.body.hasAttribute('data-kt-scrolltop')) {
|
|
30
|
+
document.body.setAttribute('data-kt-scrolltop', 'on');
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
if (document.body.hasAttribute('data-kt-scrolltop')) {
|
|
35
|
+
document.body.removeAttribute('data-kt-scrolltop');
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
this._go = function () {
|
|
40
|
+
var speed = parseInt(_this._getOption('speed'));
|
|
41
|
+
index_1.ElementAnimateUtil.scrollTop(0, speed);
|
|
42
|
+
};
|
|
43
|
+
this._getOption = function (name) {
|
|
44
|
+
var attr = _this.element.getAttribute("data-kt-scrolltop-".concat(name));
|
|
45
|
+
if (attr) {
|
|
46
|
+
var value = (0, index_1.getAttributeValueByBreakpoint)(attr);
|
|
47
|
+
return value !== null && String(value) === 'true';
|
|
48
|
+
}
|
|
49
|
+
var optionName = (0, index_1.stringSnakeToCamel)(name);
|
|
50
|
+
var option = (0, index_1.getObjectPropertyValueByKey)(_this.options, optionName);
|
|
51
|
+
if (option) {
|
|
52
|
+
return (0, index_1.getAttributeValueByBreakpoint)(option);
|
|
53
|
+
}
|
|
54
|
+
return null;
|
|
55
|
+
};
|
|
56
|
+
///////////////////////
|
|
57
|
+
// ** Public API ** //
|
|
58
|
+
///////////////////////
|
|
59
|
+
// Plugin API
|
|
60
|
+
this.go = function () {
|
|
61
|
+
return _this._go();
|
|
62
|
+
};
|
|
63
|
+
this.getElement = function () {
|
|
64
|
+
return _this.element;
|
|
65
|
+
};
|
|
66
|
+
this.element = _element;
|
|
67
|
+
this.options = Object.assign(defaultScrollTopOptions, options);
|
|
68
|
+
this.instanceUid = (0, index_1.getUniqueIdWithPrefix)('scrolltop');
|
|
69
|
+
// Event Handlers
|
|
70
|
+
this._handlers();
|
|
71
|
+
// Bind Instance
|
|
72
|
+
index_1.DataUtil.set(this.element, 'scrolltop', this);
|
|
73
|
+
}
|
|
74
|
+
// Static methods
|
|
75
|
+
ScrollTopComponent.getInstance = function (el) {
|
|
76
|
+
var scrollTop = index_1.DataUtil.get(el, 'scrolltop');
|
|
77
|
+
if (scrollTop) {
|
|
78
|
+
return scrollTop;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
ScrollTopComponent.createInstances = function (selector) {
|
|
82
|
+
var elements = document.body.querySelectorAll(selector);
|
|
83
|
+
elements.forEach(function (el) {
|
|
84
|
+
var item = el;
|
|
85
|
+
var scrollTop = ScrollTopComponent.getInstance(item);
|
|
86
|
+
if (!scrollTop) {
|
|
87
|
+
scrollTop = new ScrollTopComponent(item, defaultScrollTopOptions);
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
ScrollTopComponent.createInsance = function (selector, options) {
|
|
92
|
+
if (options === void 0) { options = defaultScrollTopOptions; }
|
|
93
|
+
var element = document.body.querySelector(selector);
|
|
94
|
+
if (!element) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
var item = element;
|
|
98
|
+
var scrollTop = ScrollTopComponent.getInstance(item);
|
|
99
|
+
if (!scrollTop) {
|
|
100
|
+
scrollTop = new ScrollTopComponent(item, options);
|
|
101
|
+
}
|
|
102
|
+
return scrollTop;
|
|
103
|
+
};
|
|
104
|
+
ScrollTopComponent.bootstrap = function () {
|
|
105
|
+
ScrollTopComponent.createInstances('[data-kt-scrolltop="true"]');
|
|
106
|
+
};
|
|
107
|
+
ScrollTopComponent.reinitialization = function () {
|
|
108
|
+
ScrollTopComponent.createInstances('[data-kt-scrolltop="true"]');
|
|
109
|
+
};
|
|
110
|
+
ScrollTopComponent.goTop = function () {
|
|
111
|
+
index_1.ElementAnimateUtil.scrollTop(0, defaultScrollTopOptions.speed);
|
|
112
|
+
};
|
|
113
|
+
return ScrollTopComponent;
|
|
114
|
+
}());
|
|
115
|
+
exports.ScrollTopComponent = ScrollTopComponent;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface IStepperOptions {
|
|
2
|
+
startIndex: number;
|
|
3
|
+
animation: boolean;
|
|
4
|
+
animationSpeed: string;
|
|
5
|
+
animationNextClass: string;
|
|
6
|
+
animationPreviousClass: string;
|
|
7
|
+
}
|
|
8
|
+
declare const defaultStepperOptions: IStepperOptions;
|
|
9
|
+
declare class StepperComponent {
|
|
10
|
+
element: HTMLElement;
|
|
11
|
+
options: IStepperOptions;
|
|
12
|
+
instanceUid: string;
|
|
13
|
+
steps: NodeListOf<HTMLElement>;
|
|
14
|
+
btnNext: HTMLElement | null;
|
|
15
|
+
btnPrev: HTMLElement | null;
|
|
16
|
+
btnSubmit: HTMLElement | null;
|
|
17
|
+
totalStepsNumber: number;
|
|
18
|
+
passedStepIndex: number;
|
|
19
|
+
currentStepIndex: number;
|
|
20
|
+
constructor(_element: HTMLElement, options: IStepperOptions);
|
|
21
|
+
private _goTo;
|
|
22
|
+
private initHandlers;
|
|
23
|
+
private _getStepDirection;
|
|
24
|
+
private getStepContent;
|
|
25
|
+
private getLastStepIndex;
|
|
26
|
+
private getTotalStepsNumber;
|
|
27
|
+
private refreshUI;
|
|
28
|
+
private isLastStep;
|
|
29
|
+
private isFirstStep;
|
|
30
|
+
private isBetweenStep;
|
|
31
|
+
goto: (index: number) => void;
|
|
32
|
+
goNext: () => void;
|
|
33
|
+
goPrev: () => void;
|
|
34
|
+
goFirst: () => void;
|
|
35
|
+
goLast: () => void;
|
|
36
|
+
getCurrentStepIndex: () => number;
|
|
37
|
+
getNextStepIndex: () => number;
|
|
38
|
+
getPassedStepIndex: () => number;
|
|
39
|
+
getPrevStepIndex: () => number;
|
|
40
|
+
getElement: (index: number) => HTMLElement;
|
|
41
|
+
on: (name: string, handler: Function) => void;
|
|
42
|
+
one: (name: string, handler: Function) => void;
|
|
43
|
+
off: (name: string, handlerId: string) => void;
|
|
44
|
+
destroy: () => void;
|
|
45
|
+
trigger: (name: string, event: Event) => boolean;
|
|
46
|
+
static hasInstace(element: HTMLElement): boolean;
|
|
47
|
+
static getInstance(element: HTMLElement): StepperComponent | undefined;
|
|
48
|
+
static createInstances(selector: string): void;
|
|
49
|
+
static createInsance: (element: HTMLElement, options?: IStepperOptions) => StepperComponent | null;
|
|
50
|
+
static bootstrap(attr?: string): void;
|
|
51
|
+
}
|
|
52
|
+
export { StepperComponent, defaultStepperOptions };
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultStepperOptions = exports.StepperComponent = void 0;
|
|
4
|
+
var index_1 = require("../_utils/index");
|
|
5
|
+
var defaultStepperOptions = {
|
|
6
|
+
startIndex: 1,
|
|
7
|
+
animation: false,
|
|
8
|
+
animationSpeed: '0.3s',
|
|
9
|
+
animationNextClass: 'animate__animated animate__slideInRight animate__fast',
|
|
10
|
+
animationPreviousClass: 'animate__animated animate__slideInLeft animate__fast',
|
|
11
|
+
};
|
|
12
|
+
exports.defaultStepperOptions = defaultStepperOptions;
|
|
13
|
+
var StepperComponent = /** @class */ (function () {
|
|
14
|
+
function StepperComponent(_element, options) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _a;
|
|
17
|
+
this.totalStepsNumber = 0;
|
|
18
|
+
this.passedStepIndex = 0;
|
|
19
|
+
this.currentStepIndex = 1;
|
|
20
|
+
this._goTo = function (index) {
|
|
21
|
+
index_1.EventHandlerUtil.trigger(_this.element, 'kt.stepper.change');
|
|
22
|
+
// Skip if this step is already shown
|
|
23
|
+
if (index === _this.currentStepIndex || index > _this.totalStepsNumber || index < 0) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
// Validate step number
|
|
27
|
+
index = parseInt(index.toString());
|
|
28
|
+
// Set current step
|
|
29
|
+
_this.passedStepIndex = _this.currentStepIndex;
|
|
30
|
+
_this.currentStepIndex = index;
|
|
31
|
+
// Refresh elements
|
|
32
|
+
_this.refreshUI();
|
|
33
|
+
index_1.EventHandlerUtil.trigger(_this.element, 'kt.stepper.changed');
|
|
34
|
+
};
|
|
35
|
+
this.initHandlers = function () {
|
|
36
|
+
var _a, _b;
|
|
37
|
+
(_a = _this.btnNext) === null || _a === void 0 ? void 0 : _a.addEventListener('click', function (e) {
|
|
38
|
+
e.preventDefault();
|
|
39
|
+
index_1.EventHandlerUtil.trigger(_this.element, 'kt.stepper.next', e);
|
|
40
|
+
});
|
|
41
|
+
(_b = _this.btnPrev) === null || _b === void 0 ? void 0 : _b.addEventListener('click', function (e) {
|
|
42
|
+
e.preventDefault();
|
|
43
|
+
index_1.EventHandlerUtil.trigger(_this.element, 'kt.stepper.previous', e);
|
|
44
|
+
});
|
|
45
|
+
index_1.DOMEventHandlerUtil.on(_this.element, '[data-kt-stepper-action="step"]', 'click', function (e) {
|
|
46
|
+
e.preventDefault();
|
|
47
|
+
if (_this.steps && _this.steps.length > 0) {
|
|
48
|
+
for (var i = 0; i < _this.steps.length; i++) {
|
|
49
|
+
if (_this.steps[i] === _this.element) {
|
|
50
|
+
var index = i + 1;
|
|
51
|
+
var stepDirection = _this._getStepDirection(index);
|
|
52
|
+
index_1.EventHandlerUtil.trigger(_this.element, "stepper.".concat(stepDirection), e);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
this._getStepDirection = function (index) {
|
|
60
|
+
return index > _this.currentStepIndex ? 'next' : 'previous';
|
|
61
|
+
};
|
|
62
|
+
this.getStepContent = function (index) {
|
|
63
|
+
var content = _this.element.querySelectorAll('[data-kt-stepper-element="content"]');
|
|
64
|
+
if (!content) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
if (content[index - 1]) {
|
|
68
|
+
return content[index - 1];
|
|
69
|
+
}
|
|
70
|
+
return false;
|
|
71
|
+
};
|
|
72
|
+
this.getLastStepIndex = function () {
|
|
73
|
+
return _this.totalStepsNumber;
|
|
74
|
+
};
|
|
75
|
+
this.getTotalStepsNumber = function () {
|
|
76
|
+
return _this.totalStepsNumber;
|
|
77
|
+
};
|
|
78
|
+
this.refreshUI = function () {
|
|
79
|
+
var state = '';
|
|
80
|
+
if (_this.isLastStep()) {
|
|
81
|
+
state = 'last';
|
|
82
|
+
}
|
|
83
|
+
else if (_this.isFirstStep()) {
|
|
84
|
+
state = 'first';
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
state = 'between';
|
|
88
|
+
}
|
|
89
|
+
// Set state class
|
|
90
|
+
_this.element.classList.remove('last');
|
|
91
|
+
_this.element.classList.remove('first');
|
|
92
|
+
_this.element.classList.remove('between');
|
|
93
|
+
_this.element.classList.add(state);
|
|
94
|
+
// Step Items
|
|
95
|
+
var elements = _this.element.querySelectorAll('[data-kt-stepper-element="nav"], [data-kt-stepper-element="content"], [data-kt-stepper-element="info"]');
|
|
96
|
+
if (!elements || elements.length <= 0) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
for (var i = 0, len = elements.length; i < len; i++) {
|
|
100
|
+
var element = elements[i];
|
|
101
|
+
var index = (0, index_1.getElementIndex)(element) + 1;
|
|
102
|
+
element.classList.remove('current');
|
|
103
|
+
element.classList.remove('completed');
|
|
104
|
+
element.classList.remove('pending');
|
|
105
|
+
if (index === _this.currentStepIndex) {
|
|
106
|
+
element.classList.add('current');
|
|
107
|
+
if (_this.options.animation !== false &&
|
|
108
|
+
element.getAttribute('data-kt-stepper-element') === 'content') {
|
|
109
|
+
index_1.ElementStyleUtil.set(element, 'animationDuration', _this.options.animationSpeed);
|
|
110
|
+
var animation = _this._getStepDirection(_this.passedStepIndex) === 'previous'
|
|
111
|
+
? _this.options.animationPreviousClass
|
|
112
|
+
: _this.options.animationNextClass;
|
|
113
|
+
index_1.ElementAnimateUtil.animateClass(element, animation);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
if (index < _this.currentStepIndex) {
|
|
118
|
+
element.classList.add('completed');
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
element.classList.add('pending');
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
this.isLastStep = function () {
|
|
127
|
+
return _this.currentStepIndex === _this.totalStepsNumber;
|
|
128
|
+
};
|
|
129
|
+
this.isFirstStep = function () {
|
|
130
|
+
return _this.currentStepIndex === 1;
|
|
131
|
+
};
|
|
132
|
+
this.isBetweenStep = function () {
|
|
133
|
+
return _this.isLastStep() === false && _this.isFirstStep() === false;
|
|
134
|
+
};
|
|
135
|
+
// ///////////////////////
|
|
136
|
+
// // ** Public API ** //
|
|
137
|
+
// ///////////////////////
|
|
138
|
+
// // Plugin API
|
|
139
|
+
this.goto = function (index) {
|
|
140
|
+
return _this._goTo(index);
|
|
141
|
+
};
|
|
142
|
+
this.goNext = function () {
|
|
143
|
+
return _this.goto(_this.getNextStepIndex());
|
|
144
|
+
};
|
|
145
|
+
this.goPrev = function () {
|
|
146
|
+
return _this.goto(_this.getPrevStepIndex());
|
|
147
|
+
};
|
|
148
|
+
this.goFirst = function () {
|
|
149
|
+
return _this.goto(1);
|
|
150
|
+
};
|
|
151
|
+
this.goLast = function () {
|
|
152
|
+
return _this.goto(_this.getLastStepIndex());
|
|
153
|
+
};
|
|
154
|
+
this.getCurrentStepIndex = function () {
|
|
155
|
+
return _this.currentStepIndex;
|
|
156
|
+
};
|
|
157
|
+
this.getNextStepIndex = function () {
|
|
158
|
+
if (_this.totalStepsNumber >= _this.currentStepIndex + 1) {
|
|
159
|
+
return _this.currentStepIndex + 1;
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
return _this.totalStepsNumber;
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
this.getPassedStepIndex = function () {
|
|
166
|
+
return _this.passedStepIndex;
|
|
167
|
+
};
|
|
168
|
+
this.getPrevStepIndex = function () {
|
|
169
|
+
if (_this.currentStepIndex - 1 > 1) {
|
|
170
|
+
return _this.currentStepIndex - 1;
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
return 1;
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
this.getElement = function (index) {
|
|
177
|
+
return _this.element;
|
|
178
|
+
};
|
|
179
|
+
// Event API
|
|
180
|
+
this.on = function (name, handler) {
|
|
181
|
+
return index_1.EventHandlerUtil.on(_this.element, name, handler);
|
|
182
|
+
};
|
|
183
|
+
this.one = function (name, handler) {
|
|
184
|
+
return index_1.EventHandlerUtil.one(_this.element, name, handler);
|
|
185
|
+
};
|
|
186
|
+
this.off = function (name, handlerId) {
|
|
187
|
+
return index_1.EventHandlerUtil.off(_this.element, name, handlerId);
|
|
188
|
+
};
|
|
189
|
+
this.destroy = function () {
|
|
190
|
+
console.log('destroy stepper');
|
|
191
|
+
};
|
|
192
|
+
this.trigger = function (name, event) {
|
|
193
|
+
return index_1.EventHandlerUtil.trigger(_this.element, name, event);
|
|
194
|
+
};
|
|
195
|
+
this.element = _element;
|
|
196
|
+
this.options = Object.assign(defaultStepperOptions, options);
|
|
197
|
+
this.instanceUid = (0, index_1.getUniqueIdWithPrefix)('stepper');
|
|
198
|
+
// Elements
|
|
199
|
+
this.steps = this.element.querySelectorAll('[data-kt-stepper-element="nav"]');
|
|
200
|
+
this.btnNext = this.element.querySelector('[data-kt-stepper-action="next"]');
|
|
201
|
+
this.btnPrev = this.element.querySelector('[data-kt-stepper-action="previous"]');
|
|
202
|
+
this.btnSubmit = this.element.querySelector('[data-kt-stepper-action="submit"]');
|
|
203
|
+
// Variables
|
|
204
|
+
this.totalStepsNumber = ((_a = this.steps) === null || _a === void 0 ? void 0 : _a.length) | 0;
|
|
205
|
+
this.passedStepIndex = 0;
|
|
206
|
+
this.currentStepIndex = 1;
|
|
207
|
+
// Set Current Step
|
|
208
|
+
if (this.options.startIndex > 1) {
|
|
209
|
+
this._goTo(this.options.startIndex);
|
|
210
|
+
}
|
|
211
|
+
// Event Handlers
|
|
212
|
+
this.initHandlers();
|
|
213
|
+
// Bind Instance
|
|
214
|
+
index_1.DataUtil.set(this.element, 'stepper', this);
|
|
215
|
+
}
|
|
216
|
+
// Static methods
|
|
217
|
+
StepperComponent.hasInstace = function (element) {
|
|
218
|
+
return index_1.DataUtil.has(element, 'stepper');
|
|
219
|
+
};
|
|
220
|
+
StepperComponent.getInstance = function (element) {
|
|
221
|
+
if (element !== null && StepperComponent.hasInstace(element)) {
|
|
222
|
+
var data = index_1.DataUtil.get(element, 'stepper');
|
|
223
|
+
if (data) {
|
|
224
|
+
return data;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
// Create Instances
|
|
229
|
+
StepperComponent.createInstances = function (selector) {
|
|
230
|
+
var elements = document.body.querySelectorAll(selector);
|
|
231
|
+
elements.forEach(function (element) {
|
|
232
|
+
var item = element;
|
|
233
|
+
var stepper = StepperComponent.getInstance(item);
|
|
234
|
+
if (!stepper) {
|
|
235
|
+
stepper = new StepperComponent(item, defaultStepperOptions);
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
};
|
|
239
|
+
StepperComponent.bootstrap = function (attr) {
|
|
240
|
+
if (attr === void 0) { attr = '[data-kt-stepper]'; }
|
|
241
|
+
StepperComponent.createInstances(attr);
|
|
242
|
+
};
|
|
243
|
+
StepperComponent.createInsance = function (element, options) {
|
|
244
|
+
if (options === void 0) { options = defaultStepperOptions; }
|
|
245
|
+
if (!element) {
|
|
246
|
+
return null;
|
|
247
|
+
}
|
|
248
|
+
var stepper = StepperComponent.getInstance(element);
|
|
249
|
+
if (!stepper) {
|
|
250
|
+
stepper = new StepperComponent(element, options);
|
|
251
|
+
}
|
|
252
|
+
return stepper;
|
|
253
|
+
};
|
|
254
|
+
return StepperComponent;
|
|
255
|
+
}());
|
|
256
|
+
exports.StepperComponent = StepperComponent;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface StickyOptions {
|
|
2
|
+
offset: number;
|
|
3
|
+
reverse: boolean;
|
|
4
|
+
animation: boolean;
|
|
5
|
+
animationSpeed: string;
|
|
6
|
+
animationClass: string;
|
|
7
|
+
}
|
|
8
|
+
declare const defaultStickyOptions: StickyOptions;
|
|
9
|
+
declare class StickyComponent {
|
|
10
|
+
element: HTMLElement;
|
|
11
|
+
options: StickyOptions;
|
|
12
|
+
instanceUid: string;
|
|
13
|
+
instanceName: string | null;
|
|
14
|
+
attributeName: string;
|
|
15
|
+
attributeName2: string;
|
|
16
|
+
eventTriggerState: boolean;
|
|
17
|
+
lastScrollTop: number;
|
|
18
|
+
constructor(_element: HTMLElement, options: StickyOptions);
|
|
19
|
+
private scroll;
|
|
20
|
+
private getOption;
|
|
21
|
+
private disable;
|
|
22
|
+
private enable;
|
|
23
|
+
update: () => void;
|
|
24
|
+
on: (name: string, callBack: Function) => void;
|
|
25
|
+
one: (name: string, callback: Function) => void;
|
|
26
|
+
off: (name: string, handlerId: string) => void;
|
|
27
|
+
trigger: (name: string) => boolean;
|
|
28
|
+
static hasInstace(element: HTMLElement): boolean;
|
|
29
|
+
static getInstance(element: HTMLElement): StickyComponent | undefined;
|
|
30
|
+
static createInstances(selector: string): void;
|
|
31
|
+
static createInsance: (selector: string, options?: StickyOptions) => StickyComponent | undefined;
|
|
32
|
+
static bootstrap(attr?: string): void;
|
|
33
|
+
static reInitialization(attr?: string): void;
|
|
34
|
+
}
|
|
35
|
+
export { StickyComponent, defaultStickyOptions };
|