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,143 +0,0 @@
|
|
|
1
|
-
import { AsyncPipe, NgClass, NgTemplateOutlet, ViewportScroller } from '@angular/common';
|
|
2
|
-
import {
|
|
3
|
-
ChangeDetectionStrategy,
|
|
4
|
-
Component,
|
|
5
|
-
DestroyRef,
|
|
6
|
-
ElementRef,
|
|
7
|
-
HostListener,
|
|
8
|
-
inject,
|
|
9
|
-
Input,
|
|
10
|
-
OnInit,
|
|
11
|
-
TemplateRef,
|
|
12
|
-
ViewChild,
|
|
13
|
-
} from '@angular/core';
|
|
14
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
15
|
-
import { RouterLink, RouterLinkActive, RouterLinkWithHref } from '@angular/router';
|
|
16
|
-
import { delay, filter, map, tap, withLatestFrom } from 'rxjs';
|
|
17
|
-
import { ItNavscrollListItemsComponent } from './navscroll-list-items.component';
|
|
18
|
-
import { NavscrollItem } from './navscroll.model';
|
|
19
|
-
import { NavscrollStore } from './navscroll.store';
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Navscroll
|
|
23
|
-
* @description Show a list of links to anchor of the document.
|
|
24
|
-
*/
|
|
25
|
-
@Component({
|
|
26
|
-
selector: 'it-navscroll',
|
|
27
|
-
standalone: true,
|
|
28
|
-
imports: [
|
|
29
|
-
ItNavscrollListItemsComponent,
|
|
30
|
-
AsyncPipe,
|
|
31
|
-
NgTemplateOutlet,
|
|
32
|
-
RouterLink,
|
|
33
|
-
RouterLinkActive,
|
|
34
|
-
RouterLinkWithHref,
|
|
35
|
-
AsyncPipe,
|
|
36
|
-
NgClass,
|
|
37
|
-
],
|
|
38
|
-
templateUrl: './navscroll.component.html',
|
|
39
|
-
styleUrl: './navscroll.component.scss',
|
|
40
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
41
|
-
providers: [NavscrollStore],
|
|
42
|
-
})
|
|
43
|
-
export class ItNavscrollComponent implements OnInit {
|
|
44
|
-
/**
|
|
45
|
-
* Header of the Navscroll
|
|
46
|
-
*/
|
|
47
|
-
@Input() header = '';
|
|
48
|
-
/**
|
|
49
|
-
* A list of links
|
|
50
|
-
*/
|
|
51
|
-
@Input() items!: Array<NavscrollItem>;
|
|
52
|
-
/**
|
|
53
|
-
* Border position
|
|
54
|
-
* @default left
|
|
55
|
-
*/
|
|
56
|
-
@Input() borderPosition: 'left' | 'right' = 'left';
|
|
57
|
-
/**
|
|
58
|
-
* Alignment
|
|
59
|
-
* @default top
|
|
60
|
-
*/
|
|
61
|
-
@Input() alignment: 'top' | 'bottom' = 'top';
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Theme
|
|
65
|
-
* @default light
|
|
66
|
-
*/
|
|
67
|
-
@Input() theme: 'light' | 'dark' = 'light';
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Custom template for the content section
|
|
71
|
-
*/
|
|
72
|
-
@Input()
|
|
73
|
-
pageSectionsTemplate?: TemplateRef<any>;
|
|
74
|
-
|
|
75
|
-
@HostListener('window:scroll', ['$event']) // for window scroll events
|
|
76
|
-
onScroll() {
|
|
77
|
-
const sectionContainer = this.#elementRef.nativeElement.querySelector('.it-page-sections-container');
|
|
78
|
-
this.#store.updateProgressBar(sectionContainer);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
@HostListener('window:resize', ['$event'])
|
|
82
|
-
onResize() {
|
|
83
|
-
this.#setMobile();
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@ViewChild('toggleButtonRef')
|
|
87
|
-
readonly toggleButtonRef!: ElementRef<HTMLButtonElement>;
|
|
88
|
-
|
|
89
|
-
readonly #store = inject(NavscrollStore);
|
|
90
|
-
|
|
91
|
-
readonly #scroller = inject(ViewportScroller);
|
|
92
|
-
|
|
93
|
-
readonly #destroyRef = inject(DestroyRef);
|
|
94
|
-
|
|
95
|
-
readonly #elementRef = inject(ElementRef);
|
|
96
|
-
|
|
97
|
-
readonly selectedTitle = this.#store.selected.pipe(map(selected => selected?.title ?? ''));
|
|
98
|
-
|
|
99
|
-
readonly progressBarValue = this.#store.progressBar;
|
|
100
|
-
|
|
101
|
-
readonly isMobile = this.#store.isMobile;
|
|
102
|
-
|
|
103
|
-
constructor() {
|
|
104
|
-
this.#store.menuItemSelected
|
|
105
|
-
.pipe(
|
|
106
|
-
takeUntilDestroyed(),
|
|
107
|
-
withLatestFrom(this.isMobile),
|
|
108
|
-
tap(v => {
|
|
109
|
-
const isMobile = v[1];
|
|
110
|
-
if (isMobile) {
|
|
111
|
-
this.toggleButtonRef.nativeElement.click();
|
|
112
|
-
}
|
|
113
|
-
})
|
|
114
|
-
)
|
|
115
|
-
.subscribe();
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
ngOnInit(): void {
|
|
119
|
-
this.#initViewScrollerSubscription();
|
|
120
|
-
this.#store.init(this.items);
|
|
121
|
-
this.#setMobile();
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
#initViewScrollerSubscription() {
|
|
125
|
-
this.#store.selected
|
|
126
|
-
.pipe(
|
|
127
|
-
takeUntilDestroyed(this.#destroyRef),
|
|
128
|
-
filter(selected => Boolean(selected)),
|
|
129
|
-
map(v => v as NavscrollItem),
|
|
130
|
-
delay(0), //WA
|
|
131
|
-
tap({
|
|
132
|
-
next: ({ href }) => {
|
|
133
|
-
this.#scroller.scrollToAnchor(href);
|
|
134
|
-
},
|
|
135
|
-
})
|
|
136
|
-
)
|
|
137
|
-
.subscribe();
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
#setMobile() {
|
|
141
|
-
this.#store.setMobile(window);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject, distinctUntilChanged, map, Subject } from 'rxjs';
|
|
2
|
-
import { NavscrollItem } from './navscroll.model';
|
|
3
|
-
import { flattenNavscrollItems, search } from './navscroll.utils';
|
|
4
|
-
|
|
5
|
-
interface NavscrollState {
|
|
6
|
-
items: Set<NavscrollItem>;
|
|
7
|
-
active: Array<NavscrollItem>;
|
|
8
|
-
selected?: NavscrollItem;
|
|
9
|
-
progressBar: number;
|
|
10
|
-
isMobile: boolean;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export class NavscrollStore {
|
|
14
|
-
readonly #state = new BehaviorSubject<NavscrollState>({
|
|
15
|
-
items: new Set<NavscrollItem>(),
|
|
16
|
-
active: [],
|
|
17
|
-
selected: undefined,
|
|
18
|
-
progressBar: 0,
|
|
19
|
-
isMobile: false,
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
readonly #state$ = this.#state.asObservable();
|
|
23
|
-
|
|
24
|
-
readonly selected = this.#state$.pipe(
|
|
25
|
-
map(({ selected }) => selected),
|
|
26
|
-
distinctUntilChanged()
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
readonly progressBar = this.#state$.pipe(
|
|
30
|
-
map(({ progressBar }) => progressBar),
|
|
31
|
-
distinctUntilChanged()
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
readonly isMobile = this.#state$.pipe(
|
|
35
|
-
map(({ isMobile }) => isMobile),
|
|
36
|
-
distinctUntilChanged()
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
readonly #menuItemSelected = new Subject();
|
|
40
|
-
|
|
41
|
-
readonly menuItemSelected = this.#menuItemSelected.asObservable();
|
|
42
|
-
|
|
43
|
-
init(navscrollItems: Array<NavscrollItem>) {
|
|
44
|
-
const flattenItems = flattenNavscrollItems(navscrollItems);
|
|
45
|
-
//the first item is selected by default
|
|
46
|
-
const selected = ((flattenItems && flattenItems.length && flattenItems[0]) as NavscrollItem) ?? undefined;
|
|
47
|
-
|
|
48
|
-
const state = {
|
|
49
|
-
items: new Set(flattenItems),
|
|
50
|
-
active: selected ? [selected] : [],
|
|
51
|
-
selected: selected,
|
|
52
|
-
progressBar: 0,
|
|
53
|
-
isMobile: false,
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
this.#state.next(state);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
setActive(item: NavscrollItem) {
|
|
60
|
-
const { items } = this.#state.value;
|
|
61
|
-
|
|
62
|
-
const active = search(items, item);
|
|
63
|
-
const state = this.#state.value;
|
|
64
|
-
this.#state.next({ ...state, items, selected: item, active });
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
isActive$(item: NavscrollItem) {
|
|
68
|
-
return this.#state.asObservable().pipe(map(state => state.active.includes(item)));
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
updateProgressBar(container: HTMLElement) {
|
|
72
|
-
if (!container) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
const offset = Math.abs(container.getBoundingClientRect().top);
|
|
76
|
-
const height = container.getBoundingClientRect().height;
|
|
77
|
-
const scrollAmount = (offset / height) * 100;
|
|
78
|
-
const scrollValue = Math.min(100, Math.max(0, scrollAmount));
|
|
79
|
-
const state = this.#state.value;
|
|
80
|
-
this.#state.next({
|
|
81
|
-
...state,
|
|
82
|
-
progressBar: container.getBoundingClientRect().y > 0 ? 0 : scrollValue,
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
selectMenuItem() {
|
|
87
|
-
this.#menuItemSelected.next(undefined);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
setMobile({ innerWidth }: { innerWidth: number }) {
|
|
91
|
-
const isLessThan992px = innerWidth < 992;
|
|
92
|
-
const isMobile = isLessThan992px;
|
|
93
|
-
const state = this.#state.value;
|
|
94
|
-
this.#state.next({ ...state, isMobile });
|
|
95
|
-
}
|
|
96
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { NavscrollItem, NavscrollItems } from './navscroll.model';
|
|
2
|
-
|
|
3
|
-
function searchFn(items: Set<NavscrollItem>, item: NavscrollItem): Array<NavscrollItem> {
|
|
4
|
-
//ricerca
|
|
5
|
-
const nodes = Array.from(items);
|
|
6
|
-
const parent = nodes.find(i => i.childs.includes(item));
|
|
7
|
-
const ancestors = parent?.childs?.length ? searchFn(items, parent) : [];
|
|
8
|
-
return [item, ...ancestors];
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function flattenNavscrollItemsFn(items: NavscrollItems): NavscrollItems {
|
|
12
|
-
const result: NavscrollItems = [];
|
|
13
|
-
|
|
14
|
-
function flatten(items: NavscrollItems): void {
|
|
15
|
-
for (const item of items) {
|
|
16
|
-
result.push(item);
|
|
17
|
-
if (item.childs && item.childs.length > 0) {
|
|
18
|
-
flatten(item.childs);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
flatten(items);
|
|
24
|
-
return result;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export const search = searchFn;
|
|
28
|
-
export const flattenNavscrollItems = flattenNavscrollItemsFn;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
@if (header) {
|
|
2
|
-
<h3>{{ header }}</h3>
|
|
3
|
-
}
|
|
4
|
-
<div class="sidebar-linklist-wrapper">
|
|
5
|
-
<!--TODO: wrap ng-content with it-list -> inside content use a list of it-list-item directives-->
|
|
6
|
-
<ng-content></ng-content>
|
|
7
|
-
</div>
|
|
8
|
-
<div class="sidebar-linklist-wrapper linklist-secondary">
|
|
9
|
-
<!--TODO: wrap ng-content with it-list -> inside content use a list of it-list-item directives-->
|
|
10
|
-
<ng-content select="[secondary]"></ng-content>
|
|
11
|
-
</div>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ItSidebarComponent } from './sidebar.component';
|
|
4
|
-
import { tb_base } from '../../../../test';
|
|
5
|
-
|
|
6
|
-
describe('SidebarComponent', () => {
|
|
7
|
-
let component: ItSidebarComponent;
|
|
8
|
-
let fixture: ComponentFixture<ItSidebarComponent>;
|
|
9
|
-
|
|
10
|
-
beforeEach(async () => {
|
|
11
|
-
await TestBed.configureTestingModule(tb_base).compileComponents();
|
|
12
|
-
|
|
13
|
-
fixture = TestBed.createComponent(ItSidebarComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, HostBinding, Input } from '@angular/core';
|
|
2
|
-
import { inputToBoolean } from '../../../utils/coercion';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'it-sidebar',
|
|
6
|
-
standalone: true,
|
|
7
|
-
imports: [],
|
|
8
|
-
templateUrl: './sidebar.component.html',
|
|
9
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10
|
-
})
|
|
11
|
-
export class ItSidebarComponent {
|
|
12
|
-
/**
|
|
13
|
-
* Per creare una sidebar con linea separatrice a destra è sufficiente aggiungere la classe
|
|
14
|
-
*/
|
|
15
|
-
@Input({ transform: inputToBoolean })
|
|
16
|
-
@HostBinding('class.it-line-right-side')
|
|
17
|
-
public withRightLine = false;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Per creare una sidebar con linea separatrice a sinistra è sufficiente aggiungere la classe
|
|
21
|
-
*/
|
|
22
|
-
@Input({ transform: inputToBoolean })
|
|
23
|
-
@HostBinding('class.it-line-left-side')
|
|
24
|
-
public withLeftLine = false;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Per cambiare il tema della sidebar e renderla scura
|
|
28
|
-
*/
|
|
29
|
-
@Input({ transform: inputToBoolean })
|
|
30
|
-
@HostBinding('class.theme-dark')
|
|
31
|
-
public dark = false;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* L'intestazione della sidebar
|
|
35
|
-
*/
|
|
36
|
-
@Input() public header?: string;
|
|
37
|
-
|
|
38
|
-
@HostBinding('class') componentClass = 'd-block sidebar-wrapper';
|
|
39
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
@if (nav) {
|
|
2
|
-
<nav class="skiplinks">
|
|
3
|
-
<ul>
|
|
4
|
-
<ng-container *ngTemplateOutlet="linkContent"></ng-container>
|
|
5
|
-
</ul>
|
|
6
|
-
</nav>
|
|
7
|
-
} @else {
|
|
8
|
-
<div class="skiplinks">
|
|
9
|
-
<ng-container *ngTemplateOutlet="linkContent"></ng-container>
|
|
10
|
-
</div>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
<ng-template #linkContent>
|
|
14
|
-
<ng-content></ng-content>
|
|
15
|
-
</ng-template>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
3
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
4
|
-
import { inputToBoolean } from '../../../../utils/coercion';
|
|
5
|
-
import { ItLinkComponent } from '../../../core/link/link.component';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
standalone: true,
|
|
9
|
-
selector: 'it-skiplink',
|
|
10
|
-
templateUrl: './skiplink.component.html',
|
|
11
|
-
exportAs: 'itSkipLink',
|
|
12
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13
|
-
imports: [NgTemplateOutlet, TranslateModule, ItLinkComponent],
|
|
14
|
-
})
|
|
15
|
-
export class ItSkiplinkComponent {
|
|
16
|
-
/**
|
|
17
|
-
* Aria label for `nav` mode
|
|
18
|
-
* @default 'Scorciatoie di navigazione'
|
|
19
|
-
*/
|
|
20
|
-
@Input() ariaLabel: string = 'Scorciatoie di navigazione';
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* If `true` nav mode is enabled
|
|
24
|
-
* @default false
|
|
25
|
-
*/
|
|
26
|
-
@Input({ transform: inputToBoolean }) nav?: boolean;
|
|
27
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
@if (inNav) {
|
|
2
|
-
<li class="visually-hidden-focusable">
|
|
3
|
-
<it-link [href]="href" [externalLink]="externalLink">
|
|
4
|
-
<ng-container *ngTemplateOutlet="linkContent"></ng-container>
|
|
5
|
-
</it-link>
|
|
6
|
-
</li>
|
|
7
|
-
} @else {
|
|
8
|
-
<it-link class="visually-hidden-focusable" [href]="href" [externalLink]="externalLink">
|
|
9
|
-
<ng-container *ngTemplateOutlet="linkContent"></ng-container>
|
|
10
|
-
</it-link>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
<ng-template #linkContent>
|
|
14
|
-
<ng-content></ng-content>
|
|
15
|
-
</ng-template>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Host, Input } from '@angular/core';
|
|
2
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
3
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
4
|
-
import { inputToBoolean } from '../../../../utils/coercion';
|
|
5
|
-
import { ItLinkComponent } from '../../../core/link/link.component';
|
|
6
|
-
import { ItSkiplinkComponent } from '../skiplink/skiplink.component';
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
standalone: true,
|
|
10
|
-
selector: 'it-skiplink-item',
|
|
11
|
-
templateUrl: './skiplink-item.component.html',
|
|
12
|
-
exportAs: 'itSkipLinkItem',
|
|
13
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
|
-
imports: [NgTemplateOutlet, TranslateModule, ItLinkComponent],
|
|
15
|
-
})
|
|
16
|
-
export class ItSkiplinkItemComponent {
|
|
17
|
-
/**
|
|
18
|
-
* The router link action
|
|
19
|
-
*
|
|
20
|
-
* Commands to pass to Router#createUrlTree.
|
|
21
|
-
* - array: commands to pass to Router#createUrlTree.
|
|
22
|
-
* - string: shorthand for array of commands with just the string, i.e. ['/route']
|
|
23
|
-
* - null|undefined: Disables the link by removing the href
|
|
24
|
-
*/
|
|
25
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
26
|
-
@Input() href: any[] | string | null | undefined;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Is an external link (false to not use Angular router link)
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
|
-
@Input({ transform: inputToBoolean }) externalLink?: boolean;
|
|
33
|
-
inNav: boolean;
|
|
34
|
-
|
|
35
|
-
constructor(@Host() parent: ItSkiplinkComponent) {
|
|
36
|
-
this.inNav = parent.nav ? true : false;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { ItSkiplinkComponent } from './skiplink/skiplink.component';
|
|
3
|
-
import { ItSkiplinkItemComponent } from './skiplink-item/skiplink-item.component';
|
|
4
|
-
|
|
5
|
-
const skiplinkComponents = [ItSkiplinkComponent, ItSkiplinkItemComponent];
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
imports: skiplinkComponents,
|
|
9
|
-
exports: skiplinkComponents,
|
|
10
|
-
})
|
|
11
|
-
export class ItSkiplinkModule {}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<div class="container text-center mt-5">
|
|
2
|
-
@if (errorCode && showErrorCode) {
|
|
3
|
-
<h1>{{ errorCode }}</h1>
|
|
4
|
-
}
|
|
5
|
-
<h2>
|
|
6
|
-
@if (!errorTitle && isDefaultErrorCode) {
|
|
7
|
-
{{ 'it.utils.error-page.' + errorCode + '.title' | translate }}
|
|
8
|
-
} @else {
|
|
9
|
-
{{ errorTitle || 'it.errors.generic' | translate }}
|
|
10
|
-
}
|
|
11
|
-
</h2>
|
|
12
|
-
|
|
13
|
-
<p class="mt-3 w-75 mx-auto">
|
|
14
|
-
@if (!errorDescription && isDefaultErrorCode) {
|
|
15
|
-
{{ 'it.utils.error-page.' + errorCode + '.description' | translate }}
|
|
16
|
-
} @else {
|
|
17
|
-
{{ errorDescription || 'it.errors.generic-support-message' | translate }}
|
|
18
|
-
}
|
|
19
|
-
</p>
|
|
20
|
-
|
|
21
|
-
@if (showBackButton || showHomeButton) {
|
|
22
|
-
<div class="mt-5">
|
|
23
|
-
@if (showBackButton) {
|
|
24
|
-
<it-back-button></it-back-button>
|
|
25
|
-
}
|
|
26
|
-
@if (showHomeButton) {
|
|
27
|
-
<a itButton="outline-primary" class="ms-3" routerLink="/" title="{{ 'it.utils.error-page.go-to-homepage' | translate }}">
|
|
28
|
-
{{ 'it.utils.error-page.go-to-homepage' | translate }}
|
|
29
|
-
</a>
|
|
30
|
-
}
|
|
31
|
-
</div>
|
|
32
|
-
}
|
|
33
|
-
</div>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ItErrorPageComponent } from './error-page.component';
|
|
4
|
-
import { tb_base } from '../../../../test';
|
|
5
|
-
|
|
6
|
-
describe('ItErrorPageComponent', () => {
|
|
7
|
-
let component: ItErrorPageComponent;
|
|
8
|
-
let fixture: ComponentFixture<ItErrorPageComponent>;
|
|
9
|
-
|
|
10
|
-
beforeEach(async () => {
|
|
11
|
-
await TestBed.configureTestingModule(tb_base).compileComponents();
|
|
12
|
-
|
|
13
|
-
fixture = TestBed.createComponent(ItErrorPageComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute, RouterLink } from '@angular/router';
|
|
3
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
4
|
-
import { ItBackButtonComponent } from '../../navigation/back-button/back-button.component';
|
|
5
|
-
import { ItButtonDirective } from '../../core/button/button.directive';
|
|
6
|
-
import { inputToBoolean } from '../../../utils/coercion';
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
standalone: true,
|
|
10
|
-
selector: 'it-error-page',
|
|
11
|
-
templateUrl: './error-page.component.html',
|
|
12
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13
|
-
imports: [TranslateModule, RouterLink, ItBackButtonComponent, ItButtonDirective],
|
|
14
|
-
})
|
|
15
|
-
export class ItErrorPageComponent {
|
|
16
|
-
/**
|
|
17
|
-
* The error code to show
|
|
18
|
-
*/
|
|
19
|
-
@Input() errorCode: number | 404 | 403 | 500 | undefined;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Show/Hide error code
|
|
23
|
-
* @default true - show
|
|
24
|
-
*/
|
|
25
|
-
@Input({ transform: inputToBoolean }) showErrorCode?: boolean = true;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Custom error title
|
|
29
|
-
* - If set it will be displayed instead of the default title.
|
|
30
|
-
* - It is possible to use i18n keys
|
|
31
|
-
*/
|
|
32
|
-
@Input() errorTitle: string | undefined;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Custom error description
|
|
36
|
-
* - If set it will be displayed instead of the default description.
|
|
37
|
-
* - It is possible to use i18n keys
|
|
38
|
-
*/
|
|
39
|
-
@Input() errorDescription: string | undefined;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Show/Hide back button
|
|
43
|
-
* @default true - show
|
|
44
|
-
*/
|
|
45
|
-
@Input({ transform: inputToBoolean }) showBackButton?: boolean = true;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Show/Hide home button
|
|
49
|
-
* @default true - show
|
|
50
|
-
*/
|
|
51
|
-
@Input({ transform: inputToBoolean }) showHomeButton?: boolean = true;
|
|
52
|
-
|
|
53
|
-
constructor(private readonly route: ActivatedRoute) {
|
|
54
|
-
this.route.data.subscribe(data => {
|
|
55
|
-
if (!this.errorCode && data['errorCode']) {
|
|
56
|
-
this.errorCode = data['errorCode']; // Get errorCode from route data
|
|
57
|
-
}
|
|
58
|
-
if (data['showErrorCode'] !== undefined) {
|
|
59
|
-
this.showErrorCode = data['showErrorCode']; // Get showErrorCode from route data
|
|
60
|
-
}
|
|
61
|
-
if (!this.errorTitle && data['errorTitle']) {
|
|
62
|
-
this.errorTitle = data['errorTitle']; // Get errorTitle from route data
|
|
63
|
-
}
|
|
64
|
-
if (!this.errorDescription && data['errorDescription']) {
|
|
65
|
-
this.errorDescription = data['errorDescription']; // Get errorDescription from route data
|
|
66
|
-
}
|
|
67
|
-
if (data['showBackButton'] !== undefined) {
|
|
68
|
-
this.showBackButton = data['showBackButton']; // Get showBackButton from route data
|
|
69
|
-
}
|
|
70
|
-
if (data['showHomeButton'] !== undefined) {
|
|
71
|
-
this.showHomeButton = data['showHomeButton']; // Get showHomeButton from route data
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
get isDefaultErrorCode(): boolean {
|
|
77
|
-
return this.errorCode === 404 || this.errorCode === 403 || this.errorCode === 500;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg [attr.role]="role" [attr.aria-hidden]="isAriaHidden" [attr.aria-label]="title || labelWaria" [class]="iconClass">
|
|
2
|
-
@if (title || labelWaria) {
|
|
3
|
-
<title>{{ title || labelWaria }}</title>
|
|
4
|
-
}
|
|
5
|
-
<use [attr.href]="iconHref" [attr.xlink:href]="iconHref"></use>
|
|
6
|
-
</svg>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ItIconComponent } from './icon.component';
|
|
4
|
-
import { tb_base } from '../../../../test';
|
|
5
|
-
|
|
6
|
-
describe('ItIconComponent', () => {
|
|
7
|
-
let component: ItIconComponent;
|
|
8
|
-
let fixture: ComponentFixture<ItIconComponent>;
|
|
9
|
-
|
|
10
|
-
beforeEach(async () => {
|
|
11
|
-
await TestBed.configureTestingModule(tb_base).compileComponents();
|
|
12
|
-
|
|
13
|
-
fixture = TestBed.createComponent(ItIconComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|