design-angular-kit 1.2.1 → 1.3.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 +461 -0
- package/assets/i18n/en.json +89 -0
- package/assets/i18n/it.json +89 -0
- package/esm2022/design-angular-kit.mjs +5 -0
- package/esm2022/lib/abstracts/abstract-form.component.mjs +199 -0
- package/esm2022/lib/abstracts/abstract.component.mjs +46 -0
- package/esm2022/lib/components/core/accordion/accordion.component.mjs +39 -0
- package/esm2022/lib/components/core/alert/alert.component.mjs +71 -0
- package/esm2022/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.mjs +43 -0
- package/esm2022/lib/components/core/avatar/avatar-group/avatar-group.component.mjs +40 -0
- package/esm2022/lib/components/core/avatar/avatar.directive.mjs +78 -0
- package/esm2022/lib/components/core/avatar/avatar.module.mjs +33 -0
- package/esm2022/lib/components/core/badge/badge.directive.mjs +39 -0
- package/esm2022/lib/components/core/button/button.directive.mjs +80 -0
- package/esm2022/lib/components/core/callout/callout.component.mjs +64 -0
- package/esm2022/lib/components/core/card/card.component.mjs +59 -0
- package/esm2022/lib/components/core/carousel/carousel/carousel.component.mjs +86 -0
- package/esm2022/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +19 -0
- package/esm2022/lib/components/core/carousel/carousel.module.mjs +18 -0
- package/esm2022/lib/components/core/chip/chip.component.mjs +136 -0
- package/esm2022/lib/components/core/collapse/collapse.component.mjs +116 -0
- package/esm2022/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +27 -0
- package/esm2022/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +11 -0
- package/esm2022/lib/components/core/dimmer/dimmer.component.mjs +55 -0
- package/esm2022/lib/components/core/dimmer/dimmer.module.mjs +19 -0
- package/esm2022/lib/components/core/dropdown/dropdown/dropdown.component.mjs +147 -0
- package/esm2022/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +70 -0
- package/esm2022/lib/components/core/dropdown/dropdown.module.mjs +18 -0
- package/esm2022/lib/components/core/forward/forward.directive.mjs +57 -0
- package/esm2022/lib/components/core/link/link.component.mjs +42 -0
- package/esm2022/lib/components/core/list/list/list.component.mjs +22 -0
- package/esm2022/lib/components/core/list/list-item/list-item.component.mjs +56 -0
- package/esm2022/lib/components/core/list/list.module.mjs +18 -0
- package/esm2022/lib/components/core/modal/modal.component.mjs +194 -0
- package/esm2022/lib/components/core/notifications/notifications.component.mjs +111 -0
- package/esm2022/lib/components/core/pagination/pagination.component.mjs +130 -0
- package/esm2022/lib/components/core/popover/popover.directive.mjs +176 -0
- package/esm2022/lib/components/core/progress-bar/progress-bar.component.mjs +34 -0
- package/esm2022/lib/components/core/progress-button/progress-button.component.mjs +25 -0
- package/esm2022/lib/components/core/spinner/spinner.component.mjs +30 -0
- package/esm2022/lib/components/core/steppers/steppers-container/steppers-container.component.mjs +116 -0
- package/esm2022/lib/components/core/steppers/steppers-item/steppers-item.component.mjs +22 -0
- package/esm2022/lib/components/core/steppers/steppers.module.mjs +18 -0
- package/esm2022/lib/components/core/tab/tab-container/tab-container.component.mjs +97 -0
- package/esm2022/lib/components/core/tab/tab-item/tab-item.component.mjs +39 -0
- package/esm2022/lib/components/core/tab/tab.module.mjs +18 -0
- package/esm2022/lib/components/core/table/sort/sort-header/sort-header.component.mjs +134 -0
- package/esm2022/lib/components/core/table/sort/sort.directive.mjs +123 -0
- package/esm2022/lib/components/core/table/table.component.mjs +45 -0
- package/esm2022/lib/components/core/table/table.module.mjs +19 -0
- package/esm2022/lib/components/core/timeline/timeline-item/timeline-item.component.mjs +90 -0
- package/esm2022/lib/components/core/timeline/timeline.component.mjs +36 -0
- package/esm2022/lib/components/core/timeline/timeline.module.mjs +18 -0
- package/esm2022/lib/components/core/tooltip/tooltip.directive.mjs +143 -0
- package/esm2022/lib/components/core/video-player/video-player-i18n.model.mjs +2 -0
- package/esm2022/lib/components/core/video-player/video-player-i18n.service.mjs +130 -0
- package/esm2022/lib/components/core/video-player/video-player.component.mjs +303 -0
- package/esm2022/lib/components/core/video-player/video-player.config.mjs +43 -0
- package/esm2022/lib/components/core/video-player/video-player.cookie.mjs +25 -0
- package/esm2022/lib/components/core/video-player/video-player.model.mjs +3 -0
- package/esm2022/lib/components/core/video-player/video-player.module.mjs +16 -0
- package/esm2022/lib/components/form/autocomplete/autocomplete.component.mjs +178 -0
- package/esm2022/lib/components/form/checkbox/checkbox.component.mjs +48 -0
- package/esm2022/lib/components/form/form.module.mjs +67 -0
- package/esm2022/lib/components/form/input/input.component.mjs +190 -0
- package/esm2022/lib/components/form/password-input/password-input.component.mjs +149 -0
- package/esm2022/lib/components/form/radio-button/radio-button.component.mjs +60 -0
- package/esm2022/lib/components/form/range/range.component.mjs +64 -0
- package/esm2022/lib/components/form/rating/rating.component.mjs +50 -0
- package/esm2022/lib/components/form/search/search.component.mjs +112 -0
- package/esm2022/lib/components/form/select/select.component.mjs +70 -0
- package/esm2022/lib/components/form/textarea/textarea.component.mjs +55 -0
- package/esm2022/lib/components/form/transfer/store/transfer.reducers.mjs +191 -0
- package/esm2022/lib/components/form/transfer/store/transfer.state.mjs +2 -0
- package/esm2022/lib/components/form/transfer/store/transfer.store.mjs +70 -0
- package/esm2022/lib/components/form/transfer/transfer-list/transfer-list.component.mjs +72 -0
- package/esm2022/lib/components/form/transfer/transfer.component.mjs +149 -0
- package/esm2022/lib/components/form/transfer/transfer.model.mjs +6 -0
- package/esm2022/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +142 -0
- package/esm2022/lib/components/form/upload-file-list/upload-file-list.component.mjs +107 -0
- package/esm2022/lib/components/navigation/back-button/back-button.component.mjs +67 -0
- package/esm2022/lib/components/navigation/back-to-top/back-to-top.component.mjs +68 -0
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +51 -0
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +21 -0
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumbs.module.mjs +18 -0
- package/esm2022/lib/components/navigation/header/header.component.mjs +103 -0
- package/esm2022/lib/components/navigation/megamenu/megamenu.component.mjs +27 -0
- package/esm2022/lib/components/navigation/navbar/navbar/navbar.component.mjs +49 -0
- package/esm2022/lib/components/navigation/navbar/navbar-item/navbar-item.component.mjs +11 -0
- package/esm2022/lib/components/navigation/navbar/navbar.module.mjs +18 -0
- package/esm2022/lib/components/navigation/navscroll/navscroll-list-item.component.mjs +97 -0
- package/esm2022/lib/components/navigation/navscroll/navscroll-list-items.component.mjs +44 -0
- package/esm2022/lib/components/navigation/navscroll/navscroll.component.mjs +116 -0
- package/esm2022/lib/components/navigation/navscroll/navscroll.model.mjs +2 -0
- package/esm2022/lib/components/navigation/navscroll/navscroll.store.mjs +68 -0
- package/esm2022/lib/components/navigation/navscroll/navscroll.utils.mjs +23 -0
- package/esm2022/lib/components/navigation/sidebar/sidebar.component.mjs +50 -0
- package/esm2022/lib/components/navigation/skiplink/skiplink/skiplink.component.mjs +27 -0
- package/esm2022/lib/components/navigation/skiplink/skiplink-item/skiplink-item.component.mjs +26 -0
- package/esm2022/lib/components/navigation/skiplink/skiplink.module.mjs +18 -0
- package/esm2022/lib/components/utils/error-page/error-page.component.mjs +74 -0
- package/esm2022/lib/components/utils/icon/icon.component.mjs +63 -0
- package/esm2022/lib/components/utils/language-switcher/language-switcher.component.mjs +50 -0
- package/esm2022/lib/design-angular-kit.module.mjs +237 -0
- package/esm2022/lib/enums/colors.enums.mjs +12 -0
- package/esm2022/lib/enums/sizes.enum.mjs +9 -0
- package/esm2022/lib/interfaces/core.mjs +16 -0
- package/esm2022/lib/interfaces/design-angular-kit-config.mjs +7 -0
- package/esm2022/lib/interfaces/form.mjs +2 -0
- package/esm2022/lib/interfaces/icon.mjs +168 -0
- package/esm2022/lib/interfaces/sortable-table.mjs +6 -0
- package/esm2022/lib/interfaces/utils.mjs +2 -0
- package/esm2022/lib/pipes/date-ago.pipe.mjs +56 -0
- package/esm2022/lib/pipes/duration.pipe.mjs +115 -0
- package/esm2022/lib/pipes/mark-matching-text.pipe.mjs +48 -0
- package/esm2022/lib/provide-design-angular-kit.mjs +64 -0
- package/esm2022/lib/services/notification/notification.service.mjs +120 -0
- package/esm2022/lib/utils/coercion.mjs +18 -0
- package/esm2022/lib/utils/date-utils.mjs +162 -0
- package/esm2022/lib/utils/file-utils.mjs +73 -0
- package/esm2022/lib/utils/regex.mjs +35 -0
- package/esm2022/lib/validators/it-validators.mjs +161 -0
- package/esm2022/public_api.mjs +114 -0
- package/fesm2022/design-angular-kit.mjs +7423 -0
- package/fesm2022/design-angular-kit.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/abstracts/abstract-form.component.d.ts +89 -0
- package/lib/abstracts/abstract.component.d.ts +30 -0
- package/lib/components/core/accordion/accordion.component.d.ts +18 -0
- package/lib/components/core/alert/alert.component.d.ts +44 -0
- package/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.d.ts +29 -0
- package/lib/components/core/avatar/avatar-group/avatar-group.component.d.ts +15 -0
- package/lib/components/core/avatar/avatar.directive.d.ts +33 -0
- package/lib/components/core/avatar/avatar.module.d.ts +9 -0
- package/lib/components/core/badge/badge.directive.d.ts +23 -0
- package/lib/components/core/button/button.directive.d.ts +48 -0
- package/lib/components/core/callout/callout.component.d.ts +50 -0
- package/lib/components/core/card/card.component.d.ts +69 -0
- package/lib/components/core/carousel/carousel/carousel.component.d.ts +65 -0
- package/lib/components/core/carousel/carousel-item/carousel-item.component.d.ts +15 -0
- package/lib/components/core/carousel/carousel.module.d.ts +8 -0
- package/lib/components/core/chip/chip.component.d.ts +76 -0
- package/lib/components/core/collapse/collapse.component.d.ts +67 -0
- package/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.d.ts +12 -0
- package/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.d.ts +5 -0
- package/lib/components/core/dimmer/dimmer.component.d.ts +24 -0
- package/lib/components/core/dimmer/dimmer.module.d.ts +9 -0
- package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +94 -0
- package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +46 -0
- package/lib/components/core/dropdown/dropdown.module.d.ts +8 -0
- package/lib/components/core/forward/forward.directive.d.ts +14 -0
- package/lib/components/core/link/link.component.d.ts +35 -0
- package/lib/components/core/list/list/list.component.d.ts +24 -0
- package/lib/components/core/list/list-item/list-item.component.d.ts +41 -0
- package/lib/components/core/list/list.module.d.ts +8 -0
- package/lib/components/core/modal/modal.component.d.ts +135 -0
- package/lib/components/core/notifications/notifications.component.d.ts +45 -0
- package/lib/components/core/pagination/pagination.component.d.ts +92 -0
- package/lib/components/core/popover/popover.directive.d.ts +99 -0
- package/lib/components/core/progress-bar/progress-bar.component.d.ts +31 -0
- package/lib/components/core/progress-button/progress-button.component.d.ts +21 -0
- package/lib/components/core/spinner/spinner.component.d.ts +24 -0
- package/lib/components/core/steppers/steppers-container/steppers-container.component.d.ts +130 -0
- package/lib/components/core/steppers/steppers-item/steppers-item.component.d.ts +24 -0
- package/lib/components/core/steppers/steppers.module.d.ts +8 -0
- package/lib/components/core/tab/tab-container/tab-container.component.d.ts +60 -0
- package/lib/components/core/tab/tab-item/tab-item.component.d.ts +38 -0
- package/lib/components/core/tab/tab.module.d.ts +8 -0
- package/lib/components/core/table/sort/sort-header/sort-header.component.d.ts +72 -0
- package/lib/components/core/table/sort/sort.directive.d.ts +53 -0
- package/lib/components/core/table/table.component.d.ts +60 -0
- package/lib/components/core/table/table.module.d.ts +9 -0
- package/lib/components/core/timeline/timeline-item/timeline-item.component.d.ts +79 -0
- package/lib/components/core/timeline/timeline.component.d.ts +21 -0
- package/lib/components/core/timeline/timeline.module.d.ts +8 -0
- package/lib/components/core/tooltip/tooltip.directive.d.ts +82 -0
- package/lib/components/core/video-player/video-player-i18n.model.d.ts +179 -0
- package/lib/components/core/video-player/video-player-i18n.service.d.ts +17 -0
- package/lib/components/core/video-player/video-player.component.d.ts +48 -0
- package/lib/components/core/video-player/video-player.config.d.ts +68 -0
- package/lib/components/core/video-player/video-player.cookie.d.ts +6 -0
- package/lib/components/core/video-player/video-player.model.d.ts +44 -0
- package/lib/components/core/video-player/video-player.module.d.ts +7 -0
- package/lib/components/form/autocomplete/autocomplete.component.d.ts +75 -0
- package/lib/components/form/checkbox/checkbox.component.d.ts +41 -0
- package/lib/components/form/form.module.d.ts +19 -0
- package/lib/components/form/input/input.component.d.ts +95 -0
- package/lib/components/form/password-input/password-input.component.d.ts +80 -0
- package/lib/components/form/radio-button/radio-button.component.d.ts +38 -0
- package/lib/components/form/range/range.component.d.ts +42 -0
- package/lib/components/form/rating/rating.component.d.ts +24 -0
- package/lib/components/form/search/search.component.d.ts +59 -0
- package/lib/components/form/select/select.component.d.ts +36 -0
- package/lib/components/form/textarea/textarea.component.d.ts +34 -0
- package/lib/components/form/transfer/store/transfer.reducers.d.ts +103 -0
- package/lib/components/form/transfer/store/transfer.state.d.ts +18 -0
- package/lib/components/form/transfer/store/transfer.store.d.ts +23 -0
- package/lib/components/form/transfer/transfer-list/transfer-list.component.d.ts +48 -0
- package/lib/components/form/transfer/transfer.component.d.ts +75 -0
- package/{src/lib/components/form/transfer/transfer.model.ts → lib/components/form/transfer/transfer.model.d.ts} +2 -9
- package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +60 -0
- package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +62 -0
- package/lib/components/navigation/back-button/back-button.component.d.ts +47 -0
- package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +50 -0
- package/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +28 -0
- package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +23 -0
- package/lib/components/navigation/breadcrumbs/breadcrumbs.module.d.ts +8 -0
- package/lib/components/navigation/header/header.component.d.ts +38 -0
- package/lib/components/navigation/megamenu/megamenu.component.d.ts +22 -0
- package/lib/components/navigation/navbar/navbar/navbar.component.d.ts +19 -0
- package/lib/components/navigation/navbar/navbar-item/navbar-item.component.d.ts +5 -0
- package/lib/components/navigation/navbar/navbar.module.d.ts +8 -0
- package/lib/components/navigation/navscroll/navscroll-list-item.component.d.ts +16 -0
- package/lib/components/navigation/navscroll/navscroll-list-items.component.d.ts +7 -0
- package/lib/components/navigation/navscroll/navscroll.component.d.ts +47 -0
- package/{src/lib/components/navigation/navscroll/navscroll.model.ts → lib/components/navigation/navscroll/navscroll.model.d.ts} +5 -7
- package/lib/components/navigation/navscroll/navscroll.store.d.ts +16 -0
- package/lib/components/navigation/navscroll/navscroll.utils.d.ts +6 -0
- package/lib/components/navigation/sidebar/sidebar.component.d.ts +26 -0
- package/lib/components/navigation/skiplink/skiplink/skiplink.component.d.ts +17 -0
- package/lib/components/navigation/skiplink/skiplink-item/skiplink-item.component.d.ts +24 -0
- package/lib/components/navigation/skiplink/skiplink.module.d.ts +8 -0
- package/lib/components/utils/error-page/error-page.component.d.ts +44 -0
- package/lib/components/utils/icon/icon.component.d.ts +53 -0
- package/lib/components/utils/language-switcher/language-switcher.component.d.ts +27 -0
- package/lib/design-angular-kit.module.d.ts +54 -0
- package/lib/enums/colors.enums.d.ts +10 -0
- package/lib/enums/sizes.enum.d.ts +7 -0
- package/{src/lib/interfaces/core.ts → lib/interfaces/core.d.ts} +53 -95
- package/lib/interfaces/design-angular-kit-config.d.ts +30 -0
- package/lib/interfaces/form.d.ts +67 -0
- package/lib/interfaces/icon.d.ts +4 -0
- package/lib/interfaces/sortable-table.d.ts +33 -0
- package/lib/interfaces/utils.d.ts +10 -0
- package/lib/pipes/date-ago.pipe.d.ts +17 -0
- package/lib/pipes/duration.pipe.d.ts +35 -0
- package/lib/pipes/mark-matching-text.pipe.d.ts +18 -0
- package/lib/provide-design-angular-kit.d.ts +7 -0
- package/lib/services/notification/notification.service.d.ts +63 -0
- package/{src/lib/utils/coercion.ts → lib/utils/coercion.d.ts} +1 -7
- package/lib/utils/date-utils.d.ts +79 -0
- package/lib/utils/file-utils.d.ts +32 -0
- package/lib/utils/regex.d.ts +34 -0
- package/lib/validators/it-validators.d.ts +70 -0
- package/package.json +33 -15
- package/{src/public_api.ts → public_api.d.ts} +6 -45
- package/schematics/ng-add/index.d.ts +3 -0
- package/schematics/ng-add/index.js +29 -0
- package/schematics/ng-add/index.js.map +1 -0
- package/schematics/ng-add/index.spec.d.ts +1 -0
- package/schematics/ng-add/index.spec.js +43 -0
- package/schematics/ng-add/index.spec.js.map +1 -0
- package/schematics/ng-add/rules/setup-project/add-animations.d.ts +2 -0
- package/schematics/ng-add/rules/setup-project/add-animations.js +11 -0
- package/schematics/ng-add/rules/setup-project/add-animations.js.map +1 -0
- package/schematics/ng-add/rules/setup-project/add-assets.d.ts +3 -0
- package/schematics/ng-add/rules/setup-project/add-assets.js +50 -0
- package/schematics/ng-add/rules/setup-project/add-assets.js.map +1 -0
- package/schematics/ng-add/rules/setup-project/add-design-angular-kit.d.ts +3 -0
- package/schematics/ng-add/rules/setup-project/add-design-angular-kit.js +43 -0
- package/schematics/ng-add/rules/setup-project/add-design-angular-kit.js.map +1 -0
- package/schematics/ng-add/rules/setup-project/add-http-client.d.ts +2 -0
- package/schematics/ng-add/rules/setup-project/add-http-client.js +11 -0
- package/schematics/ng-add/rules/setup-project/add-http-client.js.map +1 -0
- package/schematics/ng-add/rules/setup-project/add-import-to-style-file.d.ts +11 -0
- package/schematics/ng-add/rules/setup-project/add-import-to-style-file.js +112 -0
- package/schematics/ng-add/rules/setup-project/add-import-to-style-file.js.map +1 -0
- package/schematics/ng-add/rules/setup-project/add-localisation.d.ts +3 -0
- package/schematics/ng-add/rules/setup-project/add-localisation.js +50 -0
- package/schematics/ng-add/rules/setup-project/add-localisation.js.map +1 -0
- package/schematics/ng-add/rules/setup-project/angular-json-helper.d.ts +2 -0
- package/schematics/ng-add/rules/setup-project/angular-json-helper.js +13 -0
- package/schematics/ng-add/rules/setup-project/angular-json-helper.js.map +1 -0
- package/schematics/ng-add/rules/setup-project/exceptions.d.ts +7 -0
- package/schematics/ng-add/rules/setup-project/exceptions.js +17 -0
- package/schematics/ng-add/rules/setup-project/exceptions.js.map +1 -0
- package/schematics/ng-add/rules/setup-project/index.js +23 -0
- package/schematics/ng-add/rules/setup-project/index.js.map +1 -0
- package/schematics/ng-add/{schema.ts → schema.d.ts} +1 -1
- package/schematics/ng-add/schema.js +3 -0
- package/schematics/ng-add/schema.js.map +1 -0
- package/schematics/ng-add/setup-project.d.ts +3 -0
- package/schematics/ng-add/setup-project.js +37 -0
- package/schematics/ng-add/setup-project.js.map +1 -0
- package/schematics/ng-add/setup-project.spec.d.ts +1 -0
- package/schematics/ng-add/setup-project.spec.js +139 -0
- package/schematics/ng-add/setup-project.spec.js.map +1 -0
- package/schematics/ng-add/utils.d.ts +14 -0
- package/schematics/ng-add/utils.js +49 -0
- package/schematics/ng-add/utils.js.map +1 -0
- package/schematics/ng-add/versions-helper.d.ts +3 -0
- package/schematics/ng-add/versions-helper.js +40 -0
- package/schematics/ng-add/versions-helper.js.map +1 -0
- package/.eslintrc.json +0 -31
- package/karma.conf.js +0 -38
- package/ng-package.json +0 -9
- package/ng-package.prod.json +0 -8
- package/schematics/ng-add/index.spec.ts +0 -45
- package/schematics/ng-add/index.ts +0 -36
- package/schematics/ng-add/rules/setup-project/add-animations.ts +0 -7
- package/schematics/ng-add/rules/setup-project/add-assets.ts +0 -45
- package/schematics/ng-add/rules/setup-project/add-design-angular-kit.ts +0 -40
- package/schematics/ng-add/rules/setup-project/add-http-client.ts +0 -7
- package/schematics/ng-add/rules/setup-project/add-import-to-style-file.ts +0 -120
- package/schematics/ng-add/rules/setup-project/add-localisation.ts +0 -45
- package/schematics/ng-add/rules/setup-project/angular-json-helper.ts +0 -11
- package/schematics/ng-add/rules/setup-project/exceptions.ts +0 -13
- package/schematics/ng-add/setup-project.spec.ts +0 -166
- package/schematics/ng-add/setup-project.ts +0 -31
- package/schematics/ng-add/utils.ts +0 -71
- package/schematics/ng-add/versions-helper.ts +0 -41
- package/src/lib/abstracts/abstract-form.component.ts +0 -200
- package/src/lib/abstracts/abstract.component.ts +0 -63
- package/src/lib/components/core/accordion/accordion.component.html +0 -27
- package/src/lib/components/core/accordion/accordion.component.spec.ts +0 -21
- package/src/lib/components/core/accordion/accordion.component.ts +0 -40
- package/src/lib/components/core/alert/alert.component.html +0 -19
- package/src/lib/components/core/alert/alert.component.scss +0 -3
- package/src/lib/components/core/alert/alert.component.spec.ts +0 -62
- package/src/lib/components/core/alert/alert.component.ts +0 -75
- package/src/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.html +0 -23
- package/src/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.scss +0 -17
- package/src/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.spec.ts +0 -21
- package/src/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.ts +0 -50
- package/src/lib/components/core/avatar/avatar-group/avatar-group.component.html +0 -7
- package/src/lib/components/core/avatar/avatar-group/avatar-group.component.spec.ts +0 -38
- package/src/lib/components/core/avatar/avatar-group/avatar-group.component.ts +0 -25
- package/src/lib/components/core/avatar/avatar.directive.ts +0 -73
- package/src/lib/components/core/avatar/avatar.module.ts +0 -18
- package/src/lib/components/core/badge/badge.directive.spec.ts +0 -59
- package/src/lib/components/core/badge/badge.directive.ts +0 -39
- package/src/lib/components/core/button/button.directive.spec.ts +0 -96
- package/src/lib/components/core/button/button.directive.ts +0 -89
- package/src/lib/components/core/callout/callout.component.html +0 -25
- package/src/lib/components/core/callout/callout.component.spec.ts +0 -138
- package/src/lib/components/core/callout/callout.component.ts +0 -92
- package/src/lib/components/core/card/card.component.html +0 -35
- package/src/lib/components/core/card/card.component.scss +0 -30
- package/src/lib/components/core/card/card.component.spec.ts +0 -21
- package/src/lib/components/core/card/card.component.ts +0 -78
- package/src/lib/components/core/carousel/carousel/carousel.component.html +0 -29
- package/src/lib/components/core/carousel/carousel/carousel.component.scss +0 -1
- package/src/lib/components/core/carousel/carousel/carousel.component.spec.ts +0 -21
- package/src/lib/components/core/carousel/carousel/carousel.component.ts +0 -119
- package/src/lib/components/core/carousel/carousel-item/carousel-item.component.html +0 -3
- package/src/lib/components/core/carousel/carousel-item/carousel-item.component.spec.ts +0 -22
- package/src/lib/components/core/carousel/carousel-item/carousel-item.component.ts +0 -20
- package/src/lib/components/core/carousel/carousel.module.ts +0 -11
- package/src/lib/components/core/chip/chip.component.html +0 -26
- package/src/lib/components/core/chip/chip.component.spec.ts +0 -87
- package/src/lib/components/core/chip/chip.component.ts +0 -154
- package/src/lib/components/core/collapse/collapse.component.html +0 -3
- package/src/lib/components/core/collapse/collapse.component.spec.ts +0 -21
- package/src/lib/components/core/collapse/collapse.component.ts +0 -124
- package/src/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.html +0 -3
- package/src/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.spec.ts +0 -35
- package/src/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.ts +0 -23
- package/src/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.html +0 -3
- package/src/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.spec.ts +0 -22
- package/src/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.ts +0 -10
- package/src/lib/components/core/dimmer/dimmer.component.html +0 -7
- package/src/lib/components/core/dimmer/dimmer.component.spec.ts +0 -49
- package/src/lib/components/core/dimmer/dimmer.component.ts +0 -50
- package/src/lib/components/core/dimmer/dimmer.module.ts +0 -12
- package/src/lib/components/core/dropdown/dropdown/dropdown.component.html +0 -45
- package/src/lib/components/core/dropdown/dropdown/dropdown.component.scss +0 -3
- package/src/lib/components/core/dropdown/dropdown/dropdown.component.spec.ts +0 -21
- package/src/lib/components/core/dropdown/dropdown/dropdown.component.ts +0 -186
- package/src/lib/components/core/dropdown/dropdown-item/dropdown-item.component.html +0 -18
- package/src/lib/components/core/dropdown/dropdown-item/dropdown-item.component.scss +0 -4
- package/src/lib/components/core/dropdown/dropdown-item/dropdown-item.component.spec.ts +0 -21
- package/src/lib/components/core/dropdown/dropdown-item/dropdown-item.component.ts +0 -82
- package/src/lib/components/core/dropdown/dropdown.module.ts +0 -11
- package/src/lib/components/core/forward/forward.directive.spec.ts +0 -60
- package/src/lib/components/core/forward/forward.directive.ts +0 -43
- package/src/lib/components/core/link/link.component.html +0 -13
- package/src/lib/components/core/link/link.component.spec.ts +0 -21
- package/src/lib/components/core/link/link.component.ts +0 -54
- package/src/lib/components/core/list/list/list.component.html +0 -13
- package/src/lib/components/core/list/list/list.component.spec.ts +0 -21
- package/src/lib/components/core/list/list/list.component.ts +0 -30
- package/src/lib/components/core/list/list-item/list-item.component.html +0 -42
- package/src/lib/components/core/list/list-item/list-item.component.scss +0 -16
- package/src/lib/components/core/list/list-item/list-item.component.spec.ts +0 -21
- package/src/lib/components/core/list/list-item/list-item.component.ts +0 -75
- package/src/lib/components/core/list/list.module.ts +0 -11
- package/src/lib/components/core/modal/modal.component.html +0 -36
- package/src/lib/components/core/modal/modal.component.scss +0 -3
- package/src/lib/components/core/modal/modal.component.spec.ts +0 -21
- package/src/lib/components/core/modal/modal.component.ts +0 -218
- package/src/lib/components/core/notifications/notifications.component.html +0 -25
- package/src/lib/components/core/notifications/notifications.component.scss +0 -3
- package/src/lib/components/core/notifications/notifications.component.spec.ts +0 -21
- package/src/lib/components/core/notifications/notifications.component.ts +0 -123
- package/src/lib/components/core/pagination/pagination.component.html +0 -107
- package/src/lib/components/core/pagination/pagination.component.spec.ts +0 -21
- package/src/lib/components/core/pagination/pagination.component.ts +0 -157
- package/src/lib/components/core/popover/popover.directive.spec.ts +0 -21
- package/src/lib/components/core/popover/popover.directive.ts +0 -171
- package/src/lib/components/core/progress-bar/progress-bar.component.html +0 -20
- package/src/lib/components/core/progress-bar/progress-bar.component.spec.ts +0 -21
- package/src/lib/components/core/progress-bar/progress-bar.component.ts +0 -46
- package/src/lib/components/core/progress-button/progress-button.component.html +0 -5
- package/src/lib/components/core/progress-button/progress-button.component.spec.ts +0 -21
- package/src/lib/components/core/progress-button/progress-button.component.ts +0 -39
- package/src/lib/components/core/spinner/spinner.component.html +0 -7
- package/src/lib/components/core/spinner/spinner.component.spec.ts +0 -80
- package/src/lib/components/core/spinner/spinner.component.ts +0 -31
- package/src/lib/components/core/steppers/steppers-container/steppers-container.component.html +0 -126
- package/src/lib/components/core/steppers/steppers-container/steppers-container.component.spec.ts +0 -21
- package/src/lib/components/core/steppers/steppers-container/steppers-container.component.ts +0 -185
- package/src/lib/components/core/steppers/steppers-item/steppers-item.component.html +0 -3
- package/src/lib/components/core/steppers/steppers-item/steppers-item.component.spec.ts +0 -22
- package/src/lib/components/core/steppers/steppers-item/steppers-item.component.ts +0 -33
- package/src/lib/components/core/steppers/steppers.module.ts +0 -11
- package/src/lib/components/core/tab/tab-container/tab-container.component.html +0 -78
- package/src/lib/components/core/tab/tab-container/tab-container.component.spec.ts +0 -21
- package/src/lib/components/core/tab/tab-container/tab-container.component.ts +0 -137
- package/src/lib/components/core/tab/tab-item/tab-item.component.html +0 -3
- package/src/lib/components/core/tab/tab-item/tab-item.component.spec.ts +0 -22
- package/src/lib/components/core/tab/tab-item/tab-item.component.ts +0 -50
- package/src/lib/components/core/tab/tab.module.ts +0 -11
- package/src/lib/components/core/table/sort/sort-header/sort-header.component.html +0 -27
- package/src/lib/components/core/table/sort/sort-header/sort-header.component.scss +0 -65
- package/src/lib/components/core/table/sort/sort-header/sort-header.component.spec.ts +0 -25
- package/src/lib/components/core/table/sort/sort-header/sort-header.component.ts +0 -164
- package/src/lib/components/core/table/sort/sort.directive.spec.ts +0 -73
- package/src/lib/components/core/table/sort/sort.directive.ts +0 -142
- package/src/lib/components/core/table/table.component.html +0 -23
- package/src/lib/components/core/table/table.component.scss +0 -7
- package/src/lib/components/core/table/table.component.spec.ts +0 -21
- package/src/lib/components/core/table/table.component.ts +0 -70
- package/src/lib/components/core/table/table.module.ts +0 -12
- package/src/lib/components/core/timeline/timeline-item/timeline-item.component.html +0 -47
- package/src/lib/components/core/timeline/timeline-item/timeline-item.component.spec.ts +0 -24
- package/src/lib/components/core/timeline/timeline-item/timeline-item.component.ts +0 -102
- package/src/lib/components/core/timeline/timeline.component.html +0 -21
- package/src/lib/components/core/timeline/timeline.component.spec.ts +0 -21
- package/src/lib/components/core/timeline/timeline.component.ts +0 -31
- package/src/lib/components/core/timeline/timeline.module.ts +0 -11
- package/src/lib/components/core/tooltip/tooltip.directive.spec.ts +0 -20
- package/src/lib/components/core/tooltip/tooltip.directive.ts +0 -141
- package/src/lib/components/form/autocomplete/autocomplete.component.html +0 -58
- package/src/lib/components/form/autocomplete/autocomplete.component.spec.ts +0 -21
- package/src/lib/components/form/autocomplete/autocomplete.component.ts +0 -130
- package/src/lib/components/form/checkbox/checkbox.component.html +0 -67
- package/src/lib/components/form/checkbox/checkbox.component.spec.ts +0 -21
- package/src/lib/components/form/checkbox/checkbox.component.ts +0 -65
- package/src/lib/components/form/form.module.ts +0 -34
- package/src/lib/components/form/input/input.component.html +0 -92
- package/src/lib/components/form/input/input.component.scss +0 -29
- package/src/lib/components/form/input/input.component.spec.ts +0 -21
- package/src/lib/components/form/input/input.component.ts +0 -234
- package/src/lib/components/form/password-input/password-input.component.html +0 -65
- package/src/lib/components/form/password-input/password-input.component.scss +0 -9
- package/src/lib/components/form/password-input/password-input.component.spec.ts +0 -21
- package/src/lib/components/form/password-input/password-input.component.ts +0 -171
- package/src/lib/components/form/radio-button/radio-button.component.html +0 -50
- package/src/lib/components/form/radio-button/radio-button.component.scss +0 -14
- package/src/lib/components/form/radio-button/radio-button.component.spec.ts +0 -21
- package/src/lib/components/form/radio-button/radio-button.component.ts +0 -82
- package/src/lib/components/form/range/range.component.html +0 -17
- package/src/lib/components/form/range/range.component.scss +0 -17
- package/src/lib/components/form/range/range.component.spec.ts +0 -21
- package/src/lib/components/form/range/range.component.ts +0 -100
- package/src/lib/components/form/rating/rating.component.html +0 -24
- package/src/lib/components/form/rating/rating.component.spec.ts +0 -21
- package/src/lib/components/form/rating/rating.component.ts +0 -52
- package/src/lib/components/form/select/select.component.html +0 -54
- package/src/lib/components/form/select/select.component.scss +0 -3
- package/src/lib/components/form/select/select.component.spec.ts +0 -22
- package/src/lib/components/form/select/select.component.ts +0 -91
- package/src/lib/components/form/textarea/textarea.component.html +0 -28
- package/src/lib/components/form/textarea/textarea.component.scss +0 -12
- package/src/lib/components/form/textarea/textarea.component.spec.ts +0 -21
- package/src/lib/components/form/textarea/textarea.component.ts +0 -61
- package/src/lib/components/form/transfer/store/transfer.reducers.ts +0 -242
- package/src/lib/components/form/transfer/store/transfer.state.ts +0 -20
- package/src/lib/components/form/transfer/store/transfer.store.ts +0 -88
- package/src/lib/components/form/transfer/transfer-list/transfer-list.component.html +0 -42
- package/src/lib/components/form/transfer/transfer-list/transfer-list.component.spec.ts +0 -33
- package/src/lib/components/form/transfer/transfer-list/transfer-list.component.ts +0 -93
- package/src/lib/components/form/transfer/transfer.component.html +0 -52
- package/src/lib/components/form/transfer/transfer.component.spec.ts +0 -27
- package/src/lib/components/form/transfer/transfer.component.ts +0 -159
- package/src/lib/components/form/upload-drag-drop/upload-drag-drop.component.html +0 -36
- package/src/lib/components/form/upload-drag-drop/upload-drag-drop.component.spec.ts +0 -21
- package/src/lib/components/form/upload-drag-drop/upload-drag-drop.component.ts +0 -170
- package/src/lib/components/form/upload-file-list/upload-file-list.component.html +0 -46
- package/src/lib/components/form/upload-file-list/upload-file-list.component.spec.ts +0 -22
- package/src/lib/components/form/upload-file-list/upload-file-list.component.ts +0 -120
- package/src/lib/components/navigation/back-button/back-button.component.html +0 -25
- package/src/lib/components/navigation/back-button/back-button.component.spec.ts +0 -91
- package/src/lib/components/navigation/back-button/back-button.component.ts +0 -67
- package/src/lib/components/navigation/back-to-top/back-to-top.component.html +0 -11
- package/src/lib/components/navigation/back-to-top/back-to-top.component.spec.ts +0 -21
- package/src/lib/components/navigation/back-to-top/back-to-top.component.ts +0 -80
- package/src/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.html +0 -23
- package/src/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.spec.ts +0 -21
- package/src/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.ts +0 -68
- package/src/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.html +0 -3
- package/src/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.spec.ts +0 -22
- package/src/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.ts +0 -29
- package/src/lib/components/navigation/breadcrumbs/breadcrumbs.module.ts +0 -11
- package/src/lib/components/navigation/header/header.component.html +0 -102
- package/src/lib/components/navigation/header/header.component.scss +0 -3
- package/src/lib/components/navigation/header/header.component.spec.ts +0 -21
- package/src/lib/components/navigation/header/header.component.ts +0 -107
- package/src/lib/components/navigation/megamenu/megamenu.component.html +0 -34
- package/src/lib/components/navigation/megamenu/megamenu.component.scss +0 -5
- package/src/lib/components/navigation/megamenu/megamenu.component.ts +0 -30
- package/src/lib/components/navigation/navbar/navbar/navbar.component.html +0 -28
- package/src/lib/components/navigation/navbar/navbar/navbar.component.ts +0 -45
- package/src/lib/components/navigation/navbar/navbar-item/navbar-item.component.html +0 -3
- package/src/lib/components/navigation/navbar/navbar-item/navbar-item.component.ts +0 -10
- package/src/lib/components/navigation/navbar/navbar.module.ts +0 -11
- package/src/lib/components/navigation/navscroll/navscroll-list-item.component.ts +0 -95
- package/src/lib/components/navigation/navscroll/navscroll-list-items.component.ts +0 -27
- package/src/lib/components/navigation/navscroll/navscroll.component.html +0 -101
- package/src/lib/components/navigation/navscroll/navscroll.component.scss +0 -9
- package/src/lib/components/navigation/navscroll/navscroll.component.ts +0 -143
- package/src/lib/components/navigation/navscroll/navscroll.store.ts +0 -96
- package/src/lib/components/navigation/navscroll/navscroll.utils.ts +0 -28
- package/src/lib/components/navigation/sidebar/sidebar.component.html +0 -11
- package/src/lib/components/navigation/sidebar/sidebar.component.spec.ts +0 -21
- package/src/lib/components/navigation/sidebar/sidebar.component.ts +0 -39
- package/src/lib/components/navigation/skiplink/skiplink/skiplink.component.html +0 -15
- package/src/lib/components/navigation/skiplink/skiplink/skiplink.component.ts +0 -27
- package/src/lib/components/navigation/skiplink/skiplink-item/skiplink-item.component.html +0 -15
- package/src/lib/components/navigation/skiplink/skiplink-item/skiplink-item.component.ts +0 -38
- package/src/lib/components/navigation/skiplink/skiplink.module.ts +0 -11
- package/src/lib/components/utils/error-page/error-page.component.html +0 -33
- package/src/lib/components/utils/error-page/error-page.component.spec.ts +0 -21
- package/src/lib/components/utils/error-page/error-page.component.ts +0 -79
- package/src/lib/components/utils/icon/icon.component.html +0 -6
- package/src/lib/components/utils/icon/icon.component.spec.ts +0 -21
- package/src/lib/components/utils/icon/icon.component.ts +0 -95
- package/src/lib/components/utils/language-switcher/language-switcher.component.html +0 -21
- package/src/lib/components/utils/language-switcher/language-switcher.component.spec.ts +0 -21
- package/src/lib/components/utils/language-switcher/language-switcher.component.ts +0 -56
- package/src/lib/design-angular-kit.module.ts +0 -131
- package/src/lib/enums/colors.enums.ts +0 -10
- package/src/lib/enums/sizes.enum.ts +0 -7
- package/src/lib/interfaces/design-angular-kit-config.ts +0 -34
- package/src/lib/interfaces/form.ts +0 -78
- package/src/lib/interfaces/icon.ts +0 -176
- package/src/lib/interfaces/sortable-table.ts +0 -42
- package/src/lib/interfaces/utils.ts +0 -11
- package/src/lib/pipes/date-ago.pipe.ts +0 -57
- package/src/lib/pipes/duration.pipe.ts +0 -112
- package/src/lib/pipes/mark-matching-text.pipe.ts +0 -43
- package/src/lib/provide-design-angular-kit.ts +0 -73
- package/src/lib/services/notification/notification.service.spec.ts +0 -16
- package/src/lib/services/notification/notification.service.ts +0 -119
- package/src/lib/utils/date-utils.ts +0 -184
- package/src/lib/utils/file-utils.ts +0 -80
- package/src/lib/utils/regex.ts +0 -44
- package/src/lib/validators/it-validators.ts +0 -193
- package/src/test.ts +0 -26
- package/tsconfig.lib.json +0 -24
- package/tsconfig.lib.prod.json +0 -9
- package/tsconfig.schematics.json +0 -25
- package/tsconfig.spec.json +0 -9
- /package/schematics/ng-add/rules/setup-project/{index.ts → index.d.ts} +0 -0
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AfterViewInit,
|
|
3
|
-
ChangeDetectionStrategy,
|
|
4
|
-
ChangeDetectorRef,
|
|
5
|
-
Component,
|
|
6
|
-
ContentChildren,
|
|
7
|
-
EventEmitter,
|
|
8
|
-
Input,
|
|
9
|
-
OnDestroy,
|
|
10
|
-
Output,
|
|
11
|
-
QueryList,
|
|
12
|
-
} from '@angular/core';
|
|
13
|
-
import { ItSteppersItemComponent } from '../steppers-item/steppers-item.component';
|
|
14
|
-
import { ProgressBarColor } from '../../../../interfaces/core';
|
|
15
|
-
import { startWith, Subscription } from 'rxjs';
|
|
16
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
17
|
-
import { ItIconComponent } from '../../../utils/icon/icon.component';
|
|
18
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
19
|
-
import { ItButtonDirective } from '../../button/button.directive';
|
|
20
|
-
import { ItProgressBarComponent } from '../../progress-bar/progress-bar.component';
|
|
21
|
-
import { ItProgressButtonComponent } from '../../progress-button/progress-button.component';
|
|
22
|
-
import { inputToBoolean } from '../../../../utils/coercion';
|
|
23
|
-
|
|
24
|
-
@Component({
|
|
25
|
-
standalone: true,
|
|
26
|
-
selector: 'it-steppers-container',
|
|
27
|
-
templateUrl: './steppers-container.component.html',
|
|
28
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
29
|
-
imports: [ItIconComponent, NgTemplateOutlet, TranslateModule, ItButtonDirective, ItProgressBarComponent, ItProgressButtonComponent],
|
|
30
|
-
})
|
|
31
|
-
export class ItSteppersContainerComponent implements AfterViewInit, OnDestroy {
|
|
32
|
-
/**
|
|
33
|
-
* The active step index
|
|
34
|
-
* @param index the step index
|
|
35
|
-
*/
|
|
36
|
-
@Input({ required: true }) activeStep!: number;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Show the stepper header
|
|
40
|
-
* @default true
|
|
41
|
-
*/
|
|
42
|
-
@Input({ transform: inputToBoolean }) showHeader: boolean = true;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Dark style
|
|
46
|
-
* @default false
|
|
47
|
-
*/
|
|
48
|
-
@Input({ transform: inputToBoolean }) dark?: boolean;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* The labels present in the header steps can be anticipated by the relative ordinal number.
|
|
52
|
-
* @efualt false
|
|
53
|
-
*/
|
|
54
|
-
@Input({ transform: inputToBoolean }) steppersNumber?: boolean;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* The progress style
|
|
58
|
-
* -<b>progress</b>: Show progress bar - You can change the color with the `progressColor` attribute
|
|
59
|
-
* -<b>dots</b>: Show progress dots
|
|
60
|
-
* @default undefined - don't show progress
|
|
61
|
-
*/
|
|
62
|
-
@Input() progressStyle: 'progress' | 'dots' | undefined;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Customize progress color
|
|
66
|
-
*/
|
|
67
|
-
@Input() progressColor: ProgressBarColor | undefined;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Show the back button
|
|
71
|
-
* @default true
|
|
72
|
-
*/
|
|
73
|
-
@Input({ transform: inputToBoolean }) showBackButton: boolean = true;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Disable the back button
|
|
77
|
-
* @default false
|
|
78
|
-
*/
|
|
79
|
-
@Input({ transform: inputToBoolean }) disableBackButton?: boolean;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Show the forward button
|
|
83
|
-
* @default true
|
|
84
|
-
*/
|
|
85
|
-
@Input({ transform: inputToBoolean }) showForwardButton: boolean = true;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Disable the forward button
|
|
89
|
-
* @default false
|
|
90
|
-
*/
|
|
91
|
-
@Input({ transform: inputToBoolean }) disableForwardButton?: boolean;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Show the confirm button
|
|
95
|
-
* @default false
|
|
96
|
-
*/
|
|
97
|
-
@Input({ transform: inputToBoolean }) showConfirmButton?: boolean;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Disable the confirm button
|
|
101
|
-
* @default false
|
|
102
|
-
*/
|
|
103
|
-
@Input({ transform: inputToBoolean }) disableConfirmButton?: boolean;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Show the confirm button as indeterminate progress button
|
|
107
|
-
*/
|
|
108
|
-
@Input({ transform: inputToBoolean }) confirmLoading?: boolean;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Show the save button
|
|
112
|
-
* @default false
|
|
113
|
-
*/
|
|
114
|
-
@Input({ transform: inputToBoolean }) showSaveButton?: boolean;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Disable the save button
|
|
118
|
-
* @default false
|
|
119
|
-
*/
|
|
120
|
-
@Input({ transform: inputToBoolean }) disableSaveButton?: boolean;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Show the save button as indeterminate progress button
|
|
124
|
-
*/
|
|
125
|
-
@Input({ transform: inputToBoolean }) saveLoading?: boolean;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* The stepper items
|
|
129
|
-
*/
|
|
130
|
-
@ContentChildren(ItSteppersItemComponent) steps?: QueryList<ItSteppersItemComponent>;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* On back button click
|
|
134
|
-
* @event activeStep the current step index
|
|
135
|
-
*/
|
|
136
|
-
@Output() backClick: EventEmitter<number>;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* On forward button click
|
|
140
|
-
* @event activeStep the current step index
|
|
141
|
-
*/
|
|
142
|
-
@Output() forwardClick: EventEmitter<number>;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* On confirm button click
|
|
146
|
-
* @event activeStep the current step index
|
|
147
|
-
*/
|
|
148
|
-
@Output() confirmClick: EventEmitter<number>;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* On save button click
|
|
152
|
-
* @event activeStep the current step index
|
|
153
|
-
*/
|
|
154
|
-
@Output() saveClick: EventEmitter<number>;
|
|
155
|
-
|
|
156
|
-
private stepsSubscriptions?: Array<Subscription>;
|
|
157
|
-
|
|
158
|
-
constructor(private readonly _changeDetectorRef: ChangeDetectorRef) {
|
|
159
|
-
this.backClick = new EventEmitter<number>();
|
|
160
|
-
this.forwardClick = new EventEmitter<number>();
|
|
161
|
-
this.confirmClick = new EventEmitter<number>();
|
|
162
|
-
this.saveClick = new EventEmitter<number>();
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
ngAfterViewInit(): void {
|
|
166
|
-
this.steps?.changes
|
|
167
|
-
.pipe(
|
|
168
|
-
// When steps changes (dynamic add/remove)
|
|
169
|
-
startWith(undefined)
|
|
170
|
-
)
|
|
171
|
-
.subscribe(() => {
|
|
172
|
-
this.stepsSubscriptions?.forEach(sub => sub.unsubscribe()); // Remove old subscriptions
|
|
173
|
-
this.stepsSubscriptions = this.steps?.map(step =>
|
|
174
|
-
step.valueChanges.subscribe(() => {
|
|
175
|
-
this._changeDetectorRef.detectChanges(); // DetectChanges when step attributes changes
|
|
176
|
-
})
|
|
177
|
-
);
|
|
178
|
-
this._changeDetectorRef.detectChanges(); // Force update html render
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
ngOnDestroy(): void {
|
|
183
|
-
this.stepsSubscriptions?.forEach(step => step.unsubscribe());
|
|
184
|
-
}
|
|
185
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ItSteppersItemComponent } from './steppers-item.component';
|
|
4
|
-
|
|
5
|
-
describe('ItSteppersItemComponent', () => {
|
|
6
|
-
let component: ItSteppersItemComponent;
|
|
7
|
-
let fixture: ComponentFixture<ItSteppersItemComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [ItSteppersItemComponent],
|
|
12
|
-
}).compileComponents();
|
|
13
|
-
|
|
14
|
-
fixture = TestBed.createComponent(ItSteppersItemComponent);
|
|
15
|
-
component = fixture.componentInstance;
|
|
16
|
-
fixture.detectChanges();
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it('should create', () => {
|
|
20
|
-
expect(component).toBeTruthy();
|
|
21
|
-
});
|
|
22
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input, TemplateRef, ViewChild } from '@angular/core';
|
|
2
|
-
import { IconName } from '../../../../interfaces/icon';
|
|
3
|
-
import { ItAbstractComponent } from '../../../../abstracts/abstract.component';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
standalone: true,
|
|
7
|
-
selector: 'it-steppers-item',
|
|
8
|
-
templateUrl: './steppers-item.component.html',
|
|
9
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10
|
-
imports: [],
|
|
11
|
-
})
|
|
12
|
-
export class ItSteppersItemComponent extends ItAbstractComponent {
|
|
13
|
-
/**
|
|
14
|
-
* The labels present in the header steps
|
|
15
|
-
*/
|
|
16
|
-
@Input({ required: true }) label!: string;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* The labels present in the header steps can be preceded by an icon.
|
|
20
|
-
*/
|
|
21
|
-
@Input() icon: IconName | undefined;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* The title for the icon.
|
|
25
|
-
*/
|
|
26
|
-
@Input() iconTitle: string | undefined;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* The content of step
|
|
30
|
-
*/
|
|
31
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
32
|
-
@ViewChild(TemplateRef) public htmlContent!: TemplateRef<any>;
|
|
33
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { ItSteppersContainerComponent } from './steppers-container/steppers-container.component';
|
|
3
|
-
import { ItSteppersItemComponent } from './steppers-item/steppers-item.component';
|
|
4
|
-
|
|
5
|
-
const steppersComponents = [ItSteppersContainerComponent, ItSteppersItemComponent];
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
imports: steppersComponents,
|
|
9
|
-
exports: steppersComponents,
|
|
10
|
-
})
|
|
11
|
-
export class ItSteppersModule {}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
<div
|
|
2
|
-
[class.row]="vertical"
|
|
3
|
-
[class.flex-row-reverse]="inverted && vertical"
|
|
4
|
-
[class.d-flex]="inverted && !vertical"
|
|
5
|
-
[class.flex-column-reverse]="inverted && !vertical">
|
|
6
|
-
<div
|
|
7
|
-
[class.col-5]="inverted && vertical"
|
|
8
|
-
[class.col-md-4]="inverted && vertical"
|
|
9
|
-
[class.col-lg-3]="inverted && vertical"
|
|
10
|
-
[class.col-4]="!inverted && vertical"
|
|
11
|
-
[class.col-md-3]="!inverted && vertical">
|
|
12
|
-
@if (tabs) {
|
|
13
|
-
<ul
|
|
14
|
-
class="nav nav-tabs"
|
|
15
|
-
[class.nav-tabs-editable]="editable"
|
|
16
|
-
[class.nav-tabs-cards]="cards"
|
|
17
|
-
[class.nav-tabs-vertical]="vertical"
|
|
18
|
-
[class.auto]="auto"
|
|
19
|
-
[class.nav-tabs-icon-text]="iconText"
|
|
20
|
-
[class.nav-dark]="dark"
|
|
21
|
-
role="tablist">
|
|
22
|
-
@for (tab of tabs; track tab.id; let i = $index) {
|
|
23
|
-
<li class="nav-item">
|
|
24
|
-
<a
|
|
25
|
-
#tabNavLinks
|
|
26
|
-
[id]="tab.id + '-tab-link'"
|
|
27
|
-
role="tab"
|
|
28
|
-
class="nav-link"
|
|
29
|
-
[class.active]="tab.active"
|
|
30
|
-
[class.disabled]="tab.disabled"
|
|
31
|
-
[attr.href]="'#' + tab.id + '-tab'"
|
|
32
|
-
[attr.aria-controls]="tab.id + '-tab'"
|
|
33
|
-
(click)="onTab(tab)">
|
|
34
|
-
@if (tab.icon) {
|
|
35
|
-
<it-icon [name]="tab.icon" class="me-2"></it-icon>
|
|
36
|
-
}
|
|
37
|
-
{{ tab.label }}
|
|
38
|
-
</a>
|
|
39
|
-
@if (editable) {
|
|
40
|
-
<a class="nav-link-close" (click)="clickToClose(i)" (keypress)="clickToClose(i)" [attr.disabled]="tab.disabled">
|
|
41
|
-
<it-icon name="close"></it-icon>
|
|
42
|
-
</a>
|
|
43
|
-
}
|
|
44
|
-
</li>
|
|
45
|
-
}
|
|
46
|
-
@if (editable) {
|
|
47
|
-
<li class="nav-item">
|
|
48
|
-
<a href="#" class="nav-tab-add" (click)="clickToAdd($event)" (keypress)="clickToAdd($event)"
|
|
49
|
-
><span class="visually-hidden"> Aggiungi un tab</span></a
|
|
50
|
-
>
|
|
51
|
-
</li>
|
|
52
|
-
}
|
|
53
|
-
</ul>
|
|
54
|
-
}
|
|
55
|
-
</div>
|
|
56
|
-
<div
|
|
57
|
-
[class.col-7]="inverted && vertical"
|
|
58
|
-
[class.col-md-8]="inverted && vertical"
|
|
59
|
-
[class.col-lg-9]="inverted && vertical"
|
|
60
|
-
[class.col-8]="!inverted && vertical"
|
|
61
|
-
[class.col-md-9]="!inverted && vertical">
|
|
62
|
-
@if (tabs) {
|
|
63
|
-
<div class="tab-content">
|
|
64
|
-
@for (tab of tabs; track tab.id) {
|
|
65
|
-
<div
|
|
66
|
-
[id]="tab.id + '-tab'"
|
|
67
|
-
class="tab-pane p-4 fade {{ tab.class ?? '' }}"
|
|
68
|
-
[class.active]="tab.active"
|
|
69
|
-
[class.show]="tab.active"
|
|
70
|
-
role="tabpanel"
|
|
71
|
-
[attr.aria-labelledby]="tab.id + '-tab-link'">
|
|
72
|
-
<ng-container *ngTemplateOutlet="tab.htmlContent"></ng-container>
|
|
73
|
-
</div>
|
|
74
|
-
}
|
|
75
|
-
</div>
|
|
76
|
-
}
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ItTabContainerComponent } from './tab-container.component';
|
|
4
|
-
import { tb_base } from '../../../../../test';
|
|
5
|
-
|
|
6
|
-
describe('ItTabContainerComponent', () => {
|
|
7
|
-
let component: ItTabContainerComponent;
|
|
8
|
-
let fixture: ComponentFixture<ItTabContainerComponent>;
|
|
9
|
-
|
|
10
|
-
beforeEach(async () => {
|
|
11
|
-
await TestBed.configureTestingModule(tb_base).compileComponents();
|
|
12
|
-
|
|
13
|
-
fixture = TestBed.createComponent(ItTabContainerComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AfterViewInit,
|
|
3
|
-
ChangeDetectionStrategy,
|
|
4
|
-
Component,
|
|
5
|
-
ContentChildren,
|
|
6
|
-
ElementRef,
|
|
7
|
-
EventEmitter,
|
|
8
|
-
Input,
|
|
9
|
-
OnDestroy,
|
|
10
|
-
Output,
|
|
11
|
-
QueryList,
|
|
12
|
-
ViewChildren,
|
|
13
|
-
} from '@angular/core';
|
|
14
|
-
import { ItTabItemComponent } from '../tab-item/tab-item.component';
|
|
15
|
-
import { of, startWith, Subscription, switchMap, tap } from 'rxjs';
|
|
16
|
-
import { Tab } from 'bootstrap-italia';
|
|
17
|
-
import { ItAbstractComponent } from '../../../../abstracts/abstract.component';
|
|
18
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
19
|
-
import { ItIconComponent } from '../../../utils/icon/icon.component';
|
|
20
|
-
import { inputToBoolean } from '../../../../utils/coercion';
|
|
21
|
-
|
|
22
|
-
@Component({
|
|
23
|
-
standalone: true,
|
|
24
|
-
selector: 'it-tab-container',
|
|
25
|
-
templateUrl: './tab-container.component.html',
|
|
26
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
27
|
-
imports: [ItIconComponent, NgTemplateOutlet],
|
|
28
|
-
})
|
|
29
|
-
export class ItTabContainerComponent extends ItAbstractComponent implements OnDestroy, AfterViewInit {
|
|
30
|
-
/**
|
|
31
|
-
* Tabs automatically occupy the entire available width
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
@Input({ transform: inputToBoolean }) auto?: boolean;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* To obtain the correct margin between text and icon in the horizontally developed tab
|
|
38
|
-
*/
|
|
39
|
-
@Input({ transform: inputToBoolean }) iconText?: boolean;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Dark style
|
|
43
|
-
*/
|
|
44
|
-
@Input({ transform: inputToBoolean }) dark?: boolean;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Show items as cards
|
|
48
|
-
*/
|
|
49
|
-
@Input({ transform: inputToBoolean }) cards?: boolean;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Show vertical navigation
|
|
53
|
-
*/
|
|
54
|
-
@Input({ transform: inputToBoolean }) vertical?: boolean;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* The tab position
|
|
58
|
-
*/
|
|
59
|
-
@Input({ transform: inputToBoolean }) inverted?: boolean;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* If tabs are editable
|
|
63
|
-
*/
|
|
64
|
-
@Input({ transform: inputToBoolean }) editable?: boolean;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* The tab items
|
|
68
|
-
*/
|
|
69
|
-
@ContentChildren(ItTabItemComponent) tabs?: QueryList<ItTabItemComponent>;
|
|
70
|
-
|
|
71
|
-
@ViewChildren('tabNavLinks') private tabNavLinks?: QueryList<ElementRef<HTMLAnchorElement>>;
|
|
72
|
-
|
|
73
|
-
@Output() tabSelected = new EventEmitter<ItTabItemComponent>();
|
|
74
|
-
|
|
75
|
-
@Output() tabClosed = new EventEmitter();
|
|
76
|
-
|
|
77
|
-
@Output() tabAdded = new EventEmitter();
|
|
78
|
-
|
|
79
|
-
private tabSubscriptions?: Array<Subscription>;
|
|
80
|
-
|
|
81
|
-
constructor() {
|
|
82
|
-
super();
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
override ngAfterViewInit(): void {
|
|
86
|
-
super.ngAfterViewInit();
|
|
87
|
-
|
|
88
|
-
this.tabs?.changes
|
|
89
|
-
.pipe(
|
|
90
|
-
// When tabs changes (dynamic add/remove)
|
|
91
|
-
startWith(undefined),
|
|
92
|
-
tap(() => {
|
|
93
|
-
this.tabSubscriptions?.forEach(sub => sub.unsubscribe()); // Remove old subscriptions
|
|
94
|
-
this.tabSubscriptions = this.tabs?.map(tab =>
|
|
95
|
-
tab.valueChanges.subscribe(() => {
|
|
96
|
-
this._changeDetectorRef.detectChanges(); // DetectChanges when tab-item attributes changes
|
|
97
|
-
})
|
|
98
|
-
);
|
|
99
|
-
this._changeDetectorRef.detectChanges(); // Force update html render
|
|
100
|
-
}),
|
|
101
|
-
switchMap(() => this.tabNavLinks?.changes.pipe(startWith(undefined)) || of(undefined))
|
|
102
|
-
)
|
|
103
|
-
.subscribe(() => {
|
|
104
|
-
// Init tabs from bootstrap-italia
|
|
105
|
-
this.tabNavLinks?.forEach(tabNavLink => {
|
|
106
|
-
const triggerEl = tabNavLink.nativeElement,
|
|
107
|
-
tabTrigger = Tab.getOrCreateInstance(triggerEl);
|
|
108
|
-
|
|
109
|
-
if (triggerEl.getAttribute('tab-listener') !== 'true') {
|
|
110
|
-
triggerEl.addEventListener('click', event => {
|
|
111
|
-
event.preventDefault();
|
|
112
|
-
tabTrigger.show();
|
|
113
|
-
this._changeDetectorRef.detectChanges();
|
|
114
|
-
});
|
|
115
|
-
triggerEl.setAttribute('tab-listener', 'true'); // Prevents multiple insertion of the listener
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
ngOnDestroy(): void {
|
|
122
|
-
this.tabSubscriptions?.forEach(sub => sub.unsubscribe());
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
onTab(tab: ItTabItemComponent) {
|
|
126
|
-
this.tabSelected.emit(tab);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
clickToClose(index: number) {
|
|
130
|
-
this.tabClosed.emit(index);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
clickToAdd($event: Event) {
|
|
134
|
-
$event.preventDefault();
|
|
135
|
-
this.tabAdded.emit();
|
|
136
|
-
}
|
|
137
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ItTabItemComponent } from './tab-item.component';
|
|
4
|
-
|
|
5
|
-
describe('ItTabItemComponent', () => {
|
|
6
|
-
let component: ItTabItemComponent;
|
|
7
|
-
let fixture: ComponentFixture<ItTabItemComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [ItTabItemComponent],
|
|
12
|
-
}).compileComponents();
|
|
13
|
-
|
|
14
|
-
fixture = TestBed.createComponent(ItTabItemComponent);
|
|
15
|
-
component = fixture.componentInstance;
|
|
16
|
-
fixture.detectChanges();
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it('should create', () => {
|
|
20
|
-
expect(component).toBeTruthy();
|
|
21
|
-
});
|
|
22
|
-
});
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectionStrategy, Component, Input, TemplateRef, ViewChild } from '@angular/core';
|
|
2
|
-
import { ItAbstractComponent } from '../../../../abstracts/abstract.component';
|
|
3
|
-
import { IconName } from '../../../../interfaces/icon';
|
|
4
|
-
import { inputToBoolean } from '../../../../utils/coercion';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
standalone: true,
|
|
8
|
-
selector: 'it-tab-item',
|
|
9
|
-
templateUrl: './tab-item.component.html',
|
|
10
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11
|
-
imports: [],
|
|
12
|
-
})
|
|
13
|
-
export class ItTabItemComponent extends ItAbstractComponent implements AfterViewInit {
|
|
14
|
-
/**
|
|
15
|
-
* The tab label
|
|
16
|
-
*/
|
|
17
|
-
@Input() label: string | undefined;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* The icon name
|
|
21
|
-
*/
|
|
22
|
-
@Input() icon: IconName | undefined;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Default active tab
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
@Input({ transform: inputToBoolean }) active?: boolean;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Default disabled tab
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
@Input({ transform: inputToBoolean }) disabled?: boolean;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Custom class
|
|
38
|
-
*/
|
|
39
|
-
@Input() class: string = '';
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* The content of tab
|
|
43
|
-
*/
|
|
44
|
-
@ViewChild(TemplateRef) public htmlContent!: TemplateRef<any>;
|
|
45
|
-
|
|
46
|
-
override ngAfterViewInit() {
|
|
47
|
-
super.ngAfterViewInit();
|
|
48
|
-
this._renderer.removeAttribute(this._elementRef.nativeElement, 'class');
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { ItTabContainerComponent } from './tab-container/tab-container.component';
|
|
3
|
-
import { ItTabItemComponent } from './tab-item/tab-item.component';
|
|
4
|
-
|
|
5
|
-
const tabComponents = [ItTabContainerComponent, ItTabItemComponent];
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
imports: tabComponents,
|
|
9
|
-
exports: tabComponents,
|
|
10
|
-
})
|
|
11
|
-
export class ItTabModule {}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
We set the `tabindex` on an element inside the table header, rather than the header itself,
|
|
3
|
-
because of a bug in NVDA where having a `tabindex` on a `th` breaks keyboard navigation in the
|
|
4
|
-
table (see https://github.com/nvaccess/nvda/issues/7718). This allows for the header to both
|
|
5
|
-
be focusable, and have screen readers read out its `aria-sort` state. We prefer this approach
|
|
6
|
-
over having a button with an `aria-label` inside the header, because the button's `aria-label`
|
|
7
|
-
will be read out as the user is navigating the table's cell (see #13012).
|
|
8
|
-
|
|
9
|
-
The approach is based off of: https://dequeuniversity.com/library/aria/tables/sf-sortable-grid
|
|
10
|
-
-->
|
|
11
|
-
<div
|
|
12
|
-
class="it-sort-header-container it-focus-indicator"
|
|
13
|
-
[class.it-sort-header-sorted]="isSorted"
|
|
14
|
-
[class.it-sort-header-position-before]="arrowPosition === 'before'"
|
|
15
|
-
[attr.tabindex]="isDisabled ? null : 0"
|
|
16
|
-
[attr.role]="isDisabled ? null : 'button'">
|
|
17
|
-
<!--
|
|
18
|
-
We have to keep it due to a large number of screenshot diff failures. It should be removed eventually.
|
|
19
|
-
Note that the difference isn't visible with a shorter header, but once it breaks up into multiple lines, this element
|
|
20
|
-
causes it to be center-aligned, whereas removing it will keep the text to the left.
|
|
21
|
-
-->
|
|
22
|
-
<div class="it-sort-header-content">
|
|
23
|
-
<ng-content></ng-content>
|
|
24
|
-
</div>
|
|
25
|
-
|
|
26
|
-
<it-icon class="it-sort-arrow" size="sm" [name]="arrowIconClass" />
|
|
27
|
-
</div>
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
.it-sort-header-container {
|
|
2
|
-
display: flex;
|
|
3
|
-
cursor: pointer;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
letter-spacing: normal;
|
|
7
|
-
|
|
8
|
-
// Needs to be reset since we don't want an outline around the inner
|
|
9
|
-
// div which is focusable. We have our own alternate focus styling.
|
|
10
|
-
outline: 0;
|
|
11
|
-
|
|
12
|
-
.it-sort-header-disabled & {
|
|
13
|
-
cursor: default;
|
|
14
|
-
|
|
15
|
-
.it-sort-arrow {
|
|
16
|
-
opacity: 0 !important;
|
|
17
|
-
fill-opacity: 0 !important;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// For the sort-header element, default inset/offset values are necessary to ensure that
|
|
22
|
-
// the focus indicator is sufficiently contrastive and renders appropriately.
|
|
23
|
-
&::before {
|
|
24
|
-
$border-width: 3px;
|
|
25
|
-
$offset: calc(#{$border-width} + 2px);
|
|
26
|
-
margin: calc(#{$offset} * -1);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&.it-sort-header-position-before {
|
|
30
|
-
flex-direction: row-reverse;
|
|
31
|
-
justify-content: left;
|
|
32
|
-
gap: 0.5rem;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.it-sort-arrow {
|
|
36
|
-
opacity: 0;
|
|
37
|
-
fill-opacity: 0;
|
|
38
|
-
transition:
|
|
39
|
-
fill-opacity 0.3s ease-out,
|
|
40
|
-
opacity 0.3s ease-out;
|
|
41
|
-
-moz-transition:
|
|
42
|
-
fill-opacity 0.3s ease-out,
|
|
43
|
-
opacity 0.3s ease-out;
|
|
44
|
-
-webkit-transition:
|
|
45
|
-
fill-opacity 0.3s ease-out,
|
|
46
|
-
opacity 0.3s ease-out;
|
|
47
|
-
-o-transition:
|
|
48
|
-
fill-opacity 0.3s ease-out,
|
|
49
|
-
opacity 0.3s ease-out;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&:hover {
|
|
53
|
-
.it-sort-arrow {
|
|
54
|
-
opacity: 0.5;
|
|
55
|
-
fill-opacity: 0.5;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&.it-sort-header-sorted {
|
|
60
|
-
.it-sort-arrow {
|
|
61
|
-
opacity: 1 !important;
|
|
62
|
-
fill-opacity: 1 !important;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|