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
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export type SortDirection = 'asc' | 'desc' | undefined;
|
|
3
|
-
/** Position of the arrow that displays when sorted. */
|
|
4
|
-
export type SortHeaderArrowPosition = 'before' | 'after';
|
|
5
|
-
/** Interface for a directive that holds sorting state consumed by `ItSortHeader`. */
|
|
6
|
-
export interface ItSortable {
|
|
7
|
-
/** The id of the column being sorted. */
|
|
8
|
-
id: string;
|
|
9
|
-
/** Starting sort direction. */
|
|
10
|
-
start?: SortDirection;
|
|
11
|
-
/** Whether to disable clearing the sorting state. */
|
|
12
|
-
disableSortClear?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/** The current sort state. */
|
|
15
|
-
export interface ItSortEvent {
|
|
16
|
-
/** The id of the column being sorted. */
|
|
17
|
-
active: string;
|
|
18
|
-
/** The sort direction. */
|
|
19
|
-
direction: SortDirection;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Default options for `it-sort`.
|
|
23
|
-
*/
|
|
24
|
-
export interface ItSortDefaultOptions {
|
|
25
|
-
/** Whether to disable clearing the sorting state. */
|
|
26
|
-
disableClear?: boolean;
|
|
27
|
-
/** Position of the arrow that displays when sorted. */
|
|
28
|
-
arrowPosition?: SortHeaderArrowPosition;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Injection token to be used to override the default options for `it-sort`.
|
|
32
|
-
*/
|
|
33
|
-
export declare const IT_SORT_DEFAULT_OPTIONS: InjectionToken<ItSortDefaultOptions>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { TranslatePipe } from '@ngx-translate/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Indicates in a textual way how much time has passed since the indicated date
|
|
6
|
-
* @example 2 hours ago
|
|
7
|
-
*/
|
|
8
|
-
export declare class ItDateAgoPipe extends TranslatePipe implements PipeTransform {
|
|
9
|
-
/**
|
|
10
|
-
* Indicates in a textual way how much time has passed since the indicated date
|
|
11
|
-
* @example 2 hours ago
|
|
12
|
-
* @param value the Date or date string
|
|
13
|
-
*/
|
|
14
|
-
transform(value: string | Date): string;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItDateAgoPipe, never>;
|
|
16
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ItDateAgoPipe, "itDateAgo", true>;
|
|
17
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { TranslatePipe } from '@ngx-translate/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export type ItDurationPipeType = 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute' | 'second';
|
|
5
|
-
/**
|
|
6
|
-
* Transform a number into a duration.
|
|
7
|
-
* Is necessary indicate the value expressed by the number, for example 'day'.
|
|
8
|
-
* @example
|
|
9
|
-
* - 1, 'day' -> 1 day
|
|
10
|
-
* - 5, 'day' -> 5 days
|
|
11
|
-
* - 7, 'day' -> 1 week
|
|
12
|
-
* - 365, 'day' -> 1 year
|
|
13
|
-
* - 2, 'week' -> 2 weeks
|
|
14
|
-
* ...
|
|
15
|
-
*/
|
|
16
|
-
export declare class ItDurationPipe extends TranslatePipe implements PipeTransform {
|
|
17
|
-
/**
|
|
18
|
-
* Transform a number into a duration.
|
|
19
|
-
* Is necessary indicate the value expressed by the number, for example 'day'.
|
|
20
|
-
* @example
|
|
21
|
-
* - 1, 'day' -> 1 day
|
|
22
|
-
* - 5, 'day' -> 5 days
|
|
23
|
-
* - 7, 'day' -> 1 week
|
|
24
|
-
* - 8, 'day' -> 1 week
|
|
25
|
-
* - 365, 'day' -> 1 year
|
|
26
|
-
* - 2, 'week' -> 2 weeks
|
|
27
|
-
* - 24, 'month' -> 1 year
|
|
28
|
-
* ...
|
|
29
|
-
* @param value the number
|
|
30
|
-
* @param type the number expressed type
|
|
31
|
-
*/
|
|
32
|
-
transform(value: string | number | undefined, type: ItDurationPipeType): string;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItDurationPipe, never>;
|
|
34
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ItDurationPipe, "itDuration", true>;
|
|
35
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Allows you to highlight text with the <mark> tag
|
|
6
|
-
*/
|
|
7
|
-
export declare class ItMarkMatchingTextPipe implements PipeTransform {
|
|
8
|
-
private readonly domSanitizer;
|
|
9
|
-
constructor(domSanitizer: DomSanitizer);
|
|
10
|
-
/**
|
|
11
|
-
* Allows you to highlight text with the <mark> tag
|
|
12
|
-
* @param allString the full text to search from
|
|
13
|
-
* @param searchString the string to search
|
|
14
|
-
*/
|
|
15
|
-
transform(allString: string | undefined, searchString: string | number | null | undefined): SafeHtml | string | undefined;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItMarkMatchingTextPipe, never>;
|
|
17
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ItMarkMatchingTextPipe, "itMarkMatchingText", true>;
|
|
18
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
-
import { DesignAngularKitConfig } from './interfaces/design-angular-kit-config';
|
|
3
|
-
/**
|
|
4
|
-
* Configures DesignAngularKit library
|
|
5
|
-
* @param config the DesignAngularKit config
|
|
6
|
-
*/
|
|
7
|
-
export declare function provideDesignAngularKit(config?: DesignAngularKitConfig): EnvironmentProviders;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Notification, NotificationPosition, NotificationType } from '../../interfaces/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ItNotificationService {
|
|
5
|
-
private subject;
|
|
6
|
-
/**
|
|
7
|
-
* Listen on notification arrived
|
|
8
|
-
* @param filterType filter type of notification
|
|
9
|
-
*/
|
|
10
|
-
onNotification(filterType?: NotificationType): Observable<Notification>;
|
|
11
|
-
/**
|
|
12
|
-
* Show new notification
|
|
13
|
-
* @param notification notification
|
|
14
|
-
*/
|
|
15
|
-
addNotification(notification: Notification): void;
|
|
16
|
-
/**
|
|
17
|
-
* Create new Standard notification
|
|
18
|
-
* @param title notification title
|
|
19
|
-
* @param message notification message
|
|
20
|
-
* @param dismissible notification dismissible
|
|
21
|
-
* @param duration notification duration (milliseconds)
|
|
22
|
-
* @param position notification position
|
|
23
|
-
*/
|
|
24
|
-
standard(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
|
|
25
|
-
/**
|
|
26
|
-
* Create new Success notification
|
|
27
|
-
* @param title notification title
|
|
28
|
-
* @param message notification message
|
|
29
|
-
* @param dismissible notification dismissible
|
|
30
|
-
* @param duration notification duration (milliseconds)
|
|
31
|
-
* @param position notification position
|
|
32
|
-
*/
|
|
33
|
-
success(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
|
|
34
|
-
/**
|
|
35
|
-
* Create new Error notification
|
|
36
|
-
* @param title notification title
|
|
37
|
-
* @param message notification message
|
|
38
|
-
* @param dismissible notification dismissible
|
|
39
|
-
* @param duration notification duration (milliseconds)
|
|
40
|
-
* @param position notification position
|
|
41
|
-
*/
|
|
42
|
-
error(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
|
|
43
|
-
/**
|
|
44
|
-
* Create new Warning notification
|
|
45
|
-
* @param title notification title
|
|
46
|
-
* @param message notification message
|
|
47
|
-
* @param dismissible notification dismissible
|
|
48
|
-
* @param duration notification duration (milliseconds)
|
|
49
|
-
* @param position notification position
|
|
50
|
-
*/
|
|
51
|
-
warning(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
|
|
52
|
-
/**
|
|
53
|
-
* Create new Info notification
|
|
54
|
-
* @param title notification title
|
|
55
|
-
* @param message notification message
|
|
56
|
-
* @param dismissible notification dismissible
|
|
57
|
-
* @param duration notification duration (milliseconds)
|
|
58
|
-
* @param position notification position
|
|
59
|
-
*/
|
|
60
|
-
info(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
|
|
61
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItNotificationService, never>;
|
|
62
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ItNotificationService>;
|
|
63
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
export declare class ItDateUtils {
|
|
3
|
-
/**
|
|
4
|
-
* Add seconds to date
|
|
5
|
-
* @param date the date
|
|
6
|
-
* @param seconds seconds to add
|
|
7
|
-
*/
|
|
8
|
-
static addSeconds(date: Date, seconds: number): Date;
|
|
9
|
-
/**
|
|
10
|
-
* Add minutes to date
|
|
11
|
-
* @param date the date
|
|
12
|
-
* @param minutes minutes to add
|
|
13
|
-
*/
|
|
14
|
-
static addMinutes(date: Date, minutes: number): Date;
|
|
15
|
-
/**
|
|
16
|
-
* Add hours to date
|
|
17
|
-
* @param date the date
|
|
18
|
-
* @param hours hours to add
|
|
19
|
-
*/
|
|
20
|
-
static addHours(date: Date, hours: number): Date;
|
|
21
|
-
/**
|
|
22
|
-
* Add days to date
|
|
23
|
-
* @param date the date
|
|
24
|
-
* @param days days to add
|
|
25
|
-
*/
|
|
26
|
-
static addDays(date: Date, days: number): Date;
|
|
27
|
-
/**
|
|
28
|
-
* Add years to date
|
|
29
|
-
* @param date the date
|
|
30
|
-
* @param months months to add
|
|
31
|
-
*/
|
|
32
|
-
static addMonths(date: Date, months: number): Date;
|
|
33
|
-
/**
|
|
34
|
-
* Add years to date
|
|
35
|
-
* @param date the date
|
|
36
|
-
* @param years years to add
|
|
37
|
-
*/
|
|
38
|
-
static addYears(date: Date, years: number): Date;
|
|
39
|
-
/**
|
|
40
|
-
* Calculate number of days between two date
|
|
41
|
-
* @param startDate
|
|
42
|
-
* @param endDate
|
|
43
|
-
* @param absolute return unsigned result
|
|
44
|
-
*/
|
|
45
|
-
static countDays(startDate: Date, endDate: Date, absolute?: boolean): number;
|
|
46
|
-
/**
|
|
47
|
-
* Check if string is a date with iso format
|
|
48
|
-
* @param value the string
|
|
49
|
-
*/
|
|
50
|
-
static isIsoString(value: string | null): boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Convert iso string to Date
|
|
53
|
-
* @param isoString the iso string
|
|
54
|
-
*/
|
|
55
|
-
static isoStringToDate(isoString: string | null): Date | null;
|
|
56
|
-
/**
|
|
57
|
-
* Remove time from an iso date string
|
|
58
|
-
* @param isoString the iso string
|
|
59
|
-
*/
|
|
60
|
-
static isoStringRemoveTime(isoString: string): string;
|
|
61
|
-
/**
|
|
62
|
-
* Set iso string hours to 0 and format correctly the date (consider timezone offset)
|
|
63
|
-
* @example '2024-03-04T23:00:00.000Z' -> '2024-03-05T00:00:00.000Z'
|
|
64
|
-
* @param isoString the iso string
|
|
65
|
-
*/
|
|
66
|
-
static isoStringSetZeroTime(isoString: string): string;
|
|
67
|
-
/**
|
|
68
|
-
* Calculate the date time left and return the string format [d h m s]
|
|
69
|
-
* @param endDate
|
|
70
|
-
*/
|
|
71
|
-
static timeLeftString(endDate: Date): Observable<string>;
|
|
72
|
-
/**
|
|
73
|
-
* Calculate the next day of week
|
|
74
|
-
* @param dayOfWeek Day of week 0=Sunday, 1=Monday...4=Thursday...
|
|
75
|
-
* @param hour the specif hour
|
|
76
|
-
* @param minute the specific minute
|
|
77
|
-
*/
|
|
78
|
-
static nextWeekDayAndTime(dayOfWeek: number, hour?: number, minute?: number): Date;
|
|
79
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
export declare class ItFileUtils {
|
|
3
|
-
/**
|
|
4
|
-
* Return the file size string
|
|
5
|
-
* @param file the file
|
|
6
|
-
* @param decimals decimal to show
|
|
7
|
-
*/
|
|
8
|
-
static getFileSizeString(file: File, decimals?: number): string;
|
|
9
|
-
/**
|
|
10
|
-
* Convert a file to base64 string
|
|
11
|
-
* @param file the base64 string
|
|
12
|
-
*/
|
|
13
|
-
static fileToBase64(file: File): Observable<string>;
|
|
14
|
-
/**
|
|
15
|
-
* Convert base64 to Blob
|
|
16
|
-
* @param base64 the base64 string
|
|
17
|
-
* @param mimeType the <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types">MIME type</a> (example 'application/pdf')
|
|
18
|
-
*/
|
|
19
|
-
static base64ToBlob(base64: string, mimeType: string): Blob;
|
|
20
|
-
/**
|
|
21
|
-
* Convert base64 to File
|
|
22
|
-
* @param base64 the base64 string
|
|
23
|
-
* @param mimeType the <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types">MIME type</a> (example 'application/pdf')
|
|
24
|
-
* @param filename the file name
|
|
25
|
-
*/
|
|
26
|
-
static base64ToFile(base64: string, mimeType: string, filename: string): File;
|
|
27
|
-
/**
|
|
28
|
-
* Extract the MIME type from base64 string
|
|
29
|
-
* @param base64 the base64 string
|
|
30
|
-
*/
|
|
31
|
-
static getMimeTypeFromBase64(base64: string): string | undefined;
|
|
32
|
-
}
|
package/lib/utils/regex.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* General Email Regex (RFC 5322 Official Standard)
|
|
3
|
-
* http://emailregex.com/
|
|
4
|
-
*/
|
|
5
|
-
export declare const EMAIL_REGEX: RegExp;
|
|
6
|
-
/**
|
|
7
|
-
* Phone number Regex
|
|
8
|
-
*/
|
|
9
|
-
export declare const PHONE_NUMBER_REGEX: RegExp;
|
|
10
|
-
/**
|
|
11
|
-
* URL Regex
|
|
12
|
-
*/
|
|
13
|
-
export declare const URL_REGEX: RegExp;
|
|
14
|
-
/**
|
|
15
|
-
* The italian tax code Regex (Codice Fiscale)
|
|
16
|
-
*/
|
|
17
|
-
export declare const ITALIAN_TAX_CODE_REGEX: RegExp;
|
|
18
|
-
/**
|
|
19
|
-
* The VAT number Regex (Partita iva)
|
|
20
|
-
*/
|
|
21
|
-
export declare const VAT_NUMBER_REGEX: RegExp;
|
|
22
|
-
/**
|
|
23
|
-
* Italian CAP Regex
|
|
24
|
-
*/
|
|
25
|
-
export declare const CAP_REGEX: RegExp;
|
|
26
|
-
/**
|
|
27
|
-
* Italian Plate Regex
|
|
28
|
-
*/
|
|
29
|
-
export declare const PLATE_REGEX: RegExp;
|
|
30
|
-
/**
|
|
31
|
-
* IBAN Regex
|
|
32
|
-
* https://blog.marketto.it/en/2018/06/validate-any-country-iban/
|
|
33
|
-
*/
|
|
34
|
-
export declare const IBAN_REGEX: RegExp;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
|
|
2
|
-
export declare class ItValidators {
|
|
3
|
-
static SpecialCharacterPattern: string;
|
|
4
|
-
/**
|
|
5
|
-
* Static pattern validator with custom error
|
|
6
|
-
* @param regex
|
|
7
|
-
* @param error
|
|
8
|
-
*/
|
|
9
|
-
static customPattern(regex: RegExp, error: ValidationErrors): ValidatorFn;
|
|
10
|
-
/**
|
|
11
|
-
* Set Validator if the condition is satisfied
|
|
12
|
-
* @param validator the validator to apply if the condition is true
|
|
13
|
-
* @param condition the condition
|
|
14
|
-
*/
|
|
15
|
-
static conditional(validator: ValidatorFn, condition: (control: AbstractControl) => boolean): ValidatorFn;
|
|
16
|
-
/**
|
|
17
|
-
* Check whether our password and confirm password are a match
|
|
18
|
-
* @param control
|
|
19
|
-
* @param passwordControlName the password formControlName
|
|
20
|
-
* @param confirmControlName the confirmPassword formControlName
|
|
21
|
-
*/
|
|
22
|
-
static passwordMatch(control: AbstractControl, passwordControlName?: string, confirmControlName?: string): AbstractControl | null;
|
|
23
|
-
/**
|
|
24
|
-
* Password validator
|
|
25
|
-
* @param minLength minimum password length - default 10
|
|
26
|
-
* @param hasNumber check whether the entered password has a number - default true
|
|
27
|
-
* @param hasCapitalCase check whether the entered password has upper case letter - default true
|
|
28
|
-
* @param hasSmallCase check whether the entered password has a lower-case letter - default true
|
|
29
|
-
* @param hasSpecialCharacters check whether the entered password has a special character - default true
|
|
30
|
-
* @param required the field is required - default true
|
|
31
|
-
*/
|
|
32
|
-
static password(minLength?: number, hasNumber?: boolean, hasCapitalCase?: boolean, hasSmallCase?: boolean, hasSpecialCharacters?: boolean, required?: boolean): ValidatorFn;
|
|
33
|
-
/**
|
|
34
|
-
* Email validator
|
|
35
|
-
*/
|
|
36
|
-
static get email(): ValidatorFn;
|
|
37
|
-
/**
|
|
38
|
-
* Phone number validator
|
|
39
|
-
*/
|
|
40
|
-
static get tel(): ValidatorFn;
|
|
41
|
-
/**
|
|
42
|
-
* URL validator
|
|
43
|
-
*/
|
|
44
|
-
static get url(): ValidatorFn;
|
|
45
|
-
/**
|
|
46
|
-
* Italian Tax Code validator
|
|
47
|
-
*/
|
|
48
|
-
static get taxCode(): ValidatorFn;
|
|
49
|
-
/**
|
|
50
|
-
* VAT Number validator
|
|
51
|
-
*/
|
|
52
|
-
static get vatNumber(): ValidatorFn;
|
|
53
|
-
/**
|
|
54
|
-
* Italian Postal Code validator (CAP)
|
|
55
|
-
*/
|
|
56
|
-
static get cap(): ValidatorFn;
|
|
57
|
-
/**
|
|
58
|
-
* IBAN validator
|
|
59
|
-
*/
|
|
60
|
-
static get iban(): ValidatorFn;
|
|
61
|
-
/**
|
|
62
|
-
* Italian plate validator
|
|
63
|
-
*/
|
|
64
|
-
static get plate(): ValidatorFn;
|
|
65
|
-
/**
|
|
66
|
-
* Check if value is a valid RegExp
|
|
67
|
-
*/
|
|
68
|
-
static get regExp(): ValidatorFn;
|
|
69
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
4
|
-
const utils_1 = require("./utils");
|
|
5
|
-
const versions_helper_1 = require("./versions-helper");
|
|
6
|
-
const DESIGN_ANGULAR_KIT_PACKAGE_NAME = 'design-angular-kit';
|
|
7
|
-
const NG_LATEST_VERSION = '19.0.0';
|
|
8
|
-
function default_1(options) {
|
|
9
|
-
return (host, context) => {
|
|
10
|
-
// Get the version of `@angular/core`
|
|
11
|
-
// This tag should be preferred because all Angular dependencies should have the same version tag if possible.
|
|
12
|
-
const ngCoreVersionTag = (0, utils_1.getPackageVersionFromPackageJson)(host, '@angular/core');
|
|
13
|
-
const designAngularKitVersionRange = (0, utils_1.getPackageVersionFromPackageJson)(host, DESIGN_ANGULAR_KIT_PACKAGE_NAME);
|
|
14
|
-
const angularDependencyVersion = ngCoreVersionTag || NG_LATEST_VERSION;
|
|
15
|
-
const { major: angularMajorVersion } = (0, utils_1.toSemVerObject)(angularDependencyVersion);
|
|
16
|
-
const designAngularKitPackageVersion = (0, versions_helper_1.getPackageVersion)({ angularMajorVersion });
|
|
17
|
-
// The CLI inserts `design-angular-kit` into the `package.json` before this schematic runs.
|
|
18
|
-
// This means that we do not need to insert Design Angular Kit into `package.json` files again.
|
|
19
|
-
if (designAngularKitVersionRange === null) {
|
|
20
|
-
(0, utils_1.addPackageToPackageJson)(host, DESIGN_ANGULAR_KIT_PACKAGE_NAME, designAngularKitPackageVersion);
|
|
21
|
-
}
|
|
22
|
-
(0, utils_1.addPackageToPackageJson)(host, '@angular/cdk', angularDependencyVersion);
|
|
23
|
-
(0, utils_1.addPackageToPackageJson)(host, '@angular/animations', angularDependencyVersion);
|
|
24
|
-
const installTaskId = context.addTask(new tasks_1.NodePackageInstallTask());
|
|
25
|
-
context.addTask(new tasks_1.RunSchematicTask('ng-add-setup-project', options), [installTaskId]);
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
exports.default = default_1;
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/design-angular-kit/schematics/ng-add/index.ts"],"names":[],"mappings":";;AACA,4DAA4F;AAG5F,mCAAoG;AACpG,uDAAsD;AAEtD,MAAM,+BAA+B,GAAG,oBAAoB,CAAC;AAC7D,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAEnC,mBAAyB,OAAe;IACtC,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,qCAAqC;QACrC,+GAA+G;QAC/G,MAAM,gBAAgB,GAAG,IAAA,wCAAgC,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QACjF,MAAM,4BAA4B,GAAG,IAAA,wCAAgC,EAAC,IAAI,EAAE,+BAA+B,CAAC,CAAC;QAC7G,MAAM,wBAAwB,GAAG,gBAAgB,IAAI,iBAAiB,CAAC;QAEvE,MAAM,EAAE,KAAK,EAAE,mBAAmB,EAAE,GAAG,IAAA,sBAAc,EAAC,wBAAwB,CAAC,CAAC;QAEhF,MAAM,8BAA8B,GAAG,IAAA,mCAAiB,EAAC,EAAE,mBAAmB,EAAE,CAAC,CAAC;QAElF,2FAA2F;QAC3F,+FAA+F;QAC/F,IAAI,4BAA4B,KAAK,IAAI,EAAE,CAAC;YAC1C,IAAA,+BAAuB,EAAC,IAAI,EAAE,+BAA+B,EAAE,8BAA8B,CAAC,CAAC;QACjG,CAAC;QAED,IAAA,+BAAuB,EAAC,IAAI,EAAE,cAAc,EAAE,wBAAwB,CAAC,CAAC;QACxE,IAAA,+BAAuB,EAAC,IAAI,EAAE,qBAAqB,EAAE,wBAAwB,CAAC,CAAC;QAE/E,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;QAEpE,OAAO,CAAC,OAAO,CAAC,IAAI,wBAAgB,CAAC,sBAAsB,EAAE,OAAO,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAC1F,CAAC,CAAC;AACJ,CAAC;AAzBD,4BAyBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const testing_1 = require("@angular-devkit/schematics/testing");
|
|
13
|
-
const path = require("path");
|
|
14
|
-
describe(`ng add design-angular-kit`, () => {
|
|
15
|
-
const collectionPath = path.join(__dirname, '../collection.json');
|
|
16
|
-
const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
|
17
|
-
const defaultOptions = {
|
|
18
|
-
project: 'test-project', // Set your default project name
|
|
19
|
-
};
|
|
20
|
-
let appTree;
|
|
21
|
-
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
22
|
-
// Simulate an Angular workspace project before running the schematic
|
|
23
|
-
appTree = yield runner.runExternalSchematic('@schematics/angular', 'workspace', {
|
|
24
|
-
name: 'workspace',
|
|
25
|
-
version: '6.0.0',
|
|
26
|
-
newProjectRoot: 'projects',
|
|
27
|
-
});
|
|
28
|
-
appTree = yield runner.runExternalSchematic('@schematics/angular', 'application', {
|
|
29
|
-
name: defaultOptions.project,
|
|
30
|
-
standalone: false,
|
|
31
|
-
}, appTree);
|
|
32
|
-
}));
|
|
33
|
-
it('should add DesignAngularKitModule to package.json', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
34
|
-
const tree = yield runner.runSchematic('ng-add', defaultOptions, appTree);
|
|
35
|
-
// Check if the package.json file exists
|
|
36
|
-
const packageJsonPath = '/package.json';
|
|
37
|
-
expect(tree.files).toContain(packageJsonPath);
|
|
38
|
-
// Check if the correct dependency was added
|
|
39
|
-
const content = tree.readContent(packageJsonPath);
|
|
40
|
-
expect(content).toContain(`"design-angular-kit"`);
|
|
41
|
-
}));
|
|
42
|
-
});
|
|
43
|
-
//# sourceMappingURL=index.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../projects/design-angular-kit/schematics/ng-add/index.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,gEAAuF;AACvF,6BAA6B;AAG7B,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;IAClE,MAAM,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;IAErE,MAAM,cAAc,GAAqB;QACvC,OAAO,EAAE,cAAc,EAAE,gCAAgC;KAC1D,CAAC;IAEF,IAAI,OAAqB,CAAC;IAE1B,UAAU,CAAC,GAAS,EAAE;QACpB,qEAAqE;QACrE,OAAO,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,qBAAqB,EAAE,WAAW,EAAE;YAC9E,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,OAAO;YAChB,cAAc,EAAE,UAAU;SAC3B,CAAC,CAAC;QAEH,OAAO,GAAG,MAAM,MAAM,CAAC,oBAAoB,CACzC,qBAAqB,EACrB,aAAa,EACb;YACE,IAAI,EAAE,cAAc,CAAC,OAAO;YAC5B,UAAU,EAAE,KAAK;SAClB,EACD,OAAO,CACR,CAAC;IACJ,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,mDAAmD,EAAE,GAAS,EAAE;QACjE,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;QAE1E,wCAAwC;QACxC,MAAM,eAAe,GAAG,eAAe,CAAC;QACxC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QAE9C,4CAA4C;QAC5C,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QAClD,MAAM,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;IACpD,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addAnimations = void 0;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
function addAnimations() {
|
|
6
|
-
//this dependency should be provided at application level instead of lib level. ref: provideDesignAngularKit
|
|
7
|
-
//provideAnimationsAsync(),
|
|
8
|
-
return (host, context) => (0, schematics_1.callRule)((0, schematics_1.noop)(), host, context);
|
|
9
|
-
}
|
|
10
|
-
exports.addAnimations = addAnimations;
|
|
11
|
-
//# sourceMappingURL=add-animations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-animations.js","sourceRoot":"","sources":["../../../../../../projects/design-angular-kit/schematics/ng-add/rules/setup-project/add-animations.ts"],"names":[],"mappings":";;;AAAA,2DAA0F;AAE1F,SAAgB,aAAa;IAC3B,4GAA4G;IAC5G,2BAA2B;IAC3B,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE,CAAC,IAAA,qBAAQ,EAAC,IAAA,iBAAI,GAAE,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AACpF,CAAC;AAJD,sCAIC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.addAssets = void 0;
|
|
13
|
-
const utility_1 = require("@schematics/angular/utility");
|
|
14
|
-
const angular_json_helper_1 = require("./angular-json-helper");
|
|
15
|
-
const exceptions_1 = require("./exceptions");
|
|
16
|
-
const ASSETS_CONFIG = {
|
|
17
|
-
glob: '**/*',
|
|
18
|
-
input: './node_modules/bootstrap-italia/',
|
|
19
|
-
output: '/bootstrap-italia/',
|
|
20
|
-
};
|
|
21
|
-
function addAssets(options) {
|
|
22
|
-
return (host) => __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const workspace = yield (0, utility_1.readWorkspace)(host);
|
|
24
|
-
const projectName = options.project || workspace.extensions.defaultProject.toString();
|
|
25
|
-
const project = workspace.projects.get(projectName);
|
|
26
|
-
if (!project) {
|
|
27
|
-
throw new exceptions_1.NoProjectException(projectName);
|
|
28
|
-
}
|
|
29
|
-
addAssetsToAngularJson(project);
|
|
30
|
-
yield (0, utility_1.writeWorkspace)(host, workspace);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
exports.addAssets = addAssets;
|
|
34
|
-
function addAssetsToAngularJson(project) {
|
|
35
|
-
const targetOptions = (0, angular_json_helper_1.getProjectTargetOptions)(project, 'build');
|
|
36
|
-
const assets = targetOptions.assets;
|
|
37
|
-
if (!assets) {
|
|
38
|
-
targetOptions.assets = [ASSETS_CONFIG];
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
const existingAssets = assets.map(s => (typeof s === 'string' ? s : s['input']));
|
|
42
|
-
for (const [, input] of existingAssets.entries()) {
|
|
43
|
-
if (input === ASSETS_CONFIG.input) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
assets.push(ASSETS_CONFIG);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=add-assets.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-assets.js","sourceRoot":"","sources":["../../../../../../projects/design-angular-kit/schematics/ng-add/rules/setup-project/add-assets.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yDAA4E;AAG5E,+DAAgE;AAChE,6CAAkD;AAElD,MAAM,aAAa,GAAG;IACpB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,kCAAkC;IACzC,MAAM,EAAE,oBAAoB;CAC7B,CAAC;AAEF,SAAgB,SAAS,CAAC,OAAe;IACvC,OAAO,CAAO,IAAU,EAAE,EAAE;QAC1B,MAAM,SAAS,GAAG,MAAM,IAAA,uBAAa,EAAC,IAAI,CAAC,CAAC;QAE5C,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,IAAI,SAAS,CAAC,UAAU,CAAC,cAAe,CAAC,QAAQ,EAAE,CAAC;QACvF,MAAM,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,+BAAkB,CAAC,WAAW,CAAC,CAAC;QAC5C,CAAC;QAED,sBAAsB,CAAC,OAAO,CAAC,CAAC;QAChC,MAAM,IAAA,wBAAc,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACxC,CAAC,CAAA,CAAC;AACJ,CAAC;AAbD,8BAaC;AAED,SAAS,sBAAsB,CAAC,OAAqC;IACnE,MAAM,aAAa,GAAG,IAAA,6CAAuB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAChE,MAAM,MAAM,GAAG,aAAa,CAAC,MAA+B,CAAC;IAC7D,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,aAAa,CAAC,MAAM,GAAG,CAAC,aAAa,CAAC,CAAC;IACzC,CAAC;SAAM,CAAC;QACN,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAiB,CAAC,OAAO,CAAC,CAAC,CAAkB,CAAC;QAEnH,KAAK,MAAM,CAAC,EAAE,KAAK,CAAC,IAAI,cAAc,CAAC,OAAO,EAAE,EAAE,CAAC;YACjD,IAAI,KAAK,KAAK,aAAa,CAAC,KAAK,EAAE,CAAC;gBAClC,OAAO;YACT,CAAC;QACH,CAAC;QACD,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.addDesignAngularKit = void 0;
|
|
13
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
14
|
-
const schematics_2 = require("@angular/cdk/schematics");
|
|
15
|
-
const utility_1 = require("@schematics/angular/utility");
|
|
16
|
-
const util_1 = require("@schematics/angular/utility/standalone/util");
|
|
17
|
-
const rxjs_1 = require("rxjs");
|
|
18
|
-
const exceptions_1 = require("./exceptions");
|
|
19
|
-
function addDesignAngularKit(options) {
|
|
20
|
-
return (host, context) => __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const workspace = yield (0, utility_1.readWorkspace)(host);
|
|
22
|
-
const projectName = options.project || workspace.extensions.defaultProject;
|
|
23
|
-
// 1. getting project by name
|
|
24
|
-
const project = workspace.projects.get(projectName);
|
|
25
|
-
if (!project) {
|
|
26
|
-
throw new exceptions_1.NoProjectException(projectName);
|
|
27
|
-
}
|
|
28
|
-
// 2. getting main file for project
|
|
29
|
-
const mainFilePath = yield (0, util_1.getMainFilePath)(host, projectName);
|
|
30
|
-
if (!mainFilePath || !host.read(mainFilePath)) {
|
|
31
|
-
throw new exceptions_1.NoMainFileException(projectName);
|
|
32
|
-
}
|
|
33
|
-
const isNotStandaloneApp = !(0, schematics_2.isStandaloneApp)(host, mainFilePath);
|
|
34
|
-
const rule = isNotStandaloneApp
|
|
35
|
-
? (0, utility_1.addRootImport)(projectName, ({ code, external }) => code `${external('DesignAngularKitModule', 'design-angular-kit')}.forRoot()\n`)
|
|
36
|
-
: (0, utility_1.addRootProvider)(projectName, ({ code, external }) => code `${external('provideDesignAngularKit', 'design-angular-kit')}()`);
|
|
37
|
-
return (0, rxjs_1.firstValueFrom)((0, schematics_1.callRule)(rule, host, context).pipe((0, rxjs_1.map)(() => {
|
|
38
|
-
return () => () => { };
|
|
39
|
-
})));
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
exports.addDesignAngularKit = addDesignAngularKit;
|
|
43
|
-
//# sourceMappingURL=add-design-angular-kit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-design-angular-kit.js","sourceRoot":"","sources":["../../../../../../projects/design-angular-kit/schematics/ng-add/rules/setup-project/add-design-angular-kit.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAAoF;AACpF,wDAA0D;AAC1D,yDAA4F;AAC5F,sEAA8E;AAC9E,+BAA2C;AAE3C,6CAAuE;AAEvE,SAAgB,mBAAmB,CAAC,OAAe;IACjD,OAAO,CAAO,IAAU,EAAE,OAAyB,EAAE,EAAE;QACrD,MAAM,SAAS,GAAG,MAAM,IAAA,uBAAa,EAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,IAAK,SAAS,CAAC,UAAU,CAAC,cAAyB,CAAC;QAEvF,6BAA6B;QAC7B,MAAM,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,+BAAkB,CAAC,WAAW,CAAC,CAAC;QAC5C,CAAC;QAED,mCAAmC;QACnC,MAAM,YAAY,GAAG,MAAM,IAAA,sBAAe,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAC9D,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YAC9C,MAAM,IAAI,gCAAmB,CAAC,WAAW,CAAC,CAAC;QAC7C,CAAC;QAED,MAAM,kBAAkB,GAAG,CAAC,IAAA,4BAAe,EAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QAEhE,MAAM,IAAI,GAAG,kBAAkB;YAC7B,CAAC,CAAC,IAAA,uBAAa,EAAC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,IAAI,CAAA,GAAG,QAAQ,CAAC,wBAAwB,EAAE,oBAAoB,CAAC,cAAc,CAAC;YACnI,CAAC,CAAC,IAAA,yBAAe,EAAC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,IAAI,CAAA,GAAG,QAAQ,CAAC,yBAAyB,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAE/H,OAAO,IAAA,qBAAc,EACnB,IAAA,qBAAQ,EAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAChC,IAAA,UAAG,EAAC,GAAG,EAAE;YACP,OAAO,GAAS,EAAE,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC;QAC9B,CAAC,CAAC,CACH,CACF,CAAC;IACJ,CAAC,CAAA,CAAC;AACJ,CAAC;AA/BD,kDA+BC"}
|