design-angular-kit 1.2.0 → 1.2.1
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/.eslintrc.json +31 -0
- package/karma.conf.js +38 -0
- package/ng-package.json +9 -0
- package/ng-package.prod.json +8 -0
- package/package.json +9 -14
- package/schematics/ng-add/index.spec.ts +45 -0
- package/schematics/ng-add/index.ts +36 -0
- package/schematics/ng-add/rules/setup-project/add-animations.ts +7 -0
- package/schematics/ng-add/rules/setup-project/add-assets.ts +45 -0
- package/schematics/ng-add/rules/setup-project/add-design-angular-kit.ts +40 -0
- package/schematics/ng-add/rules/setup-project/add-http-client.ts +7 -0
- package/schematics/ng-add/rules/setup-project/add-import-to-style-file.ts +120 -0
- package/schematics/ng-add/rules/setup-project/add-localisation.ts +45 -0
- package/schematics/ng-add/rules/setup-project/angular-json-helper.ts +11 -0
- package/schematics/ng-add/rules/setup-project/exceptions.ts +13 -0
- package/schematics/ng-add/{schema.d.ts → schema.ts} +1 -1
- package/schematics/ng-add/setup-project.spec.ts +166 -0
- package/schematics/ng-add/setup-project.ts +31 -0
- package/schematics/ng-add/utils.ts +71 -0
- package/schematics/ng-add/versions-helper.ts +41 -0
- package/src/lib/abstracts/abstract-form.component.ts +200 -0
- package/src/lib/abstracts/abstract.component.ts +63 -0
- package/src/lib/components/core/accordion/accordion.component.html +27 -0
- package/src/lib/components/core/accordion/accordion.component.spec.ts +21 -0
- package/src/lib/components/core/accordion/accordion.component.ts +40 -0
- package/src/lib/components/core/alert/alert.component.html +19 -0
- package/src/lib/components/core/alert/alert.component.scss +3 -0
- package/src/lib/components/core/alert/alert.component.spec.ts +62 -0
- package/src/lib/components/core/alert/alert.component.ts +75 -0
- package/src/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.html +23 -0
- package/src/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.scss +17 -0
- package/src/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.spec.ts +21 -0
- package/src/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.ts +50 -0
- package/src/lib/components/core/avatar/avatar-group/avatar-group.component.html +7 -0
- package/src/lib/components/core/avatar/avatar-group/avatar-group.component.spec.ts +38 -0
- package/src/lib/components/core/avatar/avatar-group/avatar-group.component.ts +25 -0
- package/src/lib/components/core/avatar/avatar.directive.ts +73 -0
- package/src/lib/components/core/avatar/avatar.module.ts +18 -0
- package/src/lib/components/core/badge/badge.directive.spec.ts +59 -0
- package/src/lib/components/core/badge/badge.directive.ts +39 -0
- package/src/lib/components/core/button/button.directive.spec.ts +96 -0
- package/src/lib/components/core/button/button.directive.ts +89 -0
- package/src/lib/components/core/callout/callout.component.html +25 -0
- package/src/lib/components/core/callout/callout.component.spec.ts +138 -0
- package/src/lib/components/core/callout/callout.component.ts +92 -0
- package/src/lib/components/core/card/card.component.html +35 -0
- package/src/lib/components/core/card/card.component.scss +30 -0
- package/src/lib/components/core/card/card.component.spec.ts +21 -0
- package/src/lib/components/core/card/card.component.ts +78 -0
- package/src/lib/components/core/carousel/carousel/carousel.component.html +29 -0
- package/src/lib/components/core/carousel/carousel/carousel.component.scss +1 -0
- package/src/lib/components/core/carousel/carousel/carousel.component.spec.ts +21 -0
- package/src/lib/components/core/carousel/carousel/carousel.component.ts +119 -0
- package/src/lib/components/core/carousel/carousel-item/carousel-item.component.html +3 -0
- package/src/lib/components/core/carousel/carousel-item/carousel-item.component.spec.ts +22 -0
- package/src/lib/components/core/carousel/carousel-item/carousel-item.component.ts +20 -0
- package/src/lib/components/core/carousel/carousel.module.ts +11 -0
- package/src/lib/components/core/chip/chip.component.html +26 -0
- package/src/lib/components/core/chip/chip.component.spec.ts +87 -0
- package/src/lib/components/core/chip/chip.component.ts +154 -0
- package/src/lib/components/core/collapse/collapse.component.html +3 -0
- package/src/lib/components/core/collapse/collapse.component.spec.ts +21 -0
- package/src/lib/components/core/collapse/collapse.component.ts +124 -0
- package/src/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.html +3 -0
- package/src/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.spec.ts +35 -0
- package/src/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.ts +23 -0
- package/src/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.html +3 -0
- package/src/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.spec.ts +22 -0
- package/src/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.ts +10 -0
- package/src/lib/components/core/dimmer/dimmer.component.html +7 -0
- package/src/lib/components/core/dimmer/dimmer.component.spec.ts +49 -0
- package/src/lib/components/core/dimmer/dimmer.component.ts +50 -0
- package/src/lib/components/core/dimmer/dimmer.module.ts +12 -0
- package/src/lib/components/core/dropdown/dropdown/dropdown.component.html +45 -0
- package/src/lib/components/core/dropdown/dropdown/dropdown.component.scss +3 -0
- package/src/lib/components/core/dropdown/dropdown/dropdown.component.spec.ts +21 -0
- package/src/lib/components/core/dropdown/dropdown/dropdown.component.ts +186 -0
- package/src/lib/components/core/dropdown/dropdown-item/dropdown-item.component.html +18 -0
- package/src/lib/components/core/dropdown/dropdown-item/dropdown-item.component.scss +4 -0
- package/src/lib/components/core/dropdown/dropdown-item/dropdown-item.component.spec.ts +21 -0
- package/src/lib/components/core/dropdown/dropdown-item/dropdown-item.component.ts +82 -0
- package/src/lib/components/core/dropdown/dropdown.module.ts +11 -0
- package/src/lib/components/core/forward/forward.directive.spec.ts +60 -0
- package/src/lib/components/core/forward/forward.directive.ts +43 -0
- package/src/lib/components/core/link/link.component.html +13 -0
- package/src/lib/components/core/link/link.component.spec.ts +21 -0
- package/src/lib/components/core/link/link.component.ts +54 -0
- package/src/lib/components/core/list/list/list.component.html +13 -0
- package/src/lib/components/core/list/list/list.component.spec.ts +21 -0
- package/src/lib/components/core/list/list/list.component.ts +30 -0
- package/src/lib/components/core/list/list-item/list-item.component.html +42 -0
- package/src/lib/components/core/list/list-item/list-item.component.scss +16 -0
- package/src/lib/components/core/list/list-item/list-item.component.spec.ts +21 -0
- package/src/lib/components/core/list/list-item/list-item.component.ts +75 -0
- package/src/lib/components/core/list/list.module.ts +11 -0
- package/src/lib/components/core/modal/modal.component.html +36 -0
- package/src/lib/components/core/modal/modal.component.scss +3 -0
- package/src/lib/components/core/modal/modal.component.spec.ts +21 -0
- package/src/lib/components/core/modal/modal.component.ts +218 -0
- package/src/lib/components/core/notifications/notifications.component.html +25 -0
- package/src/lib/components/core/notifications/notifications.component.scss +3 -0
- package/src/lib/components/core/notifications/notifications.component.spec.ts +21 -0
- package/src/lib/components/core/notifications/notifications.component.ts +123 -0
- package/src/lib/components/core/pagination/pagination.component.html +107 -0
- package/src/lib/components/core/pagination/pagination.component.spec.ts +21 -0
- package/src/lib/components/core/pagination/pagination.component.ts +157 -0
- package/src/lib/components/core/popover/popover.directive.spec.ts +21 -0
- package/src/lib/components/core/popover/popover.directive.ts +171 -0
- package/src/lib/components/core/progress-bar/progress-bar.component.html +20 -0
- package/src/lib/components/core/progress-bar/progress-bar.component.spec.ts +21 -0
- package/src/lib/components/core/progress-bar/progress-bar.component.ts +46 -0
- package/src/lib/components/core/progress-button/progress-button.component.html +5 -0
- package/src/lib/components/core/progress-button/progress-button.component.spec.ts +21 -0
- package/src/lib/components/core/progress-button/progress-button.component.ts +39 -0
- package/src/lib/components/core/spinner/spinner.component.html +7 -0
- package/src/lib/components/core/spinner/spinner.component.spec.ts +80 -0
- package/src/lib/components/core/spinner/spinner.component.ts +31 -0
- package/src/lib/components/core/steppers/steppers-container/steppers-container.component.html +126 -0
- package/src/lib/components/core/steppers/steppers-container/steppers-container.component.spec.ts +21 -0
- package/src/lib/components/core/steppers/steppers-container/steppers-container.component.ts +185 -0
- package/src/lib/components/core/steppers/steppers-item/steppers-item.component.html +3 -0
- package/src/lib/components/core/steppers/steppers-item/steppers-item.component.spec.ts +22 -0
- package/src/lib/components/core/steppers/steppers-item/steppers-item.component.ts +33 -0
- package/src/lib/components/core/steppers/steppers.module.ts +11 -0
- package/src/lib/components/core/tab/tab-container/tab-container.component.html +78 -0
- package/src/lib/components/core/tab/tab-container/tab-container.component.spec.ts +21 -0
- package/src/lib/components/core/tab/tab-container/tab-container.component.ts +137 -0
- package/src/lib/components/core/tab/tab-item/tab-item.component.html +3 -0
- package/src/lib/components/core/tab/tab-item/tab-item.component.spec.ts +22 -0
- package/src/lib/components/core/tab/tab-item/tab-item.component.ts +50 -0
- package/src/lib/components/core/tab/tab.module.ts +11 -0
- package/src/lib/components/core/table/sort/sort-header/sort-header.component.html +27 -0
- package/src/lib/components/core/table/sort/sort-header/sort-header.component.scss +65 -0
- package/src/lib/components/core/table/sort/sort-header/sort-header.component.spec.ts +25 -0
- package/src/lib/components/core/table/sort/sort-header/sort-header.component.ts +164 -0
- package/src/lib/components/core/table/sort/sort.directive.spec.ts +73 -0
- package/src/lib/components/core/table/sort/sort.directive.ts +142 -0
- package/src/lib/components/core/table/table.component.html +23 -0
- package/src/lib/components/core/table/table.component.scss +7 -0
- package/src/lib/components/core/table/table.component.spec.ts +21 -0
- package/src/lib/components/core/table/table.component.ts +70 -0
- package/src/lib/components/core/table/table.module.ts +12 -0
- package/src/lib/components/core/timeline/timeline-item/timeline-item.component.html +47 -0
- package/src/lib/components/core/timeline/timeline-item/timeline-item.component.spec.ts +24 -0
- package/src/lib/components/core/timeline/timeline-item/timeline-item.component.ts +102 -0
- package/src/lib/components/core/timeline/timeline.component.html +21 -0
- package/src/lib/components/core/timeline/timeline.component.spec.ts +21 -0
- package/src/lib/components/core/timeline/timeline.component.ts +31 -0
- package/src/lib/components/core/timeline/timeline.module.ts +11 -0
- package/src/lib/components/core/tooltip/tooltip.directive.spec.ts +20 -0
- package/src/lib/components/core/tooltip/tooltip.directive.ts +141 -0
- package/src/lib/components/form/autocomplete/autocomplete.component.html +58 -0
- package/src/lib/components/form/autocomplete/autocomplete.component.spec.ts +21 -0
- package/src/lib/components/form/autocomplete/autocomplete.component.ts +130 -0
- package/src/lib/components/form/checkbox/checkbox.component.html +67 -0
- package/src/lib/components/form/checkbox/checkbox.component.spec.ts +21 -0
- package/src/lib/components/form/checkbox/checkbox.component.ts +65 -0
- package/src/lib/components/form/form.module.ts +34 -0
- package/src/lib/components/form/input/input.component.html +92 -0
- package/src/lib/components/form/input/input.component.scss +29 -0
- package/src/lib/components/form/input/input.component.spec.ts +21 -0
- package/src/lib/components/form/input/input.component.ts +234 -0
- package/src/lib/components/form/password-input/password-input.component.html +65 -0
- package/src/lib/components/form/password-input/password-input.component.scss +9 -0
- package/src/lib/components/form/password-input/password-input.component.spec.ts +21 -0
- package/src/lib/components/form/password-input/password-input.component.ts +171 -0
- package/src/lib/components/form/radio-button/radio-button.component.html +50 -0
- package/src/lib/components/form/radio-button/radio-button.component.scss +14 -0
- package/src/lib/components/form/radio-button/radio-button.component.spec.ts +21 -0
- package/src/lib/components/form/radio-button/radio-button.component.ts +82 -0
- package/src/lib/components/form/range/range.component.html +17 -0
- package/src/lib/components/form/range/range.component.scss +17 -0
- package/src/lib/components/form/range/range.component.spec.ts +21 -0
- package/src/lib/components/form/range/range.component.ts +100 -0
- package/src/lib/components/form/rating/rating.component.html +24 -0
- package/src/lib/components/form/rating/rating.component.spec.ts +21 -0
- package/src/lib/components/form/rating/rating.component.ts +52 -0
- package/src/lib/components/form/select/select.component.html +54 -0
- package/src/lib/components/form/select/select.component.scss +3 -0
- package/src/lib/components/form/select/select.component.spec.ts +22 -0
- package/src/lib/components/form/select/select.component.ts +91 -0
- package/src/lib/components/form/textarea/textarea.component.html +28 -0
- package/src/lib/components/form/textarea/textarea.component.scss +12 -0
- package/src/lib/components/form/textarea/textarea.component.spec.ts +21 -0
- package/src/lib/components/form/textarea/textarea.component.ts +61 -0
- package/src/lib/components/form/transfer/store/transfer.reducers.ts +242 -0
- package/src/lib/components/form/transfer/store/transfer.state.ts +20 -0
- package/src/lib/components/form/transfer/store/transfer.store.ts +88 -0
- package/src/lib/components/form/transfer/transfer-list/transfer-list.component.html +42 -0
- package/src/lib/components/form/transfer/transfer-list/transfer-list.component.spec.ts +33 -0
- package/src/lib/components/form/transfer/transfer-list/transfer-list.component.ts +93 -0
- package/src/lib/components/form/transfer/transfer.component.html +52 -0
- package/src/lib/components/form/transfer/transfer.component.spec.ts +27 -0
- package/src/lib/components/form/transfer/transfer.component.ts +159 -0
- package/{lib/components/form/transfer/transfer.model.d.ts → src/lib/components/form/transfer/transfer.model.ts} +9 -2
- package/src/lib/components/form/upload-drag-drop/upload-drag-drop.component.html +36 -0
- package/src/lib/components/form/upload-drag-drop/upload-drag-drop.component.spec.ts +21 -0
- package/src/lib/components/form/upload-drag-drop/upload-drag-drop.component.ts +170 -0
- package/src/lib/components/form/upload-file-list/upload-file-list.component.html +46 -0
- package/src/lib/components/form/upload-file-list/upload-file-list.component.spec.ts +22 -0
- package/src/lib/components/form/upload-file-list/upload-file-list.component.ts +120 -0
- package/src/lib/components/navigation/back-button/back-button.component.html +25 -0
- package/src/lib/components/navigation/back-button/back-button.component.spec.ts +91 -0
- package/src/lib/components/navigation/back-button/back-button.component.ts +67 -0
- package/src/lib/components/navigation/back-to-top/back-to-top.component.html +11 -0
- package/src/lib/components/navigation/back-to-top/back-to-top.component.spec.ts +21 -0
- package/src/lib/components/navigation/back-to-top/back-to-top.component.ts +80 -0
- package/src/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.html +23 -0
- package/src/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.spec.ts +21 -0
- package/src/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.ts +68 -0
- package/src/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.html +3 -0
- package/src/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.spec.ts +22 -0
- package/src/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.ts +29 -0
- package/src/lib/components/navigation/breadcrumbs/breadcrumbs.module.ts +11 -0
- package/src/lib/components/navigation/header/header.component.html +102 -0
- package/src/lib/components/navigation/header/header.component.scss +3 -0
- package/src/lib/components/navigation/header/header.component.spec.ts +21 -0
- package/src/lib/components/navigation/header/header.component.ts +107 -0
- package/src/lib/components/navigation/megamenu/megamenu.component.html +34 -0
- package/src/lib/components/navigation/megamenu/megamenu.component.scss +5 -0
- package/src/lib/components/navigation/megamenu/megamenu.component.ts +30 -0
- package/src/lib/components/navigation/navbar/navbar/navbar.component.html +28 -0
- package/src/lib/components/navigation/navbar/navbar/navbar.component.ts +45 -0
- package/src/lib/components/navigation/navbar/navbar-item/navbar-item.component.html +3 -0
- package/src/lib/components/navigation/navbar/navbar-item/navbar-item.component.ts +10 -0
- package/src/lib/components/navigation/navbar/navbar.module.ts +11 -0
- package/src/lib/components/navigation/navscroll/navscroll-list-item.component.ts +95 -0
- package/src/lib/components/navigation/navscroll/navscroll-list-items.component.ts +27 -0
- package/src/lib/components/navigation/navscroll/navscroll.component.html +101 -0
- package/src/lib/components/navigation/navscroll/navscroll.component.scss +9 -0
- package/src/lib/components/navigation/navscroll/navscroll.component.ts +143 -0
- package/{lib/components/navigation/navscroll/navscroll.model.d.ts → src/lib/components/navigation/navscroll/navscroll.model.ts} +7 -5
- package/src/lib/components/navigation/navscroll/navscroll.store.ts +96 -0
- package/src/lib/components/navigation/navscroll/navscroll.utils.ts +28 -0
- package/src/lib/components/navigation/sidebar/sidebar.component.html +11 -0
- package/src/lib/components/navigation/sidebar/sidebar.component.spec.ts +21 -0
- package/src/lib/components/navigation/sidebar/sidebar.component.ts +39 -0
- package/src/lib/components/navigation/skiplink/skiplink/skiplink.component.html +15 -0
- package/src/lib/components/navigation/skiplink/skiplink/skiplink.component.ts +27 -0
- package/src/lib/components/navigation/skiplink/skiplink-item/skiplink-item.component.html +15 -0
- package/src/lib/components/navigation/skiplink/skiplink-item/skiplink-item.component.ts +38 -0
- package/src/lib/components/navigation/skiplink/skiplink.module.ts +11 -0
- package/src/lib/components/utils/error-page/error-page.component.html +33 -0
- package/src/lib/components/utils/error-page/error-page.component.spec.ts +21 -0
- package/src/lib/components/utils/error-page/error-page.component.ts +79 -0
- package/src/lib/components/utils/icon/icon.component.html +6 -0
- package/src/lib/components/utils/icon/icon.component.spec.ts +21 -0
- package/src/lib/components/utils/icon/icon.component.ts +95 -0
- package/src/lib/components/utils/language-switcher/language-switcher.component.html +21 -0
- package/src/lib/components/utils/language-switcher/language-switcher.component.spec.ts +21 -0
- package/src/lib/components/utils/language-switcher/language-switcher.component.ts +56 -0
- package/src/lib/design-angular-kit.module.ts +131 -0
- package/src/lib/enums/colors.enums.ts +10 -0
- package/src/lib/enums/sizes.enum.ts +7 -0
- package/{lib/interfaces/core.d.ts → src/lib/interfaces/core.ts} +95 -53
- package/src/lib/interfaces/design-angular-kit-config.ts +34 -0
- package/src/lib/interfaces/form.ts +78 -0
- package/src/lib/interfaces/icon.ts +176 -0
- package/src/lib/interfaces/sortable-table.ts +42 -0
- package/src/lib/interfaces/utils.ts +11 -0
- package/src/lib/pipes/date-ago.pipe.ts +57 -0
- package/src/lib/pipes/duration.pipe.ts +112 -0
- package/src/lib/pipes/mark-matching-text.pipe.ts +43 -0
- package/src/lib/provide-design-angular-kit.ts +73 -0
- package/src/lib/services/notification/notification.service.spec.ts +16 -0
- package/src/lib/services/notification/notification.service.ts +119 -0
- package/{lib/utils/coercion.d.ts → src/lib/utils/coercion.ts} +7 -1
- package/src/lib/utils/date-utils.ts +184 -0
- package/src/lib/utils/file-utils.ts +80 -0
- package/src/lib/utils/regex.ts +44 -0
- package/src/lib/validators/it-validators.ts +193 -0
- package/{public_api.d.ts → src/public_api.ts} +43 -0
- package/src/test.ts +26 -0
- package/tsconfig.lib.json +24 -0
- package/tsconfig.lib.prod.json +9 -0
- package/tsconfig.schematics.json +25 -0
- package/tsconfig.spec.json +9 -0
- package/esm2022/design-angular-kit.mjs +0 -5
- package/esm2022/lib/abstracts/abstract-form.component.mjs +0 -186
- package/esm2022/lib/abstracts/abstract.component.mjs +0 -46
- package/esm2022/lib/components/core/accordion/accordion.component.mjs +0 -39
- package/esm2022/lib/components/core/alert/alert.component.mjs +0 -71
- package/esm2022/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.mjs +0 -43
- package/esm2022/lib/components/core/avatar/avatar-group/avatar-group.component.mjs +0 -40
- package/esm2022/lib/components/core/avatar/avatar.directive.mjs +0 -78
- package/esm2022/lib/components/core/avatar/avatar.module.mjs +0 -33
- package/esm2022/lib/components/core/badge/badge.directive.mjs +0 -39
- package/esm2022/lib/components/core/button/button.directive.mjs +0 -80
- package/esm2022/lib/components/core/callout/callout.component.mjs +0 -64
- package/esm2022/lib/components/core/card/card.component.mjs +0 -59
- package/esm2022/lib/components/core/carousel/carousel/carousel.component.mjs +0 -84
- package/esm2022/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +0 -19
- package/esm2022/lib/components/core/carousel/carousel.module.mjs +0 -18
- package/esm2022/lib/components/core/chip/chip.component.mjs +0 -136
- package/esm2022/lib/components/core/collapse/collapse.component.mjs +0 -116
- package/esm2022/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +0 -27
- package/esm2022/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +0 -11
- package/esm2022/lib/components/core/dimmer/dimmer.component.mjs +0 -55
- package/esm2022/lib/components/core/dimmer/dimmer.module.mjs +0 -19
- package/esm2022/lib/components/core/dropdown/dropdown/dropdown.component.mjs +0 -144
- package/esm2022/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +0 -61
- package/esm2022/lib/components/core/dropdown/dropdown.module.mjs +0 -18
- package/esm2022/lib/components/core/forward/forward.directive.mjs +0 -57
- package/esm2022/lib/components/core/link/link.component.mjs +0 -42
- package/esm2022/lib/components/core/list/list/list.component.mjs +0 -22
- package/esm2022/lib/components/core/list/list-item/list-item.component.mjs +0 -56
- package/esm2022/lib/components/core/list/list.module.mjs +0 -18
- package/esm2022/lib/components/core/modal/modal.component.mjs +0 -194
- package/esm2022/lib/components/core/notifications/notifications.component.mjs +0 -111
- package/esm2022/lib/components/core/pagination/pagination.component.mjs +0 -130
- package/esm2022/lib/components/core/popover/popover.directive.mjs +0 -176
- package/esm2022/lib/components/core/progress-bar/progress-bar.component.mjs +0 -34
- package/esm2022/lib/components/core/progress-button/progress-button.component.mjs +0 -25
- package/esm2022/lib/components/core/spinner/spinner.component.mjs +0 -30
- package/esm2022/lib/components/core/steppers/steppers-container/steppers-container.component.mjs +0 -116
- package/esm2022/lib/components/core/steppers/steppers-item/steppers-item.component.mjs +0 -22
- package/esm2022/lib/components/core/steppers/steppers.module.mjs +0 -18
- package/esm2022/lib/components/core/tab/tab-container/tab-container.component.mjs +0 -97
- package/esm2022/lib/components/core/tab/tab-item/tab-item.component.mjs +0 -39
- package/esm2022/lib/components/core/tab/tab.module.mjs +0 -18
- package/esm2022/lib/components/core/table/sort/sort-header/sort-header.component.mjs +0 -134
- package/esm2022/lib/components/core/table/sort/sort.directive.mjs +0 -123
- package/esm2022/lib/components/core/table/table.component.mjs +0 -45
- package/esm2022/lib/components/core/table/table.module.mjs +0 -19
- package/esm2022/lib/components/core/timeline/timeline-item/timeline-item.component.mjs +0 -90
- package/esm2022/lib/components/core/timeline/timeline.component.mjs +0 -36
- package/esm2022/lib/components/core/timeline/timeline.module.mjs +0 -18
- package/esm2022/lib/components/core/tooltip/tooltip.directive.mjs +0 -143
- package/esm2022/lib/components/form/autocomplete/autocomplete.component.mjs +0 -112
- package/esm2022/lib/components/form/checkbox/checkbox.component.mjs +0 -48
- package/esm2022/lib/components/form/form.module.mjs +0 -63
- package/esm2022/lib/components/form/input/input.component.mjs +0 -190
- package/esm2022/lib/components/form/password-input/password-input.component.mjs +0 -149
- package/esm2022/lib/components/form/radio-button/radio-button.component.mjs +0 -60
- package/esm2022/lib/components/form/range/range.component.mjs +0 -64
- package/esm2022/lib/components/form/rating/rating.component.mjs +0 -50
- package/esm2022/lib/components/form/select/select.component.mjs +0 -70
- package/esm2022/lib/components/form/textarea/textarea.component.mjs +0 -55
- package/esm2022/lib/components/form/transfer/store/transfer.reducers.mjs +0 -191
- package/esm2022/lib/components/form/transfer/store/transfer.state.mjs +0 -2
- package/esm2022/lib/components/form/transfer/store/transfer.store.mjs +0 -70
- package/esm2022/lib/components/form/transfer/transfer-list/transfer-list.component.mjs +0 -72
- package/esm2022/lib/components/form/transfer/transfer.component.mjs +0 -149
- package/esm2022/lib/components/form/transfer/transfer.model.mjs +0 -6
- package/esm2022/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +0 -142
- package/esm2022/lib/components/form/upload-file-list/upload-file-list.component.mjs +0 -107
- package/esm2022/lib/components/navigation/back-button/back-button.component.mjs +0 -67
- package/esm2022/lib/components/navigation/back-to-top/back-to-top.component.mjs +0 -68
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +0 -51
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +0 -21
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumbs.module.mjs +0 -18
- package/esm2022/lib/components/navigation/header/header.component.mjs +0 -97
- package/esm2022/lib/components/navigation/megamenu/megamenu.component.mjs +0 -27
- package/esm2022/lib/components/navigation/navbar/navbar/navbar.component.mjs +0 -40
- package/esm2022/lib/components/navigation/navbar/navbar-item/navbar-item.component.mjs +0 -11
- package/esm2022/lib/components/navigation/navbar/navbar.module.mjs +0 -18
- package/esm2022/lib/components/navigation/navscroll/navscroll-list-item.component.mjs +0 -98
- package/esm2022/lib/components/navigation/navscroll/navscroll-list-items.component.mjs +0 -44
- package/esm2022/lib/components/navigation/navscroll/navscroll.component.mjs +0 -116
- package/esm2022/lib/components/navigation/navscroll/navscroll.model.mjs +0 -2
- package/esm2022/lib/components/navigation/navscroll/navscroll.store.mjs +0 -68
- package/esm2022/lib/components/navigation/navscroll/navscroll.utils.mjs +0 -23
- package/esm2022/lib/components/navigation/sidebar/sidebar.component.mjs +0 -50
- package/esm2022/lib/components/navigation/skiplink/skiplink/skiplink.component.mjs +0 -27
- package/esm2022/lib/components/navigation/skiplink/skiplink-item/skiplink-item.component.mjs +0 -26
- package/esm2022/lib/components/navigation/skiplink/skiplink.module.mjs +0 -18
- package/esm2022/lib/components/utils/error-page/error-page.component.mjs +0 -74
- package/esm2022/lib/components/utils/icon/icon.component.mjs +0 -63
- package/esm2022/lib/components/utils/language-switcher/language-switcher.component.mjs +0 -50
- package/esm2022/lib/design-angular-kit.module.mjs +0 -233
- package/esm2022/lib/enums/colors.enums.mjs +0 -12
- package/esm2022/lib/enums/sizes.enum.mjs +0 -9
- package/esm2022/lib/interfaces/core.mjs +0 -16
- package/esm2022/lib/interfaces/design-angular-kit-config.mjs +0 -7
- package/esm2022/lib/interfaces/form.mjs +0 -2
- package/esm2022/lib/interfaces/icon.mjs +0 -168
- package/esm2022/lib/interfaces/sortable-table.mjs +0 -6
- package/esm2022/lib/interfaces/utils.mjs +0 -2
- package/esm2022/lib/pipes/date-ago.pipe.mjs +0 -56
- package/esm2022/lib/pipes/duration.pipe.mjs +0 -115
- package/esm2022/lib/pipes/mark-matching-text.pipe.mjs +0 -48
- package/esm2022/lib/provide-design-angular-kit.mjs +0 -64
- package/esm2022/lib/services/notification/notification.service.mjs +0 -120
- package/esm2022/lib/utils/coercion.mjs +0 -18
- package/esm2022/lib/utils/date-utils.mjs +0 -162
- package/esm2022/lib/utils/file-utils.mjs +0 -73
- package/esm2022/lib/utils/regex.mjs +0 -35
- package/esm2022/lib/validators/it-validators.mjs +0 -156
- package/esm2022/public_api.mjs +0 -110
- package/fesm2022/design-angular-kit.mjs +0 -6704
- package/fesm2022/design-angular-kit.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/abstracts/abstract-form.component.d.ts +0 -87
- package/lib/abstracts/abstract.component.d.ts +0 -30
- package/lib/components/core/accordion/accordion.component.d.ts +0 -18
- package/lib/components/core/alert/alert.component.d.ts +0 -44
- package/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.d.ts +0 -29
- package/lib/components/core/avatar/avatar-group/avatar-group.component.d.ts +0 -15
- package/lib/components/core/avatar/avatar.directive.d.ts +0 -33
- package/lib/components/core/avatar/avatar.module.d.ts +0 -9
- package/lib/components/core/badge/badge.directive.d.ts +0 -23
- package/lib/components/core/button/button.directive.d.ts +0 -48
- package/lib/components/core/callout/callout.component.d.ts +0 -50
- package/lib/components/core/card/card.component.d.ts +0 -69
- package/lib/components/core/carousel/carousel/carousel.component.d.ts +0 -65
- package/lib/components/core/carousel/carousel-item/carousel-item.component.d.ts +0 -15
- package/lib/components/core/carousel/carousel.module.d.ts +0 -8
- package/lib/components/core/chip/chip.component.d.ts +0 -76
- package/lib/components/core/collapse/collapse.component.d.ts +0 -67
- package/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.d.ts +0 -12
- package/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.d.ts +0 -5
- package/lib/components/core/dimmer/dimmer.component.d.ts +0 -24
- package/lib/components/core/dimmer/dimmer.module.d.ts +0 -9
- package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +0 -94
- package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +0 -42
- package/lib/components/core/dropdown/dropdown.module.d.ts +0 -8
- package/lib/components/core/forward/forward.directive.d.ts +0 -14
- package/lib/components/core/link/link.component.d.ts +0 -35
- package/lib/components/core/list/list/list.component.d.ts +0 -24
- package/lib/components/core/list/list-item/list-item.component.d.ts +0 -41
- package/lib/components/core/list/list.module.d.ts +0 -8
- package/lib/components/core/modal/modal.component.d.ts +0 -135
- package/lib/components/core/notifications/notifications.component.d.ts +0 -45
- package/lib/components/core/pagination/pagination.component.d.ts +0 -92
- package/lib/components/core/popover/popover.directive.d.ts +0 -99
- package/lib/components/core/progress-bar/progress-bar.component.d.ts +0 -31
- package/lib/components/core/progress-button/progress-button.component.d.ts +0 -21
- package/lib/components/core/spinner/spinner.component.d.ts +0 -24
- package/lib/components/core/steppers/steppers-container/steppers-container.component.d.ts +0 -130
- package/lib/components/core/steppers/steppers-item/steppers-item.component.d.ts +0 -24
- package/lib/components/core/steppers/steppers.module.d.ts +0 -8
- package/lib/components/core/tab/tab-container/tab-container.component.d.ts +0 -60
- package/lib/components/core/tab/tab-item/tab-item.component.d.ts +0 -38
- package/lib/components/core/tab/tab.module.d.ts +0 -8
- package/lib/components/core/table/sort/sort-header/sort-header.component.d.ts +0 -72
- package/lib/components/core/table/sort/sort.directive.d.ts +0 -53
- package/lib/components/core/table/table.component.d.ts +0 -60
- package/lib/components/core/table/table.module.d.ts +0 -9
- package/lib/components/core/timeline/timeline-item/timeline-item.component.d.ts +0 -79
- package/lib/components/core/timeline/timeline.component.d.ts +0 -21
- package/lib/components/core/timeline/timeline.module.d.ts +0 -8
- package/lib/components/core/tooltip/tooltip.directive.d.ts +0 -82
- package/lib/components/form/autocomplete/autocomplete.component.d.ts +0 -59
- package/lib/components/form/checkbox/checkbox.component.d.ts +0 -41
- package/lib/components/form/form.module.d.ts +0 -18
- package/lib/components/form/input/input.component.d.ts +0 -95
- package/lib/components/form/password-input/password-input.component.d.ts +0 -80
- package/lib/components/form/radio-button/radio-button.component.d.ts +0 -38
- package/lib/components/form/range/range.component.d.ts +0 -42
- package/lib/components/form/rating/rating.component.d.ts +0 -24
- package/lib/components/form/select/select.component.d.ts +0 -36
- package/lib/components/form/textarea/textarea.component.d.ts +0 -34
- package/lib/components/form/transfer/store/transfer.reducers.d.ts +0 -103
- package/lib/components/form/transfer/store/transfer.state.d.ts +0 -18
- package/lib/components/form/transfer/store/transfer.store.d.ts +0 -23
- package/lib/components/form/transfer/transfer-list/transfer-list.component.d.ts +0 -48
- package/lib/components/form/transfer/transfer.component.d.ts +0 -75
- package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +0 -60
- package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +0 -62
- package/lib/components/navigation/back-button/back-button.component.d.ts +0 -47
- package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +0 -50
- package/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +0 -28
- package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +0 -23
- package/lib/components/navigation/breadcrumbs/breadcrumbs.module.d.ts +0 -8
- package/lib/components/navigation/header/header.component.d.ts +0 -36
- package/lib/components/navigation/megamenu/megamenu.component.d.ts +0 -22
- package/lib/components/navigation/navbar/navbar/navbar.component.d.ts +0 -16
- package/lib/components/navigation/navbar/navbar-item/navbar-item.component.d.ts +0 -5
- package/lib/components/navigation/navbar/navbar.module.d.ts +0 -8
- package/lib/components/navigation/navscroll/navscroll-list-item.component.d.ts +0 -16
- package/lib/components/navigation/navscroll/navscroll-list-items.component.d.ts +0 -7
- package/lib/components/navigation/navscroll/navscroll.component.d.ts +0 -47
- package/lib/components/navigation/navscroll/navscroll.store.d.ts +0 -16
- package/lib/components/navigation/navscroll/navscroll.utils.d.ts +0 -6
- package/lib/components/navigation/sidebar/sidebar.component.d.ts +0 -26
- package/lib/components/navigation/skiplink/skiplink/skiplink.component.d.ts +0 -17
- package/lib/components/navigation/skiplink/skiplink-item/skiplink-item.component.d.ts +0 -24
- package/lib/components/navigation/skiplink/skiplink.module.d.ts +0 -8
- package/lib/components/utils/error-page/error-page.component.d.ts +0 -44
- package/lib/components/utils/icon/icon.component.d.ts +0 -53
- package/lib/components/utils/language-switcher/language-switcher.component.d.ts +0 -27
- package/lib/design-angular-kit.module.d.ts +0 -53
- package/lib/enums/colors.enums.d.ts +0 -10
- package/lib/enums/sizes.enum.d.ts +0 -7
- package/lib/interfaces/design-angular-kit-config.d.ts +0 -30
- package/lib/interfaces/form.d.ts +0 -67
- package/lib/interfaces/icon.d.ts +0 -4
- package/lib/interfaces/sortable-table.d.ts +0 -33
- package/lib/interfaces/utils.d.ts +0 -10
- package/lib/pipes/date-ago.pipe.d.ts +0 -17
- package/lib/pipes/duration.pipe.d.ts +0 -35
- package/lib/pipes/mark-matching-text.pipe.d.ts +0 -18
- package/lib/provide-design-angular-kit.d.ts +0 -7
- package/lib/services/notification/notification.service.d.ts +0 -63
- package/lib/utils/date-utils.d.ts +0 -79
- package/lib/utils/file-utils.d.ts +0 -32
- package/lib/utils/regex.d.ts +0 -34
- package/lib/validators/it-validators.d.ts +0 -69
- package/schematics/ng-add/index.d.ts +0 -3
- package/schematics/ng-add/index.js +0 -29
- package/schematics/ng-add/index.js.map +0 -1
- package/schematics/ng-add/index.spec.d.ts +0 -1
- package/schematics/ng-add/index.spec.js +0 -43
- package/schematics/ng-add/index.spec.js.map +0 -1
- package/schematics/ng-add/rules/setup-project/add-animations.d.ts +0 -2
- package/schematics/ng-add/rules/setup-project/add-animations.js +0 -11
- package/schematics/ng-add/rules/setup-project/add-animations.js.map +0 -1
- package/schematics/ng-add/rules/setup-project/add-assets.d.ts +0 -3
- package/schematics/ng-add/rules/setup-project/add-assets.js +0 -50
- package/schematics/ng-add/rules/setup-project/add-assets.js.map +0 -1
- package/schematics/ng-add/rules/setup-project/add-design-angular-kit.d.ts +0 -3
- package/schematics/ng-add/rules/setup-project/add-design-angular-kit.js +0 -43
- package/schematics/ng-add/rules/setup-project/add-design-angular-kit.js.map +0 -1
- package/schematics/ng-add/rules/setup-project/add-http-client.d.ts +0 -2
- package/schematics/ng-add/rules/setup-project/add-http-client.js +0 -11
- package/schematics/ng-add/rules/setup-project/add-http-client.js.map +0 -1
- package/schematics/ng-add/rules/setup-project/add-import-to-style-file.d.ts +0 -11
- package/schematics/ng-add/rules/setup-project/add-import-to-style-file.js +0 -112
- package/schematics/ng-add/rules/setup-project/add-import-to-style-file.js.map +0 -1
- package/schematics/ng-add/rules/setup-project/add-localisation.d.ts +0 -3
- package/schematics/ng-add/rules/setup-project/add-localisation.js +0 -50
- package/schematics/ng-add/rules/setup-project/add-localisation.js.map +0 -1
- package/schematics/ng-add/rules/setup-project/angular-json-helper.d.ts +0 -2
- package/schematics/ng-add/rules/setup-project/angular-json-helper.js +0 -13
- package/schematics/ng-add/rules/setup-project/angular-json-helper.js.map +0 -1
- package/schematics/ng-add/rules/setup-project/exceptions.d.ts +0 -7
- package/schematics/ng-add/rules/setup-project/exceptions.js +0 -17
- package/schematics/ng-add/rules/setup-project/exceptions.js.map +0 -1
- package/schematics/ng-add/rules/setup-project/index.js +0 -23
- package/schematics/ng-add/rules/setup-project/index.js.map +0 -1
- package/schematics/ng-add/schema.js +0 -3
- package/schematics/ng-add/schema.js.map +0 -1
- package/schematics/ng-add/setup-project.d.ts +0 -3
- package/schematics/ng-add/setup-project.js +0 -37
- package/schematics/ng-add/setup-project.js.map +0 -1
- package/schematics/ng-add/setup-project.spec.d.ts +0 -1
- package/schematics/ng-add/setup-project.spec.js +0 -139
- package/schematics/ng-add/setup-project.spec.js.map +0 -1
- package/schematics/ng-add/utils.d.ts +0 -14
- package/schematics/ng-add/utils.js +0 -49
- package/schematics/ng-add/utils.js.map +0 -1
- package/schematics/ng-add/versions-helper.d.ts +0 -3
- package/schematics/ng-add/versions-helper.js +0 -40
- package/schematics/ng-add/versions-helper.js.map +0 -1
- /package/schematics/ng-add/rules/setup-project/{index.d.ts → index.ts} +0 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AfterViewInit,
|
|
3
|
+
ChangeDetectionStrategy,
|
|
4
|
+
Component,
|
|
5
|
+
ContentChildren,
|
|
6
|
+
ElementRef,
|
|
7
|
+
EventEmitter,
|
|
8
|
+
Input,
|
|
9
|
+
OnDestroy,
|
|
10
|
+
Output,
|
|
11
|
+
QueryList,
|
|
12
|
+
ViewChildren,
|
|
13
|
+
} from '@angular/core';
|
|
14
|
+
import { ItTabItemComponent } from '../tab-item/tab-item.component';
|
|
15
|
+
import { of, startWith, Subscription, switchMap, tap } from 'rxjs';
|
|
16
|
+
import { Tab } from 'bootstrap-italia';
|
|
17
|
+
import { ItAbstractComponent } from '../../../../abstracts/abstract.component';
|
|
18
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
19
|
+
import { ItIconComponent } from '../../../utils/icon/icon.component';
|
|
20
|
+
import { inputToBoolean } from '../../../../utils/coercion';
|
|
21
|
+
|
|
22
|
+
@Component({
|
|
23
|
+
standalone: true,
|
|
24
|
+
selector: 'it-tab-container',
|
|
25
|
+
templateUrl: './tab-container.component.html',
|
|
26
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
27
|
+
imports: [ItIconComponent, NgTemplateOutlet],
|
|
28
|
+
})
|
|
29
|
+
export class ItTabContainerComponent extends ItAbstractComponent implements OnDestroy, AfterViewInit {
|
|
30
|
+
/**
|
|
31
|
+
* Tabs automatically occupy the entire available width
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
@Input({ transform: inputToBoolean }) auto?: boolean;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* To obtain the correct margin between text and icon in the horizontally developed tab
|
|
38
|
+
*/
|
|
39
|
+
@Input({ transform: inputToBoolean }) iconText?: boolean;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Dark style
|
|
43
|
+
*/
|
|
44
|
+
@Input({ transform: inputToBoolean }) dark?: boolean;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Show items as cards
|
|
48
|
+
*/
|
|
49
|
+
@Input({ transform: inputToBoolean }) cards?: boolean;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Show vertical navigation
|
|
53
|
+
*/
|
|
54
|
+
@Input({ transform: inputToBoolean }) vertical?: boolean;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The tab position
|
|
58
|
+
*/
|
|
59
|
+
@Input({ transform: inputToBoolean }) inverted?: boolean;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* If tabs are editable
|
|
63
|
+
*/
|
|
64
|
+
@Input({ transform: inputToBoolean }) editable?: boolean;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The tab items
|
|
68
|
+
*/
|
|
69
|
+
@ContentChildren(ItTabItemComponent) tabs?: QueryList<ItTabItemComponent>;
|
|
70
|
+
|
|
71
|
+
@ViewChildren('tabNavLinks') private tabNavLinks?: QueryList<ElementRef<HTMLAnchorElement>>;
|
|
72
|
+
|
|
73
|
+
@Output() tabSelected = new EventEmitter<ItTabItemComponent>();
|
|
74
|
+
|
|
75
|
+
@Output() tabClosed = new EventEmitter();
|
|
76
|
+
|
|
77
|
+
@Output() tabAdded = new EventEmitter();
|
|
78
|
+
|
|
79
|
+
private tabSubscriptions?: Array<Subscription>;
|
|
80
|
+
|
|
81
|
+
constructor() {
|
|
82
|
+
super();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
override ngAfterViewInit(): void {
|
|
86
|
+
super.ngAfterViewInit();
|
|
87
|
+
|
|
88
|
+
this.tabs?.changes
|
|
89
|
+
.pipe(
|
|
90
|
+
// When tabs changes (dynamic add/remove)
|
|
91
|
+
startWith(undefined),
|
|
92
|
+
tap(() => {
|
|
93
|
+
this.tabSubscriptions?.forEach(sub => sub.unsubscribe()); // Remove old subscriptions
|
|
94
|
+
this.tabSubscriptions = this.tabs?.map(tab =>
|
|
95
|
+
tab.valueChanges.subscribe(() => {
|
|
96
|
+
this._changeDetectorRef.detectChanges(); // DetectChanges when tab-item attributes changes
|
|
97
|
+
})
|
|
98
|
+
);
|
|
99
|
+
this._changeDetectorRef.detectChanges(); // Force update html render
|
|
100
|
+
}),
|
|
101
|
+
switchMap(() => this.tabNavLinks?.changes.pipe(startWith(undefined)) || of(undefined))
|
|
102
|
+
)
|
|
103
|
+
.subscribe(() => {
|
|
104
|
+
// Init tabs from bootstrap-italia
|
|
105
|
+
this.tabNavLinks?.forEach(tabNavLink => {
|
|
106
|
+
const triggerEl = tabNavLink.nativeElement,
|
|
107
|
+
tabTrigger = Tab.getOrCreateInstance(triggerEl);
|
|
108
|
+
|
|
109
|
+
if (triggerEl.getAttribute('tab-listener') !== 'true') {
|
|
110
|
+
triggerEl.addEventListener('click', event => {
|
|
111
|
+
event.preventDefault();
|
|
112
|
+
tabTrigger.show();
|
|
113
|
+
this._changeDetectorRef.detectChanges();
|
|
114
|
+
});
|
|
115
|
+
triggerEl.setAttribute('tab-listener', 'true'); // Prevents multiple insertion of the listener
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
ngOnDestroy(): void {
|
|
122
|
+
this.tabSubscriptions?.forEach(sub => sub.unsubscribe());
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
onTab(tab: ItTabItemComponent) {
|
|
126
|
+
this.tabSelected.emit(tab);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
clickToClose(index: number) {
|
|
130
|
+
this.tabClosed.emit(index);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
clickToAdd($event: Event) {
|
|
134
|
+
$event.preventDefault();
|
|
135
|
+
this.tabAdded.emit();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ItTabItemComponent } from './tab-item.component';
|
|
4
|
+
|
|
5
|
+
describe('ItTabItemComponent', () => {
|
|
6
|
+
let component: ItTabItemComponent;
|
|
7
|
+
let fixture: ComponentFixture<ItTabItemComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
imports: [ItTabItemComponent],
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
|
|
14
|
+
fixture = TestBed.createComponent(ItTabItemComponent);
|
|
15
|
+
component = fixture.componentInstance;
|
|
16
|
+
fixture.detectChanges();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('should create', () => {
|
|
20
|
+
expect(component).toBeTruthy();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectionStrategy, Component, Input, TemplateRef, ViewChild } from '@angular/core';
|
|
2
|
+
import { ItAbstractComponent } from '../../../../abstracts/abstract.component';
|
|
3
|
+
import { IconName } from '../../../../interfaces/icon';
|
|
4
|
+
import { inputToBoolean } from '../../../../utils/coercion';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
standalone: true,
|
|
8
|
+
selector: 'it-tab-item',
|
|
9
|
+
templateUrl: './tab-item.component.html',
|
|
10
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11
|
+
imports: [],
|
|
12
|
+
})
|
|
13
|
+
export class ItTabItemComponent extends ItAbstractComponent implements AfterViewInit {
|
|
14
|
+
/**
|
|
15
|
+
* The tab label
|
|
16
|
+
*/
|
|
17
|
+
@Input() label: string | undefined;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The icon name
|
|
21
|
+
*/
|
|
22
|
+
@Input() icon: IconName | undefined;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Default active tab
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
@Input({ transform: inputToBoolean }) active?: boolean;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Default disabled tab
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
@Input({ transform: inputToBoolean }) disabled?: boolean;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Custom class
|
|
38
|
+
*/
|
|
39
|
+
@Input() class: string = '';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The content of tab
|
|
43
|
+
*/
|
|
44
|
+
@ViewChild(TemplateRef) public htmlContent!: TemplateRef<any>;
|
|
45
|
+
|
|
46
|
+
override ngAfterViewInit() {
|
|
47
|
+
super.ngAfterViewInit();
|
|
48
|
+
this._renderer.removeAttribute(this._elementRef.nativeElement, 'class');
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { ItTabContainerComponent } from './tab-container/tab-container.component';
|
|
3
|
+
import { ItTabItemComponent } from './tab-item/tab-item.component';
|
|
4
|
+
|
|
5
|
+
const tabComponents = [ItTabContainerComponent, ItTabItemComponent];
|
|
6
|
+
|
|
7
|
+
@NgModule({
|
|
8
|
+
imports: tabComponents,
|
|
9
|
+
exports: tabComponents,
|
|
10
|
+
})
|
|
11
|
+
export class ItTabModule {}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
We set the `tabindex` on an element inside the table header, rather than the header itself,
|
|
3
|
+
because of a bug in NVDA where having a `tabindex` on a `th` breaks keyboard navigation in the
|
|
4
|
+
table (see https://github.com/nvaccess/nvda/issues/7718). This allows for the header to both
|
|
5
|
+
be focusable, and have screen readers read out its `aria-sort` state. We prefer this approach
|
|
6
|
+
over having a button with an `aria-label` inside the header, because the button's `aria-label`
|
|
7
|
+
will be read out as the user is navigating the table's cell (see #13012).
|
|
8
|
+
|
|
9
|
+
The approach is based off of: https://dequeuniversity.com/library/aria/tables/sf-sortable-grid
|
|
10
|
+
-->
|
|
11
|
+
<div
|
|
12
|
+
class="it-sort-header-container it-focus-indicator"
|
|
13
|
+
[class.it-sort-header-sorted]="isSorted"
|
|
14
|
+
[class.it-sort-header-position-before]="arrowPosition === 'before'"
|
|
15
|
+
[attr.tabindex]="isDisabled ? null : 0"
|
|
16
|
+
[attr.role]="isDisabled ? null : 'button'">
|
|
17
|
+
<!--
|
|
18
|
+
We have to keep it due to a large number of screenshot diff failures. It should be removed eventually.
|
|
19
|
+
Note that the difference isn't visible with a shorter header, but once it breaks up into multiple lines, this element
|
|
20
|
+
causes it to be center-aligned, whereas removing it will keep the text to the left.
|
|
21
|
+
-->
|
|
22
|
+
<div class="it-sort-header-content">
|
|
23
|
+
<ng-content></ng-content>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<it-icon class="it-sort-arrow" size="sm" [name]="arrowIconClass" />
|
|
27
|
+
</div>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
.it-sort-header-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
letter-spacing: normal;
|
|
7
|
+
|
|
8
|
+
// Needs to be reset since we don't want an outline around the inner
|
|
9
|
+
// div which is focusable. We have our own alternate focus styling.
|
|
10
|
+
outline: 0;
|
|
11
|
+
|
|
12
|
+
.it-sort-header-disabled & {
|
|
13
|
+
cursor: default;
|
|
14
|
+
|
|
15
|
+
.it-sort-arrow {
|
|
16
|
+
opacity: 0 !important;
|
|
17
|
+
fill-opacity: 0 !important;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// For the sort-header element, default inset/offset values are necessary to ensure that
|
|
22
|
+
// the focus indicator is sufficiently contrastive and renders appropriately.
|
|
23
|
+
&::before {
|
|
24
|
+
$border-width: 3px;
|
|
25
|
+
$offset: calc(#{$border-width} + 2px);
|
|
26
|
+
margin: calc(#{$offset} * -1);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.it-sort-header-position-before {
|
|
30
|
+
flex-direction: row-reverse;
|
|
31
|
+
justify-content: left;
|
|
32
|
+
gap: 0.5rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.it-sort-arrow {
|
|
36
|
+
opacity: 0;
|
|
37
|
+
fill-opacity: 0;
|
|
38
|
+
transition:
|
|
39
|
+
fill-opacity 0.3s ease-out,
|
|
40
|
+
opacity 0.3s ease-out;
|
|
41
|
+
-moz-transition:
|
|
42
|
+
fill-opacity 0.3s ease-out,
|
|
43
|
+
opacity 0.3s ease-out;
|
|
44
|
+
-webkit-transition:
|
|
45
|
+
fill-opacity 0.3s ease-out,
|
|
46
|
+
opacity 0.3s ease-out;
|
|
47
|
+
-o-transition:
|
|
48
|
+
fill-opacity 0.3s ease-out,
|
|
49
|
+
opacity 0.3s ease-out;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
.it-sort-arrow {
|
|
54
|
+
opacity: 0.5;
|
|
55
|
+
fill-opacity: 0.5;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.it-sort-header-sorted {
|
|
60
|
+
.it-sort-arrow {
|
|
61
|
+
opacity: 1 !important;
|
|
62
|
+
fill-opacity: 1 !important;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ItSortHeaderComponent } from './sort-header.component';
|
|
4
|
+
import { ItSortDirective } from '../sort.directive';
|
|
5
|
+
import { tb_base } from '../../../../../../test';
|
|
6
|
+
|
|
7
|
+
describe('ItSortHeaderComponent', () => {
|
|
8
|
+
let component: ItSortHeaderComponent;
|
|
9
|
+
let fixture: ComponentFixture<ItSortHeaderComponent>;
|
|
10
|
+
const sortDirective: ItSortDirective = new ItSortDirective();
|
|
11
|
+
|
|
12
|
+
beforeEach(() => {
|
|
13
|
+
TestBed.configureTestingModule({
|
|
14
|
+
imports: [ItSortHeaderComponent],
|
|
15
|
+
providers: [{ provide: ItSortDirective, useValue: sortDirective }, ...tb_base.providers],
|
|
16
|
+
});
|
|
17
|
+
fixture = TestBed.createComponent(ItSortHeaderComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import {
|
|
2
|
+
booleanAttribute,
|
|
3
|
+
ChangeDetectionStrategy,
|
|
4
|
+
ChangeDetectorRef,
|
|
5
|
+
Component,
|
|
6
|
+
HostBinding,
|
|
7
|
+
HostListener,
|
|
8
|
+
Inject,
|
|
9
|
+
Input,
|
|
10
|
+
OnDestroy,
|
|
11
|
+
OnInit,
|
|
12
|
+
Optional,
|
|
13
|
+
ViewEncapsulation,
|
|
14
|
+
} from '@angular/core';
|
|
15
|
+
import { ItSortDirective } from '../sort.directive';
|
|
16
|
+
import { merge, Subscription } from 'rxjs';
|
|
17
|
+
import { ItIconComponent } from '../../../../utils/icon/icon.component';
|
|
18
|
+
import { IconName } from '../../../../../interfaces/icon';
|
|
19
|
+
import {
|
|
20
|
+
IT_SORT_DEFAULT_OPTIONS,
|
|
21
|
+
ItSortable,
|
|
22
|
+
ItSortDefaultOptions,
|
|
23
|
+
SortDirection,
|
|
24
|
+
SortHeaderArrowPosition,
|
|
25
|
+
} from '../../../../../interfaces/sortable-table';
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Applies sorting behavior (click to change sort) and styles to an element, including an
|
|
29
|
+
* arrow to display the current sort direction.
|
|
30
|
+
*
|
|
31
|
+
* Must be provided with an id and contained within a parent ItSort directive.
|
|
32
|
+
*
|
|
33
|
+
* If used on header cells in a CdkTable, it will automatically default its id from its containing
|
|
34
|
+
* column definition.
|
|
35
|
+
*/
|
|
36
|
+
@Component({
|
|
37
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
38
|
+
selector: '[it-sort-header]',
|
|
39
|
+
exportAs: 'itSortHeader',
|
|
40
|
+
standalone: true,
|
|
41
|
+
imports: [ItIconComponent],
|
|
42
|
+
templateUrl: './sort-header.component.html',
|
|
43
|
+
styleUrls: ['./sort-header.component.scss'],
|
|
44
|
+
encapsulation: ViewEncapsulation.None,
|
|
45
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
46
|
+
})
|
|
47
|
+
export class ItSortHeaderComponent implements ItSortable, OnDestroy, OnInit {
|
|
48
|
+
/**
|
|
49
|
+
* ID of this sort header. If used within the context of a CdkColumnDef, this will default to
|
|
50
|
+
* the column's name.
|
|
51
|
+
*/
|
|
52
|
+
@Input('it-sort-header') id!: string;
|
|
53
|
+
|
|
54
|
+
/** Sets the position of the arrow that displays when sorted. */
|
|
55
|
+
@Input() arrowPosition: SortHeaderArrowPosition = 'after';
|
|
56
|
+
|
|
57
|
+
/** Overrides the sort start value of the containing MatSort for this SortHeaderComponent. */
|
|
58
|
+
@Input() start?: SortDirection;
|
|
59
|
+
|
|
60
|
+
/** whether the sort header is disabled. */
|
|
61
|
+
@Input({ transform: booleanAttribute })
|
|
62
|
+
sortDisabled: boolean = false;
|
|
63
|
+
|
|
64
|
+
/** Overrides the disable clear value of the containing SortDirective for this MatSortable. */
|
|
65
|
+
@Input({ transform: booleanAttribute })
|
|
66
|
+
disableSortClear?: boolean;
|
|
67
|
+
|
|
68
|
+
@HostBinding('class')
|
|
69
|
+
public readonly sortHeaderClass = 'it-sort-header';
|
|
70
|
+
|
|
71
|
+
private _rerenderSubscription?: Subscription;
|
|
72
|
+
|
|
73
|
+
/** The direction the arrow should be facing according to the current state. */
|
|
74
|
+
private _arrowDirection?: SortDirection;
|
|
75
|
+
|
|
76
|
+
constructor(
|
|
77
|
+
private readonly _changeDetectorRef: ChangeDetectorRef,
|
|
78
|
+
// `SortDirective` is not optionally injected, but just asserted manually w/ better error.
|
|
79
|
+
@Optional() public readonly _sort: ItSortDirective,
|
|
80
|
+
@Optional() @Inject(IT_SORT_DEFAULT_OPTIONS) defaultOptions?: ItSortDefaultOptions
|
|
81
|
+
) {
|
|
82
|
+
if (defaultOptions?.arrowPosition) {
|
|
83
|
+
this.arrowPosition = defaultOptions?.arrowPosition;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
this._handleStateChanges();
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
ngOnInit() {
|
|
90
|
+
// Initialize the direction of the arrow and set the view state to be immediately that state.
|
|
91
|
+
this.updateArrowDirection();
|
|
92
|
+
this._sort.register(this);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
ngOnDestroy() {
|
|
96
|
+
this._sort.deregister(this);
|
|
97
|
+
this._rerenderSubscription?.unsubscribe();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@HostListener('click')
|
|
101
|
+
_handleClick() {
|
|
102
|
+
if (!this.isDisabled) {
|
|
103
|
+
this._sort.sort(this);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Whether this MatSortHeader is currently sorted in either ascending or descending order.
|
|
109
|
+
*/
|
|
110
|
+
protected get isSorted() {
|
|
111
|
+
return this._sort.active == this.id && (this._sort.direction === 'asc' || this._sort.direction === 'desc');
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Returns the icon class by the arrow direction
|
|
116
|
+
*/
|
|
117
|
+
protected get arrowIconClass(): IconName {
|
|
118
|
+
return `${this._arrowDirection == 'asc' ? 'arrow-up' : 'arrow-down'}`;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Updates the direction the arrow should be pointing. If it is not sorted, the arrow should be
|
|
123
|
+
* facing the start direction. Otherwise if it is sorted, the arrow should point in the currently
|
|
124
|
+
* active sorted direction. The reason this is updated through a function is because the direction
|
|
125
|
+
* should only be changed at specific times - when deactivated but the hint is displayed and when
|
|
126
|
+
* the sort is active and the direction changes. Otherwise the arrow's direction should linger
|
|
127
|
+
* in cases such as the sort becoming deactivated but we want to animate the arrow away while
|
|
128
|
+
* preserving its direction, even though the next sort direction is actually different and should
|
|
129
|
+
* only be changed once the arrow displays again (hint or activation).
|
|
130
|
+
*/
|
|
131
|
+
private updateArrowDirection() {
|
|
132
|
+
this._arrowDirection = this.isSorted ? this._sort.direction : this.start || this._sort.start;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@HostBinding('class.it-sort-header-disabled')
|
|
136
|
+
public get isDisabled() {
|
|
137
|
+
return this._sort.sortDisabled || this.sortDisabled;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Gets the aria-sort attribute that should be applied to this sort header. If this header
|
|
142
|
+
* is not sorted, returns null so that the attribute is removed from the host element. Aria spec
|
|
143
|
+
* says that the aria-sort property should only be present on one header at a time, so removing
|
|
144
|
+
* ensures this is true.
|
|
145
|
+
*/
|
|
146
|
+
@HostBinding('attr.aria-sort')
|
|
147
|
+
public get ariaSortAttribute() {
|
|
148
|
+
if (!this.isSorted) {
|
|
149
|
+
return 'none';
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return this._sort.direction == 'asc' ? 'ascending' : 'descending';
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/** Handles changes in the sorting state. */
|
|
156
|
+
private _handleStateChanges() {
|
|
157
|
+
this._rerenderSubscription = merge(this._sort.sortChange, this._sort._stateChanges).subscribe(() => {
|
|
158
|
+
if (this.isSorted) {
|
|
159
|
+
this.updateArrowDirection();
|
|
160
|
+
}
|
|
161
|
+
this._changeDetectorRef.markForCheck();
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { ItSortDirective } from './sort.directive';
|
|
3
|
+
import { tb_base } from 'projects/design-angular-kit/src/test';
|
|
4
|
+
import { ChangeDetectionStrategy, Component, DebugElement } from '@angular/core';
|
|
5
|
+
import { By } from '@angular/platform-browser';
|
|
6
|
+
import { ItSortHeaderComponent } from './sort-header/sort-header.component';
|
|
7
|
+
import { ItSortEvent } from '../../../../interfaces/sortable-table';
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
standalone: true,
|
|
11
|
+
template: ` <it-table itSort (sortChange)="sortData($event)">
|
|
12
|
+
<ng-container thead>
|
|
13
|
+
<tr>
|
|
14
|
+
<th it-sort-header="name" scope="col">Nome</th>
|
|
15
|
+
</tr>
|
|
16
|
+
</ng-container>
|
|
17
|
+
|
|
18
|
+
<ng-container tbody>
|
|
19
|
+
<tr>
|
|
20
|
+
<td>Mario</td>
|
|
21
|
+
</tr>
|
|
22
|
+
<tr>
|
|
23
|
+
<td>Alessandro</td>
|
|
24
|
+
</tr>
|
|
25
|
+
<tr>
|
|
26
|
+
<td>Francesco</td>
|
|
27
|
+
</tr>
|
|
28
|
+
</ng-container>
|
|
29
|
+
</it-table>`,
|
|
30
|
+
imports: [ItSortDirective, ItSortHeaderComponent],
|
|
31
|
+
})
|
|
32
|
+
class TestComponent {
|
|
33
|
+
sortData(event: ItSortEvent) {
|
|
34
|
+
console.log(event);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
describe('ItSortDirective', () => {
|
|
39
|
+
let component: TestComponent;
|
|
40
|
+
let fixture: ComponentFixture<TestComponent>;
|
|
41
|
+
let des: DebugElement[];
|
|
42
|
+
|
|
43
|
+
beforeEach(async () => {
|
|
44
|
+
await TestBed.configureTestingModule({
|
|
45
|
+
imports: [ItSortDirective, ItSortHeaderComponent, TestComponent],
|
|
46
|
+
providers: tb_base.providers,
|
|
47
|
+
})
|
|
48
|
+
.overrideComponent(TestComponent, {
|
|
49
|
+
set: { changeDetection: ChangeDetectionStrategy.Default },
|
|
50
|
+
})
|
|
51
|
+
.compileComponents();
|
|
52
|
+
|
|
53
|
+
fixture = TestBed.createComponent(TestComponent);
|
|
54
|
+
component = fixture.componentInstance;
|
|
55
|
+
fixture.detectChanges();
|
|
56
|
+
|
|
57
|
+
// all elements with an attached SortDirective
|
|
58
|
+
des = fixture.debugElement.queryAll(By.directive(ItSortHeaderComponent));
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
it('should create an instance', () => {
|
|
62
|
+
const directive = new ItSortDirective();
|
|
63
|
+
expect(directive).toBeTruthy();
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it('should emit sort event', () => {
|
|
67
|
+
const th = des[0].nativeElement as HTMLTableColElement;
|
|
68
|
+
spyOn(component, 'sortData');
|
|
69
|
+
th.dispatchEvent(new Event('click'));
|
|
70
|
+
fixture.detectChanges();
|
|
71
|
+
expect(component.sortData).toHaveBeenCalledWith({ active: 'name', direction: 'asc' });
|
|
72
|
+
});
|
|
73
|
+
});
|