design-angular-kit 1.0.0-9 → 1.0.0-prerelease.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 +212 -64
- package/assets/i18n/en.json +81 -12
- package/assets/i18n/it.json +80 -11
- package/esm2022/lib/abstracts/abstract-form.component.mjs +187 -0
- package/esm2022/lib/abstracts/abstract.component.mjs +45 -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 +38 -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 +86 -0
- package/esm2022/lib/components/core/callout/callout.component.mjs +57 -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 +104 -0
- package/esm2022/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +24 -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 +144 -0
- package/esm2022/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +61 -0
- package/esm2022/lib/components/core/dropdown/dropdown.module.mjs +18 -0
- package/esm2022/lib/components/core/forward/forward.directive.mjs +53 -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 +51 -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 +20 -0
- package/esm2022/lib/components/core/steppers/steppers.module.mjs +18 -0
- package/esm2022/lib/components/core/tab/tab-container/tab-container.component.mjs +63 -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/tooltip/tooltip.directive.mjs +143 -0
- package/esm2022/lib/components/form/autocomplete/autocomplete.component.mjs +106 -0
- package/esm2022/lib/components/form/checkbox/checkbox.component.mjs +48 -0
- package/esm2022/lib/components/form/form.module.mjs +59 -0
- package/esm2022/lib/components/form/input/input.component.mjs +187 -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/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 +58 -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 +87 -0
- package/esm2022/lib/components/navigation/megamenu/megamenu.component.mjs +27 -0
- package/esm2022/lib/components/navigation/navbar/navbar/navbar.component.mjs +40 -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/utils/error-page/error-page.component.mjs +74 -0
- package/esm2022/lib/components/utils/icon/icon.component.mjs +58 -0
- package/esm2022/lib/components/utils/language-switcher/language-switcher.component.mjs +50 -0
- package/esm2022/lib/design-angular-kit.module.mjs +213 -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 +165 -0
- package/esm2022/lib/interfaces/sortable-table.mjs +6 -0
- package/esm2022/lib/pipes/date-ago.pipe.mjs +56 -0
- package/esm2022/lib/pipes/duration.pipe.mjs +110 -0
- package/esm2022/lib/pipes/mark-matching-text.pipe.mjs +48 -0
- package/esm2022/lib/provide-design-angular-kit.mjs +61 -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 +160 -0
- package/esm2022/lib/utils/file-utils.mjs +73 -0
- package/esm2022/lib/utils/regex.mjs +31 -0
- package/esm2022/lib/validators/it-validators.mjs +153 -0
- package/esm2022/public_api.mjs +99 -0
- package/fesm2022/design-angular-kit.mjs +5556 -0
- package/fesm2022/design-angular-kit.mjs.map +1 -0
- package/lib/abstracts/{abstract-form-component.d.ts → abstract-form.component.d.ts} +12 -14
- package/lib/abstracts/abstract.component.d.ts +18 -8
- package/lib/components/core/accordion/accordion.component.d.ts +11 -5
- package/lib/components/core/alert/alert.component.d.ts +15 -10
- 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 +13 -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 +14 -7
- package/lib/components/core/button/button.directive.d.ts +25 -15
- package/lib/components/core/callout/callout.component.d.ts +18 -20
- package/lib/components/core/card/card.component.d.ts +46 -18
- package/lib/components/core/carousel/carousel/carousel.component.d.ts +34 -15
- package/lib/components/core/carousel/carousel-item/carousel-item.component.d.ts +8 -3
- package/lib/components/core/carousel/carousel.module.d.ts +8 -0
- package/lib/components/core/chip/chip.component.d.ts +29 -15
- package/lib/components/core/collapse/collapse.component.d.ts +22 -15
- package/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.d.ts +3 -3
- package/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.d.ts +3 -3
- package/lib/components/core/dimmer/dimmer.component.d.ts +6 -6
- package/lib/components/core/dimmer/dimmer.module.d.ts +9 -0
- package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +30 -17
- package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +15 -12
- package/lib/components/core/dropdown/dropdown.module.d.ts +8 -0
- package/lib/components/core/forward/forward.directive.d.ts +3 -3
- package/lib/components/core/link/link.component.d.ts +14 -10
- package/lib/components/core/list/list/list.component.d.ts +20 -6
- package/lib/components/core/list/list-item/list-item.component.d.ts +23 -9
- package/lib/components/core/list/list.module.d.ts +8 -0
- package/lib/components/core/modal/modal.component.d.ts +89 -13
- package/lib/components/core/notifications/notifications.component.d.ts +9 -8
- package/lib/components/core/pagination/pagination.component.d.ts +71 -10
- package/lib/components/core/popover/popover.directive.d.ts +15 -14
- package/lib/components/core/progress-bar/progress-bar.component.d.ts +11 -8
- package/lib/components/core/progress-button/progress-button.component.d.ts +5 -6
- package/lib/components/core/spinner/spinner.component.d.ts +13 -10
- package/lib/components/core/steppers/steppers-container/steppers-container.component.d.ts +55 -27
- package/lib/components/core/steppers/steppers-item/steppers-item.component.d.ts +5 -4
- package/lib/components/core/steppers/steppers.module.d.ts +8 -0
- package/lib/components/core/tab/tab-container/tab-container.component.d.ts +15 -12
- package/lib/components/core/tab/tab-item/tab-item.component.d.ts +14 -10
- 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 +26 -20
- package/lib/components/core/table/table.module.d.ts +9 -0
- package/lib/components/core/tooltip/tooltip.directive.d.ts +12 -11
- package/lib/components/form/autocomplete/autocomplete.component.d.ts +55 -0
- package/lib/components/form/checkbox/checkbox.component.d.ts +23 -12
- package/lib/components/form/form.module.d.ts +17 -0
- package/lib/components/form/input/input.component.d.ts +42 -43
- package/lib/components/form/password-input/password-input.component.d.ts +35 -10
- package/lib/components/form/radio-button/radio-button.component.d.ts +20 -11
- 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 +12 -6
- package/lib/components/form/textarea/textarea.component.d.ts +15 -5
- package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +18 -12
- package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +14 -11
- package/lib/components/navigation/back-button/back-button.component.d.ts +8 -8
- package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +15 -16
- package/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +12 -14
- package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +9 -8
- package/lib/components/navigation/breadcrumbs/breadcrumbs.module.d.ts +8 -0
- package/lib/components/navigation/header/header.component.d.ts +28 -25
- package/lib/components/navigation/megamenu/megamenu.component.d.ts +22 -0
- package/lib/components/navigation/navbar/navbar/navbar.component.d.ts +16 -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/utils/error-page/error-page.component.d.ts +44 -0
- package/lib/components/utils/icon/icon.component.d.ts +25 -17
- package/lib/components/utils/language-switcher/language-switcher.component.d.ts +9 -5
- package/lib/design-angular-kit.module.d.ts +44 -7
- package/lib/enums/colors.enums.d.ts +10 -0
- package/lib/enums/sizes.enum.d.ts +7 -0
- package/lib/interfaces/core.d.ts +16 -15
- package/lib/interfaces/design-angular-kit-config.d.ts +30 -0
- package/lib/interfaces/form.d.ts +9 -9
- package/lib/interfaces/icon.d.ts +4 -3
- package/lib/interfaces/sortable-table.d.ts +33 -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 +15 -7
- package/lib/provide-design-angular-kit.d.ts +7 -0
- package/lib/services/{notifications/notifications.service.d.ts → notification/notification.service.d.ts} +3 -3
- package/lib/utils/coercion.d.ts +14 -0
- package/lib/utils/date-utils.d.ts +78 -0
- package/lib/utils/file-utils.d.ts +1 -1
- package/lib/utils/regex.d.ts +5 -0
- package/lib/validators/it-validators.d.ts +9 -2
- package/package.json +17 -22
- package/public_api.d.ts +31 -4
- package/esm2020/lib/abstracts/abstract-form-component.mjs +0 -174
- package/esm2020/lib/abstracts/abstract.component.mjs +0 -27
- package/esm2020/lib/components/core/accordion/accordion.component.mjs +0 -31
- package/esm2020/lib/components/core/alert/alert.component.mjs +0 -69
- package/esm2020/lib/components/core/badge/badge.directive.mjs +0 -34
- package/esm2020/lib/components/core/button/button.directive.mjs +0 -80
- package/esm2020/lib/components/core/callout/callout.component.mjs +0 -84
- package/esm2020/lib/components/core/card/card.component.mjs +0 -58
- package/esm2020/lib/components/core/carousel/carousel/carousel.component.mjs +0 -66
- package/esm2020/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +0 -14
- package/esm2020/lib/components/core/chip/chip.component.mjs +0 -89
- package/esm2020/lib/components/core/collapse/collapse.component.mjs +0 -101
- package/esm2020/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +0 -24
- package/esm2020/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +0 -11
- package/esm2020/lib/components/core/dimmer/dimmer.component.mjs +0 -59
- package/esm2020/lib/components/core/dropdown/dropdown/dropdown.component.mjs +0 -130
- package/esm2020/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +0 -68
- package/esm2020/lib/components/core/forward/forward.directive.mjs +0 -51
- package/esm2020/lib/components/core/link/link.component.mjs +0 -40
- package/esm2020/lib/components/core/list/list/list.component.mjs +0 -13
- package/esm2020/lib/components/core/list/list-item/list-item.component.mjs +0 -36
- package/esm2020/lib/components/core/modal/modal.component.mjs +0 -98
- package/esm2020/lib/components/core/notifications/notifications.component.mjs +0 -110
- package/esm2020/lib/components/core/pagination/pagination.component.mjs +0 -51
- package/esm2020/lib/components/core/popover/popover.directive.mjs +0 -179
- package/esm2020/lib/components/core/progress-bar/progress-bar.component.mjs +0 -34
- package/esm2020/lib/components/core/progress-button/progress-button.component.mjs +0 -27
- package/esm2020/lib/components/core/spinner/spinner.component.mjs +0 -35
- package/esm2020/lib/components/core/steppers/steppers-container/steppers-container.component.mjs +0 -119
- package/esm2020/lib/components/core/steppers/steppers-item/steppers-item.component.mjs +0 -18
- package/esm2020/lib/components/core/tab/tab-container/tab-container.component.mjs +0 -59
- package/esm2020/lib/components/core/tab/tab-item/tab-item.component.mjs +0 -36
- package/esm2020/lib/components/core/table/table.component.mjs +0 -57
- package/esm2020/lib/components/core/tooltip/tooltip.directive.mjs +0 -143
- package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +0 -40
- package/esm2020/lib/components/form/input/input.component.mjs +0 -222
- package/esm2020/lib/components/form/password-input/password-input.component.mjs +0 -112
- package/esm2020/lib/components/form/radio-button/radio-button.component.mjs +0 -53
- package/esm2020/lib/components/form/select/select.component.mjs +0 -62
- package/esm2020/lib/components/form/textarea/textarea.component.mjs +0 -46
- package/esm2020/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +0 -137
- package/esm2020/lib/components/form/upload-file-list/upload-file-list.component.mjs +0 -104
- package/esm2020/lib/components/navigation/back-button/back-button.component.mjs +0 -69
- package/esm2020/lib/components/navigation/back-to-top/back-to-top.component.mjs +0 -74
- package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +0 -45
- package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +0 -23
- package/esm2020/lib/components/navigation/header/header.component.mjs +0 -63
- package/esm2020/lib/components/utils/icon/icon.component.mjs +0 -54
- package/esm2020/lib/components/utils/language-switcher/language-switcher.component.mjs +0 -39
- package/esm2020/lib/components/utils/not-found-page/not-found-page.component.mjs +0 -13
- package/esm2020/lib/design-angular-kit.module.mjs +0 -56
- package/esm2020/lib/interfaces/core.mjs +0 -16
- package/esm2020/lib/interfaces/form.mjs +0 -2
- package/esm2020/lib/interfaces/icon.mjs +0 -2
- package/esm2020/lib/modules/components.module.mjs +0 -257
- package/esm2020/lib/pipes/mark-matching-text.pipe.mjs +0 -36
- package/esm2020/lib/services/notifications/notifications.service.mjs +0 -120
- package/esm2020/lib/utils/boolean-input.mjs +0 -15
- package/esm2020/lib/utils/file-utils.mjs +0 -73
- package/esm2020/lib/utils/regex.mjs +0 -26
- package/esm2020/lib/validators/it-validators.mjs +0 -134
- package/esm2020/public_api.mjs +0 -70
- package/fesm2015/design-angular-kit.mjs +0 -3850
- package/fesm2015/design-angular-kit.mjs.map +0 -1
- package/fesm2020/design-angular-kit.mjs +0 -3797
- package/fesm2020/design-angular-kit.mjs.map +0 -1
- package/lib/components/utils/not-found-page/not-found-page.component.d.ts +0 -5
- package/lib/modules/components.module.d.ts +0 -61
- package/lib/utils/boolean-input.d.ts +0 -11
- /package/{esm2020 → esm2022}/design-angular-kit.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interfaces/utils.mjs +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { BooleanInput } from '../../../utils/boolean-input';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
3
|
+
import { InputControlType } from '../../../interfaces/form';
|
|
5
4
|
import { Observable } from 'rxjs';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
|
-
|
|
6
|
+
import * as i1 from "../../../utils/coercion";
|
|
7
|
+
export declare class ItInputComponent extends ItAbstractFormComponent<string | number | null | undefined> implements OnInit {
|
|
8
8
|
/**
|
|
9
9
|
* The input type
|
|
10
10
|
* @default text
|
|
@@ -17,80 +17,79 @@ export declare class InputComponent extends AbstractFormComponent<string | numbe
|
|
|
17
17
|
/**
|
|
18
18
|
* The input description
|
|
19
19
|
*/
|
|
20
|
-
description
|
|
20
|
+
description: string | undefined;
|
|
21
21
|
/**
|
|
22
22
|
* To prevent modification of the contained value.
|
|
23
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'
|
|
24
31
|
*/
|
|
25
|
-
|
|
32
|
+
maxDate?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The min date value [Used only in type = 'date']
|
|
35
|
+
* @example 'yyyy-mm-dd'
|
|
36
|
+
*/
|
|
37
|
+
minDate: string | undefined;
|
|
26
38
|
/**
|
|
27
39
|
* The max value [Used only in type = 'number']
|
|
28
40
|
*/
|
|
29
|
-
max
|
|
41
|
+
max: number | undefined;
|
|
30
42
|
/**
|
|
31
43
|
* The min value [Used only in type = 'number']
|
|
32
44
|
*/
|
|
33
|
-
min
|
|
45
|
+
min: number | undefined;
|
|
34
46
|
/**
|
|
35
47
|
* The step value [Used only in type = 'number']
|
|
36
48
|
*/
|
|
37
|
-
step
|
|
49
|
+
step: number | 'any' | undefined;
|
|
38
50
|
/**
|
|
39
51
|
* If is a currency number [Used only in type = 'number']
|
|
52
|
+
* @default false
|
|
40
53
|
*/
|
|
41
|
-
currency?:
|
|
54
|
+
currency?: boolean;
|
|
42
55
|
/**
|
|
43
56
|
* If is a percentage number [Used only in type = 'number']
|
|
57
|
+
* @default false
|
|
44
58
|
*/
|
|
45
|
-
percentage?:
|
|
59
|
+
percentage?: boolean;
|
|
46
60
|
/**
|
|
47
|
-
*
|
|
61
|
+
* The currency or percentage symbol [Used only if percentage or currency]
|
|
62
|
+
* @example '$'
|
|
48
63
|
*/
|
|
49
|
-
|
|
64
|
+
symbol: string | undefined;
|
|
50
65
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* @default undefined
|
|
54
|
-
*/
|
|
55
|
-
autocompleteData?: Array<AutocompleteItem> | ((search?: string) => Observable<Array<AutocompleteItem>>);
|
|
56
|
-
/**
|
|
57
|
-
* Time span [ms] has passed without another source emission, to delay data filtering.
|
|
58
|
-
* Useful when the user is typing multiple letters
|
|
59
|
-
* @default 300 [ms]
|
|
66
|
+
* To make the numeric field automatically resize according to the value contained in it. [Used only in type = 'number']
|
|
67
|
+
* @default false
|
|
60
68
|
*/
|
|
61
|
-
|
|
69
|
+
adaptive?: boolean;
|
|
62
70
|
/**
|
|
63
|
-
*
|
|
71
|
+
* Input autocomplete attribute (Browser autocomplete)
|
|
72
|
+
* @default undefined
|
|
64
73
|
*/
|
|
65
|
-
|
|
66
|
-
showAutocompletion: boolean;
|
|
74
|
+
autocomplete: string | undefined;
|
|
67
75
|
get isActiveLabel(): boolean;
|
|
68
76
|
/**
|
|
69
77
|
* Check is readonly field
|
|
70
78
|
*/
|
|
71
|
-
get isReadonly(): boolean;
|
|
79
|
+
protected get isReadonly(): boolean;
|
|
72
80
|
/**
|
|
73
81
|
* Return the invalid message string from TranslateService
|
|
74
82
|
*/
|
|
75
83
|
get invalidMessage(): Observable<string>;
|
|
76
|
-
/** Observable da cui vengono emessi i risultati dell'auto completamento */
|
|
77
|
-
autocompleteResults$: Observable<{
|
|
78
|
-
searchedValue: string;
|
|
79
|
-
relatedEntries: Array<AutocompleteItem>;
|
|
80
|
-
}>;
|
|
81
84
|
ngOnInit(): void;
|
|
82
85
|
/**
|
|
83
86
|
* Increment or decrease the input number value of step
|
|
84
87
|
* @param decrease true to decrease value
|
|
85
88
|
*/
|
|
86
|
-
incrementNumber(decrease?: boolean): void;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
autocompleteItemTrackByValueFn(index: number, item: AutocompleteItem): string;
|
|
93
|
-
onKeyDown(): void;
|
|
94
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
95
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "it-input[id]", never, { "type": "type"; "placeholder": "placeholder"; "description": "description"; "readonly": "readonly"; "max": "max"; "min": "min"; "step": "step"; "currency": "currency"; "percentage": "percentage"; "adaptive": "adaptive"; "autocompleteData": "autocompleteData"; "autocompleteDebounceTime": "autocompleteDebounceTime"; }, { "onAutocompleteSelected": "onAutocompleteSelected"; }, never, ["[prepend]", "[prependText]", "[append]", "[appendText]", "[error]"], false, never>;
|
|
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;
|
|
96
95
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AfterViewInit, OnInit } from '@angular/core';
|
|
2
|
+
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { BooleanInput } from '../../../utils/boolean-input';
|
|
4
|
-
import { InputPassword } from 'bootstrap-italia';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
|
|
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;
|
|
7
12
|
/**
|
|
8
13
|
* The password minimum length
|
|
9
14
|
* @default 10
|
|
@@ -35,21 +40,41 @@ export declare class PasswordInputComponent extends AbstractFormComponent<string
|
|
|
35
40
|
placeholder: string;
|
|
36
41
|
/**
|
|
37
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
|
|
38
46
|
*/
|
|
39
|
-
description
|
|
47
|
+
description: string | true | undefined;
|
|
40
48
|
/**
|
|
41
49
|
* Enable to show the strength meter
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
showStrengthMeter?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Is the confirmation password field
|
|
55
|
+
* @default false
|
|
42
56
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
57
|
+
confirmPasswordField?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Input autocomplete attribute (Browser autocomplete)
|
|
60
|
+
* @default undefined
|
|
61
|
+
*/
|
|
62
|
+
autocomplete: string | undefined;
|
|
63
|
+
private inputPasswordBs?;
|
|
45
64
|
private inputElement?;
|
|
46
65
|
ngOnInit(): void;
|
|
47
66
|
ngAfterViewInit(): void;
|
|
48
|
-
get isStrengthMeter(): boolean;
|
|
67
|
+
protected get isStrengthMeter(): boolean;
|
|
49
68
|
/**
|
|
50
69
|
* Return the invalid message string from TranslateService
|
|
51
70
|
*/
|
|
52
71
|
get invalidMessage(): Observable<string>;
|
|
53
|
-
|
|
54
|
-
|
|
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;
|
|
55
80
|
}
|
|
@@ -1,29 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
|
|
4
|
+
import * as i1 from "../../../utils/coercion";
|
|
5
|
+
export declare class ItRadioButtonComponent extends ItAbstractFormComponent<string | number | null | undefined> implements OnInit {
|
|
5
6
|
/**
|
|
6
7
|
* The radio value
|
|
7
8
|
*/
|
|
8
|
-
value
|
|
9
|
+
value: string | number | undefined | null;
|
|
9
10
|
/**
|
|
10
11
|
* If show radio inline
|
|
11
12
|
* @default false
|
|
12
13
|
*/
|
|
13
|
-
inline
|
|
14
|
+
inline?: boolean;
|
|
14
15
|
/**
|
|
15
16
|
* If is radio group
|
|
16
17
|
* @default false
|
|
17
18
|
*/
|
|
18
|
-
group
|
|
19
|
+
group?: boolean;
|
|
19
20
|
/**
|
|
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
|
|
21
29
|
*/
|
|
22
|
-
|
|
23
|
-
get isInline(): boolean;
|
|
24
|
-
get isGroup(): boolean;
|
|
30
|
+
forceRadioName?: string;
|
|
25
31
|
get name(): string;
|
|
26
32
|
ngOnInit(): void;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
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;
|
|
29
38
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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,19 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
2
3
|
import { SelectControlGroup, SelectControlOption } from '../../../interfaces/form';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
5
|
+
export declare class ItSelectComponent extends ItAbstractFormComponent implements OnInit {
|
|
5
6
|
/**
|
|
6
7
|
* The select options
|
|
7
8
|
*/
|
|
8
|
-
options: Array<SelectControlOption
|
|
9
|
+
options: Array<SelectControlOption> | undefined;
|
|
9
10
|
/**
|
|
10
11
|
* The select group options
|
|
11
12
|
*/
|
|
12
|
-
groups
|
|
13
|
+
groups: Array<SelectControlGroup> | undefined;
|
|
13
14
|
/**
|
|
14
15
|
* The select description
|
|
15
16
|
*/
|
|
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;
|
|
17
23
|
ngOnInit(): void;
|
|
18
24
|
/**
|
|
19
25
|
* Check if the option is selected
|
|
@@ -25,6 +31,6 @@ export declare class SelectComponent extends AbstractFormComponent {
|
|
|
25
31
|
* @param option the option
|
|
26
32
|
*/
|
|
27
33
|
optionIsDisabled(option: SelectControlOption): boolean;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
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>;
|
|
30
36
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class ItTextareaComponent extends ItAbstractFormComponent<string | null | undefined> {
|
|
5
5
|
/**
|
|
6
6
|
* Textarea Rows
|
|
7
7
|
* @default 3
|
|
@@ -14,11 +14,21 @@ export declare class TextareaComponent extends AbstractFormComponent<string> {
|
|
|
14
14
|
/**
|
|
15
15
|
* The input description
|
|
16
16
|
*/
|
|
17
|
-
description
|
|
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;
|
|
18
24
|
/**
|
|
19
25
|
* Return the invalid message string from TranslateService
|
|
20
26
|
*/
|
|
21
27
|
get invalidMessage(): Observable<string>;
|
|
22
|
-
|
|
23
|
-
|
|
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>;
|
|
24
34
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import {
|
|
1
|
+
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ItAbstractComponent } from '../../../abstracts/abstract.component';
|
|
3
3
|
import { ProgressDonut } from 'bootstrap-italia';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ItUploadDragDropComponent extends ItAbstractComponent implements AfterViewInit {
|
|
6
6
|
/**
|
|
7
7
|
* The accepted file type to upload <br>
|
|
8
8
|
* Possible values: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types">MIME Types</a> separated by comma
|
|
@@ -14,14 +14,20 @@ export declare class UploadDragDropComponent extends AbstractComponent {
|
|
|
14
14
|
* Fired when file start to upload
|
|
15
15
|
*/
|
|
16
16
|
fileStartUpload: EventEmitter<File>;
|
|
17
|
-
isDragover: boolean;
|
|
18
|
-
isLoading: boolean;
|
|
19
|
-
isSuccess: boolean;
|
|
20
|
-
donut?: ProgressDonut;
|
|
17
|
+
protected isDragover: boolean;
|
|
18
|
+
protected isLoading: boolean;
|
|
19
|
+
protected isSuccess: boolean;
|
|
20
|
+
protected donut?: ProgressDonut;
|
|
21
21
|
private donutElement?;
|
|
22
|
-
filename?: string;
|
|
23
|
-
extension?: string;
|
|
24
|
-
fileSize?: string;
|
|
22
|
+
protected filename?: string;
|
|
23
|
+
protected extension?: string;
|
|
24
|
+
protected fileSize?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The bootstrap-italia asset folder path
|
|
27
|
+
* @default ./bootstrap-italia
|
|
28
|
+
*/
|
|
29
|
+
protected assetBasePath: string;
|
|
30
|
+
constructor();
|
|
25
31
|
ngAfterViewInit(): void;
|
|
26
32
|
onDragOver(evt: DragEvent): void;
|
|
27
33
|
onDragLeave(evt: DragEvent): void;
|
|
@@ -49,6 +55,6 @@ export declare class UploadDragDropComponent extends AbstractComponent {
|
|
|
49
55
|
* Reset file uploader
|
|
50
56
|
*/
|
|
51
57
|
reset(): void;
|
|
52
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
53
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItUploadDragDropComponent, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItUploadDragDropComponent, "it-upload-drag-drop", ["itUploadDragDrop"], { "accept": { "alias": "accept"; "required": false; }; }, { "fileStartUpload": "fileStartUpload"; }, never, never, true, never>;
|
|
54
60
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { BooleanInput } from '../../../utils/boolean-input';
|
|
2
|
+
import { ItAbstractComponent } from '../../../abstracts/abstract.component';
|
|
4
3
|
import { UploadFileListItem } from '../../../interfaces/form';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
|
|
5
|
+
import * as i1 from "../../../utils/coercion";
|
|
6
|
+
export declare class ItUploadFileListComponent extends ItAbstractComponent implements OnInit, OnChanges {
|
|
7
7
|
/**
|
|
8
8
|
* The list of files to show in list
|
|
9
9
|
*/
|
|
@@ -17,16 +17,19 @@ export declare class UploadFileListComponent extends AbstractComponent implement
|
|
|
17
17
|
accept: string;
|
|
18
18
|
/**
|
|
19
19
|
* If upload multiple files
|
|
20
|
+
* @default true
|
|
20
21
|
*/
|
|
21
|
-
multiple:
|
|
22
|
+
multiple: boolean;
|
|
22
23
|
/**
|
|
23
24
|
* If is file list image
|
|
25
|
+
* @default false
|
|
24
26
|
*/
|
|
25
|
-
images?:
|
|
27
|
+
images?: boolean;
|
|
26
28
|
/**
|
|
27
29
|
* Hide the load button
|
|
30
|
+
* @default false
|
|
28
31
|
*/
|
|
29
|
-
hideLoadButton?:
|
|
32
|
+
hideLoadButton?: boolean;
|
|
30
33
|
/**
|
|
31
34
|
* Fired when upload new files
|
|
32
35
|
*/
|
|
@@ -41,9 +44,6 @@ export declare class UploadFileListComponent extends AbstractComponent implement
|
|
|
41
44
|
previewImages: Map<number, string>;
|
|
42
45
|
ngOnInit(): void;
|
|
43
46
|
ngOnChanges(changes: SimpleChanges): void;
|
|
44
|
-
get isMultipleInput(): boolean;
|
|
45
|
-
get isImageList(): boolean;
|
|
46
|
-
get isHideLoadButton(): boolean;
|
|
47
47
|
/**
|
|
48
48
|
* On load file from input
|
|
49
49
|
* @param event
|
|
@@ -54,6 +54,9 @@ export declare class UploadFileListComponent extends AbstractComponent implement
|
|
|
54
54
|
* @param file
|
|
55
55
|
*/
|
|
56
56
|
getFileSize(file: File): string;
|
|
57
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItUploadFileListComponent, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItUploadFileListComponent, "it-upload-file-list", never, { "fileList": { "alias": "fileList"; "required": true; }; "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "images": { "alias": "images"; "required": false; }; "hideLoadButton": { "alias": "hideLoadButton"; "required": false; }; }, { "uploadFiles": "uploadFiles"; "deleteItem": "deleteItem"; }, never, never, true, never>;
|
|
59
|
+
static ngAcceptInputType_multiple: i1.BooleanInput;
|
|
60
|
+
static ngAcceptInputType_images: i1.BooleanInput;
|
|
61
|
+
static ngAcceptInputType_hideLoadButton: i1.BooleanInput;
|
|
59
62
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Location } from '@angular/common';
|
|
2
|
-
import { BooleanInput } from '../../../utils/boolean-input';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
|
|
3
|
+
import * as i1 from "../../../utils/coercion";
|
|
4
|
+
export declare class ItBackButtonComponent {
|
|
5
5
|
readonly _location: Location;
|
|
6
6
|
/**
|
|
7
7
|
* Back button style
|
|
@@ -21,12 +21,12 @@ export declare class BackButtonComponent {
|
|
|
21
21
|
* Show/Hide icon
|
|
22
22
|
* @default true
|
|
23
23
|
*/
|
|
24
|
-
showIcon:
|
|
24
|
+
showIcon: boolean;
|
|
25
25
|
/**
|
|
26
26
|
* Show/Hide text
|
|
27
27
|
* @default true
|
|
28
28
|
*/
|
|
29
|
-
showText:
|
|
29
|
+
showText: boolean;
|
|
30
30
|
/**
|
|
31
31
|
* Custom back logic <br/>
|
|
32
32
|
*
|
|
@@ -35,13 +35,13 @@ export declare class BackButtonComponent {
|
|
|
35
35
|
* (errorCallback is your function, pass backCbFn to the component)
|
|
36
36
|
*/
|
|
37
37
|
backFn?: (location: Location) => void;
|
|
38
|
-
get isShowIcon(): boolean;
|
|
39
|
-
get isShowText(): boolean;
|
|
40
38
|
constructor(_location: Location);
|
|
41
39
|
/**
|
|
42
40
|
* Go back function
|
|
43
41
|
*/
|
|
44
42
|
goBack(event: Event): void;
|
|
45
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItBackButtonComponent, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItBackButtonComponent, "it-back-button", ["itBackButton"], { "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "showText": { "alias": "showText"; "required": false; }; "backFn": { "alias": "backFn"; "required": false; }; }, {}, never, never, true, never>;
|
|
45
|
+
static ngAcceptInputType_showIcon: i1.BooleanInput;
|
|
46
|
+
static ngAcceptInputType_showText: i1.BooleanInput;
|
|
47
47
|
}
|
|
@@ -1,29 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
|
+
import { ItAbstractComponent } from '../../../abstracts/abstract.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* The back to top ID
|
|
7
|
-
* @default 'back-to-top-button'
|
|
8
|
-
*/
|
|
9
|
-
id: string;
|
|
4
|
+
import * as i1 from "../../../utils/coercion";
|
|
5
|
+
export declare class ItBackToTopComponent extends ItAbstractComponent implements AfterViewInit {
|
|
10
6
|
/**
|
|
11
7
|
* Show small button
|
|
8
|
+
* @default false
|
|
12
9
|
*/
|
|
13
|
-
small?:
|
|
10
|
+
small?: boolean;
|
|
14
11
|
/**
|
|
15
12
|
* Show shadow
|
|
13
|
+
* @default false
|
|
16
14
|
*/
|
|
17
|
-
shadow?:
|
|
15
|
+
shadow?: boolean;
|
|
18
16
|
/**
|
|
19
17
|
* Button usable button on a dark background
|
|
18
|
+
* @default false
|
|
20
19
|
*/
|
|
21
|
-
dark?:
|
|
20
|
+
dark?: boolean;
|
|
22
21
|
private backToTop?;
|
|
23
22
|
private backToTopElement?;
|
|
24
|
-
get isSmall(): boolean;
|
|
25
|
-
get isShadow(): boolean;
|
|
26
|
-
get isDark(): boolean;
|
|
27
23
|
ngAfterViewInit(): void;
|
|
28
24
|
/**
|
|
29
25
|
* Show button
|
|
@@ -41,6 +37,9 @@ export declare class BackToTopComponent extends AbstractComponent {
|
|
|
41
37
|
* Eliminate component features
|
|
42
38
|
*/
|
|
43
39
|
dispose(): void;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItBackToTopComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItBackToTopComponent, "it-back-to-top", ["itBackToTop"], { "small": { "alias": "small"; "required": false; }; "shadow": { "alias": "shadow"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; }, {}, never, never, true, never>;
|
|
42
|
+
static ngAcceptInputType_small: i1.BooleanInput;
|
|
43
|
+
static ngAcceptInputType_shadow: i1.BooleanInput;
|
|
44
|
+
static ngAcceptInputType_dark: i1.BooleanInput;
|
|
46
45
|
}
|