@ojiepermana/angular 22.1.13 → 22.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -6
- package/SUPPORT.md +3 -3
- package/chart/README.md +1 -1
- package/component/README.md +2 -2
- package/component/calendar/README.md +3 -15
- package/component/drawer/README.md +1 -2
- package/fesm2022/ojiepermana-angular-chart-area.mjs +352 -137
- package/fesm2022/ojiepermana-angular-chart-bar.mjs +744 -524
- package/fesm2022/ojiepermana-angular-chart-core.mjs +1140 -1344
- package/fesm2022/ojiepermana-angular-chart-line.mjs +393 -147
- package/fesm2022/ojiepermana-angular-chart-pie.mjs +408 -179
- package/fesm2022/ojiepermana-angular-chart-primitives.mjs +1262 -920
- package/fesm2022/ojiepermana-angular-chart-radar.mjs +473 -205
- package/fesm2022/ojiepermana-angular-chart-radial.mjs +425 -182
- package/fesm2022/ojiepermana-angular-chart-scatter.mjs +386 -210
- package/fesm2022/ojiepermana-angular-chart.mjs +3 -19
- package/fesm2022/ojiepermana-angular-component-accordion.mjs +485 -243
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +963 -325
- package/fesm2022/ojiepermana-angular-component-alert.mjs +266 -103
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +80 -35
- package/fesm2022/ojiepermana-angular-component-avatar.mjs +402 -135
- package/fesm2022/ojiepermana-angular-component-badge.mjs +109 -59
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +410 -142
- package/fesm2022/ojiepermana-angular-component-button-group.mjs +249 -96
- package/fesm2022/ojiepermana-angular-component-button.mjs +153 -75
- package/fesm2022/ojiepermana-angular-component-calendar.mjs +531 -418
- package/fesm2022/ojiepermana-angular-component-card.mjs +457 -171
- package/fesm2022/ojiepermana-angular-component-carousel.mjs +642 -272
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs +312 -108
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs +299 -115
- package/fesm2022/ojiepermana-angular-component-combobox.mjs +396 -183
- package/fesm2022/ojiepermana-angular-component-command.mjs +807 -347
- package/fesm2022/ojiepermana-angular-component-composer.mjs +807 -330
- package/fesm2022/ojiepermana-angular-component-context-menu.mjs +196 -161
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs +650 -338
- package/fesm2022/ojiepermana-angular-component-dialog.mjs +710 -316
- package/fesm2022/ojiepermana-angular-component-drawer.mjs +2 -5
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +1212 -646
- package/fesm2022/ojiepermana-angular-component-editor.mjs +987 -502
- package/fesm2022/ojiepermana-angular-component-empty.mjs +350 -137
- package/fesm2022/ojiepermana-angular-component-form.mjs +813 -434
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs +486 -277
- package/fesm2022/ojiepermana-angular-component-icon.mjs +241 -140
- package/fesm2022/ojiepermana-angular-component-input-group.mjs +449 -176
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs +891 -488
- package/fesm2022/ojiepermana-angular-component-input.mjs +86 -55
- package/fesm2022/ojiepermana-angular-component-item.mjs +713 -261
- package/fesm2022/ojiepermana-angular-component-kanban.mjs +714 -216
- package/fesm2022/ojiepermana-angular-component-kbd.mjs +124 -52
- package/fesm2022/ojiepermana-angular-component-label.mjs +82 -31
- package/fesm2022/ojiepermana-angular-component-menubar.mjs +479 -329
- package/fesm2022/ojiepermana-angular-component-native-select.mjs +167 -65
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +683 -380
- package/fesm2022/ojiepermana-angular-component-pagination.mjs +277 -94
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs +1283 -607
- package/fesm2022/ojiepermana-angular-component-popover.mjs +291 -204
- package/fesm2022/ojiepermana-angular-component-progress.mjs +176 -53
- package/fesm2022/ojiepermana-angular-component-radio.mjs +449 -142
- package/fesm2022/ojiepermana-angular-component-resizable.mjs +659 -453
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +117 -39
- package/fesm2022/ojiepermana-angular-component-segmented-control.mjs +351 -172
- package/fesm2022/ojiepermana-angular-component-select.mjs +475 -345
- package/fesm2022/ojiepermana-angular-component-separator.mjs +102 -35
- package/fesm2022/ojiepermana-angular-component-sheet.mjs +797 -347
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs +62 -29
- package/fesm2022/ojiepermana-angular-component-slider.mjs +592 -376
- package/fesm2022/ojiepermana-angular-component-spinner.mjs +135 -38
- package/fesm2022/ojiepermana-angular-component-switch.mjs +315 -103
- package/fesm2022/ojiepermana-angular-component-table.mjs +440 -153
- package/fesm2022/ojiepermana-angular-component-tabs.mjs +590 -317
- package/fesm2022/ojiepermana-angular-component-textarea.mjs +85 -50
- package/fesm2022/ojiepermana-angular-component-timeline.mjs +609 -231
- package/fesm2022/ojiepermana-angular-component-toast.mjs +229 -243
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +573 -288
- package/fesm2022/ojiepermana-angular-component-toggle.mjs +187 -78
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs +798 -517
- package/fesm2022/ojiepermana-angular-component-utils-core.mjs +159 -292
- package/fesm2022/ojiepermana-angular-component-utils-overlay.mjs +46 -58
- package/fesm2022/ojiepermana-angular-component-utils-scale.mjs +76 -38
- package/fesm2022/ojiepermana-angular-component-utils.mjs +2 -8
- package/fesm2022/ojiepermana-angular-component.mjs +0 -10
- package/fesm2022/ojiepermana-angular-navigation-core.mjs +13 -23
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs +35 -24
- package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-BKCeWzml.mjs +129 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-DFEJK2jD.mjs +811 -0
- package/fesm2022/{ojiepermana-angular-navigation-navigation-entry-grid.component-Cd-jh6tg.mjs → ojiepermana-angular-navigation-navigation-entry-grid.component-mpK9Ar08.mjs} +387 -183
- package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-BPgH7FJk.mjs +650 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-DMpYcD9t.mjs +662 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-item.component-Basp5SIk.mjs +1228 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-list.component-YUzHI9Pj.mjs +311 -0
- package/fesm2022/ojiepermana-angular-navigation-service.mjs +542 -724
- package/fesm2022/ojiepermana-angular-navigation-types.mjs +27 -56
- package/fesm2022/ojiepermana-angular-navigation.mjs +3052 -4
- package/fesm2022/ojiepermana-angular-sdk.mjs +91 -201
- package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +1115 -737
- package/fesm2022/ojiepermana-angular-theme-layout-services.mjs +245 -328
- package/fesm2022/ojiepermana-angular-theme-layout-types.mjs +35 -38
- package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +1719 -552
- package/fesm2022/ojiepermana-angular-theme-layout.mjs +847 -491
- package/fesm2022/ojiepermana-angular-theme-page-core.mjs +288 -358
- package/fesm2022/ojiepermana-angular-theme-page-filter.mjs +362 -224
- package/fesm2022/ojiepermana-angular-theme-page-overview.mjs +88 -0
- package/fesm2022/ojiepermana-angular-theme-page-root.mjs +576 -254
- package/fesm2022/ojiepermana-angular-theme-page-side.mjs +317 -177
- package/fesm2022/ojiepermana-angular-theme-page-slots.mjs +256 -112
- package/fesm2022/ojiepermana-angular-theme-page.mjs +7 -12
- package/fesm2022/ojiepermana-angular-theme-shell-services.mjs +215 -326
- package/fesm2022/ojiepermana-angular-theme-shell-types.mjs +68 -129
- package/fesm2022/ojiepermana-angular-theme-shell.mjs +907 -378
- package/fesm2022/ojiepermana-angular-theme-styles.mjs +521 -720
- package/fesm2022/ojiepermana-angular-theme.mjs +0 -10
- package/fesm2022/ojiepermana-angular.mjs +5 -24
- package/navigation/README.md +1 -1
- package/package.json +16 -12
- package/sdk/README.md +1 -1
- package/sdk/src/writer/index.js +2 -2
- package/theme/README.md +1 -1
- package/theme/layout/README.md +2 -4
- package/theme/page/README.md +50 -0
- package/theme/styles/README.md +10 -10
- package/theme/styles/css/base/prefers-dark.css +1 -1
- package/theme/styles/css/base/status.css +1 -1
- package/theme/styles/css/color/amber.css +1 -1
- package/theme/styles/css/color/blue.css +1 -1
- package/theme/styles/css/color/cyan.css +1 -1
- package/theme/styles/css/color/emerald.css +1 -1
- package/theme/styles/css/color/fuchsia.css +1 -1
- package/theme/styles/css/color/green.css +1 -1
- package/theme/styles/css/color/indigo.css +1 -1
- package/theme/styles/css/color/lime.css +1 -1
- package/theme/styles/css/color/orange.css +1 -1
- package/theme/styles/css/color/pink.css +1 -1
- package/theme/styles/css/color/purple.css +1 -1
- package/theme/styles/css/color/red.css +1 -1
- package/theme/styles/css/color/rose.css +1 -1
- package/theme/styles/css/color/sky.css +1 -1
- package/theme/styles/css/color/teal.css +1 -1
- package/theme/styles/css/color/violet.css +1 -1
- package/theme/styles/css/color/yellow.css +1 -1
- package/theme/styles/css/neutral/gray.css +1 -1
- package/theme/styles/css/neutral/mauve.css +1 -1
- package/theme/styles/css/neutral/mist.css +1 -1
- package/theme/styles/css/neutral/neutral.css +1 -1
- package/theme/styles/css/neutral/olive.css +1 -1
- package/theme/styles/css/neutral/slate.css +1 -1
- package/theme/styles/css/neutral/stone.css +1 -1
- package/theme/styles/css/neutral/taupe.css +1 -1
- package/theme/styles/css/neutral/zinc.css +1 -1
- package/types/ojiepermana-angular-chart-area.d.ts +126 -63
- package/types/ojiepermana-angular-chart-bar.d.ts +244 -154
- package/types/ojiepermana-angular-chart-core.d.ts +409 -398
- package/types/ojiepermana-angular-chart-line.d.ts +141 -68
- package/types/ojiepermana-angular-chart-pie.d.ts +192 -121
- package/types/ojiepermana-angular-chart-primitives.d.ts +283 -214
- package/types/ojiepermana-angular-chart-radar.d.ts +189 -108
- package/types/ojiepermana-angular-chart-radial.d.ts +177 -106
- package/types/ojiepermana-angular-chart-scatter.d.ts +166 -110
- package/types/ojiepermana-angular-chart.d.ts +3 -2
- package/types/ojiepermana-angular-component-accordion.d.ts +135 -81
- package/types/ojiepermana-angular-component-alert-dialog.d.ts +271 -123
- package/types/ojiepermana-angular-component-alert.d.ts +69 -39
- package/types/ojiepermana-angular-component-aspect-ratio.d.ts +20 -12
- package/types/ojiepermana-angular-component-avatar.d.ts +103 -49
- package/types/ojiepermana-angular-component-badge.d.ts +36 -24
- package/types/ojiepermana-angular-component-breadcrumb.d.ts +79 -40
- package/types/ojiepermana-angular-component-button-group.d.ts +48 -24
- package/types/ojiepermana-angular-component-button.d.ts +44 -27
- package/types/ojiepermana-angular-component-calendar.d.ts +145 -107
- package/types/ojiepermana-angular-component-card.d.ts +112 -63
- package/types/ojiepermana-angular-component-carousel.d.ts +150 -81
- package/types/ojiepermana-angular-component-checkbox.d.ts +96 -38
- package/types/ojiepermana-angular-component-collapsible.d.ts +65 -39
- package/types/ojiepermana-angular-component-combobox.d.ts +100 -55
- package/types/ojiepermana-angular-component-command.d.ts +206 -121
- package/types/ojiepermana-angular-component-composer.d.ts +184 -84
- package/types/ojiepermana-angular-component-context-menu.d.ts +51 -41
- package/types/ojiepermana-angular-component-date-picker.d.ts +199 -109
- package/types/ojiepermana-angular-component-dialog.d.ts +200 -105
- package/types/ojiepermana-angular-component-drawer.d.ts +2 -1
- package/types/ojiepermana-angular-component-dropdown-menu.d.ts +324 -202
- package/types/ojiepermana-angular-component-editor.d.ts +215 -117
- package/types/ojiepermana-angular-component-empty.d.ts +80 -45
- package/types/ojiepermana-angular-component-form.d.ts +185 -121
- package/types/ojiepermana-angular-component-hover-card.d.ts +130 -72
- package/types/ojiepermana-angular-component-icon.d.ts +87 -57
- package/types/ojiepermana-angular-component-input-group.d.ts +93 -46
- package/types/ojiepermana-angular-component-input-otp.d.ts +243 -150
- package/types/ojiepermana-angular-component-input.d.ts +27 -17
- package/types/ojiepermana-angular-component-item.d.ts +160 -84
- package/types/ojiepermana-angular-component-kanban.d.ts +157 -62
- package/types/ojiepermana-angular-component-kbd.d.ts +24 -15
- package/types/ojiepermana-angular-component-label.d.ts +19 -11
- package/types/ojiepermana-angular-component-menubar.d.ts +120 -90
- package/types/ojiepermana-angular-component-native-select.d.ts +37 -24
- package/types/ojiepermana-angular-component-navigation-menu.d.ts +157 -98
- package/types/ojiepermana-angular-component-pagination.d.ts +78 -28
- package/types/ojiepermana-angular-component-pillbox.d.ts +361 -204
- package/types/ojiepermana-angular-component-popover.d.ts +94 -64
- package/types/ojiepermana-angular-component-progress.d.ts +45 -17
- package/types/ojiepermana-angular-component-radio.d.ts +129 -53
- package/types/ojiepermana-angular-component-resizable.d.ts +160 -112
- package/types/ojiepermana-angular-component-scroll-area.d.ts +33 -15
- package/types/ojiepermana-angular-component-segmented-control.d.ts +94 -50
- package/types/ojiepermana-angular-component-select.d.ts +94 -77
- package/types/ojiepermana-angular-component-separator.d.ts +26 -14
- package/types/ojiepermana-angular-component-sheet.d.ts +226 -116
- package/types/ojiepermana-angular-component-skeleton.d.ts +13 -10
- package/types/ojiepermana-angular-component-slider.d.ts +140 -75
- package/types/ojiepermana-angular-component-spinner.d.ts +31 -13
- package/types/ojiepermana-angular-component-switch.d.ts +97 -40
- package/types/ojiepermana-angular-component-table.d.ts +102 -50
- package/types/ojiepermana-angular-component-tabs.d.ts +174 -115
- package/types/ojiepermana-angular-component-textarea.d.ts +27 -17
- package/types/ojiepermana-angular-component-timeline.d.ts +141 -59
- package/types/ojiepermana-angular-component-toast.d.ts +51 -55
- package/types/ojiepermana-angular-component-toggle-group.d.ts +159 -88
- package/types/ojiepermana-angular-component-toggle.d.ts +47 -25
- package/types/ojiepermana-angular-component-tooltip.d.ts +222 -132
- package/types/ojiepermana-angular-component-utils-core.d.ts +81 -90
- package/types/ojiepermana-angular-component-utils-overlay.d.ts +7 -11
- package/types/ojiepermana-angular-component-utils-scale.d.ts +20 -12
- package/types/ojiepermana-angular-component-utils.d.ts +2 -2
- package/types/ojiepermana-angular-component.d.ts +1 -2
- package/types/ojiepermana-angular-navigation-core.d.ts +46 -50
- package/types/ojiepermana-angular-navigation-icon.d.ts +9 -12
- package/types/ojiepermana-angular-navigation-service.d.ts +112 -115
- package/types/ojiepermana-angular-navigation-types.d.ts +121 -125
- package/types/ojiepermana-angular-navigation.d.ts +663 -374
- package/types/ojiepermana-angular-sdk.d.ts +69 -71
- package/types/ojiepermana-angular-theme-component-settings.d.ts +115 -83
- package/types/ojiepermana-angular-theme-layout-services.d.ts +119 -124
- package/types/ojiepermana-angular-theme-layout-types.d.ts +27 -31
- package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +399 -187
- package/types/ojiepermana-angular-theme-layout.d.ts +201 -112
- package/types/ojiepermana-angular-theme-page-core.d.ts +136 -142
- package/types/ojiepermana-angular-theme-page-filter.d.ts +112 -62
- package/types/ojiepermana-angular-theme-page-overview.d.ts +28 -0
- package/types/ojiepermana-angular-theme-page-root.d.ts +172 -88
- package/types/ojiepermana-angular-theme-page-side.d.ts +89 -49
- package/types/ojiepermana-angular-theme-page-slots.d.ts +58 -37
- package/types/ojiepermana-angular-theme-page.d.ts +7 -5
- package/types/ojiepermana-angular-theme-shell-services.d.ts +119 -125
- package/types/ojiepermana-angular-theme-shell-types.d.ts +38 -41
- package/types/ojiepermana-angular-theme-shell.d.ts +139 -61
- package/types/ojiepermana-angular-theme-styles.d.ts +184 -196
- package/types/ojiepermana-angular-theme.d.ts +1 -2
- package/types/ojiepermana-angular.d.ts +5 -5
- package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-CDBxQ8rk.mjs +0 -91
- package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-DBQHdvGa.mjs +0 -512
- package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-BCGvhoYj.mjs +0 -404
- package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-Dk_03e-6.mjs +0 -466
- package/fesm2022/ojiepermana-angular-navigation-ojiepermana-angular-navigation-DNKU6viC.mjs +0 -2642
|
@@ -1,442 +1,821 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { NgControl } from
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
class
|
|
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
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
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
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, Directive, Service, booleanAttribute, computed, effect, inject, input, signal } from "@angular/core";
|
|
3
|
+
import { cn, injectUniqueId } from "@ojiepermana/angular/component/utils/core";
|
|
4
|
+
import { NgControl } from "@angular/forms";
|
|
5
|
+
var FormFieldContext = class FormFieldContext {
|
|
6
|
+
controlId = injectUniqueId("FormField");
|
|
7
|
+
labelId = `${this.controlId}-label`;
|
|
8
|
+
descriptionId = `${this.controlId}-description`;
|
|
9
|
+
messageId = `${this.controlId}-message`;
|
|
10
|
+
control = signal(null, ...ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []);
|
|
11
|
+
manualInvalid = signal(false, ...ngDevMode ? [{ debugName: "manualInvalid" }] : /* istanbul ignore next */ []);
|
|
12
|
+
hasLabel = signal(false, ...ngDevMode ? [{ debugName: "hasLabel" }] : /* istanbul ignore next */ []);
|
|
13
|
+
hasDescription = signal(false, ...ngDevMode ? [{ debugName: "hasDescription" }] : /* istanbul ignore next */ []);
|
|
14
|
+
hasMessage = signal(false, ...ngDevMode ? [{ debugName: "hasMessage" }] : /* istanbul ignore next */ []);
|
|
15
|
+
labelledBy = computed(() => this.hasLabel() ? this.labelId : null, ...ngDevMode ? [{ debugName: "labelledBy" }] : /* istanbul ignore next */ []);
|
|
16
|
+
statusTick = signal(0, ...ngDevMode ? [{ debugName: "statusTick" }] : /* istanbul ignore next */ []);
|
|
17
|
+
invalid = computed(() => {
|
|
18
|
+
this.statusTick();
|
|
19
|
+
const c = this.control();
|
|
20
|
+
return this.manualInvalid() || !!c && c.invalid && (c.touched || c.dirty);
|
|
21
|
+
}, ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
|
|
22
|
+
firstError = computed(() => {
|
|
23
|
+
this.statusTick();
|
|
24
|
+
const c = this.control();
|
|
25
|
+
if (!c?.errors) return null;
|
|
26
|
+
const keys = Object.keys(c.errors);
|
|
27
|
+
return keys.length > 0 ? keys[0] : null;
|
|
28
|
+
}, ...ngDevMode ? [{ debugName: "firstError" }] : /* istanbul ignore next */ []);
|
|
29
|
+
describedBy = computed(() => {
|
|
30
|
+
const parts = [];
|
|
31
|
+
if (this.hasDescription()) parts.push(this.descriptionId);
|
|
32
|
+
if (this.hasMessage() && this.invalid()) parts.push(this.messageId);
|
|
33
|
+
return parts.length > 0 ? parts.join(" ") : null;
|
|
34
|
+
}, ...ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []);
|
|
35
|
+
constructor() {
|
|
36
|
+
effect((onCleanup) => {
|
|
37
|
+
const c = this.control();
|
|
38
|
+
if (!c) return;
|
|
39
|
+
const events = c.events;
|
|
40
|
+
if (!events) return;
|
|
41
|
+
const sub = events.subscribe(() => this.statusTick.update((n) => n + 1));
|
|
42
|
+
onCleanup(() => sub.unsubscribe());
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
46
|
+
minVersion: "12.0.0",
|
|
47
|
+
version: "22.2.0",
|
|
48
|
+
ngImport: i0,
|
|
49
|
+
type: FormFieldContext,
|
|
50
|
+
deps: [],
|
|
51
|
+
target: i0.ɵɵFactoryTarget.Service
|
|
52
|
+
});
|
|
53
|
+
static ɵprov = i0.ɵɵngDeclareService({
|
|
54
|
+
minVersion: "22.0.0",
|
|
55
|
+
version: "22.2.0",
|
|
56
|
+
ngImport: i0,
|
|
57
|
+
type: FormFieldContext,
|
|
58
|
+
autoProvided: false
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
62
|
+
minVersion: "12.0.0",
|
|
63
|
+
version: "22.2.0",
|
|
64
|
+
ngImport: i0,
|
|
65
|
+
type: FormFieldContext,
|
|
66
|
+
decorators: [{
|
|
67
|
+
type: Service,
|
|
68
|
+
args: [{ autoProvided: false }]
|
|
69
|
+
}],
|
|
70
|
+
ctorParameters: () => []
|
|
71
|
+
});
|
|
72
|
+
var FormFieldComponent = class FormFieldComponent {
|
|
73
|
+
ctx = inject(FormFieldContext);
|
|
74
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
75
|
+
orientation = input("vertical", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
|
|
76
|
+
invalid = input(false, {
|
|
77
|
+
...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
|
|
78
|
+
transform: booleanAttribute
|
|
79
|
+
});
|
|
80
|
+
classes = computed(() => {
|
|
81
|
+
const orientation = this.orientation();
|
|
82
|
+
return cn("block min-w-0", orientation === "vertical" && "flex flex-col gap-2", orientation === "horizontal" && "flex items-start gap-3", orientation === "responsive" && "flex flex-col gap-3 sm:grid sm:grid-cols-[minmax(0,12rem)_minmax(0,1fr)] sm:items-start", this.class());
|
|
83
|
+
}, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
84
|
+
constructor() {
|
|
85
|
+
effect(() => this.ctx.manualInvalid.set(this.invalid()));
|
|
86
|
+
}
|
|
87
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
88
|
+
minVersion: "12.0.0",
|
|
89
|
+
version: "22.2.0",
|
|
90
|
+
ngImport: i0,
|
|
91
|
+
type: FormFieldComponent,
|
|
92
|
+
deps: [],
|
|
93
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
94
|
+
});
|
|
95
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
96
|
+
minVersion: "17.1.0",
|
|
97
|
+
version: "22.2.0",
|
|
98
|
+
type: FormFieldComponent,
|
|
99
|
+
isStandalone: true,
|
|
100
|
+
selector: "FormField",
|
|
101
|
+
inputs: {
|
|
102
|
+
class: {
|
|
103
|
+
classPropertyName: "class",
|
|
104
|
+
publicName: "class",
|
|
105
|
+
isSignal: true,
|
|
106
|
+
isRequired: false,
|
|
107
|
+
transformFunction: null
|
|
108
|
+
},
|
|
109
|
+
orientation: {
|
|
110
|
+
classPropertyName: "orientation",
|
|
111
|
+
publicName: "orientation",
|
|
112
|
+
isSignal: true,
|
|
113
|
+
isRequired: false,
|
|
114
|
+
transformFunction: null
|
|
115
|
+
},
|
|
116
|
+
invalid: {
|
|
117
|
+
classPropertyName: "invalid",
|
|
118
|
+
publicName: "invalid",
|
|
119
|
+
isSignal: true,
|
|
120
|
+
isRequired: false,
|
|
121
|
+
transformFunction: null
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
host: { properties: {
|
|
125
|
+
"class": "classes()",
|
|
126
|
+
"attr.data-orientation": "orientation()",
|
|
127
|
+
"attr.data-invalid": "ctx.invalid() ? \"\" : null",
|
|
128
|
+
"attr.role": "\"group\""
|
|
129
|
+
} },
|
|
130
|
+
providers: [FormFieldContext],
|
|
131
|
+
ngImport: i0,
|
|
132
|
+
template: `<ng-content />`,
|
|
133
|
+
isInline: true
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
137
|
+
minVersion: "12.0.0",
|
|
138
|
+
version: "22.2.0",
|
|
139
|
+
ngImport: i0,
|
|
140
|
+
type: FormFieldComponent,
|
|
141
|
+
decorators: [{
|
|
142
|
+
type: Component,
|
|
143
|
+
args: [{
|
|
144
|
+
selector: "FormField",
|
|
145
|
+
providers: [FormFieldContext],
|
|
146
|
+
host: {
|
|
147
|
+
"[class]": "classes()",
|
|
148
|
+
"[attr.data-orientation]": "orientation()",
|
|
149
|
+
"[attr.data-invalid]": "ctx.invalid() ? \"\" : null",
|
|
150
|
+
"[attr.role]": "\"group\""
|
|
151
|
+
},
|
|
152
|
+
template: `<ng-content />`
|
|
153
|
+
}]
|
|
154
|
+
}],
|
|
155
|
+
ctorParameters: () => [],
|
|
156
|
+
propDecorators: {
|
|
157
|
+
class: [{
|
|
158
|
+
type: i0.Input,
|
|
159
|
+
args: [{
|
|
160
|
+
isSignal: true,
|
|
161
|
+
alias: "class",
|
|
162
|
+
required: false
|
|
163
|
+
}]
|
|
164
|
+
}],
|
|
165
|
+
orientation: [{
|
|
166
|
+
type: i0.Input,
|
|
167
|
+
args: [{
|
|
168
|
+
isSignal: true,
|
|
169
|
+
alias: "orientation",
|
|
170
|
+
required: false
|
|
171
|
+
}]
|
|
172
|
+
}],
|
|
173
|
+
invalid: [{
|
|
174
|
+
type: i0.Input,
|
|
175
|
+
args: [{
|
|
176
|
+
isSignal: true,
|
|
177
|
+
alias: "invalid",
|
|
178
|
+
required: false
|
|
179
|
+
}]
|
|
180
|
+
}]
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
var FormFieldsetComponent = class FormFieldsetComponent {
|
|
184
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
185
|
+
classes = computed(() => cn("block min-w-0 border-0 p-0 m-0", "grid gap-4", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
186
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
187
|
+
minVersion: "12.0.0",
|
|
188
|
+
version: "22.2.0",
|
|
189
|
+
ngImport: i0,
|
|
190
|
+
type: FormFieldsetComponent,
|
|
191
|
+
deps: [],
|
|
192
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
193
|
+
});
|
|
194
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
195
|
+
minVersion: "17.1.0",
|
|
196
|
+
version: "22.2.0",
|
|
197
|
+
type: FormFieldsetComponent,
|
|
198
|
+
isStandalone: true,
|
|
199
|
+
selector: "FormFieldset, fieldset[FormFieldset]",
|
|
200
|
+
inputs: { class: {
|
|
201
|
+
classPropertyName: "class",
|
|
202
|
+
publicName: "class",
|
|
203
|
+
isSignal: true,
|
|
204
|
+
isRequired: false,
|
|
205
|
+
transformFunction: null
|
|
206
|
+
} },
|
|
207
|
+
host: { properties: { "class": "classes()" } },
|
|
208
|
+
ngImport: i0,
|
|
209
|
+
template: `<ng-content />`,
|
|
210
|
+
isInline: true
|
|
211
|
+
});
|
|
212
|
+
};
|
|
213
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
214
|
+
minVersion: "12.0.0",
|
|
215
|
+
version: "22.2.0",
|
|
216
|
+
ngImport: i0,
|
|
217
|
+
type: FormFieldsetComponent,
|
|
218
|
+
decorators: [{
|
|
219
|
+
type: Component,
|
|
220
|
+
args: [{
|
|
221
|
+
selector: "FormFieldset, fieldset[FormFieldset]",
|
|
222
|
+
host: { "[class]": "classes()" },
|
|
223
|
+
template: `<ng-content />`
|
|
224
|
+
}]
|
|
225
|
+
}],
|
|
226
|
+
propDecorators: { class: [{
|
|
227
|
+
type: i0.Input,
|
|
228
|
+
args: [{
|
|
229
|
+
isSignal: true,
|
|
230
|
+
alias: "class",
|
|
231
|
+
required: false
|
|
232
|
+
}]
|
|
233
|
+
}] }
|
|
234
|
+
});
|
|
235
|
+
var FormLegendComponent = class FormLegendComponent {
|
|
236
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
237
|
+
variant = input("legend", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
238
|
+
classes = computed(() => cn("block min-w-0 text-foreground", this.variant() === "label" ? "text-sm font-medium leading-none" : "text-sm font-semibold leading-none", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
239
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
240
|
+
minVersion: "12.0.0",
|
|
241
|
+
version: "22.2.0",
|
|
242
|
+
ngImport: i0,
|
|
243
|
+
type: FormLegendComponent,
|
|
244
|
+
deps: [],
|
|
245
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
246
|
+
});
|
|
247
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
248
|
+
minVersion: "17.1.0",
|
|
249
|
+
version: "22.2.0",
|
|
250
|
+
type: FormLegendComponent,
|
|
251
|
+
isStandalone: true,
|
|
252
|
+
selector: "FormLegend, legend[FormLegend]",
|
|
253
|
+
inputs: {
|
|
254
|
+
class: {
|
|
255
|
+
classPropertyName: "class",
|
|
256
|
+
publicName: "class",
|
|
257
|
+
isSignal: true,
|
|
258
|
+
isRequired: false,
|
|
259
|
+
transformFunction: null
|
|
260
|
+
},
|
|
261
|
+
variant: {
|
|
262
|
+
classPropertyName: "variant",
|
|
263
|
+
publicName: "variant",
|
|
264
|
+
isSignal: true,
|
|
265
|
+
isRequired: false,
|
|
266
|
+
transformFunction: null
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
host: { properties: { "class": "classes()" } },
|
|
270
|
+
ngImport: i0,
|
|
271
|
+
template: `<ng-content />`,
|
|
272
|
+
isInline: true
|
|
273
|
+
});
|
|
274
|
+
};
|
|
275
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
276
|
+
minVersion: "12.0.0",
|
|
277
|
+
version: "22.2.0",
|
|
278
|
+
ngImport: i0,
|
|
279
|
+
type: FormLegendComponent,
|
|
280
|
+
decorators: [{
|
|
281
|
+
type: Component,
|
|
282
|
+
args: [{
|
|
283
|
+
selector: "FormLegend, legend[FormLegend]",
|
|
284
|
+
host: { "[class]": "classes()" },
|
|
285
|
+
template: `<ng-content />`
|
|
286
|
+
}]
|
|
287
|
+
}],
|
|
288
|
+
propDecorators: {
|
|
289
|
+
class: [{
|
|
290
|
+
type: i0.Input,
|
|
291
|
+
args: [{
|
|
292
|
+
isSignal: true,
|
|
293
|
+
alias: "class",
|
|
294
|
+
required: false
|
|
295
|
+
}]
|
|
296
|
+
}],
|
|
297
|
+
variant: [{
|
|
298
|
+
type: i0.Input,
|
|
299
|
+
args: [{
|
|
300
|
+
isSignal: true,
|
|
301
|
+
alias: "variant",
|
|
302
|
+
required: false
|
|
303
|
+
}]
|
|
304
|
+
}]
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
var FormGroupComponent = class FormGroupComponent {
|
|
308
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
309
|
+
classes = computed(() => cn("block min-w-0", "grid gap-6", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
310
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
311
|
+
minVersion: "12.0.0",
|
|
312
|
+
version: "22.2.0",
|
|
313
|
+
ngImport: i0,
|
|
314
|
+
type: FormGroupComponent,
|
|
315
|
+
deps: [],
|
|
316
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
317
|
+
});
|
|
318
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
319
|
+
minVersion: "17.1.0",
|
|
320
|
+
version: "22.2.0",
|
|
321
|
+
type: FormGroupComponent,
|
|
322
|
+
isStandalone: true,
|
|
323
|
+
selector: "FormGroup",
|
|
324
|
+
inputs: { class: {
|
|
325
|
+
classPropertyName: "class",
|
|
326
|
+
publicName: "class",
|
|
327
|
+
isSignal: true,
|
|
328
|
+
isRequired: false,
|
|
329
|
+
transformFunction: null
|
|
330
|
+
} },
|
|
331
|
+
host: { properties: { "class": "classes()" } },
|
|
332
|
+
ngImport: i0,
|
|
333
|
+
template: `<ng-content />`,
|
|
334
|
+
isInline: true
|
|
335
|
+
});
|
|
336
|
+
};
|
|
337
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
338
|
+
minVersion: "12.0.0",
|
|
339
|
+
version: "22.2.0",
|
|
340
|
+
ngImport: i0,
|
|
341
|
+
type: FormGroupComponent,
|
|
342
|
+
decorators: [{
|
|
343
|
+
type: Component,
|
|
344
|
+
args: [{
|
|
345
|
+
selector: "FormGroup",
|
|
346
|
+
host: { "[class]": "classes()" },
|
|
347
|
+
template: `<ng-content />`
|
|
348
|
+
}]
|
|
349
|
+
}],
|
|
350
|
+
propDecorators: { class: [{
|
|
351
|
+
type: i0.Input,
|
|
352
|
+
args: [{
|
|
353
|
+
isSignal: true,
|
|
354
|
+
alias: "class",
|
|
355
|
+
required: false
|
|
356
|
+
}]
|
|
357
|
+
}] }
|
|
358
|
+
});
|
|
359
|
+
var FormSeparatorComponent = class FormSeparatorComponent {
|
|
360
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
361
|
+
classes = computed(() => cn("block min-w-0", "flex items-center gap-3 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground", "before:h-px before:flex-1 before:bg-border after:h-px after:flex-1 after:bg-border", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
362
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
363
|
+
minVersion: "12.0.0",
|
|
364
|
+
version: "22.2.0",
|
|
365
|
+
ngImport: i0,
|
|
366
|
+
type: FormSeparatorComponent,
|
|
367
|
+
deps: [],
|
|
368
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
369
|
+
});
|
|
370
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
371
|
+
minVersion: "17.1.0",
|
|
372
|
+
version: "22.2.0",
|
|
373
|
+
type: FormSeparatorComponent,
|
|
374
|
+
isStandalone: true,
|
|
375
|
+
selector: "FormSeparator",
|
|
376
|
+
inputs: { class: {
|
|
377
|
+
classPropertyName: "class",
|
|
378
|
+
publicName: "class",
|
|
379
|
+
isSignal: true,
|
|
380
|
+
isRequired: false,
|
|
381
|
+
transformFunction: null
|
|
382
|
+
} },
|
|
383
|
+
host: { properties: { "class": "classes()" } },
|
|
384
|
+
ngImport: i0,
|
|
385
|
+
template: `<span class="shrink-0"><ng-content /></span>`,
|
|
386
|
+
isInline: true
|
|
387
|
+
});
|
|
388
|
+
};
|
|
389
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
390
|
+
minVersion: "12.0.0",
|
|
391
|
+
version: "22.2.0",
|
|
392
|
+
ngImport: i0,
|
|
393
|
+
type: FormSeparatorComponent,
|
|
394
|
+
decorators: [{
|
|
395
|
+
type: Component,
|
|
396
|
+
args: [{
|
|
397
|
+
selector: "FormSeparator",
|
|
398
|
+
host: { "[class]": "classes()" },
|
|
399
|
+
template: `<span class="shrink-0"><ng-content /></span>`
|
|
400
|
+
}]
|
|
401
|
+
}],
|
|
402
|
+
propDecorators: { class: [{
|
|
403
|
+
type: i0.Input,
|
|
404
|
+
args: [{
|
|
405
|
+
isSignal: true,
|
|
406
|
+
alias: "class",
|
|
407
|
+
required: false
|
|
408
|
+
}]
|
|
409
|
+
}] }
|
|
410
|
+
});
|
|
411
|
+
var FormContentComponent = class FormContentComponent {
|
|
412
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
413
|
+
classes = computed(() => cn("block min-w-0 flex-1", "grid gap-1.5", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
414
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
415
|
+
minVersion: "12.0.0",
|
|
416
|
+
version: "22.2.0",
|
|
417
|
+
ngImport: i0,
|
|
418
|
+
type: FormContentComponent,
|
|
419
|
+
deps: [],
|
|
420
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
421
|
+
});
|
|
422
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
423
|
+
minVersion: "17.1.0",
|
|
424
|
+
version: "22.2.0",
|
|
425
|
+
type: FormContentComponent,
|
|
426
|
+
isStandalone: true,
|
|
427
|
+
selector: "FormContent",
|
|
428
|
+
inputs: { class: {
|
|
429
|
+
classPropertyName: "class",
|
|
430
|
+
publicName: "class",
|
|
431
|
+
isSignal: true,
|
|
432
|
+
isRequired: false,
|
|
433
|
+
transformFunction: null
|
|
434
|
+
} },
|
|
435
|
+
host: { properties: { "class": "classes()" } },
|
|
436
|
+
ngImport: i0,
|
|
437
|
+
template: `<ng-content />`,
|
|
438
|
+
isInline: true
|
|
439
|
+
});
|
|
440
|
+
};
|
|
441
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
442
|
+
minVersion: "12.0.0",
|
|
443
|
+
version: "22.2.0",
|
|
444
|
+
ngImport: i0,
|
|
445
|
+
type: FormContentComponent,
|
|
446
|
+
decorators: [{
|
|
447
|
+
type: Component,
|
|
448
|
+
args: [{
|
|
449
|
+
selector: "FormContent",
|
|
450
|
+
host: { "[class]": "classes()" },
|
|
451
|
+
template: `<ng-content />`
|
|
452
|
+
}]
|
|
453
|
+
}],
|
|
454
|
+
propDecorators: { class: [{
|
|
455
|
+
type: i0.Input,
|
|
456
|
+
args: [{
|
|
457
|
+
isSignal: true,
|
|
458
|
+
alias: "class",
|
|
459
|
+
required: false
|
|
460
|
+
}]
|
|
461
|
+
}] }
|
|
462
|
+
});
|
|
463
|
+
var FormTitleComponent = class FormTitleComponent {
|
|
464
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
465
|
+
classes = computed(() => cn("block text-sm font-medium leading-none text-foreground", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
466
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
467
|
+
minVersion: "12.0.0",
|
|
468
|
+
version: "22.2.0",
|
|
469
|
+
ngImport: i0,
|
|
470
|
+
type: FormTitleComponent,
|
|
471
|
+
deps: [],
|
|
472
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
473
|
+
});
|
|
474
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
475
|
+
minVersion: "17.1.0",
|
|
476
|
+
version: "22.2.0",
|
|
477
|
+
type: FormTitleComponent,
|
|
478
|
+
isStandalone: true,
|
|
479
|
+
selector: "FormTitle",
|
|
480
|
+
inputs: { class: {
|
|
481
|
+
classPropertyName: "class",
|
|
482
|
+
publicName: "class",
|
|
483
|
+
isSignal: true,
|
|
484
|
+
isRequired: false,
|
|
485
|
+
transformFunction: null
|
|
486
|
+
} },
|
|
487
|
+
host: { properties: { "class": "classes()" } },
|
|
488
|
+
ngImport: i0,
|
|
489
|
+
template: `<ng-content />`,
|
|
490
|
+
isInline: true
|
|
491
|
+
});
|
|
492
|
+
};
|
|
493
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
494
|
+
minVersion: "12.0.0",
|
|
495
|
+
version: "22.2.0",
|
|
496
|
+
ngImport: i0,
|
|
497
|
+
type: FormTitleComponent,
|
|
498
|
+
decorators: [{
|
|
499
|
+
type: Component,
|
|
500
|
+
args: [{
|
|
501
|
+
selector: "FormTitle",
|
|
502
|
+
host: { "[class]": "classes()" },
|
|
503
|
+
template: `<ng-content />`
|
|
504
|
+
}]
|
|
505
|
+
}],
|
|
506
|
+
propDecorators: { class: [{
|
|
507
|
+
type: i0.Input,
|
|
508
|
+
args: [{
|
|
509
|
+
isSignal: true,
|
|
510
|
+
alias: "class",
|
|
511
|
+
required: false
|
|
512
|
+
}]
|
|
513
|
+
}] }
|
|
514
|
+
});
|
|
515
|
+
var FormLabelComponent = class FormLabelComponent {
|
|
516
|
+
ctx = inject(FormFieldContext);
|
|
517
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
518
|
+
classes = computed(() => cn("text-sm font-medium leading-none", this.ctx.invalid() ? "text-destructive" : "text-foreground", "peer-disabled:cursor-not-allowed peer-disabled:opacity-70", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
519
|
+
ngOnInit() {
|
|
520
|
+
this.ctx.hasLabel.set(true);
|
|
521
|
+
}
|
|
522
|
+
ngOnDestroy() {
|
|
523
|
+
this.ctx.hasLabel.set(false);
|
|
524
|
+
}
|
|
525
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
526
|
+
minVersion: "12.0.0",
|
|
527
|
+
version: "22.2.0",
|
|
528
|
+
ngImport: i0,
|
|
529
|
+
type: FormLabelComponent,
|
|
530
|
+
deps: [],
|
|
531
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
532
|
+
});
|
|
533
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
534
|
+
minVersion: "17.1.0",
|
|
535
|
+
version: "22.2.0",
|
|
536
|
+
type: FormLabelComponent,
|
|
537
|
+
isStandalone: true,
|
|
538
|
+
selector: "FormLabel, label[FormLabel]",
|
|
539
|
+
inputs: { class: {
|
|
540
|
+
classPropertyName: "class",
|
|
541
|
+
publicName: "class",
|
|
542
|
+
isSignal: true,
|
|
543
|
+
isRequired: false,
|
|
544
|
+
transformFunction: null
|
|
545
|
+
} },
|
|
546
|
+
host: { properties: {
|
|
547
|
+
"class": "classes()",
|
|
548
|
+
"attr.id": "ctx.labelId",
|
|
549
|
+
"attr.for": "ctx.controlId"
|
|
550
|
+
} },
|
|
551
|
+
ngImport: i0,
|
|
552
|
+
template: `<ng-content />`,
|
|
553
|
+
isInline: true
|
|
554
|
+
});
|
|
555
|
+
};
|
|
556
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
557
|
+
minVersion: "12.0.0",
|
|
558
|
+
version: "22.2.0",
|
|
559
|
+
ngImport: i0,
|
|
560
|
+
type: FormLabelComponent,
|
|
561
|
+
decorators: [{
|
|
562
|
+
type: Component,
|
|
563
|
+
args: [{
|
|
564
|
+
selector: "FormLabel, label[FormLabel]",
|
|
565
|
+
host: {
|
|
566
|
+
"[class]": "classes()",
|
|
567
|
+
"[attr.id]": "ctx.labelId",
|
|
568
|
+
"[attr.for]": "ctx.controlId"
|
|
569
|
+
},
|
|
570
|
+
template: `<ng-content />`
|
|
571
|
+
}]
|
|
572
|
+
}],
|
|
573
|
+
propDecorators: { class: [{
|
|
574
|
+
type: i0.Input,
|
|
575
|
+
args: [{
|
|
576
|
+
isSignal: true,
|
|
577
|
+
alias: "class",
|
|
578
|
+
required: false
|
|
579
|
+
}]
|
|
580
|
+
}] }
|
|
581
|
+
});
|
|
582
|
+
var FormDescriptionComponent = class FormDescriptionComponent {
|
|
583
|
+
ctx = inject(FormFieldContext, { optional: true });
|
|
584
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
585
|
+
classes = computed(() => cn("text-sm text-muted-foreground", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
586
|
+
descriptionId = computed(() => this.ctx?.descriptionId ?? null, ...ngDevMode ? [{ debugName: "descriptionId" }] : /* istanbul ignore next */ []);
|
|
587
|
+
ngOnInit() {
|
|
588
|
+
this.ctx?.hasDescription.set(true);
|
|
589
|
+
}
|
|
590
|
+
ngOnDestroy() {
|
|
591
|
+
this.ctx?.hasDescription.set(false);
|
|
592
|
+
}
|
|
593
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
594
|
+
minVersion: "12.0.0",
|
|
595
|
+
version: "22.2.0",
|
|
596
|
+
ngImport: i0,
|
|
597
|
+
type: FormDescriptionComponent,
|
|
598
|
+
deps: [],
|
|
599
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
600
|
+
});
|
|
601
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
602
|
+
minVersion: "17.1.0",
|
|
603
|
+
version: "22.2.0",
|
|
604
|
+
type: FormDescriptionComponent,
|
|
605
|
+
isStandalone: true,
|
|
606
|
+
selector: "FormDescription, p[FormDescription]",
|
|
607
|
+
inputs: { class: {
|
|
608
|
+
classPropertyName: "class",
|
|
609
|
+
publicName: "class",
|
|
610
|
+
isSignal: true,
|
|
611
|
+
isRequired: false,
|
|
612
|
+
transformFunction: null
|
|
613
|
+
} },
|
|
614
|
+
host: { properties: {
|
|
615
|
+
"class": "classes()",
|
|
616
|
+
"attr.id": "descriptionId()"
|
|
617
|
+
} },
|
|
618
|
+
ngImport: i0,
|
|
619
|
+
template: `<ng-content />`,
|
|
620
|
+
isInline: true
|
|
621
|
+
});
|
|
622
|
+
};
|
|
623
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
624
|
+
minVersion: "12.0.0",
|
|
625
|
+
version: "22.2.0",
|
|
626
|
+
ngImport: i0,
|
|
627
|
+
type: FormDescriptionComponent,
|
|
628
|
+
decorators: [{
|
|
629
|
+
type: Component,
|
|
630
|
+
args: [{
|
|
631
|
+
selector: "FormDescription, p[FormDescription]",
|
|
632
|
+
host: {
|
|
633
|
+
"[class]": "classes()",
|
|
634
|
+
"[attr.id]": "descriptionId()"
|
|
635
|
+
},
|
|
636
|
+
template: `<ng-content />`
|
|
637
|
+
}]
|
|
638
|
+
}],
|
|
639
|
+
propDecorators: { class: [{
|
|
640
|
+
type: i0.Input,
|
|
641
|
+
args: [{
|
|
642
|
+
isSignal: true,
|
|
643
|
+
alias: "class",
|
|
644
|
+
required: false
|
|
645
|
+
}]
|
|
646
|
+
}] }
|
|
647
|
+
});
|
|
648
|
+
const numericConstraint = (value, key) => value && typeof value === "object" && key in value ? value[key] : void 0;
|
|
305
649
|
const defaultFormErrorMessageResolver = (errorKey, errorValue) => {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
case 'min':
|
|
318
|
-
return `Enter a value greater than or equal to ${numericConstraint(errorValue, 'min')}.`;
|
|
319
|
-
case 'max':
|
|
320
|
-
return `Enter a value less than or equal to ${numericConstraint(errorValue, 'max')}.`;
|
|
321
|
-
case 'pattern':
|
|
322
|
-
return 'Enter a value in the required format.';
|
|
323
|
-
default:
|
|
324
|
-
return 'Enter a valid value.';
|
|
325
|
-
}
|
|
650
|
+
switch (errorKey) {
|
|
651
|
+
case "required": return "This field is required.";
|
|
652
|
+
case "requiredTrue": return "This option must be selected.";
|
|
653
|
+
case "email": return "Enter a valid email address.";
|
|
654
|
+
case "minlength": return `Enter at least ${numericConstraint(errorValue, "requiredLength")} characters.`;
|
|
655
|
+
case "maxlength": return `Enter no more than ${numericConstraint(errorValue, "requiredLength")} characters.`;
|
|
656
|
+
case "min": return `Enter a value greater than or equal to ${numericConstraint(errorValue, "min")}.`;
|
|
657
|
+
case "max": return `Enter a value less than or equal to ${numericConstraint(errorValue, "max")}.`;
|
|
658
|
+
case "pattern": return "Enter a value in the required format.";
|
|
659
|
+
default: return "Enter a valid value.";
|
|
660
|
+
}
|
|
326
661
|
};
|
|
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
|
-
|
|
662
|
+
var FormMessageComponent = class FormMessageComponent {
|
|
663
|
+
ctx = inject(FormFieldContext);
|
|
664
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
665
|
+
errorMessageResolver = input(defaultFormErrorMessageResolver, ...ngDevMode ? [{ debugName: "errorMessageResolver" }] : /* istanbul ignore next */ []);
|
|
666
|
+
show = computed(() => this.ctx.invalid(), ...ngDevMode ? [{ debugName: "show" }] : /* istanbul ignore next */ []);
|
|
667
|
+
message = computed(() => {
|
|
668
|
+
const errorKey = this.ctx.firstError();
|
|
669
|
+
const control = this.ctx.control();
|
|
670
|
+
if (!errorKey) return "";
|
|
671
|
+
return this.errorMessageResolver()(errorKey, control?.errors?.[errorKey], control);
|
|
672
|
+
}, ...ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []);
|
|
673
|
+
classes = computed(() => cn("text-sm font-medium text-destructive", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
674
|
+
ngOnInit() {
|
|
675
|
+
this.ctx.hasMessage.set(true);
|
|
676
|
+
}
|
|
677
|
+
ngOnDestroy() {
|
|
678
|
+
this.ctx.hasMessage.set(false);
|
|
679
|
+
}
|
|
680
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
681
|
+
minVersion: "12.0.0",
|
|
682
|
+
version: "22.2.0",
|
|
683
|
+
ngImport: i0,
|
|
684
|
+
type: FormMessageComponent,
|
|
685
|
+
deps: [],
|
|
686
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
687
|
+
});
|
|
688
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
689
|
+
minVersion: "17.0.0",
|
|
690
|
+
version: "22.2.0",
|
|
691
|
+
type: FormMessageComponent,
|
|
692
|
+
isStandalone: true,
|
|
693
|
+
selector: "FormMessage, p[FormMessage]",
|
|
694
|
+
inputs: {
|
|
695
|
+
class: {
|
|
696
|
+
classPropertyName: "class",
|
|
697
|
+
publicName: "class",
|
|
698
|
+
isSignal: true,
|
|
699
|
+
isRequired: false,
|
|
700
|
+
transformFunction: null
|
|
701
|
+
},
|
|
702
|
+
errorMessageResolver: {
|
|
703
|
+
classPropertyName: "errorMessageResolver",
|
|
704
|
+
publicName: "errorMessageResolver",
|
|
705
|
+
isSignal: true,
|
|
706
|
+
isRequired: false,
|
|
707
|
+
transformFunction: null
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
host: { properties: {
|
|
711
|
+
"class": "classes()",
|
|
712
|
+
"attr.id": "ctx.messageId",
|
|
713
|
+
"attr.role": "\"status\""
|
|
714
|
+
} },
|
|
715
|
+
ngImport: i0,
|
|
716
|
+
template: `
|
|
359
717
|
@if (show()) {
|
|
360
718
|
<ng-content>{{ message() }}</ng-content>
|
|
361
719
|
}
|
|
362
|
-
`,
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
720
|
+
`,
|
|
721
|
+
isInline: true
|
|
722
|
+
});
|
|
723
|
+
};
|
|
724
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
725
|
+
minVersion: "12.0.0",
|
|
726
|
+
version: "22.2.0",
|
|
727
|
+
ngImport: i0,
|
|
728
|
+
type: FormMessageComponent,
|
|
729
|
+
decorators: [{
|
|
730
|
+
type: Component,
|
|
731
|
+
args: [{
|
|
732
|
+
selector: "FormMessage, p[FormMessage]",
|
|
733
|
+
host: {
|
|
734
|
+
"[class]": "classes()",
|
|
735
|
+
"[attr.id]": "ctx.messageId",
|
|
736
|
+
"[attr.role]": "\"status\""
|
|
737
|
+
},
|
|
738
|
+
template: `
|
|
378
739
|
@if (show()) {
|
|
379
740
|
<ng-content>{{ message() }}</ng-content>
|
|
380
741
|
}
|
|
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
|
-
i0.ɵɵ
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
742
|
+
`
|
|
743
|
+
}]
|
|
744
|
+
}],
|
|
745
|
+
propDecorators: {
|
|
746
|
+
class: [{
|
|
747
|
+
type: i0.Input,
|
|
748
|
+
args: [{
|
|
749
|
+
isSignal: true,
|
|
750
|
+
alias: "class",
|
|
751
|
+
required: false
|
|
752
|
+
}]
|
|
753
|
+
}],
|
|
754
|
+
errorMessageResolver: [{
|
|
755
|
+
type: i0.Input,
|
|
756
|
+
args: [{
|
|
757
|
+
isSignal: true,
|
|
758
|
+
alias: "errorMessageResolver",
|
|
759
|
+
required: false
|
|
760
|
+
}]
|
|
761
|
+
}]
|
|
762
|
+
}
|
|
763
|
+
});
|
|
764
|
+
var FormControlDirective = class FormControlDirective {
|
|
765
|
+
ctx = inject(FormFieldContext);
|
|
766
|
+
ngControl = inject(NgControl, {
|
|
767
|
+
optional: true,
|
|
768
|
+
self: true
|
|
769
|
+
});
|
|
770
|
+
ngOnInit() {
|
|
771
|
+
this.publishControl();
|
|
772
|
+
}
|
|
773
|
+
ngAfterViewInit() {
|
|
774
|
+
this.publishControl();
|
|
775
|
+
}
|
|
776
|
+
publishControl() {
|
|
777
|
+
const control = this.ngControl?.control ?? null;
|
|
778
|
+
if (control !== this.ctx.control()) this.ctx.control.set(control);
|
|
779
|
+
}
|
|
780
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
781
|
+
minVersion: "12.0.0",
|
|
782
|
+
version: "22.2.0",
|
|
783
|
+
ngImport: i0,
|
|
784
|
+
type: FormControlDirective,
|
|
785
|
+
deps: [],
|
|
786
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
787
|
+
});
|
|
788
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
789
|
+
minVersion: "14.0.0",
|
|
790
|
+
version: "22.2.0",
|
|
791
|
+
type: FormControlDirective,
|
|
792
|
+
isStandalone: true,
|
|
793
|
+
selector: "[FormControl]",
|
|
794
|
+
host: { properties: {
|
|
795
|
+
"attr.id": "ctx.controlId",
|
|
796
|
+
"attr.aria-labelledby": "ctx.labelledBy()",
|
|
797
|
+
"attr.aria-describedby": "ctx.describedBy()",
|
|
798
|
+
"attr.aria-invalid": "ctx.invalid() ? \"true\" : null"
|
|
799
|
+
} },
|
|
800
|
+
ngImport: i0
|
|
801
|
+
});
|
|
802
|
+
};
|
|
803
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
804
|
+
minVersion: "12.0.0",
|
|
805
|
+
version: "22.2.0",
|
|
806
|
+
ngImport: i0,
|
|
807
|
+
type: FormControlDirective,
|
|
808
|
+
decorators: [{
|
|
809
|
+
type: Directive,
|
|
810
|
+
args: [{
|
|
811
|
+
selector: "[FormControl]",
|
|
812
|
+
host: {
|
|
813
|
+
"[attr.id]": "ctx.controlId",
|
|
814
|
+
"[attr.aria-labelledby]": "ctx.labelledBy()",
|
|
815
|
+
"[attr.aria-describedby]": "ctx.describedBy()",
|
|
816
|
+
"[attr.aria-invalid]": "ctx.invalid() ? \"true\" : null"
|
|
817
|
+
}
|
|
818
|
+
}]
|
|
819
|
+
}]
|
|
820
|
+
});
|
|
821
|
+
export { FormContentComponent, FormControlDirective, FormDescriptionComponent, FormFieldComponent, FormFieldContext, FormFieldsetComponent, FormGroupComponent, FormLabelComponent, FormLegendComponent, FormMessageComponent, FormSeparatorComponent, FormTitleComponent, defaultFormErrorMessageResolver };
|