@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,132 +1,166 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { AerisDialog } from
|
|
5
|
-
|
|
6
|
-
const
|
|
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
|
-
|
|
1
|
+
import { DOCUMENT, NgComponentOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ApplicationRef, Component, EnvironmentInjector, InjectionToken, Injector, Service, computed, createComponent, inject, input, linkedSignal, signal, viewChild } from "@angular/core";
|
|
4
|
+
import { AerisDialog } from "@aeris-ui/core/dialog";
|
|
5
|
+
const AERIS_DYNAMIC_DIALOG_CONFIG = new InjectionToken("AERIS_DYNAMIC_DIALOG_CONFIG");
|
|
6
|
+
const AERIS_DYNAMIC_DIALOG_DATA = new InjectionToken("AERIS_DYNAMIC_DIALOG_DATA");
|
|
7
|
+
var AerisDynamicDialogEventStream = class {
|
|
8
|
+
listeners = /* @__PURE__ */ new Set();
|
|
9
|
+
completed = false;
|
|
10
|
+
subscribe(next) {
|
|
11
|
+
if (this.completed) return { unsubscribe: () => void 0 };
|
|
12
|
+
this.listeners.add(next);
|
|
13
|
+
return { unsubscribe: () => {
|
|
14
|
+
this.listeners.delete(next);
|
|
15
|
+
} };
|
|
16
|
+
}
|
|
17
|
+
next(event) {
|
|
18
|
+
if (this.completed) return;
|
|
19
|
+
for (const listener of [...this.listeners]) listener(event);
|
|
20
|
+
}
|
|
21
|
+
complete() {
|
|
22
|
+
this.completed = true;
|
|
23
|
+
this.listeners.clear();
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
var AerisDynamicDialogRef = class {
|
|
27
|
+
closedStream = new AerisDynamicDialogEventStream();
|
|
28
|
+
openedStream = new AerisDynamicDialogEventStream();
|
|
29
|
+
controller = null;
|
|
30
|
+
closedOnce = false;
|
|
31
|
+
closed = this.closedStream;
|
|
32
|
+
opened = this.openedStream;
|
|
33
|
+
close(result, originalEvent = null) {
|
|
34
|
+
if (this.closedOnce) return;
|
|
35
|
+
this.controller?.close(result, originalEvent);
|
|
36
|
+
}
|
|
37
|
+
destroy() {
|
|
38
|
+
if (this.closedOnce) return;
|
|
39
|
+
this.closedOnce = true;
|
|
40
|
+
this.controller?.destroy();
|
|
41
|
+
this.closedStream.complete();
|
|
42
|
+
this.openedStream.complete();
|
|
43
|
+
this.controller = null;
|
|
44
|
+
}
|
|
45
|
+
focus(options) {
|
|
46
|
+
this.controller?.focus(options);
|
|
47
|
+
}
|
|
48
|
+
maximize() {
|
|
49
|
+
this.controller?.maximize();
|
|
50
|
+
}
|
|
51
|
+
restore() {
|
|
52
|
+
this.controller?.restore();
|
|
53
|
+
}
|
|
54
|
+
toggleMaximized() {
|
|
55
|
+
this.controller?.toggleMaximized();
|
|
56
|
+
}
|
|
57
|
+
attach(controller) {
|
|
58
|
+
this.controller = controller;
|
|
59
|
+
}
|
|
60
|
+
notifyOpened(event) {
|
|
61
|
+
if (this.closedOnce) return;
|
|
62
|
+
this.openedStream.next(event);
|
|
63
|
+
}
|
|
64
|
+
notifyClosed(event) {
|
|
65
|
+
if (this.closedOnce) return;
|
|
66
|
+
this.closedOnce = true;
|
|
67
|
+
this.closedStream.next(event);
|
|
68
|
+
this.closedStream.complete();
|
|
69
|
+
this.openedStream.complete();
|
|
70
|
+
this.controller = null;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
var AerisDynamicDialogHost = class AerisDynamicDialogHost {
|
|
74
|
+
componentType = input.required(...ngDevMode ? [{ debugName: "componentType" }] : /* istanbul ignore next */ []);
|
|
75
|
+
contentInjector = input.required(...ngDevMode ? [{ debugName: "contentInjector" }] : /* istanbul ignore next */ []);
|
|
76
|
+
config = input.required(...ngDevMode ? [{ debugName: "config" }] : /* istanbul ignore next */ []);
|
|
77
|
+
dialogRef = input.required(...ngDevMode ? [{ debugName: "dialogRef" }] : /* istanbul ignore next */ []);
|
|
78
|
+
dialog = viewChild("dialog", ...ngDevMode ? [{ debugName: "dialog" }] : /* istanbul ignore next */ []);
|
|
79
|
+
visible = signal(true, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
80
|
+
settings = computed(() => this.config(), ...ngDevMode ? [{ debugName: "settings" }] : /* istanbul ignore next */ []);
|
|
81
|
+
maximized = linkedSignal(() => this.settings().maximized, ...ngDevMode ? [{ debugName: "maximized" }] : /* istanbul ignore next */ []);
|
|
82
|
+
closeResult;
|
|
83
|
+
closeWithResult(result, originalEvent) {
|
|
84
|
+
this.closeResult = result;
|
|
85
|
+
this.dialog()?.hide(originalEvent, "api");
|
|
86
|
+
}
|
|
87
|
+
focus(options) {
|
|
88
|
+
this.dialog()?.focus(options);
|
|
89
|
+
}
|
|
90
|
+
maximize() {
|
|
91
|
+
this.dialog()?.maximize();
|
|
92
|
+
}
|
|
93
|
+
restore() {
|
|
94
|
+
this.dialog()?.restore();
|
|
95
|
+
}
|
|
96
|
+
toggleMaximized() {
|
|
97
|
+
this.dialog()?.toggleMaximized();
|
|
98
|
+
}
|
|
99
|
+
handleOpened(event) {
|
|
100
|
+
queueMicrotask(() => this.dialogRef().notifyOpened({ originalEvent: event.originalEvent }));
|
|
101
|
+
}
|
|
102
|
+
handleHidden(event) {
|
|
103
|
+
this.visible.set(false);
|
|
104
|
+
this.dialogRef().notifyClosed({
|
|
105
|
+
originalEvent: event.originalEvent,
|
|
106
|
+
reason: event.reason,
|
|
107
|
+
result: this.closeResult
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
111
|
+
minVersion: "12.0.0",
|
|
112
|
+
version: "22.2.1",
|
|
113
|
+
ngImport: i0,
|
|
114
|
+
type: AerisDynamicDialogHost,
|
|
115
|
+
deps: [],
|
|
116
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
117
|
+
});
|
|
118
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
119
|
+
minVersion: "17.2.0",
|
|
120
|
+
version: "22.2.1",
|
|
121
|
+
type: AerisDynamicDialogHost,
|
|
122
|
+
isStandalone: true,
|
|
123
|
+
selector: "aeris-dynamic-dialog-host",
|
|
124
|
+
inputs: {
|
|
125
|
+
componentType: {
|
|
126
|
+
classPropertyName: "componentType",
|
|
127
|
+
publicName: "componentType",
|
|
128
|
+
isSignal: true,
|
|
129
|
+
isRequired: true,
|
|
130
|
+
transformFunction: null
|
|
131
|
+
},
|
|
132
|
+
contentInjector: {
|
|
133
|
+
classPropertyName: "contentInjector",
|
|
134
|
+
publicName: "contentInjector",
|
|
135
|
+
isSignal: true,
|
|
136
|
+
isRequired: true,
|
|
137
|
+
transformFunction: null
|
|
138
|
+
},
|
|
139
|
+
config: {
|
|
140
|
+
classPropertyName: "config",
|
|
141
|
+
publicName: "config",
|
|
142
|
+
isSignal: true,
|
|
143
|
+
isRequired: true,
|
|
144
|
+
transformFunction: null
|
|
145
|
+
},
|
|
146
|
+
dialogRef: {
|
|
147
|
+
classPropertyName: "dialogRef",
|
|
148
|
+
publicName: "dialogRef",
|
|
149
|
+
isSignal: true,
|
|
150
|
+
isRequired: true,
|
|
151
|
+
transformFunction: null
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
host: { classAttribute: "aeris-dynamic-dialog-host" },
|
|
155
|
+
viewQueries: [{
|
|
156
|
+
propertyName: "dialog",
|
|
157
|
+
first: true,
|
|
158
|
+
predicate: ["dialog"],
|
|
159
|
+
descendants: true,
|
|
160
|
+
isSignal: true
|
|
161
|
+
}],
|
|
162
|
+
ngImport: i0,
|
|
163
|
+
template: `
|
|
130
164
|
<aeris-dialog
|
|
131
165
|
#dialog
|
|
132
166
|
[appendTo]="settings().appendTo"
|
|
@@ -169,14 +203,80 @@ class AerisDynamicDialogHost {
|
|
|
169
203
|
[ngComponentOutletInjector]="contentInjector()"
|
|
170
204
|
/>
|
|
171
205
|
</aeris-dialog>
|
|
172
|
-
`,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
206
|
+
`,
|
|
207
|
+
isInline: true,
|
|
208
|
+
dependencies: [{
|
|
209
|
+
kind: "component",
|
|
210
|
+
type: AerisDialog,
|
|
211
|
+
selector: "aeris-dialog",
|
|
212
|
+
inputs: [
|
|
213
|
+
"visible",
|
|
214
|
+
"maximized",
|
|
215
|
+
"header",
|
|
216
|
+
"appendTo",
|
|
217
|
+
"role",
|
|
218
|
+
"modal",
|
|
219
|
+
"backdrop",
|
|
220
|
+
"backdropBlur",
|
|
221
|
+
"backdropBlurAmount",
|
|
222
|
+
"closeOnBackdropClick",
|
|
223
|
+
"closeOnEscape",
|
|
224
|
+
"closable",
|
|
225
|
+
"maximizable",
|
|
226
|
+
"draggable",
|
|
227
|
+
"resizable",
|
|
228
|
+
"blockScroll",
|
|
229
|
+
"focusTrap",
|
|
230
|
+
"restoreFocus",
|
|
231
|
+
"autoFocus",
|
|
232
|
+
"initialFocus",
|
|
233
|
+
"position",
|
|
234
|
+
"size",
|
|
235
|
+
"width",
|
|
236
|
+
"minWidth",
|
|
237
|
+
"maxWidth",
|
|
238
|
+
"height",
|
|
239
|
+
"maxHeight",
|
|
240
|
+
"mobileWidth",
|
|
241
|
+
"footerLayout",
|
|
242
|
+
"closeAriaLabel",
|
|
243
|
+
"ariaLabel",
|
|
244
|
+
"ariaLabelledBy",
|
|
245
|
+
"ariaDescribedBy"
|
|
246
|
+
],
|
|
247
|
+
outputs: [
|
|
248
|
+
"visibleChange",
|
|
249
|
+
"maximizedChange",
|
|
250
|
+
"opened",
|
|
251
|
+
"closed"
|
|
252
|
+
]
|
|
253
|
+
}, {
|
|
254
|
+
kind: "directive",
|
|
255
|
+
type: NgComponentOutlet,
|
|
256
|
+
selector: "[ngComponentOutlet]",
|
|
257
|
+
inputs: [
|
|
258
|
+
"ngComponentOutlet",
|
|
259
|
+
"ngComponentOutletInputs",
|
|
260
|
+
"ngComponentOutletInjector",
|
|
261
|
+
"ngComponentOutletEnvironmentInjector",
|
|
262
|
+
"ngComponentOutletContent",
|
|
263
|
+
"ngComponentOutletNgModule"
|
|
264
|
+
],
|
|
265
|
+
exportAs: ["ngComponentOutlet"]
|
|
266
|
+
}]
|
|
267
|
+
});
|
|
268
|
+
};
|
|
269
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
270
|
+
minVersion: "12.0.0",
|
|
271
|
+
version: "22.2.1",
|
|
272
|
+
ngImport: i0,
|
|
273
|
+
type: AerisDynamicDialogHost,
|
|
274
|
+
decorators: [{
|
|
275
|
+
type: Component,
|
|
276
|
+
args: [{
|
|
277
|
+
selector: "aeris-dynamic-dialog-host",
|
|
278
|
+
imports: [AerisDialog, NgComponentOutlet],
|
|
279
|
+
template: `
|
|
180
280
|
<aeris-dialog
|
|
181
281
|
#dialog
|
|
182
282
|
[appendTo]="settings().appendTo"
|
|
@@ -220,117 +320,170 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
220
320
|
/>
|
|
221
321
|
</aeris-dialog>
|
|
222
322
|
`,
|
|
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
|
-
|
|
323
|
+
host: { class: "aeris-dynamic-dialog-host" }
|
|
324
|
+
}]
|
|
325
|
+
}],
|
|
326
|
+
propDecorators: {
|
|
327
|
+
componentType: [{
|
|
328
|
+
type: i0.Input,
|
|
329
|
+
args: [{
|
|
330
|
+
isSignal: true,
|
|
331
|
+
alias: "componentType",
|
|
332
|
+
required: true
|
|
333
|
+
}]
|
|
334
|
+
}],
|
|
335
|
+
contentInjector: [{
|
|
336
|
+
type: i0.Input,
|
|
337
|
+
args: [{
|
|
338
|
+
isSignal: true,
|
|
339
|
+
alias: "contentInjector",
|
|
340
|
+
required: true
|
|
341
|
+
}]
|
|
342
|
+
}],
|
|
343
|
+
config: [{
|
|
344
|
+
type: i0.Input,
|
|
345
|
+
args: [{
|
|
346
|
+
isSignal: true,
|
|
347
|
+
alias: "config",
|
|
348
|
+
required: true
|
|
349
|
+
}]
|
|
350
|
+
}],
|
|
351
|
+
dialogRef: [{
|
|
352
|
+
type: i0.Input,
|
|
353
|
+
args: [{
|
|
354
|
+
isSignal: true,
|
|
355
|
+
alias: "dialogRef",
|
|
356
|
+
required: true
|
|
357
|
+
}]
|
|
358
|
+
}],
|
|
359
|
+
dialog: [{
|
|
360
|
+
type: i0.ViewChild,
|
|
361
|
+
args: ["dialog", { isSignal: true }]
|
|
362
|
+
}]
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
var AerisDynamicDialogService = class AerisDynamicDialogService {
|
|
366
|
+
appRef = inject(ApplicationRef);
|
|
367
|
+
document = inject(DOCUMENT);
|
|
368
|
+
environmentInjector = inject(EnvironmentInjector);
|
|
369
|
+
activeRefs = /* @__PURE__ */ new Set();
|
|
370
|
+
open(componentType, config = {}) {
|
|
371
|
+
const resolvedConfig = this.resolveConfig(config);
|
|
372
|
+
const ref = new AerisDynamicDialogRef();
|
|
373
|
+
const contentInjector = Injector.create({
|
|
374
|
+
parent: this.environmentInjector,
|
|
375
|
+
providers: [
|
|
376
|
+
{
|
|
377
|
+
provide: AerisDynamicDialogRef,
|
|
378
|
+
useValue: ref
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
provide: AERIS_DYNAMIC_DIALOG_CONFIG,
|
|
382
|
+
useValue: resolvedConfig
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
provide: AERIS_DYNAMIC_DIALOG_DATA,
|
|
386
|
+
useValue: resolvedConfig.data
|
|
387
|
+
}
|
|
388
|
+
]
|
|
389
|
+
});
|
|
390
|
+
const hostRef = createComponent(AerisDynamicDialogHost, { environmentInjector: this.environmentInjector });
|
|
391
|
+
const cleanup = () => {
|
|
392
|
+
if (!this.activeRefs.delete(ref)) return;
|
|
393
|
+
this.appRef.detachView(hostRef.hostView);
|
|
394
|
+
hostRef.destroy();
|
|
395
|
+
};
|
|
396
|
+
ref.attach({
|
|
397
|
+
close: (result, originalEvent) => {
|
|
398
|
+
hostRef.instance.closeWithResult(result, originalEvent);
|
|
399
|
+
hostRef.changeDetectorRef.detectChanges();
|
|
400
|
+
},
|
|
401
|
+
destroy: cleanup,
|
|
402
|
+
focus: (options) => hostRef.instance.focus(options),
|
|
403
|
+
maximize: () => hostRef.instance.maximize(),
|
|
404
|
+
restore: () => hostRef.instance.restore(),
|
|
405
|
+
toggleMaximized: () => hostRef.instance.toggleMaximized()
|
|
406
|
+
});
|
|
407
|
+
ref.closed.subscribe(() => queueMicrotask(cleanup));
|
|
408
|
+
this.activeRefs.add(ref);
|
|
409
|
+
hostRef.setInput("componentType", componentType);
|
|
410
|
+
hostRef.setInput("contentInjector", contentInjector);
|
|
411
|
+
hostRef.setInput("config", resolvedConfig);
|
|
412
|
+
hostRef.setInput("dialogRef", ref);
|
|
413
|
+
this.appRef.attachView(hostRef.hostView);
|
|
414
|
+
this.document.body.appendChild(this.rootNode(hostRef));
|
|
415
|
+
hostRef.changeDetectorRef.detectChanges();
|
|
416
|
+
return ref;
|
|
417
|
+
}
|
|
418
|
+
closeAll() {
|
|
419
|
+
for (const ref of [...this.activeRefs].reverse()) ref.close();
|
|
420
|
+
}
|
|
421
|
+
destroyAll() {
|
|
422
|
+
for (const ref of [...this.activeRefs].reverse()) ref.destroy();
|
|
423
|
+
}
|
|
424
|
+
resolveConfig(config) {
|
|
425
|
+
return {
|
|
426
|
+
header: config.header ?? "",
|
|
427
|
+
appendTo: config.appendTo,
|
|
428
|
+
data: config.data,
|
|
429
|
+
inputValues: config.inputValues ?? {},
|
|
430
|
+
modal: config.modal ?? true,
|
|
431
|
+
backdrop: config.backdrop ?? true,
|
|
432
|
+
backdropBlur: config.backdropBlur ?? true,
|
|
433
|
+
backdropBlurAmount: config.backdropBlurAmount ?? "",
|
|
434
|
+
closeOnBackdropClick: config.closeOnBackdropClick ?? false,
|
|
435
|
+
closeOnEscape: config.closeOnEscape ?? true,
|
|
436
|
+
closable: config.closable ?? true,
|
|
437
|
+
maximizable: config.maximizable ?? false,
|
|
438
|
+
maximized: config.maximized ?? false,
|
|
439
|
+
draggable: config.draggable ?? false,
|
|
440
|
+
resizable: config.resizable ?? false,
|
|
441
|
+
blockScroll: config.blockScroll ?? true,
|
|
442
|
+
focusTrap: config.focusTrap ?? true,
|
|
443
|
+
restoreFocus: config.restoreFocus ?? true,
|
|
444
|
+
autoFocus: config.autoFocus ?? true,
|
|
445
|
+
initialFocus: config.initialFocus ?? "",
|
|
446
|
+
position: config.position ?? "center",
|
|
447
|
+
size: config.size ?? "md",
|
|
448
|
+
width: config.width ?? "",
|
|
449
|
+
minWidth: config.minWidth ?? "",
|
|
450
|
+
maxWidth: config.maxWidth ?? "",
|
|
451
|
+
height: config.height ?? "",
|
|
452
|
+
maxHeight: config.maxHeight ?? "",
|
|
453
|
+
mobileWidth: config.mobileWidth ?? "",
|
|
454
|
+
closeAriaLabel: config.closeAriaLabel ?? "Close dialog",
|
|
455
|
+
ariaLabel: config.ariaLabel ?? "",
|
|
456
|
+
ariaLabelledBy: config.ariaLabelledBy ?? "",
|
|
457
|
+
ariaDescribedBy: config.ariaDescribedBy ?? ""
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
rootNode(hostRef) {
|
|
461
|
+
const [node] = hostRef.hostView.rootNodes;
|
|
462
|
+
return node instanceof Node ? node : this.document.createTextNode("");
|
|
463
|
+
}
|
|
464
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
465
|
+
minVersion: "12.0.0",
|
|
466
|
+
version: "22.2.1",
|
|
467
|
+
ngImport: i0,
|
|
468
|
+
type: AerisDynamicDialogService,
|
|
469
|
+
deps: [],
|
|
470
|
+
target: i0.ɵɵFactoryTarget.Service
|
|
471
|
+
});
|
|
472
|
+
static ɵprov = i0.ɵɵngDeclareService({
|
|
473
|
+
minVersion: "22.0.0",
|
|
474
|
+
version: "22.2.1",
|
|
475
|
+
ngImport: i0,
|
|
476
|
+
type: AerisDynamicDialogService
|
|
477
|
+
});
|
|
478
|
+
};
|
|
479
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
480
|
+
minVersion: "12.0.0",
|
|
481
|
+
version: "22.2.1",
|
|
482
|
+
ngImport: i0,
|
|
483
|
+
type: AerisDynamicDialogService,
|
|
484
|
+
decorators: [{ type: Service }]
|
|
485
|
+
});
|
|
329
486
|
const AerisDynamicDialogModule = [AerisDynamicDialogHost];
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* Generated bundle index. Do not edit.
|
|
333
|
-
*/
|
|
334
|
-
|
|
335
487
|
export { AERIS_DYNAMIC_DIALOG_CONFIG, AERIS_DYNAMIC_DIALOG_DATA, AerisDynamicDialogHost, AerisDynamicDialogModule, AerisDynamicDialogRef, AerisDynamicDialogService };
|
|
336
|
-
|
|
488
|
+
|
|
489
|
+
//# sourceMappingURL=aeris-ui-core-dynamic-dialog.mjs.map
|