design-angular-kit 1.0.0-16 → 1.0.0-18
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 +31 -6
- package/assets/i18n/en.json +4 -1
- package/assets/i18n/it.json +4 -1
- package/esm2022/lib/abstracts/abstract-form.component.mjs +186 -0
- package/esm2022/lib/abstracts/abstract.component.mjs +45 -0
- package/esm2022/lib/components/components.module.mjs +188 -0
- package/esm2022/lib/components/core/accordion/accordion.component.mjs +38 -0
- package/esm2022/lib/components/core/alert/alert.component.mjs +74 -0
- package/esm2022/lib/components/core/badge/badge.directive.mjs +38 -0
- package/esm2022/lib/components/core/button/button.directive.mjs +85 -0
- package/esm2022/lib/components/core/callout/callout.component.mjs +57 -0
- package/esm2022/lib/components/core/card/card.component.mjs +64 -0
- package/esm2022/lib/components/core/carousel/carousel/carousel.component.mjs +89 -0
- package/esm2022/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +19 -0
- package/esm2022/lib/components/core/carousel/carousel.module.mjs +23 -0
- package/esm2022/lib/components/core/chip/chip.component.mjs +96 -0
- package/esm2022/lib/components/core/collapse/collapse.component.mjs +101 -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 +59 -0
- package/esm2022/lib/components/core/dimmer/dimmer.module.mjs +27 -0
- package/esm2022/lib/components/core/dropdown/dropdown/dropdown.component.mjs +143 -0
- package/esm2022/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +68 -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 +46 -0
- package/esm2022/lib/components/core/list/list/list.component.mjs +17 -0
- package/esm2022/lib/components/core/list/list-item/list-item.component.mjs +40 -0
- package/esm2022/lib/components/core/list/list.module.mjs +23 -0
- package/esm2022/lib/components/core/modal/modal.component.mjs +164 -0
- package/esm2022/lib/components/core/notifications/notifications.component.mjs +111 -0
- package/esm2022/lib/components/core/pagination/pagination.component.mjs +133 -0
- package/esm2022/lib/components/core/popover/popover.directive.mjs +175 -0
- package/esm2022/lib/components/core/progress-bar/progress-bar.component.mjs +35 -0
- package/esm2022/lib/components/core/progress-button/progress-button.component.mjs +27 -0
- package/esm2022/lib/components/core/spinner/spinner.component.mjs +36 -0
- package/esm2022/lib/components/core/steppers/steppers-container/steppers-container.component.mjs +138 -0
- package/esm2022/lib/components/core/steppers/steppers-item/steppers-item.component.mjs +19 -0
- package/esm2022/lib/components/core/steppers/steppers.module.mjs +23 -0
- package/esm2022/lib/components/core/tab/tab-container/tab-container.component.mjs +60 -0
- package/esm2022/lib/components/core/tab/tab-item/tab-item.component.mjs +36 -0
- package/esm2022/lib/components/core/tab/tab.module.mjs +23 -0
- package/esm2022/lib/components/core/table/table.component.mjs +57 -0
- package/esm2022/lib/components/core/tooltip/tooltip.directive.mjs +142 -0
- package/esm2022/lib/components/form/checkbox/checkbox.component.mjs +49 -0
- package/esm2022/lib/components/form/form.module.mjs +55 -0
- package/esm2022/lib/components/form/input/input.component.mjs +239 -0
- package/esm2022/lib/components/form/password-input/password-input.component.mjs +155 -0
- package/esm2022/lib/components/form/radio-button/radio-button.component.mjs +69 -0
- package/esm2022/lib/components/form/range/range.component.mjs +64 -0
- package/esm2022/lib/components/form/rating/rating.component.mjs +51 -0
- package/esm2022/lib/components/form/select/select.component.mjs +70 -0
- package/esm2022/lib/components/form/textarea/textarea.component.mjs +47 -0
- package/esm2022/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +140 -0
- package/esm2022/lib/components/form/upload-file-list/upload-file-list.component.mjs +112 -0
- package/esm2022/lib/components/navigation/back-button/back-button.component.mjs +71 -0
- package/esm2022/lib/components/navigation/back-to-top/back-to-top.component.mjs +64 -0
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +57 -0
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +23 -0
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumbs.module.mjs +18 -0
- package/esm2022/lib/components/navigation/header/header.component.mjs +58 -0
- package/esm2022/lib/components/utils/error-page/error-page.component.mjs +81 -0
- package/esm2022/lib/components/utils/icon/icon.component.mjs +55 -0
- package/esm2022/lib/components/utils/language-switcher/language-switcher.component.mjs +41 -0
- package/esm2022/lib/design-angular-kit.module.mjs +68 -0
- package/{esm2020 → esm2022}/lib/interfaces/form.mjs +1 -1
- package/esm2022/lib/interfaces/icon.mjs +165 -0
- package/esm2022/lib/pipes/mark-matching-text.pipe.mjs +37 -0
- package/esm2022/lib/services/notification/notification.service.mjs +120 -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 +85 -0
- package/fesm2022/design-angular-kit.mjs +4615 -0
- package/fesm2022/design-angular-kit.mjs.map +1 -0
- package/lib/abstracts/abstract-form.component.d.ts +4 -4
- package/lib/abstracts/abstract.component.d.ts +3 -3
- package/lib/components/components.module.d.ts +32 -52
- package/lib/components/core/accordion/accordion.component.d.ts +6 -5
- package/lib/components/core/alert/alert.component.d.ts +5 -5
- package/lib/components/core/badge/badge.directive.d.ts +5 -5
- package/lib/components/core/button/button.directive.d.ts +11 -11
- package/lib/components/core/callout/callout.component.d.ts +7 -7
- package/lib/components/core/card/card.component.d.ts +8 -8
- package/lib/components/core/carousel/carousel/carousel.component.d.ts +10 -10
- package/lib/components/core/carousel/carousel-item/carousel-item.component.d.ts +4 -4
- package/lib/components/core/carousel/carousel.module.d.ts +8 -0
- package/lib/components/core/chip/chip.component.d.ts +6 -3
- package/lib/components/core/collapse/collapse.component.d.ts +8 -8
- 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 +4 -4
- package/lib/components/core/dimmer/dimmer.module.d.ts +9 -0
- package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +14 -9
- package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +8 -8
- 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 +9 -8
- package/lib/components/core/list/list/list.component.d.ts +4 -4
- package/lib/components/core/list/list-item/list-item.component.d.ts +9 -9
- package/lib/components/core/list/list.module.d.ts +8 -0
- package/lib/components/core/modal/modal.component.d.ts +11 -11
- package/lib/components/core/notifications/notifications.component.d.ts +6 -6
- package/lib/components/core/pagination/pagination.component.d.ts +8 -8
- package/lib/components/core/popover/popover.directive.d.ts +3 -3
- package/lib/components/core/progress-bar/progress-bar.component.d.ts +6 -6
- package/lib/components/core/progress-button/progress-button.component.d.ts +5 -5
- package/lib/components/core/spinner/spinner.component.d.ts +5 -5
- package/lib/components/core/steppers/steppers-container/steppers-container.component.d.ts +37 -13
- package/lib/components/core/steppers/steppers-item/steppers-item.component.d.ts +5 -5
- package/lib/components/core/steppers/steppers.module.d.ts +8 -0
- package/lib/components/core/tab/tab-container/tab-container.component.d.ts +9 -9
- package/lib/components/core/tab/tab-item/tab-item.component.d.ts +8 -8
- package/lib/components/core/tab/tab.module.d.ts +8 -0
- package/lib/components/core/table/table.component.d.ts +12 -12
- package/lib/components/core/tooltip/tooltip.directive.d.ts +3 -3
- package/lib/components/form/checkbox/checkbox.component.d.ts +12 -10
- package/lib/components/form/form.module.d.ts +16 -0
- package/lib/components/form/input/input.component.d.ts +18 -13
- package/lib/components/form/password-input/password-input.component.d.ts +11 -6
- package/lib/components/form/radio-button/radio-button.component.d.ts +6 -6
- 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 +11 -6
- package/lib/components/form/textarea/textarea.component.d.ts +5 -5
- package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +4 -4
- package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +6 -6
- package/lib/components/navigation/back-button/back-button.component.d.ts +3 -3
- package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +7 -7
- package/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +6 -6
- package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +6 -6
- package/lib/components/navigation/breadcrumbs/breadcrumbs.module.d.ts +8 -0
- package/lib/components/navigation/header/header.component.d.ts +6 -6
- package/lib/components/utils/error-page/error-page.component.d.ts +6 -6
- package/lib/components/utils/icon/icon.component.d.ts +7 -7
- package/lib/components/utils/language-switcher/language-switcher.component.d.ts +4 -4
- package/lib/design-angular-kit.module.d.ts +3 -4
- package/lib/interfaces/core.d.ts +16 -16
- package/lib/interfaces/form.d.ts +3 -3
- package/lib/interfaces/icon.d.ts +4 -4
- package/lib/pipes/mark-matching-text.pipe.d.ts +4 -4
- package/lib/services/{notifications/notifications.service.d.ts → notification/notification.service.d.ts} +3 -3
- package/lib/utils/boolean-input.d.ts +1 -1
- package/lib/utils/regex.d.ts +5 -0
- package/lib/validators/it-validators.d.ts +4 -0
- package/package.json +13 -19
- package/public_api.d.ts +13 -4
- package/esm2020/lib/abstracts/abstract-form.component.mjs +0 -188
- package/esm2020/lib/abstracts/abstract.component.mjs +0 -45
- package/esm2020/lib/components/components.module.mjs +0 -256
- package/esm2020/lib/components/core/accordion/accordion.component.mjs +0 -35
- package/esm2020/lib/components/core/alert/alert.component.mjs +0 -73
- package/esm2020/lib/components/core/badge/badge.directive.mjs +0 -37
- package/esm2020/lib/components/core/button/button.directive.mjs +0 -84
- package/esm2020/lib/components/core/callout/callout.component.mjs +0 -57
- package/esm2020/lib/components/core/card/card.component.mjs +0 -64
- package/esm2020/lib/components/core/carousel/carousel/carousel.component.mjs +0 -89
- package/esm2020/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +0 -19
- 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 -52
- package/esm2020/lib/components/core/link/link.component.mjs +0 -40
- package/esm2020/lib/components/core/list/list/list.component.mjs +0 -17
- package/esm2020/lib/components/core/list/list-item/list-item.component.mjs +0 -41
- package/esm2020/lib/components/core/modal/modal.component.mjs +0 -163
- package/esm2020/lib/components/core/notifications/notifications.component.mjs +0 -110
- package/esm2020/lib/components/core/pagination/pagination.component.mjs +0 -131
- package/esm2020/lib/components/core/popover/popover.directive.mjs +0 -174
- 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/rating/rating.component.mjs +0 -49
- package/esm2020/lib/components/core/spinner/spinner.component.mjs +0 -35
- package/esm2020/lib/components/core/steppers/steppers-container/steppers-container.component.mjs +0 -127
- package/esm2020/lib/components/core/steppers/steppers-item/steppers-item.component.mjs +0 -19
- 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 -141
- package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +0 -40
- package/esm2020/lib/components/form/input/input.component.mjs +0 -232
- package/esm2020/lib/components/form/password-input/password-input.component.mjs +0 -152
- package/esm2020/lib/components/form/radio-button/radio-button.component.mjs +0 -68
- 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 -139
- 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 -64
- package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +0 -56
- package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +0 -23
- package/esm2020/lib/components/navigation/header/header.component.mjs +0 -57
- package/esm2020/lib/components/utils/error-page/error-page.component.mjs +0 -79
- package/esm2020/lib/components/utils/icon/icon.component.mjs +0 -55
- package/esm2020/lib/components/utils/language-switcher/language-switcher.component.mjs +0 -39
- package/esm2020/lib/design-angular-kit.module.mjs +0 -68
- package/esm2020/lib/interfaces/icon.mjs +0 -162
- 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/file-utils.mjs +0 -73
- package/esm2020/lib/utils/regex.mjs +0 -26
- package/esm2020/lib/validators/it-validators.mjs +0 -147
- package/esm2020/public_api.mjs +0 -74
- package/fesm2015/design-angular-kit.mjs +0 -4422
- package/fesm2015/design-angular-kit.mjs.map +0 -1
- package/fesm2020/design-angular-kit.mjs +0 -4354
- package/fesm2020/design-angular-kit.mjs.map +0 -1
- package/lib/components/core/rating/rating.component.d.ts +0 -24
- /package/{esm2020 → esm2022}/design-angular-kit.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/design-angular-kit-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interfaces/core.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interfaces/design-angular-kit-init.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interfaces/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/utils/boolean-input.mjs +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "design-angular-kit",
|
|
3
3
|
"description": "Un toolkit Angular conforme alle linee guida di design per i servizi web della PA",
|
|
4
|
-
"version": "1.0.0-
|
|
4
|
+
"version": "1.0.0-18",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"angular",
|
|
@@ -28,22 +28,18 @@
|
|
|
28
28
|
}
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"tslib": "^2.
|
|
31
|
+
"tslib": "^2.6.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@angular/animations": "^
|
|
35
|
-
"@angular/common": "^
|
|
36
|
-
"@angular/core": "^
|
|
37
|
-
"@angular/platform-browser": "^
|
|
38
|
-
"@ngx-translate/core": "^
|
|
39
|
-
"@ngx-translate/http-loader": "^
|
|
40
|
-
"bootstrap-italia": "^2.
|
|
34
|
+
"@angular/animations": "^16.0.0",
|
|
35
|
+
"@angular/common": "^16.0.0",
|
|
36
|
+
"@angular/core": "^16.0.0",
|
|
37
|
+
"@angular/platform-browser": "^16.0.0",
|
|
38
|
+
"@ngx-translate/core": "^15.0.0",
|
|
39
|
+
"@ngx-translate/http-loader": "^8.0.0",
|
|
40
|
+
"bootstrap-italia": "^2.6.0"
|
|
41
41
|
},
|
|
42
|
-
"module": "
|
|
43
|
-
"es2020": "fesm2020/design-angular-kit.mjs",
|
|
44
|
-
"esm2020": "esm2020/design-angular-kit.mjs",
|
|
45
|
-
"fesm2020": "fesm2020/design-angular-kit.mjs",
|
|
46
|
-
"fesm2015": "fesm2015/design-angular-kit.mjs",
|
|
42
|
+
"module": "fesm2022/design-angular-kit.mjs",
|
|
47
43
|
"typings": "index.d.ts",
|
|
48
44
|
"exports": {
|
|
49
45
|
"./package.json": {
|
|
@@ -51,11 +47,9 @@
|
|
|
51
47
|
},
|
|
52
48
|
".": {
|
|
53
49
|
"types": "./index.d.ts",
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"node": "./fesm2015/design-angular-kit.mjs",
|
|
58
|
-
"default": "./fesm2020/design-angular-kit.mjs"
|
|
50
|
+
"esm2022": "./esm2022/design-angular-kit.mjs",
|
|
51
|
+
"esm": "./esm2022/design-angular-kit.mjs",
|
|
52
|
+
"default": "./fesm2022/design-angular-kit.mjs"
|
|
59
53
|
}
|
|
60
54
|
},
|
|
61
55
|
"sideEffects": false
|
package/public_api.d.ts
CHANGED
|
@@ -7,17 +7,21 @@ export * from './lib/components/core/badge/badge.directive';
|
|
|
7
7
|
export * from './lib/components/core/button/button.directive';
|
|
8
8
|
export * from './lib/components/core/callout/callout.component';
|
|
9
9
|
export * from './lib/components/core/card/card.component';
|
|
10
|
+
export * from './lib/components/core/carousel/carousel.module';
|
|
10
11
|
export * from './lib/components/core/carousel/carousel/carousel.component';
|
|
11
12
|
export * from './lib/components/core/carousel/carousel-item/carousel-item.component';
|
|
12
13
|
export * from './lib/components/core/chip/chip.component';
|
|
13
14
|
export * from './lib/components/core/collapse/collapse.component';
|
|
14
|
-
export * from './lib/components/core/dimmer/dimmer
|
|
15
|
+
export * from './lib/components/core/dimmer/dimmer.module';
|
|
15
16
|
export * from './lib/components/core/dimmer/dimmer.component';
|
|
17
|
+
export * from './lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component';
|
|
16
18
|
export * from './lib/components/core/dimmer/dimmer-icon/dimmer-icon.component';
|
|
19
|
+
export * from './lib/components/core/dropdown/dropdown.module';
|
|
17
20
|
export * from './lib/components/core/dropdown/dropdown/dropdown.component';
|
|
18
21
|
export * from './lib/components/core/dropdown/dropdown-item/dropdown-item.component';
|
|
19
22
|
export * from './lib/components/core/forward/forward.directive';
|
|
20
23
|
export * from './lib/components/core/link/link.component';
|
|
24
|
+
export * from './lib/components/core/list/list.module';
|
|
21
25
|
export * from './lib/components/core/list/list/list.component';
|
|
22
26
|
export * from './lib/components/core/list/list-item/list-item.component';
|
|
23
27
|
export * from './lib/components/core/modal/modal.component';
|
|
@@ -26,31 +30,36 @@ export * from './lib/components/core/pagination/pagination.component';
|
|
|
26
30
|
export * from './lib/components/core/popover/popover.directive';
|
|
27
31
|
export * from './lib/components/core/progress-bar/progress-bar.component';
|
|
28
32
|
export * from './lib/components/core/progress-button/progress-button.component';
|
|
29
|
-
export * from './lib/components/core/rating/rating.component';
|
|
30
33
|
export * from './lib/components/core/spinner/spinner.component';
|
|
34
|
+
export * from './lib/components/core/steppers/steppers.module';
|
|
31
35
|
export * from './lib/components/core/steppers/steppers-container/steppers-container.component';
|
|
32
36
|
export * from './lib/components/core/steppers/steppers-item/steppers-item.component';
|
|
37
|
+
export * from './lib/components/core/tab/tab.module';
|
|
33
38
|
export * from './lib/components/core/tab/tab-container/tab-container.component';
|
|
34
39
|
export * from './lib/components/core/tab/tab-item/tab-item.component';
|
|
35
40
|
export * from './lib/components/core/table/table.component';
|
|
36
41
|
export * from './lib/components/core/tooltip/tooltip.directive';
|
|
42
|
+
export * from './lib/components/form/form.module';
|
|
37
43
|
export * from './lib/components/form/checkbox/checkbox.component';
|
|
38
44
|
export * from './lib/components/form/input/input.component';
|
|
39
45
|
export * from './lib/components/form/password-input/password-input.component';
|
|
40
46
|
export * from './lib/components/form/radio-button/radio-button.component';
|
|
47
|
+
export * from './lib/components/form/range/range.component';
|
|
48
|
+
export * from './lib/components/form/rating/rating.component';
|
|
41
49
|
export * from './lib/components/form/select/select.component';
|
|
42
50
|
export * from './lib/components/form/textarea/textarea.component';
|
|
43
51
|
export * from './lib/components/form/upload-drag-drop/upload-drag-drop.component';
|
|
44
52
|
export * from './lib/components/form/upload-file-list/upload-file-list.component';
|
|
45
53
|
export * from './lib/components/navigation/back-button/back-button.component';
|
|
46
54
|
export * from './lib/components/navigation/back-to-top/back-to-top.component';
|
|
55
|
+
export * from './lib/components/navigation/breadcrumbs/breadcrumbs.module';
|
|
47
56
|
export * from './lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component';
|
|
48
57
|
export * from './lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component';
|
|
49
58
|
export * from './lib/components/navigation/header/header.component';
|
|
59
|
+
export * from './lib/components/utils/error-page/error-page.component';
|
|
50
60
|
export * from './lib/components/utils/icon/icon.component';
|
|
51
61
|
export * from './lib/components/utils/language-switcher/language-switcher.component';
|
|
52
|
-
export * from './lib/
|
|
53
|
-
export * from './lib/services/notifications/notifications.service';
|
|
62
|
+
export * from './lib/services/notification/notification.service';
|
|
54
63
|
export * from './lib/pipes/mark-matching-text.pipe';
|
|
55
64
|
export * from './lib/interfaces/design-angular-kit-init';
|
|
56
65
|
export * from './lib/interfaces/core';
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import { Component, Input, Optional, Self } from '@angular/core';
|
|
3
|
-
import { AbstractComponent } from './abstract.component';
|
|
4
|
-
import { isFalseBooleanInput, isTrueBooleanInput } from '../utils/boolean-input';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@ngx-translate/core";
|
|
7
|
-
import * as i2 from "@angular/forms";
|
|
8
|
-
export class AbstractFormComponent extends AbstractComponent {
|
|
9
|
-
constructor(_translateService, _ngControl) {
|
|
10
|
-
super();
|
|
11
|
-
this._translateService = _translateService;
|
|
12
|
-
this._ngControl = _ngControl;
|
|
13
|
-
/**
|
|
14
|
-
* Validation color display mode (validation triggered if field is touched or not pristine)
|
|
15
|
-
* - <b>true</b>: Always show the validation color
|
|
16
|
-
* - <b>false</b>: Never show validation color
|
|
17
|
-
* - <b>only-valid</b>: Show only valid validation color
|
|
18
|
-
* - <b>only-invalid</b>: Show only invalid validation color
|
|
19
|
-
* @default <b>only-invalid</b>: Show only invalid validation color
|
|
20
|
-
*/
|
|
21
|
-
this.validationMode = 'only-invalid';
|
|
22
|
-
this.onChange = (_) => {
|
|
23
|
-
};
|
|
24
|
-
this.onTouched = () => {
|
|
25
|
-
};
|
|
26
|
-
this.control = new FormControl();
|
|
27
|
-
this._ngControl && (this._ngControl.valueAccessor = this);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Set the disabled state
|
|
31
|
-
*/
|
|
32
|
-
set disabled(isDisabled) {
|
|
33
|
-
this.setDisabledState(isTrueBooleanInput(isDisabled));
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Check if field is invalid (Validation failed)
|
|
37
|
-
*/
|
|
38
|
-
get isInvalid() {
|
|
39
|
-
if (this.validationMode === 'only-valid' || (this.validationMode !== 'only-invalid' && isFalseBooleanInput(this.validationMode))) {
|
|
40
|
-
return undefined;
|
|
41
|
-
}
|
|
42
|
-
if (this._ngControl) {
|
|
43
|
-
return this._ngControl.invalid === true && (!this._ngControl.pristine || this._ngControl.touched === true);
|
|
44
|
-
}
|
|
45
|
-
return this.control.invalid && (!this.control.pristine || this.control.touched);
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Check if field is valid (Validation successful)
|
|
49
|
-
*/
|
|
50
|
-
get isValid() {
|
|
51
|
-
if (this.validationMode === 'only-invalid' || (this.validationMode !== 'only-valid' && isFalseBooleanInput(this.validationMode))) {
|
|
52
|
-
return undefined;
|
|
53
|
-
}
|
|
54
|
-
if (this._ngControl) {
|
|
55
|
-
return this._ngControl.valid === true && (!this._ngControl.pristine || this._ngControl.touched === true);
|
|
56
|
-
}
|
|
57
|
-
return this.control.valid && (!this.control.pristine || this.control.touched);
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Return the invalid message string from TranslateService
|
|
61
|
-
*/
|
|
62
|
-
get invalidMessage() {
|
|
63
|
-
if (this.control.hasError('required')) {
|
|
64
|
-
return this._translateService.get('it.errors.required-field');
|
|
65
|
-
}
|
|
66
|
-
return this._translateService.get('it.errors.invalid-field');
|
|
67
|
-
}
|
|
68
|
-
ngOnInit() {
|
|
69
|
-
if (this._ngControl?.control) {
|
|
70
|
-
this.control.setValidators(this._ngControl.control.validator);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
registerOnChange(fn) {
|
|
74
|
-
this.control.valueChanges.subscribe(fn);
|
|
75
|
-
this.onChange = fn;
|
|
76
|
-
}
|
|
77
|
-
registerOnTouched(fn) {
|
|
78
|
-
this.onTouched = fn;
|
|
79
|
-
}
|
|
80
|
-
setDisabledState(isDisabled) {
|
|
81
|
-
if (isDisabled) {
|
|
82
|
-
return this.control.disable();
|
|
83
|
-
}
|
|
84
|
-
this.control.enable();
|
|
85
|
-
}
|
|
86
|
-
writeValue(value) {
|
|
87
|
-
this.control.setValue(value, { emitEvent: false });
|
|
88
|
-
this._changeDetectorRef.detectChanges();
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Mark the control as touched
|
|
92
|
-
*/
|
|
93
|
-
markAsTouched() {
|
|
94
|
-
if (!this.control.touched) {
|
|
95
|
-
this.onTouched();
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Fired to check if form control is touched
|
|
100
|
-
*/
|
|
101
|
-
ngDoCheck() {
|
|
102
|
-
if (!this._ngControl?.control) {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
const ngControl = this._ngControl.control;
|
|
106
|
-
if (this.control.touched !== ngControl.touched) {
|
|
107
|
-
if (ngControl.touched) {
|
|
108
|
-
this.control.markAsTouched();
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
this.control.markAsUntouched();
|
|
112
|
-
}
|
|
113
|
-
this._changeDetectorRef.detectChanges();
|
|
114
|
-
}
|
|
115
|
-
if (this.control.pristine !== ngControl.pristine) {
|
|
116
|
-
if (ngControl.pristine) {
|
|
117
|
-
this.control.markAsPristine();
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
this.control.markAsDirty();
|
|
121
|
-
}
|
|
122
|
-
this._changeDetectorRef.detectChanges();
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Add the validators in control and parent control
|
|
127
|
-
* @param validators the validators
|
|
128
|
-
* @protected
|
|
129
|
-
*/
|
|
130
|
-
addValidators(validators) {
|
|
131
|
-
if (!Array.isArray(validators)) {
|
|
132
|
-
validators = [validators];
|
|
133
|
-
}
|
|
134
|
-
validators.forEach(validator => {
|
|
135
|
-
if (!this.control.hasValidator(validator)) {
|
|
136
|
-
this.control.addValidators(validator);
|
|
137
|
-
}
|
|
138
|
-
if (this._ngControl?.control && !this._ngControl.control.hasValidator(validator)) {
|
|
139
|
-
this._ngControl.control.addValidators(validator);
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Reports whether the control with the given path has the error specified. <br/>
|
|
145
|
-
* If the control is not present, false is returned.
|
|
146
|
-
* @param errorCode The code of the error to check
|
|
147
|
-
* @param path A list of control names that designates how to move from the current control
|
|
148
|
-
* to the control that should be queried for errors.
|
|
149
|
-
* @returns whether the given error is present in the control at the given path.
|
|
150
|
-
*/
|
|
151
|
-
hasError(errorCode, path) {
|
|
152
|
-
if (this._ngControl) {
|
|
153
|
-
return this._ngControl.hasError(errorCode, path);
|
|
154
|
-
}
|
|
155
|
-
return this.control.hasError(errorCode, path);
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Reports error data for the control with the given path.
|
|
159
|
-
* @param errorCode The code of the error to check
|
|
160
|
-
* @param path A list of control names that designates how to move from the current control
|
|
161
|
-
* to the control that should be queried for errors.
|
|
162
|
-
* @returns error data for that particular error. If the control or error is not present,
|
|
163
|
-
* null is returned.
|
|
164
|
-
*/
|
|
165
|
-
getError(errorCode, path) {
|
|
166
|
-
if (this._ngControl) {
|
|
167
|
-
return this._ngControl.getError(errorCode, path);
|
|
168
|
-
}
|
|
169
|
-
return this.control.getError(errorCode, path);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
AbstractFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: AbstractFormComponent, deps: [{ token: i1.TranslateService }, { token: i2.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
173
|
-
AbstractFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.6", type: AbstractFormComponent, selector: "ng-component", inputs: { label: "label", validationMode: "validationMode", disabled: "disabled" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
174
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: AbstractFormComponent, decorators: [{
|
|
175
|
-
type: Component,
|
|
176
|
-
args: [{ template: '' }]
|
|
177
|
-
}], ctorParameters: function () { return [{ type: i1.TranslateService }, { type: i2.NgControl, decorators: [{
|
|
178
|
-
type: Self
|
|
179
|
-
}, {
|
|
180
|
-
type: Optional
|
|
181
|
-
}] }]; }, propDecorators: { label: [{
|
|
182
|
-
type: Input
|
|
183
|
-
}], validationMode: [{
|
|
184
|
-
type: Input
|
|
185
|
-
}], disabled: [{
|
|
186
|
-
type: Input
|
|
187
|
-
}] } });
|
|
188
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3QtZm9ybS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kZXNpZ24tYW5ndWxhci1raXQvc3JjL2xpYi9hYnN0cmFjdHMvYWJzdHJhY3QtZm9ybS5jb21wb25lbnQudHMiXSwibmFtZXMiOltd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cGF0aCBBIGxpc3Qgb2YgY29udHJvbCBuYW1lcyB0aGF0IGRlc2lnbmF0ZXMgaG93IHRvIG1vdmUgZnJvbSB0aGUgY3VycmVudCBjb250cm9sXG4gICAqIHRvIHRoZSBjb250cm9sIHRoYXQgc2hvdWxkIGJlIHF1ZXJpZWQgZm9yIGVycm9ycy5cbiAgICogQHJldHVybnMgZXJyb3IgZGF0YSBmb3IgdGhhdCBwYXJ0aWN1bGFyIGVycm9yLiBJZiB0aGUgY29udHJvbCBvciBlcnJvciBpcyBub3QgcHJlc2VudCxcbiAgICogbnVsbCBpcyByZXR1cm5lZC5cbiAgICovXG4gIHB1YmxpYyBnZXRFcnJvcihlcnJvckNvZGU6IHN0cmluZywgcGF0aD86IEFycmF5PHN0cmluZyB8IG51bWJlcj4gfCBzdHJpbmcpOiBhbnkge1xuICAgIGlmICh0aGlzLl9uZ0NvbnRyb2wpIHtcbiAgICAgIHJldHVybiB0aGlzLl9uZ0NvbnRyb2wuZ2V0RXJyb3IoZXJyb3JDb2RlLCBwYXRoKTtcbiAgICB9XG4gICAgcmV0dXJuIHRoaXMuY29udHJvbC5nZXRFcnJvcihlcnJvckNvZGUsIHBhdGgpO1xuICB9XG59XG4iXX0=
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Component, ElementRef, EventEmitter, inject, Input, Output, Renderer2 } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class AbstractComponent {
|
|
4
|
-
constructor() {
|
|
5
|
-
/**
|
|
6
|
-
* The element ID
|
|
7
|
-
*/
|
|
8
|
-
this.id = this.getDefaultId();
|
|
9
|
-
this._renderer = inject(Renderer2);
|
|
10
|
-
this._elementRef = inject(ElementRef);
|
|
11
|
-
this._changeDetectorRef = inject(ChangeDetectorRef);
|
|
12
|
-
this.valueChanges = new EventEmitter();
|
|
13
|
-
}
|
|
14
|
-
ngAfterViewInit() {
|
|
15
|
-
this._renderer.removeAttribute(this._elementRef.nativeElement, 'id');
|
|
16
|
-
}
|
|
17
|
-
ngOnChanges(changes) {
|
|
18
|
-
this.valueChanges.next(); // The inputs were changed
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Generate unique id for components
|
|
22
|
-
* @private
|
|
23
|
-
*/
|
|
24
|
-
getDefaultId() {
|
|
25
|
-
const name = this.constructor.name.replace('Component', '');
|
|
26
|
-
const kebabName = name.replace(/[A-Z]+(?![a-z])|[A-Z]/g, ($, ofs) => (ofs ? '-' : '') + $.toLowerCase());
|
|
27
|
-
return `it-${kebabName}-${AbstractComponent.instances++}`;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Counter of active instances
|
|
32
|
-
* @private
|
|
33
|
-
*/
|
|
34
|
-
AbstractComponent.instances = 0;
|
|
35
|
-
AbstractComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: AbstractComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
-
AbstractComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.6", type: AbstractComponent, selector: "ng-component", inputs: { id: "id" }, outputs: { valueChanges: "valueChanges" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true });
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: AbstractComponent, decorators: [{
|
|
38
|
-
type: Component,
|
|
39
|
-
args: [{ template: '' }]
|
|
40
|
-
}], ctorParameters: function () { return []; }, propDecorators: { id: [{
|
|
41
|
-
type: Input
|
|
42
|
-
}], valueChanges: [{
|
|
43
|
-
type: Output
|
|
44
|
-
}] } });
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4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