@riverty/web-components 6.3.0 → 6.3.1
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/CHANGELOG.md +6 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/focusable-Oll_rmtP.js +28 -0
- package/dist/cjs/formData-B2DZyLxP.js +44 -0
- package/dist/cjs/index-BnETQtSf.js +1834 -0
- package/dist/cjs/index.cjs.js +37 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/r-accordion-panel.cjs.entry.js +24 -0
- package/dist/cjs/r-accordion-section.cjs.entry.js +125 -0
- package/dist/cjs/r-accordion-trigger.cjs.entry.js +93 -0
- package/dist/cjs/r-accordion.cjs.entry.js +20 -0
- package/dist/cjs/r-alert.cjs.entry.js +146 -0
- package/dist/cjs/r-badge.cjs.entry.js +41 -0
- package/dist/cjs/r-button.cjs.entry.js +149 -0
- package/dist/cjs/r-checkbox-group.cjs.entry.js +237 -0
- package/dist/cjs/r-checkbox.cjs.entry.js +274 -0
- package/dist/cjs/r-design-system-devtools.cjs.entry.js +31 -0
- package/dist/cjs/r-dialog.cjs.entry.js +107 -0
- package/dist/cjs/r-hint_2.cjs.entry.js +50 -0
- package/dist/cjs/r-icon-button_2.cjs.entry.js +492 -0
- package/dist/cjs/r-icon.cjs.entry.js +284 -0
- package/dist/cjs/r-illustration.cjs.entry.js +396 -0
- package/dist/cjs/r-input-code.cjs.entry.js +437 -0
- package/dist/cjs/r-input-date.cjs.entry.js +524 -0
- package/dist/cjs/r-input-password.cjs.entry.js +270 -0
- package/dist/cjs/r-input-phone-number.cjs.entry.js +2525 -0
- package/dist/cjs/r-input.cjs.entry.js +618 -0
- package/dist/cjs/r-list-item.cjs.entry.js +109 -0
- package/dist/cjs/r-pagination.cjs.entry.js +320 -0
- package/dist/cjs/r-panel.cjs.entry.js +184 -0
- package/dist/cjs/r-popover-action.cjs.entry.js +80 -0
- package/dist/cjs/r-popover-content.cjs.entry.js +62 -0
- package/dist/cjs/r-popover-headline.cjs.entry.js +28 -0
- package/dist/cjs/r-popover-trigger.cjs.entry.js +70 -0
- package/dist/cjs/r-popover.cjs.entry.js +347 -0
- package/dist/cjs/r-progress-bar.cjs.entry.js +25 -0
- package/dist/cjs/r-radio-button-description.cjs.entry.js +18 -0
- package/dist/cjs/r-radio-button-leading.cjs.entry.js +18 -0
- package/dist/cjs/r-radio-button-title.cjs.entry.js +18 -0
- package/dist/cjs/r-radio-button-trailing.cjs.entry.js +18 -0
- package/dist/cjs/r-radio-button.cjs.entry.js +139 -0
- package/dist/cjs/r-radio-group.cjs.entry.js +428 -0
- package/dist/cjs/r-select-option.cjs.entry.js +130 -0
- package/dist/cjs/r-select.cjs.entry.js +1107 -0
- package/dist/cjs/r-skip-link.cjs.entry.js +19 -0
- package/dist/cjs/r-stepper-item.cjs.entry.js +42 -0
- package/dist/cjs/r-stepper.cjs.entry.js +99 -0
- package/dist/cjs/r-tab-panel.cjs.entry.js +26 -0
- package/dist/cjs/r-tab.cjs.entry.js +62 -0
- package/dist/cjs/r-tabs-list.cjs.entry.js +175 -0
- package/dist/cjs/r-tabs.cjs.entry.js +277 -0
- package/dist/cjs/r-textarea.cjs.entry.js +270 -0
- package/dist/cjs/r-toast-group.cjs.entry.js +46 -0
- package/dist/cjs/r-toast.cjs.entry.js +314 -0
- package/dist/cjs/style-observer-D9zSP9wP.js +1118 -0
- package/dist/cjs/theming-NqxjhVJS.js +109 -0
- package/dist/cjs/web-components.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +60 -0
- package/dist/collection/components/accordion/accordion.css +24 -0
- package/dist/collection/components/accordion/accordion.js +90 -0
- package/dist/collection/components/accordion/exports.js +1 -0
- package/dist/collection/components/accordion-panel/accordion-panel.css +50 -0
- package/dist/collection/components/accordion-panel/accordion-panel.js +86 -0
- package/dist/collection/components/accordion-section/accordion-section.css +27 -0
- package/dist/collection/components/accordion-section/accordion-section.js +235 -0
- package/dist/collection/components/accordion-trigger/accordion-trigger.css +93 -0
- package/dist/collection/components/accordion-trigger/accordion-trigger.js +220 -0
- package/dist/collection/components/alert/alert.css +120 -0
- package/dist/collection/components/alert/alert.js +526 -0
- package/dist/collection/components/alert/exports.js +2 -0
- package/dist/collection/components/badge/badge.css +62 -0
- package/dist/collection/components/badge/badge.js +124 -0
- package/dist/collection/components/badge/exports.js +1 -0
- package/dist/collection/components/button/button.css +180 -0
- package/dist/collection/components/button/button.js +510 -0
- package/dist/collection/components/button/exports.js +5 -0
- package/dist/collection/components/checkbox/checkbox.css +116 -0
- package/dist/collection/components/checkbox/checkbox.js +803 -0
- package/dist/collection/components/checkbox-group/checkbox-group.css +48 -0
- package/dist/collection/components/checkbox-group/checkbox-group.js +744 -0
- package/dist/collection/components/design-system-devtools/design-system-devtools.js +59 -0
- package/dist/collection/components/dialog/dialog.css +125 -0
- package/dist/collection/components/dialog/dialog.js +345 -0
- package/dist/collection/components/dialog/exports.js +9 -0
- package/dist/collection/components/hint/exports.js +1 -0
- package/dist/collection/components/hint/hint.css +63 -0
- package/dist/collection/components/hint/hint.js +114 -0
- package/dist/collection/components/icon/all-kit.js +2 -0
- package/dist/collection/components/icon/data.js +90 -0
- package/dist/collection/components/icon/exports.js +7 -0
- package/dist/collection/components/icon/icon.css +105 -0
- package/dist/collection/components/icon/icon.js +379 -0
- package/dist/collection/components/icon/riverty-kit.js +2 -0
- package/dist/collection/components/icon-button/icon-button.css +105 -0
- package/dist/collection/components/icon-button/icon-button.js +343 -0
- package/dist/collection/components/illustration/data.js +112 -0
- package/dist/collection/components/illustration/exports.js +3 -0
- package/dist/collection/components/illustration/illustration.css +52 -0
- package/dist/collection/components/illustration/illustration.js +540 -0
- package/dist/collection/components/illustration/illustrations-ui-kit.js +2 -0
- package/dist/collection/components/input/exports.js +62 -0
- package/dist/collection/components/input/input.css +186 -0
- package/dist/collection/components/input/input.js +1861 -0
- package/dist/collection/components/input-code/exports.js +2 -0
- package/dist/collection/components/input-code/input-code.css +127 -0
- package/dist/collection/components/input-code/input-code.js +1165 -0
- package/dist/collection/components/input-date/exports.js +1 -0
- package/dist/collection/components/input-date/input-date.css +148 -0
- package/dist/collection/components/input-date/input-date.js +1254 -0
- package/dist/collection/components/input-password/exports.js +1 -0
- package/dist/collection/components/input-password/input-password.css +25 -0
- package/dist/collection/components/input-password/input-password.js +1077 -0
- package/dist/collection/components/input-phone-number/input-phone-number.css +61 -0
- package/dist/collection/components/input-phone-number/input-phone-number.js +893 -0
- package/dist/collection/components/label/label.css +38 -0
- package/dist/collection/components/label/label.js +47 -0
- package/dist/collection/components/list-item/list-item/exports.js +2 -0
- package/dist/collection/components/list-item/list-item/list-item.css +199 -0
- package/dist/collection/components/list-item/list-item/list-item.js +467 -0
- package/dist/collection/components/pagination/exports.js +3 -0
- package/dist/collection/components/pagination/pagination.css +118 -0
- package/dist/collection/components/pagination/pagination.js +814 -0
- package/dist/collection/components/panel/exports.js +1 -0
- package/dist/collection/components/panel/panel.css +192 -0
- package/dist/collection/components/panel/panel.js +473 -0
- package/dist/collection/components/popover/exports.js +3 -0
- package/dist/collection/components/popover/popover.css +251 -0
- package/dist/collection/components/popover/popover.js +741 -0
- package/dist/collection/components/popover-action/popover-action.css +21 -0
- package/dist/collection/components/popover-action/popover-action.js +150 -0
- package/dist/collection/components/popover-content/popover-content.css +9 -0
- package/dist/collection/components/popover-content/popover-content.js +130 -0
- package/dist/collection/components/popover-headline/popover-headline.css +7 -0
- package/dist/collection/components/popover-headline/popover-headline.js +28 -0
- package/dist/collection/components/popover-trigger/exports.js +1 -0
- package/dist/collection/components/popover-trigger/popover-trigger.css +4 -0
- package/dist/collection/components/popover-trigger/popover-trigger.js +163 -0
- package/dist/collection/components/progress-bar/progress-bar.css +41 -0
- package/dist/collection/components/progress-bar/progress-bar.js +71 -0
- package/dist/collection/components/radio-button/radio-button.css +126 -0
- package/dist/collection/components/radio-button/radio-button.js +559 -0
- package/dist/collection/components/radio-button-description/radio-button-description.css +5 -0
- package/dist/collection/components/radio-button-description/radio-button-description.js +22 -0
- package/dist/collection/components/radio-button-leading/radio-button-leading.css +3 -0
- package/dist/collection/components/radio-button-leading/radio-button-leading.js +22 -0
- package/dist/collection/components/radio-button-title/radio-button-title.css +8 -0
- package/dist/collection/components/radio-button-title/radio-button-title.js +22 -0
- package/dist/collection/components/radio-button-trailing/radio-button-trailing.css +6 -0
- package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +22 -0
- package/dist/collection/components/radio-group/exports.js +1 -0
- package/dist/collection/components/radio-group/radio-group.css +65 -0
- package/dist/collection/components/radio-group/radio-group.js +1023 -0
- package/dist/collection/components/select/exports.js +1 -0
- package/dist/collection/components/select/select.css +247 -0
- package/dist/collection/components/select/select.js +2038 -0
- package/dist/collection/components/select-option/select-option.css +93 -0
- package/dist/collection/components/select-option/select-option.js +459 -0
- package/dist/collection/components/skip-link/exports.js +1 -0
- package/dist/collection/components/skip-link/skip-link.css +37 -0
- package/dist/collection/components/skip-link/skip-link.js +52 -0
- package/dist/collection/components/stepper/stepper.css +25 -0
- package/dist/collection/components/stepper/stepper.js +216 -0
- package/dist/collection/components/stepper-item/stepper-item.css +62 -0
- package/dist/collection/components/stepper-item/stepper-item.js +171 -0
- package/dist/collection/components/tab/tab.css +81 -0
- package/dist/collection/components/tab/tab.js +169 -0
- package/dist/collection/components/tab-panel/tab-panel.css +19 -0
- package/dist/collection/components/tab-panel/tab-panel.js +72 -0
- package/dist/collection/components/tabs/tabs.css +4 -0
- package/dist/collection/components/tabs/tabs.js +345 -0
- package/dist/collection/components/tabs-list/exports.js +2 -0
- package/dist/collection/components/tabs-list/tabs-list.css +58 -0
- package/dist/collection/components/tabs-list/tabs-list.js +294 -0
- package/dist/collection/components/textarea/exports.js +8 -0
- package/dist/collection/components/textarea/textarea.css +148 -0
- package/dist/collection/components/textarea/textarea.js +1055 -0
- package/dist/collection/components/toast/exports.js +3 -0
- package/dist/collection/components/toast/toast.css +179 -0
- package/dist/collection/components/toast/toast.js +820 -0
- package/dist/collection/components/toast-group/exports.js +1 -0
- package/dist/collection/components/toast-group/toast-group.css +37 -0
- package/dist/collection/components/toast-group/toast-group.js +49 -0
- package/dist/collection/components/tooltip/exports.js +3 -0
- package/dist/collection/components/tooltip/tooltip.css +77 -0
- package/dist/collection/components/tooltip/tooltip.js +525 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/utils/focusable.js +24 -0
- package/dist/collection/utils/formData.js +40 -0
- package/dist/collection/utils/theming.js +103 -0
- package/dist/collection/utils/version-checker.js +33 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/focusable-ky1yonnS.js +26 -0
- package/dist/esm/formData-DvLT8-y3.js +42 -0
- package/dist/esm/index-CTxpqopm.js +1806 -0
- package/dist/esm/index.js +35 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/r-accordion-panel.entry.js +22 -0
- package/dist/esm/r-accordion-section.entry.js +123 -0
- package/dist/esm/r-accordion-trigger.entry.js +91 -0
- package/dist/esm/r-accordion.entry.js +18 -0
- package/dist/esm/r-alert.entry.js +144 -0
- package/dist/esm/r-badge.entry.js +39 -0
- package/dist/esm/r-button.entry.js +147 -0
- package/dist/esm/r-checkbox-group.entry.js +235 -0
- package/dist/esm/r-checkbox.entry.js +272 -0
- package/dist/esm/r-design-system-devtools.entry.js +29 -0
- package/dist/esm/r-dialog.entry.js +105 -0
- package/dist/esm/r-hint_2.entry.js +47 -0
- package/dist/esm/r-icon-button_2.entry.js +489 -0
- package/dist/esm/r-icon.entry.js +282 -0
- package/dist/esm/r-illustration.entry.js +394 -0
- package/dist/esm/r-input-code.entry.js +435 -0
- package/dist/esm/r-input-date.entry.js +522 -0
- package/dist/esm/r-input-password.entry.js +268 -0
- package/dist/esm/r-input-phone-number.entry.js +2523 -0
- package/dist/esm/r-input.entry.js +616 -0
- package/dist/esm/r-list-item.entry.js +107 -0
- package/dist/esm/r-pagination.entry.js +318 -0
- package/dist/esm/r-panel.entry.js +182 -0
- package/dist/esm/r-popover-action.entry.js +78 -0
- package/dist/esm/r-popover-content.entry.js +60 -0
- package/dist/esm/r-popover-headline.entry.js +26 -0
- package/dist/esm/r-popover-trigger.entry.js +68 -0
- package/dist/esm/r-popover.entry.js +345 -0
- package/dist/esm/r-progress-bar.entry.js +23 -0
- package/dist/esm/r-radio-button-description.entry.js +16 -0
- package/dist/esm/r-radio-button-leading.entry.js +16 -0
- package/dist/esm/r-radio-button-title.entry.js +16 -0
- package/dist/esm/r-radio-button-trailing.entry.js +16 -0
- package/dist/esm/r-radio-button.entry.js +137 -0
- package/dist/esm/r-radio-group.entry.js +426 -0
- package/dist/esm/r-select-option.entry.js +128 -0
- package/dist/esm/r-select.entry.js +1105 -0
- package/dist/esm/r-skip-link.entry.js +17 -0
- package/dist/esm/r-stepper-item.entry.js +40 -0
- package/dist/esm/r-stepper.entry.js +97 -0
- package/dist/esm/r-tab-panel.entry.js +24 -0
- package/dist/esm/r-tab.entry.js +60 -0
- package/dist/esm/r-tabs-list.entry.js +173 -0
- package/dist/esm/r-tabs.entry.js +275 -0
- package/dist/esm/r-textarea.entry.js +268 -0
- package/dist/esm/r-toast-group.entry.js +44 -0
- package/dist/esm/r-toast.entry.js +312 -0
- package/dist/esm/style-observer-4Uv3PpKT.js +1116 -0
- package/dist/esm/theming-DD2IrjpG.js +106 -0
- package/dist/esm/web-components.js +21 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/accordion/accordion.d.ts +27 -0
- package/dist/types/components/accordion/exports.d.ts +2 -0
- package/dist/types/components/accordion-panel/accordion-panel.d.ts +10 -0
- package/dist/types/components/accordion-section/accordion-section.d.ts +36 -0
- package/dist/types/components/accordion-trigger/accordion-trigger.d.ts +33 -0
- package/dist/types/components/alert/alert.d.ts +67 -0
- package/dist/types/components/alert/exports.d.ts +4 -0
- package/dist/types/components/badge/badge.d.ts +26 -0
- package/dist/types/components/badge/exports.d.ts +2 -0
- package/dist/types/components/button/button.d.ts +89 -0
- package/dist/types/components/button/exports.d.ts +10 -0
- package/dist/types/components/checkbox/checkbox.d.ts +138 -0
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +124 -0
- package/dist/types/components/design-system-devtools/design-system-devtools.d.ts +15 -0
- package/dist/types/components/dialog/dialog.d.ts +69 -0
- package/dist/types/components/dialog/exports.d.ts +10 -0
- package/dist/types/components/hint/exports.d.ts +2 -0
- package/dist/types/components/hint/hint.d.ts +20 -0
- package/dist/types/components/icon/all-kit.d.ts +2890 -0
- package/dist/types/components/icon/data.d.ts +145 -0
- package/dist/types/components/icon/exports.d.ts +152 -0
- package/dist/types/components/icon/icon.d.ts +37 -0
- package/dist/types/components/icon/riverty-kit.d.ts +139 -0
- package/dist/types/components/icon-button/icon-button.d.ts +69 -0
- package/dist/types/components/illustration/data.d.ts +52 -0
- package/dist/types/components/illustration/exports.d.ts +23 -0
- package/dist/types/components/illustration/illustration.d.ts +51 -0
- package/dist/types/components/illustration/illustrations-ui-kit.d.ts +21 -0
- package/dist/types/components/input/exports.d.ts +55 -0
- package/dist/types/components/input/input.d.ts +365 -0
- package/dist/types/components/input-code/exports.d.ts +4 -0
- package/dist/types/components/input-code/input-code.d.ts +177 -0
- package/dist/types/components/input-date/exports.d.ts +5 -0
- package/dist/types/components/input-date/input-date.d.ts +174 -0
- package/dist/types/components/input-password/exports.d.ts +1 -0
- package/dist/types/components/input-password/input-password.d.ts +186 -0
- package/dist/types/components/input-phone-number/input-phone-number.d.ts +130 -0
- package/dist/types/components/label/label.d.ts +9 -0
- package/dist/types/components/list-item/list-item/exports.d.ts +4 -0
- package/dist/types/components/list-item/list-item/list-item.d.ts +61 -0
- package/dist/types/components/pagination/exports.d.ts +6 -0
- package/dist/types/components/pagination/pagination.d.ts +140 -0
- package/dist/types/components/panel/exports.d.ts +2 -0
- package/dist/types/components/panel/panel.d.ts +56 -0
- package/dist/types/components/popover/exports.d.ts +6 -0
- package/dist/types/components/popover/popover.d.ts +131 -0
- package/dist/types/components/popover-action/popover-action.d.ts +24 -0
- package/dist/types/components/popover-content/popover-content.d.ts +22 -0
- package/dist/types/components/popover-headline/popover-headline.d.ts +6 -0
- package/dist/types/components/popover-trigger/exports.d.ts +2 -0
- package/dist/types/components/popover-trigger/popover-trigger.d.ts +31 -0
- package/dist/types/components/progress-bar/progress-bar.d.ts +10 -0
- package/dist/types/components/radio-button/radio-button.d.ts +92 -0
- package/dist/types/components/radio-button-description/radio-button-description.d.ts +8 -0
- package/dist/types/components/radio-button-leading/radio-button-leading.d.ts +8 -0
- package/dist/types/components/radio-button-title/radio-button-title.d.ts +8 -0
- package/dist/types/components/radio-button-trailing/radio-button-trailing.d.ts +8 -0
- package/dist/types/components/radio-group/exports.d.ts +2 -0
- package/dist/types/components/radio-group/radio-group.d.ts +179 -0
- package/dist/types/components/select/exports.d.ts +2 -0
- package/dist/types/components/select/select.d.ts +319 -0
- package/dist/types/components/select-option/select-option.d.ts +113 -0
- package/dist/types/components/skip-link/exports.d.ts +2 -0
- package/dist/types/components/skip-link/skip-link.d.ts +6 -0
- package/dist/types/components/stepper/stepper.d.ts +22 -0
- package/dist/types/components/stepper-item/stepper-item.d.ts +23 -0
- package/dist/types/components/tab/tab.d.ts +23 -0
- package/dist/types/components/tab-panel/tab-panel.d.ts +7 -0
- package/dist/types/components/tabs/tabs.d.ts +49 -0
- package/dist/types/components/tabs-list/exports.d.ts +4 -0
- package/dist/types/components/tabs-list/tabs-list.d.ts +41 -0
- package/dist/types/components/textarea/exports.d.ts +2 -0
- package/dist/types/components/textarea/textarea.d.ts +158 -0
- package/dist/types/components/toast/exports.d.ts +6 -0
- package/dist/types/components/toast/toast.d.ts +146 -0
- package/dist/types/components/toast-group/exports.d.ts +2 -0
- package/dist/types/components/toast-group/toast-group.d.ts +9 -0
- package/dist/types/components/tooltip/exports.d.ts +6 -0
- package/dist/types/components/tooltip/tooltip.d.ts +132 -0
- package/dist/types/components.d.ts +6347 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1732 -0
- package/dist/types/types/jsx-shim.d.ts +13 -0
- package/dist/types/types/style-observer.d.ts +20 -0
- package/dist/types/utils/focusable.d.ts +1 -0
- package/dist/types/utils/formData.d.ts +1 -0
- package/dist/types/utils/theming.d.ts +15 -0
- package/dist/types/utils/version-checker.d.ts +1 -0
- package/dist/web-components/index.esm.js +1 -0
- package/dist/web-components/p-01aefcf0.entry.js +1 -0
- package/dist/web-components/p-05cb55db.entry.js +1 -0
- package/dist/web-components/p-0a34d33b.entry.js +1 -0
- package/dist/web-components/p-11b22309.entry.js +1 -0
- package/dist/web-components/p-2d878934.entry.js +1 -0
- package/dist/web-components/p-325dbedf.entry.js +1 -0
- package/dist/web-components/p-34b9457b.entry.js +1 -0
- package/dist/web-components/p-36abd05a.entry.js +1 -0
- package/dist/web-components/p-386d1ef9.entry.js +1 -0
- package/dist/web-components/p-3d67b77b.entry.js +1 -0
- package/dist/web-components/p-4Uv3PpKT.js +1 -0
- package/dist/web-components/p-4b12fbc0.entry.js +1 -0
- package/dist/web-components/p-52f7b505.entry.js +1 -0
- package/dist/web-components/p-55600d47.entry.js +1 -0
- package/dist/web-components/p-57ebc474.entry.js +1 -0
- package/dist/web-components/p-57edf7f4.entry.js +1 -0
- package/dist/web-components/p-69a24fe2.entry.js +1 -0
- package/dist/web-components/p-6d92648c.entry.js +1 -0
- package/dist/web-components/p-75052597.entry.js +1 -0
- package/dist/web-components/p-7b2c5b63.entry.js +1 -0
- package/dist/web-components/p-7bf463ff.entry.js +1 -0
- package/dist/web-components/p-838e43d4.entry.js +1 -0
- package/dist/web-components/p-8c16d038.entry.js +1 -0
- package/dist/web-components/p-8f8313de.entry.js +1 -0
- package/dist/web-components/p-9026d5a2.entry.js +1 -0
- package/dist/web-components/p-95396b5c.entry.js +1 -0
- package/dist/web-components/p-9c31c7c4.entry.js +1 -0
- package/dist/web-components/p-9c415b9c.entry.js +1 -0
- package/dist/web-components/p-9f583ed1.entry.js +1 -0
- package/dist/web-components/p-B9rsR6cQ.js +1 -0
- package/dist/web-components/p-CTxpqopm.js +2 -0
- package/dist/web-components/p-DQuL1Twl.js +1 -0
- package/dist/web-components/p-DvLT8-y3.js +1 -0
- package/dist/web-components/p-b303b2cc.entry.js +1 -0
- package/dist/web-components/p-b8df041d.entry.js +1 -0
- package/dist/web-components/p-bc30844f.entry.js +1 -0
- package/dist/web-components/p-c4a77a65.entry.js +1 -0
- package/dist/web-components/p-c549addf.entry.js +1 -0
- package/dist/web-components/p-c65df19f.entry.js +1 -0
- package/dist/web-components/p-c80a5541.entry.js +1 -0
- package/dist/web-components/p-c96ee61a.entry.js +1 -0
- package/dist/web-components/p-cf3f044d.entry.js +1 -0
- package/dist/web-components/p-d1412932.entry.js +1 -0
- package/dist/web-components/p-d9778cfa.entry.js +1 -0
- package/dist/web-components/p-dbe4ccb8.entry.js +1 -0
- package/dist/web-components/p-ded50850.entry.js +1 -0
- package/dist/web-components/p-e5be895b.entry.js +1 -0
- package/dist/web-components/p-e6b34c1e.entry.js +1 -0
- package/dist/web-components/p-ec3c4800.entry.js +1 -0
- package/dist/web-components/p-f670fd87.entry.js +1 -0
- package/dist/web-components/p-f867e4c3.entry.js +1 -0
- package/dist/web-components/p-ff6b1b8f.entry.js +1 -0
- package/dist/web-components/p-ky1yonnS.js +1 -0
- package/dist/web-components/web-components.esm.js +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,814 @@
|
|
|
1
|
+
import { Host, h, Fragment } from "@stencil/core";
|
|
2
|
+
export class RPagination {
|
|
3
|
+
constructor() {
|
|
4
|
+
/** UI: Arrows present/absent */
|
|
5
|
+
this.arrows = true;
|
|
6
|
+
/** Total amount of pages to select from */
|
|
7
|
+
this.totalResults = 1;
|
|
8
|
+
/** Current page number */
|
|
9
|
+
this.pageActive = 1;
|
|
10
|
+
/** Amount of items to show per page */
|
|
11
|
+
this.itemsPerPage = 5;
|
|
12
|
+
/** Items per page options for dropdown */
|
|
13
|
+
this.itemsPerPageOptions = [5, 10, 15, 20, 25, 50, 100];
|
|
14
|
+
// @Prop() variant?: PaginationVariant;
|
|
15
|
+
/** Allows selection between different pagination styles: minimized, standard, maximized */
|
|
16
|
+
this.variant = 'standard';
|
|
17
|
+
/** UI: Result Line and select field present/absent */
|
|
18
|
+
this.resultsLine = false;
|
|
19
|
+
/** Text to show in beginning of resultLine */
|
|
20
|
+
this.startText = 'Showing';
|
|
21
|
+
/** Text to display between currently shown results and total amount of results */
|
|
22
|
+
this.middleText = 'of';
|
|
23
|
+
/** Text to display after total results */
|
|
24
|
+
this.endText = 'results';
|
|
25
|
+
/** Text to show in select */
|
|
26
|
+
this.selectText = 'page';
|
|
27
|
+
/** Position of the list box */
|
|
28
|
+
this.listBoxPosition = 'top';
|
|
29
|
+
/** Label for Previous Page button. Important to ensure accessibility for screen reader users. */
|
|
30
|
+
this.previousPageButtonLabel = 'Go to the previous page';
|
|
31
|
+
/** Label for Next Page button. Important to ensure accessibility for screen reader users.*/
|
|
32
|
+
this.nextPageButtonLabel = 'Go to the next page';
|
|
33
|
+
/** Label for First Page button. Important to ensure accessibility for screen reader users.*/
|
|
34
|
+
this.firstPageButtonLabel = 'Go to the first page';
|
|
35
|
+
/** Label for Last Page button. Important to ensure accessibility for screen reader users.*/
|
|
36
|
+
this.lastPageButtonLabel = 'Go to the last page';
|
|
37
|
+
/** Label for Page number buttons. Important to ensure accessibility for screen reader users.*/
|
|
38
|
+
this.pageLabel = 'Page';
|
|
39
|
+
/** Label for Ellipsis stepper. Important to ensure accessibility for screen reader users.*/
|
|
40
|
+
this.ellipsisLabel = 'Ellipsis indicating skipped pages';
|
|
41
|
+
/** Label for Items per page select. */
|
|
42
|
+
this.itemsPerPageLabel = 'Items per page';
|
|
43
|
+
this.resizeObserver = null;
|
|
44
|
+
this.handleItemsPerPageChange = (event) => {
|
|
45
|
+
const newItemsPerPage = parseInt(event.detail.value, 10);
|
|
46
|
+
this.itemsPerPage = newItemsPerPage;
|
|
47
|
+
this.rItemsPerPageChange.emit(this.itemsPerPage);
|
|
48
|
+
this.setPaginationState();
|
|
49
|
+
};
|
|
50
|
+
this._activateStep = (index) => {
|
|
51
|
+
if (index < 1 || index > this.total || this.pageActive === index)
|
|
52
|
+
return; // Prevent invalid or redundant updates
|
|
53
|
+
this.pageActive = index;
|
|
54
|
+
requestAnimationFrame(() => {
|
|
55
|
+
this.setPaginationState(); // Ensure state updates correctly
|
|
56
|
+
requestAnimationFrame(() => {
|
|
57
|
+
var _a;
|
|
58
|
+
// Ensure the correct button is focused AFTER the state updates
|
|
59
|
+
const newActiveButton = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`.r-pagination--item[data-index="${this.pageActive}"]`);
|
|
60
|
+
if (newActiveButton) {
|
|
61
|
+
newActiveButton.focus();
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
this.handleItemChange = e => {
|
|
67
|
+
const buttonElement = e.target.closest('r-icon-button') || e.target.closest('r-button');
|
|
68
|
+
const index = Number(buttonElement.getAttribute('data-index'));
|
|
69
|
+
if (index === null)
|
|
70
|
+
return;
|
|
71
|
+
this._activateStep(index);
|
|
72
|
+
requestAnimationFrame(() => {
|
|
73
|
+
const focusTarget = this.getFocusTargetAfterNavigation(buttonElement);
|
|
74
|
+
focusTarget === null || focusTarget === void 0 ? void 0 : focusTarget.setFocus();
|
|
75
|
+
});
|
|
76
|
+
if (buttonElement.classList.contains('number')) {
|
|
77
|
+
this.rNumberClick.emit(this.paginationState);
|
|
78
|
+
}
|
|
79
|
+
if (buttonElement.classList.contains('arrow')) {
|
|
80
|
+
const direction = buttonElement.classList.contains('next') ? 'next' : 'previous';
|
|
81
|
+
this.rArrowClick.emit(Object.assign(Object.assign({}, this.paginationState), { direction }));
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
this.syncHeaderWidth = () => {
|
|
85
|
+
requestAnimationFrame(() => {
|
|
86
|
+
if (this.headerRef && this.footerRef) {
|
|
87
|
+
const footerWidth = this.footerRef.offsetWidth;
|
|
88
|
+
this.headerRef.style.width = `${footerWidth}px`;
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
get isNoPreviousPage() {
|
|
94
|
+
return this.previous === null;
|
|
95
|
+
}
|
|
96
|
+
get isNoNextPage() {
|
|
97
|
+
return this.next === null;
|
|
98
|
+
}
|
|
99
|
+
get isNotFirstPage() {
|
|
100
|
+
return this.first === null;
|
|
101
|
+
}
|
|
102
|
+
get isNotLastPage() {
|
|
103
|
+
return this.last === null;
|
|
104
|
+
}
|
|
105
|
+
get paginationState() {
|
|
106
|
+
const { total, active, previous, next, first, last, arrows } = this;
|
|
107
|
+
return { total, active, previous, next, first, last, arrows };
|
|
108
|
+
}
|
|
109
|
+
// State recalculation
|
|
110
|
+
setPaginationState() {
|
|
111
|
+
// Correctly calculate total pages based on items per page
|
|
112
|
+
this.total = Math.ceil(this.totalResults / this.itemsPerPage);
|
|
113
|
+
// Ensure the active page does not exceed the total pages
|
|
114
|
+
if (this.pageActive > this.total) {
|
|
115
|
+
this.pageActive = this.total;
|
|
116
|
+
}
|
|
117
|
+
// Set the reveal value based on variant and screen size
|
|
118
|
+
switch (this.variant) {
|
|
119
|
+
case 'minimized':
|
|
120
|
+
{
|
|
121
|
+
this.arrows = false;
|
|
122
|
+
this.resultsLine = false;
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
case 'standard': {
|
|
126
|
+
this.arrows = true;
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
case 'maximized': {
|
|
130
|
+
this.arrows = true;
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
default: {
|
|
134
|
+
console.warn('No variant specified. Defaulting to "standard".');
|
|
135
|
+
this.variant = 'standard';
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
// Update pagination-related state variables
|
|
140
|
+
this.active = this.pageActive;
|
|
141
|
+
this.previous = this.active - 1 > 0 ? this.active - 1 : null;
|
|
142
|
+
this.next = this.active + 1 > this.total ? null : this.active + 1;
|
|
143
|
+
this.first = this.variant === 'maximized' && this.active !== 1 ? 1 : null;
|
|
144
|
+
this.last = this.variant === 'maximized' && this.active !== this.total ? this.total : null;
|
|
145
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
146
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
147
|
+
this.syncHeaderWidth();
|
|
148
|
+
});
|
|
149
|
+
if (this.footerRef) {
|
|
150
|
+
this.resizeObserver.observe(this.footerRef);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
// Emit updated pagination state
|
|
154
|
+
this.rChange.emit(this.paginationState);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Determines the appropriate focus target after navigation based on button states.
|
|
158
|
+
* Handles edge cases where navigation buttons become disabled.
|
|
159
|
+
*/
|
|
160
|
+
getFocusTargetAfterNavigation(buttonElement) {
|
|
161
|
+
var _a, _b, _c, _d, _e;
|
|
162
|
+
const isArrowButton = buttonElement.classList.contains('arrow');
|
|
163
|
+
const isNextButton = buttonElement.classList.contains('next');
|
|
164
|
+
const isPrevButton = buttonElement.classList.contains('previous');
|
|
165
|
+
const isFirstButton = buttonElement.classList.contains('first');
|
|
166
|
+
const isLastButton = buttonElement.classList.contains('last');
|
|
167
|
+
const willNextBeDisabled = this.next === null;
|
|
168
|
+
const willPrevBeDisabled = this.previous === null;
|
|
169
|
+
const willLastBeDisabled = this.active === this.total;
|
|
170
|
+
const willFirstBeDisabled = this.first === null;
|
|
171
|
+
if (isNextButton && willNextBeDisabled) {
|
|
172
|
+
return (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`.r-pagination--item.number[data-index="${this.total}"]`);
|
|
173
|
+
}
|
|
174
|
+
if (isPrevButton && willPrevBeDisabled) {
|
|
175
|
+
return (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector(`.r-pagination--item.number[data-index="1"]`);
|
|
176
|
+
}
|
|
177
|
+
if (isLastButton && willLastBeDisabled) {
|
|
178
|
+
return (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector(`.r-pagination--item.number[data-index="${this.total}"]`);
|
|
179
|
+
}
|
|
180
|
+
if (isFirstButton && willFirstBeDisabled) {
|
|
181
|
+
return (_d = this.el.shadowRoot) === null || _d === void 0 ? void 0 : _d.querySelector('.r-pagination--item.number[data-index="1"]');
|
|
182
|
+
}
|
|
183
|
+
return isArrowButton ? buttonElement : (_e = this.el.shadowRoot) === null || _e === void 0 ? void 0 : _e.querySelector(`.r-pagination--item[data-index="${this.pageActive}"]`);
|
|
184
|
+
}
|
|
185
|
+
handlePropsChange() {
|
|
186
|
+
this.setPaginationState();
|
|
187
|
+
}
|
|
188
|
+
componentWillLoad() {
|
|
189
|
+
this.setPaginationState();
|
|
190
|
+
}
|
|
191
|
+
disconnectedCallback() {
|
|
192
|
+
if (this.resizeObserver) {
|
|
193
|
+
this.resizeObserver.disconnect();
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
componentDidRender() {
|
|
197
|
+
this.syncHeaderWidth();
|
|
198
|
+
}
|
|
199
|
+
render() {
|
|
200
|
+
const { active, previous, next, first, itemsPerPage, itemsPerPageOptions, startText, middleText, endText, selectText, listBoxPosition } = this;
|
|
201
|
+
const itemTemplate = (type, index) => {
|
|
202
|
+
if (type === 'number') {
|
|
203
|
+
return (h("li", null, h("r-button", { class: "r-pagination--item number", "data-index": index, variant: "secondary", onRClick: this.handleItemChange }, h("span", { class: "visually-hidden" }, this.pageLabel), " ", index)));
|
|
204
|
+
}
|
|
205
|
+
if (type === 'active') {
|
|
206
|
+
return (h("li", null, h("r-button", { "data-index": index, class: "r-pagination--item number active", rAriaCurrent: "page" }, h("span", { class: "visually-hidden" }, this.pageLabel), " ", index)));
|
|
207
|
+
}
|
|
208
|
+
if (type === 'stepper') {
|
|
209
|
+
return (h("li", { "aria-label": this.ellipsisLabel, class: "r-pagination--item stepper" }, "..."));
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
const renderNumbers = () => {
|
|
213
|
+
const totalPages = Math.ceil(this.totalResults / itemsPerPage);
|
|
214
|
+
const maxVisiblePages = 10;
|
|
215
|
+
const items = [];
|
|
216
|
+
const startEdge = 1;
|
|
217
|
+
const endEdge = totalPages;
|
|
218
|
+
const _createItem = (value) => {
|
|
219
|
+
const item = value + 1; // Convert to 1-indexed
|
|
220
|
+
const type = item === active ? 'active' : 'number';
|
|
221
|
+
return itemTemplate(type, item);
|
|
222
|
+
};
|
|
223
|
+
// Case: total pages are less than or equal to maxVisiblePages
|
|
224
|
+
if (totalPages <= maxVisiblePages) {
|
|
225
|
+
return h("ul", { class: "r-pagination--items-list" }, [...Array(totalPages).keys()].map(_createItem));
|
|
226
|
+
}
|
|
227
|
+
// Always add startEdge
|
|
228
|
+
items.push(itemTemplate(active === startEdge ? 'active' : 'number', startEdge));
|
|
229
|
+
const showStartStepper = active > 5;
|
|
230
|
+
const showEndStepper = active < totalPages - 5;
|
|
231
|
+
// Case: active page is near the beginning
|
|
232
|
+
if (!showStartStepper) {
|
|
233
|
+
for (let i = 2; i <= 8; i++) {
|
|
234
|
+
items.push(_createItem(i - 1)); // Convert to 0-indexed for _createItem
|
|
235
|
+
}
|
|
236
|
+
items.push(itemTemplate('stepper', null));
|
|
237
|
+
}
|
|
238
|
+
// Case: active page is near the end
|
|
239
|
+
else if (!showEndStepper) {
|
|
240
|
+
items.push(itemTemplate('stepper', null));
|
|
241
|
+
for (let i = totalPages - 7; i < totalPages; i++) {
|
|
242
|
+
items.push(_createItem(i - 1)); // Convert to 0-indexed for _createItem
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
// Case: active page is in the middle
|
|
246
|
+
else {
|
|
247
|
+
items.push(itemTemplate('stepper', null));
|
|
248
|
+
for (let i = active - 2; i <= active + 2; i++) {
|
|
249
|
+
items.push(_createItem(i - 1)); // Convert to 0-indexed for _createItem
|
|
250
|
+
}
|
|
251
|
+
items.push(itemTemplate('stepper', null));
|
|
252
|
+
}
|
|
253
|
+
// Always add endEdge
|
|
254
|
+
items.push(itemTemplate(active === endEdge ? 'active' : 'number', endEdge));
|
|
255
|
+
// Ensure the total number of items is 10
|
|
256
|
+
if (items.length > maxVisiblePages) {
|
|
257
|
+
items.splice(1, items.length - maxVisiblePages - 1); // Remove excess items while keeping steppers
|
|
258
|
+
}
|
|
259
|
+
else if (items.length < maxVisiblePages) {
|
|
260
|
+
// Add additional pages if the total number of items is less than 10
|
|
261
|
+
const additionalPages = maxVisiblePages - items.length;
|
|
262
|
+
if (showStartStepper && showEndStepper) {
|
|
263
|
+
for (let i = active + 3; i <= active + 2 + additionalPages; i++) {
|
|
264
|
+
if (i < totalPages) {
|
|
265
|
+
items.splice(items.length - 2, 0, _createItem(i - 1)); // Convert to 0-indexed for _createItem
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
else if (showStartStepper) {
|
|
270
|
+
for (let i = active + 3; i <= active + 2 + additionalPages; i++) {
|
|
271
|
+
if (i < totalPages) {
|
|
272
|
+
items.splice(items.length - 1, 0, _createItem(i - 1)); // Convert to 0-indexed for _createItem
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
else if (showEndStepper) {
|
|
277
|
+
for (let i = active - 3; i >= active - 2 - additionalPages; i--) {
|
|
278
|
+
if (i > 1) {
|
|
279
|
+
items.splice(1, 0, _createItem(i - 1)); // Convert to 0-indexed for _createItem
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
return h("ul", { class: "r-pagination--items-list" }, items);
|
|
285
|
+
};
|
|
286
|
+
const renderHeader = () => {
|
|
287
|
+
const startItem = Math.min((active - 1) * itemsPerPage + 1, this.totalResults);
|
|
288
|
+
const endItem = Math.min(active * itemsPerPage, this.totalResults);
|
|
289
|
+
return (h(Fragment, null, h("div", { ref: el => (this.headerRef = el), class: "r-pagination--header" }, h("div", { class: "results-info", "aria-live": "polite" }, startText ? startText : 'Showing', " ", startItem, "\u2013", endItem, " ", middleText ? middleText : 'of', " ", this.totalResults, " ", endText ? endText : 'results'), h("div", null, h("r-select", { class: "r-pagination--header--select", value: this.itemsPerPage.toString(), id: "items-per-page", onRChange: this.handleItemsPerPageChange, label: this.itemsPerPageLabel, "listbox-position": listBoxPosition }, itemsPerPageOptions.map(option => (h("r-select-option", { value: option.toString() }, option, "/", selectText ? selectText : 'page'))))))));
|
|
290
|
+
};
|
|
291
|
+
const isLastPage = active === this.total;
|
|
292
|
+
const renderList = () => {
|
|
293
|
+
if (this.variant === 'minimized') {
|
|
294
|
+
return (h(Fragment, null, h("div", { ref: el => (this.footerRef = el), class: "r-pagination--footer" }, renderNumbers())));
|
|
295
|
+
}
|
|
296
|
+
return (h(Fragment, null, h("div", { ref: el => (this.footerRef = el), class: "r-pagination--footer" }, this.variant === 'maximized' && (h("r-icon-button", { "data-index": first, name: "angle-left-with-vertical-line", size: "s", disabled: this.isNotFirstPage, label: this.firstPageButtonLabel, class: "r-pagination--item arrow first", onRClick: this.handleItemChange })), h("r-icon-button", { "data-index": previous, name: "angle-left", size: "s", disabled: this.isNoPreviousPage, label: this.previousPageButtonLabel, class: "r-pagination--item arrow previous", onRClick: this.handleItemChange }), renderNumbers(), h("r-icon-button", { "data-index": next, name: "angle-right", size: "s", disabled: this.isNoNextPage, label: this.nextPageButtonLabel, class: "r-pagination--item arrow next", onRClick: this.handleItemChange }), this.variant === 'maximized' && (h("r-icon-button", { "data-index": this.total, name: "angle-right-with-vertical-line", size: "s", disabled: isLastPage, label: this.lastPageButtonLabel, class: "r-pagination--item arrow last", onRClick: this.handleItemChange })))));
|
|
297
|
+
};
|
|
298
|
+
return (h(Host, { role: "navigation" }, h("div", { class: "r-pagination" }, this.resultsLine && renderHeader(), renderList())));
|
|
299
|
+
}
|
|
300
|
+
static get is() { return "r-pagination"; }
|
|
301
|
+
static get encapsulation() { return "shadow"; }
|
|
302
|
+
static get originalStyleUrls() {
|
|
303
|
+
return {
|
|
304
|
+
"$": ["pagination.css"]
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
static get styleUrls() {
|
|
308
|
+
return {
|
|
309
|
+
"$": ["pagination.css"]
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
static get properties() {
|
|
313
|
+
return {
|
|
314
|
+
"arrows": {
|
|
315
|
+
"type": "boolean",
|
|
316
|
+
"attribute": "arrows",
|
|
317
|
+
"mutable": true,
|
|
318
|
+
"complexType": {
|
|
319
|
+
"original": "boolean",
|
|
320
|
+
"resolved": "boolean",
|
|
321
|
+
"references": {}
|
|
322
|
+
},
|
|
323
|
+
"required": false,
|
|
324
|
+
"optional": false,
|
|
325
|
+
"docs": {
|
|
326
|
+
"tags": [],
|
|
327
|
+
"text": "UI: Arrows present/absent"
|
|
328
|
+
},
|
|
329
|
+
"getter": false,
|
|
330
|
+
"setter": false,
|
|
331
|
+
"reflect": false,
|
|
332
|
+
"defaultValue": "true"
|
|
333
|
+
},
|
|
334
|
+
"totalResults": {
|
|
335
|
+
"type": "number",
|
|
336
|
+
"attribute": "total-results",
|
|
337
|
+
"mutable": false,
|
|
338
|
+
"complexType": {
|
|
339
|
+
"original": "number",
|
|
340
|
+
"resolved": "number",
|
|
341
|
+
"references": {}
|
|
342
|
+
},
|
|
343
|
+
"required": false,
|
|
344
|
+
"optional": false,
|
|
345
|
+
"docs": {
|
|
346
|
+
"tags": [],
|
|
347
|
+
"text": "Total amount of pages to select from"
|
|
348
|
+
},
|
|
349
|
+
"getter": false,
|
|
350
|
+
"setter": false,
|
|
351
|
+
"reflect": true,
|
|
352
|
+
"defaultValue": "1"
|
|
353
|
+
},
|
|
354
|
+
"pageActive": {
|
|
355
|
+
"type": "number",
|
|
356
|
+
"attribute": "page-active",
|
|
357
|
+
"mutable": true,
|
|
358
|
+
"complexType": {
|
|
359
|
+
"original": "number",
|
|
360
|
+
"resolved": "number",
|
|
361
|
+
"references": {}
|
|
362
|
+
},
|
|
363
|
+
"required": false,
|
|
364
|
+
"optional": false,
|
|
365
|
+
"docs": {
|
|
366
|
+
"tags": [],
|
|
367
|
+
"text": "Current page number"
|
|
368
|
+
},
|
|
369
|
+
"getter": false,
|
|
370
|
+
"setter": false,
|
|
371
|
+
"reflect": true,
|
|
372
|
+
"defaultValue": "1"
|
|
373
|
+
},
|
|
374
|
+
"itemsPerPage": {
|
|
375
|
+
"type": "number",
|
|
376
|
+
"attribute": "items-per-page",
|
|
377
|
+
"mutable": true,
|
|
378
|
+
"complexType": {
|
|
379
|
+
"original": "number",
|
|
380
|
+
"resolved": "number",
|
|
381
|
+
"references": {}
|
|
382
|
+
},
|
|
383
|
+
"required": false,
|
|
384
|
+
"optional": false,
|
|
385
|
+
"docs": {
|
|
386
|
+
"tags": [],
|
|
387
|
+
"text": "Amount of items to show per page"
|
|
388
|
+
},
|
|
389
|
+
"getter": false,
|
|
390
|
+
"setter": false,
|
|
391
|
+
"reflect": false,
|
|
392
|
+
"defaultValue": "5"
|
|
393
|
+
},
|
|
394
|
+
"itemsPerPageOptions": {
|
|
395
|
+
"type": "unknown",
|
|
396
|
+
"attribute": "items-per-page-options",
|
|
397
|
+
"mutable": false,
|
|
398
|
+
"complexType": {
|
|
399
|
+
"original": "PaginationItemsPerPageOptions[]",
|
|
400
|
+
"resolved": "(5 | 10 | 15 | 20 | 25 | 50 | 100)[]",
|
|
401
|
+
"references": {
|
|
402
|
+
"PaginationItemsPerPageOptions": {
|
|
403
|
+
"location": "import",
|
|
404
|
+
"path": "./exports",
|
|
405
|
+
"id": "src/components/pagination/exports.ts::PaginationItemsPerPageOptions"
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
"required": false,
|
|
410
|
+
"optional": false,
|
|
411
|
+
"docs": {
|
|
412
|
+
"tags": [],
|
|
413
|
+
"text": "Items per page options for dropdown"
|
|
414
|
+
},
|
|
415
|
+
"getter": false,
|
|
416
|
+
"setter": false,
|
|
417
|
+
"defaultValue": "[5, 10, 15, 20, 25, 50, 100]"
|
|
418
|
+
},
|
|
419
|
+
"variant": {
|
|
420
|
+
"type": "string",
|
|
421
|
+
"attribute": "variant",
|
|
422
|
+
"mutable": false,
|
|
423
|
+
"complexType": {
|
|
424
|
+
"original": "PaginationVariant",
|
|
425
|
+
"resolved": "\"maximized\" | \"minimized\" | \"standard\"",
|
|
426
|
+
"references": {
|
|
427
|
+
"PaginationVariant": {
|
|
428
|
+
"location": "import",
|
|
429
|
+
"path": "./exports",
|
|
430
|
+
"id": "src/components/pagination/exports.ts::PaginationVariant"
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
"required": false,
|
|
435
|
+
"optional": false,
|
|
436
|
+
"docs": {
|
|
437
|
+
"tags": [],
|
|
438
|
+
"text": "Allows selection between different pagination styles: minimized, standard, maximized"
|
|
439
|
+
},
|
|
440
|
+
"getter": false,
|
|
441
|
+
"setter": false,
|
|
442
|
+
"reflect": false,
|
|
443
|
+
"defaultValue": "'standard'"
|
|
444
|
+
},
|
|
445
|
+
"resultsLine": {
|
|
446
|
+
"type": "boolean",
|
|
447
|
+
"attribute": "results-line",
|
|
448
|
+
"mutable": true,
|
|
449
|
+
"complexType": {
|
|
450
|
+
"original": "boolean",
|
|
451
|
+
"resolved": "boolean",
|
|
452
|
+
"references": {}
|
|
453
|
+
},
|
|
454
|
+
"required": false,
|
|
455
|
+
"optional": false,
|
|
456
|
+
"docs": {
|
|
457
|
+
"tags": [],
|
|
458
|
+
"text": "UI: Result Line and select field present/absent"
|
|
459
|
+
},
|
|
460
|
+
"getter": false,
|
|
461
|
+
"setter": false,
|
|
462
|
+
"reflect": false,
|
|
463
|
+
"defaultValue": "false"
|
|
464
|
+
},
|
|
465
|
+
"startText": {
|
|
466
|
+
"type": "string",
|
|
467
|
+
"attribute": "start-text",
|
|
468
|
+
"mutable": false,
|
|
469
|
+
"complexType": {
|
|
470
|
+
"original": "string",
|
|
471
|
+
"resolved": "string",
|
|
472
|
+
"references": {}
|
|
473
|
+
},
|
|
474
|
+
"required": false,
|
|
475
|
+
"optional": false,
|
|
476
|
+
"docs": {
|
|
477
|
+
"tags": [],
|
|
478
|
+
"text": "Text to show in beginning of resultLine"
|
|
479
|
+
},
|
|
480
|
+
"getter": false,
|
|
481
|
+
"setter": false,
|
|
482
|
+
"reflect": false,
|
|
483
|
+
"defaultValue": "'Showing'"
|
|
484
|
+
},
|
|
485
|
+
"middleText": {
|
|
486
|
+
"type": "string",
|
|
487
|
+
"attribute": "middle-text",
|
|
488
|
+
"mutable": false,
|
|
489
|
+
"complexType": {
|
|
490
|
+
"original": "string",
|
|
491
|
+
"resolved": "string",
|
|
492
|
+
"references": {}
|
|
493
|
+
},
|
|
494
|
+
"required": false,
|
|
495
|
+
"optional": false,
|
|
496
|
+
"docs": {
|
|
497
|
+
"tags": [],
|
|
498
|
+
"text": "Text to display between currently shown results and total amount of results"
|
|
499
|
+
},
|
|
500
|
+
"getter": false,
|
|
501
|
+
"setter": false,
|
|
502
|
+
"reflect": false,
|
|
503
|
+
"defaultValue": "'of'"
|
|
504
|
+
},
|
|
505
|
+
"endText": {
|
|
506
|
+
"type": "string",
|
|
507
|
+
"attribute": "end-text",
|
|
508
|
+
"mutable": false,
|
|
509
|
+
"complexType": {
|
|
510
|
+
"original": "string",
|
|
511
|
+
"resolved": "string",
|
|
512
|
+
"references": {}
|
|
513
|
+
},
|
|
514
|
+
"required": false,
|
|
515
|
+
"optional": false,
|
|
516
|
+
"docs": {
|
|
517
|
+
"tags": [],
|
|
518
|
+
"text": "Text to display after total results"
|
|
519
|
+
},
|
|
520
|
+
"getter": false,
|
|
521
|
+
"setter": false,
|
|
522
|
+
"reflect": false,
|
|
523
|
+
"defaultValue": "'results'"
|
|
524
|
+
},
|
|
525
|
+
"selectText": {
|
|
526
|
+
"type": "string",
|
|
527
|
+
"attribute": "select-text",
|
|
528
|
+
"mutable": false,
|
|
529
|
+
"complexType": {
|
|
530
|
+
"original": "string",
|
|
531
|
+
"resolved": "string",
|
|
532
|
+
"references": {}
|
|
533
|
+
},
|
|
534
|
+
"required": false,
|
|
535
|
+
"optional": false,
|
|
536
|
+
"docs": {
|
|
537
|
+
"tags": [],
|
|
538
|
+
"text": "Text to show in select"
|
|
539
|
+
},
|
|
540
|
+
"getter": false,
|
|
541
|
+
"setter": false,
|
|
542
|
+
"reflect": false,
|
|
543
|
+
"defaultValue": "'page'"
|
|
544
|
+
},
|
|
545
|
+
"listBoxPosition": {
|
|
546
|
+
"type": "string",
|
|
547
|
+
"attribute": "list-box-position",
|
|
548
|
+
"mutable": false,
|
|
549
|
+
"complexType": {
|
|
550
|
+
"original": "PaginationListBoxPosition",
|
|
551
|
+
"resolved": "\"bottom\" | \"top\"",
|
|
552
|
+
"references": {
|
|
553
|
+
"PaginationListBoxPosition": {
|
|
554
|
+
"location": "import",
|
|
555
|
+
"path": "./exports",
|
|
556
|
+
"id": "src/components/pagination/exports.ts::PaginationListBoxPosition"
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
"required": false,
|
|
561
|
+
"optional": false,
|
|
562
|
+
"docs": {
|
|
563
|
+
"tags": [],
|
|
564
|
+
"text": "Position of the list box"
|
|
565
|
+
},
|
|
566
|
+
"getter": false,
|
|
567
|
+
"setter": false,
|
|
568
|
+
"reflect": false,
|
|
569
|
+
"defaultValue": "'top'"
|
|
570
|
+
},
|
|
571
|
+
"previousPageButtonLabel": {
|
|
572
|
+
"type": "string",
|
|
573
|
+
"attribute": "previous-page-button-label",
|
|
574
|
+
"mutable": false,
|
|
575
|
+
"complexType": {
|
|
576
|
+
"original": "string",
|
|
577
|
+
"resolved": "string",
|
|
578
|
+
"references": {}
|
|
579
|
+
},
|
|
580
|
+
"required": false,
|
|
581
|
+
"optional": false,
|
|
582
|
+
"docs": {
|
|
583
|
+
"tags": [],
|
|
584
|
+
"text": "Label for Previous Page button. Important to ensure accessibility for screen reader users."
|
|
585
|
+
},
|
|
586
|
+
"getter": false,
|
|
587
|
+
"setter": false,
|
|
588
|
+
"reflect": false,
|
|
589
|
+
"defaultValue": "'Go to the previous page'"
|
|
590
|
+
},
|
|
591
|
+
"nextPageButtonLabel": {
|
|
592
|
+
"type": "string",
|
|
593
|
+
"attribute": "next-page-button-label",
|
|
594
|
+
"mutable": false,
|
|
595
|
+
"complexType": {
|
|
596
|
+
"original": "string",
|
|
597
|
+
"resolved": "string",
|
|
598
|
+
"references": {}
|
|
599
|
+
},
|
|
600
|
+
"required": false,
|
|
601
|
+
"optional": false,
|
|
602
|
+
"docs": {
|
|
603
|
+
"tags": [],
|
|
604
|
+
"text": "Label for Next Page button. Important to ensure accessibility for screen reader users."
|
|
605
|
+
},
|
|
606
|
+
"getter": false,
|
|
607
|
+
"setter": false,
|
|
608
|
+
"reflect": false,
|
|
609
|
+
"defaultValue": "'Go to the next page'"
|
|
610
|
+
},
|
|
611
|
+
"firstPageButtonLabel": {
|
|
612
|
+
"type": "string",
|
|
613
|
+
"attribute": "first-page-button-label",
|
|
614
|
+
"mutable": false,
|
|
615
|
+
"complexType": {
|
|
616
|
+
"original": "string",
|
|
617
|
+
"resolved": "string",
|
|
618
|
+
"references": {}
|
|
619
|
+
},
|
|
620
|
+
"required": false,
|
|
621
|
+
"optional": false,
|
|
622
|
+
"docs": {
|
|
623
|
+
"tags": [],
|
|
624
|
+
"text": "Label for First Page button. Important to ensure accessibility for screen reader users."
|
|
625
|
+
},
|
|
626
|
+
"getter": false,
|
|
627
|
+
"setter": false,
|
|
628
|
+
"reflect": false,
|
|
629
|
+
"defaultValue": "'Go to the first page'"
|
|
630
|
+
},
|
|
631
|
+
"lastPageButtonLabel": {
|
|
632
|
+
"type": "string",
|
|
633
|
+
"attribute": "last-page-button-label",
|
|
634
|
+
"mutable": false,
|
|
635
|
+
"complexType": {
|
|
636
|
+
"original": "string",
|
|
637
|
+
"resolved": "string",
|
|
638
|
+
"references": {}
|
|
639
|
+
},
|
|
640
|
+
"required": false,
|
|
641
|
+
"optional": false,
|
|
642
|
+
"docs": {
|
|
643
|
+
"tags": [],
|
|
644
|
+
"text": "Label for Last Page button. Important to ensure accessibility for screen reader users."
|
|
645
|
+
},
|
|
646
|
+
"getter": false,
|
|
647
|
+
"setter": false,
|
|
648
|
+
"reflect": false,
|
|
649
|
+
"defaultValue": "'Go to the last page'"
|
|
650
|
+
},
|
|
651
|
+
"pageLabel": {
|
|
652
|
+
"type": "string",
|
|
653
|
+
"attribute": "page-label",
|
|
654
|
+
"mutable": false,
|
|
655
|
+
"complexType": {
|
|
656
|
+
"original": "string",
|
|
657
|
+
"resolved": "string",
|
|
658
|
+
"references": {}
|
|
659
|
+
},
|
|
660
|
+
"required": false,
|
|
661
|
+
"optional": false,
|
|
662
|
+
"docs": {
|
|
663
|
+
"tags": [],
|
|
664
|
+
"text": "Label for Page number buttons. Important to ensure accessibility for screen reader users."
|
|
665
|
+
},
|
|
666
|
+
"getter": false,
|
|
667
|
+
"setter": false,
|
|
668
|
+
"reflect": false,
|
|
669
|
+
"defaultValue": "'Page'"
|
|
670
|
+
},
|
|
671
|
+
"ellipsisLabel": {
|
|
672
|
+
"type": "string",
|
|
673
|
+
"attribute": "ellipsis-label",
|
|
674
|
+
"mutable": false,
|
|
675
|
+
"complexType": {
|
|
676
|
+
"original": "string",
|
|
677
|
+
"resolved": "string",
|
|
678
|
+
"references": {}
|
|
679
|
+
},
|
|
680
|
+
"required": false,
|
|
681
|
+
"optional": false,
|
|
682
|
+
"docs": {
|
|
683
|
+
"tags": [],
|
|
684
|
+
"text": "Label for Ellipsis stepper. Important to ensure accessibility for screen reader users."
|
|
685
|
+
},
|
|
686
|
+
"getter": false,
|
|
687
|
+
"setter": false,
|
|
688
|
+
"reflect": false,
|
|
689
|
+
"defaultValue": "'Ellipsis indicating skipped pages'"
|
|
690
|
+
},
|
|
691
|
+
"itemsPerPageLabel": {
|
|
692
|
+
"type": "string",
|
|
693
|
+
"attribute": "items-per-page-label",
|
|
694
|
+
"mutable": false,
|
|
695
|
+
"complexType": {
|
|
696
|
+
"original": "string",
|
|
697
|
+
"resolved": "string",
|
|
698
|
+
"references": {}
|
|
699
|
+
},
|
|
700
|
+
"required": false,
|
|
701
|
+
"optional": false,
|
|
702
|
+
"docs": {
|
|
703
|
+
"tags": [],
|
|
704
|
+
"text": "Label for Items per page select."
|
|
705
|
+
},
|
|
706
|
+
"getter": false,
|
|
707
|
+
"setter": false,
|
|
708
|
+
"reflect": false,
|
|
709
|
+
"defaultValue": "'Items per page'"
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
static get states() {
|
|
714
|
+
return {
|
|
715
|
+
"total": {},
|
|
716
|
+
"active": {},
|
|
717
|
+
"previous": {},
|
|
718
|
+
"next": {},
|
|
719
|
+
"first": {},
|
|
720
|
+
"last": {}
|
|
721
|
+
};
|
|
722
|
+
}
|
|
723
|
+
static get events() {
|
|
724
|
+
return [{
|
|
725
|
+
"method": "rChange",
|
|
726
|
+
"name": "rChange",
|
|
727
|
+
"bubbles": true,
|
|
728
|
+
"cancelable": true,
|
|
729
|
+
"composed": true,
|
|
730
|
+
"docs": {
|
|
731
|
+
"tags": [{
|
|
732
|
+
"name": "example",
|
|
733
|
+
"text": "const myPaginationEl = document.querySelector('r-pagination');\nmyPaginationEl.addEventListener('rChange', (event) => {\n console.log(`Page ${event.detail} was selected`)\n});"
|
|
734
|
+
}],
|
|
735
|
+
"text": "Signifies that currently active page was changed.\n\nPagination state is passed as part of event `detail` property."
|
|
736
|
+
},
|
|
737
|
+
"complexType": {
|
|
738
|
+
"original": "{\n total: number,\n active: number,\n previous: number,\n next: number\n }",
|
|
739
|
+
"resolved": "{ total: number; active: number; previous: number; next: number; }",
|
|
740
|
+
"references": {}
|
|
741
|
+
}
|
|
742
|
+
}, {
|
|
743
|
+
"method": "rNumberClick",
|
|
744
|
+
"name": "rNumberClick",
|
|
745
|
+
"bubbles": true,
|
|
746
|
+
"cancelable": true,
|
|
747
|
+
"composed": true,
|
|
748
|
+
"docs": {
|
|
749
|
+
"tags": [{
|
|
750
|
+
"name": "example",
|
|
751
|
+
"text": "const myPaginationEl = document.querySelector('r-pagination');\nmyPaginationEl.addEventListener('rNumberClick', (event) => {\n console.log(`Page ${event.detail} was selected`)\n});"
|
|
752
|
+
}],
|
|
753
|
+
"text": "Signifies that one of the pagination number buttons was cliked.\n\nPagination state is passed as part of event `detail` property."
|
|
754
|
+
},
|
|
755
|
+
"complexType": {
|
|
756
|
+
"original": "{\n total: number,\n active: number,\n previous: number,\n next: number\n }",
|
|
757
|
+
"resolved": "{ total: number; active: number; previous: number; next: number; }",
|
|
758
|
+
"references": {}
|
|
759
|
+
}
|
|
760
|
+
}, {
|
|
761
|
+
"method": "rArrowClick",
|
|
762
|
+
"name": "rArrowClick",
|
|
763
|
+
"bubbles": true,
|
|
764
|
+
"cancelable": true,
|
|
765
|
+
"composed": true,
|
|
766
|
+
"docs": {
|
|
767
|
+
"tags": [{
|
|
768
|
+
"name": "example",
|
|
769
|
+
"text": "const myPaginationEl = document.querySelector('r-pagination');\nmyPaginationEl.addEventListener('rArrowClick', (event) => {\n console.log(`Page ${event.detail} was selected`)\n});"
|
|
770
|
+
}],
|
|
771
|
+
"text": "Signifies that one of the pagination arrow buttons was cliked.\n\nPagination state and `direction` are passed as part of event `detail` property."
|
|
772
|
+
},
|
|
773
|
+
"complexType": {
|
|
774
|
+
"original": "{\n total: number,\n active: number,\n previous: number,\n next: number,\n direction: string\n }",
|
|
775
|
+
"resolved": "{ total: number; active: number; previous: number; next: number; direction: string; }",
|
|
776
|
+
"references": {}
|
|
777
|
+
}
|
|
778
|
+
}, {
|
|
779
|
+
"method": "rItemsPerPageChange",
|
|
780
|
+
"name": "rItemsPerPageChange",
|
|
781
|
+
"bubbles": true,
|
|
782
|
+
"cancelable": true,
|
|
783
|
+
"composed": true,
|
|
784
|
+
"docs": {
|
|
785
|
+
"tags": [{
|
|
786
|
+
"name": "example",
|
|
787
|
+
"text": "const myPaginationEl = document.querySelector('r-pagination');\nmyPaginationEl.addEventListener('rItemsPerPageChange', (event) => {\n console.log(`Items per page changed to ${event.detail}`)\n});"
|
|
788
|
+
}],
|
|
789
|
+
"text": "Signifies that items per page was changed.\n\nNew items per page value is passed as part of event `detail` property."
|
|
790
|
+
},
|
|
791
|
+
"complexType": {
|
|
792
|
+
"original": "number",
|
|
793
|
+
"resolved": "number",
|
|
794
|
+
"references": {}
|
|
795
|
+
}
|
|
796
|
+
}];
|
|
797
|
+
}
|
|
798
|
+
static get elementRef() { return "el"; }
|
|
799
|
+
static get watchers() {
|
|
800
|
+
return [{
|
|
801
|
+
"propName": "totalResults",
|
|
802
|
+
"methodName": "handlePropsChange"
|
|
803
|
+
}, {
|
|
804
|
+
"propName": "itemsPerPage",
|
|
805
|
+
"methodName": "handlePropsChange"
|
|
806
|
+
}, {
|
|
807
|
+
"propName": "variant",
|
|
808
|
+
"methodName": "handlePropsChange"
|
|
809
|
+
}, {
|
|
810
|
+
"propName": "pageActive",
|
|
811
|
+
"methodName": "handlePropsChange"
|
|
812
|
+
}];
|
|
813
|
+
}
|
|
814
|
+
}
|