design-angular-kit 1.2.1 → 1.2.2
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/esm2022/design-angular-kit.mjs +5 -0
- package/esm2022/lib/abstracts/abstract-form.component.mjs +186 -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 +84 -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/form/autocomplete/autocomplete.component.mjs +112 -0
- package/esm2022/lib/components/form/checkbox/checkbox.component.mjs +48 -0
- package/esm2022/lib/components/form/form.module.mjs +63 -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/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 +98 -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 +233 -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 +156 -0
- package/esm2022/public_api.mjs +110 -0
- package/fesm2022/design-angular-kit.mjs +6731 -0
- package/fesm2022/design-angular-kit.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/abstracts/abstract-form.component.d.ts +87 -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/form/autocomplete/autocomplete.component.d.ts +59 -0
- package/lib/components/form/checkbox/checkbox.component.d.ts +41 -0
- package/lib/components/form/form.module.d.ts +18 -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/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 +53 -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 +69 -0
- package/package.json +14 -9
- package/{src/public_api.ts → public_api.d.ts} +0 -43
- 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,95 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, inject, Input } from '@angular/core';
|
|
2
|
-
import { IconColor, IconName, IconSize } from '../../../interfaces/icon';
|
|
3
|
-
import { inputToBoolean } from '../../../utils/coercion';
|
|
4
|
-
import { IT_ASSET_BASE_PATH } from '../../../interfaces/design-angular-kit-config';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
standalone: true,
|
|
8
|
-
selector: 'it-icon',
|
|
9
|
-
templateUrl: './icon.component.html',
|
|
10
|
-
styles: ':host {display: contents;}',
|
|
11
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
|
-
imports: [],
|
|
13
|
-
})
|
|
14
|
-
export class ItIconComponent {
|
|
15
|
-
/**
|
|
16
|
-
* The icon name
|
|
17
|
-
*/
|
|
18
|
-
@Input({ required: true }) name!: IconName;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* The icon size
|
|
22
|
-
*/
|
|
23
|
-
@Input() size: IconSize | undefined;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* The icon color
|
|
27
|
-
*/
|
|
28
|
-
@Input() color: IconColor | undefined;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Create a padding proportional to the size of the surrounding icon.
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
@Input({ transform: inputToBoolean }) padded?: boolean;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Custom class of svg
|
|
38
|
-
*/
|
|
39
|
-
@Input() svgClass: string | undefined;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Title of the icon
|
|
43
|
-
*/
|
|
44
|
-
@Input() title: string | undefined;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Custom Waria label
|
|
48
|
-
*/
|
|
49
|
-
@Input() labelWaria: string | undefined;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Return the icon href
|
|
53
|
-
*/
|
|
54
|
-
protected get iconHref(): string {
|
|
55
|
-
return `${this.assetBasePath}/dist/svg/sprites.svg#it-${this.name}`;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Return the icon class
|
|
60
|
-
*/
|
|
61
|
-
protected get iconClass(): string {
|
|
62
|
-
let iconClass = 'icon';
|
|
63
|
-
if (this.size) {
|
|
64
|
-
iconClass += ` icon-${this.size}`;
|
|
65
|
-
}
|
|
66
|
-
if (this.color) {
|
|
67
|
-
iconClass += ` icon-${this.color}`;
|
|
68
|
-
}
|
|
69
|
-
if (this.padded) {
|
|
70
|
-
iconClass += ` icon-padded`;
|
|
71
|
-
}
|
|
72
|
-
if (this.svgClass) {
|
|
73
|
-
iconClass += ` ${this.svgClass}`;
|
|
74
|
-
}
|
|
75
|
-
return iconClass;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* The bootstrap-italia asset folder path
|
|
80
|
-
* @default ./bootstrap-italia
|
|
81
|
-
*/
|
|
82
|
-
protected assetBasePath: string;
|
|
83
|
-
|
|
84
|
-
get isAriaHidden(): boolean {
|
|
85
|
-
return this.labelWaria == undefined && this.title == undefined;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
get role(): string | null {
|
|
89
|
-
return this.labelWaria == undefined && this.title == undefined ? null : 'img';
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
constructor() {
|
|
93
|
-
this.assetBasePath = inject(IT_ASSET_BASE_PATH);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<it-dropdown [mode]="mode">
|
|
2
|
-
<ng-container button>
|
|
3
|
-
<span class="visually-hidden">{{ 'it.utils.selected' | translate: { lang: (currentLang$ | async)?.label } }}</span>
|
|
4
|
-
<span>{{ (currentLang$ | async)?.label || ('it.utils.select-language' | translate) }}</span>
|
|
5
|
-
</ng-container>
|
|
6
|
-
|
|
7
|
-
@if (availableLanguages) {
|
|
8
|
-
<ng-container list>
|
|
9
|
-
@for (lang of availableLanguages; track lang.code) {
|
|
10
|
-
<it-dropdown-item (click)="changeLanguage(lang.code)" [active]="lang.code === (currentLang$ | async)?.code">
|
|
11
|
-
{{ lang.label }}
|
|
12
|
-
@if (lang.code === (currentLang$ | async)?.code) {
|
|
13
|
-
<span class="visually-hidden">
|
|
14
|
-
{{ 'it.utils.selected' | translate }}
|
|
15
|
-
</span>
|
|
16
|
-
}
|
|
17
|
-
</it-dropdown-item>
|
|
18
|
-
}
|
|
19
|
-
</ng-container>
|
|
20
|
-
}
|
|
21
|
-
</it-dropdown>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ItLanguageSwitcherComponent } from './language-switcher.component';
|
|
4
|
-
import { tb_base } from '../../../../test';
|
|
5
|
-
|
|
6
|
-
describe('ItLanguageSwitcherComponent', () => {
|
|
7
|
-
let component: ItLanguageSwitcherComponent;
|
|
8
|
-
let fixture: ComponentFixture<ItLanguageSwitcherComponent>;
|
|
9
|
-
|
|
10
|
-
beforeEach(async () => {
|
|
11
|
-
await TestBed.configureTestingModule(tb_base).compileComponents();
|
|
12
|
-
|
|
13
|
-
fixture = TestBed.createComponent(ItLanguageSwitcherComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
|
|
2
|
-
import { map, Observable, startWith } from 'rxjs';
|
|
3
|
-
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { AvailableLanguage } from '../../../interfaces/utils';
|
|
5
|
-
import { AsyncPipe } from '@angular/common';
|
|
6
|
-
import { ItDropdownModule } from '../../core/dropdown/dropdown.module';
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
standalone: true,
|
|
10
|
-
selector: 'it-language-switcher',
|
|
11
|
-
templateUrl: './language-switcher.component.html',
|
|
12
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13
|
-
imports: [AsyncPipe, TranslateModule, ItDropdownModule],
|
|
14
|
-
})
|
|
15
|
-
export class ItLanguageSwitcherComponent implements OnInit {
|
|
16
|
-
/**
|
|
17
|
-
* The available languages
|
|
18
|
-
* @default The languages available through TranslateService (ngx-translate)
|
|
19
|
-
*/
|
|
20
|
-
@Input() availableLanguages: Array<AvailableLanguage> | undefined;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Dropdown mode
|
|
24
|
-
*/
|
|
25
|
-
@Input() mode: 'button' | 'link' | 'nav' = 'link';
|
|
26
|
-
|
|
27
|
-
protected currentLang$: Observable<AvailableLanguage | undefined>;
|
|
28
|
-
|
|
29
|
-
constructor(private readonly translateService: TranslateService) {
|
|
30
|
-
this.currentLang$ = this.translateService.onLangChange.pipe(
|
|
31
|
-
startWith({ lang: translateService.currentLang }),
|
|
32
|
-
map(event => this.availableLanguages?.find(l => l.code === event.lang))
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
ngOnInit(): void {
|
|
37
|
-
if (!this.availableLanguages) {
|
|
38
|
-
this.availableLanguages = this.translateService.getLangs().map(lang => ({
|
|
39
|
-
code: lang,
|
|
40
|
-
label: lang,
|
|
41
|
-
...(lang === 'it' && { label: 'ITA' }),
|
|
42
|
-
...(lang === 'en' && { label: 'ENG' }),
|
|
43
|
-
}));
|
|
44
|
-
} else {
|
|
45
|
-
this.translateService.addLangs(this.availableLanguages.map(l => l.code)); // Adds custom languages
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Change the current language
|
|
51
|
-
* @param lang the language code
|
|
52
|
-
*/
|
|
53
|
-
public changeLanguage(lang: string): void {
|
|
54
|
-
this.translateService.use(lang);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders, NgModule } from '@angular/core';
|
|
2
|
-
import { ItAccordionComponent } from './components/core/accordion/accordion.component';
|
|
3
|
-
import { ItAlertComponent } from './components/core/alert/alert.component';
|
|
4
|
-
import { ItAvatarModule } from './components/core/avatar/avatar.module';
|
|
5
|
-
import { ItBadgeDirective } from './components/core/badge/badge.directive';
|
|
6
|
-
import { ItButtonDirective } from './components/core/button/button.directive';
|
|
7
|
-
import { ItCalloutComponent } from './components/core/callout/callout.component';
|
|
8
|
-
import { ItCardComponent } from './components/core/card/card.component';
|
|
9
|
-
import { ItCarouselModule } from './components/core/carousel/carousel.module';
|
|
10
|
-
import { ItChipComponent } from './components/core/chip/chip.component';
|
|
11
|
-
import { ItCollapseComponent } from './components/core/collapse/collapse.component';
|
|
12
|
-
import { ItDimmerModule } from './components/core/dimmer/dimmer.module';
|
|
13
|
-
import { ItDropdownModule } from './components/core/dropdown/dropdown.module';
|
|
14
|
-
import { ItForwardDirective } from './components/core/forward/forward.directive';
|
|
15
|
-
import { ItLinkComponent } from './components/core/link/link.component';
|
|
16
|
-
import { ItListModule } from './components/core/list/list.module';
|
|
17
|
-
import { ItModalComponent } from './components/core/modal/modal.component';
|
|
18
|
-
import { ItNotificationsComponent } from './components/core/notifications/notifications.component';
|
|
19
|
-
import { ItPaginationComponent } from './components/core/pagination/pagination.component';
|
|
20
|
-
import { ItPopoverDirective } from './components/core/popover/popover.directive';
|
|
21
|
-
import { ItProgressBarComponent } from './components/core/progress-bar/progress-bar.component';
|
|
22
|
-
import { ItProgressButtonComponent } from './components/core/progress-button/progress-button.component';
|
|
23
|
-
import { ItSpinnerComponent } from './components/core/spinner/spinner.component';
|
|
24
|
-
import { ItSteppersModule } from './components/core/steppers/steppers.module';
|
|
25
|
-
import { ItTabModule } from './components/core/tab/tab.module';
|
|
26
|
-
import { ItTableModule } from './components/core/table/table.module';
|
|
27
|
-
import { ItTimelineModule } from './components/core/timeline/timeline.module';
|
|
28
|
-
import { ItTooltipDirective } from './components/core/tooltip/tooltip.directive';
|
|
29
|
-
import { ItFormModule } from './components/form/form.module';
|
|
30
|
-
import { ItBackButtonComponent } from './components/navigation/back-button/back-button.component';
|
|
31
|
-
import { ItBackToTopComponent } from './components/navigation/back-to-top/back-to-top.component';
|
|
32
|
-
import { ItBreadcrumbsModule } from './components/navigation/breadcrumbs/breadcrumbs.module';
|
|
33
|
-
import { ItHeaderComponent } from './components/navigation/header/header.component';
|
|
34
|
-
import { ItMegamenuComponent } from './components/navigation/megamenu/megamenu.component';
|
|
35
|
-
import { ItNavBarModule } from './components/navigation/navbar/navbar.module';
|
|
36
|
-
import { ItNavscrollComponent } from './components/navigation/navscroll/navscroll.component';
|
|
37
|
-
import { ItSidebarComponent } from './components/navigation/sidebar/sidebar.component';
|
|
38
|
-
import { ItErrorPageComponent } from './components/utils/error-page/error-page.component';
|
|
39
|
-
import { ItIconComponent } from './components/utils/icon/icon.component';
|
|
40
|
-
import { ItLanguageSwitcherComponent } from './components/utils/language-switcher/language-switcher.component';
|
|
41
|
-
import { DesignAngularKitConfig } from './interfaces/design-angular-kit-config';
|
|
42
|
-
import { ItDateAgoPipe } from './pipes/date-ago.pipe';
|
|
43
|
-
import { ItDurationPipe } from './pipes/duration.pipe';
|
|
44
|
-
import { ItMarkMatchingTextPipe } from './pipes/mark-matching-text.pipe';
|
|
45
|
-
import { ItSkiplinkModule } from './components/navigation/skiplink/skiplink.module';
|
|
46
|
-
import { provideDesignAngularKit } from './provide-design-angular-kit';
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Core components
|
|
50
|
-
*/
|
|
51
|
-
const core = [
|
|
52
|
-
ItAccordionComponent,
|
|
53
|
-
ItAlertComponent,
|
|
54
|
-
ItAvatarModule,
|
|
55
|
-
ItBadgeDirective,
|
|
56
|
-
ItButtonDirective,
|
|
57
|
-
ItCalloutComponent,
|
|
58
|
-
ItCardComponent,
|
|
59
|
-
ItCarouselModule,
|
|
60
|
-
ItChipComponent,
|
|
61
|
-
ItCollapseComponent,
|
|
62
|
-
ItDimmerModule,
|
|
63
|
-
ItDropdownModule,
|
|
64
|
-
ItForwardDirective,
|
|
65
|
-
ItLinkComponent,
|
|
66
|
-
ItListModule,
|
|
67
|
-
ItModalComponent,
|
|
68
|
-
ItNotificationsComponent,
|
|
69
|
-
ItPaginationComponent,
|
|
70
|
-
ItPopoverDirective,
|
|
71
|
-
ItProgressBarComponent,
|
|
72
|
-
ItProgressButtonComponent,
|
|
73
|
-
ItSpinnerComponent,
|
|
74
|
-
ItSteppersModule,
|
|
75
|
-
ItTabModule,
|
|
76
|
-
ItTableModule,
|
|
77
|
-
ItTooltipDirective,
|
|
78
|
-
ItTimelineModule,
|
|
79
|
-
];
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Navigation Components
|
|
83
|
-
*/
|
|
84
|
-
const navigation = [
|
|
85
|
-
ItBackButtonComponent,
|
|
86
|
-
ItBackToTopComponent,
|
|
87
|
-
ItBreadcrumbsModule,
|
|
88
|
-
ItHeaderComponent,
|
|
89
|
-
ItNavBarModule,
|
|
90
|
-
ItSidebarComponent,
|
|
91
|
-
ItMegamenuComponent,
|
|
92
|
-
ItSkiplinkModule,
|
|
93
|
-
ItNavscrollComponent,
|
|
94
|
-
];
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Utils components
|
|
98
|
-
*/
|
|
99
|
-
const utils = [ItErrorPageComponent, ItIconComponent, ItLanguageSwitcherComponent];
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Library pipes
|
|
103
|
-
*/
|
|
104
|
-
const pipes = [ItDateAgoPipe, ItDurationPipe, ItMarkMatchingTextPipe];
|
|
105
|
-
|
|
106
|
-
const components = [
|
|
107
|
-
...core, // Core components
|
|
108
|
-
ItFormModule, // Form components
|
|
109
|
-
...navigation, // Navigation Components
|
|
110
|
-
...utils, // Utils components
|
|
111
|
-
...pipes, // Library pipes
|
|
112
|
-
];
|
|
113
|
-
|
|
114
|
-
@NgModule({
|
|
115
|
-
imports: components,
|
|
116
|
-
exports: components,
|
|
117
|
-
})
|
|
118
|
-
export class DesignAngularKitModule {
|
|
119
|
-
public static forRoot(config?: DesignAngularKitConfig): ModuleWithProviders<DesignAngularKitModule> {
|
|
120
|
-
return {
|
|
121
|
-
ngModule: DesignAngularKitModule,
|
|
122
|
-
providers: [provideDesignAngularKit(config)],
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
public static forChild(): ModuleWithProviders<DesignAngularKitModule> {
|
|
127
|
-
return {
|
|
128
|
-
ngModule: DesignAngularKitModule,
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, Provider } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The bootstrap-italia asset folder path
|
|
5
|
-
* @default ./bootstrap-italia
|
|
6
|
-
*/
|
|
7
|
-
export const IT_ASSET_BASE_PATH = new InjectionToken<string>('it-asset-base-path');
|
|
8
|
-
|
|
9
|
-
export interface DesignAngularKitConfig {
|
|
10
|
-
/**
|
|
11
|
-
* The bootstrap-italia asset folder path
|
|
12
|
-
* @default ./bootstrap-italia
|
|
13
|
-
*/
|
|
14
|
-
assetBasePath?: string;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Load the <a href="https://italia.github.io/bootstrap-italia/docs/come-iniziare/introduzione/#fonts">bootstrap-italia fonts</a>
|
|
18
|
-
* @default true
|
|
19
|
-
*/
|
|
20
|
-
loadFont?: boolean;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* The TranslateModule loader
|
|
24
|
-
* @param itPrefix the design-angular-kit i18n path
|
|
25
|
-
* @param itSuffix the design-angular-kit i18n suffix
|
|
26
|
-
* @default
|
|
27
|
-
* {
|
|
28
|
-
* provide: TranslateLoader,
|
|
29
|
-
* useFactory: (http: HttpClient) => new TranslateHttpLoader(http, `${assetBasePath}/i18n/`, `.json?v${version}`),
|
|
30
|
-
* deps: [HttpClient],
|
|
31
|
-
* }
|
|
32
|
-
*/
|
|
33
|
-
translateLoader?: (itPrefix: string, itSuffix: string) => Provider;
|
|
34
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { IconName } from './icon';
|
|
2
|
-
|
|
3
|
-
export type InputControlType = 'text' | 'email' | 'number' | 'date' | 'time' | 'tel' | 'color' | 'url';
|
|
4
|
-
|
|
5
|
-
export interface SelectControlOption<T = any> {
|
|
6
|
-
value: T;
|
|
7
|
-
text?: string;
|
|
8
|
-
selected?: boolean | ((value: T) => boolean);
|
|
9
|
-
disabled?: boolean | ((value: T) => boolean);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface SelectControlGroup<T = any> {
|
|
13
|
-
label: string;
|
|
14
|
-
options: Array<SelectControlOption<T>>;
|
|
15
|
-
dragdrop?: boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface UploadFileListItem {
|
|
19
|
-
/**
|
|
20
|
-
* The item id
|
|
21
|
-
*/
|
|
22
|
-
id: number;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The uploaded file
|
|
26
|
-
*/
|
|
27
|
-
file: File;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Show progress bar
|
|
31
|
-
*
|
|
32
|
-
* The status of the item changes based on the value:
|
|
33
|
-
* - <b>uploading</b>: if value is between 0 and 100 (exclusive 0 < value < 100)
|
|
34
|
-
* - <b>success</b>: if value is greater than 100
|
|
35
|
-
*/
|
|
36
|
-
progress?: number;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Show the ability to delete item
|
|
40
|
-
* @default false
|
|
41
|
-
*/
|
|
42
|
-
removable?: boolean;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Set the status of the item as 'error'
|
|
46
|
-
*/
|
|
47
|
-
error?: boolean;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Add tooltip on file item name
|
|
51
|
-
* @example It can be used to show the error message or additional information about the file
|
|
52
|
-
*/
|
|
53
|
-
tooltip?: string;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Elemento disponibile per l'autocompletamento del it-form-input
|
|
58
|
-
*/
|
|
59
|
-
export interface AutocompleteItem<T = any> {
|
|
60
|
-
/** Valore voce di autocompletamento */
|
|
61
|
-
value: string;
|
|
62
|
-
/** Opzionale. Path in cui ricercare l'immagine dell'avatar da posizionare a sinistra della voce di autocompletamento */
|
|
63
|
-
avatarSrcPath?: string;
|
|
64
|
-
/** Opzionale. Testo in alternativa dell'avatar per accessibilità */
|
|
65
|
-
avatarAltText?: string;
|
|
66
|
-
/** Opzionale. Icona posizionata a sinistra della voce di autocompletamento */
|
|
67
|
-
icon?: IconName;
|
|
68
|
-
/** Opzionale. Label posizionata a destra della voce di autocompletamento */
|
|
69
|
-
label?: string;
|
|
70
|
-
/** Opzionale. Link relativo all'elemento */
|
|
71
|
-
link?: string;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Attribute not used for autocomplete rendering.
|
|
75
|
-
* It can be useful to retrieve some extra information when selecting the autocomplete item
|
|
76
|
-
*/
|
|
77
|
-
additionalData?: T;
|
|
78
|
-
}
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
export type IconSize = 'xs' | 'sm' | 'lg' | 'xl';
|
|
2
|
-
|
|
3
|
-
export type IconColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'light' | 'white';
|
|
4
|
-
|
|
5
|
-
export type IconName = (typeof IconNameArray)[number];
|
|
6
|
-
|
|
7
|
-
export const IconNameArray = [
|
|
8
|
-
'arrow-down',
|
|
9
|
-
'arrow-down-circle',
|
|
10
|
-
'arrow-down-triangle',
|
|
11
|
-
'arrow-left',
|
|
12
|
-
'arrow-left-circle',
|
|
13
|
-
'arrow-left-triangle',
|
|
14
|
-
'arrow-right',
|
|
15
|
-
'arrow-right-circle',
|
|
16
|
-
'arrow-right-triangle',
|
|
17
|
-
'arrow-up',
|
|
18
|
-
'arrow-up-circle',
|
|
19
|
-
'arrow-up-triangle',
|
|
20
|
-
'ban',
|
|
21
|
-
'bookmark',
|
|
22
|
-
'box',
|
|
23
|
-
'burger',
|
|
24
|
-
'calendar',
|
|
25
|
-
'camera',
|
|
26
|
-
'card',
|
|
27
|
-
'chart-line',
|
|
28
|
-
'check',
|
|
29
|
-
'check-circle',
|
|
30
|
-
'chevron-left',
|
|
31
|
-
'chevron-right',
|
|
32
|
-
'clip',
|
|
33
|
-
'clock',
|
|
34
|
-
'close',
|
|
35
|
-
'close-big',
|
|
36
|
-
'close-circle',
|
|
37
|
-
'code-circle',
|
|
38
|
-
'comment',
|
|
39
|
-
'copy',
|
|
40
|
-
'delete',
|
|
41
|
-
'download',
|
|
42
|
-
'error',
|
|
43
|
-
'exchange-circle',
|
|
44
|
-
'expand',
|
|
45
|
-
'external-link',
|
|
46
|
-
'flag',
|
|
47
|
-
'folder',
|
|
48
|
-
'fullscreen',
|
|
49
|
-
'funnel',
|
|
50
|
-
'hearing',
|
|
51
|
-
'help',
|
|
52
|
-
'help-circle',
|
|
53
|
-
'horn',
|
|
54
|
-
'inbox',
|
|
55
|
-
'info-circle',
|
|
56
|
-
'key',
|
|
57
|
-
'link',
|
|
58
|
-
'list',
|
|
59
|
-
'locked',
|
|
60
|
-
'logout',
|
|
61
|
-
'mail',
|
|
62
|
-
'mail-open',
|
|
63
|
-
'map-marker',
|
|
64
|
-
'map-marker-circle',
|
|
65
|
-
'map-marker-minus',
|
|
66
|
-
'map-marker-plus',
|
|
67
|
-
'maximize',
|
|
68
|
-
'maximize-alt',
|
|
69
|
-
'minimize',
|
|
70
|
-
'minus',
|
|
71
|
-
'minus-circle',
|
|
72
|
-
'more-actions',
|
|
73
|
-
'more-items',
|
|
74
|
-
'note',
|
|
75
|
-
'pa',
|
|
76
|
-
'password-invisible',
|
|
77
|
-
'password-visible',
|
|
78
|
-
'pencil',
|
|
79
|
-
'piattaforme',
|
|
80
|
-
'pin',
|
|
81
|
-
'plug',
|
|
82
|
-
'plus',
|
|
83
|
-
'plus-circle',
|
|
84
|
-
'presentation',
|
|
85
|
-
'print',
|
|
86
|
-
'refresh',
|
|
87
|
-
'restore',
|
|
88
|
-
'rss',
|
|
89
|
-
'rss-square',
|
|
90
|
-
'search',
|
|
91
|
-
'settings',
|
|
92
|
-
'share',
|
|
93
|
-
'software',
|
|
94
|
-
'star-full',
|
|
95
|
-
'star-outline',
|
|
96
|
-
'telephone',
|
|
97
|
-
'tool',
|
|
98
|
-
'unlocked',
|
|
99
|
-
'upload',
|
|
100
|
-
'user',
|
|
101
|
-
'video',
|
|
102
|
-
'warning',
|
|
103
|
-
'warning-circle',
|
|
104
|
-
'wifi',
|
|
105
|
-
'zoom-in',
|
|
106
|
-
'zoom-out',
|
|
107
|
-
|
|
108
|
-
// Files
|
|
109
|
-
'file',
|
|
110
|
-
'files',
|
|
111
|
-
'file-audio',
|
|
112
|
-
'file-compressed',
|
|
113
|
-
'file-csv',
|
|
114
|
-
'file-json',
|
|
115
|
-
'file-odp',
|
|
116
|
-
'file-ods',
|
|
117
|
-
'file-odt',
|
|
118
|
-
'file-pdf',
|
|
119
|
-
'file-pdf-ext',
|
|
120
|
-
'file-sheet',
|
|
121
|
-
'file-slides',
|
|
122
|
-
'file-ppt',
|
|
123
|
-
'file-txt',
|
|
124
|
-
'file-video',
|
|
125
|
-
'file-xml',
|
|
126
|
-
|
|
127
|
-
// Platforms
|
|
128
|
-
'behance',
|
|
129
|
-
'facebook',
|
|
130
|
-
'facebook-square',
|
|
131
|
-
'figma',
|
|
132
|
-
'figma-square',
|
|
133
|
-
'flickr',
|
|
134
|
-
'flickr-square',
|
|
135
|
-
'github',
|
|
136
|
-
'instagram',
|
|
137
|
-
'linkedin',
|
|
138
|
-
'linkedin-square',
|
|
139
|
-
'mastodon',
|
|
140
|
-
'mastodon-square',
|
|
141
|
-
'medium',
|
|
142
|
-
'medium-square',
|
|
143
|
-
'moodle',
|
|
144
|
-
'moodle-square',
|
|
145
|
-
'pinterest',
|
|
146
|
-
'pinterest-square',
|
|
147
|
-
'quora',
|
|
148
|
-
'quora-square',
|
|
149
|
-
'reddit',
|
|
150
|
-
'reddit-square',
|
|
151
|
-
'slack',
|
|
152
|
-
'slack-square',
|
|
153
|
-
'snapchat',
|
|
154
|
-
'snapchat-square',
|
|
155
|
-
'stackexchange',
|
|
156
|
-
'stackexchange-square',
|
|
157
|
-
'stackoverflow',
|
|
158
|
-
'stackoverflow-square',
|
|
159
|
-
'telegram',
|
|
160
|
-
'threads',
|
|
161
|
-
'threads-square',
|
|
162
|
-
'tiktok',
|
|
163
|
-
'tiktok-square',
|
|
164
|
-
'twitter',
|
|
165
|
-
'twitter-square',
|
|
166
|
-
'vimeo',
|
|
167
|
-
'vimeo-square',
|
|
168
|
-
'whatsapp',
|
|
169
|
-
'whatsapp-square',
|
|
170
|
-
'youtube',
|
|
171
|
-
'google',
|
|
172
|
-
|
|
173
|
-
// Extra
|
|
174
|
-
'designers-italia',
|
|
175
|
-
'team-digitale',
|
|
176
|
-
] as const;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
export type SortDirection = 'asc' | 'desc' | undefined;
|
|
4
|
-
|
|
5
|
-
/** Position of the arrow that displays when sorted. */
|
|
6
|
-
export type SortHeaderArrowPosition = 'before' | 'after';
|
|
7
|
-
|
|
8
|
-
/** Interface for a directive that holds sorting state consumed by `ItSortHeader`. */
|
|
9
|
-
export interface ItSortable {
|
|
10
|
-
/** The id of the column being sorted. */
|
|
11
|
-
id: string;
|
|
12
|
-
|
|
13
|
-
/** Starting sort direction. */
|
|
14
|
-
start?: SortDirection;
|
|
15
|
-
|
|
16
|
-
/** Whether to disable clearing the sorting state. */
|
|
17
|
-
disableSortClear?: boolean;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/** The current sort state. */
|
|
21
|
-
export interface ItSortEvent {
|
|
22
|
-
/** The id of the column being sorted. */
|
|
23
|
-
active: string;
|
|
24
|
-
|
|
25
|
-
/** The sort direction. */
|
|
26
|
-
direction: SortDirection;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Default options for `it-sort`.
|
|
31
|
-
*/
|
|
32
|
-
export interface ItSortDefaultOptions {
|
|
33
|
-
/** Whether to disable clearing the sorting state. */
|
|
34
|
-
disableClear?: boolean;
|
|
35
|
-
/** Position of the arrow that displays when sorted. */
|
|
36
|
-
arrowPosition?: SortHeaderArrowPosition;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Injection token to be used to override the default options for `it-sort`.
|
|
41
|
-
*/
|
|
42
|
-
export const IT_SORT_DEFAULT_OPTIONS = new InjectionToken<ItSortDefaultOptions>('IT_SORT_DEFAULT_OPTIONS');
|