@aeris-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.11
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 +232 -191
- package/THIRD_PARTY_LICENSES.md +48 -0
- package/fesm2022/aeris-ui-core-accordion.mjs +666 -273
- 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 +1301 -450
- 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 +221 -101
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +609 -199
- package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button-forms.mjs +78 -0
- package/fesm2022/aeris-ui-core-button-forms.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-button-group.mjs +554 -36
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button.mjs +911 -137
- 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 +835 -369
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +1294 -525
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +594 -262
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-checkbox.mjs +619 -150
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chip.mjs +1109 -121
- 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 +687 -0
- package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-color-picker.mjs +2436 -1076
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-command-palette.mjs +996 -0
- package/fesm2022/aeris-ui-core-command-palette.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-compare.mjs +870 -338
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1454 -575
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1499 -760
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +975 -449
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs +946 -0
- package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-date-picker.mjs +2538 -1183
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +1187 -368
- 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 +1712 -345
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +418 -254
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +1808 -783
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +1529 -536
- 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 +2821 -1143
- 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 +496 -132
- 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 +713 -257
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +1095 -297
- 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 +703 -160
- package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-kbd.mjs +243 -0
- package/fesm2022/aeris-ui-core-kbd.mjs.map +1 -0
- 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-listbox.mjs +789 -0
- package/fesm2022/aeris-ui-core-listbox.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-mega-menu.mjs +662 -388
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +1111 -478
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +1081 -411
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-message.mjs +513 -147
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-meter-group.mjs +641 -230
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +1832 -577
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-navbar.mjs +1407 -0
- package/fesm2022/aeris-ui-core-navbar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-order-list.mjs +748 -220
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +521 -201
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +671 -127
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +602 -210
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-password.mjs +1046 -269
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +1796 -703
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-popover.mjs +1354 -385
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +609 -182
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +428 -133
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-radio-button.mjs +502 -132
- 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 +279 -69
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-select-native.mjs +145 -0
- package/fesm2022/aeris-ui-core-select-native.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-select.mjs +1984 -668
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-sidebar.mjs +1293 -0
- package/fesm2022/aeris-ui-core-sidebar.mjs.map +1 -0
- 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 +882 -337
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +972 -268
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +831 -356
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-stepper.mjs +705 -256
- 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 +2927 -923
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +855 -283
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +919 -221
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1368 -1407
- 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 +966 -447
- 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 +1109 -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 +1340 -131
- 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 +1650 -627
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +2442 -994
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +1257 -670
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +1601 -312
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +48 -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-color-derivation.js +1 -1
- package/schematics/runtime/theme-builder/aeris-contrast.js +38 -17
- package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-foundation.js +13 -8
- package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js +33 -23
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-generator.js +8 -2
- package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js +63 -76
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js +15 -5
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js +18 -2
- package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme.js +121 -34
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
- package/styles/_choice-card.scss +93 -0
- package/styles/_fallback-colors.scss +10 -0
- package/styles/_icon-artwork.scss +14 -0
- package/styles/_icon-template.scss +42 -0
- package/styles/_mobile.scss +16 -0
- package/styles/_selection-icons.scss +12 -0
- package/styles/_table-pinning.scss +119 -0
- package/styles/_tokens.scss +5 -5
- package/styles/aeris.css +447 -137
- package/styles/controls.css +205 -35
- package/tools/aeris-theme.mjs +4 -4
- package/tools/aeris-theme.schema.json +18 -13
- 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 +339 -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 +48 -27
- package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
- package/types/aeris-ui-core-button-forms.d.ts +18 -0
- package/types/aeris-ui-core-button-group.d.ts +150 -16
- package/types/aeris-ui-core-button.d.ts +274 -67
- package/types/aeris-ui-core-card.d.ts +74 -37
- package/types/aeris-ui-core-carousel.d.ts +213 -117
- package/types/aeris-ui-core-cascade-select.d.ts +275 -123
- package/types/aeris-ui-core-chart.d.ts +150 -84
- package/types/aeris-ui-core-checkbox.d.ts +173 -54
- package/types/aeris-ui-core-chip.d.ts +316 -56
- package/types/aeris-ui-core-class-names.d.ts +22 -20
- package/types/aeris-ui-core-code-block.d.ts +201 -0
- package/types/aeris-ui-core-color-picker.d.ts +450 -143
- package/types/aeris-ui-core-command-palette.d.ts +267 -0
- package/types/aeris-ui-core-compare.d.ts +230 -102
- package/types/aeris-ui-core-confirm-dialog.d.ts +450 -245
- package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
- package/types/aeris-ui-core-context-menu.d.ts +270 -146
- package/types/aeris-ui-core-date-picker.d.ts +594 -219
- package/types/aeris-ui-core-dialog.d.ts +301 -117
- package/types/aeris-ui-core-divider.d.ts +58 -20
- package/types/aeris-ui-core-drawer.d.ts +380 -112
- package/types/aeris-ui-core-dynamic-dialog.d.ts +162 -137
- package/types/aeris-ui-core-editor.d.ts +257 -123
- package/types/aeris-ui-core-file-upload.d.ts +385 -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 +636 -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 +129 -62
- package/types/aeris-ui-core-input-group.d.ts +84 -33
- package/types/aeris-ui-core-input-mask.d.ts +201 -69
- package/types/aeris-ui-core-input-number.d.ts +291 -87
- package/types/aeris-ui-core-input-otp.d.ts +191 -81
- package/types/aeris-ui-core-input-text.d.ts +195 -60
- package/types/aeris-ui-core-kbd.d.ts +74 -0
- package/types/aeris-ui-core-key-filter.d.ts +53 -39
- package/types/aeris-ui-core-listbox.d.ts +222 -0
- package/types/aeris-ui-core-mega-menu.d.ts +181 -121
- package/types/aeris-ui-core-menu.d.ts +283 -168
- package/types/aeris-ui-core-menubar.d.ts +289 -135
- package/types/aeris-ui-core-message.d.ts +138 -60
- package/types/aeris-ui-core-meter-group.d.ts +169 -90
- package/types/aeris-ui-core-multi-select.d.ts +469 -180
- package/types/aeris-ui-core-navbar.d.ts +208 -0
- package/types/aeris-ui-core-order-list.d.ts +168 -66
- package/types/aeris-ui-core-organization-chart.d.ts +139 -77
- package/types/aeris-ui-core-paginator.d.ts +129 -38
- package/types/aeris-ui-core-panel.d.ts +149 -78
- package/types/aeris-ui-core-password.d.ts +276 -102
- package/types/aeris-ui-core-pick-list.d.ts +428 -179
- package/types/aeris-ui-core-popover.d.ts +294 -105
- package/types/aeris-ui-core-progress-bar.d.ts +163 -73
- package/types/aeris-ui-core-progress-spinner.d.ts +116 -48
- package/types/aeris-ui-core-radio-button.d.ts +146 -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 +73 -29
- package/types/aeris-ui-core-select-native.d.ts +40 -0
- package/types/aeris-ui-core-select.d.ts +487 -217
- package/types/aeris-ui-core-sidebar.d.ts +220 -0
- 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 +224 -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 +729 -304
- package/types/aeris-ui-core-tabs.d.ts +193 -76
- package/types/aeris-ui-core-textarea.d.ts +271 -78
- package/types/aeris-ui-core-theme-builder.d.ts +220 -463
- package/types/aeris-ui-core-theming.d.ts +42 -45
- package/types/aeris-ui-core-tiered-menu.d.ts +257 -142
- package/types/aeris-ui-core-timeline.d.ts +109 -71
- package/types/aeris-ui-core-toast.d.ts +231 -115
- package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
- package/types/aeris-ui-core-toolbar.d.ts +314 -47
- package/types/aeris-ui-core-tooltip.d.ts +157 -88
- package/types/aeris-ui-core-tree-select.d.ts +394 -171
- package/types/aeris-ui-core-tree-table.d.ts +629 -288
- package/types/aeris-ui-core-tree.d.ts +294 -165
- package/types/aeris-ui-core.d.ts +338 -74
|
@@ -1,112 +1,297 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
class AerisInplaceDisplayTemplate {
|
|
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
|
-
|
|
1
|
+
import { ɵAerisIcon } from "@aeris-ui/core";
|
|
2
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import { Component, Directive, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, output, viewChild } from "@angular/core";
|
|
5
|
+
var AerisInplaceDisplayTemplate = class AerisInplaceDisplayTemplate {
|
|
6
|
+
template = inject(TemplateRef);
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
8
|
+
minVersion: "12.0.0",
|
|
9
|
+
version: "22.2.3",
|
|
10
|
+
ngImport: i0,
|
|
11
|
+
type: AerisInplaceDisplayTemplate,
|
|
12
|
+
deps: [],
|
|
13
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
14
|
+
});
|
|
15
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
16
|
+
minVersion: "14.0.0",
|
|
17
|
+
version: "22.2.3",
|
|
18
|
+
type: AerisInplaceDisplayTemplate,
|
|
19
|
+
isStandalone: true,
|
|
20
|
+
selector: "ng-template[aerisInplaceDisplay]",
|
|
21
|
+
ngImport: i0
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
25
|
+
minVersion: "12.0.0",
|
|
26
|
+
version: "22.2.3",
|
|
27
|
+
ngImport: i0,
|
|
28
|
+
type: AerisInplaceDisplayTemplate,
|
|
29
|
+
decorators: [{
|
|
30
|
+
type: Directive,
|
|
31
|
+
args: [{ selector: "ng-template[aerisInplaceDisplay]" }]
|
|
32
|
+
}]
|
|
33
|
+
});
|
|
34
|
+
var AerisInplaceContentTemplate = class AerisInplaceContentTemplate {
|
|
35
|
+
template = inject(TemplateRef);
|
|
36
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
37
|
+
minVersion: "12.0.0",
|
|
38
|
+
version: "22.2.3",
|
|
39
|
+
ngImport: i0,
|
|
40
|
+
type: AerisInplaceContentTemplate,
|
|
41
|
+
deps: [],
|
|
42
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
43
|
+
});
|
|
44
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
45
|
+
minVersion: "14.0.0",
|
|
46
|
+
version: "22.2.3",
|
|
47
|
+
type: AerisInplaceContentTemplate,
|
|
48
|
+
isStandalone: true,
|
|
49
|
+
selector: "ng-template[aerisInplaceContent]",
|
|
50
|
+
ngImport: i0
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
54
|
+
minVersion: "12.0.0",
|
|
55
|
+
version: "22.2.3",
|
|
56
|
+
ngImport: i0,
|
|
57
|
+
type: AerisInplaceContentTemplate,
|
|
58
|
+
decorators: [{
|
|
59
|
+
type: Directive,
|
|
60
|
+
args: [{ selector: "ng-template[aerisInplaceContent]" }]
|
|
61
|
+
}]
|
|
62
|
+
});
|
|
63
|
+
var AerisInplace = class AerisInplace {
|
|
64
|
+
closeIconTemplate = input(...ngDevMode ? [void 0, { debugName: "closeIconTemplate" }] : /* istanbul ignore next */ []);
|
|
65
|
+
static nextId = 0;
|
|
66
|
+
displayButton = viewChild("displayButton", ...ngDevMode ? [{ debugName: "displayButton" }] : /* istanbul ignore next */ []);
|
|
67
|
+
contentPanel = viewChild("contentPanel", ...ngDevMode ? [{ debugName: "contentPanel" }] : /* istanbul ignore next */ []);
|
|
68
|
+
generatedContentId = `aeris-inplace-content-${++AerisInplace.nextId}`;
|
|
69
|
+
activateCallback = () => this.activate();
|
|
70
|
+
closeCallback = () => this.deactivate();
|
|
71
|
+
active = model(false, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
|
|
72
|
+
label = input("Show content", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
73
|
+
disabled = input(false, {
|
|
74
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
75
|
+
transform: booleanAttribute
|
|
76
|
+
});
|
|
77
|
+
closable = input(false, {
|
|
78
|
+
...ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {},
|
|
79
|
+
transform: booleanAttribute
|
|
80
|
+
});
|
|
81
|
+
autofocusContent = input(true, {
|
|
82
|
+
...ngDevMode ? { debugName: "autofocusContent" } : /* istanbul ignore next */ {},
|
|
83
|
+
transform: booleanAttribute
|
|
84
|
+
});
|
|
85
|
+
closeOnEscape = input(true, {
|
|
86
|
+
...ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {},
|
|
87
|
+
transform: booleanAttribute
|
|
88
|
+
});
|
|
89
|
+
closeAriaLabel = input("Close content", ...ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []);
|
|
90
|
+
contentId = input(this.generatedContentId, ...ngDevMode ? [{ debugName: "contentId" }] : /* istanbul ignore next */ []);
|
|
91
|
+
ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
92
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
93
|
+
ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
94
|
+
ariaLive = input("polite", ...ngDevMode ? [{ debugName: "ariaLive" }] : /* istanbul ignore next */ []);
|
|
95
|
+
activated = output();
|
|
96
|
+
deactivated = output();
|
|
97
|
+
displayTemplate = contentChild(AerisInplaceDisplayTemplate, ...ngDevMode ? [{ debugName: "displayTemplate" }] : /* istanbul ignore next */ []);
|
|
98
|
+
contentTemplate = contentChild(AerisInplaceContentTemplate, ...ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []);
|
|
99
|
+
displayContext = computed(() => ({
|
|
100
|
+
$implicit: this,
|
|
101
|
+
active: this.active(),
|
|
102
|
+
activate: this.activateCallback
|
|
103
|
+
}), ...ngDevMode ? [{ debugName: "displayContext" }] : /* istanbul ignore next */ []);
|
|
104
|
+
contentContext = computed(() => ({
|
|
105
|
+
$implicit: this,
|
|
106
|
+
active: this.active(),
|
|
107
|
+
close: this.closeCallback
|
|
108
|
+
}), ...ngDevMode ? [{ debugName: "contentContext" }] : /* istanbul ignore next */ []);
|
|
109
|
+
activate(originalEvent = null, reason = "api") {
|
|
110
|
+
if (this.disabled() || this.active()) return;
|
|
111
|
+
this.active.set(true);
|
|
112
|
+
this.activated.emit({
|
|
113
|
+
active: true,
|
|
114
|
+
originalEvent,
|
|
115
|
+
reason
|
|
116
|
+
});
|
|
117
|
+
if (this.autofocusContent()) queueMicrotask(() => this.focusContent());
|
|
118
|
+
}
|
|
119
|
+
deactivate(originalEvent = null, reason = "api") {
|
|
120
|
+
if (!this.active()) return;
|
|
121
|
+
this.active.set(false);
|
|
122
|
+
this.deactivated.emit({
|
|
123
|
+
active: false,
|
|
124
|
+
originalEvent,
|
|
125
|
+
reason
|
|
126
|
+
});
|
|
127
|
+
queueMicrotask(() => this.focusDisplay());
|
|
128
|
+
}
|
|
129
|
+
toggle(originalEvent = null) {
|
|
130
|
+
if (this.active()) this.deactivate(originalEvent);
|
|
131
|
+
else this.activate(originalEvent);
|
|
132
|
+
}
|
|
133
|
+
focusDisplay(options) {
|
|
134
|
+
this.displayButton()?.nativeElement.focus(options);
|
|
135
|
+
}
|
|
136
|
+
focusContent(options) {
|
|
137
|
+
const panel = this.contentPanel()?.nativeElement;
|
|
138
|
+
if (!panel) return;
|
|
139
|
+
(panel.querySelector("input:not([disabled]), textarea:not([disabled]), select:not([disabled]), button:not([disabled]), a[href], [tabindex]:not([tabindex=\"-1\"])") ?? panel).focus(options);
|
|
140
|
+
}
|
|
141
|
+
handleContentKeydown(event) {
|
|
142
|
+
if (event.key !== "Escape" || !this.closeOnEscape()) return;
|
|
143
|
+
event.preventDefault();
|
|
144
|
+
event.stopPropagation();
|
|
145
|
+
this.deactivate(event, "escape");
|
|
146
|
+
}
|
|
147
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
148
|
+
minVersion: "12.0.0",
|
|
149
|
+
version: "22.2.3",
|
|
150
|
+
ngImport: i0,
|
|
151
|
+
type: AerisInplace,
|
|
152
|
+
deps: [],
|
|
153
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
154
|
+
});
|
|
155
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
156
|
+
minVersion: "17.0.0",
|
|
157
|
+
version: "22.2.3",
|
|
158
|
+
type: AerisInplace,
|
|
159
|
+
isStandalone: true,
|
|
160
|
+
selector: "aeris-inplace",
|
|
161
|
+
inputs: {
|
|
162
|
+
closeIconTemplate: {
|
|
163
|
+
classPropertyName: "closeIconTemplate",
|
|
164
|
+
publicName: "closeIconTemplate",
|
|
165
|
+
isSignal: true,
|
|
166
|
+
isRequired: false,
|
|
167
|
+
transformFunction: null
|
|
168
|
+
},
|
|
169
|
+
active: {
|
|
170
|
+
classPropertyName: "active",
|
|
171
|
+
publicName: "active",
|
|
172
|
+
isSignal: true,
|
|
173
|
+
isRequired: false,
|
|
174
|
+
transformFunction: null
|
|
175
|
+
},
|
|
176
|
+
label: {
|
|
177
|
+
classPropertyName: "label",
|
|
178
|
+
publicName: "label",
|
|
179
|
+
isSignal: true,
|
|
180
|
+
isRequired: false,
|
|
181
|
+
transformFunction: null
|
|
182
|
+
},
|
|
183
|
+
disabled: {
|
|
184
|
+
classPropertyName: "disabled",
|
|
185
|
+
publicName: "disabled",
|
|
186
|
+
isSignal: true,
|
|
187
|
+
isRequired: false,
|
|
188
|
+
transformFunction: null
|
|
189
|
+
},
|
|
190
|
+
closable: {
|
|
191
|
+
classPropertyName: "closable",
|
|
192
|
+
publicName: "closable",
|
|
193
|
+
isSignal: true,
|
|
194
|
+
isRequired: false,
|
|
195
|
+
transformFunction: null
|
|
196
|
+
},
|
|
197
|
+
autofocusContent: {
|
|
198
|
+
classPropertyName: "autofocusContent",
|
|
199
|
+
publicName: "autofocusContent",
|
|
200
|
+
isSignal: true,
|
|
201
|
+
isRequired: false,
|
|
202
|
+
transformFunction: null
|
|
203
|
+
},
|
|
204
|
+
closeOnEscape: {
|
|
205
|
+
classPropertyName: "closeOnEscape",
|
|
206
|
+
publicName: "closeOnEscape",
|
|
207
|
+
isSignal: true,
|
|
208
|
+
isRequired: false,
|
|
209
|
+
transformFunction: null
|
|
210
|
+
},
|
|
211
|
+
closeAriaLabel: {
|
|
212
|
+
classPropertyName: "closeAriaLabel",
|
|
213
|
+
publicName: "closeAriaLabel",
|
|
214
|
+
isSignal: true,
|
|
215
|
+
isRequired: false,
|
|
216
|
+
transformFunction: null
|
|
217
|
+
},
|
|
218
|
+
contentId: {
|
|
219
|
+
classPropertyName: "contentId",
|
|
220
|
+
publicName: "contentId",
|
|
221
|
+
isSignal: true,
|
|
222
|
+
isRequired: false,
|
|
223
|
+
transformFunction: null
|
|
224
|
+
},
|
|
225
|
+
ariaLabel: {
|
|
226
|
+
classPropertyName: "ariaLabel",
|
|
227
|
+
publicName: "ariaLabel",
|
|
228
|
+
isSignal: true,
|
|
229
|
+
isRequired: false,
|
|
230
|
+
transformFunction: null
|
|
231
|
+
},
|
|
232
|
+
ariaLabelledBy: {
|
|
233
|
+
classPropertyName: "ariaLabelledBy",
|
|
234
|
+
publicName: "ariaLabelledBy",
|
|
235
|
+
isSignal: true,
|
|
236
|
+
isRequired: false,
|
|
237
|
+
transformFunction: null
|
|
238
|
+
},
|
|
239
|
+
ariaDescribedBy: {
|
|
240
|
+
classPropertyName: "ariaDescribedBy",
|
|
241
|
+
publicName: "ariaDescribedBy",
|
|
242
|
+
isSignal: true,
|
|
243
|
+
isRequired: false,
|
|
244
|
+
transformFunction: null
|
|
245
|
+
},
|
|
246
|
+
ariaLive: {
|
|
247
|
+
classPropertyName: "ariaLive",
|
|
248
|
+
publicName: "ariaLive",
|
|
249
|
+
isSignal: true,
|
|
250
|
+
isRequired: false,
|
|
251
|
+
transformFunction: null
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
outputs: {
|
|
255
|
+
active: "activeChange",
|
|
256
|
+
activated: "activated",
|
|
257
|
+
deactivated: "deactivated"
|
|
258
|
+
},
|
|
259
|
+
host: {
|
|
260
|
+
properties: {
|
|
261
|
+
"attr.data-active": "active() || null",
|
|
262
|
+
"attr.data-disabled": "disabled() || null",
|
|
263
|
+
"attr.data-closable": "closable() || null"
|
|
264
|
+
},
|
|
265
|
+
classAttribute: "aeris-inplace"
|
|
266
|
+
},
|
|
267
|
+
queries: [{
|
|
268
|
+
propertyName: "displayTemplate",
|
|
269
|
+
first: true,
|
|
270
|
+
predicate: AerisInplaceDisplayTemplate,
|
|
271
|
+
descendants: true,
|
|
272
|
+
isSignal: true
|
|
273
|
+
}, {
|
|
274
|
+
propertyName: "contentTemplate",
|
|
275
|
+
first: true,
|
|
276
|
+
predicate: AerisInplaceContentTemplate,
|
|
277
|
+
descendants: true,
|
|
278
|
+
isSignal: true
|
|
279
|
+
}],
|
|
280
|
+
viewQueries: [{
|
|
281
|
+
propertyName: "displayButton",
|
|
282
|
+
first: true,
|
|
283
|
+
predicate: ["displayButton"],
|
|
284
|
+
descendants: true,
|
|
285
|
+
isSignal: true
|
|
286
|
+
}, {
|
|
287
|
+
propertyName: "contentPanel",
|
|
288
|
+
first: true,
|
|
289
|
+
predicate: ["contentPanel"],
|
|
290
|
+
descendants: true,
|
|
291
|
+
isSignal: true
|
|
292
|
+
}],
|
|
293
|
+
ngImport: i0,
|
|
294
|
+
template: `
|
|
110
295
|
@if (!active()) {
|
|
111
296
|
<button
|
|
112
297
|
#displayButton
|
|
@@ -157,16 +342,52 @@ class AerisInplace {
|
|
|
157
342
|
[attr.aria-label]="closeAriaLabel()"
|
|
158
343
|
(click)="deactivate($event, 'close')"
|
|
159
344
|
>
|
|
160
|
-
|
|
345
|
+
@if (closeIconTemplate(); as customIcon) {
|
|
346
|
+
<span class="aeris-inplace__close-icon" aria-hidden="true" data-aeris-custom-icon
|
|
347
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
348
|
+
/></span>
|
|
349
|
+
} @else {
|
|
350
|
+
<span
|
|
351
|
+
aerisInternalIcon="close"
|
|
352
|
+
class="aeris-inplace__close-icon"
|
|
353
|
+
aria-hidden="true"
|
|
354
|
+
></span>
|
|
355
|
+
}
|
|
161
356
|
</button>
|
|
162
357
|
}
|
|
163
358
|
</div>
|
|
164
359
|
}
|
|
165
|
-
`,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
360
|
+
`,
|
|
361
|
+
isInline: true,
|
|
362
|
+
styles: [":host,.aeris-inplace,.aeris-inplace *{box-sizing:border-box}:host(.aeris-inplace){min-inline-size:0;max-inline-size:100%;display:block;color:var(--aeris-inplace-text, var(--aeris-text, #111111));font:inherit}.aeris-inplace__display{max-inline-size:100%;min-block-size:var(--aeris-inplace-display-min-height, var(--aeris-control-height, 2.625rem));display:inline-flex;align-items:center;justify-content:flex-start;padding-block:var(--aeris-inplace-display-padding-block, var(--aeris-item-padding-y, .5rem));padding-inline:var(--aeris-inplace-display-padding-inline, var(--aeris-item-padding-x, .75rem));border:1px solid transparent;border-radius:var(--aeris-inplace-radius, var(--aeris-radius-control, .4375rem));background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;transition:border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}@media(hover:hover){.aeris-inplace__display:hover:not(:disabled){border-color:var(--aeris-inplace-display-border, var(--aeris-border, #efefef));background:var(--aeris-inplace-display-hover, var(--aeris-surface-2, #f3f3f3))}}.aeris-inplace__display:focus-visible,.aeris-inplace__close:focus-visible,.aeris-inplace__content:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-inplace__display:disabled{opacity:var(--aeris-disabled-opacity, .52);cursor:not-allowed}.aeris-inplace__label{min-inline-size:0;overflow-wrap:anywhere}.aeris-inplace__content{position:relative;min-inline-size:0;max-inline-size:100%;border:1px solid var(--aeris-inplace-content-border, var(--aeris-border));border-radius:var(--aeris-inplace-radius, var(--aeris-radius-control, .4375rem));background:var(--aeris-inplace-content-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-inplace-content-shadow, var(--aeris-shadow-sm, 0 2px 5px rgba(0, 0, 0, .14)));animation:aeris-inplace-enter var(--aeris-motion-normal, .15s) var(--aeris-ease-enter, ease-out)}.aeris-inplace__body{min-inline-size:0;padding:var(--aeris-inplace-content-padding, 1rem);overflow-wrap:anywhere}.aeris-inplace__content--closable .aeris-inplace__body{padding-inline-end:calc(var(--aeris-inplace-content-padding, 1rem) + 2rem)}.aeris-inplace__close{position:absolute;inset-block-start:.5rem;inset-inline-end:.5rem;inline-size:var(--aeris-inplace-close-size, 1.75rem);block-size:var(--aeris-inplace-close-size, 1.75rem);display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:var(--aeris-inplace-close-color, var(--aeris-text-2, #454545));font:inherit;cursor:pointer;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}@media(hover:hover){.aeris-inplace__close:hover{background:var(--aeris-inplace-display-hover, var(--aeris-surface-2, #f3f3f3));color:var(--aeris-text, #111111)}}.aeris-inplace__close-icon{inline-size:var(--aeris-inplace-close-icon-size, .75rem);block-size:var(--aeris-inplace-close-icon-size, .75rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}@keyframes aeris-inplace-enter{0%{opacity:0;transform:translateY(-.25rem)}to{opacity:1;transform:translateY(0)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}@media(prefers-reduced-motion:reduce){.aeris-inplace__display,.aeris-inplace__content{animation:none;transition:none}}\n"],
|
|
363
|
+
dependencies: [{
|
|
364
|
+
kind: "component",
|
|
365
|
+
type: ɵAerisIcon,
|
|
366
|
+
selector: "span[aerisInternalIcon]",
|
|
367
|
+
inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
|
|
368
|
+
}, {
|
|
369
|
+
kind: "directive",
|
|
370
|
+
type: NgTemplateOutlet,
|
|
371
|
+
selector: "[ngTemplateOutlet]",
|
|
372
|
+
inputs: [
|
|
373
|
+
"ngTemplateOutletContext",
|
|
374
|
+
"ngTemplateOutlet",
|
|
375
|
+
"ngTemplateOutletInjector"
|
|
376
|
+
]
|
|
377
|
+
}]
|
|
378
|
+
});
|
|
379
|
+
};
|
|
380
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
381
|
+
minVersion: "12.0.0",
|
|
382
|
+
version: "22.2.3",
|
|
383
|
+
ngImport: i0,
|
|
384
|
+
type: AerisInplace,
|
|
385
|
+
decorators: [{
|
|
386
|
+
type: Component,
|
|
387
|
+
args: [{
|
|
388
|
+
selector: "aeris-inplace",
|
|
389
|
+
imports: [ɵAerisIcon, NgTemplateOutlet],
|
|
390
|
+
template: `
|
|
170
391
|
@if (!active()) {
|
|
171
392
|
<button
|
|
172
393
|
#displayButton
|
|
@@ -217,27 +438,170 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
217
438
|
[attr.aria-label]="closeAriaLabel()"
|
|
218
439
|
(click)="deactivate($event, 'close')"
|
|
219
440
|
>
|
|
220
|
-
|
|
441
|
+
@if (closeIconTemplate(); as customIcon) {
|
|
442
|
+
<span class="aeris-inplace__close-icon" aria-hidden="true" data-aeris-custom-icon
|
|
443
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
444
|
+
/></span>
|
|
445
|
+
} @else {
|
|
446
|
+
<span
|
|
447
|
+
aerisInternalIcon="close"
|
|
448
|
+
class="aeris-inplace__close-icon"
|
|
449
|
+
aria-hidden="true"
|
|
450
|
+
></span>
|
|
451
|
+
}
|
|
221
452
|
</button>
|
|
222
453
|
}
|
|
223
454
|
</div>
|
|
224
455
|
}
|
|
225
|
-
`,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
456
|
+
`,
|
|
457
|
+
host: {
|
|
458
|
+
class: "aeris-inplace",
|
|
459
|
+
"[attr.data-active]": "active() || null",
|
|
460
|
+
"[attr.data-disabled]": "disabled() || null",
|
|
461
|
+
"[attr.data-closable]": "closable() || null"
|
|
462
|
+
},
|
|
463
|
+
styles: [":host,.aeris-inplace,.aeris-inplace *{box-sizing:border-box}:host(.aeris-inplace){min-inline-size:0;max-inline-size:100%;display:block;color:var(--aeris-inplace-text, var(--aeris-text, #111111));font:inherit}.aeris-inplace__display{max-inline-size:100%;min-block-size:var(--aeris-inplace-display-min-height, var(--aeris-control-height, 2.625rem));display:inline-flex;align-items:center;justify-content:flex-start;padding-block:var(--aeris-inplace-display-padding-block, var(--aeris-item-padding-y, .5rem));padding-inline:var(--aeris-inplace-display-padding-inline, var(--aeris-item-padding-x, .75rem));border:1px solid transparent;border-radius:var(--aeris-inplace-radius, var(--aeris-radius-control, .4375rem));background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;transition:border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}@media(hover:hover){.aeris-inplace__display:hover:not(:disabled){border-color:var(--aeris-inplace-display-border, var(--aeris-border, #efefef));background:var(--aeris-inplace-display-hover, var(--aeris-surface-2, #f3f3f3))}}.aeris-inplace__display:focus-visible,.aeris-inplace__close:focus-visible,.aeris-inplace__content:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-inplace__display:disabled{opacity:var(--aeris-disabled-opacity, .52);cursor:not-allowed}.aeris-inplace__label{min-inline-size:0;overflow-wrap:anywhere}.aeris-inplace__content{position:relative;min-inline-size:0;max-inline-size:100%;border:1px solid var(--aeris-inplace-content-border, var(--aeris-border));border-radius:var(--aeris-inplace-radius, var(--aeris-radius-control, .4375rem));background:var(--aeris-inplace-content-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-inplace-content-shadow, var(--aeris-shadow-sm, 0 2px 5px rgba(0, 0, 0, .14)));animation:aeris-inplace-enter var(--aeris-motion-normal, .15s) var(--aeris-ease-enter, ease-out)}.aeris-inplace__body{min-inline-size:0;padding:var(--aeris-inplace-content-padding, 1rem);overflow-wrap:anywhere}.aeris-inplace__content--closable .aeris-inplace__body{padding-inline-end:calc(var(--aeris-inplace-content-padding, 1rem) + 2rem)}.aeris-inplace__close{position:absolute;inset-block-start:.5rem;inset-inline-end:.5rem;inline-size:var(--aeris-inplace-close-size, 1.75rem);block-size:var(--aeris-inplace-close-size, 1.75rem);display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:var(--aeris-inplace-close-color, var(--aeris-text-2, #454545));font:inherit;cursor:pointer;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}@media(hover:hover){.aeris-inplace__close:hover{background:var(--aeris-inplace-display-hover, var(--aeris-surface-2, #f3f3f3));color:var(--aeris-text, #111111)}}.aeris-inplace__close-icon{inline-size:var(--aeris-inplace-close-icon-size, .75rem);block-size:var(--aeris-inplace-close-icon-size, .75rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}@keyframes aeris-inplace-enter{0%{opacity:0;transform:translateY(-.25rem)}to{opacity:1;transform:translateY(0)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}@media(prefers-reduced-motion:reduce){.aeris-inplace__display,.aeris-inplace__content{animation:none;transition:none}}\n"]
|
|
464
|
+
}]
|
|
465
|
+
}],
|
|
466
|
+
propDecorators: {
|
|
467
|
+
closeIconTemplate: [{
|
|
468
|
+
type: i0.Input,
|
|
469
|
+
args: [{
|
|
470
|
+
isSignal: true,
|
|
471
|
+
alias: "closeIconTemplate",
|
|
472
|
+
required: false
|
|
473
|
+
}]
|
|
474
|
+
}],
|
|
475
|
+
displayButton: [{
|
|
476
|
+
type: i0.ViewChild,
|
|
477
|
+
args: ["displayButton", { isSignal: true }]
|
|
478
|
+
}],
|
|
479
|
+
contentPanel: [{
|
|
480
|
+
type: i0.ViewChild,
|
|
481
|
+
args: ["contentPanel", { isSignal: true }]
|
|
482
|
+
}],
|
|
483
|
+
active: [{
|
|
484
|
+
type: i0.Input,
|
|
485
|
+
args: [{
|
|
486
|
+
isSignal: true,
|
|
487
|
+
alias: "active",
|
|
488
|
+
required: false
|
|
489
|
+
}]
|
|
490
|
+
}, {
|
|
491
|
+
type: i0.Output,
|
|
492
|
+
args: ["activeChange"]
|
|
493
|
+
}],
|
|
494
|
+
label: [{
|
|
495
|
+
type: i0.Input,
|
|
496
|
+
args: [{
|
|
497
|
+
isSignal: true,
|
|
498
|
+
alias: "label",
|
|
499
|
+
required: false
|
|
500
|
+
}]
|
|
501
|
+
}],
|
|
502
|
+
disabled: [{
|
|
503
|
+
type: i0.Input,
|
|
504
|
+
args: [{
|
|
505
|
+
isSignal: true,
|
|
506
|
+
alias: "disabled",
|
|
507
|
+
required: false
|
|
508
|
+
}]
|
|
509
|
+
}],
|
|
510
|
+
closable: [{
|
|
511
|
+
type: i0.Input,
|
|
512
|
+
args: [{
|
|
513
|
+
isSignal: true,
|
|
514
|
+
alias: "closable",
|
|
515
|
+
required: false
|
|
516
|
+
}]
|
|
517
|
+
}],
|
|
518
|
+
autofocusContent: [{
|
|
519
|
+
type: i0.Input,
|
|
520
|
+
args: [{
|
|
521
|
+
isSignal: true,
|
|
522
|
+
alias: "autofocusContent",
|
|
523
|
+
required: false
|
|
524
|
+
}]
|
|
525
|
+
}],
|
|
526
|
+
closeOnEscape: [{
|
|
527
|
+
type: i0.Input,
|
|
528
|
+
args: [{
|
|
529
|
+
isSignal: true,
|
|
530
|
+
alias: "closeOnEscape",
|
|
531
|
+
required: false
|
|
532
|
+
}]
|
|
533
|
+
}],
|
|
534
|
+
closeAriaLabel: [{
|
|
535
|
+
type: i0.Input,
|
|
536
|
+
args: [{
|
|
537
|
+
isSignal: true,
|
|
538
|
+
alias: "closeAriaLabel",
|
|
539
|
+
required: false
|
|
540
|
+
}]
|
|
541
|
+
}],
|
|
542
|
+
contentId: [{
|
|
543
|
+
type: i0.Input,
|
|
544
|
+
args: [{
|
|
545
|
+
isSignal: true,
|
|
546
|
+
alias: "contentId",
|
|
547
|
+
required: false
|
|
548
|
+
}]
|
|
549
|
+
}],
|
|
550
|
+
ariaLabel: [{
|
|
551
|
+
type: i0.Input,
|
|
552
|
+
args: [{
|
|
553
|
+
isSignal: true,
|
|
554
|
+
alias: "ariaLabel",
|
|
555
|
+
required: false
|
|
556
|
+
}]
|
|
557
|
+
}],
|
|
558
|
+
ariaLabelledBy: [{
|
|
559
|
+
type: i0.Input,
|
|
560
|
+
args: [{
|
|
561
|
+
isSignal: true,
|
|
562
|
+
alias: "ariaLabelledBy",
|
|
563
|
+
required: false
|
|
564
|
+
}]
|
|
565
|
+
}],
|
|
566
|
+
ariaDescribedBy: [{
|
|
567
|
+
type: i0.Input,
|
|
568
|
+
args: [{
|
|
569
|
+
isSignal: true,
|
|
570
|
+
alias: "ariaDescribedBy",
|
|
571
|
+
required: false
|
|
572
|
+
}]
|
|
573
|
+
}],
|
|
574
|
+
ariaLive: [{
|
|
575
|
+
type: i0.Input,
|
|
576
|
+
args: [{
|
|
577
|
+
isSignal: true,
|
|
578
|
+
alias: "ariaLive",
|
|
579
|
+
required: false
|
|
580
|
+
}]
|
|
581
|
+
}],
|
|
582
|
+
activated: [{
|
|
583
|
+
type: i0.Output,
|
|
584
|
+
args: ["activated"]
|
|
585
|
+
}],
|
|
586
|
+
deactivated: [{
|
|
587
|
+
type: i0.Output,
|
|
588
|
+
args: ["deactivated"]
|
|
589
|
+
}],
|
|
590
|
+
displayTemplate: [{
|
|
591
|
+
type: i0.ContentChild,
|
|
592
|
+
args: [i0.forwardRef(() => AerisInplaceDisplayTemplate), { isSignal: true }]
|
|
593
|
+
}],
|
|
594
|
+
contentTemplate: [{
|
|
595
|
+
type: i0.ContentChild,
|
|
596
|
+
args: [i0.forwardRef(() => AerisInplaceContentTemplate), { isSignal: true }]
|
|
597
|
+
}]
|
|
598
|
+
}
|
|
599
|
+
});
|
|
232
600
|
const AerisInplaceModule = [
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
601
|
+
AerisInplace,
|
|
602
|
+
AerisInplaceDisplayTemplate,
|
|
603
|
+
AerisInplaceContentTemplate
|
|
236
604
|
];
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Generated bundle index. Do not edit.
|
|
240
|
-
*/
|
|
241
|
-
|
|
242
605
|
export { AerisInplace, AerisInplaceContentTemplate, AerisInplaceDisplayTemplate, AerisInplaceModule };
|
|
243
|
-
|
|
606
|
+
|
|
607
|
+
//# sourceMappingURL=aeris-ui-core-inplace.mjs.map
|