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,30 +0,0 @@
|
|
|
1
|
-
.card-body:empty {
|
|
2
|
-
display: none;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
::ng-deep .row [class*='col-'] {
|
|
6
|
-
.card,
|
|
7
|
-
.card-wrapper {
|
|
8
|
-
height: 100%;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
::ng-deep .card-wrapper.card-teaser-wrapper {
|
|
13
|
-
it-card {
|
|
14
|
-
flex-direction: row;
|
|
15
|
-
align-items: flex-start;
|
|
16
|
-
flex: 0 0 100%;
|
|
17
|
-
flex-wrap: wrap;
|
|
18
|
-
margin: 16px 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@media (min-width: 768px) {
|
|
22
|
-
it-card {
|
|
23
|
-
flex: 0 0 49%;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
:host {
|
|
29
|
-
width: 100%;
|
|
30
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ItCardComponent } from './card.component';
|
|
4
|
-
import { tb_base } from '../../../../test';
|
|
5
|
-
|
|
6
|
-
describe('ItCardComponent', () => {
|
|
7
|
-
let component: ItCardComponent;
|
|
8
|
-
let fixture: ComponentFixture<ItCardComponent>;
|
|
9
|
-
|
|
10
|
-
beforeEach(async () => {
|
|
11
|
-
await TestBed.configureTestingModule(tb_base).compileComponents();
|
|
12
|
-
|
|
13
|
-
fixture = TestBed.createComponent(ItCardComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
import { ItAbstractComponent } from '../../../abstracts/abstract.component';
|
|
3
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
4
|
-
import { inputToBoolean } from '../../../utils/coercion';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Card
|
|
8
|
-
* @description A container of texts and images with many options and variations.
|
|
9
|
-
*/
|
|
10
|
-
@Component({
|
|
11
|
-
standalone: true,
|
|
12
|
-
selector: 'it-card',
|
|
13
|
-
templateUrl: './card.component.html',
|
|
14
|
-
styleUrls: ['./card.component.scss'],
|
|
15
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
|
-
imports: [NgTemplateOutlet],
|
|
17
|
-
})
|
|
18
|
-
export class ItCardComponent extends ItAbstractComponent {
|
|
19
|
-
/**
|
|
20
|
-
* To create cards with short or "preview" content
|
|
21
|
-
* @default false
|
|
22
|
-
*/
|
|
23
|
-
@Input({ transform: inputToBoolean }) teaser?: boolean;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* To create special cards
|
|
27
|
-
* @default false
|
|
28
|
-
*/
|
|
29
|
-
@Input({ transform: inputToBoolean }) special?: boolean;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Card with image
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
|
-
@Input({ transform: inputToBoolean }) hasImage?: boolean;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* To add rounding effects
|
|
39
|
-
* @default false
|
|
40
|
-
*/
|
|
41
|
-
@Input({ transform: inputToBoolean }) rounded?: boolean;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* To add shadow effects
|
|
45
|
-
* @default false
|
|
46
|
-
*/
|
|
47
|
-
@Input({ transform: inputToBoolean }) shadow?: boolean;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* To add background and shadow
|
|
51
|
-
* @default false
|
|
52
|
-
*/
|
|
53
|
-
@Input({ transform: inputToBoolean }) background?: boolean;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* To add bottom border
|
|
57
|
-
* @default false
|
|
58
|
-
*/
|
|
59
|
-
@Input({ transform: inputToBoolean }) borderBottom?: boolean;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* To render a big card
|
|
63
|
-
* @default false
|
|
64
|
-
*/
|
|
65
|
-
@Input({ transform: inputToBoolean }) big?: boolean;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Custom card class
|
|
69
|
-
* @default ''
|
|
70
|
-
*/
|
|
71
|
-
@Input() cardClass: string = '';
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Custom card body class
|
|
75
|
-
* @default ''
|
|
76
|
-
*/
|
|
77
|
-
@Input() bodyClass: string = '';
|
|
78
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<div
|
|
2
|
-
#carousel
|
|
3
|
-
class="it-carousel-wrapper splide {{ typeClass }}"
|
|
4
|
-
[class.it-full-carousel]="fullCarousel"
|
|
5
|
-
[class.it-big-img]="bigImg"
|
|
6
|
-
[class.it-standard-image]="standardImage"
|
|
7
|
-
data-bs-carousel-splide>
|
|
8
|
-
@if (title) {
|
|
9
|
-
<div class="it-header-block">
|
|
10
|
-
<div class="it-header-block-title">
|
|
11
|
-
<h2>{{ title }}</h2>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
<div class="splide__track {{ trackClass }}">
|
|
17
|
-
@if (items) {
|
|
18
|
-
<ul class="splide__list">
|
|
19
|
-
@for (item of items; track item) {
|
|
20
|
-
<li class="splide__slide" [class.lined_slide]="lined">
|
|
21
|
-
<div class="it-single-slide-wrapper">
|
|
22
|
-
<ng-container *ngTemplateOutlet="item.htmlContent"></ng-container>
|
|
23
|
-
</div>
|
|
24
|
-
</li>
|
|
25
|
-
}
|
|
26
|
-
</ul>
|
|
27
|
-
}
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import '@splidejs/splide/dist/css/splide.min'; // Splide
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ItCarouselComponent } from './carousel.component';
|
|
4
|
-
import { tb_base } from '../../../../../test';
|
|
5
|
-
|
|
6
|
-
describe('ItCarouselComponent', () => {
|
|
7
|
-
let component: ItCarouselComponent;
|
|
8
|
-
let fixture: ComponentFixture<ItCarouselComponent>;
|
|
9
|
-
|
|
10
|
-
beforeEach(async () => {
|
|
11
|
-
await TestBed.configureTestingModule(tb_base).compileComponents();
|
|
12
|
-
|
|
13
|
-
fixture = TestBed.createComponent(ItCarouselComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AfterViewInit,
|
|
3
|
-
ChangeDetectionStrategy,
|
|
4
|
-
ChangeDetectorRef,
|
|
5
|
-
Component,
|
|
6
|
-
ContentChildren,
|
|
7
|
-
ElementRef,
|
|
8
|
-
Input,
|
|
9
|
-
OnDestroy,
|
|
10
|
-
QueryList,
|
|
11
|
-
ViewChild,
|
|
12
|
-
} from '@angular/core';
|
|
13
|
-
import { CarouselType } from '../../../../interfaces/core';
|
|
14
|
-
import { ItCarouselItemComponent } from '../carousel-item/carousel-item.component';
|
|
15
|
-
import { CarouselBI } from 'bootstrap-italia';
|
|
16
|
-
import { startWith, Subscription } from 'rxjs';
|
|
17
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
18
|
-
import { inputToBoolean } from '../../../../utils/coercion';
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Carousel
|
|
22
|
-
* @description A presentation component for scrolling through elements, images or text slides.
|
|
23
|
-
*/
|
|
24
|
-
@Component({
|
|
25
|
-
standalone: true,
|
|
26
|
-
selector: 'it-carousel',
|
|
27
|
-
templateUrl: './carousel.component.html',
|
|
28
|
-
styleUrls: ['./carousel.component.scss'],
|
|
29
|
-
exportAs: 'itCarousel',
|
|
30
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
31
|
-
imports: [NgTemplateOutlet],
|
|
32
|
-
})
|
|
33
|
-
export class ItCarouselComponent implements AfterViewInit, OnDestroy {
|
|
34
|
-
/**
|
|
35
|
-
* The callout title
|
|
36
|
-
* @default undefined
|
|
37
|
-
*/
|
|
38
|
-
@Input() title: string | undefined;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* The carousel type
|
|
42
|
-
* @default default
|
|
43
|
-
*/
|
|
44
|
-
@Input() type: CarouselType = 'default';
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Custom class in splide__track element
|
|
48
|
-
* @default ''
|
|
49
|
-
*/
|
|
50
|
-
@Input() trackClass: string = '';
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* True for full screen (landscape) viewing
|
|
54
|
-
* @default false
|
|
55
|
-
*/
|
|
56
|
-
@Input({ transform: inputToBoolean }) fullCarousel?: boolean;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* To indicate that the contained image is of a large type
|
|
60
|
-
* @default false
|
|
61
|
-
*/
|
|
62
|
-
@Input({ transform: inputToBoolean }) bigImg?: boolean;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* To indicate that the contained image is of a standard type
|
|
66
|
-
* @default false
|
|
67
|
-
*/
|
|
68
|
-
@Input({ transform: inputToBoolean }) standardImage?: boolean;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Card line style
|
|
72
|
-
* @default false
|
|
73
|
-
*/
|
|
74
|
-
@Input({ transform: inputToBoolean }) lined?: boolean;
|
|
75
|
-
|
|
76
|
-
@ContentChildren(ItCarouselItemComponent) protected items?: QueryList<ItCarouselItemComponent>;
|
|
77
|
-
|
|
78
|
-
private carousel?: CarouselBI;
|
|
79
|
-
|
|
80
|
-
@ViewChild('carousel') private carouselDiv!: ElementRef<HTMLDivElement>;
|
|
81
|
-
|
|
82
|
-
private itemSubscriptions?: Array<Subscription>;
|
|
83
|
-
|
|
84
|
-
protected get typeClass(): string {
|
|
85
|
-
const typeClass = 'it-carousel-landscape-abstract';
|
|
86
|
-
return this.type === 'default' ? typeClass : typeClass + `-${this.type}`;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
constructor(private readonly _changeDetectorRef: ChangeDetectorRef) {}
|
|
90
|
-
|
|
91
|
-
ngAfterViewInit(): void {
|
|
92
|
-
this.carousel = CarouselBI.getOrCreateInstance(this.carouselDiv.nativeElement);
|
|
93
|
-
this.items?.changes
|
|
94
|
-
.pipe(
|
|
95
|
-
// When carousel items changes (dynamic add/remove)
|
|
96
|
-
startWith(undefined)
|
|
97
|
-
)
|
|
98
|
-
.subscribe(() => {
|
|
99
|
-
this.itemSubscriptions?.forEach(sub => sub.unsubscribe()); // Remove old subscriptions
|
|
100
|
-
this.itemSubscriptions = this.items?.map(item =>
|
|
101
|
-
item.valueChanges.subscribe(() => {
|
|
102
|
-
this._changeDetectorRef.detectChanges(); // DetectChanges when carousel item attributes changes
|
|
103
|
-
})
|
|
104
|
-
);
|
|
105
|
-
this._changeDetectorRef.detectChanges(); // Force update html render
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
ngOnDestroy(): void {
|
|
110
|
-
this.itemSubscriptions?.forEach(item => item.unsubscribe());
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Removes CarouselBI features
|
|
115
|
-
*/
|
|
116
|
-
public dispose(): void {
|
|
117
|
-
this.carousel?.dispose();
|
|
118
|
-
}
|
|
119
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ItCarouselItemComponent } from './carousel-item.component';
|
|
4
|
-
|
|
5
|
-
describe('ItCarouselItemComponent', () => {
|
|
6
|
-
let component: ItCarouselItemComponent;
|
|
7
|
-
let fixture: ComponentFixture<ItCarouselItemComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [ItCarouselItemComponent],
|
|
12
|
-
}).compileComponents();
|
|
13
|
-
|
|
14
|
-
fixture = TestBed.createComponent(ItCarouselItemComponent);
|
|
15
|
-
component = fixture.componentInstance;
|
|
16
|
-
fixture.detectChanges();
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it('should create', () => {
|
|
20
|
-
expect(component).toBeTruthy();
|
|
21
|
-
});
|
|
22
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, TemplateRef, ViewChild } from '@angular/core';
|
|
2
|
-
import { ItAbstractComponent } from '../../../../abstracts/abstract.component';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Carousel Item
|
|
6
|
-
* @description element, image or text slide of carousel
|
|
7
|
-
*/
|
|
8
|
-
@Component({
|
|
9
|
-
standalone: true,
|
|
10
|
-
selector: 'it-carousel-item',
|
|
11
|
-
templateUrl: './carousel-item.component.html',
|
|
12
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13
|
-
imports: [],
|
|
14
|
-
})
|
|
15
|
-
export class ItCarouselItemComponent extends ItAbstractComponent {
|
|
16
|
-
/**
|
|
17
|
-
* The content of item
|
|
18
|
-
*/
|
|
19
|
-
@ViewChild(TemplateRef) public htmlContent!: TemplateRef<any>;
|
|
20
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { ItCarouselComponent } from './carousel/carousel.component';
|
|
3
|
-
import { ItCarouselItemComponent } from './carousel-item/carousel-item.component';
|
|
4
|
-
|
|
5
|
-
const carouselComponents = [ItCarouselComponent, ItCarouselItemComponent];
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
imports: carouselComponents,
|
|
9
|
-
exports: carouselComponents,
|
|
10
|
-
})
|
|
11
|
-
export class ItCarouselModule {}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<div
|
|
2
|
-
class="chip"
|
|
3
|
-
[ngClass]="[
|
|
4
|
-
!showCloseButton ? 'chip-simple' : 'alert',
|
|
5
|
-
size === 'lg' ? 'chip-lg' : '',
|
|
6
|
-
color ? 'chip-' + color : '',
|
|
7
|
-
disabled ? 'chip-disabled' : '',
|
|
8
|
-
]">
|
|
9
|
-
@if (icon) {
|
|
10
|
-
<svg class="icon icon-xs">
|
|
11
|
-
<use [attr.href]="iconHref" [attr.xlink:href]="iconHref"></use>
|
|
12
|
-
</svg>
|
|
13
|
-
}
|
|
14
|
-
@if (avatar) {
|
|
15
|
-
<div class="avatar size-xs"><img [src]="avatar" [alt]="altAvatar" /></div>
|
|
16
|
-
}
|
|
17
|
-
<span class="chip-label">{{ label }}</span>
|
|
18
|
-
@if (showCloseButton) {
|
|
19
|
-
<button (click)="clickToClose()" [disabled]="disabled">
|
|
20
|
-
<svg class="icon">
|
|
21
|
-
<use [attr.href]="iconCloseHref" [attr.xlink:href]="iconCloseHref"></use>
|
|
22
|
-
</svg>
|
|
23
|
-
<span class="visually-hidden">{{ 'it.core.remove' | translate }} {{ label }}</span>
|
|
24
|
-
</button>
|
|
25
|
-
}
|
|
26
|
-
</div>
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
3
|
-
import { By } from '@angular/platform-browser';
|
|
4
|
-
|
|
5
|
-
import { ItChipComponent } from './chip.component';
|
|
6
|
-
import { tb_base } from '../../../../test';
|
|
7
|
-
|
|
8
|
-
describe('ItChipComponent', () => {
|
|
9
|
-
let component: ItChipComponent;
|
|
10
|
-
let fixture: ComponentFixture<ItChipComponent>;
|
|
11
|
-
|
|
12
|
-
beforeEach(async () => {
|
|
13
|
-
await TestBed.configureTestingModule({
|
|
14
|
-
imports: [ItChipComponent],
|
|
15
|
-
providers: tb_base.providers,
|
|
16
|
-
})
|
|
17
|
-
.overrideComponent(ItChipComponent, {
|
|
18
|
-
set: { changeDetection: ChangeDetectionStrategy.Default },
|
|
19
|
-
})
|
|
20
|
-
.compileComponents();
|
|
21
|
-
|
|
22
|
-
fixture = TestBed.createComponent(ItChipComponent);
|
|
23
|
-
component = fixture.componentInstance;
|
|
24
|
-
fixture.detectChanges();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it('should create', () => {
|
|
28
|
-
expect(component).toBeTruthy();
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it('click on close button should trigger close.emit()', () => {
|
|
32
|
-
spyOn(component.closeEvent, 'emit').and.returnValue();
|
|
33
|
-
component.showCloseButton = true;
|
|
34
|
-
fixture.detectChanges();
|
|
35
|
-
const buttonElement = fixture.debugElement.query(By.css('button'));
|
|
36
|
-
buttonElement.nativeElement.click();
|
|
37
|
-
expect(component.closeEvent.emit).toHaveBeenCalled();
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
it('click on close button DISABLED should NOT trigger close.emit()', () => {
|
|
41
|
-
spyOn(component.closeEvent, 'emit').and.returnValue();
|
|
42
|
-
component.showCloseButton = true;
|
|
43
|
-
component.disabled = true;
|
|
44
|
-
fixture.detectChanges();
|
|
45
|
-
const buttonElement = fixture.debugElement.query(By.css('button'));
|
|
46
|
-
buttonElement.nativeElement.click();
|
|
47
|
-
expect(component.closeEvent.emit).not.toHaveBeenCalled();
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
it('can set label', () => {
|
|
51
|
-
component.label = 'label';
|
|
52
|
-
fixture.detectChanges();
|
|
53
|
-
// const spanElement = fixture.debugElement.query(By.css('.chip-label'));
|
|
54
|
-
expect(component).toBeTruthy();
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
it('can set size', () => {
|
|
58
|
-
component.size = 'lg';
|
|
59
|
-
fixture.detectChanges();
|
|
60
|
-
const divElement = fixture.debugElement.query(By.css('.chip-lg'));
|
|
61
|
-
expect(divElement).toBeTruthy();
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
it('can set color', () => {
|
|
65
|
-
component.color = 'primary';
|
|
66
|
-
fixture.detectChanges();
|
|
67
|
-
const divElement = fixture.debugElement.query(By.css('.chip-primary'));
|
|
68
|
-
expect(divElement).toBeTruthy();
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
it('can set icon', () => {
|
|
72
|
-
component.icon = 'github';
|
|
73
|
-
fixture.detectChanges();
|
|
74
|
-
const svgElement = fixture.debugElement.query(By.css('.icon.icon-xs'));
|
|
75
|
-
expect(svgElement).toBeTruthy();
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
it('can set avantar and alt', () => {
|
|
79
|
-
component.altAvatar = 'alt';
|
|
80
|
-
component.avatar = 'https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png';
|
|
81
|
-
fixture.detectChanges();
|
|
82
|
-
const imgElement = fixture.debugElement.query(
|
|
83
|
-
By.css('img[alt="alt"][src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png"]')
|
|
84
|
-
);
|
|
85
|
-
expect(imgElement).toBeTruthy();
|
|
86
|
-
});
|
|
87
|
-
});
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, inject, Input, Output } from '@angular/core';
|
|
2
|
-
import { IconName } from '../../../interfaces/icon';
|
|
3
|
-
import { ChipColor } from '../../../interfaces/core';
|
|
4
|
-
import { NgClass } from '@angular/common';
|
|
5
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
6
|
-
import { IT_ASSET_BASE_PATH } from '../../../interfaces/design-angular-kit-config';
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
standalone: true,
|
|
10
|
-
selector: 'it-chip',
|
|
11
|
-
templateUrl: './chip.component.html',
|
|
12
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13
|
-
imports: [NgClass, TranslateModule],
|
|
14
|
-
})
|
|
15
|
-
export class ItChipComponent {
|
|
16
|
-
/**
|
|
17
|
-
* Indica la label
|
|
18
|
-
*/
|
|
19
|
-
@Input() set label(value: string) {
|
|
20
|
-
this._label = value;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
get label(): string {
|
|
24
|
-
return this._label;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
private _label = '';
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Indica se mostrate il pulante di chisura
|
|
31
|
-
*/
|
|
32
|
-
@Input() set showCloseButton(value: boolean) {
|
|
33
|
-
this._showCloseButton = value;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
get showCloseButton(): boolean {
|
|
37
|
-
return this._showCloseButton;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
private _showCloseButton = false;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Indica il size
|
|
44
|
-
*/
|
|
45
|
-
@Input() set size(value: '' | 'lg') {
|
|
46
|
-
this._size = value;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
get size(): '' | 'lg' {
|
|
50
|
-
return this._size;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
private _size: '' | 'lg' = '';
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Indica il colore della chip
|
|
57
|
-
*/
|
|
58
|
-
@Input() set color(value: ChipColor | undefined) {
|
|
59
|
-
this._color = value;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
get color(): ChipColor | undefined {
|
|
63
|
-
return this._color;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
private _color: ChipColor | undefined = undefined;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Indica se la chip è disabilitata
|
|
70
|
-
*/
|
|
71
|
-
@Input() set disabled(value: boolean) {
|
|
72
|
-
this._disabled = value;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
get disabled(): boolean {
|
|
76
|
-
return this._disabled;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
private _disabled: boolean = false;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Indica il nome dell'icona, se valorizzata viene mostrata
|
|
83
|
-
*/
|
|
84
|
-
@Input() set icon(value: IconName | undefined) {
|
|
85
|
-
this._icon = value;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
get icon(): IconName | undefined {
|
|
89
|
-
return this._icon;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private _icon: IconName | undefined = undefined;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Indica l'url dell'avatar, se valorizzata viene mostrata
|
|
96
|
-
*/
|
|
97
|
-
@Input() set avatar(value: string | undefined) {
|
|
98
|
-
this._avatar = value;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
get avatar(): string | undefined {
|
|
102
|
-
return this._avatar;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
private _avatar: string | undefined = undefined;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Indica il valore da aggiungere al parametro alt, di default ''
|
|
109
|
-
*/
|
|
110
|
-
@Input() set altAvatar(value: string) {
|
|
111
|
-
this._altAvatar = value;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
get altAvatar(): string {
|
|
115
|
-
return this._altAvatar;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
private _altAvatar: string = '';
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Evento emesso al click sul bottone di chiusura
|
|
122
|
-
*/
|
|
123
|
-
@Output() closeEvent = new EventEmitter();
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Return the icon href
|
|
127
|
-
*/
|
|
128
|
-
protected get iconHref(): string {
|
|
129
|
-
return `${this.assetBasePath}/dist/svg/sprites.svg#it-${this._icon}`;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
private iconClose: IconName = 'close';
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Return the close icon href
|
|
136
|
-
*/
|
|
137
|
-
protected get iconCloseHref(): string {
|
|
138
|
-
return `${this.assetBasePath}/dist/svg/sprites.svg#it-${this.iconClose}`;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* The bootstrap-italia asset folder path
|
|
143
|
-
* @default ./bootstrap-italia
|
|
144
|
-
*/
|
|
145
|
-
protected assetBasePath: string;
|
|
146
|
-
|
|
147
|
-
constructor() {
|
|
148
|
-
this.assetBasePath = inject(IT_ASSET_BASE_PATH);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
clickToClose(): void {
|
|
152
|
-
this.closeEvent.emit();
|
|
153
|
-
}
|
|
154
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ItCollapseComponent } from './collapse.component';
|
|
4
|
-
import { tb_base } from '../../../../test';
|
|
5
|
-
|
|
6
|
-
describe('ItCollapseComponent', () => {
|
|
7
|
-
let component: ItCollapseComponent;
|
|
8
|
-
let fixture: ComponentFixture<ItCollapseComponent>;
|
|
9
|
-
|
|
10
|
-
beforeEach(async () => {
|
|
11
|
-
await TestBed.configureTestingModule(tb_base).compileComponents();
|
|
12
|
-
|
|
13
|
-
fixture = TestBed.createComponent(ItCollapseComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|