@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,223 +1,592 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { NG_VALUE_ACCESSOR } from
|
|
5
|
-
|
|
6
|
-
class AerisPasswordHeaderTemplate {
|
|
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
|
-
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, forwardRef, inject, input, model, output, signal, viewChild } from "@angular/core";
|
|
4
|
+
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
5
|
+
import { ɵAerisAppendTo, ɵAerisIcon, ɵaerisDisplayInvalid } from "@aeris-ui/core";
|
|
6
|
+
var AerisPasswordHeaderTemplate = class AerisPasswordHeaderTemplate {
|
|
7
|
+
template = inject(TemplateRef);
|
|
8
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9
|
+
minVersion: "12.0.0",
|
|
10
|
+
version: "22.2.3",
|
|
11
|
+
ngImport: i0,
|
|
12
|
+
type: AerisPasswordHeaderTemplate,
|
|
13
|
+
deps: [],
|
|
14
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
15
|
+
});
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
17
|
+
minVersion: "14.0.0",
|
|
18
|
+
version: "22.2.3",
|
|
19
|
+
type: AerisPasswordHeaderTemplate,
|
|
20
|
+
isStandalone: true,
|
|
21
|
+
selector: "ng-template[aerisPasswordHeader]",
|
|
22
|
+
ngImport: i0
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
26
|
+
minVersion: "12.0.0",
|
|
27
|
+
version: "22.2.3",
|
|
28
|
+
ngImport: i0,
|
|
29
|
+
type: AerisPasswordHeaderTemplate,
|
|
30
|
+
decorators: [{
|
|
31
|
+
type: Directive,
|
|
32
|
+
args: [{ selector: "ng-template[aerisPasswordHeader]" }]
|
|
33
|
+
}]
|
|
34
|
+
});
|
|
35
|
+
var AerisPasswordFeedbackTemplate = class AerisPasswordFeedbackTemplate {
|
|
36
|
+
template = inject(TemplateRef);
|
|
37
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
38
|
+
minVersion: "12.0.0",
|
|
39
|
+
version: "22.2.3",
|
|
40
|
+
ngImport: i0,
|
|
41
|
+
type: AerisPasswordFeedbackTemplate,
|
|
42
|
+
deps: [],
|
|
43
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
44
|
+
});
|
|
45
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
46
|
+
minVersion: "14.0.0",
|
|
47
|
+
version: "22.2.3",
|
|
48
|
+
type: AerisPasswordFeedbackTemplate,
|
|
49
|
+
isStandalone: true,
|
|
50
|
+
selector: "ng-template[aerisPasswordFeedback]",
|
|
51
|
+
ngImport: i0
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
55
|
+
minVersion: "12.0.0",
|
|
56
|
+
version: "22.2.3",
|
|
57
|
+
ngImport: i0,
|
|
58
|
+
type: AerisPasswordFeedbackTemplate,
|
|
59
|
+
decorators: [{
|
|
60
|
+
type: Directive,
|
|
61
|
+
args: [{ selector: "ng-template[aerisPasswordFeedback]" }]
|
|
62
|
+
}]
|
|
63
|
+
});
|
|
64
|
+
var AerisPasswordFooterTemplate = class AerisPasswordFooterTemplate {
|
|
65
|
+
template = inject(TemplateRef);
|
|
66
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
67
|
+
minVersion: "12.0.0",
|
|
68
|
+
version: "22.2.3",
|
|
69
|
+
ngImport: i0,
|
|
70
|
+
type: AerisPasswordFooterTemplate,
|
|
71
|
+
deps: [],
|
|
72
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
73
|
+
});
|
|
74
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
75
|
+
minVersion: "14.0.0",
|
|
76
|
+
version: "22.2.3",
|
|
77
|
+
type: AerisPasswordFooterTemplate,
|
|
78
|
+
isStandalone: true,
|
|
79
|
+
selector: "ng-template[aerisPasswordFooter]",
|
|
80
|
+
ngImport: i0
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
84
|
+
minVersion: "12.0.0",
|
|
85
|
+
version: "22.2.3",
|
|
86
|
+
ngImport: i0,
|
|
87
|
+
type: AerisPasswordFooterTemplate,
|
|
88
|
+
decorators: [{
|
|
89
|
+
type: Directive,
|
|
90
|
+
args: [{ selector: "ng-template[aerisPasswordFooter]" }]
|
|
91
|
+
}]
|
|
92
|
+
});
|
|
33
93
|
const scoreFor = (metCount) => {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return 2;
|
|
38
|
-
return 3;
|
|
94
|
+
if (metCount <= 2) return 1;
|
|
95
|
+
if (metCount <= 4) return 2;
|
|
96
|
+
return 3;
|
|
39
97
|
};
|
|
40
98
|
const evaluateAerisPassword = (value, minLength) => {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
99
|
+
const requirements = [
|
|
100
|
+
{
|
|
101
|
+
label: `At least ${minLength} characters`,
|
|
102
|
+
met: value.length >= minLength
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
label: "One uppercase letter",
|
|
106
|
+
met: /[A-Z]/.test(value)
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
label: "One lowercase letter",
|
|
110
|
+
met: /[a-z]/.test(value)
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
label: "One number",
|
|
114
|
+
met: /\d/.test(value)
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
label: "One symbol",
|
|
118
|
+
met: /[^A-Za-z0-9\s]/.test(value)
|
|
119
|
+
}
|
|
120
|
+
];
|
|
121
|
+
if (!value) return {
|
|
122
|
+
score: 0,
|
|
123
|
+
strength: "empty",
|
|
124
|
+
label: "Enter a password",
|
|
125
|
+
requirements
|
|
126
|
+
};
|
|
127
|
+
const score = scoreFor(requirements.filter((requirement) => requirement.met).length);
|
|
128
|
+
const strength = score === 1 ? "weak" : score === 2 ? "medium" : "strong";
|
|
129
|
+
return {
|
|
130
|
+
score,
|
|
131
|
+
strength,
|
|
132
|
+
label: strength === "weak" ? "Weak password" : strength === "medium" ? "Medium password" : "Strong password",
|
|
133
|
+
requirements
|
|
134
|
+
};
|
|
55
135
|
};
|
|
56
136
|
let passwordId = 0;
|
|
57
|
-
class AerisPasswordComponent {
|
|
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
|
-
|
|
137
|
+
var AerisPasswordComponent = class AerisPasswordComponent {
|
|
138
|
+
visibleIconTemplate = input(...ngDevMode ? [void 0, { debugName: "visibleIconTemplate" }] : /* istanbul ignore next */ []);
|
|
139
|
+
maskedIconTemplate = input(...ngDevMode ? [void 0, { debugName: "maskedIconTemplate" }] : /* istanbul ignore next */ []);
|
|
140
|
+
clearIconTemplate = input(...ngDevMode ? [void 0, { debugName: "clearIconTemplate" }] : /* istanbul ignore next */ []);
|
|
141
|
+
host = inject(ElementRef);
|
|
142
|
+
inputElement = viewChild("passwordInput", ...ngDevMode ? [{ debugName: "inputElement" }] : /* istanbul ignore next */ []);
|
|
143
|
+
feedbackPanel = viewChild("feedbackPanel", ...ngDevMode ? [{ debugName: "feedbackPanel" }] : /* istanbul ignore next */ []);
|
|
144
|
+
feedbackPortal = viewChild(ɵAerisAppendTo, ...ngDevMode ? [{ debugName: "feedbackPortal" }] : /* istanbul ignore next */ []);
|
|
145
|
+
generatedId = `aeris-password-${++passwordId}`;
|
|
146
|
+
formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
|
|
147
|
+
hasFocus = signal(false, ...ngDevMode ? [{ debugName: "hasFocus" }] : /* istanbul ignore next */ []);
|
|
148
|
+
onChange = () => void 0;
|
|
149
|
+
onTouched = () => void 0;
|
|
150
|
+
value = model("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
151
|
+
visible = model(false, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
152
|
+
appendTo = input(...ngDevMode ? [void 0, { debugName: "appendTo" }] : /* istanbul ignore next */ []);
|
|
153
|
+
viewportMargin = input(8, ...ngDevMode ? [{ debugName: "viewportMargin" }] : /* istanbul ignore next */ []);
|
|
154
|
+
inputId = input("", ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
|
|
155
|
+
name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
156
|
+
placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
157
|
+
autocomplete = input("current-password", ...ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []);
|
|
158
|
+
ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
159
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
160
|
+
ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
161
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
162
|
+
appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
163
|
+
minLength = input(8, ...ngDevMode ? [{ debugName: "minLength" }] : /* istanbul ignore next */ []);
|
|
164
|
+
maxLength = input(...ngDevMode ? [void 0, { debugName: "maxLength" }] : /* istanbul ignore next */ []);
|
|
165
|
+
disabled = input(false, {
|
|
166
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
167
|
+
transform: booleanAttribute
|
|
168
|
+
});
|
|
169
|
+
readonly = input(false, {
|
|
170
|
+
...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
|
|
171
|
+
transform: booleanAttribute
|
|
172
|
+
});
|
|
173
|
+
required = input(false, {
|
|
174
|
+
...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
|
|
175
|
+
transform: booleanAttribute
|
|
176
|
+
});
|
|
177
|
+
invalid = input(false, {
|
|
178
|
+
...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
|
|
179
|
+
transform: booleanAttribute
|
|
180
|
+
});
|
|
181
|
+
touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
|
|
182
|
+
displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
|
|
183
|
+
fluid = input(false, {
|
|
184
|
+
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
185
|
+
transform: booleanAttribute
|
|
186
|
+
});
|
|
187
|
+
toggleMask = input(true, {
|
|
188
|
+
...ngDevMode ? { debugName: "toggleMask" } : /* istanbul ignore next */ {},
|
|
189
|
+
transform: booleanAttribute
|
|
190
|
+
});
|
|
191
|
+
feedback = input(true, {
|
|
192
|
+
...ngDevMode ? { debugName: "feedback" } : /* istanbul ignore next */ {},
|
|
193
|
+
transform: booleanAttribute
|
|
194
|
+
});
|
|
195
|
+
showRequirements = input(true, {
|
|
196
|
+
...ngDevMode ? { debugName: "showRequirements" } : /* istanbul ignore next */ {},
|
|
197
|
+
transform: booleanAttribute
|
|
198
|
+
});
|
|
199
|
+
clearable = input(false, {
|
|
200
|
+
...ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {},
|
|
201
|
+
transform: booleanAttribute
|
|
202
|
+
});
|
|
203
|
+
clearButtonAriaLabel = input("Clear password", ...ngDevMode ? [{ debugName: "clearButtonAriaLabel" }] : /* istanbul ignore next */ []);
|
|
204
|
+
showPasswordAriaLabel = input("Show password", ...ngDevMode ? [{ debugName: "showPasswordAriaLabel" }] : /* istanbul ignore next */ []);
|
|
205
|
+
hidePasswordAriaLabel = input("Hide password", ...ngDevMode ? [{ debugName: "hidePasswordAriaLabel" }] : /* istanbul ignore next */ []);
|
|
206
|
+
strengthEvaluator = input(evaluateAerisPassword, ...ngDevMode ? [{ debugName: "strengthEvaluator" }] : /* istanbul ignore next */ []);
|
|
207
|
+
visibilityChanged = output();
|
|
208
|
+
focused = output();
|
|
209
|
+
blurred = output();
|
|
210
|
+
touch = output();
|
|
211
|
+
feedbackId = `${this.generatedId}-feedback`;
|
|
212
|
+
headerTemplate = contentChild(AerisPasswordHeaderTemplate, ...ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []);
|
|
213
|
+
feedbackTemplate = contentChild(AerisPasswordFeedbackTemplate, ...ngDevMode ? [{ debugName: "feedbackTemplate" }] : /* istanbul ignore next */ []);
|
|
214
|
+
footerTemplate = contentChild(AerisPasswordFooterTemplate, ...ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []);
|
|
215
|
+
resolvedInputId = computed(() => this.inputId() || this.generatedId, ...ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []);
|
|
216
|
+
effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
|
|
217
|
+
strengthResult = computed(() => this.strengthEvaluator()(this.value(), this.minLength()), ...ngDevMode ? [{ debugName: "strengthResult" }] : /* istanbul ignore next */ []);
|
|
218
|
+
feedbackVisible = computed(() => this.feedback() && this.hasFocus() && !this.effectiveDisabled(), ...ngDevMode ? [{ debugName: "feedbackVisible" }] : /* istanbul ignore next */ []);
|
|
219
|
+
showClearButton = computed(() => this.clearable() && this.value().length > 0 && !this.effectiveDisabled() && !this.readonly(), ...ngDevMode ? [{ debugName: "showClearButton" }] : /* istanbul ignore next */ []);
|
|
220
|
+
resolvedAriaDescribedby = computed(() => {
|
|
221
|
+
const ids = [this.ariaDescribedBy(), this.feedbackVisible() ? this.feedbackId : ""].filter(Boolean);
|
|
222
|
+
return ids.length ? ids.join(" ") : null;
|
|
223
|
+
}, ...ngDevMode ? [{ debugName: "resolvedAriaDescribedby" }] : /* istanbul ignore next */ []);
|
|
224
|
+
writeValue(value) {
|
|
225
|
+
this.value.set(typeof value === "string" ? value : value == null ? "" : String(value));
|
|
226
|
+
}
|
|
227
|
+
registerOnChange(callback) {
|
|
228
|
+
this.onChange = callback;
|
|
229
|
+
}
|
|
230
|
+
registerOnTouched(callback) {
|
|
231
|
+
this.onTouched = callback;
|
|
232
|
+
}
|
|
233
|
+
setDisabledState(disabled) {
|
|
234
|
+
this.formDisabled.set(disabled);
|
|
235
|
+
}
|
|
236
|
+
focus(options) {
|
|
237
|
+
this.inputElement()?.nativeElement.focus(options);
|
|
238
|
+
}
|
|
239
|
+
clear() {
|
|
240
|
+
if (this.effectiveDisabled() || this.readonly()) return;
|
|
241
|
+
this.setValue("");
|
|
242
|
+
this.focus();
|
|
243
|
+
}
|
|
244
|
+
show() {
|
|
245
|
+
this.setVisible(true);
|
|
246
|
+
}
|
|
247
|
+
hide() {
|
|
248
|
+
this.setVisible(false);
|
|
249
|
+
}
|
|
250
|
+
toggleVisibility() {
|
|
251
|
+
if (this.effectiveDisabled()) return;
|
|
252
|
+
this.setVisible(!this.visible());
|
|
253
|
+
queueMicrotask(() => this.focus());
|
|
254
|
+
}
|
|
255
|
+
handleInput(event) {
|
|
256
|
+
this.setValue(event.target.value);
|
|
257
|
+
}
|
|
258
|
+
handleFocus(event) {
|
|
259
|
+
this.hasFocus.set(true);
|
|
260
|
+
this.focused.emit(event);
|
|
261
|
+
}
|
|
262
|
+
handleInputBlur(event) {
|
|
263
|
+
this.blurred.emit(event);
|
|
264
|
+
}
|
|
265
|
+
handleFocusOut(event) {
|
|
266
|
+
const nextTarget = event.relatedTarget;
|
|
267
|
+
if (nextTarget instanceof Node && (this.host.nativeElement.contains(nextTarget) || this.feedbackPanel()?.nativeElement.contains(nextTarget))) return;
|
|
268
|
+
this.feedbackPortal()?.restore();
|
|
269
|
+
this.hasFocus.set(false);
|
|
270
|
+
this.touch.emit();
|
|
271
|
+
this.onTouched();
|
|
272
|
+
}
|
|
273
|
+
setValue(value) {
|
|
274
|
+
if (this.value() === value) return;
|
|
275
|
+
this.value.set(value);
|
|
276
|
+
this.onChange(value);
|
|
277
|
+
}
|
|
278
|
+
setVisible(visible) {
|
|
279
|
+
if (this.visible() === visible) return;
|
|
280
|
+
this.visible.set(visible);
|
|
281
|
+
this.visibilityChanged.emit(visible);
|
|
282
|
+
}
|
|
283
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
284
|
+
minVersion: "12.0.0",
|
|
285
|
+
version: "22.2.3",
|
|
286
|
+
ngImport: i0,
|
|
287
|
+
type: AerisPasswordComponent,
|
|
288
|
+
deps: [],
|
|
289
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
290
|
+
});
|
|
291
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
292
|
+
minVersion: "17.0.0",
|
|
293
|
+
version: "22.2.3",
|
|
294
|
+
type: AerisPasswordComponent,
|
|
295
|
+
isStandalone: true,
|
|
296
|
+
selector: "aeris-password",
|
|
297
|
+
inputs: {
|
|
298
|
+
visibleIconTemplate: {
|
|
299
|
+
classPropertyName: "visibleIconTemplate",
|
|
300
|
+
publicName: "visibleIconTemplate",
|
|
301
|
+
isSignal: true,
|
|
302
|
+
isRequired: false,
|
|
303
|
+
transformFunction: null
|
|
304
|
+
},
|
|
305
|
+
maskedIconTemplate: {
|
|
306
|
+
classPropertyName: "maskedIconTemplate",
|
|
307
|
+
publicName: "maskedIconTemplate",
|
|
308
|
+
isSignal: true,
|
|
309
|
+
isRequired: false,
|
|
310
|
+
transformFunction: null
|
|
311
|
+
},
|
|
312
|
+
clearIconTemplate: {
|
|
313
|
+
classPropertyName: "clearIconTemplate",
|
|
314
|
+
publicName: "clearIconTemplate",
|
|
315
|
+
isSignal: true,
|
|
316
|
+
isRequired: false,
|
|
317
|
+
transformFunction: null
|
|
318
|
+
},
|
|
319
|
+
value: {
|
|
320
|
+
classPropertyName: "value",
|
|
321
|
+
publicName: "value",
|
|
322
|
+
isSignal: true,
|
|
323
|
+
isRequired: false,
|
|
324
|
+
transformFunction: null
|
|
325
|
+
},
|
|
326
|
+
visible: {
|
|
327
|
+
classPropertyName: "visible",
|
|
328
|
+
publicName: "visible",
|
|
329
|
+
isSignal: true,
|
|
330
|
+
isRequired: false,
|
|
331
|
+
transformFunction: null
|
|
332
|
+
},
|
|
333
|
+
appendTo: {
|
|
334
|
+
classPropertyName: "appendTo",
|
|
335
|
+
publicName: "appendTo",
|
|
336
|
+
isSignal: true,
|
|
337
|
+
isRequired: false,
|
|
338
|
+
transformFunction: null
|
|
339
|
+
},
|
|
340
|
+
viewportMargin: {
|
|
341
|
+
classPropertyName: "viewportMargin",
|
|
342
|
+
publicName: "viewportMargin",
|
|
343
|
+
isSignal: true,
|
|
344
|
+
isRequired: false,
|
|
345
|
+
transformFunction: null
|
|
346
|
+
},
|
|
347
|
+
inputId: {
|
|
348
|
+
classPropertyName: "inputId",
|
|
349
|
+
publicName: "inputId",
|
|
350
|
+
isSignal: true,
|
|
351
|
+
isRequired: false,
|
|
352
|
+
transformFunction: null
|
|
353
|
+
},
|
|
354
|
+
name: {
|
|
355
|
+
classPropertyName: "name",
|
|
356
|
+
publicName: "name",
|
|
357
|
+
isSignal: true,
|
|
358
|
+
isRequired: false,
|
|
359
|
+
transformFunction: null
|
|
360
|
+
},
|
|
361
|
+
placeholder: {
|
|
362
|
+
classPropertyName: "placeholder",
|
|
363
|
+
publicName: "placeholder",
|
|
364
|
+
isSignal: true,
|
|
365
|
+
isRequired: false,
|
|
366
|
+
transformFunction: null
|
|
367
|
+
},
|
|
368
|
+
autocomplete: {
|
|
369
|
+
classPropertyName: "autocomplete",
|
|
370
|
+
publicName: "autocomplete",
|
|
371
|
+
isSignal: true,
|
|
372
|
+
isRequired: false,
|
|
373
|
+
transformFunction: null
|
|
374
|
+
},
|
|
375
|
+
ariaLabel: {
|
|
376
|
+
classPropertyName: "ariaLabel",
|
|
377
|
+
publicName: "ariaLabel",
|
|
378
|
+
isSignal: true,
|
|
379
|
+
isRequired: false,
|
|
380
|
+
transformFunction: null
|
|
381
|
+
},
|
|
382
|
+
ariaLabelledBy: {
|
|
383
|
+
classPropertyName: "ariaLabelledBy",
|
|
384
|
+
publicName: "ariaLabelledBy",
|
|
385
|
+
isSignal: true,
|
|
386
|
+
isRequired: false,
|
|
387
|
+
transformFunction: null
|
|
388
|
+
},
|
|
389
|
+
ariaDescribedBy: {
|
|
390
|
+
classPropertyName: "ariaDescribedBy",
|
|
391
|
+
publicName: "ariaDescribedBy",
|
|
392
|
+
isSignal: true,
|
|
393
|
+
isRequired: false,
|
|
394
|
+
transformFunction: null
|
|
395
|
+
},
|
|
396
|
+
size: {
|
|
397
|
+
classPropertyName: "size",
|
|
398
|
+
publicName: "size",
|
|
399
|
+
isSignal: true,
|
|
400
|
+
isRequired: false,
|
|
401
|
+
transformFunction: null
|
|
402
|
+
},
|
|
403
|
+
appearance: {
|
|
404
|
+
classPropertyName: "appearance",
|
|
405
|
+
publicName: "appearance",
|
|
406
|
+
isSignal: true,
|
|
407
|
+
isRequired: false,
|
|
408
|
+
transformFunction: null
|
|
409
|
+
},
|
|
410
|
+
minLength: {
|
|
411
|
+
classPropertyName: "minLength",
|
|
412
|
+
publicName: "minLength",
|
|
413
|
+
isSignal: true,
|
|
414
|
+
isRequired: false,
|
|
415
|
+
transformFunction: null
|
|
416
|
+
},
|
|
417
|
+
maxLength: {
|
|
418
|
+
classPropertyName: "maxLength",
|
|
419
|
+
publicName: "maxLength",
|
|
420
|
+
isSignal: true,
|
|
421
|
+
isRequired: false,
|
|
422
|
+
transformFunction: null
|
|
423
|
+
},
|
|
424
|
+
disabled: {
|
|
425
|
+
classPropertyName: "disabled",
|
|
426
|
+
publicName: "disabled",
|
|
427
|
+
isSignal: true,
|
|
428
|
+
isRequired: false,
|
|
429
|
+
transformFunction: null
|
|
430
|
+
},
|
|
431
|
+
readonly: {
|
|
432
|
+
classPropertyName: "readonly",
|
|
433
|
+
publicName: "readonly",
|
|
434
|
+
isSignal: true,
|
|
435
|
+
isRequired: false,
|
|
436
|
+
transformFunction: null
|
|
437
|
+
},
|
|
438
|
+
required: {
|
|
439
|
+
classPropertyName: "required",
|
|
440
|
+
publicName: "required",
|
|
441
|
+
isSignal: true,
|
|
442
|
+
isRequired: false,
|
|
443
|
+
transformFunction: null
|
|
444
|
+
},
|
|
445
|
+
invalid: {
|
|
446
|
+
classPropertyName: "invalid",
|
|
447
|
+
publicName: "invalid",
|
|
448
|
+
isSignal: true,
|
|
449
|
+
isRequired: false,
|
|
450
|
+
transformFunction: null
|
|
451
|
+
},
|
|
452
|
+
touched: {
|
|
453
|
+
classPropertyName: "touched",
|
|
454
|
+
publicName: "touched",
|
|
455
|
+
isSignal: true,
|
|
456
|
+
isRequired: false,
|
|
457
|
+
transformFunction: null
|
|
458
|
+
},
|
|
459
|
+
fluid: {
|
|
460
|
+
classPropertyName: "fluid",
|
|
461
|
+
publicName: "fluid",
|
|
462
|
+
isSignal: true,
|
|
463
|
+
isRequired: false,
|
|
464
|
+
transformFunction: null
|
|
465
|
+
},
|
|
466
|
+
toggleMask: {
|
|
467
|
+
classPropertyName: "toggleMask",
|
|
468
|
+
publicName: "toggleMask",
|
|
469
|
+
isSignal: true,
|
|
470
|
+
isRequired: false,
|
|
471
|
+
transformFunction: null
|
|
472
|
+
},
|
|
473
|
+
feedback: {
|
|
474
|
+
classPropertyName: "feedback",
|
|
475
|
+
publicName: "feedback",
|
|
476
|
+
isSignal: true,
|
|
477
|
+
isRequired: false,
|
|
478
|
+
transformFunction: null
|
|
479
|
+
},
|
|
480
|
+
showRequirements: {
|
|
481
|
+
classPropertyName: "showRequirements",
|
|
482
|
+
publicName: "showRequirements",
|
|
483
|
+
isSignal: true,
|
|
484
|
+
isRequired: false,
|
|
485
|
+
transformFunction: null
|
|
486
|
+
},
|
|
487
|
+
clearable: {
|
|
488
|
+
classPropertyName: "clearable",
|
|
489
|
+
publicName: "clearable",
|
|
490
|
+
isSignal: true,
|
|
491
|
+
isRequired: false,
|
|
492
|
+
transformFunction: null
|
|
493
|
+
},
|
|
494
|
+
clearButtonAriaLabel: {
|
|
495
|
+
classPropertyName: "clearButtonAriaLabel",
|
|
496
|
+
publicName: "clearButtonAriaLabel",
|
|
497
|
+
isSignal: true,
|
|
498
|
+
isRequired: false,
|
|
499
|
+
transformFunction: null
|
|
500
|
+
},
|
|
501
|
+
showPasswordAriaLabel: {
|
|
502
|
+
classPropertyName: "showPasswordAriaLabel",
|
|
503
|
+
publicName: "showPasswordAriaLabel",
|
|
504
|
+
isSignal: true,
|
|
505
|
+
isRequired: false,
|
|
506
|
+
transformFunction: null
|
|
507
|
+
},
|
|
508
|
+
hidePasswordAriaLabel: {
|
|
509
|
+
classPropertyName: "hidePasswordAriaLabel",
|
|
510
|
+
publicName: "hidePasswordAriaLabel",
|
|
511
|
+
isSignal: true,
|
|
512
|
+
isRequired: false,
|
|
513
|
+
transformFunction: null
|
|
514
|
+
},
|
|
515
|
+
strengthEvaluator: {
|
|
516
|
+
classPropertyName: "strengthEvaluator",
|
|
517
|
+
publicName: "strengthEvaluator",
|
|
518
|
+
isSignal: true,
|
|
519
|
+
isRequired: false,
|
|
520
|
+
transformFunction: null
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
outputs: {
|
|
524
|
+
value: "valueChange",
|
|
525
|
+
visible: "visibleChange",
|
|
526
|
+
visibilityChanged: "visibilityChanged",
|
|
527
|
+
focused: "focused",
|
|
528
|
+
blurred: "blurred",
|
|
529
|
+
touch: "touch"
|
|
530
|
+
},
|
|
531
|
+
host: { properties: { "attr.data-fluid": "fluid() || null" } },
|
|
532
|
+
providers: [{
|
|
533
|
+
provide: NG_VALUE_ACCESSOR,
|
|
534
|
+
useExisting: forwardRef(() => AerisPasswordComponent),
|
|
535
|
+
multi: true
|
|
536
|
+
}],
|
|
537
|
+
queries: [
|
|
538
|
+
{
|
|
539
|
+
propertyName: "headerTemplate",
|
|
540
|
+
first: true,
|
|
541
|
+
predicate: AerisPasswordHeaderTemplate,
|
|
542
|
+
descendants: true,
|
|
543
|
+
isSignal: true
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
propertyName: "feedbackTemplate",
|
|
547
|
+
first: true,
|
|
548
|
+
predicate: AerisPasswordFeedbackTemplate,
|
|
549
|
+
descendants: true,
|
|
550
|
+
isSignal: true
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
propertyName: "footerTemplate",
|
|
554
|
+
first: true,
|
|
555
|
+
predicate: AerisPasswordFooterTemplate,
|
|
556
|
+
descendants: true,
|
|
557
|
+
isSignal: true
|
|
558
|
+
}
|
|
559
|
+
],
|
|
560
|
+
viewQueries: [
|
|
561
|
+
{
|
|
562
|
+
propertyName: "inputElement",
|
|
563
|
+
first: true,
|
|
564
|
+
predicate: ["passwordInput"],
|
|
565
|
+
descendants: true,
|
|
566
|
+
isSignal: true
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
propertyName: "feedbackPanel",
|
|
570
|
+
first: true,
|
|
571
|
+
predicate: ["feedbackPanel"],
|
|
572
|
+
descendants: true,
|
|
573
|
+
isSignal: true
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
propertyName: "feedbackPortal",
|
|
577
|
+
first: true,
|
|
578
|
+
predicate: ɵAerisAppendTo,
|
|
579
|
+
descendants: true,
|
|
580
|
+
isSignal: true
|
|
581
|
+
}
|
|
582
|
+
],
|
|
583
|
+
ngImport: i0,
|
|
584
|
+
template: `
|
|
216
585
|
<span
|
|
217
586
|
class="aeris-password"
|
|
218
587
|
[attr.data-size]="size()"
|
|
219
588
|
[attr.data-appearance]="appearance()"
|
|
220
|
-
[attr.data-invalid]="
|
|
589
|
+
[attr.data-invalid]="displayInvalid() || null"
|
|
221
590
|
[attr.data-disabled]="effectiveDisabled() || null"
|
|
222
591
|
[attr.data-readonly]="readonly() || null"
|
|
223
592
|
[attr.data-fluid]="fluid() || null"
|
|
@@ -233,14 +602,14 @@ class AerisPasswordComponent {
|
|
|
233
602
|
[placeholder]="placeholder()"
|
|
234
603
|
[autocomplete]="autocomplete()"
|
|
235
604
|
[minLength]="minLength()"
|
|
236
|
-
[
|
|
605
|
+
[attr.maxlength]="maxLength() ?? null"
|
|
237
606
|
[disabled]="effectiveDisabled()"
|
|
238
607
|
[readOnly]="readonly()"
|
|
239
608
|
[required]="required()"
|
|
240
609
|
[attr.aria-label]="ariaLabel() || null"
|
|
241
|
-
[attr.aria-labelledby]="
|
|
610
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
242
611
|
[attr.aria-describedby]="resolvedAriaDescribedby()"
|
|
243
|
-
[attr.aria-invalid]="
|
|
612
|
+
[attr.aria-invalid]="displayInvalid() || null"
|
|
244
613
|
(input)="handleInput($event)"
|
|
245
614
|
(focus)="handleFocus($event)"
|
|
246
615
|
(blur)="handleInputBlur($event)"
|
|
@@ -253,7 +622,15 @@ class AerisPasswordComponent {
|
|
|
253
622
|
class="aeris-password__action aeris-password__clear"
|
|
254
623
|
[attr.aria-label]="clearButtonAriaLabel()"
|
|
255
624
|
(click)="clear()"
|
|
256
|
-
|
|
625
|
+
>
|
|
626
|
+
@if (clearIconTemplate(); as customIcon) {
|
|
627
|
+
<span aria-hidden="true" data-aeris-custom-icon
|
|
628
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
629
|
+
/></span>
|
|
630
|
+
} @else {
|
|
631
|
+
<span aerisInternalIcon="close" aria-hidden="true"></span>
|
|
632
|
+
}
|
|
633
|
+
</button>
|
|
257
634
|
}
|
|
258
635
|
@if (toggleMask()) {
|
|
259
636
|
<button
|
|
@@ -264,17 +641,31 @@ class AerisPasswordComponent {
|
|
|
264
641
|
(click)="toggleVisibility()"
|
|
265
642
|
>
|
|
266
643
|
@if (visible()) {
|
|
267
|
-
|
|
268
|
-
<
|
|
269
|
-
|
|
270
|
-
|
|
644
|
+
@if (visibleIconTemplate(); as customIcon) {
|
|
645
|
+
<span class="aeris-custom-icon" aria-hidden="true" data-aeris-custom-icon
|
|
646
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
647
|
+
/></span>
|
|
648
|
+
} @else {
|
|
649
|
+
<span
|
|
650
|
+
aerisInternalIcon="eye"
|
|
651
|
+
class="aeris-password__visibility-mark"
|
|
652
|
+
data-visible="true"
|
|
653
|
+
aria-hidden="true"
|
|
654
|
+
></span>
|
|
655
|
+
}
|
|
271
656
|
} @else {
|
|
272
|
-
|
|
273
|
-
<
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
657
|
+
@if (maskedIconTemplate(); as customIcon) {
|
|
658
|
+
<span class="aeris-custom-icon" aria-hidden="true" data-aeris-custom-icon
|
|
659
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
660
|
+
/></span>
|
|
661
|
+
} @else {
|
|
662
|
+
<span
|
|
663
|
+
aerisInternalIcon="eyeOff"
|
|
664
|
+
class="aeris-password__visibility-mark"
|
|
665
|
+
data-visible="false"
|
|
666
|
+
aria-hidden="true"
|
|
667
|
+
></span>
|
|
668
|
+
}
|
|
278
669
|
}
|
|
279
670
|
</button>
|
|
280
671
|
}
|
|
@@ -283,7 +674,12 @@ class AerisPasswordComponent {
|
|
|
283
674
|
|
|
284
675
|
@if (feedbackVisible()) {
|
|
285
676
|
<span
|
|
677
|
+
#feedbackPanel
|
|
286
678
|
class="aeris-password__feedback"
|
|
679
|
+
[aerisInternalAppendTo]="appendTo()"
|
|
680
|
+
[aerisInternalAppendToAnchor]="passwordInput"
|
|
681
|
+
[aerisInternalAppendToMatchWidth]="true"
|
|
682
|
+
[aerisInternalAppendToCollisionPadding]="viewportMargin()"
|
|
287
683
|
[id]="feedbackId"
|
|
288
684
|
>
|
|
289
685
|
@if (headerTemplate(); as header) {
|
|
@@ -298,7 +694,7 @@ class AerisPasswordComponent {
|
|
|
298
694
|
[ngTemplateOutletContext]="{
|
|
299
695
|
$implicit: strengthResult(),
|
|
300
696
|
result: strengthResult(),
|
|
301
|
-
value: value()
|
|
697
|
+
value: value(),
|
|
302
698
|
}"
|
|
303
699
|
/>
|
|
304
700
|
} @else {
|
|
@@ -310,7 +706,8 @@ class AerisPasswordComponent {
|
|
|
310
706
|
class="aeris-password__meter"
|
|
311
707
|
[attr.data-strength]="strengthResult().strength"
|
|
312
708
|
aria-hidden="true"
|
|
313
|
-
|
|
709
|
+
><span></span><span></span><span></span
|
|
710
|
+
></span>
|
|
314
711
|
|
|
315
712
|
@if (showRequirements()) {
|
|
316
713
|
<span class="aeris-password__requirements">
|
|
@@ -331,16 +728,67 @@ class AerisPasswordComponent {
|
|
|
331
728
|
</span>
|
|
332
729
|
}
|
|
333
730
|
</span>
|
|
334
|
-
`,
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
731
|
+
`,
|
|
732
|
+
isInline: true,
|
|
733
|
+
styles: [":host{position:relative;display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-password{--_height: var(--aeris-control-height, 2.625rem);--_font-size: var(--aeris-font-size-lg, .875rem);position:relative;display:block;width:100%;color:var(--aeris-text, #111111);font-family:inherit}.aeris-password[data-size=xs]{--_height: 1.875rem;--_font-size: var(--aeris-font-size-sm, .75rem)}.aeris-password[data-size=sm]{--_height: 2.25rem;--_font-size: var(--aeris-font-size-md, .8125rem)}.aeris-password[data-size=lg]{--_height: 3rem;--_font-size: var(--aeris-font-size-xl, .9375rem)}.aeris-password__field{position:relative;display:block}.aeris-password input{width:100%;height:var(--_height);padding:.5rem 5rem .5rem .75rem;border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));outline:0;background:var(--aeris-surface, #fff);color:inherit;font:inherit;font-size:var(--_font-size);box-shadow:none;transition:border-color var(--aeris-motion-fast, .1s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-fast, .1s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-fast, .1s) var(--aeris-ease-standard, ease)}.aeris-password:not(:has(.aeris-password__actions button)) input{padding-inline-end:.75rem}.aeris-password[data-appearance=filled] input{border-color:transparent;background:var(--aeris-surface-2, #f3f3f3)}@media(hover:hover){.aeris-password input:hover:not(:disabled,:read-only){border-color:var(--aeris-control-hover-border, var(--aeris-primary, #111111))}}.aeris-password input:focus-visible{border-color:var(--aeris-control-focus-border, var(--aeris-focus, #111111));box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-focus-ring-color, var(--aeris-focus-ring-color, transparent))}.aeris-password[data-invalid] input,.aeris-password input:user-invalid{border-color:var(--aeris-control-invalid-border, var(--aeris-danger, #c81e2a))}.aeris-password[data-invalid] input:focus-visible,.aeris-password input:user-invalid:focus-visible{box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-invalid-focus-ring-color, transparent)}.aeris-password[data-disabled]{opacity:var(--aeris-disabled-opacity, .5)}.aeris-password[data-readonly] input{background:var(--aeris-surface-2, #f3f3f3)}.aeris-password__actions{position:absolute;top:50%;right:.4375rem;display:flex;align-items:center;gap:.125rem;transform:translateY(-50%)}.aeris-password__action{width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #454545);cursor:pointer}.aeris-password__action:focus-visible{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}@media(hover:hover){.aeris-password__action:hover{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}}.aeris-password__action:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:1px}.aeris-password__clear>span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-password__feedback{position:absolute;z-index:80;top:calc(100% + .4375rem);right:0;left:0;display:grid;gap:.75rem;min-width:min(19rem,100vw - 2rem);padding:.875rem;border:1px solid var(--aeris-border);border-radius:var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem));background:var(--aeris-surface, #fff);box-shadow:var(--aeris-overlay-shadow, var(--aeris-shadow-lg, 0 18px 48px rgba(0, 0, 0, .18)));font-size:var(--aeris-font-size-md, .8125rem)}.aeris-password__header,.aeris-password__footer{color:var(--aeris-text-2, #454545);line-height:var(--aeris-line-height-normal, 1.5)}.aeris-password__strength-row{display:flex;align-items:center;justify-content:space-between;gap:1rem}.aeris-password__strength-row strong{font-size:var(--aeris-font-size-md, .8125rem)}.aeris-password__strength-row>span{color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem)}.aeris-password__meter{display:grid;grid-template-columns:repeat(3,1fr);gap:.25rem}.aeris-password__meter>span{height:.25rem;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-surface-3, #e7e5df)}.aeris-password__meter[data-strength=weak]>span:first-child{background:var(--aeris-danger, #c81e2a)}.aeris-password__meter[data-strength=medium]>span:nth-child(-n+2){background:var(--aeris-warning, #c38600)}.aeris-password__meter[data-strength=strong]>span{background:var(--aeris-success, #557542)}.aeris-password__requirements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem .75rem}.aeris-password__requirements>span{display:flex;align-items:center;gap:.375rem;color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem)}.aeris-password__requirements i{position:relative;width:.875rem;height:.875rem;flex:0 0 auto;border:1px solid var(--aeris-border, #efefef);border-radius:50%}.aeris-password__requirements>span[data-met]{color:var(--aeris-success, #557542)}.aeris-password__requirements>span[data-met] i{border:0;background:currentColor;-webkit-mask:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;mask:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E')) center/100% 100% no-repeat}@media(max-width:30rem){.aeris-password__feedback{min-width:100%}.aeris-password__requirements{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.aeris-password input{transition:none}}@media(pointer:coarse){input{font-size:var(--aeris-mobile-input-font-size, 1rem)}}: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}.aeris-password__visibility-mark{display:block;width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-eye-off) center/100% 100% no-repeat;mask:var(--aeris-icon-eye-off) center/100% 100% no-repeat}.aeris-password__visibility-mark[data-visible=true]{-webkit-mask-image:var(--aeris-icon-eye);mask-image:var(--aeris-icon-eye)}\n"],
|
|
734
|
+
dependencies: [
|
|
735
|
+
{
|
|
736
|
+
kind: "component",
|
|
737
|
+
type: ɵAerisIcon,
|
|
738
|
+
selector: "span[aerisInternalIcon]",
|
|
739
|
+
inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
kind: "directive",
|
|
743
|
+
type: NgTemplateOutlet,
|
|
744
|
+
selector: "[ngTemplateOutlet]",
|
|
745
|
+
inputs: [
|
|
746
|
+
"ngTemplateOutletContext",
|
|
747
|
+
"ngTemplateOutlet",
|
|
748
|
+
"ngTemplateOutletInjector"
|
|
749
|
+
]
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
kind: "directive",
|
|
753
|
+
type: ɵAerisAppendTo,
|
|
754
|
+
selector: "[aerisInternalAppendTo]",
|
|
755
|
+
inputs: [
|
|
756
|
+
"aerisInternalAppendTo",
|
|
757
|
+
"aerisInternalAppendToDefault",
|
|
758
|
+
"aerisInternalAppendToAnchor",
|
|
759
|
+
"aerisInternalAppendToOffset",
|
|
760
|
+
"aerisInternalAppendToMatchWidth",
|
|
761
|
+
"aerisInternalAppendToPlacement",
|
|
762
|
+
"aerisInternalAppendToAlignment",
|
|
763
|
+
"aerisInternalAppendToCollisionPadding",
|
|
764
|
+
"aerisInternalAppendToPositionSelf",
|
|
765
|
+
"aerisInternalAppendToDismiss"
|
|
766
|
+
],
|
|
767
|
+
outputs: ["aerisInternalAppendToOutside"]
|
|
768
|
+
}
|
|
769
|
+
]
|
|
770
|
+
});
|
|
771
|
+
};
|
|
772
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
773
|
+
minVersion: "12.0.0",
|
|
774
|
+
version: "22.2.3",
|
|
775
|
+
ngImport: i0,
|
|
776
|
+
type: AerisPasswordComponent,
|
|
777
|
+
decorators: [{
|
|
778
|
+
type: Component,
|
|
779
|
+
args: [{
|
|
780
|
+
selector: "aeris-password",
|
|
781
|
+
imports: [
|
|
782
|
+
ɵAerisIcon,
|
|
783
|
+
NgTemplateOutlet,
|
|
784
|
+
ɵAerisAppendTo
|
|
785
|
+
],
|
|
786
|
+
template: `
|
|
339
787
|
<span
|
|
340
788
|
class="aeris-password"
|
|
341
789
|
[attr.data-size]="size()"
|
|
342
790
|
[attr.data-appearance]="appearance()"
|
|
343
|
-
[attr.data-invalid]="
|
|
791
|
+
[attr.data-invalid]="displayInvalid() || null"
|
|
344
792
|
[attr.data-disabled]="effectiveDisabled() || null"
|
|
345
793
|
[attr.data-readonly]="readonly() || null"
|
|
346
794
|
[attr.data-fluid]="fluid() || null"
|
|
@@ -356,14 +804,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
356
804
|
[placeholder]="placeholder()"
|
|
357
805
|
[autocomplete]="autocomplete()"
|
|
358
806
|
[minLength]="minLength()"
|
|
359
|
-
[
|
|
807
|
+
[attr.maxlength]="maxLength() ?? null"
|
|
360
808
|
[disabled]="effectiveDisabled()"
|
|
361
809
|
[readOnly]="readonly()"
|
|
362
810
|
[required]="required()"
|
|
363
811
|
[attr.aria-label]="ariaLabel() || null"
|
|
364
|
-
[attr.aria-labelledby]="
|
|
812
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
365
813
|
[attr.aria-describedby]="resolvedAriaDescribedby()"
|
|
366
|
-
[attr.aria-invalid]="
|
|
814
|
+
[attr.aria-invalid]="displayInvalid() || null"
|
|
367
815
|
(input)="handleInput($event)"
|
|
368
816
|
(focus)="handleFocus($event)"
|
|
369
817
|
(blur)="handleInputBlur($event)"
|
|
@@ -376,7 +824,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
376
824
|
class="aeris-password__action aeris-password__clear"
|
|
377
825
|
[attr.aria-label]="clearButtonAriaLabel()"
|
|
378
826
|
(click)="clear()"
|
|
379
|
-
|
|
827
|
+
>
|
|
828
|
+
@if (clearIconTemplate(); as customIcon) {
|
|
829
|
+
<span aria-hidden="true" data-aeris-custom-icon
|
|
830
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
831
|
+
/></span>
|
|
832
|
+
} @else {
|
|
833
|
+
<span aerisInternalIcon="close" aria-hidden="true"></span>
|
|
834
|
+
}
|
|
835
|
+
</button>
|
|
380
836
|
}
|
|
381
837
|
@if (toggleMask()) {
|
|
382
838
|
<button
|
|
@@ -387,17 +843,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
387
843
|
(click)="toggleVisibility()"
|
|
388
844
|
>
|
|
389
845
|
@if (visible()) {
|
|
390
|
-
|
|
391
|
-
<
|
|
392
|
-
|
|
393
|
-
|
|
846
|
+
@if (visibleIconTemplate(); as customIcon) {
|
|
847
|
+
<span class="aeris-custom-icon" aria-hidden="true" data-aeris-custom-icon
|
|
848
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
849
|
+
/></span>
|
|
850
|
+
} @else {
|
|
851
|
+
<span
|
|
852
|
+
aerisInternalIcon="eye"
|
|
853
|
+
class="aeris-password__visibility-mark"
|
|
854
|
+
data-visible="true"
|
|
855
|
+
aria-hidden="true"
|
|
856
|
+
></span>
|
|
857
|
+
}
|
|
394
858
|
} @else {
|
|
395
|
-
|
|
396
|
-
<
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
859
|
+
@if (maskedIconTemplate(); as customIcon) {
|
|
860
|
+
<span class="aeris-custom-icon" aria-hidden="true" data-aeris-custom-icon
|
|
861
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
862
|
+
/></span>
|
|
863
|
+
} @else {
|
|
864
|
+
<span
|
|
865
|
+
aerisInternalIcon="eyeOff"
|
|
866
|
+
class="aeris-password__visibility-mark"
|
|
867
|
+
data-visible="false"
|
|
868
|
+
aria-hidden="true"
|
|
869
|
+
></span>
|
|
870
|
+
}
|
|
401
871
|
}
|
|
402
872
|
</button>
|
|
403
873
|
}
|
|
@@ -406,7 +876,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
406
876
|
|
|
407
877
|
@if (feedbackVisible()) {
|
|
408
878
|
<span
|
|
879
|
+
#feedbackPanel
|
|
409
880
|
class="aeris-password__feedback"
|
|
881
|
+
[aerisInternalAppendTo]="appendTo()"
|
|
882
|
+
[aerisInternalAppendToAnchor]="passwordInput"
|
|
883
|
+
[aerisInternalAppendToMatchWidth]="true"
|
|
884
|
+
[aerisInternalAppendToCollisionPadding]="viewportMargin()"
|
|
410
885
|
[id]="feedbackId"
|
|
411
886
|
>
|
|
412
887
|
@if (headerTemplate(); as header) {
|
|
@@ -421,7 +896,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
421
896
|
[ngTemplateOutletContext]="{
|
|
422
897
|
$implicit: strengthResult(),
|
|
423
898
|
result: strengthResult(),
|
|
424
|
-
value: value()
|
|
899
|
+
value: value(),
|
|
425
900
|
}"
|
|
426
901
|
/>
|
|
427
902
|
} @else {
|
|
@@ -433,7 +908,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
433
908
|
class="aeris-password__meter"
|
|
434
909
|
[attr.data-strength]="strengthResult().strength"
|
|
435
910
|
aria-hidden="true"
|
|
436
|
-
|
|
911
|
+
><span></span><span></span><span></span
|
|
912
|
+
></span>
|
|
437
913
|
|
|
438
914
|
@if (showRequirements()) {
|
|
439
915
|
<span class="aeris-password__requirements">
|
|
@@ -454,26 +930,327 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
454
930
|
</span>
|
|
455
931
|
}
|
|
456
932
|
</span>
|
|
457
|
-
`,
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
933
|
+
`,
|
|
934
|
+
providers: [{
|
|
935
|
+
provide: NG_VALUE_ACCESSOR,
|
|
936
|
+
useExisting: forwardRef(() => AerisPasswordComponent),
|
|
937
|
+
multi: true
|
|
938
|
+
}],
|
|
939
|
+
host: { "[attr.data-fluid]": "fluid() || null" },
|
|
940
|
+
styles: [":host{position:relative;display:inline-block;max-width:100%;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-password{--_height: var(--aeris-control-height, 2.625rem);--_font-size: var(--aeris-font-size-lg, .875rem);position:relative;display:block;width:100%;color:var(--aeris-text, #111111);font-family:inherit}.aeris-password[data-size=xs]{--_height: 1.875rem;--_font-size: var(--aeris-font-size-sm, .75rem)}.aeris-password[data-size=sm]{--_height: 2.25rem;--_font-size: var(--aeris-font-size-md, .8125rem)}.aeris-password[data-size=lg]{--_height: 3rem;--_font-size: var(--aeris-font-size-xl, .9375rem)}.aeris-password__field{position:relative;display:block}.aeris-password input{width:100%;height:var(--_height);padding:.5rem 5rem .5rem .75rem;border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));outline:0;background:var(--aeris-surface, #fff);color:inherit;font:inherit;font-size:var(--_font-size);box-shadow:none;transition:border-color var(--aeris-motion-fast, .1s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-fast, .1s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-fast, .1s) var(--aeris-ease-standard, ease)}.aeris-password:not(:has(.aeris-password__actions button)) input{padding-inline-end:.75rem}.aeris-password[data-appearance=filled] input{border-color:transparent;background:var(--aeris-surface-2, #f3f3f3)}@media(hover:hover){.aeris-password input:hover:not(:disabled,:read-only){border-color:var(--aeris-control-hover-border, var(--aeris-primary, #111111))}}.aeris-password input:focus-visible{border-color:var(--aeris-control-focus-border, var(--aeris-focus, #111111));box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-focus-ring-color, var(--aeris-focus-ring-color, transparent))}.aeris-password[data-invalid] input,.aeris-password input:user-invalid{border-color:var(--aeris-control-invalid-border, var(--aeris-danger, #c81e2a))}.aeris-password[data-invalid] input:focus-visible,.aeris-password input:user-invalid:focus-visible{box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-invalid-focus-ring-color, transparent)}.aeris-password[data-disabled]{opacity:var(--aeris-disabled-opacity, .5)}.aeris-password[data-readonly] input{background:var(--aeris-surface-2, #f3f3f3)}.aeris-password__actions{position:absolute;top:50%;right:.4375rem;display:flex;align-items:center;gap:.125rem;transform:translateY(-50%)}.aeris-password__action{width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #454545);cursor:pointer}.aeris-password__action:focus-visible{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}@media(hover:hover){.aeris-password__action:hover{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}}.aeris-password__action:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:1px}.aeris-password__clear>span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-password__feedback{position:absolute;z-index:80;top:calc(100% + .4375rem);right:0;left:0;display:grid;gap:.75rem;min-width:min(19rem,100vw - 2rem);padding:.875rem;border:1px solid var(--aeris-border);border-radius:var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem));background:var(--aeris-surface, #fff);box-shadow:var(--aeris-overlay-shadow, var(--aeris-shadow-lg, 0 18px 48px rgba(0, 0, 0, .18)));font-size:var(--aeris-font-size-md, .8125rem)}.aeris-password__header,.aeris-password__footer{color:var(--aeris-text-2, #454545);line-height:var(--aeris-line-height-normal, 1.5)}.aeris-password__strength-row{display:flex;align-items:center;justify-content:space-between;gap:1rem}.aeris-password__strength-row strong{font-size:var(--aeris-font-size-md, .8125rem)}.aeris-password__strength-row>span{color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem)}.aeris-password__meter{display:grid;grid-template-columns:repeat(3,1fr);gap:.25rem}.aeris-password__meter>span{height:.25rem;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-surface-3, #e7e5df)}.aeris-password__meter[data-strength=weak]>span:first-child{background:var(--aeris-danger, #c81e2a)}.aeris-password__meter[data-strength=medium]>span:nth-child(-n+2){background:var(--aeris-warning, #c38600)}.aeris-password__meter[data-strength=strong]>span{background:var(--aeris-success, #557542)}.aeris-password__requirements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem .75rem}.aeris-password__requirements>span{display:flex;align-items:center;gap:.375rem;color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem)}.aeris-password__requirements i{position:relative;width:.875rem;height:.875rem;flex:0 0 auto;border:1px solid var(--aeris-border, #efefef);border-radius:50%}.aeris-password__requirements>span[data-met]{color:var(--aeris-success, #557542)}.aeris-password__requirements>span[data-met] i{border:0;background:currentColor;-webkit-mask:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;mask:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E')) center/100% 100% no-repeat}@media(max-width:30rem){.aeris-password__feedback{min-width:100%}.aeris-password__requirements{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.aeris-password input{transition:none}}@media(pointer:coarse){input{font-size:var(--aeris-mobile-input-font-size, 1rem)}}: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}.aeris-password__visibility-mark{display:block;width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-eye-off) center/100% 100% no-repeat;mask:var(--aeris-icon-eye-off) center/100% 100% no-repeat}.aeris-password__visibility-mark[data-visible=true]{-webkit-mask-image:var(--aeris-icon-eye);mask-image:var(--aeris-icon-eye)}\n"]
|
|
941
|
+
}]
|
|
942
|
+
}],
|
|
943
|
+
propDecorators: {
|
|
944
|
+
visibleIconTemplate: [{
|
|
945
|
+
type: i0.Input,
|
|
946
|
+
args: [{
|
|
947
|
+
isSignal: true,
|
|
948
|
+
alias: "visibleIconTemplate",
|
|
949
|
+
required: false
|
|
950
|
+
}]
|
|
951
|
+
}],
|
|
952
|
+
maskedIconTemplate: [{
|
|
953
|
+
type: i0.Input,
|
|
954
|
+
args: [{
|
|
955
|
+
isSignal: true,
|
|
956
|
+
alias: "maskedIconTemplate",
|
|
957
|
+
required: false
|
|
958
|
+
}]
|
|
959
|
+
}],
|
|
960
|
+
clearIconTemplate: [{
|
|
961
|
+
type: i0.Input,
|
|
962
|
+
args: [{
|
|
963
|
+
isSignal: true,
|
|
964
|
+
alias: "clearIconTemplate",
|
|
965
|
+
required: false
|
|
966
|
+
}]
|
|
967
|
+
}],
|
|
968
|
+
inputElement: [{
|
|
969
|
+
type: i0.ViewChild,
|
|
970
|
+
args: ["passwordInput", { isSignal: true }]
|
|
971
|
+
}],
|
|
972
|
+
feedbackPanel: [{
|
|
973
|
+
type: i0.ViewChild,
|
|
974
|
+
args: ["feedbackPanel", { isSignal: true }]
|
|
975
|
+
}],
|
|
976
|
+
feedbackPortal: [{
|
|
977
|
+
type: i0.ViewChild,
|
|
978
|
+
args: [i0.forwardRef(() => ɵAerisAppendTo), { isSignal: true }]
|
|
979
|
+
}],
|
|
980
|
+
value: [{
|
|
981
|
+
type: i0.Input,
|
|
982
|
+
args: [{
|
|
983
|
+
isSignal: true,
|
|
984
|
+
alias: "value",
|
|
985
|
+
required: false
|
|
986
|
+
}]
|
|
987
|
+
}, {
|
|
988
|
+
type: i0.Output,
|
|
989
|
+
args: ["valueChange"]
|
|
990
|
+
}],
|
|
991
|
+
visible: [{
|
|
992
|
+
type: i0.Input,
|
|
993
|
+
args: [{
|
|
994
|
+
isSignal: true,
|
|
995
|
+
alias: "visible",
|
|
996
|
+
required: false
|
|
997
|
+
}]
|
|
998
|
+
}, {
|
|
999
|
+
type: i0.Output,
|
|
1000
|
+
args: ["visibleChange"]
|
|
1001
|
+
}],
|
|
1002
|
+
appendTo: [{
|
|
1003
|
+
type: i0.Input,
|
|
1004
|
+
args: [{
|
|
1005
|
+
isSignal: true,
|
|
1006
|
+
alias: "appendTo",
|
|
1007
|
+
required: false
|
|
1008
|
+
}]
|
|
1009
|
+
}],
|
|
1010
|
+
viewportMargin: [{
|
|
1011
|
+
type: i0.Input,
|
|
1012
|
+
args: [{
|
|
1013
|
+
isSignal: true,
|
|
1014
|
+
alias: "viewportMargin",
|
|
1015
|
+
required: false
|
|
1016
|
+
}]
|
|
1017
|
+
}],
|
|
1018
|
+
inputId: [{
|
|
1019
|
+
type: i0.Input,
|
|
1020
|
+
args: [{
|
|
1021
|
+
isSignal: true,
|
|
1022
|
+
alias: "inputId",
|
|
1023
|
+
required: false
|
|
1024
|
+
}]
|
|
1025
|
+
}],
|
|
1026
|
+
name: [{
|
|
1027
|
+
type: i0.Input,
|
|
1028
|
+
args: [{
|
|
1029
|
+
isSignal: true,
|
|
1030
|
+
alias: "name",
|
|
1031
|
+
required: false
|
|
1032
|
+
}]
|
|
1033
|
+
}],
|
|
1034
|
+
placeholder: [{
|
|
1035
|
+
type: i0.Input,
|
|
1036
|
+
args: [{
|
|
1037
|
+
isSignal: true,
|
|
1038
|
+
alias: "placeholder",
|
|
1039
|
+
required: false
|
|
1040
|
+
}]
|
|
1041
|
+
}],
|
|
1042
|
+
autocomplete: [{
|
|
1043
|
+
type: i0.Input,
|
|
1044
|
+
args: [{
|
|
1045
|
+
isSignal: true,
|
|
1046
|
+
alias: "autocomplete",
|
|
1047
|
+
required: false
|
|
1048
|
+
}]
|
|
1049
|
+
}],
|
|
1050
|
+
ariaLabel: [{
|
|
1051
|
+
type: i0.Input,
|
|
1052
|
+
args: [{
|
|
1053
|
+
isSignal: true,
|
|
1054
|
+
alias: "ariaLabel",
|
|
1055
|
+
required: false
|
|
1056
|
+
}]
|
|
1057
|
+
}],
|
|
1058
|
+
ariaLabelledBy: [{
|
|
1059
|
+
type: i0.Input,
|
|
1060
|
+
args: [{
|
|
1061
|
+
isSignal: true,
|
|
1062
|
+
alias: "ariaLabelledBy",
|
|
1063
|
+
required: false
|
|
1064
|
+
}]
|
|
1065
|
+
}],
|
|
1066
|
+
ariaDescribedBy: [{
|
|
1067
|
+
type: i0.Input,
|
|
1068
|
+
args: [{
|
|
1069
|
+
isSignal: true,
|
|
1070
|
+
alias: "ariaDescribedBy",
|
|
1071
|
+
required: false
|
|
1072
|
+
}]
|
|
1073
|
+
}],
|
|
1074
|
+
size: [{
|
|
1075
|
+
type: i0.Input,
|
|
1076
|
+
args: [{
|
|
1077
|
+
isSignal: true,
|
|
1078
|
+
alias: "size",
|
|
1079
|
+
required: false
|
|
1080
|
+
}]
|
|
1081
|
+
}],
|
|
1082
|
+
appearance: [{
|
|
1083
|
+
type: i0.Input,
|
|
1084
|
+
args: [{
|
|
1085
|
+
isSignal: true,
|
|
1086
|
+
alias: "appearance",
|
|
1087
|
+
required: false
|
|
1088
|
+
}]
|
|
1089
|
+
}],
|
|
1090
|
+
minLength: [{
|
|
1091
|
+
type: i0.Input,
|
|
1092
|
+
args: [{
|
|
1093
|
+
isSignal: true,
|
|
1094
|
+
alias: "minLength",
|
|
1095
|
+
required: false
|
|
1096
|
+
}]
|
|
1097
|
+
}],
|
|
1098
|
+
maxLength: [{
|
|
1099
|
+
type: i0.Input,
|
|
1100
|
+
args: [{
|
|
1101
|
+
isSignal: true,
|
|
1102
|
+
alias: "maxLength",
|
|
1103
|
+
required: false
|
|
1104
|
+
}]
|
|
1105
|
+
}],
|
|
1106
|
+
disabled: [{
|
|
1107
|
+
type: i0.Input,
|
|
1108
|
+
args: [{
|
|
1109
|
+
isSignal: true,
|
|
1110
|
+
alias: "disabled",
|
|
1111
|
+
required: false
|
|
1112
|
+
}]
|
|
1113
|
+
}],
|
|
1114
|
+
readonly: [{
|
|
1115
|
+
type: i0.Input,
|
|
1116
|
+
args: [{
|
|
1117
|
+
isSignal: true,
|
|
1118
|
+
alias: "readonly",
|
|
1119
|
+
required: false
|
|
1120
|
+
}]
|
|
1121
|
+
}],
|
|
1122
|
+
required: [{
|
|
1123
|
+
type: i0.Input,
|
|
1124
|
+
args: [{
|
|
1125
|
+
isSignal: true,
|
|
1126
|
+
alias: "required",
|
|
1127
|
+
required: false
|
|
1128
|
+
}]
|
|
1129
|
+
}],
|
|
1130
|
+
invalid: [{
|
|
1131
|
+
type: i0.Input,
|
|
1132
|
+
args: [{
|
|
1133
|
+
isSignal: true,
|
|
1134
|
+
alias: "invalid",
|
|
1135
|
+
required: false
|
|
1136
|
+
}]
|
|
1137
|
+
}],
|
|
1138
|
+
touched: [{
|
|
1139
|
+
type: i0.Input,
|
|
1140
|
+
args: [{
|
|
1141
|
+
isSignal: true,
|
|
1142
|
+
alias: "touched",
|
|
1143
|
+
required: false
|
|
1144
|
+
}]
|
|
1145
|
+
}],
|
|
1146
|
+
fluid: [{
|
|
1147
|
+
type: i0.Input,
|
|
1148
|
+
args: [{
|
|
1149
|
+
isSignal: true,
|
|
1150
|
+
alias: "fluid",
|
|
1151
|
+
required: false
|
|
1152
|
+
}]
|
|
1153
|
+
}],
|
|
1154
|
+
toggleMask: [{
|
|
1155
|
+
type: i0.Input,
|
|
1156
|
+
args: [{
|
|
1157
|
+
isSignal: true,
|
|
1158
|
+
alias: "toggleMask",
|
|
1159
|
+
required: false
|
|
1160
|
+
}]
|
|
1161
|
+
}],
|
|
1162
|
+
feedback: [{
|
|
1163
|
+
type: i0.Input,
|
|
1164
|
+
args: [{
|
|
1165
|
+
isSignal: true,
|
|
1166
|
+
alias: "feedback",
|
|
1167
|
+
required: false
|
|
1168
|
+
}]
|
|
1169
|
+
}],
|
|
1170
|
+
showRequirements: [{
|
|
1171
|
+
type: i0.Input,
|
|
1172
|
+
args: [{
|
|
1173
|
+
isSignal: true,
|
|
1174
|
+
alias: "showRequirements",
|
|
1175
|
+
required: false
|
|
1176
|
+
}]
|
|
1177
|
+
}],
|
|
1178
|
+
clearable: [{
|
|
1179
|
+
type: i0.Input,
|
|
1180
|
+
args: [{
|
|
1181
|
+
isSignal: true,
|
|
1182
|
+
alias: "clearable",
|
|
1183
|
+
required: false
|
|
1184
|
+
}]
|
|
1185
|
+
}],
|
|
1186
|
+
clearButtonAriaLabel: [{
|
|
1187
|
+
type: i0.Input,
|
|
1188
|
+
args: [{
|
|
1189
|
+
isSignal: true,
|
|
1190
|
+
alias: "clearButtonAriaLabel",
|
|
1191
|
+
required: false
|
|
1192
|
+
}]
|
|
1193
|
+
}],
|
|
1194
|
+
showPasswordAriaLabel: [{
|
|
1195
|
+
type: i0.Input,
|
|
1196
|
+
args: [{
|
|
1197
|
+
isSignal: true,
|
|
1198
|
+
alias: "showPasswordAriaLabel",
|
|
1199
|
+
required: false
|
|
1200
|
+
}]
|
|
1201
|
+
}],
|
|
1202
|
+
hidePasswordAriaLabel: [{
|
|
1203
|
+
type: i0.Input,
|
|
1204
|
+
args: [{
|
|
1205
|
+
isSignal: true,
|
|
1206
|
+
alias: "hidePasswordAriaLabel",
|
|
1207
|
+
required: false
|
|
1208
|
+
}]
|
|
1209
|
+
}],
|
|
1210
|
+
strengthEvaluator: [{
|
|
1211
|
+
type: i0.Input,
|
|
1212
|
+
args: [{
|
|
1213
|
+
isSignal: true,
|
|
1214
|
+
alias: "strengthEvaluator",
|
|
1215
|
+
required: false
|
|
1216
|
+
}]
|
|
1217
|
+
}],
|
|
1218
|
+
visibilityChanged: [{
|
|
1219
|
+
type: i0.Output,
|
|
1220
|
+
args: ["visibilityChanged"]
|
|
1221
|
+
}],
|
|
1222
|
+
focused: [{
|
|
1223
|
+
type: i0.Output,
|
|
1224
|
+
args: ["focused"]
|
|
1225
|
+
}],
|
|
1226
|
+
blurred: [{
|
|
1227
|
+
type: i0.Output,
|
|
1228
|
+
args: ["blurred"]
|
|
1229
|
+
}],
|
|
1230
|
+
touch: [{
|
|
1231
|
+
type: i0.Output,
|
|
1232
|
+
args: ["touch"]
|
|
1233
|
+
}],
|
|
1234
|
+
headerTemplate: [{
|
|
1235
|
+
type: i0.ContentChild,
|
|
1236
|
+
args: [i0.forwardRef(() => AerisPasswordHeaderTemplate), { isSignal: true }]
|
|
1237
|
+
}],
|
|
1238
|
+
feedbackTemplate: [{
|
|
1239
|
+
type: i0.ContentChild,
|
|
1240
|
+
args: [i0.forwardRef(() => AerisPasswordFeedbackTemplate), { isSignal: true }]
|
|
1241
|
+
}],
|
|
1242
|
+
footerTemplate: [{
|
|
1243
|
+
type: i0.ContentChild,
|
|
1244
|
+
args: [i0.forwardRef(() => AerisPasswordFooterTemplate), { isSignal: true }]
|
|
1245
|
+
}]
|
|
1246
|
+
}
|
|
1247
|
+
});
|
|
467
1248
|
const AerisPassword = [
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
1249
|
+
AerisPasswordComponent,
|
|
1250
|
+
AerisPasswordHeaderTemplate,
|
|
1251
|
+
AerisPasswordFeedbackTemplate,
|
|
1252
|
+
AerisPasswordFooterTemplate
|
|
472
1253
|
];
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* Generated bundle index. Do not edit.
|
|
476
|
-
*/
|
|
477
|
-
|
|
478
1254
|
export { AerisPassword, AerisPasswordComponent, AerisPasswordFeedbackTemplate, AerisPasswordFooterTemplate, AerisPasswordHeaderTemplate, evaluateAerisPassword };
|
|
479
|
-
|
|
1255
|
+
|
|
1256
|
+
//# sourceMappingURL=aeris-ui-core-password.mjs.map
|