@aeris-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.10
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 +200 -191
- 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 +1228 -446
- 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 +209 -101
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +581 -189
- 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 +741 -139
- 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 +773 -369
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +1171 -521
- 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 +440 -140
- 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-code-block.mjs +637 -0
- package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-color-picker.mjs +1340 -700
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-compare.mjs +823 -318
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1404 -555
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1471 -740
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +918 -443
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker.mjs +1942 -1123
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +1079 -346
- 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 +1015 -322
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +410 -254
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +967 -587
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +1379 -522
- 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 +688 -0
- package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-galleria.mjs +2446 -1117
- 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 -98
- 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 -107
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-mask.mjs +658 -255
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +926 -291
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-otp.mjs +678 -264
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-text.mjs +625 -158
- 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 +613 -382
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +1062 -472
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +994 -393
- 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 +623 -230
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +1598 -561
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-order-list.mjs +592 -220
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +485 -199
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +428 -123
- 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 +925 -249
- 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 +912 -375
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +549 -176
- 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 +394 -124
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-rating.mjs +506 -231
- 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 +226 -63
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-select.mjs +1845 -648
- 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 +884 -430
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-speed-dial.mjs +861 -337
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +955 -266
- 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 +2034 -869
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +789 -279
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +856 -219
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1284 -1399
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +132 -144
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +909 -441
- 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 +1076 -384
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +398 -132
- 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 +625 -330
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-select.mjs +1453 -621
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +2019 -940
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +1107 -658
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +985 -316
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +20 -8
- package/schematics/ng-add/schema.json +1 -1
- package/schematics/runtime/schematics/ng-add/options.js +4 -4
- package/schematics/runtime/schematics/ng-add/options.js.map +1 -1
- package/schematics/runtime/schematics/ng-add/workspace.js +1 -1
- package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-contrast.js +6 -17
- package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-foundation.js +10 -4
- package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js +28 -5
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-generator.js +2 -2
- package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js +22 -8
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js +12 -4
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js +7 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme.js +49 -33
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
- package/styles/_fallback-colors.scss +10 -0
- package/styles/_mobile.scss +16 -0
- package/styles/_tokens.scss +5 -5
- package/styles/aeris.css +412 -125
- package/styles/controls.css +61 -29
- package/tools/aeris-theme.mjs +2 -2
- package/tools/aeris-theme.schema.json +5 -2
- package/types/aeris-ui-core-accordion.d.ts +167 -93
- package/types/aeris-ui-core-animate-on-scroll.d.ts +72 -31
- package/types/aeris-ui-core-auto-complete.d.ts +327 -140
- 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 -46
- package/types/aeris-ui-core-block-ui.d.ts +47 -27
- package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
- package/types/aeris-ui-core-button-group.d.ts +37 -16
- package/types/aeris-ui-core-button.d.ts +226 -67
- package/types/aeris-ui-core-card.d.ts +74 -37
- package/types/aeris-ui-core-carousel.d.ts +201 -117
- package/types/aeris-ui-core-cascade-select.d.ts +257 -123
- package/types/aeris-ui-core-chart.d.ts +134 -84
- package/types/aeris-ui-core-checkbox.d.ts +139 -54
- 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-code-block.d.ts +188 -0
- package/types/aeris-ui-core-color-picker.d.ts +348 -143
- package/types/aeris-ui-core-compare.d.ts +224 -102
- package/types/aeris-ui-core-confirm-dialog.d.ts +442 -245
- package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
- package/types/aeris-ui-core-context-menu.d.ts +264 -146
- package/types/aeris-ui-core-date-picker.d.ts +489 -217
- package/types/aeris-ui-core-dialog.d.ts +288 -117
- package/types/aeris-ui-core-divider.d.ts +58 -20
- package/types/aeris-ui-core-drawer.d.ts +273 -112
- package/types/aeris-ui-core-dynamic-dialog.d.ts +158 -137
- package/types/aeris-ui-core-editor.d.ts +250 -123
- package/types/aeris-ui-core-file-upload.d.ts +367 -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 +163 -0
- package/types/aeris-ui-core-galleria.d.ts +588 -256
- package/types/aeris-ui-core-glass.d.ts +24 -11
- package/types/aeris-ui-core-icon-field.d.ts +94 -32
- package/types/aeris-ui-core-inplace.d.ts +123 -62
- package/types/aeris-ui-core-input-group.d.ts +84 -33
- package/types/aeris-ui-core-input-mask.d.ts +194 -69
- package/types/aeris-ui-core-input-number.d.ts +272 -87
- package/types/aeris-ui-core-input-otp.d.ts +191 -81
- package/types/aeris-ui-core-input-text.d.ts +185 -60
- package/types/aeris-ui-core-key-filter.d.ts +53 -39
- package/types/aeris-ui-core-mega-menu.d.ts +175 -121
- package/types/aeris-ui-core-menu.d.ts +277 -168
- package/types/aeris-ui-core-menubar.d.ts +273 -135
- package/types/aeris-ui-core-message.d.ts +132 -60
- package/types/aeris-ui-core-meter-group.d.ts +163 -90
- package/types/aeris-ui-core-multi-select.d.ts +439 -180
- package/types/aeris-ui-core-order-list.d.ts +144 -66
- package/types/aeris-ui-core-organization-chart.d.ts +133 -77
- package/types/aeris-ui-core-paginator.d.ts +93 -38
- package/types/aeris-ui-core-panel.d.ts +149 -78
- package/types/aeris-ui-core-password.d.ts +258 -102
- package/types/aeris-ui-core-pick-list.d.ts +374 -179
- package/types/aeris-ui-core-popover.d.ts +219 -105
- package/types/aeris-ui-core-progress-bar.d.ts +157 -73
- package/types/aeris-ui-core-progress-spinner.d.ts +110 -48
- package/types/aeris-ui-core-radio-button.d.ts +124 -50
- 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 +66 -29
- package/types/aeris-ui-core-select.d.ts +475 -217
- package/types/aeris-ui-core-skeleton.d.ts +39 -17
- package/types/aeris-ui-core-slider.d.ts +270 -115
- package/types/aeris-ui-core-speed-dial.d.ts +241 -111
- package/types/aeris-ui-core-split-button.d.ts +267 -113
- package/types/aeris-ui-core-splitter.d.ts +225 -106
- package/types/aeris-ui-core-stepper.d.ts +184 -91
- package/types/aeris-ui-core-style-class.d.ts +141 -71
- package/types/aeris-ui-core-table.d.ts +596 -304
- package/types/aeris-ui-core-tabs.d.ts +181 -76
- package/types/aeris-ui-core-textarea.d.ts +261 -78
- package/types/aeris-ui-core-theme-builder.d.ts +472 -450
- package/types/aeris-ui-core-theming.d.ts +42 -45
- package/types/aeris-ui-core-tiered-menu.d.ts +251 -142
- package/types/aeris-ui-core-timeline.d.ts +109 -71
- package/types/aeris-ui-core-toast.d.ts +225 -115
- package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
- package/types/aeris-ui-core-toolbar.d.ts +98 -41
- package/types/aeris-ui-core-tooltip.d.ts +157 -88
- package/types/aeris-ui-core-tree-select.d.ts +364 -171
- package/types/aeris-ui-core-tree-table.d.ts +566 -286
- package/types/aeris-ui-core-tree.d.ts +270 -165
- package/types/aeris-ui-core.d.ts +197 -72
|
@@ -1,721 +1,1063 @@
|
|
|
1
|
-
import { DOCUMENT, NgTemplateOutlet } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { AerisButtonDirective } from
|
|
5
|
-
import { aerisInternalCreateFrameScheduler,
|
|
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
|
-
|
|
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 { AerisButtonDirective } from "@aeris-ui/core/button";
|
|
5
|
+
import { aerisInternalCreateFrameScheduler, aerisInternalFocusInitialElement, aerisInternalPositionAnchoredOverlay, aerisInternalTrapTabFocus, ɵAerisAppendTo } from "@aeris-ui/core";
|
|
6
|
+
var AerisConfirmPopupEventStream = 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 AerisConfirmPopupIconTemplate = class AerisConfirmPopupIconTemplate {
|
|
26
|
+
template = inject(TemplateRef);
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
28
|
+
minVersion: "12.0.0",
|
|
29
|
+
version: "22.2.2",
|
|
30
|
+
ngImport: i0,
|
|
31
|
+
type: AerisConfirmPopupIconTemplate,
|
|
32
|
+
deps: [],
|
|
33
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
34
|
+
});
|
|
35
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
36
|
+
minVersion: "14.0.0",
|
|
37
|
+
version: "22.2.2",
|
|
38
|
+
type: AerisConfirmPopupIconTemplate,
|
|
39
|
+
isStandalone: true,
|
|
40
|
+
selector: "ng-template[aerisConfirmPopupIcon]",
|
|
41
|
+
ngImport: i0
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
45
|
+
minVersion: "12.0.0",
|
|
46
|
+
version: "22.2.2",
|
|
47
|
+
ngImport: i0,
|
|
48
|
+
type: AerisConfirmPopupIconTemplate,
|
|
49
|
+
decorators: [{
|
|
50
|
+
type: Directive,
|
|
51
|
+
args: [{ selector: "ng-template[aerisConfirmPopupIcon]" }]
|
|
52
|
+
}]
|
|
53
|
+
});
|
|
54
|
+
var AerisConfirmPopupMessageTemplate = class AerisConfirmPopupMessageTemplate {
|
|
55
|
+
template = inject(TemplateRef);
|
|
56
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
57
|
+
minVersion: "12.0.0",
|
|
58
|
+
version: "22.2.2",
|
|
59
|
+
ngImport: i0,
|
|
60
|
+
type: AerisConfirmPopupMessageTemplate,
|
|
61
|
+
deps: [],
|
|
62
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
63
|
+
});
|
|
64
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
65
|
+
minVersion: "14.0.0",
|
|
66
|
+
version: "22.2.2",
|
|
67
|
+
type: AerisConfirmPopupMessageTemplate,
|
|
68
|
+
isStandalone: true,
|
|
69
|
+
selector: "ng-template[aerisConfirmPopupMessage]",
|
|
70
|
+
ngImport: i0
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
74
|
+
minVersion: "12.0.0",
|
|
75
|
+
version: "22.2.2",
|
|
76
|
+
ngImport: i0,
|
|
77
|
+
type: AerisConfirmPopupMessageTemplate,
|
|
78
|
+
decorators: [{
|
|
79
|
+
type: Directive,
|
|
80
|
+
args: [{ selector: "ng-template[aerisConfirmPopupMessage]" }]
|
|
81
|
+
}]
|
|
82
|
+
});
|
|
83
|
+
var AerisConfirmPopupFooterTemplate = class AerisConfirmPopupFooterTemplate {
|
|
84
|
+
template = inject(TemplateRef);
|
|
85
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
86
|
+
minVersion: "12.0.0",
|
|
87
|
+
version: "22.2.2",
|
|
88
|
+
ngImport: i0,
|
|
89
|
+
type: AerisConfirmPopupFooterTemplate,
|
|
90
|
+
deps: [],
|
|
91
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
92
|
+
});
|
|
93
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
94
|
+
minVersion: "14.0.0",
|
|
95
|
+
version: "22.2.2",
|
|
96
|
+
type: AerisConfirmPopupFooterTemplate,
|
|
97
|
+
isStandalone: true,
|
|
98
|
+
selector: "ng-template[aerisConfirmPopupFooter]",
|
|
99
|
+
ngImport: i0
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
103
|
+
minVersion: "12.0.0",
|
|
104
|
+
version: "22.2.2",
|
|
105
|
+
ngImport: i0,
|
|
106
|
+
type: AerisConfirmPopupFooterTemplate,
|
|
107
|
+
decorators: [{
|
|
108
|
+
type: Directive,
|
|
109
|
+
args: [{ selector: "ng-template[aerisConfirmPopupFooter]" }]
|
|
110
|
+
}]
|
|
111
|
+
});
|
|
112
|
+
var AerisConfirmPopupHeadlessTemplate = class AerisConfirmPopupHeadlessTemplate {
|
|
113
|
+
template = inject(TemplateRef);
|
|
114
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
115
|
+
minVersion: "12.0.0",
|
|
116
|
+
version: "22.2.2",
|
|
117
|
+
ngImport: i0,
|
|
118
|
+
type: AerisConfirmPopupHeadlessTemplate,
|
|
119
|
+
deps: [],
|
|
120
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
121
|
+
});
|
|
122
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
123
|
+
minVersion: "14.0.0",
|
|
124
|
+
version: "22.2.2",
|
|
125
|
+
type: AerisConfirmPopupHeadlessTemplate,
|
|
126
|
+
isStandalone: true,
|
|
127
|
+
selector: "ng-template[aerisConfirmPopupHeadless]",
|
|
128
|
+
ngImport: i0
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
132
|
+
minVersion: "12.0.0",
|
|
133
|
+
version: "22.2.2",
|
|
134
|
+
ngImport: i0,
|
|
135
|
+
type: AerisConfirmPopupHeadlessTemplate,
|
|
136
|
+
decorators: [{
|
|
137
|
+
type: Directive,
|
|
138
|
+
args: [{ selector: "ng-template[aerisConfirmPopupHeadless]" }]
|
|
139
|
+
}]
|
|
140
|
+
});
|
|
141
|
+
var AerisConfirmPopupRef = class {
|
|
142
|
+
acceptedStream = new AerisConfirmPopupEventStream();
|
|
143
|
+
rejectedStream = new AerisConfirmPopupEventStream();
|
|
144
|
+
closedStream = new AerisConfirmPopupEventStream();
|
|
145
|
+
openedStream = new AerisConfirmPopupEventStream();
|
|
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
|
+
reposition() {
|
|
168
|
+
this.controller?.reposition();
|
|
169
|
+
}
|
|
170
|
+
attach(controller) {
|
|
171
|
+
this.controller = controller;
|
|
172
|
+
}
|
|
173
|
+
notifyOpened(event) {
|
|
174
|
+
if (this.closedOnce) return;
|
|
175
|
+
this.openedStream.next(event);
|
|
176
|
+
}
|
|
177
|
+
notifyAccepted(event) {
|
|
178
|
+
if (this.closedOnce) return;
|
|
179
|
+
this.acceptedStream.next(event);
|
|
180
|
+
}
|
|
181
|
+
notifyRejected(event) {
|
|
182
|
+
if (this.closedOnce) return;
|
|
183
|
+
this.rejectedStream.next(event);
|
|
184
|
+
}
|
|
185
|
+
notifyClosed(event) {
|
|
186
|
+
if (this.closedOnce) return;
|
|
187
|
+
this.closedOnce = true;
|
|
188
|
+
this.closedStream.next(event);
|
|
189
|
+
this.acceptedStream.complete();
|
|
190
|
+
this.rejectedStream.complete();
|
|
191
|
+
this.closedStream.complete();
|
|
192
|
+
this.openedStream.complete();
|
|
193
|
+
this.controller = null;
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
var AerisConfirmPopupService = class AerisConfirmPopupService {
|
|
197
|
+
appRef = inject(ApplicationRef);
|
|
198
|
+
document = inject(DOCUMENT);
|
|
199
|
+
environmentInjector = inject(EnvironmentInjector);
|
|
200
|
+
requestState = signal(null, ...ngDevMode ? [{ debugName: "requestState" }] : /* istanbul ignore next */ []);
|
|
201
|
+
closeState = signal(0, ...ngDevMode ? [{ debugName: "closeState" }] : /* istanbul ignore next */ []);
|
|
202
|
+
activeRefs = /* @__PURE__ */ new Set();
|
|
203
|
+
dynamicHosts = /* @__PURE__ */ new Map();
|
|
204
|
+
nextId = 0;
|
|
205
|
+
request = this.requestState.asReadonly();
|
|
206
|
+
closeSignal = this.closeState.asReadonly();
|
|
207
|
+
confirm(config) {
|
|
208
|
+
const ref = new AerisConfirmPopupRef();
|
|
209
|
+
const resolvedConfig = this.resolveConfig(config);
|
|
210
|
+
if (!resolvedConfig.key) {
|
|
211
|
+
this.openDynamicHost(resolvedConfig, ref);
|
|
212
|
+
return ref;
|
|
213
|
+
}
|
|
214
|
+
const request = {
|
|
215
|
+
id: ++this.nextId,
|
|
216
|
+
config: resolvedConfig,
|
|
217
|
+
ref
|
|
218
|
+
};
|
|
219
|
+
this.activeRefs.add(ref);
|
|
220
|
+
ref.closed.subscribe(() => this.activeRefs.delete(ref));
|
|
221
|
+
this.requestState.set(request);
|
|
222
|
+
return ref;
|
|
223
|
+
}
|
|
224
|
+
closeAll() {
|
|
225
|
+
for (const ref of [...this.activeRefs]) ref.close();
|
|
226
|
+
this.closeState.update((value) => value + 1);
|
|
227
|
+
}
|
|
228
|
+
openDynamicHost(config, ref) {
|
|
229
|
+
const hostRef = createComponent(AerisConfirmPopup, { environmentInjector: this.environmentInjector });
|
|
230
|
+
const cleanup = () => {
|
|
231
|
+
if (!this.activeRefs.delete(ref)) return;
|
|
232
|
+
this.dynamicHosts.delete(ref);
|
|
233
|
+
this.appRef.detachView(hostRef.hostView);
|
|
234
|
+
hostRef.destroy();
|
|
235
|
+
};
|
|
236
|
+
this.activeRefs.add(ref);
|
|
237
|
+
this.dynamicHosts.set(ref, hostRef);
|
|
238
|
+
ref.closed.subscribe(() => queueMicrotask(cleanup));
|
|
239
|
+
this.appRef.attachView(hostRef.hostView);
|
|
240
|
+
this.document.body.appendChild(this.rootNode(hostRef));
|
|
241
|
+
hostRef.changeDetectorRef.detectChanges();
|
|
242
|
+
hostRef.instance.openWithConfig(config, ref);
|
|
243
|
+
ref.attach({
|
|
244
|
+
accept: (originalEvent) => {
|
|
245
|
+
hostRef.instance.accept(originalEvent);
|
|
246
|
+
hostRef.changeDetectorRef.detectChanges();
|
|
247
|
+
},
|
|
248
|
+
reject: (originalEvent) => {
|
|
249
|
+
hostRef.instance.reject(originalEvent);
|
|
250
|
+
hostRef.changeDetectorRef.detectChanges();
|
|
251
|
+
},
|
|
252
|
+
close: (originalEvent) => {
|
|
253
|
+
hostRef.instance.close(originalEvent);
|
|
254
|
+
hostRef.changeDetectorRef.detectChanges();
|
|
255
|
+
},
|
|
256
|
+
focus: (options) => hostRef.instance.focus(options),
|
|
257
|
+
reposition: () => hostRef.instance.reposition()
|
|
258
|
+
});
|
|
259
|
+
hostRef.changeDetectorRef.detectChanges();
|
|
260
|
+
}
|
|
261
|
+
rootNode(hostRef) {
|
|
262
|
+
const [node] = hostRef.hostView.rootNodes;
|
|
263
|
+
return node instanceof Node ? node : this.document.createTextNode("");
|
|
264
|
+
}
|
|
265
|
+
resolveConfig(config) {
|
|
266
|
+
return {
|
|
267
|
+
key: config.key ?? "",
|
|
268
|
+
target: this.resolveTarget(config.target),
|
|
269
|
+
appendTo: config.appendTo,
|
|
270
|
+
header: config.header ?? "Confirm action",
|
|
271
|
+
message: config.message ?? "",
|
|
272
|
+
data: config.data,
|
|
273
|
+
icon: config.icon ?? "question",
|
|
274
|
+
severity: config.severity ?? "primary",
|
|
275
|
+
acceptLabel: config.acceptLabel ?? "Confirm",
|
|
276
|
+
rejectLabel: config.rejectLabel ?? "Cancel",
|
|
277
|
+
acceptVisible: config.acceptVisible ?? true,
|
|
278
|
+
rejectVisible: config.rejectVisible ?? true,
|
|
279
|
+
acceptDisabled: config.acceptDisabled ?? false,
|
|
280
|
+
rejectDisabled: config.rejectDisabled ?? false,
|
|
281
|
+
acceptAriaLabel: config.acceptAriaLabel ?? config.acceptLabel ?? "Confirm",
|
|
282
|
+
rejectAriaLabel: config.rejectAriaLabel ?? config.rejectLabel ?? "Cancel",
|
|
283
|
+
defaultFocus: config.defaultFocus ?? "accept",
|
|
284
|
+
placement: config.placement ?? "auto",
|
|
285
|
+
alignment: config.alignment ?? "center",
|
|
286
|
+
width: config.width ?? "",
|
|
287
|
+
maxWidth: config.maxWidth ?? "",
|
|
288
|
+
offset: config.offset ?? 10,
|
|
289
|
+
viewportMargin: config.viewportMargin ?? 8,
|
|
290
|
+
closeOnOutsideClick: config.closeOnOutsideClick ?? true,
|
|
291
|
+
closeOnEscape: config.closeOnEscape ?? true,
|
|
292
|
+
focusTrap: config.focusTrap ?? true,
|
|
293
|
+
restoreFocus: config.restoreFocus ?? true,
|
|
294
|
+
autoFocus: config.autoFocus ?? true,
|
|
295
|
+
initialFocus: config.initialFocus ?? "",
|
|
296
|
+
showArrow: config.showArrow ?? true,
|
|
297
|
+
ariaLabel: config.ariaLabel ?? "",
|
|
298
|
+
ariaLabelledBy: config.ariaLabelledBy ?? "",
|
|
299
|
+
ariaDescribedBy: config.ariaDescribedBy ?? "",
|
|
300
|
+
accept: config.accept,
|
|
301
|
+
reject: config.reject
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
resolveTarget(target) {
|
|
305
|
+
const element = this.targetElement(target);
|
|
306
|
+
if (!element) throw new Error("AerisConfirmPopup requires a target Element or trigger Event.");
|
|
307
|
+
return element;
|
|
308
|
+
}
|
|
309
|
+
targetElement(target) {
|
|
310
|
+
if (target instanceof Element) return target;
|
|
311
|
+
if (target instanceof Event) return this.targetElement(target.currentTarget ?? target.target);
|
|
312
|
+
return target instanceof Element ? target : null;
|
|
313
|
+
}
|
|
314
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
315
|
+
minVersion: "12.0.0",
|
|
316
|
+
version: "22.2.2",
|
|
317
|
+
ngImport: i0,
|
|
318
|
+
type: AerisConfirmPopupService,
|
|
319
|
+
deps: [],
|
|
320
|
+
target: i0.ɵɵFactoryTarget.Service
|
|
321
|
+
});
|
|
322
|
+
static ɵprov = i0.ɵɵngDeclareService({
|
|
323
|
+
minVersion: "22.0.0",
|
|
324
|
+
version: "22.2.2",
|
|
325
|
+
ngImport: i0,
|
|
326
|
+
type: AerisConfirmPopupService
|
|
327
|
+
});
|
|
328
|
+
};
|
|
329
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
330
|
+
minVersion: "12.0.0",
|
|
331
|
+
version: "22.2.2",
|
|
332
|
+
ngImport: i0,
|
|
333
|
+
type: AerisConfirmPopupService,
|
|
334
|
+
decorators: [{ type: Service }]
|
|
335
|
+
});
|
|
263
336
|
let nextPopupId = 0;
|
|
264
|
-
class AerisConfirmPopup {
|
|
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
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
337
|
+
var AerisConfirmPopup = class AerisConfirmPopup {
|
|
338
|
+
dismissOverlay = () => {
|
|
339
|
+
if (!this.settings().closeOnEscape) return false;
|
|
340
|
+
this.close();
|
|
341
|
+
return true;
|
|
342
|
+
};
|
|
343
|
+
service = inject(AerisConfirmPopupService);
|
|
344
|
+
document = inject(DOCUMENT);
|
|
345
|
+
repositionFrame = aerisInternalCreateFrameScheduler(() => this.reposition());
|
|
346
|
+
activeRequest = signal(null, ...ngDevMode ? [{ debugName: "activeRequest" }] : /* istanbul ignore next */ []);
|
|
347
|
+
target = input(null, ...ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []);
|
|
348
|
+
localConfig = computed(() => ({
|
|
349
|
+
key: this.key(),
|
|
350
|
+
target: this.localTarget(),
|
|
351
|
+
appendTo: this.appendTo(),
|
|
352
|
+
header: this.header(),
|
|
353
|
+
message: this.message(),
|
|
354
|
+
data: this.data(),
|
|
355
|
+
icon: this.icon(),
|
|
356
|
+
severity: this.severity(),
|
|
357
|
+
acceptLabel: this.acceptLabel(),
|
|
358
|
+
rejectLabel: this.rejectLabel(),
|
|
359
|
+
acceptVisible: this.acceptVisible(),
|
|
360
|
+
rejectVisible: this.rejectVisible(),
|
|
361
|
+
acceptDisabled: this.acceptDisabled(),
|
|
362
|
+
rejectDisabled: this.rejectDisabled(),
|
|
363
|
+
acceptAriaLabel: this.acceptAriaLabel() || this.acceptLabel(),
|
|
364
|
+
rejectAriaLabel: this.rejectAriaLabel() || this.rejectLabel(),
|
|
365
|
+
defaultFocus: this.defaultFocus(),
|
|
366
|
+
placement: this.placement(),
|
|
367
|
+
alignment: this.alignment(),
|
|
368
|
+
width: this.width(),
|
|
369
|
+
maxWidth: this.maxWidth(),
|
|
370
|
+
offset: this.offset(),
|
|
371
|
+
viewportMargin: this.viewportMargin(),
|
|
372
|
+
closeOnOutsideClick: this.closeOnOutsideClick(),
|
|
373
|
+
closeOnEscape: this.closeOnEscape(),
|
|
374
|
+
focusTrap: this.focusTrap(),
|
|
375
|
+
restoreFocus: this.restoreFocus(),
|
|
376
|
+
autoFocus: this.autoFocus(),
|
|
377
|
+
initialFocus: this.initialFocus(),
|
|
378
|
+
showArrow: this.showArrow(),
|
|
379
|
+
ariaLabel: this.ariaLabel(),
|
|
380
|
+
ariaLabelledBy: this.ariaLabelledBy(),
|
|
381
|
+
ariaDescribedBy: this.ariaDescribedBy()
|
|
382
|
+
}), ...ngDevMode ? [{ debugName: "localConfig" }] : /* istanbul ignore next */ []);
|
|
383
|
+
triggerAttributes = signal(null, ...ngDevMode ? [{ debugName: "triggerAttributes" }] : /* istanbul ignore next */ []);
|
|
384
|
+
lastRequestId = 0;
|
|
385
|
+
lastCloseSignal = 0;
|
|
386
|
+
previousVisible = false;
|
|
387
|
+
pendingResult = null;
|
|
388
|
+
pendingReason = "api";
|
|
389
|
+
pendingOriginalEvent = null;
|
|
390
|
+
popupPanel = viewChild("popupPanel", ...ngDevMode ? [{ debugName: "popupPanel" }] : /* istanbul ignore next */ []);
|
|
391
|
+
panelPortal = viewChild(ɵAerisAppendTo, ...ngDevMode ? [{ debugName: "panelPortal" }] : /* istanbul ignore next */ []);
|
|
392
|
+
iconTemplate = contentChild(AerisConfirmPopupIconTemplate, ...ngDevMode ? [{ debugName: "iconTemplate" }] : /* istanbul ignore next */ []);
|
|
393
|
+
messageTemplate = contentChild(AerisConfirmPopupMessageTemplate, ...ngDevMode ? [{ debugName: "messageTemplate" }] : /* istanbul ignore next */ []);
|
|
394
|
+
footerTemplate = contentChild(AerisConfirmPopupFooterTemplate, ...ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []);
|
|
395
|
+
headlessTemplate = contentChild(AerisConfirmPopupHeadlessTemplate, ...ngDevMode ? [{ debugName: "headlessTemplate" }] : /* istanbul ignore next */ []);
|
|
396
|
+
positioned = signal(false, ...ngDevMode ? [{ debugName: "positioned" }] : /* istanbul ignore next */ []);
|
|
397
|
+
actualPlacement = signal("bottom", ...ngDevMode ? [{ debugName: "actualPlacement" }] : /* istanbul ignore next */ []);
|
|
398
|
+
coordinates = signal({
|
|
399
|
+
x: 0,
|
|
400
|
+
y: 0
|
|
401
|
+
}, ...ngDevMode ? [{ debugName: "coordinates" }] : /* istanbul ignore next */ []);
|
|
402
|
+
settings = computed(() => this.activeRequest()?.config ?? this.localConfig(), ...ngDevMode ? [{ debugName: "settings" }] : /* istanbul ignore next */ []);
|
|
403
|
+
acceptButtonSeverity = computed(() => {
|
|
404
|
+
const severity = this.settings().severity;
|
|
405
|
+
return severity === "neutral" ? "secondary" : severity;
|
|
406
|
+
}, ...ngDevMode ? [{ debugName: "acceptButtonSeverity" }] : /* istanbul ignore next */ []);
|
|
407
|
+
templateContext = computed(() => ({
|
|
408
|
+
$implicit: this,
|
|
409
|
+
config: this.settings(),
|
|
410
|
+
data: this.settings().data,
|
|
411
|
+
accept: (event) => this.accept(event ?? null),
|
|
412
|
+
reject: (event) => this.reject(event ?? null),
|
|
413
|
+
close: (event) => this.close(event ?? null)
|
|
414
|
+
}), ...ngDevMode ? [{ debugName: "templateContext" }] : /* istanbul ignore next */ []);
|
|
415
|
+
computedAriaLabelledBy = computed(() => {
|
|
416
|
+
const labelledBy = this.settings().ariaLabelledBy;
|
|
417
|
+
if (labelledBy) return labelledBy;
|
|
418
|
+
if (this.settings().ariaLabel) return null;
|
|
419
|
+
return this.settings().header && !this.headlessTemplate() ? this.titleId : null;
|
|
420
|
+
}, ...ngDevMode ? [{ debugName: "computedAriaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
421
|
+
computedAriaDescribedBy = computed(() => {
|
|
422
|
+
const describedBy = this.settings().ariaDescribedBy;
|
|
423
|
+
if (describedBy) return describedBy;
|
|
424
|
+
return this.settings().message || this.messageTemplate() ? this.messageId : null;
|
|
425
|
+
}, ...ngDevMode ? [{ debugName: "computedAriaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
426
|
+
initialFocusTarget = computed(() => {
|
|
427
|
+
const settings = this.settings();
|
|
428
|
+
if (settings.initialFocus) return settings.initialFocus;
|
|
429
|
+
switch (settings.defaultFocus) {
|
|
430
|
+
case "accept": return ".aeris-confirm-popup__accept";
|
|
431
|
+
case "reject": return ".aeris-confirm-popup__reject";
|
|
432
|
+
case "popup": return ".aeris-confirm-popup__panel";
|
|
433
|
+
case "none": return "";
|
|
434
|
+
default: return "";
|
|
435
|
+
}
|
|
436
|
+
}, ...ngDevMode ? [{ debugName: "initialFocusTarget" }] : /* istanbul ignore next */ []);
|
|
437
|
+
autoFocusTarget = computed(() => this.settings().autoFocus && this.settings().defaultFocus !== "none", ...ngDevMode ? [{ debugName: "autoFocusTarget" }] : /* istanbul ignore next */ []);
|
|
438
|
+
visible = model(false, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
439
|
+
key = input("", ...ngDevMode ? [{ debugName: "key" }] : /* istanbul ignore next */ []);
|
|
440
|
+
appendTo = input(...ngDevMode ? [void 0, { debugName: "appendTo" }] : /* istanbul ignore next */ []);
|
|
441
|
+
header = input("Confirm action", ...ngDevMode ? [{ debugName: "header" }] : /* istanbul ignore next */ []);
|
|
442
|
+
message = input("", ...ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []);
|
|
443
|
+
data = input(...ngDevMode ? [void 0, { debugName: "data" }] : /* istanbul ignore next */ []);
|
|
444
|
+
icon = input("question", ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
445
|
+
severity = input("primary", ...ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []);
|
|
446
|
+
acceptLabel = input("Confirm", ...ngDevMode ? [{ debugName: "acceptLabel" }] : /* istanbul ignore next */ []);
|
|
447
|
+
rejectLabel = input("Cancel", ...ngDevMode ? [{ debugName: "rejectLabel" }] : /* istanbul ignore next */ []);
|
|
448
|
+
acceptVisible = input(true, {
|
|
449
|
+
...ngDevMode ? { debugName: "acceptVisible" } : /* istanbul ignore next */ {},
|
|
450
|
+
transform: booleanAttribute
|
|
451
|
+
});
|
|
452
|
+
rejectVisible = input(true, {
|
|
453
|
+
...ngDevMode ? { debugName: "rejectVisible" } : /* istanbul ignore next */ {},
|
|
454
|
+
transform: booleanAttribute
|
|
455
|
+
});
|
|
456
|
+
acceptDisabled = input(false, {
|
|
457
|
+
...ngDevMode ? { debugName: "acceptDisabled" } : /* istanbul ignore next */ {},
|
|
458
|
+
transform: booleanAttribute
|
|
459
|
+
});
|
|
460
|
+
rejectDisabled = input(false, {
|
|
461
|
+
...ngDevMode ? { debugName: "rejectDisabled" } : /* istanbul ignore next */ {},
|
|
462
|
+
transform: booleanAttribute
|
|
463
|
+
});
|
|
464
|
+
acceptAriaLabel = input("", ...ngDevMode ? [{ debugName: "acceptAriaLabel" }] : /* istanbul ignore next */ []);
|
|
465
|
+
rejectAriaLabel = input("", ...ngDevMode ? [{ debugName: "rejectAriaLabel" }] : /* istanbul ignore next */ []);
|
|
466
|
+
defaultFocus = input("accept", ...ngDevMode ? [{ debugName: "defaultFocus" }] : /* istanbul ignore next */ []);
|
|
467
|
+
placement = input("auto", ...ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []);
|
|
468
|
+
alignment = input("center", ...ngDevMode ? [{ debugName: "alignment" }] : /* istanbul ignore next */ []);
|
|
469
|
+
width = input("", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
470
|
+
maxWidth = input("", ...ngDevMode ? [{ debugName: "maxWidth" }] : /* istanbul ignore next */ []);
|
|
471
|
+
offset = input(10, ...ngDevMode ? [{ debugName: "offset" }] : /* istanbul ignore next */ []);
|
|
472
|
+
viewportMargin = input(8, ...ngDevMode ? [{ debugName: "viewportMargin" }] : /* istanbul ignore next */ []);
|
|
473
|
+
closeOnOutsideClick = input(true, {
|
|
474
|
+
...ngDevMode ? { debugName: "closeOnOutsideClick" } : /* istanbul ignore next */ {},
|
|
475
|
+
transform: booleanAttribute
|
|
476
|
+
});
|
|
477
|
+
closeOnEscape = input(true, {
|
|
478
|
+
...ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {},
|
|
479
|
+
transform: booleanAttribute
|
|
480
|
+
});
|
|
481
|
+
focusTrap = input(true, {
|
|
482
|
+
...ngDevMode ? { debugName: "focusTrap" } : /* istanbul ignore next */ {},
|
|
483
|
+
transform: booleanAttribute
|
|
484
|
+
});
|
|
485
|
+
restoreFocus = input(true, {
|
|
486
|
+
...ngDevMode ? { debugName: "restoreFocus" } : /* istanbul ignore next */ {},
|
|
487
|
+
transform: booleanAttribute
|
|
488
|
+
});
|
|
489
|
+
autoFocus = input(true, {
|
|
490
|
+
...ngDevMode ? { debugName: "autoFocus" } : /* istanbul ignore next */ {},
|
|
491
|
+
transform: booleanAttribute
|
|
492
|
+
});
|
|
493
|
+
initialFocus = input("", ...ngDevMode ? [{ debugName: "initialFocus" }] : /* istanbul ignore next */ []);
|
|
494
|
+
showArrow = input(true, {
|
|
495
|
+
...ngDevMode ? { debugName: "showArrow" } : /* istanbul ignore next */ {},
|
|
496
|
+
transform: booleanAttribute
|
|
497
|
+
});
|
|
498
|
+
ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
499
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
500
|
+
ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
501
|
+
opened = output();
|
|
502
|
+
accepted = output();
|
|
503
|
+
rejected = output();
|
|
504
|
+
closed = output();
|
|
505
|
+
popupId = `aeris-confirm-popup-${nextPopupId++}`;
|
|
506
|
+
titleId = `${this.popupId}-title`;
|
|
507
|
+
messageId = `${this.popupId}-message`;
|
|
508
|
+
constructor() {
|
|
509
|
+
effect(() => {
|
|
510
|
+
const request = this.service.request();
|
|
511
|
+
if (!request || request.id === this.lastRequestId) return;
|
|
512
|
+
if (request.config.key !== this.key()) return;
|
|
513
|
+
this.lastRequestId = request.id;
|
|
514
|
+
this.openRequest(request);
|
|
515
|
+
});
|
|
516
|
+
effect(() => {
|
|
517
|
+
const closeSignal = this.service.closeSignal();
|
|
518
|
+
if (closeSignal === this.lastCloseSignal) return;
|
|
519
|
+
this.lastCloseSignal = closeSignal;
|
|
520
|
+
this.close();
|
|
521
|
+
});
|
|
522
|
+
effect(() => {
|
|
523
|
+
const visible = this.visible();
|
|
524
|
+
if (visible === this.previousVisible) return;
|
|
525
|
+
if (visible) this.handleOpened();
|
|
526
|
+
else this.handleHidden();
|
|
527
|
+
this.previousVisible = visible;
|
|
528
|
+
});
|
|
529
|
+
effect((onCleanup) => {
|
|
530
|
+
if (!this.visible()) return;
|
|
531
|
+
const keydown = (event) => this.handleDocumentKeydown(event);
|
|
532
|
+
const pointerdown = (event) => this.handleDocumentPointerdown(event);
|
|
533
|
+
const reposition = this.repositionFrame.schedule;
|
|
534
|
+
const view = this.document.defaultView;
|
|
535
|
+
this.document.addEventListener("keydown", keydown);
|
|
536
|
+
this.document.addEventListener("pointerdown", pointerdown);
|
|
537
|
+
view?.addEventListener("resize", reposition);
|
|
538
|
+
view?.addEventListener("scroll", reposition);
|
|
539
|
+
onCleanup(() => {
|
|
540
|
+
this.document.removeEventListener("keydown", keydown);
|
|
541
|
+
this.document.removeEventListener("pointerdown", pointerdown);
|
|
542
|
+
view?.removeEventListener("resize", reposition);
|
|
543
|
+
view?.removeEventListener("scroll", reposition);
|
|
544
|
+
this.repositionFrame.cancel();
|
|
545
|
+
});
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
openWithConfig(config, ref) {
|
|
549
|
+
this.openRequest({
|
|
550
|
+
id: ++this.lastRequestId,
|
|
551
|
+
config,
|
|
552
|
+
ref
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
accept(originalEvent = null) {
|
|
556
|
+
const settings = this.settings();
|
|
557
|
+
if (!this.visible() || settings.acceptDisabled || !settings.acceptVisible) return;
|
|
558
|
+
const event = this.actionEvent(originalEvent);
|
|
559
|
+
settings.accept?.(event);
|
|
560
|
+
this.accepted.emit(event);
|
|
561
|
+
this.activeRequest()?.ref.notifyAccepted(event);
|
|
562
|
+
this.closeWithResult("accept", "accept", originalEvent);
|
|
563
|
+
}
|
|
564
|
+
reject(originalEvent = null) {
|
|
565
|
+
const settings = this.settings();
|
|
566
|
+
if (!this.visible() || settings.rejectDisabled || !settings.rejectVisible) return;
|
|
567
|
+
const event = this.actionEvent(originalEvent);
|
|
568
|
+
settings.reject?.(event);
|
|
569
|
+
this.rejected.emit(event);
|
|
570
|
+
this.activeRequest()?.ref.notifyRejected(event);
|
|
571
|
+
this.closeWithResult("reject", "reject", originalEvent);
|
|
572
|
+
}
|
|
573
|
+
close(originalEvent = null) {
|
|
574
|
+
if (!this.visible()) return;
|
|
575
|
+
this.closeWithResult("dismiss", "api", originalEvent);
|
|
576
|
+
}
|
|
577
|
+
focus(options) {
|
|
578
|
+
this.focusInitial(options);
|
|
579
|
+
}
|
|
580
|
+
reposition() {
|
|
581
|
+
if (!this.visible()) return;
|
|
582
|
+
const panel = this.popupPanel()?.nativeElement;
|
|
583
|
+
const target = this.settings().target;
|
|
584
|
+
const view = target.ownerDocument.defaultView;
|
|
585
|
+
if (!panel || !view) return;
|
|
586
|
+
const targetRect = target.getBoundingClientRect();
|
|
587
|
+
const panelRect = panel.getBoundingClientRect();
|
|
588
|
+
const width = panelRect.width || panel.offsetWidth || 320;
|
|
589
|
+
const height = panelRect.height || panel.offsetHeight || 160;
|
|
590
|
+
const settings = this.settings();
|
|
591
|
+
const { placement, x, y } = aerisInternalPositionAnchoredOverlay({
|
|
592
|
+
target: targetRect,
|
|
593
|
+
width,
|
|
594
|
+
height,
|
|
595
|
+
placement: settings.placement,
|
|
596
|
+
alignment: settings.alignment,
|
|
597
|
+
offset: settings.offset,
|
|
598
|
+
margin: settings.viewportMargin,
|
|
599
|
+
viewportWidth: view.innerWidth,
|
|
600
|
+
viewportHeight: view.innerHeight
|
|
601
|
+
});
|
|
602
|
+
this.actualPlacement.set(placement);
|
|
603
|
+
this.coordinates.set({
|
|
604
|
+
x,
|
|
605
|
+
y
|
|
606
|
+
});
|
|
607
|
+
this.positioned.set(true);
|
|
608
|
+
panel.style.left = `${x}px`;
|
|
609
|
+
panel.style.top = `${y}px`;
|
|
610
|
+
panel.setAttribute("data-placement", placement);
|
|
611
|
+
panel.parentElement?.setAttribute("data-positioned", "true");
|
|
612
|
+
}
|
|
613
|
+
handlePanelKeydown(event) {
|
|
614
|
+
if (event.key !== "Tab" || !this.settings().focusTrap) return;
|
|
615
|
+
this.trapTab(event);
|
|
616
|
+
}
|
|
617
|
+
handleDocumentKeydown(event) {
|
|
618
|
+
if (!this.visible() || event.key !== "Escape" || !this.settings().closeOnEscape) return;
|
|
619
|
+
event.preventDefault();
|
|
620
|
+
this.closeWithResult("dismiss", "escape", event);
|
|
621
|
+
}
|
|
622
|
+
handleDocumentPointerdown(event) {
|
|
623
|
+
if (!this.visible() || !this.settings().closeOnOutsideClick) return;
|
|
624
|
+
const target = event.target;
|
|
625
|
+
if (!(target instanceof Node)) return;
|
|
626
|
+
if ((this.popupPanel()?.nativeElement)?.contains(target) || this.settings().target.contains(target)) return;
|
|
627
|
+
this.closeWithResult("dismiss", "outside", event);
|
|
628
|
+
}
|
|
629
|
+
handleOpened() {
|
|
630
|
+
this.positioned.set(false);
|
|
631
|
+
this.updateTriggerAttributes(true);
|
|
632
|
+
const event = this.actionEvent(null);
|
|
633
|
+
this.opened.emit(event);
|
|
634
|
+
this.activeRequest()?.ref.notifyOpened(event);
|
|
635
|
+
queueMicrotask(() => {
|
|
636
|
+
this.reposition();
|
|
637
|
+
if (this.autoFocusTarget()) this.focusInitial();
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
handleHidden() {
|
|
641
|
+
this.panelPortal()?.restore();
|
|
642
|
+
const restoreFocus = this.settings().restoreFocus;
|
|
643
|
+
const focusTarget = this.settings().target;
|
|
644
|
+
const result = this.pendingResult ?? "dismiss";
|
|
645
|
+
const reason = this.pendingReason;
|
|
646
|
+
const originalEvent = this.pendingOriginalEvent;
|
|
647
|
+
const closeEvent = {
|
|
648
|
+
...this.actionEvent(originalEvent),
|
|
649
|
+
result,
|
|
650
|
+
reason
|
|
651
|
+
};
|
|
652
|
+
const ref = this.activeRequest()?.ref;
|
|
653
|
+
this.updateTriggerAttributes(false);
|
|
654
|
+
this.visible.set(false);
|
|
655
|
+
this.positioned.set(false);
|
|
656
|
+
this.pendingResult = null;
|
|
657
|
+
this.pendingReason = "api";
|
|
658
|
+
this.pendingOriginalEvent = null;
|
|
659
|
+
this.activeRequest.set(null);
|
|
660
|
+
this.closed.emit(closeEvent);
|
|
661
|
+
ref?.notifyClosed(closeEvent);
|
|
662
|
+
if (restoreFocus) queueMicrotask(() => this.focusTarget(focusTarget));
|
|
663
|
+
}
|
|
664
|
+
openRequest(request) {
|
|
665
|
+
this.pendingResult = null;
|
|
666
|
+
this.pendingReason = "api";
|
|
667
|
+
this.pendingOriginalEvent = null;
|
|
668
|
+
this.activeRequest.set(request);
|
|
669
|
+
request.ref.attach({
|
|
670
|
+
accept: (originalEvent) => this.accept(originalEvent),
|
|
671
|
+
reject: (originalEvent) => this.reject(originalEvent),
|
|
672
|
+
close: (originalEvent) => this.close(originalEvent),
|
|
673
|
+
focus: (options) => this.focus(options),
|
|
674
|
+
reposition: () => this.reposition()
|
|
675
|
+
});
|
|
676
|
+
this.visible.set(true);
|
|
677
|
+
}
|
|
678
|
+
closeWithResult(result, reason, originalEvent) {
|
|
679
|
+
this.pendingResult = result;
|
|
680
|
+
this.pendingReason = reason;
|
|
681
|
+
this.pendingOriginalEvent = originalEvent;
|
|
682
|
+
this.panelPortal()?.restore();
|
|
683
|
+
this.visible.set(false);
|
|
684
|
+
}
|
|
685
|
+
actionEvent(originalEvent) {
|
|
686
|
+
const settings = this.settings();
|
|
687
|
+
return {
|
|
688
|
+
originalEvent,
|
|
689
|
+
data: settings.data,
|
|
690
|
+
config: settings
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
updateTriggerAttributes(open) {
|
|
694
|
+
const target = this.settings().target;
|
|
695
|
+
if (open) {
|
|
696
|
+
this.triggerAttributes.set({
|
|
697
|
+
target,
|
|
698
|
+
expanded: target.getAttribute("aria-expanded"),
|
|
699
|
+
controls: target.getAttribute("aria-controls"),
|
|
700
|
+
haspopup: target.getAttribute("aria-haspopup")
|
|
701
|
+
});
|
|
702
|
+
target.setAttribute("aria-haspopup", "dialog");
|
|
703
|
+
target.setAttribute("aria-expanded", "true");
|
|
704
|
+
target.setAttribute("aria-controls", this.popupId);
|
|
705
|
+
return;
|
|
706
|
+
}
|
|
707
|
+
const previous = this.triggerAttributes();
|
|
708
|
+
if (!previous) return;
|
|
709
|
+
if (previous.expanded === null) previous.target.removeAttribute("aria-expanded");
|
|
710
|
+
else previous.target.setAttribute("aria-expanded", previous.expanded);
|
|
711
|
+
if (previous.controls === null) previous.target.removeAttribute("aria-controls");
|
|
712
|
+
else previous.target.setAttribute("aria-controls", previous.controls);
|
|
713
|
+
if (previous.haspopup === null) previous.target.removeAttribute("aria-haspopup");
|
|
714
|
+
else previous.target.setAttribute("aria-haspopup", previous.haspopup);
|
|
715
|
+
this.triggerAttributes.set(null);
|
|
716
|
+
}
|
|
717
|
+
focusInitial(options) {
|
|
718
|
+
const panel = this.popupPanel()?.nativeElement;
|
|
719
|
+
if (!panel) return;
|
|
720
|
+
aerisInternalFocusInitialElement(panel, this.initialFocusTarget(), options);
|
|
721
|
+
}
|
|
722
|
+
trapTab(event) {
|
|
723
|
+
const panel = this.popupPanel()?.nativeElement;
|
|
724
|
+
if (!panel) return;
|
|
725
|
+
aerisInternalTrapTabFocus(event, panel, this.activeHtmlElement());
|
|
726
|
+
}
|
|
727
|
+
activeHtmlElement() {
|
|
728
|
+
const active = this.settings().target.ownerDocument.activeElement;
|
|
729
|
+
return active instanceof HTMLElement ? active : null;
|
|
730
|
+
}
|
|
731
|
+
focusTarget(target) {
|
|
732
|
+
if (target instanceof HTMLElement) target.focus();
|
|
733
|
+
}
|
|
734
|
+
localTarget() {
|
|
735
|
+
const target = this.target();
|
|
736
|
+
if (target instanceof Element) return target;
|
|
737
|
+
if (target instanceof Event) {
|
|
738
|
+
const eventTarget = target.currentTarget ?? target.target;
|
|
739
|
+
if (eventTarget instanceof Element) return eventTarget;
|
|
740
|
+
}
|
|
741
|
+
throw new Error("AerisConfirmPopup requires a target Element or trigger Event.");
|
|
742
|
+
}
|
|
743
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
744
|
+
minVersion: "12.0.0",
|
|
745
|
+
version: "22.2.2",
|
|
746
|
+
ngImport: i0,
|
|
747
|
+
type: AerisConfirmPopup,
|
|
748
|
+
deps: [],
|
|
749
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
750
|
+
});
|
|
751
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
752
|
+
minVersion: "17.0.0",
|
|
753
|
+
version: "22.2.2",
|
|
754
|
+
type: AerisConfirmPopup,
|
|
755
|
+
isStandalone: true,
|
|
756
|
+
selector: "aeris-confirm-popup",
|
|
757
|
+
inputs: {
|
|
758
|
+
target: {
|
|
759
|
+
classPropertyName: "target",
|
|
760
|
+
publicName: "target",
|
|
761
|
+
isSignal: true,
|
|
762
|
+
isRequired: false,
|
|
763
|
+
transformFunction: null
|
|
764
|
+
},
|
|
765
|
+
visible: {
|
|
766
|
+
classPropertyName: "visible",
|
|
767
|
+
publicName: "visible",
|
|
768
|
+
isSignal: true,
|
|
769
|
+
isRequired: false,
|
|
770
|
+
transformFunction: null
|
|
771
|
+
},
|
|
772
|
+
key: {
|
|
773
|
+
classPropertyName: "key",
|
|
774
|
+
publicName: "key",
|
|
775
|
+
isSignal: true,
|
|
776
|
+
isRequired: false,
|
|
777
|
+
transformFunction: null
|
|
778
|
+
},
|
|
779
|
+
appendTo: {
|
|
780
|
+
classPropertyName: "appendTo",
|
|
781
|
+
publicName: "appendTo",
|
|
782
|
+
isSignal: true,
|
|
783
|
+
isRequired: false,
|
|
784
|
+
transformFunction: null
|
|
785
|
+
},
|
|
786
|
+
header: {
|
|
787
|
+
classPropertyName: "header",
|
|
788
|
+
publicName: "header",
|
|
789
|
+
isSignal: true,
|
|
790
|
+
isRequired: false,
|
|
791
|
+
transformFunction: null
|
|
792
|
+
},
|
|
793
|
+
message: {
|
|
794
|
+
classPropertyName: "message",
|
|
795
|
+
publicName: "message",
|
|
796
|
+
isSignal: true,
|
|
797
|
+
isRequired: false,
|
|
798
|
+
transformFunction: null
|
|
799
|
+
},
|
|
800
|
+
data: {
|
|
801
|
+
classPropertyName: "data",
|
|
802
|
+
publicName: "data",
|
|
803
|
+
isSignal: true,
|
|
804
|
+
isRequired: false,
|
|
805
|
+
transformFunction: null
|
|
806
|
+
},
|
|
807
|
+
icon: {
|
|
808
|
+
classPropertyName: "icon",
|
|
809
|
+
publicName: "icon",
|
|
810
|
+
isSignal: true,
|
|
811
|
+
isRequired: false,
|
|
812
|
+
transformFunction: null
|
|
813
|
+
},
|
|
814
|
+
severity: {
|
|
815
|
+
classPropertyName: "severity",
|
|
816
|
+
publicName: "severity",
|
|
817
|
+
isSignal: true,
|
|
818
|
+
isRequired: false,
|
|
819
|
+
transformFunction: null
|
|
820
|
+
},
|
|
821
|
+
acceptLabel: {
|
|
822
|
+
classPropertyName: "acceptLabel",
|
|
823
|
+
publicName: "acceptLabel",
|
|
824
|
+
isSignal: true,
|
|
825
|
+
isRequired: false,
|
|
826
|
+
transformFunction: null
|
|
827
|
+
},
|
|
828
|
+
rejectLabel: {
|
|
829
|
+
classPropertyName: "rejectLabel",
|
|
830
|
+
publicName: "rejectLabel",
|
|
831
|
+
isSignal: true,
|
|
832
|
+
isRequired: false,
|
|
833
|
+
transformFunction: null
|
|
834
|
+
},
|
|
835
|
+
acceptVisible: {
|
|
836
|
+
classPropertyName: "acceptVisible",
|
|
837
|
+
publicName: "acceptVisible",
|
|
838
|
+
isSignal: true,
|
|
839
|
+
isRequired: false,
|
|
840
|
+
transformFunction: null
|
|
841
|
+
},
|
|
842
|
+
rejectVisible: {
|
|
843
|
+
classPropertyName: "rejectVisible",
|
|
844
|
+
publicName: "rejectVisible",
|
|
845
|
+
isSignal: true,
|
|
846
|
+
isRequired: false,
|
|
847
|
+
transformFunction: null
|
|
848
|
+
},
|
|
849
|
+
acceptDisabled: {
|
|
850
|
+
classPropertyName: "acceptDisabled",
|
|
851
|
+
publicName: "acceptDisabled",
|
|
852
|
+
isSignal: true,
|
|
853
|
+
isRequired: false,
|
|
854
|
+
transformFunction: null
|
|
855
|
+
},
|
|
856
|
+
rejectDisabled: {
|
|
857
|
+
classPropertyName: "rejectDisabled",
|
|
858
|
+
publicName: "rejectDisabled",
|
|
859
|
+
isSignal: true,
|
|
860
|
+
isRequired: false,
|
|
861
|
+
transformFunction: null
|
|
862
|
+
},
|
|
863
|
+
acceptAriaLabel: {
|
|
864
|
+
classPropertyName: "acceptAriaLabel",
|
|
865
|
+
publicName: "acceptAriaLabel",
|
|
866
|
+
isSignal: true,
|
|
867
|
+
isRequired: false,
|
|
868
|
+
transformFunction: null
|
|
869
|
+
},
|
|
870
|
+
rejectAriaLabel: {
|
|
871
|
+
classPropertyName: "rejectAriaLabel",
|
|
872
|
+
publicName: "rejectAriaLabel",
|
|
873
|
+
isSignal: true,
|
|
874
|
+
isRequired: false,
|
|
875
|
+
transformFunction: null
|
|
876
|
+
},
|
|
877
|
+
defaultFocus: {
|
|
878
|
+
classPropertyName: "defaultFocus",
|
|
879
|
+
publicName: "defaultFocus",
|
|
880
|
+
isSignal: true,
|
|
881
|
+
isRequired: false,
|
|
882
|
+
transformFunction: null
|
|
883
|
+
},
|
|
884
|
+
placement: {
|
|
885
|
+
classPropertyName: "placement",
|
|
886
|
+
publicName: "placement",
|
|
887
|
+
isSignal: true,
|
|
888
|
+
isRequired: false,
|
|
889
|
+
transformFunction: null
|
|
890
|
+
},
|
|
891
|
+
alignment: {
|
|
892
|
+
classPropertyName: "alignment",
|
|
893
|
+
publicName: "alignment",
|
|
894
|
+
isSignal: true,
|
|
895
|
+
isRequired: false,
|
|
896
|
+
transformFunction: null
|
|
897
|
+
},
|
|
898
|
+
width: {
|
|
899
|
+
classPropertyName: "width",
|
|
900
|
+
publicName: "width",
|
|
901
|
+
isSignal: true,
|
|
902
|
+
isRequired: false,
|
|
903
|
+
transformFunction: null
|
|
904
|
+
},
|
|
905
|
+
maxWidth: {
|
|
906
|
+
classPropertyName: "maxWidth",
|
|
907
|
+
publicName: "maxWidth",
|
|
908
|
+
isSignal: true,
|
|
909
|
+
isRequired: false,
|
|
910
|
+
transformFunction: null
|
|
911
|
+
},
|
|
912
|
+
offset: {
|
|
913
|
+
classPropertyName: "offset",
|
|
914
|
+
publicName: "offset",
|
|
915
|
+
isSignal: true,
|
|
916
|
+
isRequired: false,
|
|
917
|
+
transformFunction: null
|
|
918
|
+
},
|
|
919
|
+
viewportMargin: {
|
|
920
|
+
classPropertyName: "viewportMargin",
|
|
921
|
+
publicName: "viewportMargin",
|
|
922
|
+
isSignal: true,
|
|
923
|
+
isRequired: false,
|
|
924
|
+
transformFunction: null
|
|
925
|
+
},
|
|
926
|
+
closeOnOutsideClick: {
|
|
927
|
+
classPropertyName: "closeOnOutsideClick",
|
|
928
|
+
publicName: "closeOnOutsideClick",
|
|
929
|
+
isSignal: true,
|
|
930
|
+
isRequired: false,
|
|
931
|
+
transformFunction: null
|
|
932
|
+
},
|
|
933
|
+
closeOnEscape: {
|
|
934
|
+
classPropertyName: "closeOnEscape",
|
|
935
|
+
publicName: "closeOnEscape",
|
|
936
|
+
isSignal: true,
|
|
937
|
+
isRequired: false,
|
|
938
|
+
transformFunction: null
|
|
939
|
+
},
|
|
940
|
+
focusTrap: {
|
|
941
|
+
classPropertyName: "focusTrap",
|
|
942
|
+
publicName: "focusTrap",
|
|
943
|
+
isSignal: true,
|
|
944
|
+
isRequired: false,
|
|
945
|
+
transformFunction: null
|
|
946
|
+
},
|
|
947
|
+
restoreFocus: {
|
|
948
|
+
classPropertyName: "restoreFocus",
|
|
949
|
+
publicName: "restoreFocus",
|
|
950
|
+
isSignal: true,
|
|
951
|
+
isRequired: false,
|
|
952
|
+
transformFunction: null
|
|
953
|
+
},
|
|
954
|
+
autoFocus: {
|
|
955
|
+
classPropertyName: "autoFocus",
|
|
956
|
+
publicName: "autoFocus",
|
|
957
|
+
isSignal: true,
|
|
958
|
+
isRequired: false,
|
|
959
|
+
transformFunction: null
|
|
960
|
+
},
|
|
961
|
+
initialFocus: {
|
|
962
|
+
classPropertyName: "initialFocus",
|
|
963
|
+
publicName: "initialFocus",
|
|
964
|
+
isSignal: true,
|
|
965
|
+
isRequired: false,
|
|
966
|
+
transformFunction: null
|
|
967
|
+
},
|
|
968
|
+
showArrow: {
|
|
969
|
+
classPropertyName: "showArrow",
|
|
970
|
+
publicName: "showArrow",
|
|
971
|
+
isSignal: true,
|
|
972
|
+
isRequired: false,
|
|
973
|
+
transformFunction: null
|
|
974
|
+
},
|
|
975
|
+
ariaLabel: {
|
|
976
|
+
classPropertyName: "ariaLabel",
|
|
977
|
+
publicName: "ariaLabel",
|
|
978
|
+
isSignal: true,
|
|
979
|
+
isRequired: false,
|
|
980
|
+
transformFunction: null
|
|
981
|
+
},
|
|
982
|
+
ariaLabelledBy: {
|
|
983
|
+
classPropertyName: "ariaLabelledBy",
|
|
984
|
+
publicName: "ariaLabelledBy",
|
|
985
|
+
isSignal: true,
|
|
986
|
+
isRequired: false,
|
|
987
|
+
transformFunction: null
|
|
988
|
+
},
|
|
989
|
+
ariaDescribedBy: {
|
|
990
|
+
classPropertyName: "ariaDescribedBy",
|
|
991
|
+
publicName: "ariaDescribedBy",
|
|
992
|
+
isSignal: true,
|
|
993
|
+
isRequired: false,
|
|
994
|
+
transformFunction: null
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
outputs: {
|
|
998
|
+
visible: "visibleChange",
|
|
999
|
+
opened: "opened",
|
|
1000
|
+
accepted: "accepted",
|
|
1001
|
+
rejected: "rejected",
|
|
1002
|
+
closed: "closed"
|
|
1003
|
+
},
|
|
1004
|
+
host: {
|
|
1005
|
+
properties: { "attr.data-open": "visible() || null" },
|
|
1006
|
+
classAttribute: "aeris-confirm-popup"
|
|
1007
|
+
},
|
|
1008
|
+
queries: [
|
|
1009
|
+
{
|
|
1010
|
+
propertyName: "iconTemplate",
|
|
1011
|
+
first: true,
|
|
1012
|
+
predicate: AerisConfirmPopupIconTemplate,
|
|
1013
|
+
descendants: true,
|
|
1014
|
+
isSignal: true
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
propertyName: "messageTemplate",
|
|
1018
|
+
first: true,
|
|
1019
|
+
predicate: AerisConfirmPopupMessageTemplate,
|
|
1020
|
+
descendants: true,
|
|
1021
|
+
isSignal: true
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
propertyName: "footerTemplate",
|
|
1025
|
+
first: true,
|
|
1026
|
+
predicate: AerisConfirmPopupFooterTemplate,
|
|
1027
|
+
descendants: true,
|
|
1028
|
+
isSignal: true
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
propertyName: "headlessTemplate",
|
|
1032
|
+
first: true,
|
|
1033
|
+
predicate: AerisConfirmPopupHeadlessTemplate,
|
|
1034
|
+
descendants: true,
|
|
1035
|
+
isSignal: true
|
|
1036
|
+
}
|
|
1037
|
+
],
|
|
1038
|
+
viewQueries: [{
|
|
1039
|
+
propertyName: "popupPanel",
|
|
1040
|
+
first: true,
|
|
1041
|
+
predicate: ["popupPanel"],
|
|
1042
|
+
descendants: true,
|
|
1043
|
+
isSignal: true
|
|
1044
|
+
}, {
|
|
1045
|
+
propertyName: "panelPortal",
|
|
1046
|
+
first: true,
|
|
1047
|
+
predicate: ɵAerisAppendTo,
|
|
1048
|
+
descendants: true,
|
|
1049
|
+
isSignal: true
|
|
1050
|
+
}],
|
|
1051
|
+
ngImport: i0,
|
|
1052
|
+
template: `
|
|
717
1053
|
@if (visible()) {
|
|
718
|
-
<div
|
|
1054
|
+
<div
|
|
1055
|
+
class="aeris-confirm-popup__layer"
|
|
1056
|
+
[aerisInternalAppendTo]="settings().appendTo"
|
|
1057
|
+
[aerisInternalAppendToDismiss]="dismissOverlay"
|
|
1058
|
+
aerisInternalAppendToDefault="body"
|
|
1059
|
+
[attr.data-positioned]="positioned() || null"
|
|
1060
|
+
>
|
|
719
1061
|
<section
|
|
720
1062
|
#popupPanel
|
|
721
1063
|
class="aeris-confirm-popup__panel"
|
|
@@ -819,7 +1161,8 @@ class AerisConfirmPopup {
|
|
|
819
1161
|
<button
|
|
820
1162
|
aerisButton
|
|
821
1163
|
type="button"
|
|
822
|
-
variant="
|
|
1164
|
+
variant="solid"
|
|
1165
|
+
severity="secondary"
|
|
823
1166
|
class="aeris-confirm-popup__button aeris-confirm-popup__reject"
|
|
824
1167
|
[disabled]="settings().rejectDisabled"
|
|
825
1168
|
[attr.aria-label]="settings().rejectAriaLabel"
|
|
@@ -849,13 +1192,82 @@ class AerisConfirmPopup {
|
|
|
849
1192
|
</section>
|
|
850
1193
|
</div>
|
|
851
1194
|
}
|
|
852
|
-
`,
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
1195
|
+
`,
|
|
1196
|
+
isInline: true,
|
|
1197
|
+
styles: [":host{--_aeris-confirm-popup-icon-size: 2rem;--_aeris-confirm-popup-shadow: 0 18px 50px color-mix(in srgb, var(--aeris-text, #111111) 20%, transparent);display:contents}.aeris-confirm-popup__layer{position:fixed;z-index:var(--aeris-confirm-popup-z-index, 1040);inset:0;pointer-events:none}.aeris-confirm-popup__panel{position:fixed;width:var(--aeris-confirm-popup-width, min(22rem, 100vw - 1rem));max-width:var(--aeris-confirm-popup-max-width, calc(100vw - 1rem) );display:grid;gap:.875rem;padding:var(--aeris-confirm-popup-padding, var(--aeris-surface-padding, 1.25rem));border:1px solid var(--aeris-confirm-popup-border, var(--aeris-border));border-radius:var(--aeris-confirm-popup-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-confirm-popup-background, var(--aeris-surface, #fff));color:var(--aeris-confirm-popup-color, var(--aeris-text, #111111));box-shadow:var(--aeris-confirm-popup-shadow, var(--_aeris-confirm-popup-shadow));pointer-events:auto;transform-origin:var(--_aeris-confirm-popup-origin, top center)}.aeris-confirm-popup__layer[data-positioned=true] .aeris-confirm-popup__panel{animation:aeris-overlay-enter var(--aeris-motion-normal, .15s) var(--aeris-ease-enter, ease-out) backwards}.aeris-confirm-popup__panel:focus{outline:none}.aeris-confirm-popup__panel:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-confirm-popup-focus, var(--aeris-focus, #111111));outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-confirm-popup__panel[data-placement=top]{--_aeris-confirm-popup-origin: bottom center;--aeris-overlay-motion-y: var(--aeris-motion-distance, .25rem)}.aeris-confirm-popup__panel[data-placement=right]{--_aeris-confirm-popup-origin: left center;--aeris-overlay-motion-x: calc(var(--aeris-motion-distance, .25rem) * -1);--aeris-overlay-motion-y: 0}.aeris-confirm-popup__panel[data-placement=bottom]{--_aeris-confirm-popup-origin: top center}.aeris-confirm-popup__panel[data-placement=left]{--_aeris-confirm-popup-origin: right center;--aeris-overlay-motion-x: var(--aeris-motion-distance, .25rem);--aeris-overlay-motion-y: 0}.aeris-confirm-popup__arrow{position:absolute;width:.75rem;height:.75rem;border:inherit;border-right:0;border-bottom:0;background:inherit}.aeris-confirm-popup__panel[data-placement=bottom] .aeris-confirm-popup__arrow{top:-.41rem;left:calc(50% - .375rem);transform:rotate(45deg)}.aeris-confirm-popup__panel[data-placement=top] .aeris-confirm-popup__arrow{bottom:-.41rem;left:calc(50% - .375rem);transform:rotate(225deg)}.aeris-confirm-popup__panel[data-placement=right] .aeris-confirm-popup__arrow{top:calc(50% - .375rem);left:-.41rem;transform:rotate(-45deg)}.aeris-confirm-popup__panel[data-placement=left] .aeris-confirm-popup__arrow{top:calc(50% - .375rem);right:-.41rem;transform:rotate(135deg)}.aeris-confirm-popup__body{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.75rem;align-items:start}.aeris-confirm-popup__body:not(:has(.aeris-confirm-popup__icon)){grid-template-columns:1fr}.aeris-confirm-popup__icon{width:var(--aeris-confirm-popup-icon-size, var(--_aeris-confirm-popup-icon-size));height:var(--aeris-confirm-popup-icon-size, var(--_aeris-confirm-popup-icon-size));display:inline-grid;place-items:center;border-radius:var(--aeris-confirm-popup-icon-radius, 999px);background:var(--aeris-confirm-popup-icon-background, color-mix(in srgb, var(--aeris-primary, #6f7f49) 14%, transparent));color:var(--aeris-confirm-popup-icon-color, var(--aeris-primary-text, #4c5f27));flex:0 0 auto}.aeris-confirm-popup__icon svg{width:1.125rem;height:1.125rem;display:block;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.aeris-confirm-popup__panel[data-severity=success] .aeris-confirm-popup__icon{background:color-mix(in srgb,var(--aeris-success, #5d7d3f) 16%,transparent);color:var(--aeris-success-text, #3e6124)}.aeris-confirm-popup__panel[data-severity=info] .aeris-confirm-popup__icon{background:color-mix(in srgb,var(--aeris-info, #58789d) 16%,transparent);color:var(--aeris-info-text, #2f5c87)}.aeris-confirm-popup__panel[data-severity=warning] .aeris-confirm-popup__icon{background:color-mix(in srgb,var(--aeris-warning, #c38600) 18%,transparent);color:var(--aeris-warning-text, #8a6100)}.aeris-confirm-popup__panel[data-severity=danger] .aeris-confirm-popup__icon{background:color-mix(in srgb,var(--aeris-danger, #c81e2a) 16%,transparent);color:var(--aeris-danger-text, #a31722)}.aeris-confirm-popup__copy{min-width:0;display:grid;gap:.25rem}.aeris-confirm-popup__title{color:var(--aeris-confirm-popup-title-color, var(--aeris-text, #111111));font-size:var(--aeris-font-size-xl, .9375rem);font-weight:var(--aeris-font-weight-bold, 700);line-height:var(--aeris-line-height-tight, 1.25)}.aeris-confirm-popup__message{color:var(--aeris-confirm-popup-message-color, var(--aeris-text-2, #454545));font-size:var(--aeris-font-size-lg, .875rem);line-height:var(--aeris-line-height-normal, 1.5)}.aeris-confirm-popup__message:empty{display:none}.aeris-confirm-popup__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}@media(prefers-reduced-motion:reduce){.aeris-confirm-popup__panel{animation:none}}@media(max-width:34rem){.aeris-confirm-popup__panel{width:min(var(--aeris-confirm-popup-width, 22rem),100vw - 1rem)}.aeris-confirm-popup__body{grid-template-columns:1fr}.aeris-confirm-popup__actions,.aeris-confirm-popup__actions .aeris-button{width:100%}}\n"],
|
|
1198
|
+
dependencies: [
|
|
1199
|
+
{
|
|
1200
|
+
kind: "component",
|
|
1201
|
+
type: AerisButtonDirective,
|
|
1202
|
+
selector: "button[aerisButton], a[aerisButton]",
|
|
1203
|
+
inputs: [
|
|
1204
|
+
"variant",
|
|
1205
|
+
"size",
|
|
1206
|
+
"severity",
|
|
1207
|
+
"iconPosition",
|
|
1208
|
+
"loading",
|
|
1209
|
+
"disabled",
|
|
1210
|
+
"showSpinner",
|
|
1211
|
+
"iconOnly",
|
|
1212
|
+
"raised",
|
|
1213
|
+
"rounded",
|
|
1214
|
+
"fluid"
|
|
1215
|
+
]
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
kind: "directive",
|
|
1219
|
+
type: NgTemplateOutlet,
|
|
1220
|
+
selector: "[ngTemplateOutlet]",
|
|
1221
|
+
inputs: [
|
|
1222
|
+
"ngTemplateOutletContext",
|
|
1223
|
+
"ngTemplateOutlet",
|
|
1224
|
+
"ngTemplateOutletInjector"
|
|
1225
|
+
]
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
kind: "directive",
|
|
1229
|
+
type: ɵAerisAppendTo,
|
|
1230
|
+
selector: "[aerisInternalAppendTo]",
|
|
1231
|
+
inputs: [
|
|
1232
|
+
"aerisInternalAppendTo",
|
|
1233
|
+
"aerisInternalAppendToDefault",
|
|
1234
|
+
"aerisInternalAppendToAnchor",
|
|
1235
|
+
"aerisInternalAppendToOffset",
|
|
1236
|
+
"aerisInternalAppendToMatchWidth",
|
|
1237
|
+
"aerisInternalAppendToPlacement",
|
|
1238
|
+
"aerisInternalAppendToAlignment",
|
|
1239
|
+
"aerisInternalAppendToCollisionPadding",
|
|
1240
|
+
"aerisInternalAppendToPositionSelf",
|
|
1241
|
+
"aerisInternalAppendToDismiss"
|
|
1242
|
+
],
|
|
1243
|
+
outputs: ["aerisInternalAppendToOutside"]
|
|
1244
|
+
}
|
|
1245
|
+
]
|
|
1246
|
+
});
|
|
1247
|
+
};
|
|
1248
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1249
|
+
minVersion: "12.0.0",
|
|
1250
|
+
version: "22.2.2",
|
|
1251
|
+
ngImport: i0,
|
|
1252
|
+
type: AerisConfirmPopup,
|
|
1253
|
+
decorators: [{
|
|
1254
|
+
type: Component,
|
|
1255
|
+
args: [{
|
|
1256
|
+
selector: "aeris-confirm-popup",
|
|
1257
|
+
imports: [
|
|
1258
|
+
AerisButtonDirective,
|
|
1259
|
+
NgTemplateOutlet,
|
|
1260
|
+
ɵAerisAppendTo
|
|
1261
|
+
],
|
|
1262
|
+
template: `
|
|
857
1263
|
@if (visible()) {
|
|
858
|
-
<div
|
|
1264
|
+
<div
|
|
1265
|
+
class="aeris-confirm-popup__layer"
|
|
1266
|
+
[aerisInternalAppendTo]="settings().appendTo"
|
|
1267
|
+
[aerisInternalAppendToDismiss]="dismissOverlay"
|
|
1268
|
+
aerisInternalAppendToDefault="body"
|
|
1269
|
+
[attr.data-positioned]="positioned() || null"
|
|
1270
|
+
>
|
|
859
1271
|
<section
|
|
860
1272
|
#popupPanel
|
|
861
1273
|
class="aeris-confirm-popup__panel"
|
|
@@ -959,7 +1371,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
959
1371
|
<button
|
|
960
1372
|
aerisButton
|
|
961
1373
|
type="button"
|
|
962
|
-
variant="
|
|
1374
|
+
variant="solid"
|
|
1375
|
+
severity="secondary"
|
|
963
1376
|
class="aeris-confirm-popup__button aeris-confirm-popup__reject"
|
|
964
1377
|
[disabled]="settings().rejectDisabled"
|
|
965
1378
|
[attr.aria-label]="settings().rejectAriaLabel"
|
|
@@ -989,22 +1402,340 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
989
1402
|
</section>
|
|
990
1403
|
</div>
|
|
991
1404
|
}
|
|
992
|
-
`,
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
1405
|
+
`,
|
|
1406
|
+
host: {
|
|
1407
|
+
class: "aeris-confirm-popup",
|
|
1408
|
+
"[attr.data-open]": "visible() || null"
|
|
1409
|
+
},
|
|
1410
|
+
styles: [":host{--_aeris-confirm-popup-icon-size: 2rem;--_aeris-confirm-popup-shadow: 0 18px 50px color-mix(in srgb, var(--aeris-text, #111111) 20%, transparent);display:contents}.aeris-confirm-popup__layer{position:fixed;z-index:var(--aeris-confirm-popup-z-index, 1040);inset:0;pointer-events:none}.aeris-confirm-popup__panel{position:fixed;width:var(--aeris-confirm-popup-width, min(22rem, 100vw - 1rem));max-width:var(--aeris-confirm-popup-max-width, calc(100vw - 1rem) );display:grid;gap:.875rem;padding:var(--aeris-confirm-popup-padding, var(--aeris-surface-padding, 1.25rem));border:1px solid var(--aeris-confirm-popup-border, var(--aeris-border));border-radius:var(--aeris-confirm-popup-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-confirm-popup-background, var(--aeris-surface, #fff));color:var(--aeris-confirm-popup-color, var(--aeris-text, #111111));box-shadow:var(--aeris-confirm-popup-shadow, var(--_aeris-confirm-popup-shadow));pointer-events:auto;transform-origin:var(--_aeris-confirm-popup-origin, top center)}.aeris-confirm-popup__layer[data-positioned=true] .aeris-confirm-popup__panel{animation:aeris-overlay-enter var(--aeris-motion-normal, .15s) var(--aeris-ease-enter, ease-out) backwards}.aeris-confirm-popup__panel:focus{outline:none}.aeris-confirm-popup__panel:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-confirm-popup-focus, var(--aeris-focus, #111111));outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-confirm-popup__panel[data-placement=top]{--_aeris-confirm-popup-origin: bottom center;--aeris-overlay-motion-y: var(--aeris-motion-distance, .25rem)}.aeris-confirm-popup__panel[data-placement=right]{--_aeris-confirm-popup-origin: left center;--aeris-overlay-motion-x: calc(var(--aeris-motion-distance, .25rem) * -1);--aeris-overlay-motion-y: 0}.aeris-confirm-popup__panel[data-placement=bottom]{--_aeris-confirm-popup-origin: top center}.aeris-confirm-popup__panel[data-placement=left]{--_aeris-confirm-popup-origin: right center;--aeris-overlay-motion-x: var(--aeris-motion-distance, .25rem);--aeris-overlay-motion-y: 0}.aeris-confirm-popup__arrow{position:absolute;width:.75rem;height:.75rem;border:inherit;border-right:0;border-bottom:0;background:inherit}.aeris-confirm-popup__panel[data-placement=bottom] .aeris-confirm-popup__arrow{top:-.41rem;left:calc(50% - .375rem);transform:rotate(45deg)}.aeris-confirm-popup__panel[data-placement=top] .aeris-confirm-popup__arrow{bottom:-.41rem;left:calc(50% - .375rem);transform:rotate(225deg)}.aeris-confirm-popup__panel[data-placement=right] .aeris-confirm-popup__arrow{top:calc(50% - .375rem);left:-.41rem;transform:rotate(-45deg)}.aeris-confirm-popup__panel[data-placement=left] .aeris-confirm-popup__arrow{top:calc(50% - .375rem);right:-.41rem;transform:rotate(135deg)}.aeris-confirm-popup__body{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.75rem;align-items:start}.aeris-confirm-popup__body:not(:has(.aeris-confirm-popup__icon)){grid-template-columns:1fr}.aeris-confirm-popup__icon{width:var(--aeris-confirm-popup-icon-size, var(--_aeris-confirm-popup-icon-size));height:var(--aeris-confirm-popup-icon-size, var(--_aeris-confirm-popup-icon-size));display:inline-grid;place-items:center;border-radius:var(--aeris-confirm-popup-icon-radius, 999px);background:var(--aeris-confirm-popup-icon-background, color-mix(in srgb, var(--aeris-primary, #6f7f49) 14%, transparent));color:var(--aeris-confirm-popup-icon-color, var(--aeris-primary-text, #4c5f27));flex:0 0 auto}.aeris-confirm-popup__icon svg{width:1.125rem;height:1.125rem;display:block;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.aeris-confirm-popup__panel[data-severity=success] .aeris-confirm-popup__icon{background:color-mix(in srgb,var(--aeris-success, #5d7d3f) 16%,transparent);color:var(--aeris-success-text, #3e6124)}.aeris-confirm-popup__panel[data-severity=info] .aeris-confirm-popup__icon{background:color-mix(in srgb,var(--aeris-info, #58789d) 16%,transparent);color:var(--aeris-info-text, #2f5c87)}.aeris-confirm-popup__panel[data-severity=warning] .aeris-confirm-popup__icon{background:color-mix(in srgb,var(--aeris-warning, #c38600) 18%,transparent);color:var(--aeris-warning-text, #8a6100)}.aeris-confirm-popup__panel[data-severity=danger] .aeris-confirm-popup__icon{background:color-mix(in srgb,var(--aeris-danger, #c81e2a) 16%,transparent);color:var(--aeris-danger-text, #a31722)}.aeris-confirm-popup__copy{min-width:0;display:grid;gap:.25rem}.aeris-confirm-popup__title{color:var(--aeris-confirm-popup-title-color, var(--aeris-text, #111111));font-size:var(--aeris-font-size-xl, .9375rem);font-weight:var(--aeris-font-weight-bold, 700);line-height:var(--aeris-line-height-tight, 1.25)}.aeris-confirm-popup__message{color:var(--aeris-confirm-popup-message-color, var(--aeris-text-2, #454545));font-size:var(--aeris-font-size-lg, .875rem);line-height:var(--aeris-line-height-normal, 1.5)}.aeris-confirm-popup__message:empty{display:none}.aeris-confirm-popup__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}@media(prefers-reduced-motion:reduce){.aeris-confirm-popup__panel{animation:none}}@media(max-width:34rem){.aeris-confirm-popup__panel{width:min(var(--aeris-confirm-popup-width, 22rem),100vw - 1rem)}.aeris-confirm-popup__body{grid-template-columns:1fr}.aeris-confirm-popup__actions,.aeris-confirm-popup__actions .aeris-button{width:100%}}\n"]
|
|
1411
|
+
}]
|
|
1412
|
+
}],
|
|
1413
|
+
ctorParameters: () => [],
|
|
1414
|
+
propDecorators: {
|
|
1415
|
+
target: [{
|
|
1416
|
+
type: i0.Input,
|
|
1417
|
+
args: [{
|
|
1418
|
+
isSignal: true,
|
|
1419
|
+
alias: "target",
|
|
1420
|
+
required: false
|
|
1421
|
+
}]
|
|
1422
|
+
}],
|
|
1423
|
+
popupPanel: [{
|
|
1424
|
+
type: i0.ViewChild,
|
|
1425
|
+
args: ["popupPanel", { isSignal: true }]
|
|
1426
|
+
}],
|
|
1427
|
+
panelPortal: [{
|
|
1428
|
+
type: i0.ViewChild,
|
|
1429
|
+
args: [i0.forwardRef(() => ɵAerisAppendTo), { isSignal: true }]
|
|
1430
|
+
}],
|
|
1431
|
+
iconTemplate: [{
|
|
1432
|
+
type: i0.ContentChild,
|
|
1433
|
+
args: [i0.forwardRef(() => AerisConfirmPopupIconTemplate), { isSignal: true }]
|
|
1434
|
+
}],
|
|
1435
|
+
messageTemplate: [{
|
|
1436
|
+
type: i0.ContentChild,
|
|
1437
|
+
args: [i0.forwardRef(() => AerisConfirmPopupMessageTemplate), { isSignal: true }]
|
|
1438
|
+
}],
|
|
1439
|
+
footerTemplate: [{
|
|
1440
|
+
type: i0.ContentChild,
|
|
1441
|
+
args: [i0.forwardRef(() => AerisConfirmPopupFooterTemplate), { isSignal: true }]
|
|
1442
|
+
}],
|
|
1443
|
+
headlessTemplate: [{
|
|
1444
|
+
type: i0.ContentChild,
|
|
1445
|
+
args: [i0.forwardRef(() => AerisConfirmPopupHeadlessTemplate), { isSignal: true }]
|
|
1446
|
+
}],
|
|
1447
|
+
visible: [{
|
|
1448
|
+
type: i0.Input,
|
|
1449
|
+
args: [{
|
|
1450
|
+
isSignal: true,
|
|
1451
|
+
alias: "visible",
|
|
1452
|
+
required: false
|
|
1453
|
+
}]
|
|
1454
|
+
}, {
|
|
1455
|
+
type: i0.Output,
|
|
1456
|
+
args: ["visibleChange"]
|
|
1457
|
+
}],
|
|
1458
|
+
key: [{
|
|
1459
|
+
type: i0.Input,
|
|
1460
|
+
args: [{
|
|
1461
|
+
isSignal: true,
|
|
1462
|
+
alias: "key",
|
|
1463
|
+
required: false
|
|
1464
|
+
}]
|
|
1465
|
+
}],
|
|
1466
|
+
appendTo: [{
|
|
1467
|
+
type: i0.Input,
|
|
1468
|
+
args: [{
|
|
1469
|
+
isSignal: true,
|
|
1470
|
+
alias: "appendTo",
|
|
1471
|
+
required: false
|
|
1472
|
+
}]
|
|
1473
|
+
}],
|
|
1474
|
+
header: [{
|
|
1475
|
+
type: i0.Input,
|
|
1476
|
+
args: [{
|
|
1477
|
+
isSignal: true,
|
|
1478
|
+
alias: "header",
|
|
1479
|
+
required: false
|
|
1480
|
+
}]
|
|
1481
|
+
}],
|
|
1482
|
+
message: [{
|
|
1483
|
+
type: i0.Input,
|
|
1484
|
+
args: [{
|
|
1485
|
+
isSignal: true,
|
|
1486
|
+
alias: "message",
|
|
1487
|
+
required: false
|
|
1488
|
+
}]
|
|
1489
|
+
}],
|
|
1490
|
+
data: [{
|
|
1491
|
+
type: i0.Input,
|
|
1492
|
+
args: [{
|
|
1493
|
+
isSignal: true,
|
|
1494
|
+
alias: "data",
|
|
1495
|
+
required: false
|
|
1496
|
+
}]
|
|
1497
|
+
}],
|
|
1498
|
+
icon: [{
|
|
1499
|
+
type: i0.Input,
|
|
1500
|
+
args: [{
|
|
1501
|
+
isSignal: true,
|
|
1502
|
+
alias: "icon",
|
|
1503
|
+
required: false
|
|
1504
|
+
}]
|
|
1505
|
+
}],
|
|
1506
|
+
severity: [{
|
|
1507
|
+
type: i0.Input,
|
|
1508
|
+
args: [{
|
|
1509
|
+
isSignal: true,
|
|
1510
|
+
alias: "severity",
|
|
1511
|
+
required: false
|
|
1512
|
+
}]
|
|
1513
|
+
}],
|
|
1514
|
+
acceptLabel: [{
|
|
1515
|
+
type: i0.Input,
|
|
1516
|
+
args: [{
|
|
1517
|
+
isSignal: true,
|
|
1518
|
+
alias: "acceptLabel",
|
|
1519
|
+
required: false
|
|
1520
|
+
}]
|
|
1521
|
+
}],
|
|
1522
|
+
rejectLabel: [{
|
|
1523
|
+
type: i0.Input,
|
|
1524
|
+
args: [{
|
|
1525
|
+
isSignal: true,
|
|
1526
|
+
alias: "rejectLabel",
|
|
1527
|
+
required: false
|
|
1528
|
+
}]
|
|
1529
|
+
}],
|
|
1530
|
+
acceptVisible: [{
|
|
1531
|
+
type: i0.Input,
|
|
1532
|
+
args: [{
|
|
1533
|
+
isSignal: true,
|
|
1534
|
+
alias: "acceptVisible",
|
|
1535
|
+
required: false
|
|
1536
|
+
}]
|
|
1537
|
+
}],
|
|
1538
|
+
rejectVisible: [{
|
|
1539
|
+
type: i0.Input,
|
|
1540
|
+
args: [{
|
|
1541
|
+
isSignal: true,
|
|
1542
|
+
alias: "rejectVisible",
|
|
1543
|
+
required: false
|
|
1544
|
+
}]
|
|
1545
|
+
}],
|
|
1546
|
+
acceptDisabled: [{
|
|
1547
|
+
type: i0.Input,
|
|
1548
|
+
args: [{
|
|
1549
|
+
isSignal: true,
|
|
1550
|
+
alias: "acceptDisabled",
|
|
1551
|
+
required: false
|
|
1552
|
+
}]
|
|
1553
|
+
}],
|
|
1554
|
+
rejectDisabled: [{
|
|
1555
|
+
type: i0.Input,
|
|
1556
|
+
args: [{
|
|
1557
|
+
isSignal: true,
|
|
1558
|
+
alias: "rejectDisabled",
|
|
1559
|
+
required: false
|
|
1560
|
+
}]
|
|
1561
|
+
}],
|
|
1562
|
+
acceptAriaLabel: [{
|
|
1563
|
+
type: i0.Input,
|
|
1564
|
+
args: [{
|
|
1565
|
+
isSignal: true,
|
|
1566
|
+
alias: "acceptAriaLabel",
|
|
1567
|
+
required: false
|
|
1568
|
+
}]
|
|
1569
|
+
}],
|
|
1570
|
+
rejectAriaLabel: [{
|
|
1571
|
+
type: i0.Input,
|
|
1572
|
+
args: [{
|
|
1573
|
+
isSignal: true,
|
|
1574
|
+
alias: "rejectAriaLabel",
|
|
1575
|
+
required: false
|
|
1576
|
+
}]
|
|
1577
|
+
}],
|
|
1578
|
+
defaultFocus: [{
|
|
1579
|
+
type: i0.Input,
|
|
1580
|
+
args: [{
|
|
1581
|
+
isSignal: true,
|
|
1582
|
+
alias: "defaultFocus",
|
|
1583
|
+
required: false
|
|
1584
|
+
}]
|
|
1585
|
+
}],
|
|
1586
|
+
placement: [{
|
|
1587
|
+
type: i0.Input,
|
|
1588
|
+
args: [{
|
|
1589
|
+
isSignal: true,
|
|
1590
|
+
alias: "placement",
|
|
1591
|
+
required: false
|
|
1592
|
+
}]
|
|
1593
|
+
}],
|
|
1594
|
+
alignment: [{
|
|
1595
|
+
type: i0.Input,
|
|
1596
|
+
args: [{
|
|
1597
|
+
isSignal: true,
|
|
1598
|
+
alias: "alignment",
|
|
1599
|
+
required: false
|
|
1600
|
+
}]
|
|
1601
|
+
}],
|
|
1602
|
+
width: [{
|
|
1603
|
+
type: i0.Input,
|
|
1604
|
+
args: [{
|
|
1605
|
+
isSignal: true,
|
|
1606
|
+
alias: "width",
|
|
1607
|
+
required: false
|
|
1608
|
+
}]
|
|
1609
|
+
}],
|
|
1610
|
+
maxWidth: [{
|
|
1611
|
+
type: i0.Input,
|
|
1612
|
+
args: [{
|
|
1613
|
+
isSignal: true,
|
|
1614
|
+
alias: "maxWidth",
|
|
1615
|
+
required: false
|
|
1616
|
+
}]
|
|
1617
|
+
}],
|
|
1618
|
+
offset: [{
|
|
1619
|
+
type: i0.Input,
|
|
1620
|
+
args: [{
|
|
1621
|
+
isSignal: true,
|
|
1622
|
+
alias: "offset",
|
|
1623
|
+
required: false
|
|
1624
|
+
}]
|
|
1625
|
+
}],
|
|
1626
|
+
viewportMargin: [{
|
|
1627
|
+
type: i0.Input,
|
|
1628
|
+
args: [{
|
|
1629
|
+
isSignal: true,
|
|
1630
|
+
alias: "viewportMargin",
|
|
1631
|
+
required: false
|
|
1632
|
+
}]
|
|
1633
|
+
}],
|
|
1634
|
+
closeOnOutsideClick: [{
|
|
1635
|
+
type: i0.Input,
|
|
1636
|
+
args: [{
|
|
1637
|
+
isSignal: true,
|
|
1638
|
+
alias: "closeOnOutsideClick",
|
|
1639
|
+
required: false
|
|
1640
|
+
}]
|
|
1641
|
+
}],
|
|
1642
|
+
closeOnEscape: [{
|
|
1643
|
+
type: i0.Input,
|
|
1644
|
+
args: [{
|
|
1645
|
+
isSignal: true,
|
|
1646
|
+
alias: "closeOnEscape",
|
|
1647
|
+
required: false
|
|
1648
|
+
}]
|
|
1649
|
+
}],
|
|
1650
|
+
focusTrap: [{
|
|
1651
|
+
type: i0.Input,
|
|
1652
|
+
args: [{
|
|
1653
|
+
isSignal: true,
|
|
1654
|
+
alias: "focusTrap",
|
|
1655
|
+
required: false
|
|
1656
|
+
}]
|
|
1657
|
+
}],
|
|
1658
|
+
restoreFocus: [{
|
|
1659
|
+
type: i0.Input,
|
|
1660
|
+
args: [{
|
|
1661
|
+
isSignal: true,
|
|
1662
|
+
alias: "restoreFocus",
|
|
1663
|
+
required: false
|
|
1664
|
+
}]
|
|
1665
|
+
}],
|
|
1666
|
+
autoFocus: [{
|
|
1667
|
+
type: i0.Input,
|
|
1668
|
+
args: [{
|
|
1669
|
+
isSignal: true,
|
|
1670
|
+
alias: "autoFocus",
|
|
1671
|
+
required: false
|
|
1672
|
+
}]
|
|
1673
|
+
}],
|
|
1674
|
+
initialFocus: [{
|
|
1675
|
+
type: i0.Input,
|
|
1676
|
+
args: [{
|
|
1677
|
+
isSignal: true,
|
|
1678
|
+
alias: "initialFocus",
|
|
1679
|
+
required: false
|
|
1680
|
+
}]
|
|
1681
|
+
}],
|
|
1682
|
+
showArrow: [{
|
|
1683
|
+
type: i0.Input,
|
|
1684
|
+
args: [{
|
|
1685
|
+
isSignal: true,
|
|
1686
|
+
alias: "showArrow",
|
|
1687
|
+
required: false
|
|
1688
|
+
}]
|
|
1689
|
+
}],
|
|
1690
|
+
ariaLabel: [{
|
|
1691
|
+
type: i0.Input,
|
|
1692
|
+
args: [{
|
|
1693
|
+
isSignal: true,
|
|
1694
|
+
alias: "ariaLabel",
|
|
1695
|
+
required: false
|
|
1696
|
+
}]
|
|
1697
|
+
}],
|
|
1698
|
+
ariaLabelledBy: [{
|
|
1699
|
+
type: i0.Input,
|
|
1700
|
+
args: [{
|
|
1701
|
+
isSignal: true,
|
|
1702
|
+
alias: "ariaLabelledBy",
|
|
1703
|
+
required: false
|
|
1704
|
+
}]
|
|
1705
|
+
}],
|
|
1706
|
+
ariaDescribedBy: [{
|
|
1707
|
+
type: i0.Input,
|
|
1708
|
+
args: [{
|
|
1709
|
+
isSignal: true,
|
|
1710
|
+
alias: "ariaDescribedBy",
|
|
1711
|
+
required: false
|
|
1712
|
+
}]
|
|
1713
|
+
}],
|
|
1714
|
+
opened: [{
|
|
1715
|
+
type: i0.Output,
|
|
1716
|
+
args: ["opened"]
|
|
1717
|
+
}],
|
|
1718
|
+
accepted: [{
|
|
1719
|
+
type: i0.Output,
|
|
1720
|
+
args: ["accepted"]
|
|
1721
|
+
}],
|
|
1722
|
+
rejected: [{
|
|
1723
|
+
type: i0.Output,
|
|
1724
|
+
args: ["rejected"]
|
|
1725
|
+
}],
|
|
1726
|
+
closed: [{
|
|
1727
|
+
type: i0.Output,
|
|
1728
|
+
args: ["closed"]
|
|
1729
|
+
}]
|
|
1730
|
+
}
|
|
1731
|
+
});
|
|
997
1732
|
const AerisConfirmPopupModule = [
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1733
|
+
AerisConfirmPopup,
|
|
1734
|
+
AerisConfirmPopupIconTemplate,
|
|
1735
|
+
AerisConfirmPopupMessageTemplate,
|
|
1736
|
+
AerisConfirmPopupFooterTemplate,
|
|
1737
|
+
AerisConfirmPopupHeadlessTemplate
|
|
1003
1738
|
];
|
|
1004
|
-
|
|
1005
|
-
/**
|
|
1006
|
-
* Generated bundle index. Do not edit.
|
|
1007
|
-
*/
|
|
1008
|
-
|
|
1009
1739
|
export { AerisConfirmPopup, AerisConfirmPopupFooterTemplate, AerisConfirmPopupHeadlessTemplate, AerisConfirmPopupIconTemplate, AerisConfirmPopupMessageTemplate, AerisConfirmPopupModule, AerisConfirmPopupRef, AerisConfirmPopupService };
|
|
1010
|
-
|
|
1740
|
+
|
|
1741
|
+
//# sourceMappingURL=aeris-ui-core-confirm-popup.mjs.map
|