@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,304 +1,261 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Service, signal } from "@angular/core";
|
|
4
3
|
const AERIS_FILTER_MODES = [
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
"starts-with",
|
|
5
|
+
"contains",
|
|
6
|
+
"not-contains",
|
|
7
|
+
"ends-with",
|
|
8
|
+
"equals",
|
|
9
|
+
"not-equals",
|
|
10
|
+
"is",
|
|
11
|
+
"is-not",
|
|
12
|
+
"one-of",
|
|
13
|
+
"less-than",
|
|
14
|
+
"less-than-or-equal",
|
|
15
|
+
"greater-than",
|
|
16
|
+
"greater-than-or-equal",
|
|
17
|
+
"before",
|
|
18
|
+
"after"
|
|
20
19
|
];
|
|
21
|
-
const BLOCKED_PATH_SEGMENTS = new Set([
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
return current;
|
|
263
|
-
}
|
|
264
|
-
applyConstraint(constraint, value, filter, context) {
|
|
265
|
-
try {
|
|
266
|
-
return Boolean(constraint(value, filter, context));
|
|
267
|
-
}
|
|
268
|
-
catch {
|
|
269
|
-
return false;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
updateRegistry(update) {
|
|
273
|
-
this.registry.update((current) => new Map(update(new Map(current))));
|
|
274
|
-
}
|
|
275
|
-
syncConstraint(name) {
|
|
276
|
-
const registrations = this.customRegistrations.get(name);
|
|
277
|
-
const constraint = registrations?.at(-1)?.constraint ?? this.builtIns.get(name);
|
|
278
|
-
this.updateRegistry((registry) => {
|
|
279
|
-
if (constraint)
|
|
280
|
-
registry.set(name, constraint);
|
|
281
|
-
else
|
|
282
|
-
registry.delete(name);
|
|
283
|
-
return registry;
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
isEmptyFilter(value) {
|
|
287
|
-
return value === null || value === undefined || (typeof value === 'string' && !value.trim());
|
|
288
|
-
}
|
|
289
|
-
normalizeName(value) {
|
|
290
|
-
return value.trim().toLocaleLowerCase();
|
|
291
|
-
}
|
|
292
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisFilterService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
293
|
-
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.6", ngImport: i0, type: AerisFilterService });
|
|
294
|
-
}
|
|
295
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisFilterService, decorators: [{
|
|
296
|
-
type: Service
|
|
297
|
-
}] });
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Generated bundle index. Do not edit.
|
|
301
|
-
*/
|
|
302
|
-
|
|
20
|
+
const BLOCKED_PATH_SEGMENTS = /* @__PURE__ */ new Set([
|
|
21
|
+
"__proto__",
|
|
22
|
+
"prototype",
|
|
23
|
+
"constructor"
|
|
24
|
+
]);
|
|
25
|
+
var AerisFilterService = class AerisFilterService {
|
|
26
|
+
builtIns = /* @__PURE__ */ new Map([
|
|
27
|
+
["starts-with", (value, filter, context) => this.textMatch(value, filter, context, "start")],
|
|
28
|
+
["contains", (value, filter, context) => this.textMatch(value, filter, context, "anywhere")],
|
|
29
|
+
["not-contains", (value, filter, context) => this.isEmptyFilter(filter) || value !== null && value !== void 0 && !this.textMatch(value, filter, context, "anywhere")],
|
|
30
|
+
["ends-with", (value, filter, context) => this.textMatch(value, filter, context, "end")],
|
|
31
|
+
["equals", (value, filter, context) => this.equals(value, filter, context)],
|
|
32
|
+
["not-equals", (value, filter, context) => this.notEquals(value, filter, context)],
|
|
33
|
+
["is", (value, filter, context) => this.equals(value, filter, context)],
|
|
34
|
+
["is-not", (value, filter, context) => this.notEquals(value, filter, context)],
|
|
35
|
+
["one-of", (value, filter, context) => this.oneOf(value, filter, context)],
|
|
36
|
+
["less-than", (value, filter, context) => this.comparison(value, filter, context, "lt")],
|
|
37
|
+
["less-than-or-equal", (value, filter, context) => this.comparison(value, filter, context, "lte")],
|
|
38
|
+
["greater-than", (value, filter, context) => this.comparison(value, filter, context, "gt")],
|
|
39
|
+
["greater-than-or-equal", (value, filter, context) => this.comparison(value, filter, context, "gte")],
|
|
40
|
+
["before", (value, filter) => this.dateComparison(value, filter, "before")],
|
|
41
|
+
["after", (value, filter) => this.dateComparison(value, filter, "after")]
|
|
42
|
+
]);
|
|
43
|
+
registry = signal(new Map(this.builtIns), ...ngDevMode ? [{ debugName: "registry" }] : /* istanbul ignore next */ []);
|
|
44
|
+
customRegistrations = /* @__PURE__ */ new Map();
|
|
45
|
+
constraints = this.registry.asReadonly();
|
|
46
|
+
filter(values, options) {
|
|
47
|
+
if (this.isEmptyFilter(options.query)) return [...values];
|
|
48
|
+
const mode = this.normalizeName(options.mode ?? "contains");
|
|
49
|
+
const constraint = this.registry().get(mode);
|
|
50
|
+
if (!constraint) return [];
|
|
51
|
+
const context = {
|
|
52
|
+
mode,
|
|
53
|
+
locale: options.locale
|
|
54
|
+
};
|
|
55
|
+
const fields = options.fields?.filter((field) => typeof field === "function" ? true : field.trim().length > 0);
|
|
56
|
+
const operator = options.fieldOperator ?? "or";
|
|
57
|
+
return values.filter((item) => {
|
|
58
|
+
if (!fields?.length) return this.applyConstraint(constraint, item, options.query, context);
|
|
59
|
+
const results = fields.map((field) => this.applyConstraint(constraint, this.resolveField(item, field), options.query, context));
|
|
60
|
+
return operator === "and" ? results.every(Boolean) : results.some(Boolean);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
matches(value, filter, mode = "contains", locale) {
|
|
64
|
+
const normalizedMode = this.normalizeName(mode);
|
|
65
|
+
const constraint = this.registry().get(normalizedMode);
|
|
66
|
+
if (!constraint) return false;
|
|
67
|
+
return this.applyConstraint(constraint, value, filter, {
|
|
68
|
+
mode: normalizedMode,
|
|
69
|
+
locale
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
register(name, constraint) {
|
|
73
|
+
const normalizedName = this.normalizeName(name);
|
|
74
|
+
if (!normalizedName) throw new TypeError("Filter constraint names must not be empty.");
|
|
75
|
+
const token = Symbol(normalizedName);
|
|
76
|
+
const registrations = this.customRegistrations.get(normalizedName) ?? [];
|
|
77
|
+
registrations.push({
|
|
78
|
+
token,
|
|
79
|
+
constraint
|
|
80
|
+
});
|
|
81
|
+
this.customRegistrations.set(normalizedName, registrations);
|
|
82
|
+
this.syncConstraint(normalizedName);
|
|
83
|
+
let registered = true;
|
|
84
|
+
return () => {
|
|
85
|
+
if (!registered) return;
|
|
86
|
+
registered = false;
|
|
87
|
+
const current = this.customRegistrations.get(normalizedName);
|
|
88
|
+
if (!current) return;
|
|
89
|
+
const next = current.filter((registration) => registration.token !== token);
|
|
90
|
+
if (next.length) this.customRegistrations.set(normalizedName, next);
|
|
91
|
+
else this.customRegistrations.delete(normalizedName);
|
|
92
|
+
this.syncConstraint(normalizedName);
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
unregister(name) {
|
|
96
|
+
const normalizedName = this.normalizeName(name);
|
|
97
|
+
if (!this.customRegistrations.has(normalizedName)) return false;
|
|
98
|
+
this.customRegistrations.delete(normalizedName);
|
|
99
|
+
this.syncConstraint(normalizedName);
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
has(name) {
|
|
103
|
+
return this.registry().has(this.normalizeName(name));
|
|
104
|
+
}
|
|
105
|
+
constraintNames() {
|
|
106
|
+
return [...this.registry().keys()].sort((left, right) => left.localeCompare(right));
|
|
107
|
+
}
|
|
108
|
+
textMatch(value, filter, context, position) {
|
|
109
|
+
if (this.isEmptyFilter(filter)) return true;
|
|
110
|
+
if (value === null || value === void 0) return false;
|
|
111
|
+
const candidate = this.normalizeText(value, context.locale);
|
|
112
|
+
const query = this.normalizeText(filter, context.locale);
|
|
113
|
+
if (candidate === null || query === null) return false;
|
|
114
|
+
if (position === "start") return candidate.startsWith(query);
|
|
115
|
+
if (position === "end") return candidate.endsWith(query);
|
|
116
|
+
return candidate.includes(query);
|
|
117
|
+
}
|
|
118
|
+
equals(value, filter, context) {
|
|
119
|
+
if (this.isEmptyFilter(filter)) return true;
|
|
120
|
+
return this.equalValues(value, filter, context.locale);
|
|
121
|
+
}
|
|
122
|
+
notEquals(value, filter, context) {
|
|
123
|
+
if (this.isEmptyFilter(filter)) return true;
|
|
124
|
+
return !this.equalValues(value, filter, context.locale);
|
|
125
|
+
}
|
|
126
|
+
oneOf(value, filter, context) {
|
|
127
|
+
if (!Array.isArray(filter)) return false;
|
|
128
|
+
if (filter.length === 0) return true;
|
|
129
|
+
return filter.some((candidate) => this.equalValues(value, candidate, context.locale));
|
|
130
|
+
}
|
|
131
|
+
equalValues(value, filter, locale) {
|
|
132
|
+
if (value instanceof Date || filter instanceof Date) {
|
|
133
|
+
const valueTime = this.dateValue(value);
|
|
134
|
+
const filterTime = this.dateValue(filter);
|
|
135
|
+
return valueTime !== null && filterTime !== null && valueTime === filterTime;
|
|
136
|
+
}
|
|
137
|
+
if (typeof value === "string" && typeof filter === "string") return this.normalizeText(value, locale) === this.normalizeText(filter, locale);
|
|
138
|
+
return Object.is(value, filter);
|
|
139
|
+
}
|
|
140
|
+
comparison(value, filter, context, operator) {
|
|
141
|
+
if (this.isEmptyFilter(filter)) return true;
|
|
142
|
+
const comparison = this.compareValues(value, filter, context.locale);
|
|
143
|
+
if (comparison === null) return false;
|
|
144
|
+
if (operator === "lt") return comparison < 0;
|
|
145
|
+
if (operator === "lte") return comparison <= 0;
|
|
146
|
+
if (operator === "gt") return comparison > 0;
|
|
147
|
+
return comparison >= 0;
|
|
148
|
+
}
|
|
149
|
+
compareValues(value, filter, locale) {
|
|
150
|
+
if (value instanceof Date || filter instanceof Date) {
|
|
151
|
+
const left = this.dateValue(value);
|
|
152
|
+
const right = this.dateValue(filter);
|
|
153
|
+
return left === null || right === null ? null : Math.sign(left - right);
|
|
154
|
+
}
|
|
155
|
+
if (typeof value === "number" && typeof filter === "number") return Number.isFinite(value) && Number.isFinite(filter) ? Math.sign(value - filter) : null;
|
|
156
|
+
if (typeof value === "bigint" && typeof filter === "bigint") return value === filter ? 0 : value < filter ? -1 : 1;
|
|
157
|
+
if (typeof value === "string" && typeof filter === "string") try {
|
|
158
|
+
return new Intl.Collator(this.localeArgument(locale), {
|
|
159
|
+
numeric: true,
|
|
160
|
+
sensitivity: "base"
|
|
161
|
+
}).compare(value, filter);
|
|
162
|
+
} catch {
|
|
163
|
+
return value.localeCompare(filter);
|
|
164
|
+
}
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
167
|
+
dateComparison(value, filter, operator) {
|
|
168
|
+
if (this.isEmptyFilter(filter)) return true;
|
|
169
|
+
const valueTime = this.dateValue(value);
|
|
170
|
+
const filterTime = this.dateValue(filter);
|
|
171
|
+
if (valueTime === null || filterTime === null) return false;
|
|
172
|
+
return operator === "before" ? valueTime < filterTime : valueTime > filterTime;
|
|
173
|
+
}
|
|
174
|
+
dateValue(value) {
|
|
175
|
+
if (!(value instanceof Date) && typeof value !== "string" && typeof value !== "number") return null;
|
|
176
|
+
const time = value instanceof Date ? value.getTime() : new Date(value).getTime();
|
|
177
|
+
return Number.isFinite(time) ? time : null;
|
|
178
|
+
}
|
|
179
|
+
normalizeText(value, locale) {
|
|
180
|
+
try {
|
|
181
|
+
const text = String(value).normalize("NFKD").replace(/\p{M}/gu, "");
|
|
182
|
+
try {
|
|
183
|
+
return text.toLocaleLowerCase(this.localeArgument(locale));
|
|
184
|
+
} catch {
|
|
185
|
+
return text.toLowerCase();
|
|
186
|
+
}
|
|
187
|
+
} catch {
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
localeArgument(locale) {
|
|
192
|
+
return Array.isArray(locale) ? [...locale] : locale;
|
|
193
|
+
}
|
|
194
|
+
resolveField(item, field) {
|
|
195
|
+
if (typeof field === "function") try {
|
|
196
|
+
return field(item);
|
|
197
|
+
} catch {
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
let current = item;
|
|
201
|
+
for (const segment of field.split(".")) {
|
|
202
|
+
if (!segment || BLOCKED_PATH_SEGMENTS.has(segment)) return void 0;
|
|
203
|
+
if (typeof current !== "object" && typeof current !== "function" || current === null) return;
|
|
204
|
+
if (!Object.prototype.hasOwnProperty.call(current, segment)) return void 0;
|
|
205
|
+
try {
|
|
206
|
+
current = current[segment];
|
|
207
|
+
} catch {
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return current;
|
|
212
|
+
}
|
|
213
|
+
applyConstraint(constraint, value, filter, context) {
|
|
214
|
+
try {
|
|
215
|
+
return Boolean(constraint(value, filter, context));
|
|
216
|
+
} catch {
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
updateRegistry(update) {
|
|
221
|
+
this.registry.update((current) => new Map(update(new Map(current))));
|
|
222
|
+
}
|
|
223
|
+
syncConstraint(name) {
|
|
224
|
+
const constraint = this.customRegistrations.get(name)?.at(-1)?.constraint ?? this.builtIns.get(name);
|
|
225
|
+
this.updateRegistry((registry) => {
|
|
226
|
+
if (constraint) registry.set(name, constraint);
|
|
227
|
+
else registry.delete(name);
|
|
228
|
+
return registry;
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
isEmptyFilter(value) {
|
|
232
|
+
return value === null || value === void 0 || typeof value === "string" && !value.trim();
|
|
233
|
+
}
|
|
234
|
+
normalizeName(value) {
|
|
235
|
+
return value.trim().toLocaleLowerCase();
|
|
236
|
+
}
|
|
237
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
238
|
+
minVersion: "12.0.0",
|
|
239
|
+
version: "22.2.3",
|
|
240
|
+
ngImport: i0,
|
|
241
|
+
type: AerisFilterService,
|
|
242
|
+
deps: [],
|
|
243
|
+
target: i0.ɵɵFactoryTarget.Service
|
|
244
|
+
});
|
|
245
|
+
static ɵprov = i0.ɵɵngDeclareService({
|
|
246
|
+
minVersion: "22.0.0",
|
|
247
|
+
version: "22.2.3",
|
|
248
|
+
ngImport: i0,
|
|
249
|
+
type: AerisFilterService
|
|
250
|
+
});
|
|
251
|
+
};
|
|
252
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
253
|
+
minVersion: "12.0.0",
|
|
254
|
+
version: "22.2.3",
|
|
255
|
+
ngImport: i0,
|
|
256
|
+
type: AerisFilterService,
|
|
257
|
+
decorators: [{ type: Service }]
|
|
258
|
+
});
|
|
303
259
|
export { AERIS_FILTER_MODES, AerisFilterService };
|
|
304
|
-
|
|
260
|
+
|
|
261
|
+
//# sourceMappingURL=aeris-ui-core-filter-service.mjs.map
|