@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,106 +1,294 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, computed, input, model, output, signal, viewChild } from "@angular/core";
|
|
4
|
+
import { ɵAerisAppendTo, ɵAerisIcon } from "@aeris-ui/core";
|
|
5
|
+
var AerisPaginator = class AerisPaginator {
|
|
6
|
+
firstIconTemplate = input(...ngDevMode ? [void 0, { debugName: "firstIconTemplate" }] : /* istanbul ignore next */ []);
|
|
7
|
+
previousIconTemplate = input(...ngDevMode ? [void 0, { debugName: "previousIconTemplate" }] : /* istanbul ignore next */ []);
|
|
8
|
+
nextIconTemplate = input(...ngDevMode ? [void 0, { debugName: "nextIconTemplate" }] : /* istanbul ignore next */ []);
|
|
9
|
+
lastIconTemplate = input(...ngDevMode ? [void 0, { debugName: "lastIconTemplate" }] : /* istanbul ignore next */ []);
|
|
10
|
+
dropdownIconTemplate = input(...ngDevMode ? [void 0, { debugName: "dropdownIconTemplate" }] : /* istanbul ignore next */ []);
|
|
11
|
+
checkIconTemplate = input(...ngDevMode ? [void 0, { debugName: "checkIconTemplate" }] : /* istanbul ignore next */ []);
|
|
12
|
+
dismissOverlay = () => {
|
|
13
|
+
this.closeRowsPanel();
|
|
14
|
+
return true;
|
|
15
|
+
};
|
|
16
|
+
static nextId = 0;
|
|
17
|
+
first = model(0, ...ngDevMode ? [{ debugName: "first" }] : /* istanbul ignore next */ []);
|
|
18
|
+
rows = model(10, ...ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []);
|
|
19
|
+
totalRecords = input(0, ...ngDevMode ? [{ debugName: "totalRecords" }] : /* istanbul ignore next */ []);
|
|
20
|
+
pageLinkSize = input(5, ...ngDevMode ? [{ debugName: "pageLinkSize" }] : /* istanbul ignore next */ []);
|
|
21
|
+
rowsPerPageOptions = input([], ...ngDevMode ? [{ debugName: "rowsPerPageOptions" }] : /* istanbul ignore next */ []);
|
|
22
|
+
appendTo = input(...ngDevMode ? [void 0, { debugName: "appendTo" }] : /* istanbul ignore next */ []);
|
|
23
|
+
viewportMargin = input(8, ...ngDevMode ? [{ debugName: "viewportMargin" }] : /* istanbul ignore next */ []);
|
|
24
|
+
ariaLabel = input("Pagination", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
25
|
+
rowsPerPageLabel = input("Rows per page", ...ngDevMode ? [{ debugName: "rowsPerPageLabel" }] : /* istanbul ignore next */ []);
|
|
26
|
+
page = output();
|
|
27
|
+
rowsPanelOpen = signal(false, ...ngDevMode ? [{ debugName: "rowsPanelOpen" }] : /* istanbul ignore next */ []);
|
|
28
|
+
rowsTrigger = viewChild("rowsTrigger", ...ngDevMode ? [{ debugName: "rowsTrigger" }] : /* istanbul ignore next */ []);
|
|
29
|
+
rowsPanel = viewChild("rowsPanel", ...ngDevMode ? [{ debugName: "rowsPanel" }] : /* istanbul ignore next */ []);
|
|
30
|
+
rowsPanelPortal = viewChild(ɵAerisAppendTo, ...ngDevMode ? [{ debugName: "rowsPanelPortal" }] : /* istanbul ignore next */ []);
|
|
31
|
+
rowsLabelId = `aeris-paginator-rows-label-${AerisPaginator.nextId++}`;
|
|
32
|
+
rowsValueId = `${this.rowsLabelId}-value`;
|
|
33
|
+
rowsListboxId = `${this.rowsLabelId}-listbox`;
|
|
34
|
+
pageCount = computed(() => Math.max(1, Math.ceil(this.totalRecords() / Math.max(1, this.rows()))), ...ngDevMode ? [{ debugName: "pageCount" }] : /* istanbul ignore next */ []);
|
|
35
|
+
currentPage = computed(() => Math.min(this.pageCount() - 1, Math.max(0, Math.floor(this.first() / Math.max(1, this.rows())))), ...ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []);
|
|
36
|
+
visiblePages = computed(() => {
|
|
37
|
+
const count = this.pageCount();
|
|
38
|
+
const size = Math.max(1, this.pageLinkSize());
|
|
39
|
+
const half = Math.floor(size / 2);
|
|
40
|
+
const start = Math.min(Math.max(0, this.currentPage() - half), Math.max(0, count - size));
|
|
41
|
+
const end = Math.min(count, start + size);
|
|
42
|
+
return Array.from({ length: end - start }, (_, index) => start + index);
|
|
43
|
+
}, ...ngDevMode ? [{ debugName: "visiblePages" }] : /* istanbul ignore next */ []);
|
|
44
|
+
pageReport = computed(() => {
|
|
45
|
+
const total = this.totalRecords();
|
|
46
|
+
if (total === 0) return "0 of 0";
|
|
47
|
+
return `${Math.min(this.first() + 1, total)}-${Math.min(this.first() + this.rows(), total)} of ${total}`;
|
|
48
|
+
}, ...ngDevMode ? [{ debugName: "pageReport" }] : /* istanbul ignore next */ []);
|
|
49
|
+
goToPage(page) {
|
|
50
|
+
const safePage = Math.min(Math.max(page, 0), this.pageCount() - 1);
|
|
51
|
+
this.first.set(safePage * this.rows());
|
|
52
|
+
this.emitPage();
|
|
53
|
+
}
|
|
54
|
+
toggleRowsPanel() {
|
|
55
|
+
if (this.rowsPanelOpen()) this.closeRowsPanel();
|
|
56
|
+
else this.rowsPanelOpen.set(true);
|
|
57
|
+
}
|
|
58
|
+
selectRows(rows) {
|
|
59
|
+
this.rows.set(rows);
|
|
60
|
+
this.first.set(0);
|
|
61
|
+
this.closeRowsPanel();
|
|
62
|
+
this.emitPage();
|
|
63
|
+
}
|
|
64
|
+
handleRowsTriggerKeydown(event) {
|
|
65
|
+
if (event.key === "Escape") {
|
|
66
|
+
this.closeRowsPanel();
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
if (event.key === "Enter" || event.key === " " || event.key === "ArrowDown") {
|
|
70
|
+
event.preventDefault();
|
|
71
|
+
this.rowsPanelOpen.set(true);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
handleRowsPanelKeydown(event) {
|
|
75
|
+
if (event.key !== "Escape") return;
|
|
76
|
+
event.preventDefault();
|
|
77
|
+
this.closeRowsPanel();
|
|
78
|
+
}
|
|
79
|
+
handleRowsFocusOut(event) {
|
|
80
|
+
const nextTarget = event.relatedTarget;
|
|
81
|
+
if (nextTarget instanceof Node && (event.currentTarget.contains(nextTarget) || this.rowsPanel()?.nativeElement.contains(nextTarget))) return;
|
|
82
|
+
this.closeRowsPanel();
|
|
83
|
+
}
|
|
84
|
+
closeRowsPanel() {
|
|
85
|
+
this.rowsPanelPortal()?.restore();
|
|
86
|
+
this.rowsPanelOpen.set(false);
|
|
87
|
+
}
|
|
88
|
+
emitPage() {
|
|
89
|
+
this.page.emit({
|
|
90
|
+
first: this.first(),
|
|
91
|
+
rows: this.rows(),
|
|
92
|
+
page: this.currentPage(),
|
|
93
|
+
pageCount: this.pageCount()
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
97
|
+
minVersion: "12.0.0",
|
|
98
|
+
version: "22.2.3",
|
|
99
|
+
ngImport: i0,
|
|
100
|
+
type: AerisPaginator,
|
|
101
|
+
deps: [],
|
|
102
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
103
|
+
});
|
|
104
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
105
|
+
minVersion: "17.0.0",
|
|
106
|
+
version: "22.2.3",
|
|
107
|
+
type: AerisPaginator,
|
|
108
|
+
isStandalone: true,
|
|
109
|
+
selector: "aeris-paginator",
|
|
110
|
+
inputs: {
|
|
111
|
+
firstIconTemplate: {
|
|
112
|
+
classPropertyName: "firstIconTemplate",
|
|
113
|
+
publicName: "firstIconTemplate",
|
|
114
|
+
isSignal: true,
|
|
115
|
+
isRequired: false,
|
|
116
|
+
transformFunction: null
|
|
117
|
+
},
|
|
118
|
+
previousIconTemplate: {
|
|
119
|
+
classPropertyName: "previousIconTemplate",
|
|
120
|
+
publicName: "previousIconTemplate",
|
|
121
|
+
isSignal: true,
|
|
122
|
+
isRequired: false,
|
|
123
|
+
transformFunction: null
|
|
124
|
+
},
|
|
125
|
+
nextIconTemplate: {
|
|
126
|
+
classPropertyName: "nextIconTemplate",
|
|
127
|
+
publicName: "nextIconTemplate",
|
|
128
|
+
isSignal: true,
|
|
129
|
+
isRequired: false,
|
|
130
|
+
transformFunction: null
|
|
131
|
+
},
|
|
132
|
+
lastIconTemplate: {
|
|
133
|
+
classPropertyName: "lastIconTemplate",
|
|
134
|
+
publicName: "lastIconTemplate",
|
|
135
|
+
isSignal: true,
|
|
136
|
+
isRequired: false,
|
|
137
|
+
transformFunction: null
|
|
138
|
+
},
|
|
139
|
+
dropdownIconTemplate: {
|
|
140
|
+
classPropertyName: "dropdownIconTemplate",
|
|
141
|
+
publicName: "dropdownIconTemplate",
|
|
142
|
+
isSignal: true,
|
|
143
|
+
isRequired: false,
|
|
144
|
+
transformFunction: null
|
|
145
|
+
},
|
|
146
|
+
checkIconTemplate: {
|
|
147
|
+
classPropertyName: "checkIconTemplate",
|
|
148
|
+
publicName: "checkIconTemplate",
|
|
149
|
+
isSignal: true,
|
|
150
|
+
isRequired: false,
|
|
151
|
+
transformFunction: null
|
|
152
|
+
},
|
|
153
|
+
first: {
|
|
154
|
+
classPropertyName: "first",
|
|
155
|
+
publicName: "first",
|
|
156
|
+
isSignal: true,
|
|
157
|
+
isRequired: false,
|
|
158
|
+
transformFunction: null
|
|
159
|
+
},
|
|
160
|
+
rows: {
|
|
161
|
+
classPropertyName: "rows",
|
|
162
|
+
publicName: "rows",
|
|
163
|
+
isSignal: true,
|
|
164
|
+
isRequired: false,
|
|
165
|
+
transformFunction: null
|
|
166
|
+
},
|
|
167
|
+
totalRecords: {
|
|
168
|
+
classPropertyName: "totalRecords",
|
|
169
|
+
publicName: "totalRecords",
|
|
170
|
+
isSignal: true,
|
|
171
|
+
isRequired: false,
|
|
172
|
+
transformFunction: null
|
|
173
|
+
},
|
|
174
|
+
pageLinkSize: {
|
|
175
|
+
classPropertyName: "pageLinkSize",
|
|
176
|
+
publicName: "pageLinkSize",
|
|
177
|
+
isSignal: true,
|
|
178
|
+
isRequired: false,
|
|
179
|
+
transformFunction: null
|
|
180
|
+
},
|
|
181
|
+
rowsPerPageOptions: {
|
|
182
|
+
classPropertyName: "rowsPerPageOptions",
|
|
183
|
+
publicName: "rowsPerPageOptions",
|
|
184
|
+
isSignal: true,
|
|
185
|
+
isRequired: false,
|
|
186
|
+
transformFunction: null
|
|
187
|
+
},
|
|
188
|
+
appendTo: {
|
|
189
|
+
classPropertyName: "appendTo",
|
|
190
|
+
publicName: "appendTo",
|
|
191
|
+
isSignal: true,
|
|
192
|
+
isRequired: false,
|
|
193
|
+
transformFunction: null
|
|
194
|
+
},
|
|
195
|
+
viewportMargin: {
|
|
196
|
+
classPropertyName: "viewportMargin",
|
|
197
|
+
publicName: "viewportMargin",
|
|
198
|
+
isSignal: true,
|
|
199
|
+
isRequired: false,
|
|
200
|
+
transformFunction: null
|
|
201
|
+
},
|
|
202
|
+
ariaLabel: {
|
|
203
|
+
classPropertyName: "ariaLabel",
|
|
204
|
+
publicName: "ariaLabel",
|
|
205
|
+
isSignal: true,
|
|
206
|
+
isRequired: false,
|
|
207
|
+
transformFunction: null
|
|
208
|
+
},
|
|
209
|
+
rowsPerPageLabel: {
|
|
210
|
+
classPropertyName: "rowsPerPageLabel",
|
|
211
|
+
publicName: "rowsPerPageLabel",
|
|
212
|
+
isSignal: true,
|
|
213
|
+
isRequired: false,
|
|
214
|
+
transformFunction: null
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
outputs: {
|
|
218
|
+
first: "firstChange",
|
|
219
|
+
rows: "rowsChange",
|
|
220
|
+
page: "page"
|
|
221
|
+
},
|
|
222
|
+
viewQueries: [
|
|
223
|
+
{
|
|
224
|
+
propertyName: "rowsTrigger",
|
|
225
|
+
first: true,
|
|
226
|
+
predicate: ["rowsTrigger"],
|
|
227
|
+
descendants: true,
|
|
228
|
+
isSignal: true
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
propertyName: "rowsPanel",
|
|
232
|
+
first: true,
|
|
233
|
+
predicate: ["rowsPanel"],
|
|
234
|
+
descendants: true,
|
|
235
|
+
isSignal: true
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
propertyName: "rowsPanelPortal",
|
|
239
|
+
first: true,
|
|
240
|
+
predicate: ɵAerisAppendTo,
|
|
241
|
+
descendants: true,
|
|
242
|
+
isSignal: true
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
ngImport: i0,
|
|
246
|
+
template: `
|
|
95
247
|
<nav class="aeris-paginator" [attr.aria-label]="ariaLabel()">
|
|
96
248
|
<span class="aeris-paginator__report" aria-live="polite">{{ pageReport() }}</span>
|
|
97
249
|
|
|
98
250
|
<div class="aeris-paginator__pages">
|
|
99
|
-
<button
|
|
100
|
-
|
|
251
|
+
<button
|
|
252
|
+
type="button"
|
|
253
|
+
aria-label="First page"
|
|
254
|
+
[disabled]="currentPage() === 0"
|
|
255
|
+
(click)="goToPage(0)"
|
|
256
|
+
>
|
|
257
|
+
@if (firstIconTemplate(); as customIcon) {
|
|
258
|
+
<span
|
|
259
|
+
class="aeris-paginator__page-icon aeris-paginator__page-icon--first"
|
|
260
|
+
aria-hidden="true"
|
|
261
|
+
data-aeris-custom-icon
|
|
262
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
263
|
+
/></span>
|
|
264
|
+
} @else {
|
|
265
|
+
<span
|
|
266
|
+
aerisInternalIcon="chevrons"
|
|
267
|
+
class="aeris-paginator__page-icon aeris-paginator__page-icon--first"
|
|
268
|
+
aria-hidden="true"
|
|
269
|
+
></span>
|
|
270
|
+
}
|
|
101
271
|
</button>
|
|
102
|
-
<button
|
|
103
|
-
|
|
272
|
+
<button
|
|
273
|
+
type="button"
|
|
274
|
+
aria-label="Previous page"
|
|
275
|
+
[disabled]="currentPage() === 0"
|
|
276
|
+
(click)="goToPage(currentPage() - 1)"
|
|
277
|
+
>
|
|
278
|
+
@if (previousIconTemplate(); as customIcon) {
|
|
279
|
+
<span
|
|
280
|
+
class="aeris-paginator__page-icon aeris-paginator__page-icon--previous"
|
|
281
|
+
aria-hidden="true"
|
|
282
|
+
data-aeris-custom-icon
|
|
283
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
284
|
+
/></span>
|
|
285
|
+
} @else {
|
|
286
|
+
<span
|
|
287
|
+
aerisInternalIcon="chevron"
|
|
288
|
+
class="aeris-paginator__page-icon aeris-paginator__page-icon--previous"
|
|
289
|
+
aria-hidden="true"
|
|
290
|
+
></span>
|
|
291
|
+
}
|
|
104
292
|
</button>
|
|
105
293
|
|
|
106
294
|
@for (page of visiblePages(); track page) {
|
|
@@ -114,11 +302,47 @@ class AerisPaginator {
|
|
|
114
302
|
</button>
|
|
115
303
|
}
|
|
116
304
|
|
|
117
|
-
<button
|
|
118
|
-
|
|
305
|
+
<button
|
|
306
|
+
type="button"
|
|
307
|
+
aria-label="Next page"
|
|
308
|
+
[disabled]="currentPage() >= pageCount() - 1"
|
|
309
|
+
(click)="goToPage(currentPage() + 1)"
|
|
310
|
+
>
|
|
311
|
+
@if (nextIconTemplate(); as customIcon) {
|
|
312
|
+
<span
|
|
313
|
+
class="aeris-paginator__page-icon aeris-paginator__page-icon--next"
|
|
314
|
+
aria-hidden="true"
|
|
315
|
+
data-aeris-custom-icon
|
|
316
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
317
|
+
/></span>
|
|
318
|
+
} @else {
|
|
319
|
+
<span
|
|
320
|
+
aerisInternalIcon="chevron"
|
|
321
|
+
class="aeris-paginator__page-icon aeris-paginator__page-icon--next"
|
|
322
|
+
aria-hidden="true"
|
|
323
|
+
></span>
|
|
324
|
+
}
|
|
119
325
|
</button>
|
|
120
|
-
<button
|
|
121
|
-
|
|
326
|
+
<button
|
|
327
|
+
type="button"
|
|
328
|
+
aria-label="Last page"
|
|
329
|
+
[disabled]="currentPage() >= pageCount() - 1"
|
|
330
|
+
(click)="goToPage(pageCount() - 1)"
|
|
331
|
+
>
|
|
332
|
+
@if (lastIconTemplate(); as customIcon) {
|
|
333
|
+
<span
|
|
334
|
+
class="aeris-paginator__page-icon aeris-paginator__page-icon--last"
|
|
335
|
+
aria-hidden="true"
|
|
336
|
+
data-aeris-custom-icon
|
|
337
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
338
|
+
/></span>
|
|
339
|
+
} @else {
|
|
340
|
+
<span
|
|
341
|
+
aerisInternalIcon="chevrons"
|
|
342
|
+
class="aeris-paginator__page-icon aeris-paginator__page-icon--last"
|
|
343
|
+
aria-hidden="true"
|
|
344
|
+
></span>
|
|
345
|
+
}
|
|
122
346
|
</button>
|
|
123
347
|
</div>
|
|
124
348
|
|
|
@@ -126,6 +350,7 @@ class AerisPaginator {
|
|
|
126
350
|
<div class="aeris-paginator__rows" (focusout)="handleRowsFocusOut($event)">
|
|
127
351
|
<span [id]="rowsLabelId">{{ rowsPerPageLabel() }}</span>
|
|
128
352
|
<button
|
|
353
|
+
#rowsTrigger
|
|
129
354
|
class="aeris-paginator__rows-trigger"
|
|
130
355
|
type="button"
|
|
131
356
|
aria-haspopup="listbox"
|
|
@@ -136,12 +361,28 @@ class AerisPaginator {
|
|
|
136
361
|
(keydown)="handleRowsTriggerKeydown($event)"
|
|
137
362
|
>
|
|
138
363
|
<span [id]="rowsValueId">{{ rows() }}</span>
|
|
139
|
-
|
|
364
|
+
@if (dropdownIconTemplate(); as customIcon) {
|
|
365
|
+
<span class="aeris-paginator__chevron" aria-hidden="true" data-aeris-custom-icon
|
|
366
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
367
|
+
/></span>
|
|
368
|
+
} @else {
|
|
369
|
+
<span
|
|
370
|
+
aerisInternalIcon="chevron"
|
|
371
|
+
class="aeris-paginator__chevron"
|
|
372
|
+
aria-hidden="true"
|
|
373
|
+
></span>
|
|
374
|
+
}
|
|
140
375
|
</button>
|
|
141
376
|
|
|
142
377
|
@if (rowsPanelOpen()) {
|
|
143
378
|
<div
|
|
379
|
+
#rowsPanel
|
|
144
380
|
class="aeris-paginator__rows-panel"
|
|
381
|
+
[aerisInternalAppendTo]="appendTo()"
|
|
382
|
+
[aerisInternalAppendToDismiss]="dismissOverlay"
|
|
383
|
+
[aerisInternalAppendToAnchor]="this.rowsTrigger()?.nativeElement ?? null"
|
|
384
|
+
[aerisInternalAppendToCollisionPadding]="viewportMargin()"
|
|
385
|
+
(aerisInternalAppendToOutside)="closeRowsPanel()"
|
|
145
386
|
[id]="rowsListboxId"
|
|
146
387
|
role="listbox"
|
|
147
388
|
[attr.aria-labelledby]="rowsLabelId"
|
|
@@ -156,7 +397,17 @@ class AerisPaginator {
|
|
|
156
397
|
>
|
|
157
398
|
<span>{{ option }}</span>
|
|
158
399
|
@if (option === rows()) {
|
|
159
|
-
|
|
400
|
+
@if (checkIconTemplate(); as customIcon) {
|
|
401
|
+
<span class="aeris-paginator__check" aria-hidden="true" data-aeris-custom-icon
|
|
402
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
403
|
+
/></span>
|
|
404
|
+
} @else {
|
|
405
|
+
<span
|
|
406
|
+
aerisInternalIcon="check"
|
|
407
|
+
class="aeris-paginator__check"
|
|
408
|
+
aria-hidden="true"
|
|
409
|
+
></span>
|
|
410
|
+
}
|
|
160
411
|
}
|
|
161
412
|
</button>
|
|
162
413
|
}
|
|
@@ -165,20 +416,107 @@ class AerisPaginator {
|
|
|
165
416
|
</div>
|
|
166
417
|
}
|
|
167
418
|
</nav>
|
|
168
|
-
`,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
419
|
+
`,
|
|
420
|
+
isInline: true,
|
|
421
|
+
styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, 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%3Cpath d=\"m6 9 6 6 6-6\"/%3E%3C/svg%3E') );display:block;min-width:0}.aeris-paginator{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:calc(var(--aeris-density-gap, .5rem) * 2);min-width:0;color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-md, .8125rem)}.aeris-paginator__pages{display:inline-flex;flex-wrap:wrap;flex:1 1 18rem;gap:calc(var(--aeris-density-gap, .5rem) * .7);justify-content:center;min-width:0}button,select{min-height:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-surface, #fff);color:var(--aeris-text, #111111);font:inherit}button{min-width:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);padding:0 calc(var(--aeris-control-padding-x, .75rem) * .75);border-color:var(--aeris-border);font-weight:var(--aeris-font-weight-bold, 700);cursor:pointer;transition:border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}@media(hover:hover){button:hover:not(:disabled){border-color:color-mix(in srgb,var(--aeris-primary, #111111) 58%,var(--aeris-border, #efefef));background:var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3));color:var(--aeris-text, #111111);transform:translateY(-1px)}}@media(hover:hover){.aeris-paginator__pages>button[aria-current=page]:hover{background:color-mix(in srgb,var(--aeris-primary, #111111) 22%,var(--aeris-surface, #fff))}}button[aria-current=page]{border-color:var(--aeris-primary, #111111);background:color-mix(in srgb,var(--aeris-primary, #111111) 16%,var(--aeris-surface, #fff));color:var(--aeris-primary-text, #111111);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--aeris-primary, #111111) 28%,transparent)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,.aeris-paginator__rows-trigger:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-paginator__page-icon{position:relative;width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);display:block}.aeris-paginator__page-icon:before{position:absolute;inset:0;content:\"\";background:currentColor;-webkit-mask:var(--aeris-icon-chevron) center/100% 100% no-repeat;mask:var(--aeris-icon-chevron) center/100% 100% no-repeat}.aeris-paginator__page-icon--first:before,.aeris-paginator__page-icon--last:before{-webkit-mask-image:var(--aeris-icon-chevrons, 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%3Cpath d=\"m7 6 5 5 5-5\"/%3E%3Cpath d=\"m7 13 5 5 5-5\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-chevrons, 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%3Cpath d=\"m7 6 5 5 5-5\"/%3E%3Cpath d=\"m7 13 5 5 5-5\"/%3E%3C/svg%3E'))}.aeris-paginator__page-icon--previous:before,.aeris-paginator__page-icon--first:before{transform:rotate(90deg)}.aeris-paginator__page-icon--next:before,.aeris-paginator__page-icon--last:before{transform:rotate(-90deg)}:host-context([dir=rtl]) .aeris-paginator__page-icon--previous:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--first:before{transform:rotate(-90deg)}:host-context([dir=rtl]) .aeris-paginator__page-icon--next:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--last:before{transform:rotate(90deg)}.aeris-paginator__rows{position:relative;display:inline-flex;flex:0 1 auto;align-items:center;gap:var(--aeris-density-gap, .5rem);min-width:0;white-space:nowrap}.aeris-paginator__rows-trigger{min-width:4.5rem;display:inline-flex;align-items:center;justify-content:space-between;gap:calc(var(--aeris-density-gap, .5rem) + .25rem);padding:0 var(--aeris-control-padding-x, .75rem);cursor:pointer}.aeris-paginator__chevron{position:relative;width:1rem;height:1rem}.aeris-paginator__chevron:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);transition:transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-paginator__rows-trigger[aria-expanded=true] .aeris-paginator__chevron:before{transform:translate(-50%,-50%) rotate(180deg)}.aeris-paginator__rows-panel{position:absolute;z-index:20;top:calc(100% + var(--aeris-density-gap, .5rem));right:0;min-width:5.75rem;padding:var(--aeris-overlay-padding, .375rem);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)))}.aeris-paginator__rows-panel button{width:100%;min-height:var(--aeris-item-height, 2.5rem);justify-content:space-between;display:flex;align-items:center;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #454545);font-weight:var(--aeris-font-weight-semibold, 600);text-align:left}.aeris-paginator__rows-panel button[aria-selected=true]{background:color-mix(in srgb,var(--aeris-primary, #111111) 12%,transparent);color:var(--aeris-primary-text, #111111)}@media(hover:hover){.aeris-paginator__rows-panel button:hover{background:color-mix(in srgb,var(--aeris-primary, #111111) 12%,transparent);color:var(--aeris-primary-text, #111111)}}@media(max-width:42rem){.aeris-paginator{align-items:stretch;display:grid;grid-template-columns:1fr;justify-items:center;gap:calc(var(--aeris-density-gap, .5rem) + .25rem)}.aeris-paginator__report,.aeris-paginator__rows{justify-content:center}.aeris-paginator__pages{width:100%;flex:none;order:2}.aeris-paginator__rows{order:3}}@media(max-width:30rem){.aeris-paginator{font-size:var(--aeris-font-size-md, .8125rem)}.aeris-paginator__pages{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-block:.15rem;scrollbar-width:thin}.aeris-paginator__pages button{flex:0 0 auto}.aeris-paginator__rows{width:100%;flex-wrap:wrap}.aeris-paginator__rows-trigger{flex:1 1 6rem;max-width:9rem}}@media(prefers-reduced-motion:reduce){button,.aeris-paginator__chevron:before{transition:none}}@media(prefers-reduced-motion:reduce)and (hover:hover){button:hover:not(:disabled){transform:none}}@media(pointer:coarse){.aeris-paginator__button{min-block-size:var(--aeris-touch-target-size, 2.75rem);min-inline-size:var(--aeris-touch-target-size, 2.75rem)}}: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-paginator__page-icon--previous[data-aeris-custom-icon],.aeris-paginator__page-icon--first[data-aeris-custom-icon]{rotate:90deg}.aeris-paginator__page-icon--next[data-aeris-custom-icon],.aeris-paginator__page-icon--last[data-aeris-custom-icon]{rotate:-90deg}:host-context([dir=rtl]) .aeris-paginator__page-icon--previous[data-aeris-custom-icon]{rotate:-90deg}:host-context([dir=rtl]) .aeris-paginator__page-icon--first[data-aeris-custom-icon]{rotate:-90deg}:host-context([dir=rtl]) .aeris-paginator__page-icon--next[data-aeris-custom-icon]{rotate:90deg}:host-context([dir=rtl]) .aeris-paginator__page-icon--last[data-aeris-custom-icon]{rotate:90deg}.aeris-paginator__chevron[data-aeris-custom-icon]{transition:rotate var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-paginator__rows-trigger[aria-expanded=true] .aeris-paginator__chevron[data-aeris-custom-icon]{rotate:180deg}@media(prefers-reduced-motion:reduce){.aeris-paginator__chevron[data-aeris-custom-icon]{transition:none}}:host .aeris-paginator__check[data-aeris-custom-icon]{transform:none}.aeris-paginator__check:not([data-aeris-custom-icon]){top:0;width:min(var(--aeris-icon-size, 1rem),100%);height:min(var(--aeris-icon-size, 1rem),100%);border:0;background:currentColor;-webkit-mask:var(--aeris-icon-check) center/100% 100% no-repeat;mask:var(--aeris-icon-check) center/100% 100% no-repeat}\n"],
|
|
422
|
+
dependencies: [
|
|
423
|
+
{
|
|
424
|
+
kind: "component",
|
|
425
|
+
type: ɵAerisIcon,
|
|
426
|
+
selector: "span[aerisInternalIcon]",
|
|
427
|
+
inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
kind: "directive",
|
|
431
|
+
type: NgTemplateOutlet,
|
|
432
|
+
selector: "[ngTemplateOutlet]",
|
|
433
|
+
inputs: [
|
|
434
|
+
"ngTemplateOutletContext",
|
|
435
|
+
"ngTemplateOutlet",
|
|
436
|
+
"ngTemplateOutletInjector"
|
|
437
|
+
]
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
kind: "directive",
|
|
441
|
+
type: ɵAerisAppendTo,
|
|
442
|
+
selector: "[aerisInternalAppendTo]",
|
|
443
|
+
inputs: [
|
|
444
|
+
"aerisInternalAppendTo",
|
|
445
|
+
"aerisInternalAppendToDefault",
|
|
446
|
+
"aerisInternalAppendToAnchor",
|
|
447
|
+
"aerisInternalAppendToOffset",
|
|
448
|
+
"aerisInternalAppendToMatchWidth",
|
|
449
|
+
"aerisInternalAppendToPlacement",
|
|
450
|
+
"aerisInternalAppendToAlignment",
|
|
451
|
+
"aerisInternalAppendToCollisionPadding",
|
|
452
|
+
"aerisInternalAppendToPositionSelf",
|
|
453
|
+
"aerisInternalAppendToDismiss"
|
|
454
|
+
],
|
|
455
|
+
outputs: ["aerisInternalAppendToOutside"]
|
|
456
|
+
}
|
|
457
|
+
]
|
|
458
|
+
});
|
|
459
|
+
};
|
|
460
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
461
|
+
minVersion: "12.0.0",
|
|
462
|
+
version: "22.2.3",
|
|
463
|
+
ngImport: i0,
|
|
464
|
+
type: AerisPaginator,
|
|
465
|
+
decorators: [{
|
|
466
|
+
type: Component,
|
|
467
|
+
args: [{
|
|
468
|
+
selector: "aeris-paginator",
|
|
469
|
+
imports: [
|
|
470
|
+
ɵAerisIcon,
|
|
471
|
+
NgTemplateOutlet,
|
|
472
|
+
ɵAerisAppendTo
|
|
473
|
+
],
|
|
474
|
+
template: `
|
|
173
475
|
<nav class="aeris-paginator" [attr.aria-label]="ariaLabel()">
|
|
174
476
|
<span class="aeris-paginator__report" aria-live="polite">{{ pageReport() }}</span>
|
|
175
477
|
|
|
176
478
|
<div class="aeris-paginator__pages">
|
|
177
|
-
<button
|
|
178
|
-
|
|
479
|
+
<button
|
|
480
|
+
type="button"
|
|
481
|
+
aria-label="First page"
|
|
482
|
+
[disabled]="currentPage() === 0"
|
|
483
|
+
(click)="goToPage(0)"
|
|
484
|
+
>
|
|
485
|
+
@if (firstIconTemplate(); as customIcon) {
|
|
486
|
+
<span
|
|
487
|
+
class="aeris-paginator__page-icon aeris-paginator__page-icon--first"
|
|
488
|
+
aria-hidden="true"
|
|
489
|
+
data-aeris-custom-icon
|
|
490
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
491
|
+
/></span>
|
|
492
|
+
} @else {
|
|
493
|
+
<span
|
|
494
|
+
aerisInternalIcon="chevrons"
|
|
495
|
+
class="aeris-paginator__page-icon aeris-paginator__page-icon--first"
|
|
496
|
+
aria-hidden="true"
|
|
497
|
+
></span>
|
|
498
|
+
}
|
|
179
499
|
</button>
|
|
180
|
-
<button
|
|
181
|
-
|
|
500
|
+
<button
|
|
501
|
+
type="button"
|
|
502
|
+
aria-label="Previous page"
|
|
503
|
+
[disabled]="currentPage() === 0"
|
|
504
|
+
(click)="goToPage(currentPage() - 1)"
|
|
505
|
+
>
|
|
506
|
+
@if (previousIconTemplate(); as customIcon) {
|
|
507
|
+
<span
|
|
508
|
+
class="aeris-paginator__page-icon aeris-paginator__page-icon--previous"
|
|
509
|
+
aria-hidden="true"
|
|
510
|
+
data-aeris-custom-icon
|
|
511
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
512
|
+
/></span>
|
|
513
|
+
} @else {
|
|
514
|
+
<span
|
|
515
|
+
aerisInternalIcon="chevron"
|
|
516
|
+
class="aeris-paginator__page-icon aeris-paginator__page-icon--previous"
|
|
517
|
+
aria-hidden="true"
|
|
518
|
+
></span>
|
|
519
|
+
}
|
|
182
520
|
</button>
|
|
183
521
|
|
|
184
522
|
@for (page of visiblePages(); track page) {
|
|
@@ -192,11 +530,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
192
530
|
</button>
|
|
193
531
|
}
|
|
194
532
|
|
|
195
|
-
<button
|
|
196
|
-
|
|
533
|
+
<button
|
|
534
|
+
type="button"
|
|
535
|
+
aria-label="Next page"
|
|
536
|
+
[disabled]="currentPage() >= pageCount() - 1"
|
|
537
|
+
(click)="goToPage(currentPage() + 1)"
|
|
538
|
+
>
|
|
539
|
+
@if (nextIconTemplate(); as customIcon) {
|
|
540
|
+
<span
|
|
541
|
+
class="aeris-paginator__page-icon aeris-paginator__page-icon--next"
|
|
542
|
+
aria-hidden="true"
|
|
543
|
+
data-aeris-custom-icon
|
|
544
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
545
|
+
/></span>
|
|
546
|
+
} @else {
|
|
547
|
+
<span
|
|
548
|
+
aerisInternalIcon="chevron"
|
|
549
|
+
class="aeris-paginator__page-icon aeris-paginator__page-icon--next"
|
|
550
|
+
aria-hidden="true"
|
|
551
|
+
></span>
|
|
552
|
+
}
|
|
197
553
|
</button>
|
|
198
|
-
<button
|
|
199
|
-
|
|
554
|
+
<button
|
|
555
|
+
type="button"
|
|
556
|
+
aria-label="Last page"
|
|
557
|
+
[disabled]="currentPage() >= pageCount() - 1"
|
|
558
|
+
(click)="goToPage(pageCount() - 1)"
|
|
559
|
+
>
|
|
560
|
+
@if (lastIconTemplate(); as customIcon) {
|
|
561
|
+
<span
|
|
562
|
+
class="aeris-paginator__page-icon aeris-paginator__page-icon--last"
|
|
563
|
+
aria-hidden="true"
|
|
564
|
+
data-aeris-custom-icon
|
|
565
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
566
|
+
/></span>
|
|
567
|
+
} @else {
|
|
568
|
+
<span
|
|
569
|
+
aerisInternalIcon="chevrons"
|
|
570
|
+
class="aeris-paginator__page-icon aeris-paginator__page-icon--last"
|
|
571
|
+
aria-hidden="true"
|
|
572
|
+
></span>
|
|
573
|
+
}
|
|
200
574
|
</button>
|
|
201
575
|
</div>
|
|
202
576
|
|
|
@@ -204,6 +578,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
204
578
|
<div class="aeris-paginator__rows" (focusout)="handleRowsFocusOut($event)">
|
|
205
579
|
<span [id]="rowsLabelId">{{ rowsPerPageLabel() }}</span>
|
|
206
580
|
<button
|
|
581
|
+
#rowsTrigger
|
|
207
582
|
class="aeris-paginator__rows-trigger"
|
|
208
583
|
type="button"
|
|
209
584
|
aria-haspopup="listbox"
|
|
@@ -214,12 +589,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
214
589
|
(keydown)="handleRowsTriggerKeydown($event)"
|
|
215
590
|
>
|
|
216
591
|
<span [id]="rowsValueId">{{ rows() }}</span>
|
|
217
|
-
|
|
592
|
+
@if (dropdownIconTemplate(); as customIcon) {
|
|
593
|
+
<span class="aeris-paginator__chevron" aria-hidden="true" data-aeris-custom-icon
|
|
594
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
595
|
+
/></span>
|
|
596
|
+
} @else {
|
|
597
|
+
<span
|
|
598
|
+
aerisInternalIcon="chevron"
|
|
599
|
+
class="aeris-paginator__chevron"
|
|
600
|
+
aria-hidden="true"
|
|
601
|
+
></span>
|
|
602
|
+
}
|
|
218
603
|
</button>
|
|
219
604
|
|
|
220
605
|
@if (rowsPanelOpen()) {
|
|
221
606
|
<div
|
|
607
|
+
#rowsPanel
|
|
222
608
|
class="aeris-paginator__rows-panel"
|
|
609
|
+
[aerisInternalAppendTo]="appendTo()"
|
|
610
|
+
[aerisInternalAppendToDismiss]="dismissOverlay"
|
|
611
|
+
[aerisInternalAppendToAnchor]="this.rowsTrigger()?.nativeElement ?? null"
|
|
612
|
+
[aerisInternalAppendToCollisionPadding]="viewportMargin()"
|
|
613
|
+
(aerisInternalAppendToOutside)="closeRowsPanel()"
|
|
223
614
|
[id]="rowsListboxId"
|
|
224
615
|
role="listbox"
|
|
225
616
|
[attr.aria-labelledby]="rowsLabelId"
|
|
@@ -234,7 +625,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
234
625
|
>
|
|
235
626
|
<span>{{ option }}</span>
|
|
236
627
|
@if (option === rows()) {
|
|
237
|
-
|
|
628
|
+
@if (checkIconTemplate(); as customIcon) {
|
|
629
|
+
<span class="aeris-paginator__check" aria-hidden="true" data-aeris-custom-icon
|
|
630
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
631
|
+
/></span>
|
|
632
|
+
} @else {
|
|
633
|
+
<span
|
|
634
|
+
aerisInternalIcon="check"
|
|
635
|
+
class="aeris-paginator__check"
|
|
636
|
+
aria-hidden="true"
|
|
637
|
+
></span>
|
|
638
|
+
}
|
|
238
639
|
}
|
|
239
640
|
</button>
|
|
240
641
|
}
|
|
@@ -243,12 +644,155 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
243
644
|
</div>
|
|
244
645
|
}
|
|
245
646
|
</nav>
|
|
246
|
-
`,
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
647
|
+
`,
|
|
648
|
+
styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, 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%3Cpath d=\"m6 9 6 6 6-6\"/%3E%3C/svg%3E') );display:block;min-width:0}.aeris-paginator{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:calc(var(--aeris-density-gap, .5rem) * 2);min-width:0;color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-md, .8125rem)}.aeris-paginator__pages{display:inline-flex;flex-wrap:wrap;flex:1 1 18rem;gap:calc(var(--aeris-density-gap, .5rem) * .7);justify-content:center;min-width:0}button,select{min-height:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-surface, #fff);color:var(--aeris-text, #111111);font:inherit}button{min-width:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);padding:0 calc(var(--aeris-control-padding-x, .75rem) * .75);border-color:var(--aeris-border);font-weight:var(--aeris-font-weight-bold, 700);cursor:pointer;transition:border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}@media(hover:hover){button:hover:not(:disabled){border-color:color-mix(in srgb,var(--aeris-primary, #111111) 58%,var(--aeris-border, #efefef));background:var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3));color:var(--aeris-text, #111111);transform:translateY(-1px)}}@media(hover:hover){.aeris-paginator__pages>button[aria-current=page]:hover{background:color-mix(in srgb,var(--aeris-primary, #111111) 22%,var(--aeris-surface, #fff))}}button[aria-current=page]{border-color:var(--aeris-primary, #111111);background:color-mix(in srgb,var(--aeris-primary, #111111) 16%,var(--aeris-surface, #fff));color:var(--aeris-primary-text, #111111);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--aeris-primary, #111111) 28%,transparent)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,.aeris-paginator__rows-trigger:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-paginator__page-icon{position:relative;width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);display:block}.aeris-paginator__page-icon:before{position:absolute;inset:0;content:\"\";background:currentColor;-webkit-mask:var(--aeris-icon-chevron) center/100% 100% no-repeat;mask:var(--aeris-icon-chevron) center/100% 100% no-repeat}.aeris-paginator__page-icon--first:before,.aeris-paginator__page-icon--last:before{-webkit-mask-image:var(--aeris-icon-chevrons, 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%3Cpath d=\"m7 6 5 5 5-5\"/%3E%3Cpath d=\"m7 13 5 5 5-5\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-chevrons, 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%3Cpath d=\"m7 6 5 5 5-5\"/%3E%3Cpath d=\"m7 13 5 5 5-5\"/%3E%3C/svg%3E'))}.aeris-paginator__page-icon--previous:before,.aeris-paginator__page-icon--first:before{transform:rotate(90deg)}.aeris-paginator__page-icon--next:before,.aeris-paginator__page-icon--last:before{transform:rotate(-90deg)}:host-context([dir=rtl]) .aeris-paginator__page-icon--previous:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--first:before{transform:rotate(-90deg)}:host-context([dir=rtl]) .aeris-paginator__page-icon--next:before,:host-context([dir=rtl]) .aeris-paginator__page-icon--last:before{transform:rotate(90deg)}.aeris-paginator__rows{position:relative;display:inline-flex;flex:0 1 auto;align-items:center;gap:var(--aeris-density-gap, .5rem);min-width:0;white-space:nowrap}.aeris-paginator__rows-trigger{min-width:4.5rem;display:inline-flex;align-items:center;justify-content:space-between;gap:calc(var(--aeris-density-gap, .5rem) + .25rem);padding:0 var(--aeris-control-padding-x, .75rem);cursor:pointer}.aeris-paginator__chevron{position:relative;width:1rem;height:1rem}.aeris-paginator__chevron:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);transition:transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-paginator__rows-trigger[aria-expanded=true] .aeris-paginator__chevron:before{transform:translate(-50%,-50%) rotate(180deg)}.aeris-paginator__rows-panel{position:absolute;z-index:20;top:calc(100% + var(--aeris-density-gap, .5rem));right:0;min-width:5.75rem;padding:var(--aeris-overlay-padding, .375rem);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)))}.aeris-paginator__rows-panel button{width:100%;min-height:var(--aeris-item-height, 2.5rem);justify-content:space-between;display:flex;align-items:center;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #454545);font-weight:var(--aeris-font-weight-semibold, 600);text-align:left}.aeris-paginator__rows-panel button[aria-selected=true]{background:color-mix(in srgb,var(--aeris-primary, #111111) 12%,transparent);color:var(--aeris-primary-text, #111111)}@media(hover:hover){.aeris-paginator__rows-panel button:hover{background:color-mix(in srgb,var(--aeris-primary, #111111) 12%,transparent);color:var(--aeris-primary-text, #111111)}}@media(max-width:42rem){.aeris-paginator{align-items:stretch;display:grid;grid-template-columns:1fr;justify-items:center;gap:calc(var(--aeris-density-gap, .5rem) + .25rem)}.aeris-paginator__report,.aeris-paginator__rows{justify-content:center}.aeris-paginator__pages{width:100%;flex:none;order:2}.aeris-paginator__rows{order:3}}@media(max-width:30rem){.aeris-paginator{font-size:var(--aeris-font-size-md, .8125rem)}.aeris-paginator__pages{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-block:.15rem;scrollbar-width:thin}.aeris-paginator__pages button{flex:0 0 auto}.aeris-paginator__rows{width:100%;flex-wrap:wrap}.aeris-paginator__rows-trigger{flex:1 1 6rem;max-width:9rem}}@media(prefers-reduced-motion:reduce){button,.aeris-paginator__chevron:before{transition:none}}@media(prefers-reduced-motion:reduce)and (hover:hover){button:hover:not(:disabled){transform:none}}@media(pointer:coarse){.aeris-paginator__button{min-block-size:var(--aeris-touch-target-size, 2.75rem);min-inline-size:var(--aeris-touch-target-size, 2.75rem)}}: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-paginator__page-icon--previous[data-aeris-custom-icon],.aeris-paginator__page-icon--first[data-aeris-custom-icon]{rotate:90deg}.aeris-paginator__page-icon--next[data-aeris-custom-icon],.aeris-paginator__page-icon--last[data-aeris-custom-icon]{rotate:-90deg}:host-context([dir=rtl]) .aeris-paginator__page-icon--previous[data-aeris-custom-icon]{rotate:-90deg}:host-context([dir=rtl]) .aeris-paginator__page-icon--first[data-aeris-custom-icon]{rotate:-90deg}:host-context([dir=rtl]) .aeris-paginator__page-icon--next[data-aeris-custom-icon]{rotate:90deg}:host-context([dir=rtl]) .aeris-paginator__page-icon--last[data-aeris-custom-icon]{rotate:90deg}.aeris-paginator__chevron[data-aeris-custom-icon]{transition:rotate var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-paginator__rows-trigger[aria-expanded=true] .aeris-paginator__chevron[data-aeris-custom-icon]{rotate:180deg}@media(prefers-reduced-motion:reduce){.aeris-paginator__chevron[data-aeris-custom-icon]{transition:none}}:host .aeris-paginator__check[data-aeris-custom-icon]{transform:none}.aeris-paginator__check:not([data-aeris-custom-icon]){top:0;width:min(var(--aeris-icon-size, 1rem),100%);height:min(var(--aeris-icon-size, 1rem),100%);border:0;background:currentColor;-webkit-mask:var(--aeris-icon-check) center/100% 100% no-repeat;mask:var(--aeris-icon-check) center/100% 100% no-repeat}\n"]
|
|
649
|
+
}]
|
|
650
|
+
}],
|
|
651
|
+
propDecorators: {
|
|
652
|
+
firstIconTemplate: [{
|
|
653
|
+
type: i0.Input,
|
|
654
|
+
args: [{
|
|
655
|
+
isSignal: true,
|
|
656
|
+
alias: "firstIconTemplate",
|
|
657
|
+
required: false
|
|
658
|
+
}]
|
|
659
|
+
}],
|
|
660
|
+
previousIconTemplate: [{
|
|
661
|
+
type: i0.Input,
|
|
662
|
+
args: [{
|
|
663
|
+
isSignal: true,
|
|
664
|
+
alias: "previousIconTemplate",
|
|
665
|
+
required: false
|
|
666
|
+
}]
|
|
667
|
+
}],
|
|
668
|
+
nextIconTemplate: [{
|
|
669
|
+
type: i0.Input,
|
|
670
|
+
args: [{
|
|
671
|
+
isSignal: true,
|
|
672
|
+
alias: "nextIconTemplate",
|
|
673
|
+
required: false
|
|
674
|
+
}]
|
|
675
|
+
}],
|
|
676
|
+
lastIconTemplate: [{
|
|
677
|
+
type: i0.Input,
|
|
678
|
+
args: [{
|
|
679
|
+
isSignal: true,
|
|
680
|
+
alias: "lastIconTemplate",
|
|
681
|
+
required: false
|
|
682
|
+
}]
|
|
683
|
+
}],
|
|
684
|
+
dropdownIconTemplate: [{
|
|
685
|
+
type: i0.Input,
|
|
686
|
+
args: [{
|
|
687
|
+
isSignal: true,
|
|
688
|
+
alias: "dropdownIconTemplate",
|
|
689
|
+
required: false
|
|
690
|
+
}]
|
|
691
|
+
}],
|
|
692
|
+
checkIconTemplate: [{
|
|
693
|
+
type: i0.Input,
|
|
694
|
+
args: [{
|
|
695
|
+
isSignal: true,
|
|
696
|
+
alias: "checkIconTemplate",
|
|
697
|
+
required: false
|
|
698
|
+
}]
|
|
699
|
+
}],
|
|
700
|
+
first: [{
|
|
701
|
+
type: i0.Input,
|
|
702
|
+
args: [{
|
|
703
|
+
isSignal: true,
|
|
704
|
+
alias: "first",
|
|
705
|
+
required: false
|
|
706
|
+
}]
|
|
707
|
+
}, {
|
|
708
|
+
type: i0.Output,
|
|
709
|
+
args: ["firstChange"]
|
|
710
|
+
}],
|
|
711
|
+
rows: [{
|
|
712
|
+
type: i0.Input,
|
|
713
|
+
args: [{
|
|
714
|
+
isSignal: true,
|
|
715
|
+
alias: "rows",
|
|
716
|
+
required: false
|
|
717
|
+
}]
|
|
718
|
+
}, {
|
|
719
|
+
type: i0.Output,
|
|
720
|
+
args: ["rowsChange"]
|
|
721
|
+
}],
|
|
722
|
+
totalRecords: [{
|
|
723
|
+
type: i0.Input,
|
|
724
|
+
args: [{
|
|
725
|
+
isSignal: true,
|
|
726
|
+
alias: "totalRecords",
|
|
727
|
+
required: false
|
|
728
|
+
}]
|
|
729
|
+
}],
|
|
730
|
+
pageLinkSize: [{
|
|
731
|
+
type: i0.Input,
|
|
732
|
+
args: [{
|
|
733
|
+
isSignal: true,
|
|
734
|
+
alias: "pageLinkSize",
|
|
735
|
+
required: false
|
|
736
|
+
}]
|
|
737
|
+
}],
|
|
738
|
+
rowsPerPageOptions: [{
|
|
739
|
+
type: i0.Input,
|
|
740
|
+
args: [{
|
|
741
|
+
isSignal: true,
|
|
742
|
+
alias: "rowsPerPageOptions",
|
|
743
|
+
required: false
|
|
744
|
+
}]
|
|
745
|
+
}],
|
|
746
|
+
appendTo: [{
|
|
747
|
+
type: i0.Input,
|
|
748
|
+
args: [{
|
|
749
|
+
isSignal: true,
|
|
750
|
+
alias: "appendTo",
|
|
751
|
+
required: false
|
|
752
|
+
}]
|
|
753
|
+
}],
|
|
754
|
+
viewportMargin: [{
|
|
755
|
+
type: i0.Input,
|
|
756
|
+
args: [{
|
|
757
|
+
isSignal: true,
|
|
758
|
+
alias: "viewportMargin",
|
|
759
|
+
required: false
|
|
760
|
+
}]
|
|
761
|
+
}],
|
|
762
|
+
ariaLabel: [{
|
|
763
|
+
type: i0.Input,
|
|
764
|
+
args: [{
|
|
765
|
+
isSignal: true,
|
|
766
|
+
alias: "ariaLabel",
|
|
767
|
+
required: false
|
|
768
|
+
}]
|
|
769
|
+
}],
|
|
770
|
+
rowsPerPageLabel: [{
|
|
771
|
+
type: i0.Input,
|
|
772
|
+
args: [{
|
|
773
|
+
isSignal: true,
|
|
774
|
+
alias: "rowsPerPageLabel",
|
|
775
|
+
required: false
|
|
776
|
+
}]
|
|
777
|
+
}],
|
|
778
|
+
page: [{
|
|
779
|
+
type: i0.Output,
|
|
780
|
+
args: ["page"]
|
|
781
|
+
}],
|
|
782
|
+
rowsTrigger: [{
|
|
783
|
+
type: i0.ViewChild,
|
|
784
|
+
args: ["rowsTrigger", { isSignal: true }]
|
|
785
|
+
}],
|
|
786
|
+
rowsPanel: [{
|
|
787
|
+
type: i0.ViewChild,
|
|
788
|
+
args: ["rowsPanel", { isSignal: true }]
|
|
789
|
+
}],
|
|
790
|
+
rowsPanelPortal: [{
|
|
791
|
+
type: i0.ViewChild,
|
|
792
|
+
args: [i0.forwardRef(() => ɵAerisAppendTo), { isSignal: true }]
|
|
793
|
+
}]
|
|
794
|
+
}
|
|
795
|
+
});
|
|
253
796
|
export { AerisPaginator };
|
|
254
|
-
|
|
797
|
+
|
|
798
|
+
//# sourceMappingURL=aeris-ui-core-paginator.mjs.map
|