@kirbydesign/designsystem 11.11.3-dev-e7cb27f → 12.0.0-dev-67d5287
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/fesm2022/kirbydesign-designsystem-accordion.mjs +246 -135
- package/fesm2022/kirbydesign-designsystem-accordion.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-action-group.mjs +229 -134
- package/fesm2022/kirbydesign-designsystem-action-group.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-avatar.mjs +102 -55
- package/fesm2022/kirbydesign-designsystem-avatar.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-badge.mjs +85 -42
- package/fesm2022/kirbydesign-designsystem-badge.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-button.mjs +203 -170
- package/fesm2022/kirbydesign-designsystem-button.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-calendar.mjs +524 -516
- package/fesm2022/kirbydesign-designsystem-calendar.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-card.mjs +439 -205
- package/fesm2022/kirbydesign-designsystem-card.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-chart.mjs +1388 -1469
- package/fesm2022/kirbydesign-designsystem-chart.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-checkbox.mjs +215 -176
- package/fesm2022/kirbydesign-designsystem-checkbox.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-config.mjs +50 -96
- package/fesm2022/kirbydesign-designsystem-config.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-data-table.mjs +180 -83
- package/fesm2022/kirbydesign-designsystem-data-table.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-divider.mjs +46 -19
- package/fesm2022/kirbydesign-designsystem-divider.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-dropdown.mjs +878 -752
- package/fesm2022/kirbydesign-designsystem-dropdown.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-empty-state.mjs +164 -91
- package/fesm2022/kirbydesign-designsystem-empty-state.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-fab-sheet.mjs +213 -85
- package/fesm2022/kirbydesign-designsystem-fab-sheet.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-flag.mjs +67 -33
- package/fesm2022/kirbydesign-designsystem-flag.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-form-field.mjs +1260 -901
- package/fesm2022/kirbydesign-designsystem-form-field.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-gesture.mjs +38 -23
- package/fesm2022/kirbydesign-designsystem-gesture.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-header.mjs +422 -182
- package/fesm2022/kirbydesign-designsystem-header.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-helpers-scss.mjs +16 -14
- package/fesm2022/kirbydesign-designsystem-helpers-scss.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-helpers.mjs +251 -361
- package/fesm2022/kirbydesign-designsystem-helpers.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-icon.mjs +881 -303
- package/fesm2022/kirbydesign-designsystem-icon.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-item-group.mjs +52 -23
- package/fesm2022/kirbydesign-designsystem-item-group.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-item-sliding.mjs +147 -43
- package/fesm2022/kirbydesign-designsystem-item-sliding.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-item.mjs +395 -151
- package/fesm2022/kirbydesign-designsystem-item.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-kirby-app.mjs +136 -54
- package/fesm2022/kirbydesign-designsystem-kirby-app.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-list.mjs +1185 -697
- package/fesm2022/kirbydesign-designsystem-list.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-loading-overlay.mjs +166 -76
- package/fesm2022/kirbydesign-designsystem-loading-overlay.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-menu.mjs +420 -311
- package/fesm2022/kirbydesign-designsystem-menu.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-modal.mjs +2467 -1912
- package/fesm2022/kirbydesign-designsystem-modal.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-page.mjs +1505 -923
- package/fesm2022/kirbydesign-designsystem-page.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-popover.mjs +203 -183
- package/fesm2022/kirbydesign-designsystem-popover.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-progress-circle.mjs +209 -121
- package/fesm2022/kirbydesign-designsystem-progress-circle.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-radio.mjs +537 -365
- package/fesm2022/kirbydesign-designsystem-radio.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-range.mjs +207 -150
- package/fesm2022/kirbydesign-designsystem-range.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-reorder-list.mjs +217 -104
- package/fesm2022/kirbydesign-designsystem-reorder-list.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-router-outlet.mjs +113 -38
- package/fesm2022/kirbydesign-designsystem-router-outlet.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-section-header.mjs +56 -18
- package/fesm2022/kirbydesign-designsystem-section-header.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-segmented-control.mjs +276 -232
- package/fesm2022/kirbydesign-designsystem-segmented-control.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-shared-floating.mjs +319 -382
- package/fesm2022/kirbydesign-designsystem-shared-floating.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-shared-portal.mjs +73 -84
- package/fesm2022/kirbydesign-designsystem-shared-portal.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-shared.mjs +665 -529
- package/fesm2022/kirbydesign-designsystem-shared.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-slide-button.mjs +140 -91
- package/fesm2022/kirbydesign-designsystem-slide-button.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-slide.mjs +360 -158
- package/fesm2022/kirbydesign-designsystem-slide.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-spinner.mjs +90 -32
- package/fesm2022/kirbydesign-designsystem-spinner.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-tab-navigation.mjs +348 -181
- package/fesm2022/kirbydesign-designsystem-tab-navigation.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-tabs.mjs +286 -121
- package/fesm2022/kirbydesign-designsystem-tabs.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-testing-base.mjs +6232 -3164
- package/fesm2022/kirbydesign-designsystem-testing-base.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-testing-jasmine.mjs +118 -95
- package/fesm2022/kirbydesign-designsystem-testing-jasmine.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-testing-jest.mjs +128 -101
- package/fesm2022/kirbydesign-designsystem-testing-jest.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-testing.mjs +236 -243
- package/fesm2022/kirbydesign-designsystem-testing.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-toast.mjs +98 -62
- package/fesm2022/kirbydesign-designsystem-toast.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-toggle-button.mjs +155 -127
- package/fesm2022/kirbydesign-designsystem-toggle-button.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-toggle.mjs +180 -150
- package/fesm2022/kirbydesign-designsystem-toggle.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-types.mjs +39 -24
- package/fesm2022/kirbydesign-designsystem-types.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem.mjs +516 -407
- package/fesm2022/kirbydesign-designsystem.mjs.map +1 -1
- package/icons/svg/megaphone.svg +3 -0
- package/package.json +10 -10
- package/readme.md +37 -0
- package/types/kirbydesign-designsystem-accordion.d.ts +72 -39
- package/types/kirbydesign-designsystem-accordion.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-action-group.d.ts +46 -39
- package/types/kirbydesign-designsystem-action-group.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-avatar.d.ts +62 -26
- package/types/kirbydesign-designsystem-avatar.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-badge.d.ts +30 -19
- package/types/kirbydesign-designsystem-badge.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-button.d.ts +70 -45
- package/types/kirbydesign-designsystem-button.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-calendar.d.ts +193 -132
- package/types/kirbydesign-designsystem-calendar.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-card.d.ts +130 -66
- package/types/kirbydesign-designsystem-card.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-chart.d.ts +198 -172
- package/types/kirbydesign-designsystem-chart.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-checkbox.d.ts +96 -68
- package/types/kirbydesign-designsystem-checkbox.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-config.d.ts +17 -21
- package/types/kirbydesign-designsystem-config.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-data-table.d.ts +46 -26
- package/types/kirbydesign-designsystem-data-table.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-divider.d.ts +11 -9
- package/types/kirbydesign-designsystem-divider.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-dropdown.d.ts +219 -166
- package/types/kirbydesign-designsystem-dropdown.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-empty-state.d.ts +47 -35
- package/types/kirbydesign-designsystem-empty-state.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-fab-sheet.d.ts +34 -28
- package/types/kirbydesign-designsystem-fab-sheet.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-flag.d.ts +18 -13
- package/types/kirbydesign-designsystem-flag.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-form-field.d.ts +409 -242
- package/types/kirbydesign-designsystem-form-field.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-gesture.d.ts +41 -46
- package/types/kirbydesign-designsystem-gesture.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-header.d.ts +102 -64
- package/types/kirbydesign-designsystem-header.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-helpers-scss.d.ts +6 -8
- package/types/kirbydesign-designsystem-helpers-scss.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-helpers.d.ts +83 -97
- package/types/kirbydesign-designsystem-helpers.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-icon.d.ts +63 -59
- package/types/kirbydesign-designsystem-icon.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-item-group.d.ts +6 -9
- package/types/kirbydesign-designsystem-item-group.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-item-sliding.d.ts +30 -26
- package/types/kirbydesign-designsystem-item-sliding.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-item.d.ts +93 -54
- package/types/kirbydesign-designsystem-item.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-kirby-app.d.ts +18 -19
- package/types/kirbydesign-designsystem-kirby-app.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-list.d.ts +387 -263
- package/types/kirbydesign-designsystem-list.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-loading-overlay.d.ts +35 -24
- package/types/kirbydesign-designsystem-loading-overlay.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-menu.d.ts +119 -69
- package/types/kirbydesign-designsystem-menu.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-modal.d.ts +577 -455
- package/types/kirbydesign-designsystem-modal.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-page.d.ts +304 -229
- package/types/kirbydesign-designsystem-page.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-popover.d.ts +48 -40
- package/types/kirbydesign-designsystem-popover.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-progress-circle.d.ts +60 -38
- package/types/kirbydesign-designsystem-progress-circle.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-radio.d.ts +147 -98
- package/types/kirbydesign-designsystem-radio.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-range.d.ts +90 -45
- package/types/kirbydesign-designsystem-range.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-reorder-list.d.ts +44 -32
- package/types/kirbydesign-designsystem-reorder-list.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-router-outlet.d.ts +23 -18
- package/types/kirbydesign-designsystem-router-outlet.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-section-header.d.ts +5 -8
- package/types/kirbydesign-designsystem-section-header.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-segmented-control.d.ts +123 -100
- package/types/kirbydesign-designsystem-segmented-control.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-shared-floating.d.ts +183 -128
- package/types/kirbydesign-designsystem-shared-floating.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-shared-portal.d.ts +29 -28
- package/types/kirbydesign-designsystem-shared-portal.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-shared.d.ts +143 -139
- package/types/kirbydesign-designsystem-shared.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-slide-button.d.ts +43 -34
- package/types/kirbydesign-designsystem-slide-button.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-slide.d.ts +80 -59
- package/types/kirbydesign-designsystem-slide.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-spinner.d.ts +13 -14
- package/types/kirbydesign-designsystem-spinner.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-tab-navigation.d.ts +78 -55
- package/types/kirbydesign-designsystem-tab-navigation.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-tabs.d.ts +50 -45
- package/types/kirbydesign-designsystem-tabs.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-testing-base.d.ts +2430 -815
- package/types/kirbydesign-designsystem-testing-base.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-testing-jasmine.d.ts +9 -10
- package/types/kirbydesign-designsystem-testing-jasmine.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-testing-jest.d.ts +9 -10
- package/types/kirbydesign-designsystem-testing-jest.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-testing.d.ts +52 -58
- package/types/kirbydesign-designsystem-testing.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-toast.d.ts +25 -31
- package/types/kirbydesign-designsystem-toast.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-toggle-button.d.ts +62 -56
- package/types/kirbydesign-designsystem-toggle-button.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-toggle.d.ts +71 -63
- package/types/kirbydesign-designsystem-toggle.d.ts.map +1 -1
- package/types/kirbydesign-designsystem-types.d.ts +15 -22
- package/types/kirbydesign-designsystem-types.d.ts.map +1 -1
- package/types/kirbydesign-designsystem.d.ts +135 -123
- package/types/kirbydesign-designsystem.d.ts.map +1 -1
- package/accordion/package.json +0 -4
- package/action-group/package.json +0 -4
- package/avatar/package.json +0 -4
- package/badge/package.json +0 -4
- package/button/package.json +0 -4
- package/calendar/package.json +0 -4
- package/card/package.json +0 -4
- package/chart/package.json +0 -4
- package/checkbox/package.json +0 -4
- package/config/package.json +0 -4
- package/data-table/package.json +0 -4
- package/divider/package.json +0 -4
- package/dropdown/package.json +0 -4
- package/empty-state/package.json +0 -4
- package/fab-sheet/package.json +0 -4
- package/flag/package.json +0 -4
- package/form-field/package.json +0 -4
- package/gesture/package.json +0 -4
- package/header/package.json +0 -4
- package/helpers/package.json +0 -4
- package/helpers/scss/package.json +0 -4
- package/icon/package.json +0 -4
- package/item/package.json +0 -4
- package/item-group/package.json +0 -4
- package/item-sliding/package.json +0 -4
- package/kirby-app/package.json +0 -4
- package/list/package.json +0 -4
- package/loading-overlay/package.json +0 -4
- package/menu/package.json +0 -4
- package/modal/package.json +0 -4
- package/page/package.json +0 -4
- package/popover/package.json +0 -4
- package/progress-circle/package.json +0 -4
- package/radio/package.json +0 -4
- package/range/package.json +0 -4
- package/reorder-list/package.json +0 -4
- package/router-outlet/package.json +0 -4
- package/section-header/package.json +0 -4
- package/segmented-control/package.json +0 -4
- package/shared/floating/package.json +0 -4
- package/shared/package.json +0 -4
- package/shared/portal/package.json +0 -4
- package/slide/package.json +0 -4
- package/slide-button/package.json +0 -4
- package/spinner/package.json +0 -4
- package/tab-navigation/package.json +0 -4
- package/tabs/package.json +0 -4
- package/testing/package.json +0 -4
- package/testing-base/package.json +0 -4
- package/testing-jasmine/package.json +0 -4
- package/testing-jest/package.json +0 -4
- package/toast/package.json +0 -4
- package/toggle/package.json +0 -4
- package/toggle-button/package.json +0 -4
- package/types/package.json +0 -4
|
@@ -1,904 +1,1263 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import * as i1
|
|
4
|
-
import {
|
|
5
|
-
import { RadioGroupComponent } from
|
|
6
|
-
import * as i2 from
|
|
7
|
-
import { FORM_FIELD_CONTROL } from
|
|
8
|
-
import {
|
|
9
|
-
import { IconComponent, IconModule } from
|
|
10
|
-
import { NG_VALUE_ACCESSOR } from
|
|
11
|
-
import Inputmask from
|
|
12
|
-
import {
|
|
13
|
-
import * as i1 from
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, Directive, EventEmitter, HostBinding, HostListener, Inject, Input, LOCALE_ID, NgModule, Optional, Output } from "@angular/core";
|
|
3
|
+
import * as i1 from "@kirbydesign/designsystem/helpers";
|
|
4
|
+
import { DesignTokenHelper, UniqueIdGenerator, extendValueAccessors } from "@kirbydesign/designsystem/helpers";
|
|
5
|
+
import { RadioGroupComponent } from "@kirbydesign/designsystem/radio";
|
|
6
|
+
import * as i2 from "@kirbydesign/designsystem/types";
|
|
7
|
+
import { FORM_FIELD_CONTROL } from "@kirbydesign/designsystem/types";
|
|
8
|
+
import { CommonModule, FormatWidth, NgTemplateOutlet, NumberSymbol, getLocaleDateFormat, getLocaleNumberSymbol } from "@angular/common";
|
|
9
|
+
import { IconComponent, IconModule } from "@kirbydesign/designsystem/icon";
|
|
10
|
+
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
11
|
+
import Inputmask from "inputmask";
|
|
12
|
+
import { debounceTime, filter, tap } from "rxjs";
|
|
13
|
+
import * as i1$1 from "@kirbydesign/designsystem/shared";
|
|
14
|
+
var AffixDirective = class AffixDirective {
|
|
15
|
+
constructor(el) {
|
|
16
|
+
this.el = el;
|
|
17
|
+
}
|
|
18
|
+
static {
|
|
19
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
20
|
+
minVersion: "12.0.0",
|
|
21
|
+
version: "22.2.2",
|
|
22
|
+
ngImport: i0,
|
|
23
|
+
type: AffixDirective,
|
|
24
|
+
deps: [{ token: i0.ElementRef }],
|
|
25
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
static {
|
|
29
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
30
|
+
minVersion: "14.0.0",
|
|
31
|
+
version: "22.2.2",
|
|
32
|
+
type: AffixDirective,
|
|
33
|
+
isStandalone: true,
|
|
34
|
+
selector: "[kirby-affix]",
|
|
35
|
+
inputs: { type: ["kirby-affix", "type"] },
|
|
36
|
+
ngImport: i0
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
41
|
+
minVersion: "12.0.0",
|
|
42
|
+
version: "22.2.2",
|
|
43
|
+
ngImport: i0,
|
|
44
|
+
type: AffixDirective,
|
|
45
|
+
decorators: [{
|
|
46
|
+
type: Directive,
|
|
47
|
+
args: [{ selector: "[kirby-affix]" }]
|
|
48
|
+
}],
|
|
49
|
+
ctorParameters: () => [{ type: i0.ElementRef }],
|
|
50
|
+
propDecorators: { type: [{
|
|
51
|
+
type: Input,
|
|
52
|
+
args: ["kirby-affix"]
|
|
53
|
+
}] }
|
|
54
|
+
});
|
|
55
|
+
var DateInputDirective = class DateInputDirective {
|
|
56
|
+
onInput() {
|
|
57
|
+
if (!this.isDateInput) return;
|
|
58
|
+
if (this.enableInputMask) this.updateMask(this.elementRef.nativeElement.value);
|
|
59
|
+
}
|
|
60
|
+
constructor(elementRef, renderer, locale, valueAccessors) {
|
|
61
|
+
this.elementRef = elementRef;
|
|
62
|
+
this.renderer = renderer;
|
|
63
|
+
this.locale = locale;
|
|
64
|
+
this.prefillYear = false;
|
|
65
|
+
this.useNativeDatePicker = false;
|
|
66
|
+
this.isDateInput = false;
|
|
67
|
+
this.enableInputMask = false;
|
|
68
|
+
this.isDateInput = this.elementRef.nativeElement.type === "date";
|
|
69
|
+
if (this.isDateInput) {
|
|
70
|
+
this.elementRef.nativeElement.removeAttribute("type");
|
|
71
|
+
extendValueAccessors(valueAccessors, { writeValue: { afterWriteValue: (value) => this.updateMask(value) } });
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
ngOnChanges(changes) {
|
|
75
|
+
if (changes.dateValue && this.isDateInput && this.maskingElement) {
|
|
76
|
+
const newValue = changes.dateValue.currentValue;
|
|
77
|
+
this.updateMask(newValue);
|
|
78
|
+
if (newValue != null) this.inputmask?.setValue(newValue);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
ngAfterViewInit() {
|
|
82
|
+
if (!this.isDateInput) return;
|
|
83
|
+
this.enableInputMask = !this.useNativeDatePicker;
|
|
84
|
+
if (this.enableInputMask) {
|
|
85
|
+
this.initMask();
|
|
86
|
+
if (this.dateValue && this.inputmask) {
|
|
87
|
+
this.updateMask(this.dateValue);
|
|
88
|
+
this.inputmask.setValue(this.dateValue);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
if (this.useNativeDatePicker) this.elementRef.nativeElement.setAttribute("type", "date");
|
|
92
|
+
}
|
|
93
|
+
initMask() {
|
|
94
|
+
const inputFormat = this.getInputFormat();
|
|
95
|
+
const placeholder = this.getPlaceholder(inputFormat);
|
|
96
|
+
this.renderer.setAttribute(this.elementRef.nativeElement, "placeholder", placeholder);
|
|
97
|
+
new Inputmask("datetime", {
|
|
98
|
+
inputFormat,
|
|
99
|
+
placeholder,
|
|
100
|
+
prefillYear: this.prefillYear
|
|
101
|
+
}).mask(this.elementRef.nativeElement);
|
|
102
|
+
this.inputmask = this.elementRef.nativeElement.inputmask;
|
|
103
|
+
this.appendMaskingElement();
|
|
104
|
+
}
|
|
105
|
+
getInputFormat() {
|
|
106
|
+
return getLocaleDateFormat(this.locale, FormatWidth.Short).toLowerCase().replace(/d+/, "dd").replace(/m+/, "MM").replace(/y+/, "yyyy");
|
|
107
|
+
}
|
|
108
|
+
getPlaceholder(inputFormat) {
|
|
109
|
+
const placeholder = inputFormat.toLowerCase();
|
|
110
|
+
return this.locale === "da" ? placeholder.split("y").join("å") : placeholder;
|
|
111
|
+
}
|
|
112
|
+
appendMaskingElement() {
|
|
113
|
+
const wrapper = this.wrapElement(this.elementRef.nativeElement);
|
|
114
|
+
this.renderer.addClass(wrapper, "date-mask-wrapper");
|
|
115
|
+
this.maskingElement = this.renderer.createElement("div");
|
|
116
|
+
this.renderer.appendChild(wrapper, this.maskingElement);
|
|
117
|
+
this.renderer.addClass(this.maskingElement, "date-mask");
|
|
118
|
+
}
|
|
119
|
+
wrapElement(element) {
|
|
120
|
+
const wrapper = this.renderer.createElement("div");
|
|
121
|
+
const parent = element.parentElement;
|
|
122
|
+
this.renderer.insertBefore(parent, wrapper, element);
|
|
123
|
+
this.renderer.appendChild(wrapper, element);
|
|
124
|
+
return wrapper;
|
|
125
|
+
}
|
|
126
|
+
updateMask(value) {
|
|
127
|
+
if (!this.maskingElement) return;
|
|
128
|
+
if (!value) {
|
|
129
|
+
this.maskingElement.innerHTML = "";
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
const lastNumber = value.match(/.*?(\d)[^\d]*$/);
|
|
133
|
+
this.maskingElement.innerHTML = lastNumber ? value.slice(0, value.lastIndexOf(lastNumber[1]) + 1) : "";
|
|
134
|
+
}
|
|
135
|
+
static {
|
|
136
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
137
|
+
minVersion: "12.0.0",
|
|
138
|
+
version: "22.2.2",
|
|
139
|
+
ngImport: i0,
|
|
140
|
+
type: DateInputDirective,
|
|
141
|
+
deps: [
|
|
142
|
+
{ token: i0.ElementRef },
|
|
143
|
+
{ token: i0.Renderer2 },
|
|
144
|
+
{ token: LOCALE_ID },
|
|
145
|
+
{
|
|
146
|
+
token: NG_VALUE_ACCESSOR,
|
|
147
|
+
optional: true
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
static {
|
|
154
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
155
|
+
minVersion: "14.0.0",
|
|
156
|
+
version: "22.2.2",
|
|
157
|
+
type: DateInputDirective,
|
|
158
|
+
isStandalone: true,
|
|
159
|
+
inputs: {
|
|
160
|
+
prefillYear: "prefillYear",
|
|
161
|
+
useNativeDatePicker: "useNativeDatePicker",
|
|
162
|
+
dateValue: "dateValue"
|
|
163
|
+
},
|
|
164
|
+
host: { listeners: { "input": "onInput()" } },
|
|
165
|
+
usesOnChanges: true,
|
|
166
|
+
ngImport: i0
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
171
|
+
minVersion: "12.0.0",
|
|
172
|
+
version: "22.2.2",
|
|
173
|
+
ngImport: i0,
|
|
174
|
+
type: DateInputDirective,
|
|
175
|
+
decorators: [{
|
|
176
|
+
type: Directive,
|
|
177
|
+
args: [{}]
|
|
178
|
+
}],
|
|
179
|
+
ctorParameters: () => [
|
|
180
|
+
{ type: i0.ElementRef },
|
|
181
|
+
{ type: i0.Renderer2 },
|
|
182
|
+
{
|
|
183
|
+
type: void 0,
|
|
184
|
+
decorators: [{
|
|
185
|
+
type: Inject,
|
|
186
|
+
args: [LOCALE_ID]
|
|
187
|
+
}]
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
type: void 0,
|
|
191
|
+
decorators: [{ type: Optional }, {
|
|
192
|
+
type: Inject,
|
|
193
|
+
args: [NG_VALUE_ACCESSOR]
|
|
194
|
+
}]
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
propDecorators: {
|
|
198
|
+
onInput: [{
|
|
199
|
+
type: HostListener,
|
|
200
|
+
args: ["input"]
|
|
201
|
+
}],
|
|
202
|
+
prefillYear: [{ type: Input }],
|
|
203
|
+
useNativeDatePicker: [{ type: Input }],
|
|
204
|
+
dateValue: [{ type: Input }]
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
var FormFieldMessageComponent = class FormFieldMessageComponent {
|
|
208
|
+
constructor() {
|
|
209
|
+
this.position = "left";
|
|
210
|
+
}
|
|
211
|
+
static {
|
|
212
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
213
|
+
minVersion: "12.0.0",
|
|
214
|
+
version: "22.2.2",
|
|
215
|
+
ngImport: i0,
|
|
216
|
+
type: FormFieldMessageComponent,
|
|
217
|
+
deps: [],
|
|
218
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
static {
|
|
222
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
223
|
+
minVersion: "14.0.0",
|
|
224
|
+
version: "22.2.2",
|
|
225
|
+
type: FormFieldMessageComponent,
|
|
226
|
+
isStandalone: true,
|
|
227
|
+
selector: "kirby-form-field-message",
|
|
228
|
+
inputs: {
|
|
229
|
+
text: "text",
|
|
230
|
+
position: "position"
|
|
231
|
+
},
|
|
232
|
+
ngImport: i0,
|
|
233
|
+
template: "{{ text }}\n<ng-content></ng-content>\n",
|
|
234
|
+
styles: [":host{font-style:italic;font-size:var(--kirby-font-size-xs);font-weight:var(--kirby-font-weight-normal);font-stretch:normal;line-height:var(--kirby-line-height-xs);min-height:var(--kirby-relative-size-s);letter-spacing:normal;color:var(--kirby-color-content-base)}\n"],
|
|
235
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
240
|
+
minVersion: "12.0.0",
|
|
241
|
+
version: "22.2.2",
|
|
242
|
+
ngImport: i0,
|
|
243
|
+
type: FormFieldMessageComponent,
|
|
244
|
+
decorators: [{
|
|
245
|
+
type: Component,
|
|
246
|
+
args: [{
|
|
247
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
248
|
+
selector: "kirby-form-field-message",
|
|
249
|
+
template: "{{ text }}\n<ng-content></ng-content>\n",
|
|
250
|
+
styles: [":host{font-style:italic;font-size:var(--kirby-font-size-xs);font-weight:var(--kirby-font-weight-normal);font-stretch:normal;line-height:var(--kirby-line-height-xs);min-height:var(--kirby-relative-size-s);letter-spacing:normal;color:var(--kirby-color-content-base)}\n"]
|
|
251
|
+
}]
|
|
252
|
+
}],
|
|
253
|
+
propDecorators: {
|
|
254
|
+
text: [{ type: Input }],
|
|
255
|
+
position: [{ type: Input }]
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
var InputCounterComponent = class InputCounterComponent {
|
|
259
|
+
get text() {
|
|
260
|
+
if (this.length === void 0) return;
|
|
261
|
+
const ofMaxlength = this.maxlength ? `/${this.maxlength}` : "";
|
|
262
|
+
return `${this.length}${ofMaxlength}`;
|
|
263
|
+
}
|
|
264
|
+
constructor(translations, cdr) {
|
|
265
|
+
this.translations = translations;
|
|
266
|
+
this.cdr = cdr;
|
|
267
|
+
this.skipNextAnnouncement = false;
|
|
268
|
+
}
|
|
269
|
+
ngAfterViewInit() {
|
|
270
|
+
if (this.listenTo) {
|
|
271
|
+
const initialValue = this.listenTo.nativeValue ?? this.listenTo.value ?? "";
|
|
272
|
+
this.length = initialValue.length;
|
|
273
|
+
this.skipNextAnnouncement = this.length > 0;
|
|
274
|
+
this.maxlength = this.listenTo.maxlength ? +this.listenTo.maxlength : void 0;
|
|
275
|
+
this.cdr.detectChanges();
|
|
276
|
+
this._inputChangeSubscription = this.listenTo.kirbyChange.pipe(tap((value) => this.length = value?.length || 0), filter(() => this.skipAnnouncement()), debounceTime(1e3)).subscribe(() => {
|
|
277
|
+
this.announceText();
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
skipAnnouncement() {
|
|
282
|
+
if (this.skipNextAnnouncement) {
|
|
283
|
+
this.skipNextAnnouncement = false;
|
|
284
|
+
return false;
|
|
285
|
+
}
|
|
286
|
+
return true;
|
|
287
|
+
}
|
|
288
|
+
ngOnDestroy() {
|
|
289
|
+
this._inputChangeSubscription?.unsubscribe();
|
|
290
|
+
}
|
|
291
|
+
announceText() {
|
|
292
|
+
const characters = this.translations.get("characters");
|
|
293
|
+
const entered = this.translations.get("entered");
|
|
294
|
+
if (this.maxlength === void 0) this.textToAnnounce = `${characters} ${this.length} ${entered}`;
|
|
295
|
+
else {
|
|
296
|
+
const outOf = this.translations.get("outOf");
|
|
297
|
+
this.textToAnnounce = `${characters} ${this.length} ${outOf} ${this.maxlength} ${entered}`;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
static {
|
|
301
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
302
|
+
minVersion: "12.0.0",
|
|
303
|
+
version: "22.2.2",
|
|
304
|
+
ngImport: i0,
|
|
305
|
+
type: InputCounterComponent,
|
|
306
|
+
deps: [{ token: i1$1.TranslationService }, { token: i0.ChangeDetectorRef }],
|
|
307
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
static {
|
|
311
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
312
|
+
minVersion: "14.0.0",
|
|
313
|
+
version: "22.2.2",
|
|
314
|
+
type: InputCounterComponent,
|
|
315
|
+
isStandalone: true,
|
|
316
|
+
selector: "kirby-input-counter",
|
|
317
|
+
inputs: { listenTo: "listenTo" },
|
|
318
|
+
ngImport: i0,
|
|
319
|
+
template: "<kirby-form-field-message [text]=\"text\"></kirby-form-field-message>\n<div class=\"kirby-visually-hidden\" aria-live=\"polite\">{{ textToAnnounce }}</div>\n",
|
|
320
|
+
dependencies: [{
|
|
321
|
+
kind: "component",
|
|
322
|
+
type: FormFieldMessageComponent,
|
|
323
|
+
selector: "kirby-form-field-message",
|
|
324
|
+
inputs: ["text", "position"]
|
|
325
|
+
}],
|
|
326
|
+
changeDetection: i0.ChangeDetectionStrategy.Eager
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
331
|
+
minVersion: "12.0.0",
|
|
332
|
+
version: "22.2.2",
|
|
333
|
+
ngImport: i0,
|
|
334
|
+
type: InputCounterComponent,
|
|
335
|
+
decorators: [{
|
|
336
|
+
type: Component,
|
|
337
|
+
args: [{
|
|
338
|
+
selector: "kirby-input-counter",
|
|
339
|
+
imports: [FormFieldMessageComponent],
|
|
340
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
341
|
+
template: "<kirby-form-field-message [text]=\"text\"></kirby-form-field-message>\n<div class=\"kirby-visually-hidden\" aria-live=\"polite\">{{ textToAnnounce }}</div>\n"
|
|
342
|
+
}]
|
|
343
|
+
}],
|
|
344
|
+
ctorParameters: () => [{ type: i1$1.TranslationService }, { type: i0.ChangeDetectorRef }],
|
|
345
|
+
propDecorators: { listenTo: [{ type: Input }] }
|
|
346
|
+
});
|
|
265
347
|
var InputSize;
|
|
266
|
-
(function
|
|
267
|
-
|
|
268
|
-
|
|
348
|
+
(function(InputSize) {
|
|
349
|
+
InputSize["medium"] = "md";
|
|
350
|
+
InputSize["large"] = "lg";
|
|
269
351
|
})(InputSize || (InputSize = {}));
|
|
270
|
-
class InputComponent {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
352
|
+
var InputComponent = class InputComponent {
|
|
353
|
+
set type(value) {
|
|
354
|
+
const mappedValue = InputComponent.typeToInputmodeMap[value];
|
|
355
|
+
if (mappedValue && !this.inputmode) this.inputmode = mappedValue;
|
|
356
|
+
}
|
|
357
|
+
get hasError() {
|
|
358
|
+
return this._hasError;
|
|
359
|
+
}
|
|
360
|
+
set hasError(value) {
|
|
361
|
+
if (this._hasError !== value) {
|
|
362
|
+
this._hasError = value;
|
|
363
|
+
this.hasErrorChange.emit(this._hasError);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
get nativeValue() {
|
|
367
|
+
return this.elementRef?.nativeElement?.value;
|
|
368
|
+
}
|
|
369
|
+
get interactiveElement() {
|
|
370
|
+
return this.elementRef?.nativeElement;
|
|
371
|
+
}
|
|
372
|
+
constructor(elementRef, builtInValueAccessors) {
|
|
373
|
+
this.elementRef = elementRef;
|
|
374
|
+
this.kirbyChange = new EventEmitter();
|
|
375
|
+
this._hasError = false;
|
|
376
|
+
this.size = InputSize.large;
|
|
377
|
+
this.autocomplete = "off";
|
|
378
|
+
this.autocorrect = "off";
|
|
379
|
+
this.hasErrorChange = new EventEmitter();
|
|
380
|
+
extendValueAccessors(builtInValueAccessors, { writeValue: { afterWriteValue: (value) => this.kirbyChange.emit(value) } });
|
|
381
|
+
}
|
|
382
|
+
ngOnInit() {
|
|
383
|
+
setTimeout(() => {
|
|
384
|
+
const inputValue = this.elementRef.nativeElement.value;
|
|
385
|
+
if (inputValue) this.kirbyChange.emit(inputValue);
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
ngOnChanges(changes) {
|
|
389
|
+
if (changes.value) this.kirbyChange.emit(changes.value.currentValue);
|
|
390
|
+
}
|
|
391
|
+
static {
|
|
392
|
+
this.typeToInputmodeMap = {
|
|
393
|
+
number: "decimal",
|
|
394
|
+
search: "search"
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
_onKeyUp(value) {
|
|
398
|
+
this.kirbyChange.emit(value);
|
|
399
|
+
}
|
|
400
|
+
_onCutPaste(target) {
|
|
401
|
+
setTimeout(() => this.kirbyChange.emit(target.value));
|
|
402
|
+
}
|
|
403
|
+
static {
|
|
404
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
405
|
+
minVersion: "12.0.0",
|
|
406
|
+
version: "22.2.2",
|
|
407
|
+
ngImport: i0,
|
|
408
|
+
type: InputComponent,
|
|
409
|
+
deps: [{ token: i0.ElementRef }, {
|
|
410
|
+
token: NG_VALUE_ACCESSOR,
|
|
411
|
+
optional: true
|
|
412
|
+
}],
|
|
413
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
static {
|
|
417
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
418
|
+
minVersion: "14.0.0",
|
|
419
|
+
version: "22.2.2",
|
|
420
|
+
type: InputComponent,
|
|
421
|
+
isStandalone: true,
|
|
422
|
+
selector: "input[kirby-input]",
|
|
423
|
+
inputs: {
|
|
424
|
+
type: "type",
|
|
425
|
+
size: "size",
|
|
426
|
+
borderless: "borderless",
|
|
427
|
+
hasError: "hasError",
|
|
428
|
+
autocomplete: "autocomplete",
|
|
429
|
+
autocorrect: "autocorrect",
|
|
430
|
+
value: "value",
|
|
431
|
+
maxlength: "maxlength",
|
|
432
|
+
inputmode: "inputmode"
|
|
433
|
+
},
|
|
434
|
+
outputs: { hasErrorChange: "hasErrorChange" },
|
|
435
|
+
host: {
|
|
436
|
+
listeners: {
|
|
437
|
+
"keyup": "_onKeyUp($event.target.value)",
|
|
438
|
+
"paste": "_onCutPaste($event.target)",
|
|
439
|
+
"cut": "_onCutPaste($event.target)"
|
|
440
|
+
},
|
|
441
|
+
properties: {
|
|
442
|
+
"class": "this.size",
|
|
443
|
+
"class.borderless": "this.borderless",
|
|
444
|
+
"attr.aria-invalid": "this.hasError",
|
|
445
|
+
"class.error": "this.hasError",
|
|
446
|
+
"attr.autocomplete": "this.autocomplete",
|
|
447
|
+
"attr.autocorrect": "this.autocorrect",
|
|
448
|
+
"attr.value": "this.value",
|
|
449
|
+
"attr.maxlength": "this.maxlength",
|
|
450
|
+
"attr.inputmode": "this.inputmode"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
providers: [{
|
|
454
|
+
provide: FORM_FIELD_CONTROL,
|
|
455
|
+
useExisting: InputComponent
|
|
456
|
+
}],
|
|
457
|
+
usesOnChanges: true,
|
|
458
|
+
hostDirectives: [{
|
|
459
|
+
directive: DateInputDirective,
|
|
460
|
+
inputs: [
|
|
461
|
+
"prefillYear",
|
|
462
|
+
"prefillYear",
|
|
463
|
+
"useNativeDatePicker",
|
|
464
|
+
"useNativeDatePicker",
|
|
465
|
+
"dateValue",
|
|
466
|
+
"value"
|
|
467
|
+
]
|
|
468
|
+
}],
|
|
469
|
+
ngImport: i0,
|
|
470
|
+
template: "",
|
|
471
|
+
isInline: true,
|
|
472
|
+
styles: [".kirby-line-clamp{display:-webkit-box;-webkit-line-clamp:var(--line-clamp, none);-webkit-box-orient:vertical;overflow:hidden}:host(.cloned-input){pointer-events:none;position:absolute;top:0;left:0}:host-context(label).cloned-input{top:24px}:host-context(ion-modal).cloned-input{top:0!important;transform:none!important}:host.error{border-color:var(--kirby-color-border-raised-danger);box-shadow:var(--kirby-error-ring-combined-inset)}@media(hover:hover){:host:not(:disabled):hover{background-color:var(--kirby-color-fill-raised-hover);border-color:var(--kirby-input-color-border-raised-hover);cursor:text}:host:not(:disabled):hover::placeholder{color:var(--kirby-color-content-raised-quiet-hover)}}:host:not(:disabled):active{border-color:var(--kirby-color-border-raised-loud)}:host:not(:disabled).error{border-color:var(--kirby-color-border-raised-danger);box-shadow:var(--kirby-error-ring-combined-inset)}:host:not(:disabled):focus-visible{box-shadow:var(--kirby-focus-ring-md-combined-inset);border-color:var(--kirby-color-border-focus)}:host:not(:disabled){transition:all 80ms linear 0ms;transition-property:background-color,border-color,box-shadow}:host{background-color:var(--kirby-color-fill-raised);color:var(--kirby-color-content-raised);border:1px solid var(--kirby-input-color-border-raised);box-sizing:border-box;font-family:var(--kirby-font-family);font-size:1rem;line-height:var(--kirby-line-height-n);outline:none;margin:0;-webkit-appearance:none;appearance:none;border-radius:var(--kirby-border-radius-n);padding:calc(var(--kirby-spacing-s) - 1px);width:100%}:host.borderless{border-radius:0;padding-inline:0;width:auto}:host:disabled{opacity:.4}:host::placeholder{color:var(--kirby-color-content-raised-quiet)}@supports not (selector(::-webkit-date-and-time-value)){:host(input[type=date]::-webkit-date-and-time-value){min-height:calc(var(--kirby-line-height-n) * 1em);text-align:start}}:host[type=date]::-webkit-calendar-picker-indicator{display:none}:host[type=date]::ng-deep+.suffix{cursor:pointer}@supports (-moz-appearance: none){:host[type=date]::ng-deep+.suffix kirby-icon{display:none}}:host[type=number]{-webkit-appearance:textfield;appearance:textfield}:host::-webkit-outer-spin-button,:host::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}:host(.md){border-radius:var(--kirby-border-radius-l);padding-block:calc(calc(var(--kirby-spacing-s) * .5) - 1px)}:host-context(kirby-item kirby-form-field[slot=end])[type=number]{font-weight:var(--kirby-font-weight-bold)}.date-mask-wrapper{position:relative}:host-context(.date-mask-wrapper){color:var(--kirby-color-content-raised-quiet)}.date-mask{font-family:var(--kirby-font-family);line-height:var(--kirby-line-height-n);font-size:var(--kirby-font-size-n);color:var(--kirby-color-content-raised);position:absolute;top:0;left:0;padding:var(--kirby-spacing-s)}:host(.md)+.date-mask{padding-block:calc(var(--kirby-spacing-s) * .5)}\n"],
|
|
473
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
478
|
+
minVersion: "12.0.0",
|
|
479
|
+
version: "22.2.2",
|
|
480
|
+
ngImport: i0,
|
|
481
|
+
type: InputComponent,
|
|
482
|
+
decorators: [{
|
|
483
|
+
type: Component,
|
|
484
|
+
args: [{
|
|
485
|
+
hostDirectives: [{
|
|
486
|
+
directive: DateInputDirective,
|
|
487
|
+
inputs: [
|
|
488
|
+
"prefillYear",
|
|
489
|
+
"useNativeDatePicker",
|
|
490
|
+
"dateValue: value"
|
|
491
|
+
]
|
|
492
|
+
}],
|
|
493
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
494
|
+
selector: "input[kirby-input]",
|
|
495
|
+
template: "",
|
|
496
|
+
providers: [{
|
|
497
|
+
provide: FORM_FIELD_CONTROL,
|
|
498
|
+
useExisting: InputComponent
|
|
499
|
+
}],
|
|
500
|
+
styles: [".kirby-line-clamp{display:-webkit-box;-webkit-line-clamp:var(--line-clamp, none);-webkit-box-orient:vertical;overflow:hidden}:host(.cloned-input){pointer-events:none;position:absolute;top:0;left:0}:host-context(label).cloned-input{top:24px}:host-context(ion-modal).cloned-input{top:0!important;transform:none!important}:host.error{border-color:var(--kirby-color-border-raised-danger);box-shadow:var(--kirby-error-ring-combined-inset)}@media(hover:hover){:host:not(:disabled):hover{background-color:var(--kirby-color-fill-raised-hover);border-color:var(--kirby-input-color-border-raised-hover);cursor:text}:host:not(:disabled):hover::placeholder{color:var(--kirby-color-content-raised-quiet-hover)}}:host:not(:disabled):active{border-color:var(--kirby-color-border-raised-loud)}:host:not(:disabled).error{border-color:var(--kirby-color-border-raised-danger);box-shadow:var(--kirby-error-ring-combined-inset)}:host:not(:disabled):focus-visible{box-shadow:var(--kirby-focus-ring-md-combined-inset);border-color:var(--kirby-color-border-focus)}:host:not(:disabled){transition:all 80ms linear 0ms;transition-property:background-color,border-color,box-shadow}:host{background-color:var(--kirby-color-fill-raised);color:var(--kirby-color-content-raised);border:1px solid var(--kirby-input-color-border-raised);box-sizing:border-box;font-family:var(--kirby-font-family);font-size:1rem;line-height:var(--kirby-line-height-n);outline:none;margin:0;-webkit-appearance:none;appearance:none;border-radius:var(--kirby-border-radius-n);padding:calc(var(--kirby-spacing-s) - 1px);width:100%}:host.borderless{border-radius:0;padding-inline:0;width:auto}:host:disabled{opacity:.4}:host::placeholder{color:var(--kirby-color-content-raised-quiet)}@supports not (selector(::-webkit-date-and-time-value)){:host(input[type=date]::-webkit-date-and-time-value){min-height:calc(var(--kirby-line-height-n) * 1em);text-align:start}}:host[type=date]::-webkit-calendar-picker-indicator{display:none}:host[type=date]::ng-deep+.suffix{cursor:pointer}@supports (-moz-appearance: none){:host[type=date]::ng-deep+.suffix kirby-icon{display:none}}:host[type=number]{-webkit-appearance:textfield;appearance:textfield}:host::-webkit-outer-spin-button,:host::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}:host(.md){border-radius:var(--kirby-border-radius-l);padding-block:calc(calc(var(--kirby-spacing-s) * .5) - 1px)}:host-context(kirby-item kirby-form-field[slot=end])[type=number]{font-weight:var(--kirby-font-weight-bold)}.date-mask-wrapper{position:relative}:host-context(.date-mask-wrapper){color:var(--kirby-color-content-raised-quiet)}.date-mask{font-family:var(--kirby-font-family);line-height:var(--kirby-line-height-n);font-size:var(--kirby-font-size-n);color:var(--kirby-color-content-raised);position:absolute;top:0;left:0;padding:var(--kirby-spacing-s)}:host(.md)+.date-mask{padding-block:calc(var(--kirby-spacing-s) * .5)}\n"]
|
|
501
|
+
}]
|
|
502
|
+
}],
|
|
503
|
+
ctorParameters: () => [{ type: i0.ElementRef }, {
|
|
504
|
+
type: void 0,
|
|
505
|
+
decorators: [{ type: Optional }, {
|
|
506
|
+
type: Inject,
|
|
507
|
+
args: [NG_VALUE_ACCESSOR]
|
|
508
|
+
}]
|
|
509
|
+
}],
|
|
510
|
+
propDecorators: {
|
|
511
|
+
type: [{ type: Input }],
|
|
512
|
+
size: [{
|
|
513
|
+
type: HostBinding,
|
|
514
|
+
args: ["class"]
|
|
515
|
+
}, { type: Input }],
|
|
516
|
+
borderless: [{
|
|
517
|
+
type: HostBinding,
|
|
518
|
+
args: ["class.borderless"]
|
|
519
|
+
}, { type: Input }],
|
|
520
|
+
hasError: [
|
|
521
|
+
{
|
|
522
|
+
type: HostBinding,
|
|
523
|
+
args: ["attr.aria-invalid"]
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
type: HostBinding,
|
|
527
|
+
args: ["class.error"]
|
|
528
|
+
},
|
|
529
|
+
{ type: Input }
|
|
530
|
+
],
|
|
531
|
+
autocomplete: [{
|
|
532
|
+
type: HostBinding,
|
|
533
|
+
args: ["attr.autocomplete"]
|
|
534
|
+
}, { type: Input }],
|
|
535
|
+
autocorrect: [{
|
|
536
|
+
type: HostBinding,
|
|
537
|
+
args: ["attr.autocorrect"]
|
|
538
|
+
}, { type: Input }],
|
|
539
|
+
value: [{
|
|
540
|
+
type: HostBinding,
|
|
541
|
+
args: ["attr.value"]
|
|
542
|
+
}, { type: Input }],
|
|
543
|
+
maxlength: [{
|
|
544
|
+
type: HostBinding,
|
|
545
|
+
args: ["attr.maxlength"]
|
|
546
|
+
}, { type: Input }],
|
|
547
|
+
inputmode: [{
|
|
548
|
+
type: HostBinding,
|
|
549
|
+
args: ["attr.inputmode"]
|
|
550
|
+
}, { type: Input }],
|
|
551
|
+
hasErrorChange: [{ type: Output }],
|
|
552
|
+
_onKeyUp: [{
|
|
553
|
+
type: HostListener,
|
|
554
|
+
args: ["keyup", ["$event.target.value"]]
|
|
555
|
+
}],
|
|
556
|
+
_onCutPaste: [{
|
|
557
|
+
type: HostListener,
|
|
558
|
+
args: ["paste", ["$event.target"]]
|
|
559
|
+
}, {
|
|
560
|
+
type: HostListener,
|
|
561
|
+
args: ["cut", ["$event.target"]]
|
|
562
|
+
}]
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
var TextareaComponent = class TextareaComponent {
|
|
566
|
+
get hasError() {
|
|
567
|
+
return this._hasError;
|
|
568
|
+
}
|
|
569
|
+
set hasError(value) {
|
|
570
|
+
if (this._hasError !== value) {
|
|
571
|
+
this._hasError = value;
|
|
572
|
+
this.hasErrorChange.emit(this._hasError);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
get nativeValue() {
|
|
576
|
+
return this.elementRef?.nativeElement?.value;
|
|
577
|
+
}
|
|
578
|
+
get interactiveElement() {
|
|
579
|
+
return this.elementRef?.nativeElement;
|
|
580
|
+
}
|
|
581
|
+
constructor(elementRef, builtInValueAccessors) {
|
|
582
|
+
this.elementRef = elementRef;
|
|
583
|
+
this.kirbyChange = new EventEmitter();
|
|
584
|
+
this._hasError = false;
|
|
585
|
+
this.autocomplete = "off";
|
|
586
|
+
this.autocorrect = "off";
|
|
587
|
+
this.hasErrorChange = new EventEmitter();
|
|
588
|
+
extendValueAccessors(builtInValueAccessors, { writeValue: { afterWriteValue: (value) => this.kirbyChange.emit(value) } });
|
|
589
|
+
}
|
|
590
|
+
ngOnInit() {
|
|
591
|
+
setTimeout(() => {
|
|
592
|
+
const inputValue = this.elementRef.nativeElement.value;
|
|
593
|
+
if (inputValue) this.kirbyChange.emit(inputValue);
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
ngOnChanges(changes) {
|
|
597
|
+
if (changes.value) this.kirbyChange.emit(changes.value.currentValue);
|
|
598
|
+
}
|
|
599
|
+
_onKeyUp(value) {
|
|
600
|
+
this.kirbyChange.emit(value);
|
|
601
|
+
}
|
|
602
|
+
_onCutPaste(target) {
|
|
603
|
+
setTimeout(() => this.kirbyChange.emit(target.value));
|
|
604
|
+
}
|
|
605
|
+
static {
|
|
606
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
607
|
+
minVersion: "12.0.0",
|
|
608
|
+
version: "22.2.2",
|
|
609
|
+
ngImport: i0,
|
|
610
|
+
type: TextareaComponent,
|
|
611
|
+
deps: [{ token: i0.ElementRef }, {
|
|
612
|
+
token: NG_VALUE_ACCESSOR,
|
|
613
|
+
optional: true
|
|
614
|
+
}],
|
|
615
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
static {
|
|
619
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
620
|
+
minVersion: "17.0.0",
|
|
621
|
+
version: "22.2.2",
|
|
622
|
+
type: TextareaComponent,
|
|
623
|
+
isStandalone: true,
|
|
624
|
+
selector: "textarea[kirby-textarea]",
|
|
625
|
+
inputs: {
|
|
626
|
+
value: "value",
|
|
627
|
+
borderless: "borderless",
|
|
628
|
+
hasError: "hasError",
|
|
629
|
+
autocomplete: "autocomplete",
|
|
630
|
+
autocorrect: "autocorrect",
|
|
631
|
+
maxlength: "maxlength"
|
|
632
|
+
},
|
|
633
|
+
outputs: { hasErrorChange: "hasErrorChange" },
|
|
634
|
+
host: {
|
|
635
|
+
listeners: {
|
|
636
|
+
"keyup": "_onKeyUp($event.target.value)",
|
|
637
|
+
"paste": "_onCutPaste($event.target)",
|
|
638
|
+
"cut": "_onCutPaste($event.target)"
|
|
639
|
+
},
|
|
640
|
+
properties: {
|
|
641
|
+
"attr.value": "this.value",
|
|
642
|
+
"class.borderless": "this.borderless",
|
|
643
|
+
"attr.aria-invalid": "this.hasError",
|
|
644
|
+
"class.error": "this.hasError",
|
|
645
|
+
"attr.autocomplete": "this.autocomplete",
|
|
646
|
+
"attr.autocorrect": "this.autocorrect",
|
|
647
|
+
"attr.maxlength": "this.maxlength"
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
providers: [{
|
|
651
|
+
provide: FORM_FIELD_CONTROL,
|
|
652
|
+
useExisting: TextareaComponent
|
|
653
|
+
}],
|
|
654
|
+
usesOnChanges: true,
|
|
655
|
+
ngImport: i0,
|
|
656
|
+
template: "@if (!value) {\n <ng-content></ng-content>\n}\n<!-- prettier-ignore -->\n@if (value) {{{value}}}\n",
|
|
657
|
+
styles: [".kirby-line-clamp{display:-webkit-box;-webkit-line-clamp:var(--line-clamp, none);-webkit-box-orient:vertical;overflow:hidden}:host(.cloned-input){pointer-events:none;position:absolute;top:0;left:0}:host-context(label).cloned-input{top:24px}:host-context(ion-modal).cloned-input{top:0!important;transform:none!important}:host.error{border-color:var(--kirby-color-border-raised-danger);box-shadow:var(--kirby-error-ring-combined-inset)}@media(hover:hover){:host:not(:disabled):hover{background-color:var(--kirby-color-fill-raised-hover);border-color:var(--kirby-input-color-border-raised-hover);cursor:text}:host:not(:disabled):hover::placeholder{color:var(--kirby-color-content-raised-quiet-hover)}}:host:not(:disabled):active{border-color:var(--kirby-color-border-raised-loud)}:host:not(:disabled).error{border-color:var(--kirby-color-border-raised-danger);box-shadow:var(--kirby-error-ring-combined-inset)}:host:not(:disabled):focus-visible{box-shadow:var(--kirby-focus-ring-md-combined-inset);border-color:var(--kirby-color-border-focus)}:host:not(:disabled){transition:all 80ms linear 0ms;transition-property:background-color,border-color,box-shadow}:host{background-color:var(--kirby-color-fill-raised);color:var(--kirby-color-content-raised);border:1px solid var(--kirby-input-color-border-raised);box-sizing:border-box;font-family:var(--kirby-font-family);font-size:1rem;line-height:var(--kirby-line-height-n);outline:none;margin:0;-webkit-appearance:none;appearance:none;border-radius:var(--kirby-border-radius-n);padding:calc(var(--kirby-spacing-s) - 1px);width:100%}:host.borderless{border-radius:0;padding-inline:0;width:auto}:host:disabled{opacity:.4}:host::placeholder{color:var(--kirby-color-content-raised-quiet)}@supports not (selector(::-webkit-date-and-time-value)){:host(input[type=date]::-webkit-date-and-time-value){min-height:calc(var(--kirby-line-height-n) * 1em);text-align:start}}:host{position:relative;font-family:var(--kirby-font-family);resize:none}@media(min-width:768px){:host{resize:vertical}}\n"],
|
|
658
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
663
|
+
minVersion: "12.0.0",
|
|
664
|
+
version: "22.2.2",
|
|
665
|
+
ngImport: i0,
|
|
666
|
+
type: TextareaComponent,
|
|
667
|
+
decorators: [{
|
|
668
|
+
type: Component,
|
|
669
|
+
args: [{
|
|
670
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
671
|
+
selector: "textarea[kirby-textarea]",
|
|
672
|
+
providers: [{
|
|
673
|
+
provide: FORM_FIELD_CONTROL,
|
|
674
|
+
useExisting: TextareaComponent
|
|
675
|
+
}],
|
|
676
|
+
template: "@if (!value) {\n <ng-content></ng-content>\n}\n<!-- prettier-ignore -->\n@if (value) {{{value}}}\n",
|
|
677
|
+
styles: [".kirby-line-clamp{display:-webkit-box;-webkit-line-clamp:var(--line-clamp, none);-webkit-box-orient:vertical;overflow:hidden}:host(.cloned-input){pointer-events:none;position:absolute;top:0;left:0}:host-context(label).cloned-input{top:24px}:host-context(ion-modal).cloned-input{top:0!important;transform:none!important}:host.error{border-color:var(--kirby-color-border-raised-danger);box-shadow:var(--kirby-error-ring-combined-inset)}@media(hover:hover){:host:not(:disabled):hover{background-color:var(--kirby-color-fill-raised-hover);border-color:var(--kirby-input-color-border-raised-hover);cursor:text}:host:not(:disabled):hover::placeholder{color:var(--kirby-color-content-raised-quiet-hover)}}:host:not(:disabled):active{border-color:var(--kirby-color-border-raised-loud)}:host:not(:disabled).error{border-color:var(--kirby-color-border-raised-danger);box-shadow:var(--kirby-error-ring-combined-inset)}:host:not(:disabled):focus-visible{box-shadow:var(--kirby-focus-ring-md-combined-inset);border-color:var(--kirby-color-border-focus)}:host:not(:disabled){transition:all 80ms linear 0ms;transition-property:background-color,border-color,box-shadow}:host{background-color:var(--kirby-color-fill-raised);color:var(--kirby-color-content-raised);border:1px solid var(--kirby-input-color-border-raised);box-sizing:border-box;font-family:var(--kirby-font-family);font-size:1rem;line-height:var(--kirby-line-height-n);outline:none;margin:0;-webkit-appearance:none;appearance:none;border-radius:var(--kirby-border-radius-n);padding:calc(var(--kirby-spacing-s) - 1px);width:100%}:host.borderless{border-radius:0;padding-inline:0;width:auto}:host:disabled{opacity:.4}:host::placeholder{color:var(--kirby-color-content-raised-quiet)}@supports not (selector(::-webkit-date-and-time-value)){:host(input[type=date]::-webkit-date-and-time-value){min-height:calc(var(--kirby-line-height-n) * 1em);text-align:start}}:host{position:relative;font-family:var(--kirby-font-family);resize:none}@media(min-width:768px){:host{resize:vertical}}\n"]
|
|
678
|
+
}]
|
|
679
|
+
}],
|
|
680
|
+
ctorParameters: () => [{ type: i0.ElementRef }, {
|
|
681
|
+
type: void 0,
|
|
682
|
+
decorators: [{ type: Optional }, {
|
|
683
|
+
type: Inject,
|
|
684
|
+
args: [NG_VALUE_ACCESSOR]
|
|
685
|
+
}]
|
|
686
|
+
}],
|
|
687
|
+
propDecorators: {
|
|
688
|
+
value: [{
|
|
689
|
+
type: HostBinding,
|
|
690
|
+
args: ["attr.value"]
|
|
691
|
+
}, { type: Input }],
|
|
692
|
+
borderless: [{
|
|
693
|
+
type: HostBinding,
|
|
694
|
+
args: ["class.borderless"]
|
|
695
|
+
}, { type: Input }],
|
|
696
|
+
hasError: [
|
|
697
|
+
{
|
|
698
|
+
type: HostBinding,
|
|
699
|
+
args: ["attr.aria-invalid"]
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
type: HostBinding,
|
|
703
|
+
args: ["class.error"]
|
|
704
|
+
},
|
|
705
|
+
{ type: Input }
|
|
706
|
+
],
|
|
707
|
+
autocomplete: [{
|
|
708
|
+
type: HostBinding,
|
|
709
|
+
args: ["attr.autocomplete"]
|
|
710
|
+
}, { type: Input }],
|
|
711
|
+
autocorrect: [{
|
|
712
|
+
type: HostBinding,
|
|
713
|
+
args: ["attr.autocorrect"]
|
|
714
|
+
}, { type: Input }],
|
|
715
|
+
maxlength: [{
|
|
716
|
+
type: HostBinding,
|
|
717
|
+
args: ["attr.maxlength"]
|
|
718
|
+
}, { type: Input }],
|
|
719
|
+
hasErrorChange: [{ type: Output }],
|
|
720
|
+
_onKeyUp: [{
|
|
721
|
+
type: HostListener,
|
|
722
|
+
args: ["keyup", ["$event.target.value"]]
|
|
723
|
+
}],
|
|
724
|
+
_onCutPaste: [{
|
|
725
|
+
type: HostListener,
|
|
726
|
+
args: ["paste", ["$event.target"]]
|
|
727
|
+
}, {
|
|
728
|
+
type: HostListener,
|
|
729
|
+
args: ["cut", ["$event.target"]]
|
|
730
|
+
}]
|
|
731
|
+
}
|
|
732
|
+
});
|
|
733
|
+
var FormFieldComponent = class FormFieldComponent {
|
|
734
|
+
get label() {
|
|
735
|
+
return this._label;
|
|
736
|
+
}
|
|
737
|
+
set label(value) {
|
|
738
|
+
this._label = value;
|
|
739
|
+
this.setNestedInteractiveLabelAttributes();
|
|
740
|
+
}
|
|
741
|
+
get message() {
|
|
742
|
+
return this._message;
|
|
743
|
+
}
|
|
744
|
+
set message(value) {
|
|
745
|
+
this._message = value;
|
|
746
|
+
this.setNestedInteractiveMessageAttributes();
|
|
747
|
+
}
|
|
748
|
+
constructor(elementRef, platform, renderer, windowRef, resizeObserverService, cdr) {
|
|
749
|
+
this.platform = platform;
|
|
750
|
+
this.renderer = renderer;
|
|
751
|
+
this.windowRef = windowRef;
|
|
752
|
+
this.resizeObserverService = resizeObserverService;
|
|
753
|
+
this.cdr = cdr;
|
|
754
|
+
this.isRegistered = false;
|
|
755
|
+
this.hasWarnedMissingControl = false;
|
|
756
|
+
this.showDefaultCalendarIcon = false;
|
|
757
|
+
this._labelId = UniqueIdGenerator.scopedTo("kirby-form-field-label").next();
|
|
758
|
+
this._errorMessageId = UniqueIdGenerator.scopedTo("kirby-form-field-message").next();
|
|
759
|
+
this._messageId = UniqueIdGenerator.scopedTo("kirby-form-field-message").next();
|
|
760
|
+
this.element = elementRef.nativeElement;
|
|
761
|
+
}
|
|
762
|
+
isInputOrTextarea() {
|
|
763
|
+
return this.formFieldControl instanceof InputComponent || this.formFieldControl instanceof TextareaComponent;
|
|
764
|
+
}
|
|
765
|
+
get _wrapContentInLabel() {
|
|
766
|
+
return !!this.label && this.isInputOrTextarea();
|
|
767
|
+
}
|
|
768
|
+
dispatchLoadEvent() {
|
|
769
|
+
this.windowRef.nativeWindow.document.dispatchEvent(new CustomEvent("ionInputDidLoad", { detail: this.element }));
|
|
770
|
+
}
|
|
771
|
+
_onRegisterFormField() {
|
|
772
|
+
this.dispatchLoadEvent();
|
|
773
|
+
}
|
|
774
|
+
onLabelClick() {
|
|
775
|
+
if (this.formFieldControl instanceof RadioGroupComponent) this.formFieldControl.focus();
|
|
776
|
+
else this.nestedInteractiveElement?.focus();
|
|
777
|
+
}
|
|
778
|
+
openDatePicker() {
|
|
779
|
+
if (!this.dateInput?.useNativeDatePicker) return;
|
|
780
|
+
this.nestedInteractiveElement.showPicker();
|
|
781
|
+
}
|
|
782
|
+
focus() {
|
|
783
|
+
if (!this.nestedInteractiveElement) return;
|
|
784
|
+
if (this.isInputOrTextarea()) setTimeout(() => {
|
|
785
|
+
if (this.isTouch) {
|
|
786
|
+
const touchStart = new TouchEvent("touchstart");
|
|
787
|
+
const touchEnd = new TouchEvent("touchend");
|
|
788
|
+
this.nestedInteractiveElement.dispatchEvent(touchStart);
|
|
789
|
+
this.nestedInteractiveElement.dispatchEvent(touchEnd);
|
|
790
|
+
} else this.nestedInteractiveElement.focus();
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
ngOnInit() {
|
|
794
|
+
this.isTouch = this.platform.isTouch();
|
|
795
|
+
}
|
|
796
|
+
ngAfterContentInit() {
|
|
797
|
+
this.handleAffixOffset();
|
|
798
|
+
}
|
|
799
|
+
ngAfterContentChecked() {
|
|
800
|
+
if (!this.formFieldControl) {
|
|
801
|
+
this.warnMissingControl();
|
|
802
|
+
return;
|
|
803
|
+
}
|
|
804
|
+
if (!this.nestedInteractiveElement) this.registerNestedInteractive();
|
|
805
|
+
if (!this.isRegistered && this.element.isConnected && this.isInputOrTextarea()) {
|
|
806
|
+
this.isRegistered = true;
|
|
807
|
+
this.dispatchLoadEvent();
|
|
808
|
+
}
|
|
809
|
+
this.showDefaultCalendarIcon = this.shouldShowDefaultCalendarIcon();
|
|
810
|
+
}
|
|
811
|
+
warnMissingControl() {
|
|
812
|
+
if (!this.hasWarnedMissingControl) {
|
|
813
|
+
this.hasWarnedMissingControl = true;
|
|
814
|
+
console.warn("kirby-form-field: No form field control found. Ensure a component providing FORM_FIELD_CONTROL is projected.");
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
ngOnDestroy() {
|
|
818
|
+
this.windowRef.nativeWindow.document.dispatchEvent(new CustomEvent("ionInputDidUnload", { detail: this.element }));
|
|
819
|
+
this.affixElements?.forEach((affix) => {
|
|
820
|
+
this.resizeObserverService.unobserve(affix.el);
|
|
821
|
+
});
|
|
822
|
+
this.nestedInteractiveErrorSubscription?.unsubscribe();
|
|
823
|
+
}
|
|
824
|
+
registerNestedInteractive() {
|
|
825
|
+
this.getNestedInteractiveElement();
|
|
826
|
+
this.setNestedInteractiveLabelAttributes();
|
|
827
|
+
this.setNestedInteractiveMessageAttributes();
|
|
828
|
+
this.subscribeToNestedInteractiveError();
|
|
829
|
+
}
|
|
830
|
+
getNestedInteractiveElement() {
|
|
831
|
+
this.nestedInteractiveElement = this.formFieldControl.interactiveElement;
|
|
832
|
+
}
|
|
833
|
+
setNestedInteractiveMessageAttributes() {
|
|
834
|
+
if (!this.nestedInteractiveElement) return;
|
|
835
|
+
if (this.message) {
|
|
836
|
+
this.renderer.setAttribute(this.nestedInteractiveElement, "aria-describedby", this._messageId);
|
|
837
|
+
this.renderer.setAttribute(this.nestedInteractiveElement, "aria-errormessage", this._errorMessageId);
|
|
838
|
+
} else {
|
|
839
|
+
this.renderer.removeAttribute(this.nestedInteractiveElement, "aria-describedby");
|
|
840
|
+
this.renderer.removeAttribute(this.nestedInteractiveElement, "aria-errormessage");
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
setNestedInteractiveLabelAttributes() {
|
|
844
|
+
if (!this.nestedInteractiveElement) return;
|
|
845
|
+
if (this._wrapContentInLabel) return;
|
|
846
|
+
if (this.label) this.renderer.setAttribute(this.nestedInteractiveElement, "aria-labelledby", this._labelId);
|
|
847
|
+
else this.renderer.removeAttribute(this.nestedInteractiveElement, "aria-labelledby");
|
|
848
|
+
}
|
|
849
|
+
subscribeToNestedInteractiveError() {
|
|
850
|
+
this._nestedInteractiveHasError = !!this.formFieldControl?.hasError;
|
|
851
|
+
this.nestedInteractiveErrorSubscription = this.formFieldControl?.hasErrorChange.subscribe((hasError) => {
|
|
852
|
+
this._nestedInteractiveHasError = hasError;
|
|
853
|
+
this.cdr.markForCheck();
|
|
854
|
+
});
|
|
855
|
+
}
|
|
856
|
+
shouldShowDefaultCalendarIcon() {
|
|
857
|
+
return this.dateInput?.useNativeDatePicker && !this.affixElements.some((affix) => affix.type === "suffix");
|
|
858
|
+
}
|
|
859
|
+
handleAffixOffset() {
|
|
860
|
+
if (this.formFieldControl instanceof InputComponent) {
|
|
861
|
+
const inputElement = this.formFieldControl.interactiveElement;
|
|
862
|
+
this.affixElements.forEach((affix) => {
|
|
863
|
+
this.resizeObserverService.observe(affix.el, (entry) => {
|
|
864
|
+
const padding = affix.type === "prefix" ? "padding-left" : "padding-right";
|
|
865
|
+
const affixWidth = inputElement.type === "date" ? 0 : entry.contentRect.width;
|
|
866
|
+
const existingPadding = parseInt(DesignTokenHelper.size("s"));
|
|
867
|
+
this.renderer.setStyle(inputElement, `${padding}`, `${affixWidth + existingPadding}px`);
|
|
868
|
+
const dateMask = this.element.querySelector(".date-mask");
|
|
869
|
+
if (dateMask) this.renderer.setStyle(dateMask, `${padding}`, `${affixWidth + existingPadding}px`);
|
|
870
|
+
});
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
static {
|
|
875
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
876
|
+
minVersion: "12.0.0",
|
|
877
|
+
version: "22.2.2",
|
|
878
|
+
ngImport: i0,
|
|
879
|
+
type: FormFieldComponent,
|
|
880
|
+
deps: [
|
|
881
|
+
{ token: i0.ElementRef },
|
|
882
|
+
{ token: i1.PlatformService },
|
|
883
|
+
{ token: i0.Renderer2 },
|
|
884
|
+
{ token: i2.WindowRef },
|
|
885
|
+
{ token: i1$1.ResizeObserverService },
|
|
886
|
+
{ token: i0.ChangeDetectorRef }
|
|
887
|
+
],
|
|
888
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
889
|
+
});
|
|
890
|
+
}
|
|
891
|
+
static {
|
|
892
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
893
|
+
minVersion: "17.0.0",
|
|
894
|
+
version: "22.2.2",
|
|
895
|
+
type: FormFieldComponent,
|
|
896
|
+
isStandalone: true,
|
|
897
|
+
selector: "kirby-form-field",
|
|
898
|
+
inputs: {
|
|
899
|
+
label: "label",
|
|
900
|
+
message: "message"
|
|
901
|
+
},
|
|
902
|
+
host: {
|
|
903
|
+
listeners: { "kirbyRegisterFormField": "_onRegisterFormField()" },
|
|
904
|
+
properties: { "class.wrap-content-in-label": "this._wrapContentInLabel" }
|
|
905
|
+
},
|
|
906
|
+
queries: [
|
|
907
|
+
{
|
|
908
|
+
propertyName: "counter",
|
|
909
|
+
first: true,
|
|
910
|
+
predicate: InputCounterComponent,
|
|
911
|
+
descendants: true
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
propertyName: "formFieldControl",
|
|
915
|
+
first: true,
|
|
916
|
+
predicate: FORM_FIELD_CONTROL,
|
|
917
|
+
descendants: true
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
propertyName: "dateInput",
|
|
921
|
+
first: true,
|
|
922
|
+
predicate: DateInputDirective,
|
|
923
|
+
descendants: true
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
propertyName: "affixElements",
|
|
927
|
+
predicate: AffixDirective
|
|
928
|
+
}
|
|
929
|
+
],
|
|
930
|
+
ngImport: i0,
|
|
931
|
+
template: "@if (_wrapContentInLabel) {\n <label>\n <ng-container *ngTemplateOutlet=\"labelTextTemplate\"></ng-container>\n <ng-container *ngTemplateOutlet=\"slottedInputTemplate\"></ng-container>\n <!-- add error message inside label if nested interative is in error state -->\n @if (_nestedInteractiveHasError) {\n <ng-container *ngTemplateOutlet=\"messageTemplate\"></ng-container>\n }\n </label>\n}\n\n<!-- add message outside label if nested interative is in valid state -->\n@if (!_nestedInteractiveHasError && _wrapContentInLabel) {\n <ng-container *ngTemplateOutlet=\"messageTemplate\"></ng-container>\n}\n\n@if (!_wrapContentInLabel) {\n <ng-container *ngTemplateOutlet=\"labelTemplate\"></ng-container>\n <ng-container *ngTemplateOutlet=\"slottedInputTemplate\"></ng-container>\n <ng-container *ngTemplateOutlet=\"messageTemplate\"></ng-container>\n}\n\n<ng-template #messageTemplate>\n @if (message !== undefined || counter) {\n <div class=\"texts\">\n <div\n aria-live=\"polite\"\n class=\"message\"\n [id]=\"_nestedInteractiveHasError ? _errorMessageId : _messageId\"\n >\n @if (message !== undefined) {\n <kirby-form-field-message [text]=\"message\"></kirby-form-field-message>\n }\n </div>\n @if (counter) {\n <div class=\"counter\">\n <ng-content select=\"kirby-input-counter\"></ng-content>\n </div>\n }\n </div>\n }\n</ng-template>\n\n<ng-template #slottedInputTemplate>\n <div class=\"affix-container\">\n <div class=\"prefix vertical-align semi-dark-text\">\n <ng-content select=\"[kirby-affix='prefix']\"></ng-content>\n </div>\n <ng-content></ng-content>\n <div class=\"suffix vertical-align semi-dark-text\" (click)=\"openDatePicker()\">\n <ng-content select=\"[kirby-affix='suffix']\"></ng-content>\n @if (showDefaultCalendarIcon) {\n <kirby-icon name=\"calendar\"></kirby-icon>\n }\n </div>\n </div>\n</ng-template>\n\n<ng-template #labelTextTemplate>\n @if (label) {\n <span class=\"text\">{{ label }}</span>\n }\n</ng-template>\n\n<ng-template #labelTemplate>\n @if (label) {\n <label class=\"text\" [id]=\"_labelId\" (click)=\"onLabelClick()\">{{ label }}</label>\n }\n</ng-template>\n",
|
|
932
|
+
styles: [".kirby-line-clamp{display:-webkit-box;-webkit-line-clamp:var(--line-clamp, none);-webkit-box-orient:vertical;overflow:hidden}:host{display:block;position:relative;margin-bottom:var(--kirby-spacing-s)}:host-context(kirby-item){margin-bottom:0}.texts{display:flex;justify-content:space-between;padding:2px var(--kirby-spacing-s) 0 var(--kirby-spacing-s)}.texts .message{flex:75%}.texts .message:only-child{flex-basis:auto}.texts .message>kirby-form-field-message{width:100%;display:flex}.texts .counter{flex:25%;text-align:right}label{display:block}.text{display:block;font-size:var(--kirby-font-size-s);font-weight:var(--kirby-font-weight-light);line-height:var(--kirby-line-height-s);margin-bottom:var(--kirby-spacing-xxxs);padding:0 var(--kirby-spacing-s)}.affix-container{position:relative}.affix-container .vertical-align{display:flex;align-items:center;position:absolute;top:0;bottom:0}.affix-container .prefix{left:var(--kirby-spacing-xs);z-index:var(--kirby-z-index-default)}.affix-container .suffix{right:var(--kirby-spacing-xs)}.affix-container .semi-dark-text ::ng-deep>span,.affix-container .semi-dark-text ::ng-deep>h1,.affix-container .semi-dark-text ::ng-deep>h2,.affix-container .semi-dark-text ::ng-deep>h3,.affix-container .semi-dark-text ::ng-deep>h4,.affix-container .semi-dark-text ::ng-deep>h5,.affix-container .semi-dark-text ::ng-deep>h6,.affix-container .semi-dark-text ::ng-deep>p,.affix-container .semi-dark-text ::ng-deep>data{color:var(--kirby-color-content-raised-quiet)}\n"],
|
|
933
|
+
dependencies: [
|
|
934
|
+
{
|
|
935
|
+
kind: "directive",
|
|
936
|
+
type: NgTemplateOutlet,
|
|
937
|
+
selector: "[ngTemplateOutlet]",
|
|
938
|
+
inputs: [
|
|
939
|
+
"ngTemplateOutletContext",
|
|
940
|
+
"ngTemplateOutlet",
|
|
941
|
+
"ngTemplateOutletInjector"
|
|
942
|
+
]
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
kind: "component",
|
|
946
|
+
type: FormFieldMessageComponent,
|
|
947
|
+
selector: "kirby-form-field-message",
|
|
948
|
+
inputs: ["text", "position"]
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
kind: "component",
|
|
952
|
+
type: IconComponent,
|
|
953
|
+
selector: "kirby-icon",
|
|
954
|
+
inputs: ["size", "name"]
|
|
955
|
+
}
|
|
956
|
+
],
|
|
957
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
};
|
|
961
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
962
|
+
minVersion: "12.0.0",
|
|
963
|
+
version: "22.2.2",
|
|
964
|
+
ngImport: i0,
|
|
965
|
+
type: FormFieldComponent,
|
|
966
|
+
decorators: [{
|
|
967
|
+
type: Component,
|
|
968
|
+
args: [{
|
|
969
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
970
|
+
selector: "kirby-form-field",
|
|
971
|
+
imports: [
|
|
972
|
+
NgTemplateOutlet,
|
|
973
|
+
FormFieldMessageComponent,
|
|
974
|
+
IconComponent
|
|
975
|
+
],
|
|
976
|
+
template: "@if (_wrapContentInLabel) {\n <label>\n <ng-container *ngTemplateOutlet=\"labelTextTemplate\"></ng-container>\n <ng-container *ngTemplateOutlet=\"slottedInputTemplate\"></ng-container>\n <!-- add error message inside label if nested interative is in error state -->\n @if (_nestedInteractiveHasError) {\n <ng-container *ngTemplateOutlet=\"messageTemplate\"></ng-container>\n }\n </label>\n}\n\n<!-- add message outside label if nested interative is in valid state -->\n@if (!_nestedInteractiveHasError && _wrapContentInLabel) {\n <ng-container *ngTemplateOutlet=\"messageTemplate\"></ng-container>\n}\n\n@if (!_wrapContentInLabel) {\n <ng-container *ngTemplateOutlet=\"labelTemplate\"></ng-container>\n <ng-container *ngTemplateOutlet=\"slottedInputTemplate\"></ng-container>\n <ng-container *ngTemplateOutlet=\"messageTemplate\"></ng-container>\n}\n\n<ng-template #messageTemplate>\n @if (message !== undefined || counter) {\n <div class=\"texts\">\n <div\n aria-live=\"polite\"\n class=\"message\"\n [id]=\"_nestedInteractiveHasError ? _errorMessageId : _messageId\"\n >\n @if (message !== undefined) {\n <kirby-form-field-message [text]=\"message\"></kirby-form-field-message>\n }\n </div>\n @if (counter) {\n <div class=\"counter\">\n <ng-content select=\"kirby-input-counter\"></ng-content>\n </div>\n }\n </div>\n }\n</ng-template>\n\n<ng-template #slottedInputTemplate>\n <div class=\"affix-container\">\n <div class=\"prefix vertical-align semi-dark-text\">\n <ng-content select=\"[kirby-affix='prefix']\"></ng-content>\n </div>\n <ng-content></ng-content>\n <div class=\"suffix vertical-align semi-dark-text\" (click)=\"openDatePicker()\">\n <ng-content select=\"[kirby-affix='suffix']\"></ng-content>\n @if (showDefaultCalendarIcon) {\n <kirby-icon name=\"calendar\"></kirby-icon>\n }\n </div>\n </div>\n</ng-template>\n\n<ng-template #labelTextTemplate>\n @if (label) {\n <span class=\"text\">{{ label }}</span>\n }\n</ng-template>\n\n<ng-template #labelTemplate>\n @if (label) {\n <label class=\"text\" [id]=\"_labelId\" (click)=\"onLabelClick()\">{{ label }}</label>\n }\n</ng-template>\n",
|
|
977
|
+
styles: [".kirby-line-clamp{display:-webkit-box;-webkit-line-clamp:var(--line-clamp, none);-webkit-box-orient:vertical;overflow:hidden}:host{display:block;position:relative;margin-bottom:var(--kirby-spacing-s)}:host-context(kirby-item){margin-bottom:0}.texts{display:flex;justify-content:space-between;padding:2px var(--kirby-spacing-s) 0 var(--kirby-spacing-s)}.texts .message{flex:75%}.texts .message:only-child{flex-basis:auto}.texts .message>kirby-form-field-message{width:100%;display:flex}.texts .counter{flex:25%;text-align:right}label{display:block}.text{display:block;font-size:var(--kirby-font-size-s);font-weight:var(--kirby-font-weight-light);line-height:var(--kirby-line-height-s);margin-bottom:var(--kirby-spacing-xxxs);padding:0 var(--kirby-spacing-s)}.affix-container{position:relative}.affix-container .vertical-align{display:flex;align-items:center;position:absolute;top:0;bottom:0}.affix-container .prefix{left:var(--kirby-spacing-xs);z-index:var(--kirby-z-index-default)}.affix-container .suffix{right:var(--kirby-spacing-xs)}.affix-container .semi-dark-text ::ng-deep>span,.affix-container .semi-dark-text ::ng-deep>h1,.affix-container .semi-dark-text ::ng-deep>h2,.affix-container .semi-dark-text ::ng-deep>h3,.affix-container .semi-dark-text ::ng-deep>h4,.affix-container .semi-dark-text ::ng-deep>h5,.affix-container .semi-dark-text ::ng-deep>h6,.affix-container .semi-dark-text ::ng-deep>p,.affix-container .semi-dark-text ::ng-deep>data{color:var(--kirby-color-content-raised-quiet)}\n"]
|
|
978
|
+
}]
|
|
979
|
+
}],
|
|
980
|
+
ctorParameters: () => [
|
|
981
|
+
{ type: i0.ElementRef },
|
|
982
|
+
{ type: i1.PlatformService },
|
|
983
|
+
{ type: i0.Renderer2 },
|
|
984
|
+
{ type: i2.WindowRef },
|
|
985
|
+
{ type: i1$1.ResizeObserverService },
|
|
986
|
+
{ type: i0.ChangeDetectorRef }
|
|
987
|
+
],
|
|
988
|
+
propDecorators: {
|
|
989
|
+
label: [{ type: Input }],
|
|
990
|
+
message: [{ type: Input }],
|
|
991
|
+
affixElements: [{
|
|
992
|
+
type: ContentChildren,
|
|
993
|
+
args: [AffixDirective]
|
|
994
|
+
}],
|
|
995
|
+
counter: [{
|
|
996
|
+
type: ContentChild,
|
|
997
|
+
args: [InputCounterComponent, { static: false }]
|
|
998
|
+
}],
|
|
999
|
+
formFieldControl: [{
|
|
1000
|
+
type: ContentChild,
|
|
1001
|
+
args: [FORM_FIELD_CONTROL]
|
|
1002
|
+
}],
|
|
1003
|
+
dateInput: [{
|
|
1004
|
+
type: ContentChild,
|
|
1005
|
+
args: [DateInputDirective]
|
|
1006
|
+
}],
|
|
1007
|
+
_wrapContentInLabel: [{
|
|
1008
|
+
type: HostBinding,
|
|
1009
|
+
args: ["class.wrap-content-in-label"]
|
|
1010
|
+
}],
|
|
1011
|
+
_onRegisterFormField: [{
|
|
1012
|
+
type: HostListener,
|
|
1013
|
+
args: ["kirbyRegisterFormField"]
|
|
1014
|
+
}]
|
|
1015
|
+
}
|
|
1016
|
+
});
|
|
1017
|
+
var DecimalMaskDirective = class DecimalMaskDirective {
|
|
1018
|
+
set allowMinus(allowMinus) {
|
|
1019
|
+
this._allowMinus = allowMinus || (this.min || 0) < 0;
|
|
1020
|
+
}
|
|
1021
|
+
set disableGroupSeperator(disabled) {
|
|
1022
|
+
this._groupSeperatorDisabled = String(disabled) === "" || String(disabled) === "true";
|
|
1023
|
+
}
|
|
1024
|
+
set maxlength(maxlength) {
|
|
1025
|
+
this._maxlength = maxlength;
|
|
1026
|
+
const maxlengthValue = parseInt("9".repeat(maxlength));
|
|
1027
|
+
this.max = this.getMax(maxlengthValue);
|
|
1028
|
+
this.min = this.getMin(maxlengthValue);
|
|
1029
|
+
}
|
|
1030
|
+
constructor(elementRef, locale, valueAccessors) {
|
|
1031
|
+
this.elementRef = elementRef;
|
|
1032
|
+
this.locale = locale;
|
|
1033
|
+
this.valueAccessors = valueAccessors;
|
|
1034
|
+
this.precision = 2;
|
|
1035
|
+
this.setMaxOnOverflow = false;
|
|
1036
|
+
this.alignment = "right";
|
|
1037
|
+
this.padPrecisionDigits = false;
|
|
1038
|
+
this.groupSeparator = getLocaleNumberSymbol(this.locale, NumberSymbol.Group);
|
|
1039
|
+
this.radixPoint = getLocaleNumberSymbol(this.locale, NumberSymbol.Decimal);
|
|
1040
|
+
this._allowMinus = false;
|
|
1041
|
+
this.extendBuiltinValueAccessor();
|
|
1042
|
+
}
|
|
1043
|
+
ngOnInit() {
|
|
1044
|
+
const element = this.elementRef.nativeElement;
|
|
1045
|
+
element.setAttribute("type", "text");
|
|
1046
|
+
element.removeAttribute("maxlength");
|
|
1047
|
+
if (element.value) element.value = this.toLocaleRadixPoint(element.value);
|
|
1048
|
+
this.initMask();
|
|
1049
|
+
}
|
|
1050
|
+
initMask() {
|
|
1051
|
+
const element = this.elementRef.nativeElement;
|
|
1052
|
+
new Inputmask("decimal", {
|
|
1053
|
+
groupSeparator: this._groupSeperatorDisabled ? "" : this.groupSeparator,
|
|
1054
|
+
radixPoint: this.radixPoint,
|
|
1055
|
+
digits: this._maxlength ? 0 : this.precision,
|
|
1056
|
+
digitsOptional: !this.padPrecisionDigits,
|
|
1057
|
+
min: this.min,
|
|
1058
|
+
max: this.max,
|
|
1059
|
+
allowMinus: this._allowMinus,
|
|
1060
|
+
negationSymbol: {
|
|
1061
|
+
front: getLocaleNumberSymbol(this.locale, NumberSymbol.MinusSign),
|
|
1062
|
+
back: ""
|
|
1063
|
+
},
|
|
1064
|
+
SetMaxOnOverflow: this.setMaxOnOverflow,
|
|
1065
|
+
showMaskOnFocus: false,
|
|
1066
|
+
showMaskOnHover: false,
|
|
1067
|
+
placeholder: this.padPrecisionDigits ? void 0 : "",
|
|
1068
|
+
rightAlign: this.alignment === "right",
|
|
1069
|
+
onBeforeWrite: () => {
|
|
1070
|
+
if (!this.inputmask) return;
|
|
1071
|
+
},
|
|
1072
|
+
onBeforePaste: (value, options) => {
|
|
1073
|
+
const replacesValue = element.selectionStart === 0 && element.selectionEnd === element.value.length;
|
|
1074
|
+
if (!this.padPrecisionDigits || !replacesValue) return options.onBeforeMask(value, options);
|
|
1075
|
+
element.value = value;
|
|
1076
|
+
element.dispatchEvent(new Event("input", { bubbles: true }));
|
|
1077
|
+
return false;
|
|
1078
|
+
}
|
|
1079
|
+
}).mask(element);
|
|
1080
|
+
this.inputmask = element.inputmask;
|
|
1081
|
+
}
|
|
1082
|
+
getMax(maxlengthValue) {
|
|
1083
|
+
return this.max === void 0 ? maxlengthValue : Math.min(this.max, maxlengthValue);
|
|
1084
|
+
}
|
|
1085
|
+
getMin(maxlengthValue) {
|
|
1086
|
+
if (!this.allowMinus) return;
|
|
1087
|
+
maxlengthValue = -Math.abs(maxlengthValue);
|
|
1088
|
+
return this.min === void 0 ? maxlengthValue : -Math.abs(Math.max(this.min, maxlengthValue));
|
|
1089
|
+
}
|
|
1090
|
+
toLocaleRadixPoint(value) {
|
|
1091
|
+
return value.replace(".", this.radixPoint);
|
|
1092
|
+
}
|
|
1093
|
+
toStandardRadixPoint(value) {
|
|
1094
|
+
return value.replace(this.radixPoint, ".");
|
|
1095
|
+
}
|
|
1096
|
+
extendBuiltinValueAccessor() {
|
|
1097
|
+
extendValueAccessors(this.valueAccessors, {
|
|
1098
|
+
writeValue: { afterWriteValue: (value) => {
|
|
1099
|
+
if (this.inputmask && value != null) this.inputmask.setValue(this.toLocaleRadixPoint(String(value)));
|
|
1100
|
+
} },
|
|
1101
|
+
registerOnChange: { transformValue: (value) => {
|
|
1102
|
+
if (this.inputmask) return this.toStandardRadixPoint(this.inputmask.unmaskedvalue());
|
|
1103
|
+
return value;
|
|
1104
|
+
} }
|
|
1105
|
+
});
|
|
1106
|
+
}
|
|
1107
|
+
static {
|
|
1108
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1109
|
+
minVersion: "12.0.0",
|
|
1110
|
+
version: "22.2.2",
|
|
1111
|
+
ngImport: i0,
|
|
1112
|
+
type: DecimalMaskDirective,
|
|
1113
|
+
deps: [
|
|
1114
|
+
{ token: i0.ElementRef },
|
|
1115
|
+
{ token: LOCALE_ID },
|
|
1116
|
+
{
|
|
1117
|
+
token: NG_VALUE_ACCESSOR,
|
|
1118
|
+
optional: true
|
|
1119
|
+
}
|
|
1120
|
+
],
|
|
1121
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1122
|
+
});
|
|
1123
|
+
}
|
|
1124
|
+
static {
|
|
1125
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
1126
|
+
minVersion: "14.0.0",
|
|
1127
|
+
version: "22.2.2",
|
|
1128
|
+
type: DecimalMaskDirective,
|
|
1129
|
+
isStandalone: true,
|
|
1130
|
+
selector: "[kirby-decimal-mask]",
|
|
1131
|
+
inputs: {
|
|
1132
|
+
min: "min",
|
|
1133
|
+
max: "max",
|
|
1134
|
+
precision: "precision",
|
|
1135
|
+
setMaxOnOverflow: "setMaxOnOverflow",
|
|
1136
|
+
alignment: "alignment",
|
|
1137
|
+
padPrecisionDigits: "padPrecisionDigits",
|
|
1138
|
+
allowMinus: "allowMinus",
|
|
1139
|
+
disableGroupSeperator: "disableGroupSeperator",
|
|
1140
|
+
maxlength: "maxlength"
|
|
1141
|
+
},
|
|
1142
|
+
ngImport: i0
|
|
1143
|
+
});
|
|
1144
|
+
}
|
|
1145
|
+
};
|
|
1146
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1147
|
+
minVersion: "12.0.0",
|
|
1148
|
+
version: "22.2.2",
|
|
1149
|
+
ngImport: i0,
|
|
1150
|
+
type: DecimalMaskDirective,
|
|
1151
|
+
decorators: [{
|
|
1152
|
+
type: Directive,
|
|
1153
|
+
args: [{ selector: "[kirby-decimal-mask]" }]
|
|
1154
|
+
}],
|
|
1155
|
+
ctorParameters: () => [
|
|
1156
|
+
{ type: i0.ElementRef },
|
|
1157
|
+
{
|
|
1158
|
+
type: void 0,
|
|
1159
|
+
decorators: [{
|
|
1160
|
+
type: Inject,
|
|
1161
|
+
args: [LOCALE_ID]
|
|
1162
|
+
}]
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
type: void 0,
|
|
1166
|
+
decorators: [{ type: Optional }, {
|
|
1167
|
+
type: Inject,
|
|
1168
|
+
args: [NG_VALUE_ACCESSOR]
|
|
1169
|
+
}]
|
|
1170
|
+
}
|
|
1171
|
+
],
|
|
1172
|
+
propDecorators: {
|
|
1173
|
+
min: [{ type: Input }],
|
|
1174
|
+
max: [{ type: Input }],
|
|
1175
|
+
precision: [{ type: Input }],
|
|
1176
|
+
setMaxOnOverflow: [{ type: Input }],
|
|
1177
|
+
alignment: [{ type: Input }],
|
|
1178
|
+
padPrecisionDigits: [{ type: Input }],
|
|
1179
|
+
allowMinus: [{ type: Input }],
|
|
1180
|
+
disableGroupSeperator: [{ type: Input }],
|
|
1181
|
+
maxlength: [{ type: Input }]
|
|
1182
|
+
}
|
|
1183
|
+
});
|
|
1184
|
+
const imports = [
|
|
1185
|
+
FormFieldComponent,
|
|
1186
|
+
FormFieldMessageComponent,
|
|
1187
|
+
InputCounterComponent
|
|
1188
|
+
];
|
|
1189
|
+
var FormFieldModule = class FormFieldModule {
|
|
1190
|
+
static {
|
|
1191
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1192
|
+
minVersion: "12.0.0",
|
|
1193
|
+
version: "22.2.2",
|
|
1194
|
+
ngImport: i0,
|
|
1195
|
+
type: FormFieldModule,
|
|
1196
|
+
deps: [],
|
|
1197
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
1200
|
+
static {
|
|
1201
|
+
this.ɵmod = i0.ɵɵngDeclareNgModule({
|
|
1202
|
+
minVersion: "14.0.0",
|
|
1203
|
+
version: "22.2.2",
|
|
1204
|
+
ngImport: i0,
|
|
1205
|
+
type: FormFieldModule,
|
|
1206
|
+
imports: [
|
|
1207
|
+
CommonModule,
|
|
1208
|
+
DecimalMaskDirective,
|
|
1209
|
+
IconModule,
|
|
1210
|
+
AffixDirective,
|
|
1211
|
+
FormFieldComponent,
|
|
1212
|
+
FormFieldMessageComponent,
|
|
1213
|
+
InputCounterComponent
|
|
1214
|
+
],
|
|
1215
|
+
exports: [
|
|
1216
|
+
FormFieldComponent,
|
|
1217
|
+
FormFieldMessageComponent,
|
|
1218
|
+
InputCounterComponent,
|
|
1219
|
+
DecimalMaskDirective,
|
|
1220
|
+
AffixDirective
|
|
1221
|
+
]
|
|
1222
|
+
});
|
|
1223
|
+
}
|
|
1224
|
+
static {
|
|
1225
|
+
this.ɵinj = i0.ɵɵngDeclareInjector({
|
|
1226
|
+
minVersion: "12.0.0",
|
|
1227
|
+
version: "22.2.2",
|
|
1228
|
+
ngImport: i0,
|
|
1229
|
+
type: FormFieldModule,
|
|
1230
|
+
imports: [
|
|
1231
|
+
CommonModule,
|
|
1232
|
+
IconModule,
|
|
1233
|
+
FormFieldComponent
|
|
1234
|
+
]
|
|
1235
|
+
});
|
|
1236
|
+
}
|
|
1237
|
+
};
|
|
1238
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1239
|
+
minVersion: "12.0.0",
|
|
1240
|
+
version: "22.2.2",
|
|
1241
|
+
ngImport: i0,
|
|
1242
|
+
type: FormFieldModule,
|
|
1243
|
+
decorators: [{
|
|
1244
|
+
type: NgModule,
|
|
1245
|
+
args: [{
|
|
1246
|
+
imports: [
|
|
1247
|
+
CommonModule,
|
|
1248
|
+
DecimalMaskDirective,
|
|
1249
|
+
IconModule,
|
|
1250
|
+
AffixDirective,
|
|
1251
|
+
...imports
|
|
1252
|
+
],
|
|
1253
|
+
exports: [
|
|
1254
|
+
...imports,
|
|
1255
|
+
DecimalMaskDirective,
|
|
1256
|
+
AffixDirective
|
|
1257
|
+
]
|
|
1258
|
+
}]
|
|
1259
|
+
}]
|
|
1260
|
+
});
|
|
903
1261
|
export { AffixDirective, DateInputDirective, DecimalMaskDirective, FormFieldComponent, FormFieldMessageComponent, FormFieldModule, InputComponent, InputCounterComponent, InputSize, TextareaComponent };
|
|
904
|
-
|
|
1262
|
+
|
|
1263
|
+
//# sourceMappingURL=kirbydesign-designsystem-form-field.mjs.map
|