@ojiepermana/angular 22.1.14 → 22.2.1
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 +1 -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-DYuysKVf.mjs +129 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-COiTaw34.mjs +812 -0
- package/fesm2022/{ojiepermana-angular-navigation-navigation-entry-grid.component-COQ-60DS.mjs → ojiepermana-angular-navigation-navigation-entry-grid.component-YIz0IsIb.mjs} +392 -207
- package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-D2vwEwBY.mjs +650 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-B5D7yXfb.mjs +662 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-item.component-CUb68MZH.mjs +1219 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-list.component-CrK16trj.mjs +327 -0
- package/fesm2022/ojiepermana-angular-navigation-service.mjs +544 -724
- package/fesm2022/ojiepermana-angular-navigation-types.mjs +139 -56
- package/fesm2022/ojiepermana-angular-navigation.mjs +3256 -4
- package/fesm2022/ojiepermana-angular-sdk.mjs +91 -201
- package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +1125 -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 +1928 -553
- package/fesm2022/ojiepermana-angular-theme-layout.mjs +847 -496
- 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 +69 -18
- 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 +166 -125
- package/types/ojiepermana-angular-navigation.d.ts +708 -375
- package/types/ojiepermana-angular-sdk.d.ts +69 -71
- package/types/ojiepermana-angular-theme-component-settings.d.ts +120 -86
- 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 +446 -187
- package/types/ojiepermana-angular-theme-layout.d.ts +201 -113
- 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-Be3IqzG4.mjs +0 -91
- package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-Bc7DWK3R.mjs +0 -522
- package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-DA8VPEn7.mjs +0 -404
- package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-U2TJTzlW.mjs +0 -466
- package/fesm2022/ojiepermana-angular-navigation-ojiepermana-angular-navigation-CIUhmytH.mjs +0 -2668
|
@@ -1,93 +1,165 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { cn, injectUniqueId } from
|
|
4
|
-
import * as i1 from
|
|
5
|
-
import { ComponentScaleDirective } from
|
|
6
|
-
import { DialogComponent } from
|
|
7
|
-
import { buttonVariants } from
|
|
8
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, DestroyRef, ElementRef, computed, effect, inject, input, model, output, signal } from "@angular/core";
|
|
3
|
+
import { cn, injectUniqueId } from "@ojiepermana/angular/component/utils/core";
|
|
4
|
+
import * as i1 from "@ojiepermana/angular/component/utils/scale";
|
|
5
|
+
import { ComponentScaleDirective } from "@ojiepermana/angular/component/utils/scale";
|
|
6
|
+
import { DialogComponent } from "@ojiepermana/angular/component/dialog";
|
|
7
|
+
import { buttonVariants } from "@ojiepermana/angular/component/button";
|
|
9
8
|
const ALERT_DIALOG_SIZE_CLASSES = {
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
default: "sm:max-w-lg",
|
|
10
|
+
sm: "sm:max-w-sm"
|
|
12
11
|
};
|
|
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
|
-
|
|
12
|
+
var AlertDialogComponent = class AlertDialogComponent {
|
|
13
|
+
componentScale = inject(ComponentScaleDirective);
|
|
14
|
+
radius = this.componentScale.radius;
|
|
15
|
+
density = this.componentScale.density;
|
|
16
|
+
open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
17
|
+
closeOnEscape = input(true, ...ngDevMode ? [{ debugName: "closeOnEscape" }] : /* istanbul ignore next */ []);
|
|
18
|
+
closeOnBackdropClick = input(false, ...ngDevMode ? [{ debugName: "closeOnBackdropClick" }] : /* istanbul ignore next */ []);
|
|
19
|
+
backdrop = input("dim", ...ngDevMode ? [{ debugName: "backdrop" }] : /* istanbul ignore next */ []);
|
|
20
|
+
showCloseButton = input(false, ...ngDevMode ? [{ debugName: "showCloseButton" }] : /* istanbul ignore next */ []);
|
|
21
|
+
closeButtonLabel = input("Close", ...ngDevMode ? [{ debugName: "closeButtonLabel" }] : /* istanbul ignore next */ []);
|
|
22
|
+
labelledBy = input(null, {
|
|
23
|
+
...ngDevMode ? { debugName: "labelledBy" } : /* istanbul ignore next */ {},
|
|
24
|
+
alias: "aria-labelledby"
|
|
25
|
+
});
|
|
26
|
+
describedBy = input(null, {
|
|
27
|
+
...ngDevMode ? { debugName: "describedBy" } : /* istanbul ignore next */ {},
|
|
28
|
+
alias: "aria-describedby"
|
|
29
|
+
});
|
|
30
|
+
role = input("alertdialog", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
|
|
31
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
32
|
+
openedChange = output();
|
|
33
|
+
contentSize = signal("default", ...ngDevMode ? [{ debugName: "contentSize" }] : /* istanbul ignore next */ []);
|
|
34
|
+
registeredTitleId = signal(null, ...ngDevMode ? [{ debugName: "registeredTitleId" }] : /* istanbul ignore next */ []);
|
|
35
|
+
registeredDescriptionId = signal(null, ...ngDevMode ? [{ debugName: "registeredDescriptionId" }] : /* istanbul ignore next */ []);
|
|
36
|
+
resolvedSize = computed(() => this.contentSize(), ...ngDevMode ? [{ debugName: "resolvedSize" }] : /* istanbul ignore next */ []);
|
|
37
|
+
surfaceClasses = computed(() => cn(ALERT_DIALOG_SIZE_CLASSES[this.resolvedSize()], this.class()), ...ngDevMode ? [{ debugName: "surfaceClasses" }] : /* istanbul ignore next */ []);
|
|
38
|
+
resolvedLabelledBy = computed(() => this.labelledBy() ?? this.registeredTitleId(), ...ngDevMode ? [{ debugName: "resolvedLabelledBy" }] : /* istanbul ignore next */ []);
|
|
39
|
+
resolvedDescribedBy = computed(() => this.describedBy() ?? this.registeredDescriptionId(), ...ngDevMode ? [{ debugName: "resolvedDescribedBy" }] : /* istanbul ignore next */ []);
|
|
40
|
+
setContentSize(size) {
|
|
41
|
+
this.contentSize.set(size);
|
|
42
|
+
}
|
|
43
|
+
registerTitleId(id) {
|
|
44
|
+
this.registeredTitleId.set(id);
|
|
45
|
+
}
|
|
46
|
+
unregisterTitleId(id) {
|
|
47
|
+
if (this.registeredTitleId() === id) this.registeredTitleId.set(null);
|
|
48
|
+
}
|
|
49
|
+
registerDescriptionId(id) {
|
|
50
|
+
this.registeredDescriptionId.set(id);
|
|
51
|
+
}
|
|
52
|
+
unregisterDescriptionId(id) {
|
|
53
|
+
if (this.registeredDescriptionId() === id) this.registeredDescriptionId.set(null);
|
|
54
|
+
}
|
|
55
|
+
close() {
|
|
56
|
+
this.open.set(false);
|
|
57
|
+
}
|
|
58
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
59
|
+
minVersion: "12.0.0",
|
|
60
|
+
version: "22.2.2",
|
|
61
|
+
ngImport: i0,
|
|
62
|
+
type: AlertDialogComponent,
|
|
63
|
+
deps: [],
|
|
64
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
65
|
+
});
|
|
66
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
67
|
+
minVersion: "17.1.0",
|
|
68
|
+
version: "22.2.2",
|
|
69
|
+
type: AlertDialogComponent,
|
|
70
|
+
isStandalone: true,
|
|
71
|
+
selector: "AlertDialog",
|
|
72
|
+
inputs: {
|
|
73
|
+
open: {
|
|
74
|
+
classPropertyName: "open",
|
|
75
|
+
publicName: "open",
|
|
76
|
+
isSignal: true,
|
|
77
|
+
isRequired: false,
|
|
78
|
+
transformFunction: null
|
|
79
|
+
},
|
|
80
|
+
closeOnEscape: {
|
|
81
|
+
classPropertyName: "closeOnEscape",
|
|
82
|
+
publicName: "closeOnEscape",
|
|
83
|
+
isSignal: true,
|
|
84
|
+
isRequired: false,
|
|
85
|
+
transformFunction: null
|
|
86
|
+
},
|
|
87
|
+
closeOnBackdropClick: {
|
|
88
|
+
classPropertyName: "closeOnBackdropClick",
|
|
89
|
+
publicName: "closeOnBackdropClick",
|
|
90
|
+
isSignal: true,
|
|
91
|
+
isRequired: false,
|
|
92
|
+
transformFunction: null
|
|
93
|
+
},
|
|
94
|
+
backdrop: {
|
|
95
|
+
classPropertyName: "backdrop",
|
|
96
|
+
publicName: "backdrop",
|
|
97
|
+
isSignal: true,
|
|
98
|
+
isRequired: false,
|
|
99
|
+
transformFunction: null
|
|
100
|
+
},
|
|
101
|
+
showCloseButton: {
|
|
102
|
+
classPropertyName: "showCloseButton",
|
|
103
|
+
publicName: "showCloseButton",
|
|
104
|
+
isSignal: true,
|
|
105
|
+
isRequired: false,
|
|
106
|
+
transformFunction: null
|
|
107
|
+
},
|
|
108
|
+
closeButtonLabel: {
|
|
109
|
+
classPropertyName: "closeButtonLabel",
|
|
110
|
+
publicName: "closeButtonLabel",
|
|
111
|
+
isSignal: true,
|
|
112
|
+
isRequired: false,
|
|
113
|
+
transformFunction: null
|
|
114
|
+
},
|
|
115
|
+
labelledBy: {
|
|
116
|
+
classPropertyName: "labelledBy",
|
|
117
|
+
publicName: "aria-labelledby",
|
|
118
|
+
isSignal: true,
|
|
119
|
+
isRequired: false,
|
|
120
|
+
transformFunction: null
|
|
121
|
+
},
|
|
122
|
+
describedBy: {
|
|
123
|
+
classPropertyName: "describedBy",
|
|
124
|
+
publicName: "aria-describedby",
|
|
125
|
+
isSignal: true,
|
|
126
|
+
isRequired: false,
|
|
127
|
+
transformFunction: null
|
|
128
|
+
},
|
|
129
|
+
role: {
|
|
130
|
+
classPropertyName: "role",
|
|
131
|
+
publicName: "role",
|
|
132
|
+
isSignal: true,
|
|
133
|
+
isRequired: false,
|
|
134
|
+
transformFunction: null
|
|
135
|
+
},
|
|
136
|
+
class: {
|
|
137
|
+
classPropertyName: "class",
|
|
138
|
+
publicName: "class",
|
|
139
|
+
isSignal: true,
|
|
140
|
+
isRequired: false,
|
|
141
|
+
transformFunction: null
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
outputs: {
|
|
145
|
+
open: "openChange",
|
|
146
|
+
openedChange: "openedChange"
|
|
147
|
+
},
|
|
148
|
+
host: { properties: {
|
|
149
|
+
"attr.aria-labelledby": "null",
|
|
150
|
+
"attr.aria-describedby": "null"
|
|
151
|
+
} },
|
|
152
|
+
hostDirectives: [{
|
|
153
|
+
directive: i1.ComponentScaleDirective,
|
|
154
|
+
inputs: [
|
|
155
|
+
"radius",
|
|
156
|
+
"radius",
|
|
157
|
+
"density",
|
|
158
|
+
"density"
|
|
159
|
+
]
|
|
160
|
+
}],
|
|
161
|
+
ngImport: i0,
|
|
162
|
+
template: `
|
|
91
163
|
<Dialog
|
|
92
164
|
[(open)]="open"
|
|
93
165
|
[role]="role()"
|
|
@@ -105,27 +177,47 @@ class AlertDialogComponent {
|
|
|
105
177
|
>
|
|
106
178
|
<ng-content />
|
|
107
179
|
</Dialog>
|
|
108
|
-
`,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
180
|
+
`,
|
|
181
|
+
isInline: true,
|
|
182
|
+
dependencies: [{
|
|
183
|
+
kind: "component",
|
|
184
|
+
type: DialogComponent,
|
|
185
|
+
selector: "Dialog",
|
|
186
|
+
inputs: [
|
|
187
|
+
"open",
|
|
188
|
+
"closeOnEscape",
|
|
189
|
+
"closeOnBackdropClick",
|
|
190
|
+
"backdrop",
|
|
191
|
+
"showCloseButton",
|
|
192
|
+
"closeButtonLabel",
|
|
193
|
+
"aria-labelledby",
|
|
194
|
+
"aria-describedby",
|
|
195
|
+
"role",
|
|
196
|
+
"class"
|
|
197
|
+
],
|
|
198
|
+
outputs: ["openChange", "openedChange"]
|
|
199
|
+
}]
|
|
200
|
+
});
|
|
201
|
+
};
|
|
202
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
203
|
+
minVersion: "12.0.0",
|
|
204
|
+
version: "22.2.2",
|
|
205
|
+
ngImport: i0,
|
|
206
|
+
type: AlertDialogComponent,
|
|
207
|
+
decorators: [{
|
|
208
|
+
type: Component,
|
|
209
|
+
args: [{
|
|
210
|
+
selector: "AlertDialog",
|
|
211
|
+
hostDirectives: [{
|
|
212
|
+
directive: ComponentScaleDirective,
|
|
213
|
+
inputs: ["radius", "density"]
|
|
214
|
+
}],
|
|
215
|
+
host: {
|
|
216
|
+
"[attr.aria-labelledby]": "null",
|
|
217
|
+
"[attr.aria-describedby]": "null"
|
|
218
|
+
},
|
|
219
|
+
imports: [DialogComponent],
|
|
220
|
+
template: `
|
|
129
221
|
<Dialog
|
|
130
222
|
[(open)]="open"
|
|
131
223
|
[role]="role()"
|
|
@@ -143,221 +235,767 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
143
235
|
>
|
|
144
236
|
<ng-content />
|
|
145
237
|
</Dialog>
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
238
|
+
`
|
|
239
|
+
}]
|
|
240
|
+
}],
|
|
241
|
+
propDecorators: {
|
|
242
|
+
open: [{
|
|
243
|
+
type: i0.Input,
|
|
244
|
+
args: [{
|
|
245
|
+
isSignal: true,
|
|
246
|
+
alias: "open",
|
|
247
|
+
required: false
|
|
248
|
+
}]
|
|
249
|
+
}, {
|
|
250
|
+
type: i0.Output,
|
|
251
|
+
args: ["openChange"]
|
|
252
|
+
}],
|
|
253
|
+
closeOnEscape: [{
|
|
254
|
+
type: i0.Input,
|
|
255
|
+
args: [{
|
|
256
|
+
isSignal: true,
|
|
257
|
+
alias: "closeOnEscape",
|
|
258
|
+
required: false
|
|
259
|
+
}]
|
|
260
|
+
}],
|
|
261
|
+
closeOnBackdropClick: [{
|
|
262
|
+
type: i0.Input,
|
|
263
|
+
args: [{
|
|
264
|
+
isSignal: true,
|
|
265
|
+
alias: "closeOnBackdropClick",
|
|
266
|
+
required: false
|
|
267
|
+
}]
|
|
268
|
+
}],
|
|
269
|
+
backdrop: [{
|
|
270
|
+
type: i0.Input,
|
|
271
|
+
args: [{
|
|
272
|
+
isSignal: true,
|
|
273
|
+
alias: "backdrop",
|
|
274
|
+
required: false
|
|
275
|
+
}]
|
|
276
|
+
}],
|
|
277
|
+
showCloseButton: [{
|
|
278
|
+
type: i0.Input,
|
|
279
|
+
args: [{
|
|
280
|
+
isSignal: true,
|
|
281
|
+
alias: "showCloseButton",
|
|
282
|
+
required: false
|
|
283
|
+
}]
|
|
284
|
+
}],
|
|
285
|
+
closeButtonLabel: [{
|
|
286
|
+
type: i0.Input,
|
|
287
|
+
args: [{
|
|
288
|
+
isSignal: true,
|
|
289
|
+
alias: "closeButtonLabel",
|
|
290
|
+
required: false
|
|
291
|
+
}]
|
|
292
|
+
}],
|
|
293
|
+
labelledBy: [{
|
|
294
|
+
type: i0.Input,
|
|
295
|
+
args: [{
|
|
296
|
+
isSignal: true,
|
|
297
|
+
alias: "aria-labelledby",
|
|
298
|
+
required: false
|
|
299
|
+
}]
|
|
300
|
+
}],
|
|
301
|
+
describedBy: [{
|
|
302
|
+
type: i0.Input,
|
|
303
|
+
args: [{
|
|
304
|
+
isSignal: true,
|
|
305
|
+
alias: "aria-describedby",
|
|
306
|
+
required: false
|
|
307
|
+
}]
|
|
308
|
+
}],
|
|
309
|
+
role: [{
|
|
310
|
+
type: i0.Input,
|
|
311
|
+
args: [{
|
|
312
|
+
isSignal: true,
|
|
313
|
+
alias: "role",
|
|
314
|
+
required: false
|
|
315
|
+
}]
|
|
316
|
+
}],
|
|
317
|
+
class: [{
|
|
318
|
+
type: i0.Input,
|
|
319
|
+
args: [{
|
|
320
|
+
isSignal: true,
|
|
321
|
+
alias: "class",
|
|
322
|
+
required: false
|
|
323
|
+
}]
|
|
324
|
+
}],
|
|
325
|
+
openedChange: [{
|
|
326
|
+
type: i0.Output,
|
|
327
|
+
args: ["openedChange"]
|
|
328
|
+
}]
|
|
329
|
+
}
|
|
330
|
+
});
|
|
150
331
|
const ALERT_DIALOG_MEDIA_SIZE_CLASSES = {
|
|
151
|
-
|
|
152
|
-
|
|
332
|
+
default: "h-12 w-12 [&_svg]:h-5 [&_svg]:w-5",
|
|
333
|
+
sm: "h-10 w-10 [&_svg]:h-4.5 [&_svg]:w-4.5"
|
|
334
|
+
};
|
|
335
|
+
var AlertDialogContentComponent = class AlertDialogContentComponent {
|
|
336
|
+
size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
337
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
338
|
+
alertDialog = inject(AlertDialogComponent, { optional: true });
|
|
339
|
+
classes = computed(() => cn("grid gap-4", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
340
|
+
constructor() {
|
|
341
|
+
effect(() => this.alertDialog?.setContentSize(this.size()));
|
|
342
|
+
}
|
|
343
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
344
|
+
minVersion: "12.0.0",
|
|
345
|
+
version: "22.2.2",
|
|
346
|
+
ngImport: i0,
|
|
347
|
+
type: AlertDialogContentComponent,
|
|
348
|
+
deps: [],
|
|
349
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
350
|
+
});
|
|
351
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
352
|
+
minVersion: "17.1.0",
|
|
353
|
+
version: "22.2.2",
|
|
354
|
+
type: AlertDialogContentComponent,
|
|
355
|
+
isStandalone: true,
|
|
356
|
+
selector: "AlertDialogContent",
|
|
357
|
+
inputs: {
|
|
358
|
+
size: {
|
|
359
|
+
classPropertyName: "size",
|
|
360
|
+
publicName: "size",
|
|
361
|
+
isSignal: true,
|
|
362
|
+
isRequired: false,
|
|
363
|
+
transformFunction: null
|
|
364
|
+
},
|
|
365
|
+
class: {
|
|
366
|
+
classPropertyName: "class",
|
|
367
|
+
publicName: "class",
|
|
368
|
+
isSignal: true,
|
|
369
|
+
isRequired: false,
|
|
370
|
+
transformFunction: null
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
host: { properties: {
|
|
374
|
+
"class": "classes()",
|
|
375
|
+
"attr.data-size": "size()"
|
|
376
|
+
} },
|
|
377
|
+
ngImport: i0,
|
|
378
|
+
template: `<ng-content />`,
|
|
379
|
+
isInline: true
|
|
380
|
+
});
|
|
381
|
+
};
|
|
382
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
383
|
+
minVersion: "12.0.0",
|
|
384
|
+
version: "22.2.2",
|
|
385
|
+
ngImport: i0,
|
|
386
|
+
type: AlertDialogContentComponent,
|
|
387
|
+
decorators: [{
|
|
388
|
+
type: Component,
|
|
389
|
+
args: [{
|
|
390
|
+
selector: "AlertDialogContent",
|
|
391
|
+
host: {
|
|
392
|
+
"[class]": "classes()",
|
|
393
|
+
"[attr.data-size]": "size()"
|
|
394
|
+
},
|
|
395
|
+
template: `<ng-content />`
|
|
396
|
+
}]
|
|
397
|
+
}],
|
|
398
|
+
ctorParameters: () => [],
|
|
399
|
+
propDecorators: {
|
|
400
|
+
size: [{
|
|
401
|
+
type: i0.Input,
|
|
402
|
+
args: [{
|
|
403
|
+
isSignal: true,
|
|
404
|
+
alias: "size",
|
|
405
|
+
required: false
|
|
406
|
+
}]
|
|
407
|
+
}],
|
|
408
|
+
class: [{
|
|
409
|
+
type: i0.Input,
|
|
410
|
+
args: [{
|
|
411
|
+
isSignal: true,
|
|
412
|
+
alias: "class",
|
|
413
|
+
required: false
|
|
414
|
+
}]
|
|
415
|
+
}]
|
|
416
|
+
}
|
|
417
|
+
});
|
|
418
|
+
var AlertDialogHeaderComponent = class AlertDialogHeaderComponent {
|
|
419
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
420
|
+
classes = computed(() => cn("flex flex-col gap-2 text-center sm:text-left", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
421
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
422
|
+
minVersion: "12.0.0",
|
|
423
|
+
version: "22.2.2",
|
|
424
|
+
ngImport: i0,
|
|
425
|
+
type: AlertDialogHeaderComponent,
|
|
426
|
+
deps: [],
|
|
427
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
428
|
+
});
|
|
429
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
430
|
+
minVersion: "17.1.0",
|
|
431
|
+
version: "22.2.2",
|
|
432
|
+
type: AlertDialogHeaderComponent,
|
|
433
|
+
isStandalone: true,
|
|
434
|
+
selector: "AlertDialogHeader",
|
|
435
|
+
inputs: { class: {
|
|
436
|
+
classPropertyName: "class",
|
|
437
|
+
publicName: "class",
|
|
438
|
+
isSignal: true,
|
|
439
|
+
isRequired: false,
|
|
440
|
+
transformFunction: null
|
|
441
|
+
} },
|
|
442
|
+
host: { properties: { "class": "classes()" } },
|
|
443
|
+
ngImport: i0,
|
|
444
|
+
template: `<ng-content />`,
|
|
445
|
+
isInline: true
|
|
446
|
+
});
|
|
447
|
+
};
|
|
448
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
449
|
+
minVersion: "12.0.0",
|
|
450
|
+
version: "22.2.2",
|
|
451
|
+
ngImport: i0,
|
|
452
|
+
type: AlertDialogHeaderComponent,
|
|
453
|
+
decorators: [{
|
|
454
|
+
type: Component,
|
|
455
|
+
args: [{
|
|
456
|
+
selector: "AlertDialogHeader",
|
|
457
|
+
host: { "[class]": "classes()" },
|
|
458
|
+
template: `<ng-content />`
|
|
459
|
+
}]
|
|
460
|
+
}],
|
|
461
|
+
propDecorators: { class: [{
|
|
462
|
+
type: i0.Input,
|
|
463
|
+
args: [{
|
|
464
|
+
isSignal: true,
|
|
465
|
+
alias: "class",
|
|
466
|
+
required: false
|
|
467
|
+
}]
|
|
468
|
+
}] }
|
|
469
|
+
});
|
|
470
|
+
var AlertDialogTitleComponent = class AlertDialogTitleComponent {
|
|
471
|
+
id = input(null, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
|
|
472
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
473
|
+
autoId = injectUniqueId("alert-dialog-title");
|
|
474
|
+
alertDialog = inject(AlertDialogComponent, { optional: true });
|
|
475
|
+
resolvedId = computed(() => this.id() ?? this.autoId, ...ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []);
|
|
476
|
+
classes = computed(() => cn("text-lg font-semibold leading-none tracking-tight", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
477
|
+
constructor() {
|
|
478
|
+
effect(() => this.alertDialog?.registerTitleId(this.resolvedId()));
|
|
479
|
+
inject(DestroyRef).onDestroy(() => this.alertDialog?.unregisterTitleId(this.resolvedId()));
|
|
480
|
+
}
|
|
481
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
482
|
+
minVersion: "12.0.0",
|
|
483
|
+
version: "22.2.2",
|
|
484
|
+
ngImport: i0,
|
|
485
|
+
type: AlertDialogTitleComponent,
|
|
486
|
+
deps: [],
|
|
487
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
488
|
+
});
|
|
489
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
490
|
+
minVersion: "17.1.0",
|
|
491
|
+
version: "22.2.2",
|
|
492
|
+
type: AlertDialogTitleComponent,
|
|
493
|
+
isStandalone: true,
|
|
494
|
+
selector: "AlertDialogTitle, h2[AlertDialogTitle]",
|
|
495
|
+
inputs: {
|
|
496
|
+
id: {
|
|
497
|
+
classPropertyName: "id",
|
|
498
|
+
publicName: "id",
|
|
499
|
+
isSignal: true,
|
|
500
|
+
isRequired: false,
|
|
501
|
+
transformFunction: null
|
|
502
|
+
},
|
|
503
|
+
class: {
|
|
504
|
+
classPropertyName: "class",
|
|
505
|
+
publicName: "class",
|
|
506
|
+
isSignal: true,
|
|
507
|
+
isRequired: false,
|
|
508
|
+
transformFunction: null
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
host: { properties: {
|
|
512
|
+
"class": "classes()",
|
|
513
|
+
"attr.id": "resolvedId()"
|
|
514
|
+
} },
|
|
515
|
+
ngImport: i0,
|
|
516
|
+
template: `<ng-content />`,
|
|
517
|
+
isInline: true
|
|
518
|
+
});
|
|
519
|
+
};
|
|
520
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
521
|
+
minVersion: "12.0.0",
|
|
522
|
+
version: "22.2.2",
|
|
523
|
+
ngImport: i0,
|
|
524
|
+
type: AlertDialogTitleComponent,
|
|
525
|
+
decorators: [{
|
|
526
|
+
type: Component,
|
|
527
|
+
args: [{
|
|
528
|
+
selector: "AlertDialogTitle, h2[AlertDialogTitle]",
|
|
529
|
+
host: {
|
|
530
|
+
"[class]": "classes()",
|
|
531
|
+
"[attr.id]": "resolvedId()"
|
|
532
|
+
},
|
|
533
|
+
template: `<ng-content />`
|
|
534
|
+
}]
|
|
535
|
+
}],
|
|
536
|
+
ctorParameters: () => [],
|
|
537
|
+
propDecorators: {
|
|
538
|
+
id: [{
|
|
539
|
+
type: i0.Input,
|
|
540
|
+
args: [{
|
|
541
|
+
isSignal: true,
|
|
542
|
+
alias: "id",
|
|
543
|
+
required: false
|
|
544
|
+
}]
|
|
545
|
+
}],
|
|
546
|
+
class: [{
|
|
547
|
+
type: i0.Input,
|
|
548
|
+
args: [{
|
|
549
|
+
isSignal: true,
|
|
550
|
+
alias: "class",
|
|
551
|
+
required: false
|
|
552
|
+
}]
|
|
553
|
+
}]
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
var AlertDialogDescriptionComponent = class AlertDialogDescriptionComponent {
|
|
557
|
+
id = input(null, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
|
|
558
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
559
|
+
autoId = injectUniqueId("alert-dialog-description");
|
|
560
|
+
alertDialog = inject(AlertDialogComponent, { optional: true });
|
|
561
|
+
resolvedId = computed(() => this.id() ?? this.autoId, ...ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []);
|
|
562
|
+
classes = computed(() => cn("text-sm leading-6 text-muted-foreground", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
563
|
+
constructor() {
|
|
564
|
+
effect(() => this.alertDialog?.registerDescriptionId(this.resolvedId()));
|
|
565
|
+
inject(DestroyRef).onDestroy(() => this.alertDialog?.unregisterDescriptionId(this.resolvedId()));
|
|
566
|
+
}
|
|
567
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
568
|
+
minVersion: "12.0.0",
|
|
569
|
+
version: "22.2.2",
|
|
570
|
+
ngImport: i0,
|
|
571
|
+
type: AlertDialogDescriptionComponent,
|
|
572
|
+
deps: [],
|
|
573
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
574
|
+
});
|
|
575
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
576
|
+
minVersion: "17.1.0",
|
|
577
|
+
version: "22.2.2",
|
|
578
|
+
type: AlertDialogDescriptionComponent,
|
|
579
|
+
isStandalone: true,
|
|
580
|
+
selector: "AlertDialogDescription, p[AlertDialogDescription]",
|
|
581
|
+
inputs: {
|
|
582
|
+
id: {
|
|
583
|
+
classPropertyName: "id",
|
|
584
|
+
publicName: "id",
|
|
585
|
+
isSignal: true,
|
|
586
|
+
isRequired: false,
|
|
587
|
+
transformFunction: null
|
|
588
|
+
},
|
|
589
|
+
class: {
|
|
590
|
+
classPropertyName: "class",
|
|
591
|
+
publicName: "class",
|
|
592
|
+
isSignal: true,
|
|
593
|
+
isRequired: false,
|
|
594
|
+
transformFunction: null
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
host: { properties: {
|
|
598
|
+
"class": "classes()",
|
|
599
|
+
"attr.id": "resolvedId()"
|
|
600
|
+
} },
|
|
601
|
+
ngImport: i0,
|
|
602
|
+
template: `<ng-content />`,
|
|
603
|
+
isInline: true
|
|
604
|
+
});
|
|
605
|
+
};
|
|
606
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
607
|
+
minVersion: "12.0.0",
|
|
608
|
+
version: "22.2.2",
|
|
609
|
+
ngImport: i0,
|
|
610
|
+
type: AlertDialogDescriptionComponent,
|
|
611
|
+
decorators: [{
|
|
612
|
+
type: Component,
|
|
613
|
+
args: [{
|
|
614
|
+
selector: "AlertDialogDescription, p[AlertDialogDescription]",
|
|
615
|
+
host: {
|
|
616
|
+
"[class]": "classes()",
|
|
617
|
+
"[attr.id]": "resolvedId()"
|
|
618
|
+
},
|
|
619
|
+
template: `<ng-content />`
|
|
620
|
+
}]
|
|
621
|
+
}],
|
|
622
|
+
ctorParameters: () => [],
|
|
623
|
+
propDecorators: {
|
|
624
|
+
id: [{
|
|
625
|
+
type: i0.Input,
|
|
626
|
+
args: [{
|
|
627
|
+
isSignal: true,
|
|
628
|
+
alias: "id",
|
|
629
|
+
required: false
|
|
630
|
+
}]
|
|
631
|
+
}],
|
|
632
|
+
class: [{
|
|
633
|
+
type: i0.Input,
|
|
634
|
+
args: [{
|
|
635
|
+
isSignal: true,
|
|
636
|
+
alias: "class",
|
|
637
|
+
required: false
|
|
638
|
+
}]
|
|
639
|
+
}]
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
var AlertDialogMediaComponent = class AlertDialogMediaComponent {
|
|
643
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
644
|
+
alertDialog = inject(AlertDialogComponent, { optional: true });
|
|
645
|
+
classes = computed(() => cn("mx-auto flex shrink-0 items-center justify-center rounded-full border border-border bg-muted/60 text-foreground sm:mx-0", ALERT_DIALOG_MEDIA_SIZE_CLASSES[this.alertDialog?.resolvedSize() ?? "default"], this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
646
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
647
|
+
minVersion: "12.0.0",
|
|
648
|
+
version: "22.2.2",
|
|
649
|
+
ngImport: i0,
|
|
650
|
+
type: AlertDialogMediaComponent,
|
|
651
|
+
deps: [],
|
|
652
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
653
|
+
});
|
|
654
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
655
|
+
minVersion: "17.1.0",
|
|
656
|
+
version: "22.2.2",
|
|
657
|
+
type: AlertDialogMediaComponent,
|
|
658
|
+
isStandalone: true,
|
|
659
|
+
selector: "AlertDialogMedia",
|
|
660
|
+
inputs: { class: {
|
|
661
|
+
classPropertyName: "class",
|
|
662
|
+
publicName: "class",
|
|
663
|
+
isSignal: true,
|
|
664
|
+
isRequired: false,
|
|
665
|
+
transformFunction: null
|
|
666
|
+
} },
|
|
667
|
+
host: { properties: { "class": "classes()" } },
|
|
668
|
+
ngImport: i0,
|
|
669
|
+
template: `<ng-content />`,
|
|
670
|
+
isInline: true
|
|
671
|
+
});
|
|
672
|
+
};
|
|
673
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
674
|
+
minVersion: "12.0.0",
|
|
675
|
+
version: "22.2.2",
|
|
676
|
+
ngImport: i0,
|
|
677
|
+
type: AlertDialogMediaComponent,
|
|
678
|
+
decorators: [{
|
|
679
|
+
type: Component,
|
|
680
|
+
args: [{
|
|
681
|
+
selector: "AlertDialogMedia",
|
|
682
|
+
host: { "[class]": "classes()" },
|
|
683
|
+
template: `<ng-content />`
|
|
684
|
+
}]
|
|
685
|
+
}],
|
|
686
|
+
propDecorators: { class: [{
|
|
687
|
+
type: i0.Input,
|
|
688
|
+
args: [{
|
|
689
|
+
isSignal: true,
|
|
690
|
+
alias: "class",
|
|
691
|
+
required: false
|
|
692
|
+
}]
|
|
693
|
+
}] }
|
|
694
|
+
});
|
|
695
|
+
var AlertDialogFooterComponent = class AlertDialogFooterComponent {
|
|
696
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
697
|
+
classes = computed(() => cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end sm:gap-2", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
698
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
699
|
+
minVersion: "12.0.0",
|
|
700
|
+
version: "22.2.2",
|
|
701
|
+
ngImport: i0,
|
|
702
|
+
type: AlertDialogFooterComponent,
|
|
703
|
+
deps: [],
|
|
704
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
705
|
+
});
|
|
706
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
707
|
+
minVersion: "17.1.0",
|
|
708
|
+
version: "22.2.2",
|
|
709
|
+
type: AlertDialogFooterComponent,
|
|
710
|
+
isStandalone: true,
|
|
711
|
+
selector: "AlertDialogFooter",
|
|
712
|
+
inputs: { class: {
|
|
713
|
+
classPropertyName: "class",
|
|
714
|
+
publicName: "class",
|
|
715
|
+
isSignal: true,
|
|
716
|
+
isRequired: false,
|
|
717
|
+
transformFunction: null
|
|
718
|
+
} },
|
|
719
|
+
host: { properties: { "class": "classes()" } },
|
|
720
|
+
ngImport: i0,
|
|
721
|
+
template: `<ng-content />`,
|
|
722
|
+
isInline: true
|
|
723
|
+
});
|
|
724
|
+
};
|
|
725
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
726
|
+
minVersion: "12.0.0",
|
|
727
|
+
version: "22.2.2",
|
|
728
|
+
ngImport: i0,
|
|
729
|
+
type: AlertDialogFooterComponent,
|
|
730
|
+
decorators: [{
|
|
731
|
+
type: Component,
|
|
732
|
+
args: [{
|
|
733
|
+
selector: "AlertDialogFooter",
|
|
734
|
+
host: { "[class]": "classes()" },
|
|
735
|
+
template: `<ng-content />`
|
|
736
|
+
}]
|
|
737
|
+
}],
|
|
738
|
+
propDecorators: { class: [{
|
|
739
|
+
type: i0.Input,
|
|
740
|
+
args: [{
|
|
741
|
+
isSignal: true,
|
|
742
|
+
alias: "class",
|
|
743
|
+
required: false
|
|
744
|
+
}]
|
|
745
|
+
}] }
|
|
746
|
+
});
|
|
747
|
+
var AlertDialogCancelComponent = class AlertDialogCancelComponent {
|
|
748
|
+
variant = input("outline", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
749
|
+
size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
750
|
+
closeOnClick = input(true, ...ngDevMode ? [{ debugName: "closeOnClick" }] : /* istanbul ignore next */ []);
|
|
751
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
752
|
+
host = inject(ElementRef);
|
|
753
|
+
alertDialog = inject(AlertDialogComponent, { optional: true });
|
|
754
|
+
classes = computed(() => cn(buttonVariants({
|
|
755
|
+
variant: this.variant(),
|
|
756
|
+
size: this.size()
|
|
757
|
+
}), this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
758
|
+
buttonType = computed(() => this.host.nativeElement.tagName.toLowerCase() === "button" ? "button" : null, ...ngDevMode ? [{ debugName: "buttonType" }] : /* istanbul ignore next */ []);
|
|
759
|
+
handleClick() {
|
|
760
|
+
if (this.closeOnClick()) this.alertDialog?.close();
|
|
761
|
+
}
|
|
762
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
763
|
+
minVersion: "12.0.0",
|
|
764
|
+
version: "22.2.2",
|
|
765
|
+
ngImport: i0,
|
|
766
|
+
type: AlertDialogCancelComponent,
|
|
767
|
+
deps: [],
|
|
768
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
769
|
+
});
|
|
770
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
771
|
+
minVersion: "17.1.0",
|
|
772
|
+
version: "22.2.2",
|
|
773
|
+
type: AlertDialogCancelComponent,
|
|
774
|
+
isStandalone: true,
|
|
775
|
+
selector: "button[AlertDialogCancel], a[AlertDialogCancel]",
|
|
776
|
+
inputs: {
|
|
777
|
+
variant: {
|
|
778
|
+
classPropertyName: "variant",
|
|
779
|
+
publicName: "variant",
|
|
780
|
+
isSignal: true,
|
|
781
|
+
isRequired: false,
|
|
782
|
+
transformFunction: null
|
|
783
|
+
},
|
|
784
|
+
size: {
|
|
785
|
+
classPropertyName: "size",
|
|
786
|
+
publicName: "size",
|
|
787
|
+
isSignal: true,
|
|
788
|
+
isRequired: false,
|
|
789
|
+
transformFunction: null
|
|
790
|
+
},
|
|
791
|
+
closeOnClick: {
|
|
792
|
+
classPropertyName: "closeOnClick",
|
|
793
|
+
publicName: "closeOnClick",
|
|
794
|
+
isSignal: true,
|
|
795
|
+
isRequired: false,
|
|
796
|
+
transformFunction: null
|
|
797
|
+
},
|
|
798
|
+
class: {
|
|
799
|
+
classPropertyName: "class",
|
|
800
|
+
publicName: "class",
|
|
801
|
+
isSignal: true,
|
|
802
|
+
isRequired: false,
|
|
803
|
+
transformFunction: null
|
|
804
|
+
}
|
|
805
|
+
},
|
|
806
|
+
host: {
|
|
807
|
+
listeners: { "click": "handleClick()" },
|
|
808
|
+
properties: {
|
|
809
|
+
"class": "classes()",
|
|
810
|
+
"attr.data-size": "size()",
|
|
811
|
+
"attr.data-variant": "variant()",
|
|
812
|
+
"attr.type": "buttonType()"
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
ngImport: i0,
|
|
816
|
+
template: `<ng-content />`,
|
|
817
|
+
isInline: true
|
|
818
|
+
});
|
|
819
|
+
};
|
|
820
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
821
|
+
minVersion: "12.0.0",
|
|
822
|
+
version: "22.2.2",
|
|
823
|
+
ngImport: i0,
|
|
824
|
+
type: AlertDialogCancelComponent,
|
|
825
|
+
decorators: [{
|
|
826
|
+
type: Component,
|
|
827
|
+
args: [{
|
|
828
|
+
selector: "button[AlertDialogCancel], a[AlertDialogCancel]",
|
|
829
|
+
host: {
|
|
830
|
+
"[class]": "classes()",
|
|
831
|
+
"[attr.data-size]": "size()",
|
|
832
|
+
"[attr.data-variant]": "variant()",
|
|
833
|
+
"[attr.type]": "buttonType()",
|
|
834
|
+
"(click)": "handleClick()"
|
|
835
|
+
},
|
|
836
|
+
template: `<ng-content />`
|
|
837
|
+
}]
|
|
838
|
+
}],
|
|
839
|
+
propDecorators: {
|
|
840
|
+
variant: [{
|
|
841
|
+
type: i0.Input,
|
|
842
|
+
args: [{
|
|
843
|
+
isSignal: true,
|
|
844
|
+
alias: "variant",
|
|
845
|
+
required: false
|
|
846
|
+
}]
|
|
847
|
+
}],
|
|
848
|
+
size: [{
|
|
849
|
+
type: i0.Input,
|
|
850
|
+
args: [{
|
|
851
|
+
isSignal: true,
|
|
852
|
+
alias: "size",
|
|
853
|
+
required: false
|
|
854
|
+
}]
|
|
855
|
+
}],
|
|
856
|
+
closeOnClick: [{
|
|
857
|
+
type: i0.Input,
|
|
858
|
+
args: [{
|
|
859
|
+
isSignal: true,
|
|
860
|
+
alias: "closeOnClick",
|
|
861
|
+
required: false
|
|
862
|
+
}]
|
|
863
|
+
}],
|
|
864
|
+
class: [{
|
|
865
|
+
type: i0.Input,
|
|
866
|
+
args: [{
|
|
867
|
+
isSignal: true,
|
|
868
|
+
alias: "class",
|
|
869
|
+
required: false
|
|
870
|
+
}]
|
|
871
|
+
}]
|
|
872
|
+
}
|
|
873
|
+
});
|
|
874
|
+
var AlertDialogActionComponent = class AlertDialogActionComponent {
|
|
875
|
+
variant = input("default", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
876
|
+
size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
877
|
+
closeOnClick = input(true, ...ngDevMode ? [{ debugName: "closeOnClick" }] : /* istanbul ignore next */ []);
|
|
878
|
+
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
879
|
+
host = inject(ElementRef);
|
|
880
|
+
alertDialog = inject(AlertDialogComponent, { optional: true });
|
|
881
|
+
classes = computed(() => cn(buttonVariants({
|
|
882
|
+
variant: this.variant(),
|
|
883
|
+
size: this.size()
|
|
884
|
+
}), this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
885
|
+
buttonType = computed(() => this.host.nativeElement.tagName.toLowerCase() === "button" ? "button" : null, ...ngDevMode ? [{ debugName: "buttonType" }] : /* istanbul ignore next */ []);
|
|
886
|
+
handleClick() {
|
|
887
|
+
if (this.closeOnClick()) this.alertDialog?.close();
|
|
888
|
+
}
|
|
889
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
890
|
+
minVersion: "12.0.0",
|
|
891
|
+
version: "22.2.2",
|
|
892
|
+
ngImport: i0,
|
|
893
|
+
type: AlertDialogActionComponent,
|
|
894
|
+
deps: [],
|
|
895
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
896
|
+
});
|
|
897
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
898
|
+
minVersion: "17.1.0",
|
|
899
|
+
version: "22.2.2",
|
|
900
|
+
type: AlertDialogActionComponent,
|
|
901
|
+
isStandalone: true,
|
|
902
|
+
selector: "button[AlertDialogAction], a[AlertDialogAction]",
|
|
903
|
+
inputs: {
|
|
904
|
+
variant: {
|
|
905
|
+
classPropertyName: "variant",
|
|
906
|
+
publicName: "variant",
|
|
907
|
+
isSignal: true,
|
|
908
|
+
isRequired: false,
|
|
909
|
+
transformFunction: null
|
|
910
|
+
},
|
|
911
|
+
size: {
|
|
912
|
+
classPropertyName: "size",
|
|
913
|
+
publicName: "size",
|
|
914
|
+
isSignal: true,
|
|
915
|
+
isRequired: false,
|
|
916
|
+
transformFunction: null
|
|
917
|
+
},
|
|
918
|
+
closeOnClick: {
|
|
919
|
+
classPropertyName: "closeOnClick",
|
|
920
|
+
publicName: "closeOnClick",
|
|
921
|
+
isSignal: true,
|
|
922
|
+
isRequired: false,
|
|
923
|
+
transformFunction: null
|
|
924
|
+
},
|
|
925
|
+
class: {
|
|
926
|
+
classPropertyName: "class",
|
|
927
|
+
publicName: "class",
|
|
928
|
+
isSignal: true,
|
|
929
|
+
isRequired: false,
|
|
930
|
+
transformFunction: null
|
|
931
|
+
}
|
|
932
|
+
},
|
|
933
|
+
host: {
|
|
934
|
+
listeners: { "click": "handleClick()" },
|
|
935
|
+
properties: {
|
|
936
|
+
"class": "classes()",
|
|
937
|
+
"attr.data-size": "size()",
|
|
938
|
+
"attr.data-variant": "variant()",
|
|
939
|
+
"attr.type": "buttonType()"
|
|
940
|
+
}
|
|
941
|
+
},
|
|
942
|
+
ngImport: i0,
|
|
943
|
+
template: `<ng-content />`,
|
|
944
|
+
isInline: true
|
|
945
|
+
});
|
|
153
946
|
};
|
|
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
|
-
effect(() => this.alertDialog?.registerTitleId(this.resolvedId()));
|
|
210
|
-
inject(DestroyRef).onDestroy(() => this.alertDialog?.unregisterTitleId(this.resolvedId()));
|
|
211
|
-
}
|
|
212
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
213
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.6", type: AlertDialogTitleComponent, isStandalone: true, selector: "AlertDialogTitle, h2[AlertDialogTitle]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.id": "resolvedId()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
214
|
-
}
|
|
215
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogTitleComponent, decorators: [{
|
|
216
|
-
type: Component,
|
|
217
|
-
args: [{
|
|
218
|
-
selector: 'AlertDialogTitle, h2[AlertDialogTitle]',
|
|
219
|
-
host: { '[class]': 'classes()', '[attr.id]': 'resolvedId()' },
|
|
220
|
-
template: `<ng-content />`,
|
|
221
|
-
}]
|
|
222
|
-
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
223
|
-
class AlertDialogDescriptionComponent {
|
|
224
|
-
/** Explicit id override; when omitted a document-unique id is generated. */
|
|
225
|
-
id = input(null, /* @ts-ignore */
|
|
226
|
-
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
227
|
-
class = input('', /* @ts-ignore */
|
|
228
|
-
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
229
|
-
autoId = injectUniqueId('alert-dialog-description');
|
|
230
|
-
alertDialog = inject(AlertDialogComponent, { optional: true });
|
|
231
|
-
/** The id rendered on the element, used by the parent alert dialog for aria-describedby. */
|
|
232
|
-
resolvedId = computed(() => this.id() ?? this.autoId, /* @ts-ignore */
|
|
233
|
-
...(ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []));
|
|
234
|
-
classes = computed(() => cn('text-sm leading-6 text-muted-foreground', this.class()), /* @ts-ignore */
|
|
235
|
-
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
236
|
-
constructor() {
|
|
237
|
-
effect(() => this.alertDialog?.registerDescriptionId(this.resolvedId()));
|
|
238
|
-
inject(DestroyRef).onDestroy(() => this.alertDialog?.unregisterDescriptionId(this.resolvedId()));
|
|
239
|
-
}
|
|
240
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogDescriptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
241
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.6", type: AlertDialogDescriptionComponent, isStandalone: true, selector: "AlertDialogDescription, p[AlertDialogDescription]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.id": "resolvedId()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
242
|
-
}
|
|
243
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogDescriptionComponent, decorators: [{
|
|
244
|
-
type: Component,
|
|
245
|
-
args: [{
|
|
246
|
-
selector: 'AlertDialogDescription, p[AlertDialogDescription]',
|
|
247
|
-
host: { '[class]': 'classes()', '[attr.id]': 'resolvedId()' },
|
|
248
|
-
template: `<ng-content />`,
|
|
249
|
-
}]
|
|
250
|
-
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
251
|
-
class AlertDialogMediaComponent {
|
|
252
|
-
class = input('', /* @ts-ignore */
|
|
253
|
-
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
254
|
-
alertDialog = inject(AlertDialogComponent, { optional: true });
|
|
255
|
-
classes = computed(() => cn('mx-auto flex shrink-0 items-center justify-center rounded-full border border-border bg-muted/60 text-foreground sm:mx-0', ALERT_DIALOG_MEDIA_SIZE_CLASSES[this.alertDialog?.resolvedSize() ?? 'default'], this.class()), /* @ts-ignore */
|
|
256
|
-
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
257
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogMediaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
258
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.6", type: AlertDialogMediaComponent, isStandalone: true, selector: "AlertDialogMedia", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
259
|
-
}
|
|
260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogMediaComponent, decorators: [{
|
|
261
|
-
type: Component,
|
|
262
|
-
args: [{
|
|
263
|
-
selector: 'AlertDialogMedia',
|
|
264
|
-
host: { '[class]': 'classes()' },
|
|
265
|
-
template: `<ng-content />`,
|
|
266
|
-
}]
|
|
267
|
-
}], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
268
|
-
class AlertDialogFooterComponent {
|
|
269
|
-
class = input('', /* @ts-ignore */
|
|
270
|
-
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
271
|
-
classes = computed(() => cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end sm:gap-2', this.class()), /* @ts-ignore */
|
|
272
|
-
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
273
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
274
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.6", type: AlertDialogFooterComponent, isStandalone: true, selector: "AlertDialogFooter", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
275
|
-
}
|
|
276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogFooterComponent, decorators: [{
|
|
277
|
-
type: Component,
|
|
278
|
-
args: [{
|
|
279
|
-
selector: 'AlertDialogFooter',
|
|
280
|
-
host: { '[class]': 'classes()' },
|
|
281
|
-
template: `<ng-content />`,
|
|
282
|
-
}]
|
|
283
|
-
}], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
284
|
-
class AlertDialogCancelComponent {
|
|
285
|
-
variant = input('outline', /* @ts-ignore */
|
|
286
|
-
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
287
|
-
size = input('default', /* @ts-ignore */
|
|
288
|
-
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
289
|
-
closeOnClick = input(true, /* @ts-ignore */
|
|
290
|
-
...(ngDevMode ? [{ debugName: "closeOnClick" }] : /* istanbul ignore next */ []));
|
|
291
|
-
class = input('', /* @ts-ignore */
|
|
292
|
-
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
293
|
-
host = inject(ElementRef);
|
|
294
|
-
alertDialog = inject(AlertDialogComponent, { optional: true });
|
|
295
|
-
classes = computed(() => cn(buttonVariants({ variant: this.variant(), size: this.size() }), this.class()), /* @ts-ignore */
|
|
296
|
-
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
297
|
-
buttonType = computed(() => this.host.nativeElement.tagName.toLowerCase() === 'button' ? 'button' : null, /* @ts-ignore */
|
|
298
|
-
...(ngDevMode ? [{ debugName: "buttonType" }] : /* istanbul ignore next */ []));
|
|
299
|
-
handleClick() {
|
|
300
|
-
if (this.closeOnClick()) {
|
|
301
|
-
this.alertDialog?.close();
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogCancelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
305
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.6", type: AlertDialogCancelComponent, isStandalone: true, selector: "button[AlertDialogCancel], a[AlertDialogCancel]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, closeOnClick: { classPropertyName: "closeOnClick", publicName: "closeOnClick", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "handleClick()" }, properties: { "class": "classes()", "attr.data-size": "size()", "attr.data-variant": "variant()", "attr.type": "buttonType()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
306
|
-
}
|
|
307
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogCancelComponent, decorators: [{
|
|
308
|
-
type: Component,
|
|
309
|
-
args: [{
|
|
310
|
-
selector: 'button[AlertDialogCancel], a[AlertDialogCancel]',
|
|
311
|
-
host: {
|
|
312
|
-
'[class]': 'classes()',
|
|
313
|
-
'[attr.data-size]': 'size()',
|
|
314
|
-
'[attr.data-variant]': 'variant()',
|
|
315
|
-
'[attr.type]': 'buttonType()',
|
|
316
|
-
'(click)': 'handleClick()',
|
|
317
|
-
},
|
|
318
|
-
template: `<ng-content />`,
|
|
319
|
-
}]
|
|
320
|
-
}], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], closeOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnClick", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
321
|
-
class AlertDialogActionComponent {
|
|
322
|
-
variant = input('default', /* @ts-ignore */
|
|
323
|
-
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
324
|
-
size = input('default', /* @ts-ignore */
|
|
325
|
-
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
326
|
-
closeOnClick = input(true, /* @ts-ignore */
|
|
327
|
-
...(ngDevMode ? [{ debugName: "closeOnClick" }] : /* istanbul ignore next */ []));
|
|
328
|
-
class = input('', /* @ts-ignore */
|
|
329
|
-
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
330
|
-
host = inject(ElementRef);
|
|
331
|
-
alertDialog = inject(AlertDialogComponent, { optional: true });
|
|
332
|
-
classes = computed(() => cn(buttonVariants({ variant: this.variant(), size: this.size() }), this.class()), /* @ts-ignore */
|
|
333
|
-
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
334
|
-
buttonType = computed(() => this.host.nativeElement.tagName.toLowerCase() === 'button' ? 'button' : null, /* @ts-ignore */
|
|
335
|
-
...(ngDevMode ? [{ debugName: "buttonType" }] : /* istanbul ignore next */ []));
|
|
336
|
-
handleClick() {
|
|
337
|
-
if (this.closeOnClick()) {
|
|
338
|
-
this.alertDialog?.close();
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
342
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.6", type: AlertDialogActionComponent, isStandalone: true, selector: "button[AlertDialogAction], a[AlertDialogAction]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, closeOnClick: { classPropertyName: "closeOnClick", publicName: "closeOnClick", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "handleClick()" }, properties: { "class": "classes()", "attr.data-size": "size()", "attr.data-variant": "variant()", "attr.type": "buttonType()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
343
|
-
}
|
|
344
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogActionComponent, decorators: [{
|
|
345
|
-
type: Component,
|
|
346
|
-
args: [{
|
|
347
|
-
selector: 'button[AlertDialogAction], a[AlertDialogAction]',
|
|
348
|
-
host: {
|
|
349
|
-
'[class]': 'classes()',
|
|
350
|
-
'[attr.data-size]': 'size()',
|
|
351
|
-
'[attr.data-variant]': 'variant()',
|
|
352
|
-
'[attr.type]': 'buttonType()',
|
|
353
|
-
'(click)': 'handleClick()',
|
|
354
|
-
},
|
|
355
|
-
template: `<ng-content />`,
|
|
356
|
-
}]
|
|
357
|
-
}], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], closeOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnClick", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* Generated bundle index. Do not edit.
|
|
361
|
-
*/
|
|
362
|
-
|
|
363
|
-
export { AlertDialogActionComponent, AlertDialogCancelComponent, AlertDialogComponent, AlertDialogContentComponent, AlertDialogDescriptionComponent, AlertDialogFooterComponent, AlertDialogHeaderComponent, AlertDialogMediaComponent, AlertDialogTitleComponent };
|
|
947
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
948
|
+
minVersion: "12.0.0",
|
|
949
|
+
version: "22.2.2",
|
|
950
|
+
ngImport: i0,
|
|
951
|
+
type: AlertDialogActionComponent,
|
|
952
|
+
decorators: [{
|
|
953
|
+
type: Component,
|
|
954
|
+
args: [{
|
|
955
|
+
selector: "button[AlertDialogAction], a[AlertDialogAction]",
|
|
956
|
+
host: {
|
|
957
|
+
"[class]": "classes()",
|
|
958
|
+
"[attr.data-size]": "size()",
|
|
959
|
+
"[attr.data-variant]": "variant()",
|
|
960
|
+
"[attr.type]": "buttonType()",
|
|
961
|
+
"(click)": "handleClick()"
|
|
962
|
+
},
|
|
963
|
+
template: `<ng-content />`
|
|
964
|
+
}]
|
|
965
|
+
}],
|
|
966
|
+
propDecorators: {
|
|
967
|
+
variant: [{
|
|
968
|
+
type: i0.Input,
|
|
969
|
+
args: [{
|
|
970
|
+
isSignal: true,
|
|
971
|
+
alias: "variant",
|
|
972
|
+
required: false
|
|
973
|
+
}]
|
|
974
|
+
}],
|
|
975
|
+
size: [{
|
|
976
|
+
type: i0.Input,
|
|
977
|
+
args: [{
|
|
978
|
+
isSignal: true,
|
|
979
|
+
alias: "size",
|
|
980
|
+
required: false
|
|
981
|
+
}]
|
|
982
|
+
}],
|
|
983
|
+
closeOnClick: [{
|
|
984
|
+
type: i0.Input,
|
|
985
|
+
args: [{
|
|
986
|
+
isSignal: true,
|
|
987
|
+
alias: "closeOnClick",
|
|
988
|
+
required: false
|
|
989
|
+
}]
|
|
990
|
+
}],
|
|
991
|
+
class: [{
|
|
992
|
+
type: i0.Input,
|
|
993
|
+
args: [{
|
|
994
|
+
isSignal: true,
|
|
995
|
+
alias: "class",
|
|
996
|
+
required: false
|
|
997
|
+
}]
|
|
998
|
+
}]
|
|
999
|
+
}
|
|
1000
|
+
});
|
|
1001
|
+
export { AlertDialogActionComponent, AlertDialogCancelComponent, AlertDialogComponent, AlertDialogContentComponent, AlertDialogDescriptionComponent, AlertDialogFooterComponent, AlertDialogHeaderComponent, AlertDialogMediaComponent, AlertDialogTitleComponent };
|