@aeris-ui/core 22.0.0-alpha.8 → 22.0.0-alpha.9
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 +2 -2
- package/fesm2022/aeris-ui-core-accordion.mjs +646 -255
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-complete.mjs +1171 -428
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
- package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
- package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-badge.mjs +562 -115
- package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-block-ui.mjs +205 -101
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +547 -177
- package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button-group.mjs +153 -38
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button.mjs +730 -110
- package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-card.mjs +371 -101
- package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-carousel.mjs +690 -353
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +915 -423
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +455 -258
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-checkbox.mjs +432 -135
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chip.mjs +430 -117
- package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
- package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-color-picker.mjs +1313 -683
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-compare.mjs +819 -310
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1392 -551
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1447 -744
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +900 -450
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker.mjs +1656 -863
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +1066 -355
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-divider.mjs +204 -43
- package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-drawer.mjs +1002 -326
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +402 -249
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +934 -572
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +1313 -511
- package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
- package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
- package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-form-field.mjs +672 -170
- package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-galleria.mjs +1987 -797
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-glass.mjs +110 -33
- package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-icon-field.mjs +426 -106
- package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-inplace.mjs +452 -130
- package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-group.mjs +413 -114
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-mask.mjs +650 -248
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +902 -334
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-otp.mjs +667 -253
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-text.mjs +618 -152
- package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
- package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-mega-menu.mjs +601 -388
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +1032 -495
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +960 -491
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-message.mjs +477 -145
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-meter-group.mjs +587 -196
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +1550 -552
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-order-list.mjs +518 -202
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +455 -177
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +329 -127
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +596 -196
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-password.mjs +894 -247
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +1280 -659
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-popover.mjs +892 -386
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +545 -177
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +410 -133
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-radio-button.mjs +386 -119
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-rating.mjs +502 -225
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
- package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-top.mjs +204 -63
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-select.mjs +1794 -643
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
- package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-slider.mjs +868 -404
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-speed-dial.mjs +800 -329
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +880 -270
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +812 -352
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-stepper.mjs +697 -254
- package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
- package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-table.mjs +1984 -865
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +686 -324
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +846 -212
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1256 -1423
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +132 -147
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +885 -465
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
- package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toast.mjs +855 -615
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +390 -127
- package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toolbar.mjs +458 -121
- package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tooltip.mjs +623 -345
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-select.mjs +1356 -601
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +2001 -942
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +1103 -658
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +861 -842
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +1 -1
- package/types/aeris-ui-core-accordion.d.ts +166 -93
- package/types/aeris-ui-core-animate-on-scroll.d.ts +71 -31
- package/types/aeris-ui-core-auto-complete.d.ts +326 -149
- package/types/aeris-ui-core-auto-focus.d.ts +24 -16
- package/types/aeris-ui-core-avatar.d.ts +112 -42
- package/types/aeris-ui-core-badge.d.ts +160 -47
- package/types/aeris-ui-core-block-ui.d.ts +47 -27
- package/types/aeris-ui-core-breadcrumb.d.ts +162 -92
- package/types/aeris-ui-core-button-group.d.ts +37 -16
- package/types/aeris-ui-core-button.d.ts +226 -64
- package/types/aeris-ui-core-card.d.ts +74 -37
- package/types/aeris-ui-core-carousel.d.ts +197 -117
- package/types/aeris-ui-core-cascade-select.d.ts +252 -131
- package/types/aeris-ui-core-chart.d.ts +134 -84
- package/types/aeris-ui-core-checkbox.d.ts +139 -55
- package/types/aeris-ui-core-chip.d.ts +116 -51
- package/types/aeris-ui-core-class-names.d.ts +22 -20
- package/types/aeris-ui-core-color-picker.d.ts +347 -150
- package/types/aeris-ui-core-compare.d.ts +224 -101
- package/types/aeris-ui-core-confirm-dialog.d.ts +441 -249
- package/types/aeris-ui-core-confirm-popup.d.ts +440 -268
- package/types/aeris-ui-core-context-menu.d.ts +262 -150
- package/types/aeris-ui-core-date-picker.d.ts +488 -226
- package/types/aeris-ui-core-dialog.d.ts +288 -121
- package/types/aeris-ui-core-divider.d.ts +58 -20
- package/types/aeris-ui-core-drawer.d.ts +273 -116
- package/types/aeris-ui-core-dynamic-dialog.d.ts +157 -140
- package/types/aeris-ui-core-editor.d.ts +243 -124
- package/types/aeris-ui-core-file-upload.d.ts +366 -197
- package/types/aeris-ui-core-filter-service.d.ts +48 -52
- package/types/aeris-ui-core-fluid.d.ts +12 -9
- package/types/aeris-ui-core-focus-trap.d.ts +39 -31
- package/types/aeris-ui-core-form-field.d.ts +158 -62
- package/types/aeris-ui-core-galleria.d.ts +589 -256
- package/types/aeris-ui-core-glass.d.ts +24 -11
- package/types/aeris-ui-core-icon-field.d.ts +94 -34
- package/types/aeris-ui-core-inplace.d.ts +123 -62
- package/types/aeris-ui-core-input-group.d.ts +84 -35
- package/types/aeris-ui-core-input-mask.d.ts +194 -71
- package/types/aeris-ui-core-input-number.d.ts +272 -90
- package/types/aeris-ui-core-input-otp.d.ts +190 -82
- package/types/aeris-ui-core-input-text.d.ts +185 -62
- package/types/aeris-ui-core-key-filter.d.ts +53 -39
- package/types/aeris-ui-core-mega-menu.d.ts +174 -123
- package/types/aeris-ui-core-menu.d.ts +275 -172
- package/types/aeris-ui-core-menubar.d.ts +272 -160
- package/types/aeris-ui-core-message.d.ts +132 -61
- package/types/aeris-ui-core-meter-group.d.ts +162 -90
- package/types/aeris-ui-core-multi-select.d.ts +435 -187
- package/types/aeris-ui-core-order-list.d.ts +143 -66
- package/types/aeris-ui-core-organization-chart.d.ts +132 -77
- package/types/aeris-ui-core-paginator.d.ts +92 -46
- package/types/aeris-ui-core-panel.d.ts +149 -78
- package/types/aeris-ui-core-password.d.ts +257 -108
- package/types/aeris-ui-core-pick-list.d.ts +373 -179
- package/types/aeris-ui-core-popover.d.ts +218 -107
- package/types/aeris-ui-core-progress-bar.d.ts +156 -74
- package/types/aeris-ui-core-progress-spinner.d.ts +110 -48
- package/types/aeris-ui-core-radio-button.d.ts +124 -51
- package/types/aeris-ui-core-rating.d.ts +149 -76
- package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
- package/types/aeris-ui-core-scroll-top.d.ts +64 -29
- package/types/aeris-ui-core-select.d.ts +474 -226
- package/types/aeris-ui-core-skeleton.d.ts +39 -17
- package/types/aeris-ui-core-slider.d.ts +270 -116
- package/types/aeris-ui-core-speed-dial.d.ts +240 -112
- package/types/aeris-ui-core-split-button.d.ts +264 -121
- package/types/aeris-ui-core-splitter.d.ts +224 -106
- package/types/aeris-ui-core-stepper.d.ts +183 -91
- package/types/aeris-ui-core-style-class.d.ts +141 -71
- package/types/aeris-ui-core-table.d.ts +595 -308
- package/types/aeris-ui-core-tabs.d.ts +163 -90
- package/types/aeris-ui-core-textarea.d.ts +261 -81
- package/types/aeris-ui-core-theme-builder.d.ts +463 -475
- package/types/aeris-ui-core-theming.d.ts +42 -49
- package/types/aeris-ui-core-tiered-menu.d.ts +249 -147
- package/types/aeris-ui-core-timeline.d.ts +108 -71
- package/types/aeris-ui-core-toast.d.ts +219 -155
- package/types/aeris-ui-core-toggle-switch.d.ts +125 -52
- package/types/aeris-ui-core-toolbar.d.ts +98 -41
- package/types/aeris-ui-core-tooltip.d.ts +157 -92
- package/types/aeris-ui-core-tree-select.d.ts +359 -179
- package/types/aeris-ui-core-tree-table.d.ts +565 -290
- package/types/aeris-ui-core-tree.d.ts +269 -165
- package/types/aeris-ui-core.d.ts +161 -125
|
@@ -1,527 +1,925 @@
|
|
|
1
|
-
import { DOCUMENT, NgTemplateOutlet } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { AerisDialog, AerisDialogFooterTemplate, AerisDialogHeadlessTemplate } from
|
|
5
|
-
import { AerisButtonDirective } from
|
|
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
|
-
|
|
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
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
1
|
+
import { DOCUMENT, NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ApplicationRef, Component, Directive, EnvironmentInjector, Service, TemplateRef, booleanAttribute, computed, contentChild, createComponent, effect, inject, input, model, output, signal, viewChild } from "@angular/core";
|
|
4
|
+
import { AerisDialog, AerisDialogFooterTemplate, AerisDialogHeadlessTemplate } from "@aeris-ui/core/dialog";
|
|
5
|
+
import { AerisButtonDirective } from "@aeris-ui/core/button";
|
|
6
|
+
var AerisConfirmDialogEventStream = class {
|
|
7
|
+
listeners = /* @__PURE__ */ new Set();
|
|
8
|
+
completed = false;
|
|
9
|
+
subscribe(next) {
|
|
10
|
+
if (this.completed) return { unsubscribe: () => void 0 };
|
|
11
|
+
this.listeners.add(next);
|
|
12
|
+
return { unsubscribe: () => {
|
|
13
|
+
this.listeners.delete(next);
|
|
14
|
+
} };
|
|
15
|
+
}
|
|
16
|
+
next(event) {
|
|
17
|
+
if (this.completed) return;
|
|
18
|
+
for (const listener of [...this.listeners]) listener(event);
|
|
19
|
+
}
|
|
20
|
+
complete() {
|
|
21
|
+
this.completed = true;
|
|
22
|
+
this.listeners.clear();
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
var AerisConfirmDialogIconTemplate = class AerisConfirmDialogIconTemplate {
|
|
26
|
+
template = inject(TemplateRef);
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
28
|
+
minVersion: "12.0.0",
|
|
29
|
+
version: "22.2.1",
|
|
30
|
+
ngImport: i0,
|
|
31
|
+
type: AerisConfirmDialogIconTemplate,
|
|
32
|
+
deps: [],
|
|
33
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
34
|
+
});
|
|
35
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
36
|
+
minVersion: "14.0.0",
|
|
37
|
+
version: "22.2.1",
|
|
38
|
+
type: AerisConfirmDialogIconTemplate,
|
|
39
|
+
isStandalone: true,
|
|
40
|
+
selector: "ng-template[aerisConfirmDialogIcon]",
|
|
41
|
+
ngImport: i0
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
45
|
+
minVersion: "12.0.0",
|
|
46
|
+
version: "22.2.1",
|
|
47
|
+
ngImport: i0,
|
|
48
|
+
type: AerisConfirmDialogIconTemplate,
|
|
49
|
+
decorators: [{
|
|
50
|
+
type: Directive,
|
|
51
|
+
args: [{ selector: "ng-template[aerisConfirmDialogIcon]" }]
|
|
52
|
+
}]
|
|
53
|
+
});
|
|
54
|
+
var AerisConfirmDialogMessageTemplate = class AerisConfirmDialogMessageTemplate {
|
|
55
|
+
template = inject(TemplateRef);
|
|
56
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
57
|
+
minVersion: "12.0.0",
|
|
58
|
+
version: "22.2.1",
|
|
59
|
+
ngImport: i0,
|
|
60
|
+
type: AerisConfirmDialogMessageTemplate,
|
|
61
|
+
deps: [],
|
|
62
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
63
|
+
});
|
|
64
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
65
|
+
minVersion: "14.0.0",
|
|
66
|
+
version: "22.2.1",
|
|
67
|
+
type: AerisConfirmDialogMessageTemplate,
|
|
68
|
+
isStandalone: true,
|
|
69
|
+
selector: "ng-template[aerisConfirmDialogMessage]",
|
|
70
|
+
ngImport: i0
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
74
|
+
minVersion: "12.0.0",
|
|
75
|
+
version: "22.2.1",
|
|
76
|
+
ngImport: i0,
|
|
77
|
+
type: AerisConfirmDialogMessageTemplate,
|
|
78
|
+
decorators: [{
|
|
79
|
+
type: Directive,
|
|
80
|
+
args: [{ selector: "ng-template[aerisConfirmDialogMessage]" }]
|
|
81
|
+
}]
|
|
82
|
+
});
|
|
83
|
+
var AerisConfirmDialogFooterTemplate = class AerisConfirmDialogFooterTemplate {
|
|
84
|
+
template = inject(TemplateRef);
|
|
85
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
86
|
+
minVersion: "12.0.0",
|
|
87
|
+
version: "22.2.1",
|
|
88
|
+
ngImport: i0,
|
|
89
|
+
type: AerisConfirmDialogFooterTemplate,
|
|
90
|
+
deps: [],
|
|
91
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
92
|
+
});
|
|
93
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
94
|
+
minVersion: "14.0.0",
|
|
95
|
+
version: "22.2.1",
|
|
96
|
+
type: AerisConfirmDialogFooterTemplate,
|
|
97
|
+
isStandalone: true,
|
|
98
|
+
selector: "ng-template[aerisConfirmDialogFooter]",
|
|
99
|
+
ngImport: i0
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
103
|
+
minVersion: "12.0.0",
|
|
104
|
+
version: "22.2.1",
|
|
105
|
+
ngImport: i0,
|
|
106
|
+
type: AerisConfirmDialogFooterTemplate,
|
|
107
|
+
decorators: [{
|
|
108
|
+
type: Directive,
|
|
109
|
+
args: [{ selector: "ng-template[aerisConfirmDialogFooter]" }]
|
|
110
|
+
}]
|
|
111
|
+
});
|
|
112
|
+
var AerisConfirmDialogHeadlessTemplate = class AerisConfirmDialogHeadlessTemplate {
|
|
113
|
+
template = inject(TemplateRef);
|
|
114
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
115
|
+
minVersion: "12.0.0",
|
|
116
|
+
version: "22.2.1",
|
|
117
|
+
ngImport: i0,
|
|
118
|
+
type: AerisConfirmDialogHeadlessTemplate,
|
|
119
|
+
deps: [],
|
|
120
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
121
|
+
});
|
|
122
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
123
|
+
minVersion: "14.0.0",
|
|
124
|
+
version: "22.2.1",
|
|
125
|
+
type: AerisConfirmDialogHeadlessTemplate,
|
|
126
|
+
isStandalone: true,
|
|
127
|
+
selector: "ng-template[aerisConfirmDialogHeadless]",
|
|
128
|
+
ngImport: i0
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
132
|
+
minVersion: "12.0.0",
|
|
133
|
+
version: "22.2.1",
|
|
134
|
+
ngImport: i0,
|
|
135
|
+
type: AerisConfirmDialogHeadlessTemplate,
|
|
136
|
+
decorators: [{
|
|
137
|
+
type: Directive,
|
|
138
|
+
args: [{ selector: "ng-template[aerisConfirmDialogHeadless]" }]
|
|
139
|
+
}]
|
|
140
|
+
});
|
|
141
|
+
var AerisConfirmDialogRef = class {
|
|
142
|
+
acceptedStream = new AerisConfirmDialogEventStream();
|
|
143
|
+
rejectedStream = new AerisConfirmDialogEventStream();
|
|
144
|
+
closedStream = new AerisConfirmDialogEventStream();
|
|
145
|
+
openedStream = new AerisConfirmDialogEventStream();
|
|
146
|
+
controller = null;
|
|
147
|
+
closedOnce = false;
|
|
148
|
+
accepted = this.acceptedStream;
|
|
149
|
+
rejected = this.rejectedStream;
|
|
150
|
+
closed = this.closedStream;
|
|
151
|
+
opened = this.openedStream;
|
|
152
|
+
accept(originalEvent = null) {
|
|
153
|
+
if (this.closedOnce) return;
|
|
154
|
+
this.controller?.accept(originalEvent);
|
|
155
|
+
}
|
|
156
|
+
reject(originalEvent = null) {
|
|
157
|
+
if (this.closedOnce) return;
|
|
158
|
+
this.controller?.reject(originalEvent);
|
|
159
|
+
}
|
|
160
|
+
close(originalEvent = null) {
|
|
161
|
+
if (this.closedOnce) return;
|
|
162
|
+
this.controller?.close(originalEvent);
|
|
163
|
+
}
|
|
164
|
+
focus(options) {
|
|
165
|
+
this.controller?.focus(options);
|
|
166
|
+
}
|
|
167
|
+
attach(controller) {
|
|
168
|
+
this.controller = controller;
|
|
169
|
+
}
|
|
170
|
+
notifyOpened(event) {
|
|
171
|
+
if (this.closedOnce) return;
|
|
172
|
+
this.openedStream.next(event);
|
|
173
|
+
}
|
|
174
|
+
notifyAccepted(event) {
|
|
175
|
+
if (this.closedOnce) return;
|
|
176
|
+
this.acceptedStream.next(event);
|
|
177
|
+
}
|
|
178
|
+
notifyRejected(event) {
|
|
179
|
+
if (this.closedOnce) return;
|
|
180
|
+
this.rejectedStream.next(event);
|
|
181
|
+
}
|
|
182
|
+
notifyClosed(event) {
|
|
183
|
+
if (this.closedOnce) return;
|
|
184
|
+
this.closedOnce = true;
|
|
185
|
+
this.closedStream.next(event);
|
|
186
|
+
this.acceptedStream.complete();
|
|
187
|
+
this.rejectedStream.complete();
|
|
188
|
+
this.closedStream.complete();
|
|
189
|
+
this.openedStream.complete();
|
|
190
|
+
this.controller = null;
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
var AerisConfirmDialogService = class AerisConfirmDialogService {
|
|
194
|
+
appRef = inject(ApplicationRef);
|
|
195
|
+
document = inject(DOCUMENT);
|
|
196
|
+
environmentInjector = inject(EnvironmentInjector);
|
|
197
|
+
requestState = signal(null, ...ngDevMode ? [{ debugName: "requestState" }] : /* istanbul ignore next */ []);
|
|
198
|
+
closeState = signal(0, ...ngDevMode ? [{ debugName: "closeState" }] : /* istanbul ignore next */ []);
|
|
199
|
+
activeRefs = /* @__PURE__ */ new Set();
|
|
200
|
+
dynamicHosts = /* @__PURE__ */ new Map();
|
|
201
|
+
nextId = 0;
|
|
202
|
+
request = this.requestState.asReadonly();
|
|
203
|
+
closeSignal = this.closeState.asReadonly();
|
|
204
|
+
confirm(config) {
|
|
205
|
+
const ref = new AerisConfirmDialogRef();
|
|
206
|
+
const resolvedConfig = this.resolveConfig(config);
|
|
207
|
+
if (!resolvedConfig.key) {
|
|
208
|
+
this.openDynamicHost(resolvedConfig, ref);
|
|
209
|
+
return ref;
|
|
210
|
+
}
|
|
211
|
+
const request = {
|
|
212
|
+
id: ++this.nextId,
|
|
213
|
+
config: resolvedConfig,
|
|
214
|
+
ref
|
|
215
|
+
};
|
|
216
|
+
this.activeRefs.add(ref);
|
|
217
|
+
ref.closed.subscribe(() => this.activeRefs.delete(ref));
|
|
218
|
+
this.requestState.set(request);
|
|
219
|
+
return ref;
|
|
220
|
+
}
|
|
221
|
+
closeAll() {
|
|
222
|
+
for (const ref of [...this.activeRefs]) ref.close();
|
|
223
|
+
this.closeState.update((value) => value + 1);
|
|
224
|
+
}
|
|
225
|
+
openDynamicHost(config, ref) {
|
|
226
|
+
const hostRef = createComponent(AerisConfirmDialog, { environmentInjector: this.environmentInjector });
|
|
227
|
+
const cleanup = () => {
|
|
228
|
+
if (!this.activeRefs.delete(ref)) return;
|
|
229
|
+
this.dynamicHosts.delete(ref);
|
|
230
|
+
this.appRef.detachView(hostRef.hostView);
|
|
231
|
+
hostRef.destroy();
|
|
232
|
+
};
|
|
233
|
+
this.activeRefs.add(ref);
|
|
234
|
+
this.dynamicHosts.set(ref, hostRef);
|
|
235
|
+
ref.closed.subscribe(() => queueMicrotask(cleanup));
|
|
236
|
+
this.appRef.attachView(hostRef.hostView);
|
|
237
|
+
this.document.body.appendChild(this.rootNode(hostRef));
|
|
238
|
+
hostRef.changeDetectorRef.detectChanges();
|
|
239
|
+
hostRef.instance.openWithConfig(config, ref);
|
|
240
|
+
ref.attach({
|
|
241
|
+
accept: (originalEvent) => {
|
|
242
|
+
hostRef.instance.accept(originalEvent);
|
|
243
|
+
hostRef.changeDetectorRef.detectChanges();
|
|
244
|
+
},
|
|
245
|
+
reject: (originalEvent) => {
|
|
246
|
+
hostRef.instance.reject(originalEvent);
|
|
247
|
+
hostRef.changeDetectorRef.detectChanges();
|
|
248
|
+
},
|
|
249
|
+
close: (originalEvent) => {
|
|
250
|
+
hostRef.instance.close(originalEvent);
|
|
251
|
+
hostRef.changeDetectorRef.detectChanges();
|
|
252
|
+
},
|
|
253
|
+
focus: (options) => hostRef.instance.focus(options)
|
|
254
|
+
});
|
|
255
|
+
hostRef.changeDetectorRef.detectChanges();
|
|
256
|
+
}
|
|
257
|
+
rootNode(hostRef) {
|
|
258
|
+
const [node] = hostRef.hostView.rootNodes;
|
|
259
|
+
return node instanceof Node ? node : this.document.createTextNode("");
|
|
260
|
+
}
|
|
261
|
+
resolveConfig(config) {
|
|
262
|
+
return {
|
|
263
|
+
key: config.key ?? "",
|
|
264
|
+
appendTo: config.appendTo,
|
|
265
|
+
header: config.header ?? "Confirm action",
|
|
266
|
+
message: config.message ?? "",
|
|
267
|
+
data: config.data,
|
|
268
|
+
icon: config.icon ?? "question",
|
|
269
|
+
severity: config.severity ?? "primary",
|
|
270
|
+
acceptLabel: config.acceptLabel ?? "Confirm",
|
|
271
|
+
rejectLabel: config.rejectLabel ?? "Cancel",
|
|
272
|
+
acceptVisible: config.acceptVisible ?? true,
|
|
273
|
+
rejectVisible: config.rejectVisible ?? true,
|
|
274
|
+
acceptDisabled: config.acceptDisabled ?? false,
|
|
275
|
+
rejectDisabled: config.rejectDisabled ?? false,
|
|
276
|
+
acceptAriaLabel: config.acceptAriaLabel ?? config.acceptLabel ?? "Confirm",
|
|
277
|
+
rejectAriaLabel: config.rejectAriaLabel ?? config.rejectLabel ?? "Cancel",
|
|
278
|
+
defaultFocus: config.defaultFocus ?? "accept",
|
|
279
|
+
modal: config.modal ?? true,
|
|
280
|
+
backdrop: config.backdrop ?? true,
|
|
281
|
+
backdropBlur: config.backdropBlur ?? true,
|
|
282
|
+
backdropBlurAmount: config.backdropBlurAmount ?? "",
|
|
283
|
+
closeOnBackdropClick: config.closeOnBackdropClick ?? false,
|
|
284
|
+
closeOnEscape: config.closeOnEscape ?? true,
|
|
285
|
+
closable: config.closable ?? true,
|
|
286
|
+
blockScroll: config.blockScroll ?? true,
|
|
287
|
+
focusTrap: config.focusTrap ?? true,
|
|
288
|
+
restoreFocus: config.restoreFocus ?? true,
|
|
289
|
+
autoFocus: config.autoFocus ?? true,
|
|
290
|
+
initialFocus: config.initialFocus ?? "",
|
|
291
|
+
position: config.position ?? "center",
|
|
292
|
+
size: config.size ?? "sm",
|
|
293
|
+
width: config.width ?? "",
|
|
294
|
+
maxWidth: config.maxWidth ?? "",
|
|
295
|
+
mobileWidth: config.mobileWidth ?? "",
|
|
296
|
+
closeAriaLabel: config.closeAriaLabel ?? "Close confirmation dialog",
|
|
297
|
+
ariaLabel: config.ariaLabel ?? "",
|
|
298
|
+
ariaLabelledBy: config.ariaLabelledBy ?? "",
|
|
299
|
+
ariaDescribedBy: config.ariaDescribedBy ?? "",
|
|
300
|
+
accept: config.accept,
|
|
301
|
+
reject: config.reject
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
305
|
+
minVersion: "12.0.0",
|
|
306
|
+
version: "22.2.1",
|
|
307
|
+
ngImport: i0,
|
|
308
|
+
type: AerisConfirmDialogService,
|
|
309
|
+
deps: [],
|
|
310
|
+
target: i0.ɵɵFactoryTarget.Service
|
|
311
|
+
});
|
|
312
|
+
static ɵprov = i0.ɵɵngDeclareService({
|
|
313
|
+
minVersion: "22.0.0",
|
|
314
|
+
version: "22.2.1",
|
|
315
|
+
ngImport: i0,
|
|
316
|
+
type: AerisConfirmDialogService
|
|
317
|
+
});
|
|
318
|
+
};
|
|
319
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
320
|
+
minVersion: "12.0.0",
|
|
321
|
+
version: "22.2.1",
|
|
322
|
+
ngImport: i0,
|
|
323
|
+
type: AerisConfirmDialogService,
|
|
324
|
+
decorators: [{ type: Service }]
|
|
325
|
+
});
|
|
326
|
+
var AerisConfirmDialog = class AerisConfirmDialog {
|
|
327
|
+
service = inject(AerisConfirmDialogService);
|
|
328
|
+
activeRequest = signal(null, ...ngDevMode ? [{ debugName: "activeRequest" }] : /* istanbul ignore next */ []);
|
|
329
|
+
localConfig = computed(() => ({
|
|
330
|
+
key: this.key(),
|
|
331
|
+
appendTo: this.appendTo(),
|
|
332
|
+
header: this.header(),
|
|
333
|
+
message: this.message(),
|
|
334
|
+
data: this.data(),
|
|
335
|
+
icon: this.icon(),
|
|
336
|
+
severity: this.severity(),
|
|
337
|
+
acceptLabel: this.acceptLabel(),
|
|
338
|
+
rejectLabel: this.rejectLabel(),
|
|
339
|
+
acceptVisible: this.acceptVisible(),
|
|
340
|
+
rejectVisible: this.rejectVisible(),
|
|
341
|
+
acceptDisabled: this.acceptDisabled(),
|
|
342
|
+
rejectDisabled: this.rejectDisabled(),
|
|
343
|
+
acceptAriaLabel: this.acceptAriaLabel() || this.acceptLabel(),
|
|
344
|
+
rejectAriaLabel: this.rejectAriaLabel() || this.rejectLabel(),
|
|
345
|
+
defaultFocus: this.defaultFocus(),
|
|
346
|
+
modal: this.modal(),
|
|
347
|
+
backdrop: this.backdrop(),
|
|
348
|
+
backdropBlur: this.backdropBlur(),
|
|
349
|
+
backdropBlurAmount: this.backdropBlurAmount(),
|
|
350
|
+
closeOnBackdropClick: this.closeOnBackdropClick(),
|
|
351
|
+
closeOnEscape: this.closeOnEscape(),
|
|
352
|
+
closable: this.closable(),
|
|
353
|
+
blockScroll: this.blockScroll(),
|
|
354
|
+
focusTrap: this.focusTrap(),
|
|
355
|
+
restoreFocus: this.restoreFocus(),
|
|
356
|
+
autoFocus: this.autoFocus(),
|
|
357
|
+
initialFocus: this.initialFocus(),
|
|
358
|
+
position: this.position(),
|
|
359
|
+
size: this.size(),
|
|
360
|
+
width: this.width(),
|
|
361
|
+
maxWidth: this.maxWidth(),
|
|
362
|
+
mobileWidth: this.mobileWidth(),
|
|
363
|
+
closeAriaLabel: this.closeAriaLabel(),
|
|
364
|
+
ariaLabel: this.ariaLabel(),
|
|
365
|
+
ariaLabelledBy: this.ariaLabelledBy(),
|
|
366
|
+
ariaDescribedBy: this.ariaDescribedBy()
|
|
367
|
+
}), ...ngDevMode ? [{ debugName: "localConfig" }] : /* istanbul ignore next */ []);
|
|
368
|
+
lastRequestId = 0;
|
|
369
|
+
lastCloseSignal = 0;
|
|
370
|
+
pendingResult = null;
|
|
371
|
+
pendingReason = "api";
|
|
372
|
+
pendingOriginalEvent = null;
|
|
373
|
+
dialog = viewChild("dialog", ...ngDevMode ? [{ debugName: "dialog" }] : /* istanbul ignore next */ []);
|
|
374
|
+
iconTemplate = contentChild(AerisConfirmDialogIconTemplate, ...ngDevMode ? [{ debugName: "iconTemplate" }] : /* istanbul ignore next */ []);
|
|
375
|
+
messageTemplate = contentChild(AerisConfirmDialogMessageTemplate, ...ngDevMode ? [{ debugName: "messageTemplate" }] : /* istanbul ignore next */ []);
|
|
376
|
+
footerTemplate = contentChild(AerisConfirmDialogFooterTemplate, ...ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []);
|
|
377
|
+
headlessTemplate = contentChild(AerisConfirmDialogHeadlessTemplate, ...ngDevMode ? [{ debugName: "headlessTemplate" }] : /* istanbul ignore next */ []);
|
|
378
|
+
settings = computed(() => this.activeRequest()?.config ?? this.localConfig(), ...ngDevMode ? [{ debugName: "settings" }] : /* istanbul ignore next */ []);
|
|
379
|
+
acceptButtonSeverity = computed(() => {
|
|
380
|
+
const severity = this.settings().severity;
|
|
381
|
+
return severity === "neutral" ? "secondary" : severity;
|
|
382
|
+
}, ...ngDevMode ? [{ debugName: "acceptButtonSeverity" }] : /* istanbul ignore next */ []);
|
|
383
|
+
templateContext = computed(() => ({
|
|
384
|
+
$implicit: this,
|
|
385
|
+
config: this.settings(),
|
|
386
|
+
data: this.settings().data,
|
|
387
|
+
accept: (event) => this.accept(event ?? null),
|
|
388
|
+
reject: (event) => this.reject(event ?? null),
|
|
389
|
+
close: (event) => this.close(event ?? null)
|
|
390
|
+
}), ...ngDevMode ? [{ debugName: "templateContext" }] : /* istanbul ignore next */ []);
|
|
391
|
+
computedAriaDescribedBy = computed(() => {
|
|
392
|
+
const describedBy = this.settings().ariaDescribedBy;
|
|
393
|
+
if (describedBy) return describedBy;
|
|
394
|
+
return this.settings().message || this.messageTemplate() ? this.messageId : "";
|
|
395
|
+
}, ...ngDevMode ? [{ debugName: "computedAriaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
396
|
+
initialFocusTarget = computed(() => {
|
|
397
|
+
const settings = this.settings();
|
|
398
|
+
if (settings.initialFocus) return settings.initialFocus;
|
|
399
|
+
switch (settings.defaultFocus) {
|
|
400
|
+
case "accept": return ".aeris-confirm-dialog__accept";
|
|
401
|
+
case "reject": return ".aeris-confirm-dialog__reject";
|
|
402
|
+
case "close": return ".aeris-dialog__action";
|
|
403
|
+
case "dialog": return ".aeris-dialog__panel";
|
|
404
|
+
case "none": return "";
|
|
405
|
+
default: return "";
|
|
406
|
+
}
|
|
407
|
+
}, ...ngDevMode ? [{ debugName: "initialFocusTarget" }] : /* istanbul ignore next */ []);
|
|
408
|
+
autoFocusTarget = computed(() => this.settings().autoFocus && this.settings().defaultFocus !== "none", ...ngDevMode ? [{ debugName: "autoFocusTarget" }] : /* istanbul ignore next */ []);
|
|
409
|
+
visible = model(false, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
410
|
+
key = input("", ...ngDevMode ? [{ debugName: "key" }] : /* istanbul ignore next */ []);
|
|
411
|
+
appendTo = input(...ngDevMode ? [void 0, { debugName: "appendTo" }] : /* istanbul ignore next */ []);
|
|
412
|
+
header = input("Confirm action", ...ngDevMode ? [{ debugName: "header" }] : /* istanbul ignore next */ []);
|
|
413
|
+
message = input("", ...ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []);
|
|
414
|
+
data = input(...ngDevMode ? [void 0, { debugName: "data" }] : /* istanbul ignore next */ []);
|
|
415
|
+
icon = input("question", ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
416
|
+
severity = input("primary", ...ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []);
|
|
417
|
+
acceptLabel = input("Confirm", ...ngDevMode ? [{ debugName: "acceptLabel" }] : /* istanbul ignore next */ []);
|
|
418
|
+
rejectLabel = input("Cancel", ...ngDevMode ? [{ debugName: "rejectLabel" }] : /* istanbul ignore next */ []);
|
|
419
|
+
acceptVisible = input(true, {
|
|
420
|
+
...ngDevMode ? { debugName: "acceptVisible" } : /* istanbul ignore next */ {},
|
|
421
|
+
transform: booleanAttribute
|
|
422
|
+
});
|
|
423
|
+
rejectVisible = input(true, {
|
|
424
|
+
...ngDevMode ? { debugName: "rejectVisible" } : /* istanbul ignore next */ {},
|
|
425
|
+
transform: booleanAttribute
|
|
426
|
+
});
|
|
427
|
+
acceptDisabled = input(false, {
|
|
428
|
+
...ngDevMode ? { debugName: "acceptDisabled" } : /* istanbul ignore next */ {},
|
|
429
|
+
transform: booleanAttribute
|
|
430
|
+
});
|
|
431
|
+
rejectDisabled = input(false, {
|
|
432
|
+
...ngDevMode ? { debugName: "rejectDisabled" } : /* istanbul ignore next */ {},
|
|
433
|
+
transform: booleanAttribute
|
|
434
|
+
});
|
|
435
|
+
acceptAriaLabel = input("", ...ngDevMode ? [{ debugName: "acceptAriaLabel" }] : /* istanbul ignore next */ []);
|
|
436
|
+
rejectAriaLabel = input("", ...ngDevMode ? [{ debugName: "rejectAriaLabel" }] : /* istanbul ignore next */ []);
|
|
437
|
+
defaultFocus = input("accept", ...ngDevMode ? [{ debugName: "defaultFocus" }] : /* istanbul ignore next */ []);
|
|
438
|
+
modal = input(true, {
|
|
439
|
+
...ngDevMode ? { debugName: "modal" } : /* istanbul ignore next */ {},
|
|
440
|
+
transform: booleanAttribute
|
|
441
|
+
});
|
|
442
|
+
backdrop = input(true, {
|
|
443
|
+
...ngDevMode ? { debugName: "backdrop" } : /* istanbul ignore next */ {},
|
|
444
|
+
transform: booleanAttribute
|
|
445
|
+
});
|
|
446
|
+
backdropBlur = input(true, {
|
|
447
|
+
...ngDevMode ? { debugName: "backdropBlur" } : /* istanbul ignore next */ {},
|
|
448
|
+
transform: booleanAttribute
|
|
449
|
+
});
|
|
450
|
+
backdropBlurAmount = input("", ...ngDevMode ? [{ debugName: "backdropBlurAmount" }] : /* istanbul ignore next */ []);
|
|
451
|
+
closeOnBackdropClick = input(false, {
|
|
452
|
+
...ngDevMode ? { debugName: "closeOnBackdropClick" } : /* istanbul ignore next */ {},
|
|
453
|
+
transform: booleanAttribute
|
|
454
|
+
});
|
|
455
|
+
closeOnEscape = input(true, {
|
|
456
|
+
...ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {},
|
|
457
|
+
transform: booleanAttribute
|
|
458
|
+
});
|
|
459
|
+
closable = input(true, {
|
|
460
|
+
...ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {},
|
|
461
|
+
transform: booleanAttribute
|
|
462
|
+
});
|
|
463
|
+
blockScroll = input(true, {
|
|
464
|
+
...ngDevMode ? { debugName: "blockScroll" } : /* istanbul ignore next */ {},
|
|
465
|
+
transform: booleanAttribute
|
|
466
|
+
});
|
|
467
|
+
focusTrap = input(true, {
|
|
468
|
+
...ngDevMode ? { debugName: "focusTrap" } : /* istanbul ignore next */ {},
|
|
469
|
+
transform: booleanAttribute
|
|
470
|
+
});
|
|
471
|
+
restoreFocus = input(true, {
|
|
472
|
+
...ngDevMode ? { debugName: "restoreFocus" } : /* istanbul ignore next */ {},
|
|
473
|
+
transform: booleanAttribute
|
|
474
|
+
});
|
|
475
|
+
autoFocus = input(true, {
|
|
476
|
+
...ngDevMode ? { debugName: "autoFocus" } : /* istanbul ignore next */ {},
|
|
477
|
+
transform: booleanAttribute
|
|
478
|
+
});
|
|
479
|
+
initialFocus = input("", ...ngDevMode ? [{ debugName: "initialFocus" }] : /* istanbul ignore next */ []);
|
|
480
|
+
position = input("center", ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
|
|
481
|
+
size = input("sm", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
482
|
+
width = input("", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
483
|
+
maxWidth = input("", ...ngDevMode ? [{ debugName: "maxWidth" }] : /* istanbul ignore next */ []);
|
|
484
|
+
mobileWidth = input("", ...ngDevMode ? [{ debugName: "mobileWidth" }] : /* istanbul ignore next */ []);
|
|
485
|
+
closeAriaLabel = input("Close confirmation dialog", ...ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []);
|
|
486
|
+
ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
487
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
488
|
+
ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
489
|
+
opened = output();
|
|
490
|
+
accepted = output();
|
|
491
|
+
rejected = output();
|
|
492
|
+
closed = output();
|
|
493
|
+
messageId = `aeris-confirm-dialog-${Math.random().toString(36).slice(2)}-message`;
|
|
494
|
+
constructor() {
|
|
495
|
+
effect(() => {
|
|
496
|
+
const request = this.service.request();
|
|
497
|
+
if (!request || request.id === this.lastRequestId) return;
|
|
498
|
+
if (request.config.key !== this.key()) return;
|
|
499
|
+
this.lastRequestId = request.id;
|
|
500
|
+
this.openRequest(request);
|
|
501
|
+
});
|
|
502
|
+
effect(() => {
|
|
503
|
+
const closeSignal = this.service.closeSignal();
|
|
504
|
+
if (closeSignal === this.lastCloseSignal) return;
|
|
505
|
+
this.lastCloseSignal = closeSignal;
|
|
506
|
+
this.close();
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
openWithConfig(config, ref) {
|
|
510
|
+
this.openRequest({
|
|
511
|
+
id: ++this.lastRequestId,
|
|
512
|
+
config,
|
|
513
|
+
ref
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
accept(originalEvent = null) {
|
|
517
|
+
const settings = this.settings();
|
|
518
|
+
if (!this.visible() || settings.acceptDisabled || !settings.acceptVisible) return;
|
|
519
|
+
const event = this.actionEvent(originalEvent);
|
|
520
|
+
settings.accept?.(event);
|
|
521
|
+
this.accepted.emit(event);
|
|
522
|
+
this.activeRequest()?.ref.notifyAccepted(event);
|
|
523
|
+
this.closeWithResult("accept", "accept", originalEvent);
|
|
524
|
+
}
|
|
525
|
+
reject(originalEvent = null) {
|
|
526
|
+
const settings = this.settings();
|
|
527
|
+
if (!this.visible() || settings.rejectDisabled || !settings.rejectVisible) return;
|
|
528
|
+
const event = this.actionEvent(originalEvent);
|
|
529
|
+
settings.reject?.(event);
|
|
530
|
+
this.rejected.emit(event);
|
|
531
|
+
this.activeRequest()?.ref.notifyRejected(event);
|
|
532
|
+
this.closeWithResult("reject", "reject", originalEvent);
|
|
533
|
+
}
|
|
534
|
+
close(originalEvent = null) {
|
|
535
|
+
if (!this.visible()) return;
|
|
536
|
+
this.closeWithResult("dismiss", "api", originalEvent);
|
|
537
|
+
}
|
|
538
|
+
focus(options) {
|
|
539
|
+
this.dialog()?.focus(options);
|
|
540
|
+
}
|
|
541
|
+
handleOpened(event) {
|
|
542
|
+
const shownEvent = this.actionEvent(event.originalEvent);
|
|
543
|
+
this.opened.emit(shownEvent);
|
|
544
|
+
this.activeRequest()?.ref.notifyOpened(shownEvent);
|
|
545
|
+
}
|
|
546
|
+
handleHidden(event) {
|
|
547
|
+
const result = this.pendingResult ?? "dismiss";
|
|
548
|
+
const reason = this.pendingReason === "api" ? event.reason : this.pendingReason;
|
|
549
|
+
const originalEvent = this.pendingOriginalEvent ?? event.originalEvent;
|
|
550
|
+
const closeEvent = {
|
|
551
|
+
...this.actionEvent(originalEvent),
|
|
552
|
+
result,
|
|
553
|
+
reason
|
|
554
|
+
};
|
|
555
|
+
const ref = this.activeRequest()?.ref;
|
|
556
|
+
this.visible.set(false);
|
|
557
|
+
this.pendingResult = null;
|
|
558
|
+
this.pendingReason = "api";
|
|
559
|
+
this.pendingOriginalEvent = null;
|
|
560
|
+
this.activeRequest.set(null);
|
|
561
|
+
this.closed.emit(closeEvent);
|
|
562
|
+
ref?.notifyClosed(closeEvent);
|
|
563
|
+
}
|
|
564
|
+
openRequest(request) {
|
|
565
|
+
this.pendingResult = null;
|
|
566
|
+
this.pendingReason = "api";
|
|
567
|
+
this.pendingOriginalEvent = null;
|
|
568
|
+
this.activeRequest.set(request);
|
|
569
|
+
request.ref.attach({
|
|
570
|
+
accept: (originalEvent) => this.accept(originalEvent),
|
|
571
|
+
reject: (originalEvent) => this.reject(originalEvent),
|
|
572
|
+
close: (originalEvent) => this.close(originalEvent),
|
|
573
|
+
focus: (options) => this.focus(options)
|
|
574
|
+
});
|
|
575
|
+
this.visible.set(true);
|
|
576
|
+
}
|
|
577
|
+
closeWithResult(result, reason, originalEvent) {
|
|
578
|
+
this.pendingResult = result;
|
|
579
|
+
this.pendingReason = reason;
|
|
580
|
+
this.pendingOriginalEvent = originalEvent;
|
|
581
|
+
this.dialog()?.hide(originalEvent, reason === "accept" || reason === "reject" ? "api" : reason);
|
|
582
|
+
}
|
|
583
|
+
actionEvent(originalEvent) {
|
|
584
|
+
const settings = this.settings();
|
|
585
|
+
return {
|
|
586
|
+
originalEvent,
|
|
587
|
+
data: settings.data,
|
|
588
|
+
config: settings
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
592
|
+
minVersion: "12.0.0",
|
|
593
|
+
version: "22.2.1",
|
|
594
|
+
ngImport: i0,
|
|
595
|
+
type: AerisConfirmDialog,
|
|
596
|
+
deps: [],
|
|
597
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
598
|
+
});
|
|
599
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
600
|
+
minVersion: "17.0.0",
|
|
601
|
+
version: "22.2.1",
|
|
602
|
+
type: AerisConfirmDialog,
|
|
603
|
+
isStandalone: true,
|
|
604
|
+
selector: "aeris-confirm-dialog",
|
|
605
|
+
inputs: {
|
|
606
|
+
visible: {
|
|
607
|
+
classPropertyName: "visible",
|
|
608
|
+
publicName: "visible",
|
|
609
|
+
isSignal: true,
|
|
610
|
+
isRequired: false,
|
|
611
|
+
transformFunction: null
|
|
612
|
+
},
|
|
613
|
+
key: {
|
|
614
|
+
classPropertyName: "key",
|
|
615
|
+
publicName: "key",
|
|
616
|
+
isSignal: true,
|
|
617
|
+
isRequired: false,
|
|
618
|
+
transformFunction: null
|
|
619
|
+
},
|
|
620
|
+
appendTo: {
|
|
621
|
+
classPropertyName: "appendTo",
|
|
622
|
+
publicName: "appendTo",
|
|
623
|
+
isSignal: true,
|
|
624
|
+
isRequired: false,
|
|
625
|
+
transformFunction: null
|
|
626
|
+
},
|
|
627
|
+
header: {
|
|
628
|
+
classPropertyName: "header",
|
|
629
|
+
publicName: "header",
|
|
630
|
+
isSignal: true,
|
|
631
|
+
isRequired: false,
|
|
632
|
+
transformFunction: null
|
|
633
|
+
},
|
|
634
|
+
message: {
|
|
635
|
+
classPropertyName: "message",
|
|
636
|
+
publicName: "message",
|
|
637
|
+
isSignal: true,
|
|
638
|
+
isRequired: false,
|
|
639
|
+
transformFunction: null
|
|
640
|
+
},
|
|
641
|
+
data: {
|
|
642
|
+
classPropertyName: "data",
|
|
643
|
+
publicName: "data",
|
|
644
|
+
isSignal: true,
|
|
645
|
+
isRequired: false,
|
|
646
|
+
transformFunction: null
|
|
647
|
+
},
|
|
648
|
+
icon: {
|
|
649
|
+
classPropertyName: "icon",
|
|
650
|
+
publicName: "icon",
|
|
651
|
+
isSignal: true,
|
|
652
|
+
isRequired: false,
|
|
653
|
+
transformFunction: null
|
|
654
|
+
},
|
|
655
|
+
severity: {
|
|
656
|
+
classPropertyName: "severity",
|
|
657
|
+
publicName: "severity",
|
|
658
|
+
isSignal: true,
|
|
659
|
+
isRequired: false,
|
|
660
|
+
transformFunction: null
|
|
661
|
+
},
|
|
662
|
+
acceptLabel: {
|
|
663
|
+
classPropertyName: "acceptLabel",
|
|
664
|
+
publicName: "acceptLabel",
|
|
665
|
+
isSignal: true,
|
|
666
|
+
isRequired: false,
|
|
667
|
+
transformFunction: null
|
|
668
|
+
},
|
|
669
|
+
rejectLabel: {
|
|
670
|
+
classPropertyName: "rejectLabel",
|
|
671
|
+
publicName: "rejectLabel",
|
|
672
|
+
isSignal: true,
|
|
673
|
+
isRequired: false,
|
|
674
|
+
transformFunction: null
|
|
675
|
+
},
|
|
676
|
+
acceptVisible: {
|
|
677
|
+
classPropertyName: "acceptVisible",
|
|
678
|
+
publicName: "acceptVisible",
|
|
679
|
+
isSignal: true,
|
|
680
|
+
isRequired: false,
|
|
681
|
+
transformFunction: null
|
|
682
|
+
},
|
|
683
|
+
rejectVisible: {
|
|
684
|
+
classPropertyName: "rejectVisible",
|
|
685
|
+
publicName: "rejectVisible",
|
|
686
|
+
isSignal: true,
|
|
687
|
+
isRequired: false,
|
|
688
|
+
transformFunction: null
|
|
689
|
+
},
|
|
690
|
+
acceptDisabled: {
|
|
691
|
+
classPropertyName: "acceptDisabled",
|
|
692
|
+
publicName: "acceptDisabled",
|
|
693
|
+
isSignal: true,
|
|
694
|
+
isRequired: false,
|
|
695
|
+
transformFunction: null
|
|
696
|
+
},
|
|
697
|
+
rejectDisabled: {
|
|
698
|
+
classPropertyName: "rejectDisabled",
|
|
699
|
+
publicName: "rejectDisabled",
|
|
700
|
+
isSignal: true,
|
|
701
|
+
isRequired: false,
|
|
702
|
+
transformFunction: null
|
|
703
|
+
},
|
|
704
|
+
acceptAriaLabel: {
|
|
705
|
+
classPropertyName: "acceptAriaLabel",
|
|
706
|
+
publicName: "acceptAriaLabel",
|
|
707
|
+
isSignal: true,
|
|
708
|
+
isRequired: false,
|
|
709
|
+
transformFunction: null
|
|
710
|
+
},
|
|
711
|
+
rejectAriaLabel: {
|
|
712
|
+
classPropertyName: "rejectAriaLabel",
|
|
713
|
+
publicName: "rejectAriaLabel",
|
|
714
|
+
isSignal: true,
|
|
715
|
+
isRequired: false,
|
|
716
|
+
transformFunction: null
|
|
717
|
+
},
|
|
718
|
+
defaultFocus: {
|
|
719
|
+
classPropertyName: "defaultFocus",
|
|
720
|
+
publicName: "defaultFocus",
|
|
721
|
+
isSignal: true,
|
|
722
|
+
isRequired: false,
|
|
723
|
+
transformFunction: null
|
|
724
|
+
},
|
|
725
|
+
modal: {
|
|
726
|
+
classPropertyName: "modal",
|
|
727
|
+
publicName: "modal",
|
|
728
|
+
isSignal: true,
|
|
729
|
+
isRequired: false,
|
|
730
|
+
transformFunction: null
|
|
731
|
+
},
|
|
732
|
+
backdrop: {
|
|
733
|
+
classPropertyName: "backdrop",
|
|
734
|
+
publicName: "backdrop",
|
|
735
|
+
isSignal: true,
|
|
736
|
+
isRequired: false,
|
|
737
|
+
transformFunction: null
|
|
738
|
+
},
|
|
739
|
+
backdropBlur: {
|
|
740
|
+
classPropertyName: "backdropBlur",
|
|
741
|
+
publicName: "backdropBlur",
|
|
742
|
+
isSignal: true,
|
|
743
|
+
isRequired: false,
|
|
744
|
+
transformFunction: null
|
|
745
|
+
},
|
|
746
|
+
backdropBlurAmount: {
|
|
747
|
+
classPropertyName: "backdropBlurAmount",
|
|
748
|
+
publicName: "backdropBlurAmount",
|
|
749
|
+
isSignal: true,
|
|
750
|
+
isRequired: false,
|
|
751
|
+
transformFunction: null
|
|
752
|
+
},
|
|
753
|
+
closeOnBackdropClick: {
|
|
754
|
+
classPropertyName: "closeOnBackdropClick",
|
|
755
|
+
publicName: "closeOnBackdropClick",
|
|
756
|
+
isSignal: true,
|
|
757
|
+
isRequired: false,
|
|
758
|
+
transformFunction: null
|
|
759
|
+
},
|
|
760
|
+
closeOnEscape: {
|
|
761
|
+
classPropertyName: "closeOnEscape",
|
|
762
|
+
publicName: "closeOnEscape",
|
|
763
|
+
isSignal: true,
|
|
764
|
+
isRequired: false,
|
|
765
|
+
transformFunction: null
|
|
766
|
+
},
|
|
767
|
+
closable: {
|
|
768
|
+
classPropertyName: "closable",
|
|
769
|
+
publicName: "closable",
|
|
770
|
+
isSignal: true,
|
|
771
|
+
isRequired: false,
|
|
772
|
+
transformFunction: null
|
|
773
|
+
},
|
|
774
|
+
blockScroll: {
|
|
775
|
+
classPropertyName: "blockScroll",
|
|
776
|
+
publicName: "blockScroll",
|
|
777
|
+
isSignal: true,
|
|
778
|
+
isRequired: false,
|
|
779
|
+
transformFunction: null
|
|
780
|
+
},
|
|
781
|
+
focusTrap: {
|
|
782
|
+
classPropertyName: "focusTrap",
|
|
783
|
+
publicName: "focusTrap",
|
|
784
|
+
isSignal: true,
|
|
785
|
+
isRequired: false,
|
|
786
|
+
transformFunction: null
|
|
787
|
+
},
|
|
788
|
+
restoreFocus: {
|
|
789
|
+
classPropertyName: "restoreFocus",
|
|
790
|
+
publicName: "restoreFocus",
|
|
791
|
+
isSignal: true,
|
|
792
|
+
isRequired: false,
|
|
793
|
+
transformFunction: null
|
|
794
|
+
},
|
|
795
|
+
autoFocus: {
|
|
796
|
+
classPropertyName: "autoFocus",
|
|
797
|
+
publicName: "autoFocus",
|
|
798
|
+
isSignal: true,
|
|
799
|
+
isRequired: false,
|
|
800
|
+
transformFunction: null
|
|
801
|
+
},
|
|
802
|
+
initialFocus: {
|
|
803
|
+
classPropertyName: "initialFocus",
|
|
804
|
+
publicName: "initialFocus",
|
|
805
|
+
isSignal: true,
|
|
806
|
+
isRequired: false,
|
|
807
|
+
transformFunction: null
|
|
808
|
+
},
|
|
809
|
+
position: {
|
|
810
|
+
classPropertyName: "position",
|
|
811
|
+
publicName: "position",
|
|
812
|
+
isSignal: true,
|
|
813
|
+
isRequired: false,
|
|
814
|
+
transformFunction: null
|
|
815
|
+
},
|
|
816
|
+
size: {
|
|
817
|
+
classPropertyName: "size",
|
|
818
|
+
publicName: "size",
|
|
819
|
+
isSignal: true,
|
|
820
|
+
isRequired: false,
|
|
821
|
+
transformFunction: null
|
|
822
|
+
},
|
|
823
|
+
width: {
|
|
824
|
+
classPropertyName: "width",
|
|
825
|
+
publicName: "width",
|
|
826
|
+
isSignal: true,
|
|
827
|
+
isRequired: false,
|
|
828
|
+
transformFunction: null
|
|
829
|
+
},
|
|
830
|
+
maxWidth: {
|
|
831
|
+
classPropertyName: "maxWidth",
|
|
832
|
+
publicName: "maxWidth",
|
|
833
|
+
isSignal: true,
|
|
834
|
+
isRequired: false,
|
|
835
|
+
transformFunction: null
|
|
836
|
+
},
|
|
837
|
+
mobileWidth: {
|
|
838
|
+
classPropertyName: "mobileWidth",
|
|
839
|
+
publicName: "mobileWidth",
|
|
840
|
+
isSignal: true,
|
|
841
|
+
isRequired: false,
|
|
842
|
+
transformFunction: null
|
|
843
|
+
},
|
|
844
|
+
closeAriaLabel: {
|
|
845
|
+
classPropertyName: "closeAriaLabel",
|
|
846
|
+
publicName: "closeAriaLabel",
|
|
847
|
+
isSignal: true,
|
|
848
|
+
isRequired: false,
|
|
849
|
+
transformFunction: null
|
|
850
|
+
},
|
|
851
|
+
ariaLabel: {
|
|
852
|
+
classPropertyName: "ariaLabel",
|
|
853
|
+
publicName: "ariaLabel",
|
|
854
|
+
isSignal: true,
|
|
855
|
+
isRequired: false,
|
|
856
|
+
transformFunction: null
|
|
857
|
+
},
|
|
858
|
+
ariaLabelledBy: {
|
|
859
|
+
classPropertyName: "ariaLabelledBy",
|
|
860
|
+
publicName: "ariaLabelledBy",
|
|
861
|
+
isSignal: true,
|
|
862
|
+
isRequired: false,
|
|
863
|
+
transformFunction: null
|
|
864
|
+
},
|
|
865
|
+
ariaDescribedBy: {
|
|
866
|
+
classPropertyName: "ariaDescribedBy",
|
|
867
|
+
publicName: "ariaDescribedBy",
|
|
868
|
+
isSignal: true,
|
|
869
|
+
isRequired: false,
|
|
870
|
+
transformFunction: null
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
outputs: {
|
|
874
|
+
visible: "visibleChange",
|
|
875
|
+
opened: "opened",
|
|
876
|
+
accepted: "accepted",
|
|
877
|
+
rejected: "rejected",
|
|
878
|
+
closed: "closed"
|
|
879
|
+
},
|
|
880
|
+
host: {
|
|
881
|
+
properties: { "attr.data-open": "visible() || null" },
|
|
882
|
+
classAttribute: "aeris-confirm-dialog"
|
|
883
|
+
},
|
|
884
|
+
queries: [
|
|
885
|
+
{
|
|
886
|
+
propertyName: "iconTemplate",
|
|
887
|
+
first: true,
|
|
888
|
+
predicate: AerisConfirmDialogIconTemplate,
|
|
889
|
+
descendants: true,
|
|
890
|
+
isSignal: true
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
propertyName: "messageTemplate",
|
|
894
|
+
first: true,
|
|
895
|
+
predicate: AerisConfirmDialogMessageTemplate,
|
|
896
|
+
descendants: true,
|
|
897
|
+
isSignal: true
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
propertyName: "footerTemplate",
|
|
901
|
+
first: true,
|
|
902
|
+
predicate: AerisConfirmDialogFooterTemplate,
|
|
903
|
+
descendants: true,
|
|
904
|
+
isSignal: true
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
propertyName: "headlessTemplate",
|
|
908
|
+
first: true,
|
|
909
|
+
predicate: AerisConfirmDialogHeadlessTemplate,
|
|
910
|
+
descendants: true,
|
|
911
|
+
isSignal: true
|
|
912
|
+
}
|
|
913
|
+
],
|
|
914
|
+
viewQueries: [{
|
|
915
|
+
propertyName: "dialog",
|
|
916
|
+
first: true,
|
|
917
|
+
predicate: ["dialog"],
|
|
918
|
+
descendants: true,
|
|
919
|
+
isSignal: true
|
|
920
|
+
}],
|
|
921
|
+
ngImport: i0,
|
|
922
|
+
template: `
|
|
525
923
|
<aeris-dialog
|
|
526
924
|
#dialog
|
|
527
925
|
[appendTo]="settings().appendTo"
|
|
@@ -658,17 +1056,114 @@ class AerisConfirmDialog {
|
|
|
658
1056
|
</ng-template>
|
|
659
1057
|
}
|
|
660
1058
|
</aeris-dialog>
|
|
661
|
-
`,
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
1059
|
+
`,
|
|
1060
|
+
isInline: true,
|
|
1061
|
+
styles: [":host{--_aeris-confirm-dialog-icon-size: 2.5rem;display:contents}.aeris-confirm-dialog__content{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.875rem;align-items:start}.aeris-confirm-dialog__content:not(:has(.aeris-confirm-dialog__icon)){grid-template-columns:1fr}.aeris-confirm-dialog__icon{width:var(--aeris-confirm-dialog-icon-size, var(--_aeris-confirm-dialog-icon-size));height:var(--aeris-confirm-dialog-icon-size, var(--_aeris-confirm-dialog-icon-size));display:inline-grid;place-items:center;border-radius:var(--aeris-confirm-dialog-icon-radius, 999px);background:var(--aeris-confirm-dialog-icon-background, color-mix(in srgb, var(--aeris-primary, #6f7f49) 14%, transparent));color:var(--aeris-confirm-dialog-icon-color, var(--aeris-primary-text, #4c5f27));flex:0 0 auto}.aeris-confirm-dialog__icon svg{width:1.35rem;height:1.35rem;display:block;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.aeris-confirm-dialog__content[data-severity=success] .aeris-confirm-dialog__icon{background:color-mix(in srgb,var(--aeris-success, #5d7d3f) 16%,transparent);color:var(--aeris-success-text, #3e6124)}.aeris-confirm-dialog__content[data-severity=info] .aeris-confirm-dialog__icon{background:color-mix(in srgb,var(--aeris-info, #58789d) 16%,transparent);color:var(--aeris-info-text, #2f5c87)}.aeris-confirm-dialog__content[data-severity=warning] .aeris-confirm-dialog__icon{background:color-mix(in srgb,var(--aeris-warning, #c38600) 18%,transparent);color:var(--aeris-warning-text, #8a6100)}.aeris-confirm-dialog__content[data-severity=danger] .aeris-confirm-dialog__icon{background:color-mix(in srgb,var(--aeris-danger, #c81e2a) 16%,transparent);color:var(--aeris-danger-text, #a31722)}.aeris-confirm-dialog__message{min-width:0;color:var(--aeris-confirm-dialog-message-color, var(--aeris-text-2, #555555));font-size:.9375rem;line-height:1.55}.aeris-confirm-dialog__message:empty{display:none}.aeris-confirm-dialog__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}@media(max-width:34rem){.aeris-confirm-dialog__content{grid-template-columns:1fr}.aeris-confirm-dialog__actions,.aeris-confirm-dialog__actions .aeris-button{width:100%}}\n"],
|
|
1062
|
+
dependencies: [
|
|
1063
|
+
{
|
|
1064
|
+
kind: "component",
|
|
1065
|
+
type: AerisButtonDirective,
|
|
1066
|
+
selector: "button[aerisButton], a[aerisButton]",
|
|
1067
|
+
inputs: [
|
|
1068
|
+
"variant",
|
|
1069
|
+
"size",
|
|
1070
|
+
"severity",
|
|
1071
|
+
"iconPosition",
|
|
1072
|
+
"loading",
|
|
1073
|
+
"disabled",
|
|
1074
|
+
"showSpinner",
|
|
1075
|
+
"iconOnly",
|
|
1076
|
+
"raised",
|
|
1077
|
+
"rounded",
|
|
1078
|
+
"fluid"
|
|
1079
|
+
]
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
kind: "component",
|
|
1083
|
+
type: AerisDialog,
|
|
1084
|
+
selector: "aeris-dialog",
|
|
1085
|
+
inputs: [
|
|
1086
|
+
"visible",
|
|
1087
|
+
"maximized",
|
|
1088
|
+
"header",
|
|
1089
|
+
"appendTo",
|
|
1090
|
+
"role",
|
|
1091
|
+
"modal",
|
|
1092
|
+
"backdrop",
|
|
1093
|
+
"backdropBlur",
|
|
1094
|
+
"backdropBlurAmount",
|
|
1095
|
+
"closeOnBackdropClick",
|
|
1096
|
+
"closeOnEscape",
|
|
1097
|
+
"closable",
|
|
1098
|
+
"maximizable",
|
|
1099
|
+
"draggable",
|
|
1100
|
+
"resizable",
|
|
1101
|
+
"blockScroll",
|
|
1102
|
+
"focusTrap",
|
|
1103
|
+
"restoreFocus",
|
|
1104
|
+
"autoFocus",
|
|
1105
|
+
"initialFocus",
|
|
1106
|
+
"position",
|
|
1107
|
+
"size",
|
|
1108
|
+
"width",
|
|
1109
|
+
"minWidth",
|
|
1110
|
+
"maxWidth",
|
|
1111
|
+
"height",
|
|
1112
|
+
"maxHeight",
|
|
1113
|
+
"mobileWidth",
|
|
1114
|
+
"footerLayout",
|
|
1115
|
+
"closeAriaLabel",
|
|
1116
|
+
"ariaLabel",
|
|
1117
|
+
"ariaLabelledBy",
|
|
1118
|
+
"ariaDescribedBy"
|
|
1119
|
+
],
|
|
1120
|
+
outputs: [
|
|
1121
|
+
"visibleChange",
|
|
1122
|
+
"maximizedChange",
|
|
1123
|
+
"opened",
|
|
1124
|
+
"closed"
|
|
1125
|
+
]
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
kind: "directive",
|
|
1129
|
+
type: AerisDialogFooterTemplate,
|
|
1130
|
+
selector: "ng-template[aerisDialogFooter]"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
kind: "directive",
|
|
1134
|
+
type: AerisDialogHeadlessTemplate,
|
|
1135
|
+
selector: "ng-template[aerisDialogHeadless]"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
kind: "directive",
|
|
1139
|
+
type: NgTemplateOutlet,
|
|
1140
|
+
selector: "[ngTemplateOutlet]",
|
|
1141
|
+
inputs: [
|
|
1142
|
+
"ngTemplateOutletContext",
|
|
1143
|
+
"ngTemplateOutlet",
|
|
1144
|
+
"ngTemplateOutletInjector"
|
|
1145
|
+
]
|
|
1146
|
+
}
|
|
1147
|
+
]
|
|
1148
|
+
});
|
|
1149
|
+
};
|
|
1150
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1151
|
+
minVersion: "12.0.0",
|
|
1152
|
+
version: "22.2.1",
|
|
1153
|
+
ngImport: i0,
|
|
1154
|
+
type: AerisConfirmDialog,
|
|
1155
|
+
decorators: [{
|
|
1156
|
+
type: Component,
|
|
1157
|
+
args: [{
|
|
1158
|
+
selector: "aeris-confirm-dialog",
|
|
1159
|
+
imports: [
|
|
1160
|
+
AerisButtonDirective,
|
|
1161
|
+
AerisDialog,
|
|
1162
|
+
AerisDialogFooterTemplate,
|
|
1163
|
+
AerisDialogHeadlessTemplate,
|
|
1164
|
+
NgTemplateOutlet
|
|
1165
|
+
],
|
|
1166
|
+
template: `
|
|
672
1167
|
<aeris-dialog
|
|
673
1168
|
#dialog
|
|
674
1169
|
[appendTo]="settings().appendTo"
|
|
@@ -805,22 +1300,368 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
805
1300
|
</ng-template>
|
|
806
1301
|
}
|
|
807
1302
|
</aeris-dialog>
|
|
808
|
-
`,
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
1303
|
+
`,
|
|
1304
|
+
host: {
|
|
1305
|
+
class: "aeris-confirm-dialog",
|
|
1306
|
+
"[attr.data-open]": "visible() || null"
|
|
1307
|
+
},
|
|
1308
|
+
styles: [":host{--_aeris-confirm-dialog-icon-size: 2.5rem;display:contents}.aeris-confirm-dialog__content{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.875rem;align-items:start}.aeris-confirm-dialog__content:not(:has(.aeris-confirm-dialog__icon)){grid-template-columns:1fr}.aeris-confirm-dialog__icon{width:var(--aeris-confirm-dialog-icon-size, var(--_aeris-confirm-dialog-icon-size));height:var(--aeris-confirm-dialog-icon-size, var(--_aeris-confirm-dialog-icon-size));display:inline-grid;place-items:center;border-radius:var(--aeris-confirm-dialog-icon-radius, 999px);background:var(--aeris-confirm-dialog-icon-background, color-mix(in srgb, var(--aeris-primary, #6f7f49) 14%, transparent));color:var(--aeris-confirm-dialog-icon-color, var(--aeris-primary-text, #4c5f27));flex:0 0 auto}.aeris-confirm-dialog__icon svg{width:1.35rem;height:1.35rem;display:block;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.aeris-confirm-dialog__content[data-severity=success] .aeris-confirm-dialog__icon{background:color-mix(in srgb,var(--aeris-success, #5d7d3f) 16%,transparent);color:var(--aeris-success-text, #3e6124)}.aeris-confirm-dialog__content[data-severity=info] .aeris-confirm-dialog__icon{background:color-mix(in srgb,var(--aeris-info, #58789d) 16%,transparent);color:var(--aeris-info-text, #2f5c87)}.aeris-confirm-dialog__content[data-severity=warning] .aeris-confirm-dialog__icon{background:color-mix(in srgb,var(--aeris-warning, #c38600) 18%,transparent);color:var(--aeris-warning-text, #8a6100)}.aeris-confirm-dialog__content[data-severity=danger] .aeris-confirm-dialog__icon{background:color-mix(in srgb,var(--aeris-danger, #c81e2a) 16%,transparent);color:var(--aeris-danger-text, #a31722)}.aeris-confirm-dialog__message{min-width:0;color:var(--aeris-confirm-dialog-message-color, var(--aeris-text-2, #555555));font-size:.9375rem;line-height:1.55}.aeris-confirm-dialog__message:empty{display:none}.aeris-confirm-dialog__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}@media(max-width:34rem){.aeris-confirm-dialog__content{grid-template-columns:1fr}.aeris-confirm-dialog__actions,.aeris-confirm-dialog__actions .aeris-button{width:100%}}\n"]
|
|
1309
|
+
}]
|
|
1310
|
+
}],
|
|
1311
|
+
ctorParameters: () => [],
|
|
1312
|
+
propDecorators: {
|
|
1313
|
+
dialog: [{
|
|
1314
|
+
type: i0.ViewChild,
|
|
1315
|
+
args: ["dialog", { isSignal: true }]
|
|
1316
|
+
}],
|
|
1317
|
+
iconTemplate: [{
|
|
1318
|
+
type: i0.ContentChild,
|
|
1319
|
+
args: [i0.forwardRef(() => AerisConfirmDialogIconTemplate), { isSignal: true }]
|
|
1320
|
+
}],
|
|
1321
|
+
messageTemplate: [{
|
|
1322
|
+
type: i0.ContentChild,
|
|
1323
|
+
args: [i0.forwardRef(() => AerisConfirmDialogMessageTemplate), { isSignal: true }]
|
|
1324
|
+
}],
|
|
1325
|
+
footerTemplate: [{
|
|
1326
|
+
type: i0.ContentChild,
|
|
1327
|
+
args: [i0.forwardRef(() => AerisConfirmDialogFooterTemplate), { isSignal: true }]
|
|
1328
|
+
}],
|
|
1329
|
+
headlessTemplate: [{
|
|
1330
|
+
type: i0.ContentChild,
|
|
1331
|
+
args: [i0.forwardRef(() => AerisConfirmDialogHeadlessTemplate), { isSignal: true }]
|
|
1332
|
+
}],
|
|
1333
|
+
visible: [{
|
|
1334
|
+
type: i0.Input,
|
|
1335
|
+
args: [{
|
|
1336
|
+
isSignal: true,
|
|
1337
|
+
alias: "visible",
|
|
1338
|
+
required: false
|
|
1339
|
+
}]
|
|
1340
|
+
}, {
|
|
1341
|
+
type: i0.Output,
|
|
1342
|
+
args: ["visibleChange"]
|
|
1343
|
+
}],
|
|
1344
|
+
key: [{
|
|
1345
|
+
type: i0.Input,
|
|
1346
|
+
args: [{
|
|
1347
|
+
isSignal: true,
|
|
1348
|
+
alias: "key",
|
|
1349
|
+
required: false
|
|
1350
|
+
}]
|
|
1351
|
+
}],
|
|
1352
|
+
appendTo: [{
|
|
1353
|
+
type: i0.Input,
|
|
1354
|
+
args: [{
|
|
1355
|
+
isSignal: true,
|
|
1356
|
+
alias: "appendTo",
|
|
1357
|
+
required: false
|
|
1358
|
+
}]
|
|
1359
|
+
}],
|
|
1360
|
+
header: [{
|
|
1361
|
+
type: i0.Input,
|
|
1362
|
+
args: [{
|
|
1363
|
+
isSignal: true,
|
|
1364
|
+
alias: "header",
|
|
1365
|
+
required: false
|
|
1366
|
+
}]
|
|
1367
|
+
}],
|
|
1368
|
+
message: [{
|
|
1369
|
+
type: i0.Input,
|
|
1370
|
+
args: [{
|
|
1371
|
+
isSignal: true,
|
|
1372
|
+
alias: "message",
|
|
1373
|
+
required: false
|
|
1374
|
+
}]
|
|
1375
|
+
}],
|
|
1376
|
+
data: [{
|
|
1377
|
+
type: i0.Input,
|
|
1378
|
+
args: [{
|
|
1379
|
+
isSignal: true,
|
|
1380
|
+
alias: "data",
|
|
1381
|
+
required: false
|
|
1382
|
+
}]
|
|
1383
|
+
}],
|
|
1384
|
+
icon: [{
|
|
1385
|
+
type: i0.Input,
|
|
1386
|
+
args: [{
|
|
1387
|
+
isSignal: true,
|
|
1388
|
+
alias: "icon",
|
|
1389
|
+
required: false
|
|
1390
|
+
}]
|
|
1391
|
+
}],
|
|
1392
|
+
severity: [{
|
|
1393
|
+
type: i0.Input,
|
|
1394
|
+
args: [{
|
|
1395
|
+
isSignal: true,
|
|
1396
|
+
alias: "severity",
|
|
1397
|
+
required: false
|
|
1398
|
+
}]
|
|
1399
|
+
}],
|
|
1400
|
+
acceptLabel: [{
|
|
1401
|
+
type: i0.Input,
|
|
1402
|
+
args: [{
|
|
1403
|
+
isSignal: true,
|
|
1404
|
+
alias: "acceptLabel",
|
|
1405
|
+
required: false
|
|
1406
|
+
}]
|
|
1407
|
+
}],
|
|
1408
|
+
rejectLabel: [{
|
|
1409
|
+
type: i0.Input,
|
|
1410
|
+
args: [{
|
|
1411
|
+
isSignal: true,
|
|
1412
|
+
alias: "rejectLabel",
|
|
1413
|
+
required: false
|
|
1414
|
+
}]
|
|
1415
|
+
}],
|
|
1416
|
+
acceptVisible: [{
|
|
1417
|
+
type: i0.Input,
|
|
1418
|
+
args: [{
|
|
1419
|
+
isSignal: true,
|
|
1420
|
+
alias: "acceptVisible",
|
|
1421
|
+
required: false
|
|
1422
|
+
}]
|
|
1423
|
+
}],
|
|
1424
|
+
rejectVisible: [{
|
|
1425
|
+
type: i0.Input,
|
|
1426
|
+
args: [{
|
|
1427
|
+
isSignal: true,
|
|
1428
|
+
alias: "rejectVisible",
|
|
1429
|
+
required: false
|
|
1430
|
+
}]
|
|
1431
|
+
}],
|
|
1432
|
+
acceptDisabled: [{
|
|
1433
|
+
type: i0.Input,
|
|
1434
|
+
args: [{
|
|
1435
|
+
isSignal: true,
|
|
1436
|
+
alias: "acceptDisabled",
|
|
1437
|
+
required: false
|
|
1438
|
+
}]
|
|
1439
|
+
}],
|
|
1440
|
+
rejectDisabled: [{
|
|
1441
|
+
type: i0.Input,
|
|
1442
|
+
args: [{
|
|
1443
|
+
isSignal: true,
|
|
1444
|
+
alias: "rejectDisabled",
|
|
1445
|
+
required: false
|
|
1446
|
+
}]
|
|
1447
|
+
}],
|
|
1448
|
+
acceptAriaLabel: [{
|
|
1449
|
+
type: i0.Input,
|
|
1450
|
+
args: [{
|
|
1451
|
+
isSignal: true,
|
|
1452
|
+
alias: "acceptAriaLabel",
|
|
1453
|
+
required: false
|
|
1454
|
+
}]
|
|
1455
|
+
}],
|
|
1456
|
+
rejectAriaLabel: [{
|
|
1457
|
+
type: i0.Input,
|
|
1458
|
+
args: [{
|
|
1459
|
+
isSignal: true,
|
|
1460
|
+
alias: "rejectAriaLabel",
|
|
1461
|
+
required: false
|
|
1462
|
+
}]
|
|
1463
|
+
}],
|
|
1464
|
+
defaultFocus: [{
|
|
1465
|
+
type: i0.Input,
|
|
1466
|
+
args: [{
|
|
1467
|
+
isSignal: true,
|
|
1468
|
+
alias: "defaultFocus",
|
|
1469
|
+
required: false
|
|
1470
|
+
}]
|
|
1471
|
+
}],
|
|
1472
|
+
modal: [{
|
|
1473
|
+
type: i0.Input,
|
|
1474
|
+
args: [{
|
|
1475
|
+
isSignal: true,
|
|
1476
|
+
alias: "modal",
|
|
1477
|
+
required: false
|
|
1478
|
+
}]
|
|
1479
|
+
}],
|
|
1480
|
+
backdrop: [{
|
|
1481
|
+
type: i0.Input,
|
|
1482
|
+
args: [{
|
|
1483
|
+
isSignal: true,
|
|
1484
|
+
alias: "backdrop",
|
|
1485
|
+
required: false
|
|
1486
|
+
}]
|
|
1487
|
+
}],
|
|
1488
|
+
backdropBlur: [{
|
|
1489
|
+
type: i0.Input,
|
|
1490
|
+
args: [{
|
|
1491
|
+
isSignal: true,
|
|
1492
|
+
alias: "backdropBlur",
|
|
1493
|
+
required: false
|
|
1494
|
+
}]
|
|
1495
|
+
}],
|
|
1496
|
+
backdropBlurAmount: [{
|
|
1497
|
+
type: i0.Input,
|
|
1498
|
+
args: [{
|
|
1499
|
+
isSignal: true,
|
|
1500
|
+
alias: "backdropBlurAmount",
|
|
1501
|
+
required: false
|
|
1502
|
+
}]
|
|
1503
|
+
}],
|
|
1504
|
+
closeOnBackdropClick: [{
|
|
1505
|
+
type: i0.Input,
|
|
1506
|
+
args: [{
|
|
1507
|
+
isSignal: true,
|
|
1508
|
+
alias: "closeOnBackdropClick",
|
|
1509
|
+
required: false
|
|
1510
|
+
}]
|
|
1511
|
+
}],
|
|
1512
|
+
closeOnEscape: [{
|
|
1513
|
+
type: i0.Input,
|
|
1514
|
+
args: [{
|
|
1515
|
+
isSignal: true,
|
|
1516
|
+
alias: "closeOnEscape",
|
|
1517
|
+
required: false
|
|
1518
|
+
}]
|
|
1519
|
+
}],
|
|
1520
|
+
closable: [{
|
|
1521
|
+
type: i0.Input,
|
|
1522
|
+
args: [{
|
|
1523
|
+
isSignal: true,
|
|
1524
|
+
alias: "closable",
|
|
1525
|
+
required: false
|
|
1526
|
+
}]
|
|
1527
|
+
}],
|
|
1528
|
+
blockScroll: [{
|
|
1529
|
+
type: i0.Input,
|
|
1530
|
+
args: [{
|
|
1531
|
+
isSignal: true,
|
|
1532
|
+
alias: "blockScroll",
|
|
1533
|
+
required: false
|
|
1534
|
+
}]
|
|
1535
|
+
}],
|
|
1536
|
+
focusTrap: [{
|
|
1537
|
+
type: i0.Input,
|
|
1538
|
+
args: [{
|
|
1539
|
+
isSignal: true,
|
|
1540
|
+
alias: "focusTrap",
|
|
1541
|
+
required: false
|
|
1542
|
+
}]
|
|
1543
|
+
}],
|
|
1544
|
+
restoreFocus: [{
|
|
1545
|
+
type: i0.Input,
|
|
1546
|
+
args: [{
|
|
1547
|
+
isSignal: true,
|
|
1548
|
+
alias: "restoreFocus",
|
|
1549
|
+
required: false
|
|
1550
|
+
}]
|
|
1551
|
+
}],
|
|
1552
|
+
autoFocus: [{
|
|
1553
|
+
type: i0.Input,
|
|
1554
|
+
args: [{
|
|
1555
|
+
isSignal: true,
|
|
1556
|
+
alias: "autoFocus",
|
|
1557
|
+
required: false
|
|
1558
|
+
}]
|
|
1559
|
+
}],
|
|
1560
|
+
initialFocus: [{
|
|
1561
|
+
type: i0.Input,
|
|
1562
|
+
args: [{
|
|
1563
|
+
isSignal: true,
|
|
1564
|
+
alias: "initialFocus",
|
|
1565
|
+
required: false
|
|
1566
|
+
}]
|
|
1567
|
+
}],
|
|
1568
|
+
position: [{
|
|
1569
|
+
type: i0.Input,
|
|
1570
|
+
args: [{
|
|
1571
|
+
isSignal: true,
|
|
1572
|
+
alias: "position",
|
|
1573
|
+
required: false
|
|
1574
|
+
}]
|
|
1575
|
+
}],
|
|
1576
|
+
size: [{
|
|
1577
|
+
type: i0.Input,
|
|
1578
|
+
args: [{
|
|
1579
|
+
isSignal: true,
|
|
1580
|
+
alias: "size",
|
|
1581
|
+
required: false
|
|
1582
|
+
}]
|
|
1583
|
+
}],
|
|
1584
|
+
width: [{
|
|
1585
|
+
type: i0.Input,
|
|
1586
|
+
args: [{
|
|
1587
|
+
isSignal: true,
|
|
1588
|
+
alias: "width",
|
|
1589
|
+
required: false
|
|
1590
|
+
}]
|
|
1591
|
+
}],
|
|
1592
|
+
maxWidth: [{
|
|
1593
|
+
type: i0.Input,
|
|
1594
|
+
args: [{
|
|
1595
|
+
isSignal: true,
|
|
1596
|
+
alias: "maxWidth",
|
|
1597
|
+
required: false
|
|
1598
|
+
}]
|
|
1599
|
+
}],
|
|
1600
|
+
mobileWidth: [{
|
|
1601
|
+
type: i0.Input,
|
|
1602
|
+
args: [{
|
|
1603
|
+
isSignal: true,
|
|
1604
|
+
alias: "mobileWidth",
|
|
1605
|
+
required: false
|
|
1606
|
+
}]
|
|
1607
|
+
}],
|
|
1608
|
+
closeAriaLabel: [{
|
|
1609
|
+
type: i0.Input,
|
|
1610
|
+
args: [{
|
|
1611
|
+
isSignal: true,
|
|
1612
|
+
alias: "closeAriaLabel",
|
|
1613
|
+
required: false
|
|
1614
|
+
}]
|
|
1615
|
+
}],
|
|
1616
|
+
ariaLabel: [{
|
|
1617
|
+
type: i0.Input,
|
|
1618
|
+
args: [{
|
|
1619
|
+
isSignal: true,
|
|
1620
|
+
alias: "ariaLabel",
|
|
1621
|
+
required: false
|
|
1622
|
+
}]
|
|
1623
|
+
}],
|
|
1624
|
+
ariaLabelledBy: [{
|
|
1625
|
+
type: i0.Input,
|
|
1626
|
+
args: [{
|
|
1627
|
+
isSignal: true,
|
|
1628
|
+
alias: "ariaLabelledBy",
|
|
1629
|
+
required: false
|
|
1630
|
+
}]
|
|
1631
|
+
}],
|
|
1632
|
+
ariaDescribedBy: [{
|
|
1633
|
+
type: i0.Input,
|
|
1634
|
+
args: [{
|
|
1635
|
+
isSignal: true,
|
|
1636
|
+
alias: "ariaDescribedBy",
|
|
1637
|
+
required: false
|
|
1638
|
+
}]
|
|
1639
|
+
}],
|
|
1640
|
+
opened: [{
|
|
1641
|
+
type: i0.Output,
|
|
1642
|
+
args: ["opened"]
|
|
1643
|
+
}],
|
|
1644
|
+
accepted: [{
|
|
1645
|
+
type: i0.Output,
|
|
1646
|
+
args: ["accepted"]
|
|
1647
|
+
}],
|
|
1648
|
+
rejected: [{
|
|
1649
|
+
type: i0.Output,
|
|
1650
|
+
args: ["rejected"]
|
|
1651
|
+
}],
|
|
1652
|
+
closed: [{
|
|
1653
|
+
type: i0.Output,
|
|
1654
|
+
args: ["closed"]
|
|
1655
|
+
}]
|
|
1656
|
+
}
|
|
1657
|
+
});
|
|
813
1658
|
const AerisConfirmDialogModule = [
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
1659
|
+
AerisConfirmDialog,
|
|
1660
|
+
AerisConfirmDialogIconTemplate,
|
|
1661
|
+
AerisConfirmDialogMessageTemplate,
|
|
1662
|
+
AerisConfirmDialogFooterTemplate,
|
|
1663
|
+
AerisConfirmDialogHeadlessTemplate
|
|
819
1664
|
];
|
|
820
|
-
|
|
821
|
-
/**
|
|
822
|
-
* Generated bundle index. Do not edit.
|
|
823
|
-
*/
|
|
824
|
-
|
|
825
1665
|
export { AerisConfirmDialog, AerisConfirmDialogFooterTemplate, AerisConfirmDialogHeadlessTemplate, AerisConfirmDialogIconTemplate, AerisConfirmDialogMessageTemplate, AerisConfirmDialogModule, AerisConfirmDialogRef, AerisConfirmDialogService };
|
|
826
|
-
|
|
1666
|
+
|
|
1667
|
+
//# sourceMappingURL=aeris-ui-core-confirm-dialog.mjs.map
|