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,119 +1,77 @@
|
|
|
1
1
|
import { IconName } from './icon';
|
|
2
|
-
|
|
3
2
|
export type AlertColor = 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
4
|
-
|
|
5
|
-
export type ButtonColor =
|
|
6
|
-
| 'primary'
|
|
7
|
-
| 'outline-primary'
|
|
8
|
-
| 'secondary'
|
|
9
|
-
| 'outline-secondary'
|
|
10
|
-
| 'success'
|
|
11
|
-
| 'outline-success'
|
|
12
|
-
| 'danger'
|
|
13
|
-
| 'outline-danger'
|
|
14
|
-
| 'warning'
|
|
15
|
-
| 'outline-warning'
|
|
16
|
-
| 'info'
|
|
17
|
-
| 'outline-info'
|
|
18
|
-
| 'light'
|
|
19
|
-
| 'outline-light'
|
|
20
|
-
| 'dark'
|
|
21
|
-
| 'outline-dark'
|
|
22
|
-
| 'link';
|
|
23
|
-
|
|
3
|
+
export type ButtonColor = 'primary' | 'outline-primary' | 'secondary' | 'outline-secondary' | 'success' | 'outline-success' | 'danger' | 'outline-danger' | 'warning' | 'outline-warning' | 'info' | 'outline-info' | 'light' | 'outline-light' | 'dark' | 'outline-dark' | 'link';
|
|
24
4
|
export type ButtonSize = 'lg' | 'sm' | 'xs';
|
|
25
5
|
export type ButtonType = 'submit' | 'button';
|
|
26
|
-
|
|
27
6
|
export type CalloutColor = 'success' | 'warning' | 'danger' | 'important' | 'note';
|
|
28
7
|
export type CalloutAppearance = 'default' | 'highlight' | 'more';
|
|
29
|
-
|
|
30
8
|
export type ChipColor = 'primary' | 'secondary' | 'success' | 'danger' | 'warning';
|
|
31
|
-
|
|
32
9
|
export type ElementPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
33
|
-
|
|
34
10
|
export type ProgressBarColor = 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
35
|
-
|
|
36
11
|
export type BadgeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
37
|
-
|
|
38
12
|
export type TableColor = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
39
|
-
|
|
40
13
|
export type TableHeadColor = 'light' | 'dark';
|
|
41
|
-
|
|
42
14
|
export type TableResponsive = 'responsive' | 'responsive-sm' | 'responsive-md' | 'responsive-lg' | 'responsive-xl' | 'responsive-xxl';
|
|
43
|
-
|
|
44
15
|
export type VerticalAlignment = 'align-baseline' | 'align-top' | 'align-middle' | 'align-bottom' | 'align-text-bottom' | 'align-text-top';
|
|
45
|
-
|
|
46
16
|
export type DropdownDirection = 'dropup' | 'dropend' | 'dropstart';
|
|
47
|
-
|
|
48
17
|
export type CarouselType = 'default' | 'three-cols' | 'three-cols-arrow-visible';
|
|
49
|
-
|
|
50
18
|
export type TimelinePINType = 'default' | 'evidence' | 'now';
|
|
51
|
-
|
|
52
19
|
export interface TimelineElement {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
20
|
+
pin: {
|
|
21
|
+
type?: TimelinePINType;
|
|
22
|
+
icon?: IconName;
|
|
23
|
+
text: string;
|
|
24
|
+
};
|
|
25
|
+
category?: {
|
|
26
|
+
title: string;
|
|
27
|
+
link: string;
|
|
28
|
+
};
|
|
59
29
|
title: string;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
signature?: string;
|
|
65
|
-
eventDate?: Date;
|
|
66
|
-
link?: string;
|
|
30
|
+
text: string;
|
|
31
|
+
signature?: string;
|
|
32
|
+
eventDate?: Date;
|
|
33
|
+
link?: string;
|
|
67
34
|
}
|
|
68
|
-
|
|
69
35
|
export interface Notification {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
position?: NotificationPosition;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Custom icon of notification
|
|
102
|
-
*/
|
|
103
|
-
icon?: IconName;
|
|
36
|
+
/**
|
|
37
|
+
* Notification type
|
|
38
|
+
*/
|
|
39
|
+
type: NotificationType;
|
|
40
|
+
/**
|
|
41
|
+
* Notification title
|
|
42
|
+
*/
|
|
43
|
+
title: string;
|
|
44
|
+
/**
|
|
45
|
+
* Notification message / text
|
|
46
|
+
*/
|
|
47
|
+
message?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Custom duration of notification
|
|
50
|
+
*/
|
|
51
|
+
duration?: number;
|
|
52
|
+
/**
|
|
53
|
+
* The close notification button appears
|
|
54
|
+
*/
|
|
55
|
+
dismissible?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Custom position of notification
|
|
58
|
+
*/
|
|
59
|
+
position?: NotificationPosition;
|
|
60
|
+
/**
|
|
61
|
+
* Custom icon of notification
|
|
62
|
+
*/
|
|
63
|
+
icon?: IconName;
|
|
104
64
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
Warning = 'warning',
|
|
65
|
+
export declare enum NotificationType {
|
|
66
|
+
Standard = "standard",
|
|
67
|
+
Success = "success",
|
|
68
|
+
Error = "error",
|
|
69
|
+
Info = "info",
|
|
70
|
+
Warning = "warning"
|
|
112
71
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
Right = 'right-fix me-3',
|
|
72
|
+
export declare enum NotificationPosition {
|
|
73
|
+
Top = "top-fix mt-3",
|
|
74
|
+
Bottom = "bottom-fix mb-3",
|
|
75
|
+
Left = "left-fix ms-3",
|
|
76
|
+
Right = "right-fix me-3"
|
|
119
77
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { InjectionToken, Provider } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* The bootstrap-italia asset folder path
|
|
4
|
+
* @default ./bootstrap-italia
|
|
5
|
+
*/
|
|
6
|
+
export declare const IT_ASSET_BASE_PATH: InjectionToken<string>;
|
|
7
|
+
export interface DesignAngularKitConfig {
|
|
8
|
+
/**
|
|
9
|
+
* The bootstrap-italia asset folder path
|
|
10
|
+
* @default ./bootstrap-italia
|
|
11
|
+
*/
|
|
12
|
+
assetBasePath?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Load the <a href="https://italia.github.io/bootstrap-italia/docs/come-iniziare/introduzione/#fonts">bootstrap-italia fonts</a>
|
|
15
|
+
* @default true
|
|
16
|
+
*/
|
|
17
|
+
loadFont?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The TranslateModule loader
|
|
20
|
+
* @param itPrefix the design-angular-kit i18n path
|
|
21
|
+
* @param itSuffix the design-angular-kit i18n suffix
|
|
22
|
+
* @default
|
|
23
|
+
* {
|
|
24
|
+
* provide: TranslateLoader,
|
|
25
|
+
* useFactory: (http: HttpClient) => new TranslateHttpLoader(http, `${assetBasePath}/i18n/`, `.json?v${version}`),
|
|
26
|
+
* deps: [HttpClient],
|
|
27
|
+
* }
|
|
28
|
+
*/
|
|
29
|
+
translateLoader?: (itPrefix: string, itSuffix: string) => Provider;
|
|
30
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { IconName } from './icon';
|
|
2
|
+
export type InputControlType = 'text' | 'email' | 'number' | 'date' | 'time' | 'tel' | 'color' | 'url';
|
|
3
|
+
export interface SelectControlOption<T = any> {
|
|
4
|
+
value: T;
|
|
5
|
+
text?: string;
|
|
6
|
+
selected?: boolean | ((value: T) => boolean);
|
|
7
|
+
disabled?: boolean | ((value: T) => boolean);
|
|
8
|
+
}
|
|
9
|
+
export interface SelectControlGroup<T = any> {
|
|
10
|
+
label: string;
|
|
11
|
+
options: Array<SelectControlOption<T>>;
|
|
12
|
+
dragdrop?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface UploadFileListItem {
|
|
15
|
+
/**
|
|
16
|
+
* The item id
|
|
17
|
+
*/
|
|
18
|
+
id: number;
|
|
19
|
+
/**
|
|
20
|
+
* The uploaded file
|
|
21
|
+
*/
|
|
22
|
+
file: File;
|
|
23
|
+
/**
|
|
24
|
+
* Show progress bar
|
|
25
|
+
*
|
|
26
|
+
* The status of the item changes based on the value:
|
|
27
|
+
* - <b>uploading</b>: if value is between 0 and 100 (exclusive 0 < value < 100)
|
|
28
|
+
* - <b>success</b>: if value is greater than 100
|
|
29
|
+
*/
|
|
30
|
+
progress?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Show the ability to delete item
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
removable?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Set the status of the item as 'error'
|
|
38
|
+
*/
|
|
39
|
+
error?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Add tooltip on file item name
|
|
42
|
+
* @example It can be used to show the error message or additional information about the file
|
|
43
|
+
*/
|
|
44
|
+
tooltip?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Elemento disponibile per l'autocompletamento del it-form-input
|
|
48
|
+
*/
|
|
49
|
+
export interface AutocompleteItem<T = any> {
|
|
50
|
+
/** Valore voce di autocompletamento */
|
|
51
|
+
value: string;
|
|
52
|
+
/** Opzionale. Path in cui ricercare l'immagine dell'avatar da posizionare a sinistra della voce di autocompletamento */
|
|
53
|
+
avatarSrcPath?: string;
|
|
54
|
+
/** Opzionale. Testo in alternativa dell'avatar per accessibilità */
|
|
55
|
+
avatarAltText?: string;
|
|
56
|
+
/** Opzionale. Icona posizionata a sinistra della voce di autocompletamento */
|
|
57
|
+
icon?: IconName;
|
|
58
|
+
/** Opzionale. Label posizionata a destra della voce di autocompletamento */
|
|
59
|
+
label?: string;
|
|
60
|
+
/** Opzionale. Link relativo all'elemento */
|
|
61
|
+
link?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Attribute not used for autocomplete rendering.
|
|
64
|
+
* It can be useful to retrieve some extra information when selecting the autocomplete item
|
|
65
|
+
*/
|
|
66
|
+
additionalData?: T;
|
|
67
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type IconSize = 'xs' | 'sm' | 'lg' | 'xl';
|
|
2
|
+
export type IconColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'light' | 'white';
|
|
3
|
+
export type IconName = (typeof IconNameArray)[number];
|
|
4
|
+
export declare const IconNameArray: readonly ["arrow-down", "arrow-down-circle", "arrow-down-triangle", "arrow-left", "arrow-left-circle", "arrow-left-triangle", "arrow-right", "arrow-right-circle", "arrow-right-triangle", "arrow-up", "arrow-up-circle", "arrow-up-triangle", "ban", "bookmark", "box", "burger", "calendar", "camera", "card", "chart-line", "check", "check-circle", "chevron-left", "chevron-right", "clip", "clock", "close", "close-big", "close-circle", "code-circle", "comment", "copy", "delete", "download", "error", "exchange-circle", "expand", "external-link", "flag", "folder", "fullscreen", "funnel", "hearing", "help", "help-circle", "horn", "inbox", "info-circle", "key", "link", "list", "locked", "logout", "mail", "mail-open", "map-marker", "map-marker-circle", "map-marker-minus", "map-marker-plus", "maximize", "maximize-alt", "minimize", "minus", "minus-circle", "more-actions", "more-items", "note", "pa", "password-invisible", "password-visible", "pencil", "piattaforme", "pin", "plug", "plus", "plus-circle", "presentation", "print", "refresh", "restore", "rss", "rss-square", "search", "settings", "share", "software", "star-full", "star-outline", "telephone", "tool", "unlocked", "upload", "user", "video", "warning", "warning-circle", "wifi", "zoom-in", "zoom-out", "file", "files", "file-audio", "file-compressed", "file-csv", "file-json", "file-odp", "file-ods", "file-odt", "file-pdf", "file-pdf-ext", "file-sheet", "file-slides", "file-ppt", "file-txt", "file-video", "file-xml", "behance", "facebook", "facebook-square", "figma", "figma-square", "flickr", "flickr-square", "github", "instagram", "linkedin", "linkedin-square", "mastodon", "mastodon-square", "medium", "medium-square", "moodle", "moodle-square", "pinterest", "pinterest-square", "quora", "quora-square", "reddit", "reddit-square", "slack", "slack-square", "snapchat", "snapchat-square", "stackexchange", "stackexchange-square", "stackoverflow", "stackoverflow-square", "telegram", "threads", "threads-square", "tiktok", "tiktok-square", "twitter", "twitter-square", "vimeo", "vimeo-square", "whatsapp", "whatsapp-square", "youtube", "google", "designers-italia", "team-digitale"];
|
|
@@ -0,0 +1,33 @@
|
|
|
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>;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,63 @@
|
|
|
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,7 +1,4 @@
|
|
|
1
|
-
import { booleanAttribute } from '@angular/core';
|
|
2
|
-
|
|
3
1
|
export type BooleanInput = 'false' | 'true' | boolean | undefined;
|
|
4
|
-
|
|
5
2
|
/**
|
|
6
3
|
* Transforms a value (typically a string) to a boolean.
|
|
7
4
|
* Intended to be used as a transform function of an input.
|
|
@@ -14,7 +11,4 @@ export type BooleanInput = 'false' | 'true' | boolean | undefined;
|
|
|
14
11
|
*
|
|
15
12
|
* @publicApi
|
|
16
13
|
*/
|
|
17
|
-
export function inputToBoolean(value: BooleanInput): boolean
|
|
18
|
-
// Wrap `@angular/core` function to force value type, for ide hits
|
|
19
|
-
return booleanAttribute(value);
|
|
20
|
-
}
|
|
14
|
+
export declare function inputToBoolean(value: BooleanInput): boolean;
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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;
|