design-angular-kit 18.0.0 → 20.0.0
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 +26 -1
- package/fesm2022/design-angular-kit.mjs +521 -553
- package/fesm2022/design-angular-kit.mjs.map +1 -1
- package/index.d.ts +3986 -3
- package/package.json +11 -10
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/rules/setup-project/add-animations.js +1 -2
- package/schematics/ng-add/rules/setup-project/add-animations.js.map +1 -1
- package/schematics/ng-add/rules/setup-project/add-assets.js +1 -2
- package/schematics/ng-add/rules/setup-project/add-assets.js.map +1 -1
- package/schematics/ng-add/rules/setup-project/add-design-angular-kit.js +1 -2
- package/schematics/ng-add/rules/setup-project/add-design-angular-kit.js.map +1 -1
- package/schematics/ng-add/rules/setup-project/add-http-client.js +1 -2
- package/schematics/ng-add/rules/setup-project/add-http-client.js.map +1 -1
- package/schematics/ng-add/rules/setup-project/add-import-to-style-file.js +1 -2
- package/schematics/ng-add/rules/setup-project/add-import-to-style-file.js.map +1 -1
- package/schematics/ng-add/rules/setup-project/add-localisation.js +1 -2
- package/schematics/ng-add/rules/setup-project/add-localisation.js.map +1 -1
- package/schematics/ng-add/rules/setup-project/angular-json-helper.js +1 -2
- package/schematics/ng-add/rules/setup-project/angular-json-helper.js.map +1 -1
- package/schematics/ng-add/setup-project.js +2 -2
- package/schematics/ng-add/setup-project.js.map +1 -1
- package/schematics/ng-add/setup-project.spec.js +1 -1
- package/schematics/ng-add/utils.js +13 -6
- package/schematics/ng-add/utils.js.map +1 -1
- package/schematics/ng-add/utils.spec.d.ts +1 -0
- package/schematics/ng-add/utils.spec.js +48 -0
- package/schematics/ng-add/utils.spec.js.map +1 -0
- package/schematics/ng-add/versions-helper.js +11 -19
- package/schematics/ng-add/versions-helper.js.map +1 -1
- package/schematics/ng-add/versions-helper.spec.d.ts +1 -0
- package/schematics/ng-add/versions-helper.spec.js +46 -0
- package/schematics/ng-add/versions-helper.spec.js.map +1 -0
- package/esm2022/design-angular-kit.mjs +0 -5
- package/esm2022/lib/abstracts/abstract-form.component.mjs +0 -199
- 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-extra-text.directive.mjs +0 -22
- package/esm2022/lib/components/core/avatar/avatar-group/avatar-group.component.mjs +0 -84
- package/esm2022/lib/components/core/avatar/avatar-presence.directive.mjs +0 -38
- package/esm2022/lib/components/core/avatar/avatar-status.directive.mjs +0 -38
- package/esm2022/lib/components/core/avatar/avatar-wrapper.directive.mjs +0 -32
- package/esm2022/lib/components/core/avatar/avatar.directive.mjs +0 -78
- package/esm2022/lib/components/core/avatar/avatar.module.mjs +0 -52
- 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 -86
- 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 -147
- package/esm2022/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +0 -70
- 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 -67
- 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/core/video-player/video-player-i18n.model.mjs +0 -2
- package/esm2022/lib/components/core/video-player/video-player-i18n.service.mjs +0 -130
- package/esm2022/lib/components/core/video-player/video-player.component.mjs +0 -301
- package/esm2022/lib/components/core/video-player/video-player.config.mjs +0 -43
- package/esm2022/lib/components/core/video-player/video-player.cookie.mjs +0 -25
- package/esm2022/lib/components/core/video-player/video-player.model.mjs +0 -3
- package/esm2022/lib/components/core/video-player/video-player.module.mjs +0 -16
- package/esm2022/lib/components/form/autocomplete/autocomplete.component.mjs +0 -178
- package/esm2022/lib/components/form/checkbox/checkbox.component.mjs +0 -48
- package/esm2022/lib/components/form/form.module.mjs +0 -67
- 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/search/search.component.mjs +0 -112
- 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/footer/footer.component.mjs +0 -12
- package/esm2022/lib/components/navigation/header/header.component.mjs +0 -108
- package/esm2022/lib/components/navigation/megamenu/megamenu.component.mjs +0 -27
- package/esm2022/lib/components/navigation/navbar/navbar/navbar.component.mjs +0 -51
- 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 -97
- package/esm2022/lib/components/navigation/navscroll/navscroll-list-items.component.mjs +0 -44
- package/esm2022/lib/components/navigation/navscroll/navscroll.component.mjs +0 -119
- 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 -242
- 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 -181
- 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 -161
- package/esm2022/public_api.mjs +0 -119
- package/lib/abstracts/abstract-form.component.d.ts +0 -89
- 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-extra-text.directive.d.ts +0 -6
- package/lib/components/core/avatar/avatar-group/avatar-group.component.d.ts +0 -20
- package/lib/components/core/avatar/avatar-presence.directive.d.ts +0 -17
- package/lib/components/core/avatar/avatar-status.directive.d.ts +0 -17
- package/lib/components/core/avatar/avatar-wrapper.directive.d.ts +0 -9
- package/lib/components/core/avatar/avatar.directive.d.ts +0 -33
- package/lib/components/core/avatar/avatar.module.d.ts +0 -13
- 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 -46
- 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 -44
- 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/core/video-player/video-player-i18n.model.d.ts +0 -179
- package/lib/components/core/video-player/video-player-i18n.service.d.ts +0 -17
- package/lib/components/core/video-player/video-player.component.d.ts +0 -46
- package/lib/components/core/video-player/video-player.config.d.ts +0 -68
- package/lib/components/core/video-player/video-player.cookie.d.ts +0 -6
- package/lib/components/core/video-player/video-player.model.d.ts +0 -44
- package/lib/components/core/video-player/video-player.module.d.ts +0 -7
- package/lib/components/form/autocomplete/autocomplete.component.d.ts +0 -75
- package/lib/components/form/checkbox/checkbox.component.d.ts +0 -41
- package/lib/components/form/form.module.d.ts +0 -19
- 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/search/search.component.d.ts +0 -59
- 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/transfer/transfer.model.d.ts +0 -6
- 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/footer/footer.component.d.ts +0 -6
- package/lib/components/navigation/header/header.component.d.ts +0 -39
- package/lib/components/navigation/megamenu/megamenu.component.d.ts +0 -22
- package/lib/components/navigation/navbar/navbar/navbar.component.d.ts +0 -19
- 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.model.d.ts +0 -15
- 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 -55
- package/lib/enums/colors.enums.d.ts +0 -10
- package/lib/enums/sizes.enum.d.ts +0 -7
- package/lib/interfaces/core.d.ts +0 -77
- 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/coercion.d.ts +0 -14
- 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 -70
- package/public_api.d.ts +0 -106
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
3
|
-
import { InputControlType } from '../../../interfaces/form';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../../../utils/coercion";
|
|
7
|
-
export declare class ItInputComponent extends ItAbstractFormComponent<string | number | null | undefined> implements OnInit {
|
|
8
|
-
/**
|
|
9
|
-
* The input type
|
|
10
|
-
* @default text
|
|
11
|
-
*/
|
|
12
|
-
type: InputControlType;
|
|
13
|
-
/**
|
|
14
|
-
* The input placeholder
|
|
15
|
-
*/
|
|
16
|
-
placeholder: string;
|
|
17
|
-
/**
|
|
18
|
-
* The input description
|
|
19
|
-
*/
|
|
20
|
-
description: string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* To prevent modification of the contained value.
|
|
23
|
-
* - <b>plaintext</b>: Readonly field in the form stylized as plain text
|
|
24
|
-
* @default undefined
|
|
25
|
-
*/
|
|
26
|
-
readonly: boolean | 'plaintext' | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* The max date value [Used only in type = 'date']
|
|
29
|
-
* @default '9999-12-31'
|
|
30
|
-
* @example 'yyyy-mm-dd'
|
|
31
|
-
*/
|
|
32
|
-
maxDate?: string;
|
|
33
|
-
/**
|
|
34
|
-
* The min date value [Used only in type = 'date']
|
|
35
|
-
* @example 'yyyy-mm-dd'
|
|
36
|
-
*/
|
|
37
|
-
minDate: string | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* The max value [Used only in type = 'number']
|
|
40
|
-
*/
|
|
41
|
-
max: number | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* The min value [Used only in type = 'number']
|
|
44
|
-
*/
|
|
45
|
-
min: number | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* The step value [Used only in type = 'number']
|
|
48
|
-
*/
|
|
49
|
-
step: number | 'any' | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* If is a currency number [Used only in type = 'number']
|
|
52
|
-
* @default false
|
|
53
|
-
*/
|
|
54
|
-
currency?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* If is a percentage number [Used only in type = 'number']
|
|
57
|
-
* @default false
|
|
58
|
-
*/
|
|
59
|
-
percentage?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* The currency or percentage symbol [Used only if percentage or currency]
|
|
62
|
-
* @example '$'
|
|
63
|
-
*/
|
|
64
|
-
symbol: string | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* To make the numeric field automatically resize according to the value contained in it. [Used only in type = 'number']
|
|
67
|
-
* @default false
|
|
68
|
-
*/
|
|
69
|
-
adaptive?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Input autocomplete attribute (Browser autocomplete)
|
|
72
|
-
* @default undefined
|
|
73
|
-
*/
|
|
74
|
-
autocomplete: string | undefined;
|
|
75
|
-
get isActiveLabel(): boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Check is readonly field
|
|
78
|
-
*/
|
|
79
|
-
protected get isReadonly(): boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Return the invalid message string from TranslateService
|
|
82
|
-
*/
|
|
83
|
-
get invalidMessage(): Observable<string>;
|
|
84
|
-
ngOnInit(): void;
|
|
85
|
-
/**
|
|
86
|
-
* Increment or decrease the input number value of step
|
|
87
|
-
* @param decrease true to decrease value
|
|
88
|
-
*/
|
|
89
|
-
protected incrementNumber(decrease?: boolean): void;
|
|
90
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItInputComponent, never>;
|
|
91
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItInputComponent, "it-input", never, { "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "description": { "alias": "description"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "step": { "alias": "step"; "required": false; }; "currency": { "alias": "currency"; "required": false; }; "percentage": { "alias": "percentage"; "required": false; }; "symbol": { "alias": "symbol"; "required": false; }; "adaptive": { "alias": "adaptive"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; }, {}, never, ["[prependText]", "[append]", "[appendText]", "[error]"], true, never>;
|
|
92
|
-
static ngAcceptInputType_currency: i1.BooleanInput;
|
|
93
|
-
static ngAcceptInputType_percentage: i1.BooleanInput;
|
|
94
|
-
static ngAcceptInputType_adaptive: i1.BooleanInput;
|
|
95
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, OnInit } from '@angular/core';
|
|
2
|
-
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../../../utils/coercion";
|
|
6
|
-
export declare class ItPasswordInputComponent extends ItAbstractFormComponent<string | null | undefined> implements OnInit, AfterViewInit {
|
|
7
|
-
/**
|
|
8
|
-
* The field is required
|
|
9
|
-
* @default true
|
|
10
|
-
*/
|
|
11
|
-
required: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* The password minimum length
|
|
14
|
-
* @default 10
|
|
15
|
-
*/
|
|
16
|
-
minLength: number;
|
|
17
|
-
/**
|
|
18
|
-
* The password must contain at least one number
|
|
19
|
-
* @default true
|
|
20
|
-
*/
|
|
21
|
-
useNumber: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* The password must contain at least one uppercase character
|
|
24
|
-
* @default true
|
|
25
|
-
*/
|
|
26
|
-
useCapitalCase: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* The password must contain at least one lowercase character
|
|
29
|
-
* @default true
|
|
30
|
-
*/
|
|
31
|
-
useSmallCase: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* The password must contain at least one special character
|
|
34
|
-
* @default true
|
|
35
|
-
*/
|
|
36
|
-
useSpecialCharacters: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* The input placeholder
|
|
39
|
-
*/
|
|
40
|
-
placeholder: string;
|
|
41
|
-
/**
|
|
42
|
-
* The input description
|
|
43
|
-
* - <b>true</b>: show the StrengthMeter description message
|
|
44
|
-
* - <b>string</b>: show custom description
|
|
45
|
-
* @default true for StrengthMeter mode else is undefined
|
|
46
|
-
*/
|
|
47
|
-
description: string | true | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* Enable to show the strength meter
|
|
50
|
-
* @default false
|
|
51
|
-
*/
|
|
52
|
-
showStrengthMeter?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Is the confirmation password field
|
|
55
|
-
* @default false
|
|
56
|
-
*/
|
|
57
|
-
confirmPasswordField?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Input autocomplete attribute (Browser autocomplete)
|
|
60
|
-
* @default undefined
|
|
61
|
-
*/
|
|
62
|
-
autocomplete: string | undefined;
|
|
63
|
-
private inputPasswordBs?;
|
|
64
|
-
private inputElement?;
|
|
65
|
-
ngOnInit(): void;
|
|
66
|
-
ngAfterViewInit(): void;
|
|
67
|
-
protected get isStrengthMeter(): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Return the invalid message string from TranslateService
|
|
70
|
-
*/
|
|
71
|
-
get invalidMessage(): Observable<string>;
|
|
72
|
-
/**
|
|
73
|
-
* Retrieve the default StrengthMeter description message from TranslateService
|
|
74
|
-
*/
|
|
75
|
-
protected get strengthMeterDescription(): Observable<string>;
|
|
76
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItPasswordInputComponent, never>;
|
|
77
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItPasswordInputComponent, "it-password-input", never, { "required": { "alias": "required"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "useNumber": { "alias": "useNumber"; "required": false; }; "useCapitalCase": { "alias": "useCapitalCase"; "required": false; }; "useSmallCase": { "alias": "useSmallCase"; "required": false; }; "useSpecialCharacters": { "alias": "useSpecialCharacters"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "description": { "alias": "description"; "required": false; }; "showStrengthMeter": { "alias": "showStrengthMeter"; "required": false; }; "confirmPasswordField": { "alias": "confirmPasswordField"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; }, {}, never, ["[error]"], true, never>;
|
|
78
|
-
static ngAcceptInputType_showStrengthMeter: i1.BooleanInput;
|
|
79
|
-
static ngAcceptInputType_confirmPasswordField: i1.BooleanInput;
|
|
80
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "../../../utils/coercion";
|
|
5
|
-
export declare class ItRadioButtonComponent extends ItAbstractFormComponent<string | number | null | undefined> implements OnInit {
|
|
6
|
-
/**
|
|
7
|
-
* The radio value
|
|
8
|
-
*/
|
|
9
|
-
value: string | number | undefined | null;
|
|
10
|
-
/**
|
|
11
|
-
* If show radio inline
|
|
12
|
-
* @default false
|
|
13
|
-
*/
|
|
14
|
-
inline?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* If is radio group
|
|
17
|
-
* @default false
|
|
18
|
-
*/
|
|
19
|
-
group?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* If is radio is checked
|
|
22
|
-
* @default false
|
|
23
|
-
*/
|
|
24
|
-
checked?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Set the radio name manually.
|
|
27
|
-
* For example when the radio button name is duplicated inside page
|
|
28
|
-
* @default by default the radio name is calculated from form field name
|
|
29
|
-
*/
|
|
30
|
-
forceRadioName?: string;
|
|
31
|
-
get name(): string;
|
|
32
|
-
ngOnInit(): void;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItRadioButtonComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItRadioButtonComponent, "it-radio-button", never, { "value": { "alias": "value"; "required": true; }; "inline": { "alias": "inline"; "required": false; }; "group": { "alias": "group"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "forceRadioName": { "alias": "forceRadioName"; "required": false; }; }, {}, never, ["[label]", "*", "[error]", "[error]"], true, never>;
|
|
35
|
-
static ngAcceptInputType_inline: i1.BooleanInput;
|
|
36
|
-
static ngAcceptInputType_group: i1.BooleanInput;
|
|
37
|
-
static ngAcceptInputType_checked: i1.BooleanInput;
|
|
38
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ItRangeComponent extends ItAbstractFormComponent<number | null | undefined> implements OnInit, OnChanges, OnDestroy {
|
|
5
|
-
/**
|
|
6
|
-
* The max value
|
|
7
|
-
*/
|
|
8
|
-
max?: number;
|
|
9
|
-
/**
|
|
10
|
-
* The min value
|
|
11
|
-
*/
|
|
12
|
-
min?: number;
|
|
13
|
-
/**
|
|
14
|
-
* The step value
|
|
15
|
-
*/
|
|
16
|
-
step?: number | 'any';
|
|
17
|
-
/**
|
|
18
|
-
* The color on left of thumb [Require rightColor]
|
|
19
|
-
* @example '#0d6efd' or 'var(--bs-primary)'
|
|
20
|
-
* @default undefined ('var(--bs-gray-300)')
|
|
21
|
-
*/
|
|
22
|
-
leftColor?: string;
|
|
23
|
-
/**
|
|
24
|
-
* The color on right of thumb [Require leftColor]
|
|
25
|
-
* @example '#0d6efd' or 'var(--bs-primary)'
|
|
26
|
-
* @default undefined ('var(--bs-gray-300)')
|
|
27
|
-
*/
|
|
28
|
-
rightColor?: string;
|
|
29
|
-
slider: ElementRef<HTMLInputElement>;
|
|
30
|
-
private subscription?;
|
|
31
|
-
ngOnInit(): void;
|
|
32
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
33
|
-
ngOnDestroy(): void;
|
|
34
|
-
writeValue(value: number | null | undefined): void;
|
|
35
|
-
/**
|
|
36
|
-
* Update the percentage of slider color
|
|
37
|
-
* @private
|
|
38
|
-
*/
|
|
39
|
-
private updateSliderColor;
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItRangeComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItRangeComponent, "it-range", never, { "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "step": { "alias": "step"; "required": false; }; "leftColor": { "alias": "leftColor"; "required": false; }; "rightColor": { "alias": "rightColor"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
42
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ItRatingComponent extends ItAbstractFormComponent<number | null | undefined> implements OnInit, OnChanges {
|
|
5
|
-
/**
|
|
6
|
-
* The rating value
|
|
7
|
-
*/
|
|
8
|
-
value: number | undefined;
|
|
9
|
-
/**
|
|
10
|
-
* Number of stars to show
|
|
11
|
-
* @default 5
|
|
12
|
-
*/
|
|
13
|
-
starCount: number;
|
|
14
|
-
protected stars: Array<number>;
|
|
15
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
/**
|
|
18
|
-
* Generate the array of stars
|
|
19
|
-
* @private
|
|
20
|
-
*/
|
|
21
|
-
private generateStars;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItRatingComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItRatingComponent, "it-rating", never, { "value": { "alias": "value"; "required": false; }; "starCount": { "alias": "starCount"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
4
|
-
import { SearchItem } from '../../../interfaces/form';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../../../utils/coercion";
|
|
7
|
-
export declare class ItSearchComponent extends ItAbstractFormComponent<string | null | undefined> implements OnInit {
|
|
8
|
-
/**
|
|
9
|
-
* Indicates the list of searchable elements on which to base the input search system
|
|
10
|
-
* If you need to retrieve items via API, can pass a function of Observable
|
|
11
|
-
* @default undefined
|
|
12
|
-
*/
|
|
13
|
-
searchData: Array<SearchItem> | ((search?: string | null) => Observable<Array<SearchItem>>);
|
|
14
|
-
/**
|
|
15
|
-
* To get a large version of Search
|
|
16
|
-
*/
|
|
17
|
-
big?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Time span [ms] has passed without another source emission, to delay data filtering.
|
|
20
|
-
* Useful when the user is typing multiple letters
|
|
21
|
-
* @default 300 [ms]
|
|
22
|
-
*/
|
|
23
|
-
debounceTime: number;
|
|
24
|
-
/**
|
|
25
|
-
* The input placeholder
|
|
26
|
-
*/
|
|
27
|
-
placeholder: string;
|
|
28
|
-
/**
|
|
29
|
-
* The input label even get labelWaria icon
|
|
30
|
-
*/
|
|
31
|
-
labelWaria: string | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Show the label
|
|
34
|
-
*/
|
|
35
|
-
forceShowLabel: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Fired when the Search Item has been selected
|
|
38
|
-
*/
|
|
39
|
-
searchSelectedEvent: EventEmitter<SearchItem>;
|
|
40
|
-
protected showAutocompletion: boolean;
|
|
41
|
-
/** Observable da cui vengono emessi i risultati dell'auto completamento */
|
|
42
|
-
protected searchResults$: Observable<{
|
|
43
|
-
searchedValue: string | undefined | null;
|
|
44
|
-
relatedEntries: Array<SearchItem>;
|
|
45
|
-
}>;
|
|
46
|
-
ngOnInit(): void;
|
|
47
|
-
/**
|
|
48
|
-
* Create the search list
|
|
49
|
-
*/
|
|
50
|
-
private getSearchResults$;
|
|
51
|
-
protected onEntryClick(entry: SearchItem, event: Event): void;
|
|
52
|
-
protected searchItemTrackByValueFn(index: number, item: SearchItem): string;
|
|
53
|
-
protected onKeyDown(): void;
|
|
54
|
-
protected get isActiveLabel(): boolean;
|
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItSearchComponent, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItSearchComponent, "it-search", never, { "searchData": { "alias": "searchData"; "required": true; }; "big": { "alias": "big"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "labelWaria": { "alias": "labelWaria"; "required": false; }; "forceShowLabel": { "alias": "forceShowLabel"; "required": false; }; }, { "searchSelectedEvent": "searchSelectedEvent"; }, never, ["[error]"], true, never>;
|
|
57
|
-
static ngAcceptInputType_big: i1.BooleanInput;
|
|
58
|
-
static ngAcceptInputType_forceShowLabel: i1.BooleanInput;
|
|
59
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
3
|
-
import { SelectControlGroup, SelectControlOption } from '../../../interfaces/form';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ItSelectComponent extends ItAbstractFormComponent implements OnInit {
|
|
6
|
-
/**
|
|
7
|
-
* The select options
|
|
8
|
-
*/
|
|
9
|
-
options: Array<SelectControlOption> | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* The select group options
|
|
12
|
-
*/
|
|
13
|
-
groups: Array<SelectControlGroup> | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* The select description
|
|
16
|
-
*/
|
|
17
|
-
description?: string;
|
|
18
|
-
/**
|
|
19
|
-
* If set, add a `disabled selected` option with value `null` and as text the value of the attribute
|
|
20
|
-
* @example 'Select an option'
|
|
21
|
-
*/
|
|
22
|
-
defaultOption?: string;
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
/**
|
|
25
|
-
* Check if the option is selected
|
|
26
|
-
* @param option the option
|
|
27
|
-
*/
|
|
28
|
-
optionIsSelected(option: SelectControlOption): boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Check if the option is disabled
|
|
31
|
-
* @param option the option
|
|
32
|
-
*/
|
|
33
|
-
optionIsDisabled(option: SelectControlOption): boolean;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItSelectComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItSelectComponent, "it-select", never, { "options": { "alias": "options"; "required": false; }; "groups": { "alias": "groups"; "required": false; }; "description": { "alias": "description"; "required": false; }; "defaultOption": { "alias": "defaultOption"; "required": false; }; }, {}, never, ["*", "[error]"], true, never>;
|
|
36
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ItTextareaComponent extends ItAbstractFormComponent<string | null | undefined> {
|
|
5
|
-
/**
|
|
6
|
-
* Textarea Rows
|
|
7
|
-
* @default 3
|
|
8
|
-
*/
|
|
9
|
-
rows?: number;
|
|
10
|
-
/**
|
|
11
|
-
* The textarea placeholder
|
|
12
|
-
*/
|
|
13
|
-
placeholder: string;
|
|
14
|
-
/**
|
|
15
|
-
* The input description
|
|
16
|
-
*/
|
|
17
|
-
description: string | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* To prevent modification of the contained value.
|
|
20
|
-
* - <b>plaintext</b>: Readonly field in the form stylized as plain text
|
|
21
|
-
* @default undefined
|
|
22
|
-
*/
|
|
23
|
-
readonly: boolean | 'plaintext' | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* Return the invalid message string from TranslateService
|
|
26
|
-
*/
|
|
27
|
-
get invalidMessage(): Observable<string>;
|
|
28
|
-
/**
|
|
29
|
-
* Check is readonly field
|
|
30
|
-
*/
|
|
31
|
-
protected get isReadonly(): boolean;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItTextareaComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItTextareaComponent, "it-textarea", never, { "rows": { "alias": "rows"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "description": { "alias": "description"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, {}, never, ["[error]"], true, never>;
|
|
34
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { TransferItem } from '../transfer.model';
|
|
2
|
-
import { SelectionState, State } from './transfer.state';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
initialStateFn: <T>() => {
|
|
5
|
-
initialItems: {
|
|
6
|
-
source: never[];
|
|
7
|
-
target: never[];
|
|
8
|
-
};
|
|
9
|
-
current: {
|
|
10
|
-
source: never[];
|
|
11
|
-
target: never[];
|
|
12
|
-
};
|
|
13
|
-
selections: {
|
|
14
|
-
source: Set<TransferItem<T>>;
|
|
15
|
-
target: Set<TransferItem<T>>;
|
|
16
|
-
};
|
|
17
|
-
operationsEnabled: {
|
|
18
|
-
transfer: boolean;
|
|
19
|
-
backtransfer: boolean;
|
|
20
|
-
reset: boolean;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
initFn: <T_1>(payload: SelectionState<T_1>) => (state: State<T_1>) => {
|
|
24
|
-
initialItems: {
|
|
25
|
-
source: TransferItem<T_1>[];
|
|
26
|
-
target: TransferItem<T_1>[];
|
|
27
|
-
};
|
|
28
|
-
current: {
|
|
29
|
-
source: TransferItem<T_1>[];
|
|
30
|
-
target: TransferItem<T_1>[];
|
|
31
|
-
};
|
|
32
|
-
selections: {
|
|
33
|
-
source: Set<TransferItem<T_1>>;
|
|
34
|
-
target: Set<TransferItem<T_1>>;
|
|
35
|
-
};
|
|
36
|
-
operationsEnabled: {
|
|
37
|
-
transfer: boolean;
|
|
38
|
-
backtransfer: boolean;
|
|
39
|
-
reset: boolean;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
transferFn: <T_2>() => (state: State<T_2>) => {
|
|
43
|
-
current: {
|
|
44
|
-
source: TransferItem<T_2>[];
|
|
45
|
-
target: TransferItem<T_2>[];
|
|
46
|
-
};
|
|
47
|
-
selections: {
|
|
48
|
-
source: Set<TransferItem<T_2>>;
|
|
49
|
-
target: Set<TransferItem<T_2>>;
|
|
50
|
-
};
|
|
51
|
-
operationsEnabled: {
|
|
52
|
-
transfer: false;
|
|
53
|
-
reset: true;
|
|
54
|
-
backtransfer: boolean;
|
|
55
|
-
};
|
|
56
|
-
initialItems: SelectionState<T_2>;
|
|
57
|
-
};
|
|
58
|
-
backtransferFn: <T_3>() => (state: State<T_3>) => {
|
|
59
|
-
current: {
|
|
60
|
-
target: TransferItem<T_3>[];
|
|
61
|
-
source: TransferItem<T_3>[];
|
|
62
|
-
};
|
|
63
|
-
selections: {
|
|
64
|
-
target: Set<TransferItem<T_3>>;
|
|
65
|
-
source: Set<TransferItem<T_3>>;
|
|
66
|
-
};
|
|
67
|
-
operationsEnabled: {
|
|
68
|
-
backtransfer: false;
|
|
69
|
-
reset: true;
|
|
70
|
-
transfer: boolean;
|
|
71
|
-
};
|
|
72
|
-
initialItems: SelectionState<T_3>;
|
|
73
|
-
};
|
|
74
|
-
resetFn: <T_4>() => (state: State<T_4>) => {
|
|
75
|
-
current: {
|
|
76
|
-
source: TransferItem<T_4>[];
|
|
77
|
-
target: TransferItem<T_4>[];
|
|
78
|
-
};
|
|
79
|
-
operationsEnabled: {
|
|
80
|
-
reset: false;
|
|
81
|
-
transfer: boolean;
|
|
82
|
-
backtransfer: boolean;
|
|
83
|
-
};
|
|
84
|
-
initialItems: SelectionState<T_4>;
|
|
85
|
-
selections: {
|
|
86
|
-
source: Set<TransferItem<T_4>>;
|
|
87
|
-
target: Set<TransferItem<T_4>>;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
selectAllSourceFn: <T_5>({ checked }: {
|
|
91
|
-
checked: boolean;
|
|
92
|
-
}) => (state: State<T_5>) => State<T_5>;
|
|
93
|
-
selectAllTargetFn: <T_6>({ checked }: {
|
|
94
|
-
checked: boolean;
|
|
95
|
-
}) => (state: State<T_6>) => State<T_6>;
|
|
96
|
-
selectionItemSourceFn: <T_7>({ item }: {
|
|
97
|
-
item: TransferItem<T_7>;
|
|
98
|
-
}) => (state: State<T_7>) => State<T_7>;
|
|
99
|
-
selectionItemTargetFn: <T_8>({ item }: {
|
|
100
|
-
item: TransferItem<T_8>;
|
|
101
|
-
}) => (state: State<T_8>) => State<T_8>;
|
|
102
|
-
};
|
|
103
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TransferItem } from '../transfer.model';
|
|
2
|
-
export interface SelectionState<T> {
|
|
3
|
-
source: Array<TransferItem<T>>;
|
|
4
|
-
target: Array<TransferItem<T>>;
|
|
5
|
-
}
|
|
6
|
-
export interface State<T> {
|
|
7
|
-
initialItems: SelectionState<T>;
|
|
8
|
-
current: SelectionState<T>;
|
|
9
|
-
selections: {
|
|
10
|
-
source: Set<TransferItem<T>>;
|
|
11
|
-
target: Set<TransferItem<T>>;
|
|
12
|
-
};
|
|
13
|
-
operationsEnabled: {
|
|
14
|
-
transfer: boolean;
|
|
15
|
-
backtransfer: boolean;
|
|
16
|
-
reset: boolean;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { SourceType, TransferItem } from '../transfer.model';
|
|
2
|
-
import { SelectionState } from './transfer.state';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TransferStore<T> {
|
|
5
|
-
private readonly _state;
|
|
6
|
-
private readonly sourceItems;
|
|
7
|
-
private readonly targetItems;
|
|
8
|
-
readonly valueChanged: import("rxjs").Observable<TransferItem<T>[]>;
|
|
9
|
-
readonly selectItems: (sourceType: SourceType) => import("rxjs").Observable<TransferItem<T>[]>;
|
|
10
|
-
readonly selectSelectedItems: (sourceType: SourceType) => import("rxjs").Observable<Set<TransferItem<T>>>;
|
|
11
|
-
readonly transferEnabled: import("rxjs").Observable<boolean>;
|
|
12
|
-
readonly backtransferEnabled: import("rxjs").Observable<boolean>;
|
|
13
|
-
readonly resetEnabled: import("rxjs").Observable<boolean>;
|
|
14
|
-
init({ source, target }: SelectionState<T>): void;
|
|
15
|
-
transfer(): void;
|
|
16
|
-
backtransfer(): void;
|
|
17
|
-
reset(): void;
|
|
18
|
-
checkboxSelection(item: TransferItem<T>, sourceType: SourceType): void;
|
|
19
|
-
selectAllSelection(checked: boolean, sourceType: SourceType): void;
|
|
20
|
-
private updateState;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TransferStore<any>, never>;
|
|
22
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TransferStore<any>>;
|
|
23
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { ItAbstractComponent } from '../../../../abstracts/abstract.component';
|
|
3
|
-
import { TransferStore } from '../store/transfer.store';
|
|
4
|
-
import { SourceType, TransferItem } from '../transfer.model';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
interface SelectableTransferItem<T> extends TransferItem<T> {
|
|
7
|
-
selected: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare class ItTransferListComponent<T> extends ItAbstractComponent {
|
|
10
|
-
private readonly store;
|
|
11
|
-
/**
|
|
12
|
-
* Widget title
|
|
13
|
-
*/
|
|
14
|
-
readonly title: string | null;
|
|
15
|
-
readonly sourceType: SourceType;
|
|
16
|
-
private readonly items;
|
|
17
|
-
private readonly selected;
|
|
18
|
-
readonly numberOfItems$: import("rxjs").Observable<{
|
|
19
|
-
length: number;
|
|
20
|
-
} | {
|
|
21
|
-
length: number;
|
|
22
|
-
}>;
|
|
23
|
-
readonly selectAllDisabled: import("rxjs").Observable<boolean>;
|
|
24
|
-
/**
|
|
25
|
-
* Items of the list
|
|
26
|
-
* @default []
|
|
27
|
-
*/
|
|
28
|
-
readonly items$: import("rxjs").Observable<SelectableTransferItem<T>[]>;
|
|
29
|
-
selectAllCheckboxRef: ElementRef<HTMLInputElement>;
|
|
30
|
-
readonly instanceId: string;
|
|
31
|
-
constructor(store: TransferStore<T>);
|
|
32
|
-
/**
|
|
33
|
-
* Checkbox selection click handler
|
|
34
|
-
*/
|
|
35
|
-
checkboxSelectionHandler(item: TransferItem<T>): void;
|
|
36
|
-
/**
|
|
37
|
-
* Checkbox select all selection handler
|
|
38
|
-
*/
|
|
39
|
-
checkboxSelectAllHandler(event: Event): void;
|
|
40
|
-
/**
|
|
41
|
-
* Items update subscription
|
|
42
|
-
*/
|
|
43
|
-
private onItemsUpdate;
|
|
44
|
-
private getInstanceId;
|
|
45
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItTransferListComponent<any>, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItTransferListComponent<any>, "it-transfer-list", never, {}, {}, never, never, true, never>;
|
|
47
|
-
}
|
|
48
|
-
export {};
|