@mintplayer/web-components 3.4.0 → 3.6.0
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 +5 -5
- package/a11y/index.mjs +248 -1
- package/a11y/src/index.d.ts +0 -2
- package/accordion/index.mjs +117 -144
- package/accordion/src/generated/accordion-tab.view.generated.d.ts +13 -0
- package/accordion/src/generated/accordion.view.generated.d.ts +10 -0
- package/accordion/src/generated/index.d.ts +2 -0
- package/accordion/src/generated/mp-accordion-tab.generated.d.ts +50 -0
- package/accordion/src/generated/mp-accordion.generated.d.ts +47 -0
- package/accordion/src/index.d.ts +2 -3
- package/alert/index.mjs +82 -0
- package/alert/src/generated/alert.view.generated.d.ts +10 -0
- package/alert/src/generated/index.d.ts +1 -0
- package/alert/src/generated/mp-alert.generated.d.ts +66 -0
- package/alert/src/index.d.ts +1 -0
- package/badge/index.mjs +71 -0
- package/badge/src/generated/badge.view.generated.d.ts +11 -0
- package/badge/src/generated/index.d.ts +1 -0
- package/badge/src/generated/mp-badge.generated.d.ts +48 -0
- package/badge/src/index.d.ts +1 -0
- package/breadcrumb/index.mjs +110 -0
- package/breadcrumb/src/generated/breadcrumb-item.view.generated.d.ts +10 -0
- package/breadcrumb/src/generated/breadcrumb.view.generated.d.ts +13 -0
- package/breadcrumb/src/generated/index.d.ts +2 -0
- package/breadcrumb/src/generated/mp-breadcrumb-item.generated.d.ts +31 -0
- package/breadcrumb/src/generated/mp-breadcrumb.generated.d.ts +30 -0
- package/breadcrumb/src/index.d.ts +1 -0
- package/button-group/index.d.ts +1 -0
- package/button-group/index.mjs +68 -0
- package/button-group/src/generated/button-group.view.generated.d.ts +10 -0
- package/button-group/src/generated/index.d.ts +1 -0
- package/button-group/src/generated/mp-button-group.generated.d.ts +48 -0
- package/button-group/src/index.d.ts +1 -0
- package/card/index.mjs +421 -19
- package/card/src/generated/card-img.view.generated.d.ts +13 -0
- package/card/src/generated/card-link.view.generated.d.ts +13 -0
- package/card/src/generated/card-part.view.generated.d.ts +10 -0
- package/card/src/generated/index.d.ts +10 -0
- package/card/src/generated/mp-card-body.generated.d.ts +20 -0
- package/card/src/generated/mp-card-footer.generated.d.ts +30 -0
- package/card/src/generated/mp-card-group.generated.d.ts +20 -0
- package/card/src/generated/mp-card-header.generated.d.ts +30 -0
- package/card/src/generated/mp-card-img.generated.d.ts +46 -0
- package/card/src/generated/mp-card-link.generated.d.ts +30 -0
- package/card/src/generated/mp-card-subtitle.generated.d.ts +20 -0
- package/card/src/generated/mp-card-text.generated.d.ts +20 -0
- package/card/src/generated/mp-card-title.generated.d.ts +30 -0
- package/card/src/generated/mp-card.generated.d.ts +38 -0
- package/card/src/index.d.ts +2 -2
- package/charts/sparkline/index.mjs +85 -109
- package/charts/sparkline/src/generated/index.d.ts +1 -0
- package/charts/sparkline/src/generated/mp-sparkline.generated.d.ts +81 -0
- package/charts/sparkline/src/generated/sparkline.view.generated.d.ts +11 -0
- package/charts/sparkline/src/index.d.ts +2 -1
- package/checkbox/index.mjs +256 -261
- package/checkbox/src/generated/checkbox-group.view.generated.d.ts +10 -0
- package/checkbox/src/generated/checkbox.view.generated.d.ts +13 -0
- package/checkbox/src/generated/index.d.ts +3 -0
- package/{navbar/src/generated/mp-navbar-dropdown.generated.d.ts → checkbox/src/generated/mp-checkbox-group.generated.d.ts} +17 -14
- package/checkbox/src/generated/mp-checkbox.generated.d.ts +120 -0
- package/checkbox/src/generated/mp-toggle-button.generated.d.ts +100 -0
- package/checkbox/src/index.d.ts +1 -2
- package/chunks/{datatable-wRsV3aob.mjs → datatable-wcZQMo-4.mjs} +5 -5
- package/chunks/{treeview-BFyPrpxn.mjs → treeview-CKndcfiq.mjs} +38 -36
- package/close/index.d.ts +1 -0
- package/close/index.mjs +55 -0
- package/close/src/generated/close.view.generated.d.ts +11 -0
- package/close/src/generated/index.d.ts +1 -0
- package/close/src/generated/mp-close.generated.d.ts +33 -0
- package/close/src/index.d.ts +1 -0
- package/color-picker/index.d.ts +1 -0
- package/color-picker/index.mjs +108 -0
- package/color-picker/src/generated/color-picker.view.generated.d.ts +8 -0
- package/color-picker/src/generated/index.d.ts +1 -0
- package/color-picker/src/generated/mp-color-picker.generated.d.ts +83 -0
- package/color-picker/src/index.d.ts +2 -0
- package/context-menu/index.d.ts +1 -0
- package/context-menu/index.mjs +75 -0
- package/context-menu/src/generated/context-menu-panel.view.generated.d.ts +10 -0
- package/context-menu/src/generated/context-menu.directive.generated.d.ts +5 -0
- package/context-menu/src/generated/index.d.ts +2 -0
- package/context-menu/src/generated/mp-context-menu-panel.generated.d.ts +40 -0
- package/context-menu/src/index.d.ts +1 -0
- package/custom-elements.json +13883 -6471
- package/datatable/index.mjs +1 -1
- package/dropdown/index.d.ts +1 -0
- package/dropdown/index.mjs +295 -0
- package/dropdown/src/generated/dropdown-divider.view.generated.d.ts +8 -0
- package/dropdown/src/generated/dropdown-header.view.generated.d.ts +10 -0
- package/dropdown/src/generated/dropdown-item.view.generated.d.ts +10 -0
- package/dropdown/src/generated/dropdown-menu.view.generated.d.ts +16 -0
- package/dropdown/src/generated/dropdown-panel.view.generated.d.ts +10 -0
- package/dropdown/src/generated/dropdown.directive.generated.d.ts +5 -0
- package/dropdown/src/generated/index.d.ts +6 -0
- package/dropdown/src/generated/mp-dropdown-divider.generated.d.ts +13 -0
- package/dropdown/src/generated/mp-dropdown-header.generated.d.ts +20 -0
- package/dropdown/src/generated/mp-dropdown-item.generated.d.ts +43 -0
- package/dropdown/src/generated/mp-dropdown-menu.generated.d.ts +61 -0
- package/dropdown/src/generated/mp-dropdown-panel.generated.d.ts +67 -0
- package/dropdown/src/index.d.ts +1 -0
- package/file-manager/index.mjs +19 -19
- package/file-upload/index.d.ts +1 -0
- package/file-upload/index.mjs +136 -0
- package/file-upload/src/generated/file-upload.view.generated.d.ts +18 -0
- package/file-upload/src/generated/index.d.ts +1 -0
- package/file-upload/src/generated/mp-file-upload.generated.d.ts +117 -0
- package/file-upload/src/index.d.ts +3 -0
- package/floating-labels/index.d.ts +1 -0
- package/floating-labels/index.mjs +45 -0
- package/floating-labels/src/generated/floating-label.view.generated.d.ts +10 -0
- package/floating-labels/src/generated/index.d.ts +1 -0
- package/floating-labels/src/generated/mp-floating-label.generated.d.ts +20 -0
- package/floating-labels/src/index.d.ts +1 -0
- package/form/index.d.ts +1 -0
- package/form/index.mjs +84 -0
- package/form/src/generated/col-form-label.directive.generated.d.ts +2 -0
- package/form/src/generated/form-control.directive.generated.d.ts +2 -0
- package/form/src/generated/form.view.generated.d.ts +13 -0
- package/form/src/generated/index.d.ts +3 -0
- package/form/src/generated/mp-form.generated.d.ts +41 -0
- package/form/src/index.d.ts +1 -0
- package/grid/index.d.ts +1 -0
- package/grid/index.mjs +93 -0
- package/grid/src/generated/col.directive.generated.d.ts +2 -0
- package/grid/src/generated/column.directive.generated.d.ts +2 -0
- package/grid/src/generated/grid.view.generated.d.ts +10 -0
- package/grid/src/generated/index.d.ts +4 -0
- package/grid/src/generated/mp-grid.generated.d.ts +31 -0
- package/grid/src/generated/row.directive.generated.d.ts +2 -0
- package/grid/src/index.d.ts +1 -0
- package/input-group/index.mjs +59 -34
- package/input-group/src/generated/index.d.ts +1 -0
- package/input-group/src/generated/input-group.view.generated.d.ts +10 -0
- package/input-group/src/generated/mp-input-group.generated.d.ts +39 -0
- package/input-group/src/index.d.ts +1 -1
- package/list-group/index.d.ts +1 -0
- package/list-group/index.mjs +117 -0
- package/list-group/src/generated/index.d.ts +2 -0
- package/list-group/src/generated/list-group-item.view.generated.d.ts +10 -0
- package/list-group/src/generated/list-group.view.generated.d.ts +10 -0
- package/list-group/src/generated/mp-list-group-item.generated.d.ts +48 -0
- package/list-group/src/generated/mp-list-group.generated.d.ts +31 -0
- package/list-group/src/index.d.ts +1 -0
- package/machine/index.mjs +164 -55
- package/machine/src/body-teleport-directive.d.ts +3 -0
- package/machine/src/content-query.d.ts +4 -0
- package/machine/src/core-controller.d.ts +5 -0
- package/machine/src/core-directive.d.ts +21 -0
- package/machine/src/host-props.d.ts +21 -0
- package/machine/src/index.d.ts +3 -0
- package/machine/src/instance-style-directive.d.ts +17 -0
- package/machine/src/mark-links.d.ts +3 -3
- package/marquee/index.d.ts +1 -0
- package/marquee/index.mjs +74 -0
- package/marquee/src/generated/index.d.ts +1 -0
- package/marquee/src/generated/marquee.view.generated.d.ts +13 -0
- package/marquee/src/generated/mp-marquee.generated.d.ts +48 -0
- package/marquee/src/index.d.ts +1 -0
- package/modal/index.d.ts +1 -0
- package/modal/index.mjs +134 -0
- package/modal/src/generated/index.d.ts +1 -0
- package/modal/src/generated/modal.view.generated.d.ts +12 -0
- package/modal/src/generated/mp-modal.generated.d.ts +103 -0
- package/modal/src/index.d.ts +2 -0
- package/multi-range/src/generated/mp-multi-range.generated.d.ts +1 -1
- package/nav/index.mjs +1 -1
- package/navbar/index.mjs +23 -88
- package/navbar/src/generated/index.d.ts +0 -1
- package/navbar/src/generated/mp-navbar-item.generated.d.ts +1 -1
- package/navbar/src/generated/mp-navbar-nav.generated.d.ts +4 -1
- package/navbar/src/index.d.ts +1 -1
- package/navbar/src/navbar-item.lit.d.ts +1 -1
- package/navbar-toggler/index.d.ts +1 -0
- package/navbar-toggler/index.mjs +70 -0
- package/navbar-toggler/src/generated/index.d.ts +1 -0
- package/navbar-toggler/src/generated/mp-navbar-toggler.generated.d.ts +52 -0
- package/navbar-toggler/src/generated/navbar-toggler.view.generated.d.ts +11 -0
- package/navbar-toggler/src/index.d.ts +1 -0
- package/offcanvas/index.d.ts +1 -0
- package/offcanvas/index.mjs +133 -0
- package/offcanvas/src/generated/index.d.ts +1 -0
- package/offcanvas/src/generated/mp-offcanvas.generated.d.ts +108 -0
- package/offcanvas/src/generated/offcanvas.view.generated.d.ts +11 -0
- package/offcanvas/src/index.d.ts +2 -0
- package/otp-input/index.mjs +33 -29
- package/otp-input/src/generated/otp-input.view.generated.d.ts +4 -1
- package/package.json +123 -11
- package/pagination/index.mjs +88 -144
- package/pagination/src/generated/index.d.ts +1 -0
- package/pagination/src/generated/mp-pagination.generated.d.ts +69 -0
- package/pagination/src/generated/pagination.view.generated.d.ts +11 -0
- package/pagination/src/index.d.ts +3 -2
- package/parallax/index.d.ts +1 -0
- package/parallax/index.mjs +50 -0
- package/parallax/src/generated/index.d.ts +1 -0
- package/parallax/src/generated/mp-parallax.generated.d.ts +32 -0
- package/parallax/src/generated/parallax.view.generated.d.ts +8 -0
- package/parallax/src/index.d.ts +1 -0
- package/phone-input/index.mjs +52 -48
- package/phone-input/src/generated/phone-input.view.generated.d.ts +4 -1
- package/placeholder/index.d.ts +1 -0
- package/placeholder/index.mjs +64 -0
- package/placeholder/src/generated/index.d.ts +1 -0
- package/placeholder/src/generated/mp-placeholder.generated.d.ts +43 -0
- package/placeholder/src/generated/placeholder.view.generated.d.ts +10 -0
- package/placeholder/src/index.d.ts +1 -0
- package/playlist-toggler/index.d.ts +1 -0
- package/playlist-toggler/index.mjs +69 -0
- package/playlist-toggler/src/generated/index.d.ts +1 -0
- package/playlist-toggler/src/generated/mp-playlist-toggler.generated.d.ts +52 -0
- package/playlist-toggler/src/generated/playlist-toggler.view.generated.d.ts +11 -0
- package/playlist-toggler/src/index.d.ts +1 -0
- package/popover/index.d.ts +1 -0
- package/popover/index.mjs +104 -0
- package/popover/src/generated/index.d.ts +2 -0
- package/popover/src/generated/mp-popover-panel.generated.d.ts +66 -0
- package/popover/src/generated/popover-panel.view.generated.d.ts +10 -0
- package/popover/src/generated/popover.directive.generated.d.ts +5 -0
- package/popover/src/index.d.ts +1 -0
- package/priority-nav/index.d.ts +1 -0
- package/priority-nav/index.mjs +149 -0
- package/priority-nav/src/generated/index.d.ts +1 -0
- package/priority-nav/src/generated/mp-priority-nav.generated.d.ts +78 -0
- package/priority-nav/src/generated/priority-nav.view.generated.d.ts +21 -0
- package/priority-nav/src/index.d.ts +2 -0
- package/progress-bar/index.d.ts +1 -0
- package/progress-bar/index.mjs +157 -0
- package/progress-bar/src/generated/index.d.ts +2 -0
- package/progress-bar/src/generated/mp-progress-bar.generated.d.ts +87 -0
- package/progress-bar/src/generated/mp-progress.generated.d.ts +46 -0
- package/progress-bar/src/generated/progress-bar.view.generated.d.ts +12 -0
- package/progress-bar/src/generated/progress.view.generated.d.ts +10 -0
- package/progress-bar/src/index.d.ts +1 -0
- package/query-builder/index.mjs +19 -19
- package/radio/index.mjs +186 -1
- package/radio/src/generated/index.d.ts +2 -0
- package/radio/src/generated/mp-radio-group.generated.d.ts +59 -0
- package/radio/src/generated/mp-radio.generated.d.ts +120 -0
- package/radio/src/generated/radio-group.view.generated.d.ts +10 -0
- package/radio/src/generated/radio.view.generated.d.ts +13 -0
- package/radio/src/index.d.ts +1 -2
- package/range/index.d.ts +1 -0
- package/range/index.mjs +75 -0
- package/range/src/generated/index.d.ts +1 -0
- package/range/src/generated/mp-range.generated.d.ts +64 -0
- package/range/src/generated/range.view.generated.d.ts +11 -0
- package/range/src/index.d.ts +1 -0
- package/rating/index.d.ts +1 -0
- package/rating/index.mjs +74 -0
- package/rating/src/generated/index.d.ts +1 -0
- package/rating/src/generated/mp-rating.generated.d.ts +64 -0
- package/rating/src/generated/rating.view.generated.d.ts +8 -0
- package/rating/src/index.d.ts +1 -0
- package/resizable/index.d.ts +1 -0
- package/resizable/index.mjs +79 -0
- package/resizable/src/generated/index.d.ts +1 -0
- package/resizable/src/generated/mp-resizable.generated.d.ts +66 -0
- package/resizable/src/generated/resizable.view.generated.d.ts +10 -0
- package/resizable/src/index.d.ts +2 -0
- package/scheduler/index.mjs +7 -1
- package/scrollspy/index.d.ts +1 -0
- package/scrollspy/index.mjs +76 -0
- package/scrollspy/src/generated/index.d.ts +1 -0
- package/scrollspy/src/generated/mp-scrollspy.generated.d.ts +49 -0
- package/scrollspy/src/generated/scrollspy.view.generated.d.ts +13 -0
- package/scrollspy/src/index.d.ts +1 -0
- package/select/index.mjs +48 -46
- package/select/src/generated/select.view.generated.d.ts +4 -1
- package/shell/index.mjs +88 -81
- package/shell/src/generated/index.d.ts +1 -0
- package/shell/src/generated/mp-shell.generated.d.ts +90 -0
- package/shell/src/generated/shell.view.generated.d.ts +12 -0
- package/shell/src/index.d.ts +2 -3
- package/sticky-footer/index.d.ts +1 -0
- package/sticky-footer/index.mjs +57 -0
- package/sticky-footer/src/generated/index.d.ts +2 -0
- package/sticky-footer/src/generated/mp-sticky-footer.generated.d.ts +20 -0
- package/sticky-footer/src/generated/sticky-footer-parent.directive.generated.d.ts +2 -0
- package/sticky-footer/src/generated/sticky-footer.view.generated.d.ts +13 -0
- package/sticky-footer/src/index.d.ts +1 -0
- package/tab-control/index.mjs +142 -182
- package/tab-control/src/generated/index.d.ts +2 -0
- package/tab-control/src/generated/mp-tab-control.generated.d.ts +65 -0
- package/tab-control/src/generated/mp-tab-page.generated.d.ts +44 -0
- package/tab-control/src/generated/tab-control.view.generated.d.ts +12 -0
- package/tab-control/src/index.d.ts +2 -4
- package/table/index.d.ts +1 -0
- package/table/index.mjs +75 -0
- package/table/src/generated/index.d.ts +1 -0
- package/table/src/generated/mp-table.generated.d.ts +57 -0
- package/table/src/generated/table.view.generated.d.ts +13 -0
- package/table/src/index.d.ts +1 -0
- package/tile-manager/index.mjs +110 -143
- package/tile-manager/src/generated/index.d.ts +1 -0
- package/tile-manager/src/generated/mp-tile-manager.generated.d.ts +139 -0
- package/tile-manager/src/generated/tile-manager.view.generated.d.ts +21 -0
- package/tile-manager/src/index.d.ts +2 -2
- package/toast/index.d.ts +1 -0
- package/toast/index.mjs +227 -0
- package/toast/src/generated/index.d.ts +4 -0
- package/toast/src/generated/mp-toast-body.generated.d.ts +20 -0
- package/toast/src/generated/mp-toast-header.generated.d.ts +39 -0
- package/toast/src/generated/mp-toast.generated.d.ts +41 -0
- package/toast/src/generated/mp-toaster.generated.d.ts +39 -0
- package/toast/src/generated/toast-body.view.generated.d.ts +10 -0
- package/toast/src/generated/toast-header.view.generated.d.ts +11 -0
- package/toast/src/generated/toast.view.generated.d.ts +10 -0
- package/toast/src/generated/toaster.view.generated.d.ts +15 -0
- package/toast/src/index.d.ts +1 -0
- package/tooltip/index.d.ts +1 -0
- package/tooltip/index.mjs +87 -0
- package/tooltip/src/generated/index.d.ts +2 -0
- package/tooltip/src/generated/mp-tooltip-panel.generated.d.ts +48 -0
- package/tooltip/src/generated/tooltip-panel.view.generated.d.ts +10 -0
- package/tooltip/src/generated/tooltip.directive.generated.d.ts +5 -0
- package/tooltip/src/index.d.ts +1 -0
- package/treeview/index.mjs +1 -1
- package/treeview/src/generated/treeview.view.generated.d.ts +4 -1
- package/typeahead/index.mjs +131 -221
- package/typeahead/src/generated/index.d.ts +1 -0
- package/typeahead/src/generated/mp-typeahead.generated.d.ts +126 -0
- package/typeahead/src/generated/typeahead.view.generated.d.ts +20 -0
- package/typeahead/src/index.d.ts +3 -3
- package/a11y/src/form-associated.d.ts +0 -48
- package/accordion/src/components/index.d.ts +0 -3
- package/accordion/src/components/mp-accordion-tab.d.ts +0 -30
- package/accordion/src/components/mp-accordion.d.ts +0 -54
- package/accordion/src/styles/accordion.styles.d.ts +0 -2
- package/accordion/src/styles/index.d.ts +0 -1
- package/card/src/card-global.styles.d.ts +0 -2
- package/card/src/mp-card.element.d.ts +0 -43
- package/card/src/mp-card.element.template.d.ts +0 -2
- package/charts/sparkline/src/components/index.d.ts +0 -1
- package/charts/sparkline/src/components/mp-sparkline.d.ts +0 -50
- package/charts/sparkline/src/styles/index.d.ts +0 -1
- package/charts/sparkline/src/styles/sparkline.styles.d.ts +0 -2
- package/checkbox/src/components/index.d.ts +0 -2
- package/checkbox/src/components/mp-checkbox.d.ts +0 -128
- package/chunks/a11y-CXIVMaQ_.mjs +0 -287
- package/chunks/radio-fSMWIPFk.mjs +0 -150
- package/chunks/toggle-button-DWLu9iCm.mjs +0 -172
- package/dropdown-menu/index.mjs +0 -48
- package/dropdown-menu/src/components/index.d.ts +0 -1
- package/dropdown-menu/src/components/mp-dropdown-menu.d.ts +0 -46
- package/dropdown-menu/src/index.d.ts +0 -2
- package/input-group/src/mp-input-group.d.ts +0 -29
- package/navbar/src/generated/navbar-dropdown.view.generated.d.ts +0 -14
- package/pagination/src/components/index.d.ts +0 -2
- package/pagination/src/components/mp-pagination.d.ts +0 -57
- package/pagination/src/styles/index.d.ts +0 -1
- package/pagination/src/styles/pagination.styles.d.ts +0 -2
- package/radio/src/components/index.d.ts +0 -2
- package/radio/src/components/mp-radio.d.ts +0 -80
- package/radio-group/index.mjs +0 -64
- package/radio-group/src/components/mp-radio-group.d.ts +0 -39
- package/radio-group/src/index.d.ts +0 -1
- package/radio-group/src/styles/radio-group.styles.d.ts +0 -2
- package/shell/src/components/index.d.ts +0 -2
- package/shell/src/components/mp-shell.d.ts +0 -69
- package/shell/src/styles/shell.styles.d.ts +0 -2
- package/tab-control/src/components/index.d.ts +0 -3
- package/tab-control/src/components/mp-tab-control.d.ts +0 -50
- package/tab-control/src/components/mp-tab-page.d.ts +0 -35
- package/tab-control/src/styles/index.d.ts +0 -1
- package/tab-control/src/styles/tab-control.styles.d.ts +0 -2
- package/tab-control/src/types/index.d.ts +0 -1
- package/tab-control/src/types/tabs-position.d.ts +0 -1
- package/tile-manager/src/components/index.d.ts +0 -1
- package/tile-manager/src/components/mp-tile-manager.d.ts +0 -107
- package/toggle-button/index.mjs +0 -1
- package/toggle-button/src/components/index.d.ts +0 -2
- package/toggle-button/src/components/mp-toggle-button.d.ts +0 -76
- package/toggle-button/src/index.d.ts +0 -3
- package/toggle-button/src/styles/index.d.ts +0 -1
- package/toggle-button/src/styles/toggle-button.styles.d.ts +0 -2
- package/typeahead/src/components/mp-typeahead.d.ts +0 -68
- /package/{dropdown-menu → alert}/index.d.ts +0 -0
- /package/{radio-group → badge}/index.d.ts +0 -0
- /package/{toggle-button → breadcrumb}/index.d.ts +0 -0
package/pagination/index.mjs
CHANGED
|
@@ -1,149 +1,93 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { CoreController as e, booleanAttribute as t, forwardHostAttrs as n, numberAttribute as r, props as i, stringAttribute as a, takeHostAttrs as o } from "../machine/index.mjs";
|
|
2
|
+
import { LitElement as s, html as c, nothing as l } from "lit";
|
|
3
|
+
import { installLightStyles as u } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
+
import { repeat as d } from "lit/directives/repeat.js";
|
|
5
|
+
import { bootstrapPagination as f } from "@mintplayer/ui-core/bootstrap/pagination";
|
|
6
|
+
import { buildPaginationLayout as p, paginationCore as m, paginationScopedStyles as h } from "@mintplayer/ui-core/pagination";
|
|
7
|
+
//#region libs/mintplayer-web-components/pagination/src/generated/pagination.view.generated.ts
|
|
8
|
+
function g({ view: e, slots: t = {}, hostAttrs: r }) {
|
|
9
|
+
return c`
|
|
10
|
+
<nav data-mps="pagination" ${i(n(e.nav, r))}>
|
|
11
|
+
<ul data-mps="pagination" ${i(e.list)}>
|
|
12
|
+
${d(e.entries, (e) => e.key, (e) => c`
|
|
13
|
+
<li data-mps="pagination" ${i(e.item)}>
|
|
14
|
+
${e.gap ? c`
|
|
15
|
+
<span data-mps="pagination" ${i(e.link)}>${e.text}</span>
|
|
16
|
+
` : e.anchor ? c`
|
|
17
|
+
<a data-mps="pagination" ${i(e.link)} href=${e.href ?? l}>${e.text}</a>
|
|
18
|
+
` : c`
|
|
19
|
+
<button data-mps="pagination" ${i(e.link)}>${e.text}</button>
|
|
20
|
+
`}
|
|
21
|
+
</li>
|
|
22
|
+
`)}
|
|
23
|
+
</ul>
|
|
24
|
+
</nav>
|
|
25
|
+
`;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region libs/mintplayer-web-components/pagination/src/generated/mp-pagination.generated.ts
|
|
29
|
+
var _ = class extends s {
|
|
9
30
|
static {
|
|
10
|
-
this.
|
|
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
|
-
} else if (e === "number-of-boxes") {
|
|
64
|
-
let e = Number(n);
|
|
65
|
-
Number.isFinite(e) && (this.numberOfBoxes = e);
|
|
66
|
-
} else if (e === "show-arrows") this.showArrows = n !== "false";
|
|
67
|
-
else if (e === "size") {
|
|
68
|
-
let e = n ?? "medium";
|
|
69
|
-
(e === "small" || e === "medium" || e === "large") && (this.size = e);
|
|
70
|
-
} else e === "aria-label" && (this._ariaLabel = n ?? "Pagination", this.requestUpdate());
|
|
71
|
-
}
|
|
72
|
-
effectiveBudget() {
|
|
73
|
-
let e = this._pageNumbers.length + (this._showArrows ? 2 : 0);
|
|
74
|
-
return this._numberOfBoxes <= 0 ? e : Math.min(e, this._numberOfBoxes);
|
|
75
|
-
}
|
|
76
|
-
computeLayout() {
|
|
77
|
-
return a(this._pageNumbers, this._selectedPageNumber, this.effectiveBudget(), this._showArrows);
|
|
78
|
-
}
|
|
31
|
+
this.properties = {
|
|
32
|
+
pageNumbers: { attribute: !1 },
|
|
33
|
+
selectedPageNumber: {
|
|
34
|
+
type: Number,
|
|
35
|
+
converter: r(1),
|
|
36
|
+
attribute: "selected-page-number"
|
|
37
|
+
},
|
|
38
|
+
numberOfBoxes: {
|
|
39
|
+
type: Number,
|
|
40
|
+
converter: r(0),
|
|
41
|
+
attribute: "number-of-boxes"
|
|
42
|
+
},
|
|
43
|
+
showArrows: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
converter: t(!0),
|
|
46
|
+
attribute: "show-arrows"
|
|
47
|
+
},
|
|
48
|
+
size: {
|
|
49
|
+
type: String,
|
|
50
|
+
converter: a("medium", [
|
|
51
|
+
"small",
|
|
52
|
+
"medium",
|
|
53
|
+
"large"
|
|
54
|
+
])
|
|
55
|
+
},
|
|
56
|
+
labels: { attribute: !1 },
|
|
57
|
+
hrefFor: { attribute: !1 }
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
#e = new e(this, m, {
|
|
61
|
+
idPrefix: "mp-pagination",
|
|
62
|
+
inputs: () => ({
|
|
63
|
+
pageNumbers: this.pageNumbers,
|
|
64
|
+
selectedPageNumber: this.selectedPageNumber,
|
|
65
|
+
numberOfBoxes: this.numberOfBoxes,
|
|
66
|
+
showArrows: this.showArrows,
|
|
67
|
+
size: this.size,
|
|
68
|
+
labels: this.labels,
|
|
69
|
+
hrefFor: this.hrefFor
|
|
70
|
+
}),
|
|
71
|
+
hostBag: (e) => ({
|
|
72
|
+
...e.view.root,
|
|
73
|
+
"data-mps": "pagination"
|
|
74
|
+
}),
|
|
75
|
+
models: ["selectedPageNumber"]
|
|
76
|
+
});
|
|
77
|
+
constructor() {
|
|
78
|
+
super(), this.pageNumbers = [], this.selectedPageNumber = 1, this.numberOfBoxes = 0, this.showArrows = !0, this.size = "medium", this.labels = null, this.hrefFor = null;
|
|
79
|
+
}
|
|
80
|
+
createRenderRoot() {
|
|
81
|
+
return this;
|
|
82
|
+
}
|
|
83
|
+
#t = null;
|
|
79
84
|
render() {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
${e.showPrev ? t`<li>
|
|
85
|
-
<button
|
|
86
|
-
type="button"
|
|
87
|
-
class="page-link"
|
|
88
|
-
aria-label="Previous"
|
|
89
|
-
?disabled=${r}
|
|
90
|
-
@click=${() => this.onPrevious()}
|
|
91
|
-
>
|
|
92
|
-
<span aria-hidden="true">«</span>
|
|
93
|
-
<span class="visually-hidden">Previous</span>
|
|
94
|
-
</button>
|
|
95
|
-
</li>` : n}
|
|
96
|
-
${i(e.items, (e, t) => e.kind === "gap" ? `gap-${t}` : `page-${e.page}`, (e) => e.kind === "gap" ? t`<li>
|
|
97
|
-
<span class="ellipsis" aria-hidden="true">…</span>
|
|
98
|
-
</li>` : t`<li>
|
|
99
|
-
<button
|
|
100
|
-
type="button"
|
|
101
|
-
class="page-link"
|
|
102
|
-
aria-current=${e.current ? "page" : n}
|
|
103
|
-
aria-label=${`Page ${e.page}`}
|
|
104
|
-
@click=${() => this.selectPage(e.page)}
|
|
105
|
-
>
|
|
106
|
-
${e.page}
|
|
107
|
-
</button>
|
|
108
|
-
</li>`)}
|
|
109
|
-
${e.showNext ? t`<li>
|
|
110
|
-
<button
|
|
111
|
-
type="button"
|
|
112
|
-
class="page-link"
|
|
113
|
-
aria-label="Next"
|
|
114
|
-
?disabled=${a}
|
|
115
|
-
@click=${() => this.onNext()}
|
|
116
|
-
>
|
|
117
|
-
<span aria-hidden="true">»</span>
|
|
118
|
-
<span class="visually-hidden">Next</span>
|
|
119
|
-
</button>
|
|
120
|
-
</li>` : n}
|
|
121
|
-
</ul>
|
|
122
|
-
</nav>
|
|
123
|
-
`;
|
|
124
|
-
}
|
|
125
|
-
isFirstPage() {
|
|
126
|
-
return this._pageNumbers.indexOf(this._selectedPageNumber) === 0;
|
|
127
|
-
}
|
|
128
|
-
isLastPage() {
|
|
129
|
-
return this._pageNumbers.indexOf(this._selectedPageNumber) === this._pageNumbers.length - 1;
|
|
130
|
-
}
|
|
131
|
-
selectPage(e) {
|
|
132
|
-
e !== this._selectedPageNumber && this._pageNumbers.includes(e) && (this._selectedPageNumber = e, this.requestUpdate(), this.dispatchEvent(new CustomEvent("mp-pagination-page-change", {
|
|
133
|
-
detail: { page: e },
|
|
134
|
-
bubbles: !0,
|
|
135
|
-
composed: !0
|
|
136
|
-
})));
|
|
137
|
-
}
|
|
138
|
-
onPrevious() {
|
|
139
|
-
let e = this._pageNumbers.indexOf(this._selectedPageNumber), t = e > 0 ? this._pageNumbers[e - 1] : this._pageNumbers[0];
|
|
140
|
-
t != null && this.selectPage(t);
|
|
141
|
-
}
|
|
142
|
-
onNext() {
|
|
143
|
-
let e = this._pageNumbers.indexOf(this._selectedPageNumber), t = this._pageNumbers.length - 1, n = e < 0 ? this._pageNumbers[t] : e < t ? this._pageNumbers[e + 1] : this._pageNumbers[t];
|
|
144
|
-
n != null && this.selectPage(n);
|
|
85
|
+
return g({
|
|
86
|
+
...this.#e.props(),
|
|
87
|
+
hostAttrs: this.#t ??= o(this)
|
|
88
|
+
});
|
|
145
89
|
}
|
|
146
90
|
};
|
|
147
|
-
typeof
|
|
91
|
+
typeof document < "u" && document.head && (u(f.key, f.css, { order: f.order }), u("pagination", h)), customElements.get("mp-pagination") || customElements.define("mp-pagination", _);
|
|
148
92
|
//#endregion
|
|
149
|
-
export {
|
|
93
|
+
export { _ as MpPagination, p as buildPaginationLayout };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MpPagination } from './mp-pagination.generated';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { PaginationInputs } from '@mintplayer/ui-core/pagination';
|
|
3
|
+
/**
|
|
4
|
+
* Bootstrap's pagination in a `<nav>` landmark (#458). `selectedPageNumber` is two-way.
|
|
5
|
+
*
|
|
6
|
+
* Pages are buttons; with `hrefFor` they are real links, so the server-rendered page navigates
|
|
7
|
+
* with JavaScript off, and a plain click selects in place once hydrated. A consumer
|
|
8
|
+
* `aria-label` names the `<nav>`; `labels` localizes the arrows and page names.
|
|
9
|
+
*/
|
|
10
|
+
export declare class MpPagination extends LitElement {
|
|
11
|
+
#private;
|
|
12
|
+
static properties: {
|
|
13
|
+
pageNumbers: {
|
|
14
|
+
attribute: boolean;
|
|
15
|
+
};
|
|
16
|
+
selectedPageNumber: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
converter: {
|
|
19
|
+
fromAttribute: (value: string | null) => number;
|
|
20
|
+
toAttribute: (value: unknown) => string | null;
|
|
21
|
+
};
|
|
22
|
+
attribute: string;
|
|
23
|
+
};
|
|
24
|
+
numberOfBoxes: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
converter: {
|
|
27
|
+
fromAttribute: (value: string | null) => number;
|
|
28
|
+
toAttribute: (value: unknown) => string | null;
|
|
29
|
+
};
|
|
30
|
+
attribute: string;
|
|
31
|
+
};
|
|
32
|
+
showArrows: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
converter: {
|
|
35
|
+
fromAttribute: (value: string | null) => boolean;
|
|
36
|
+
toAttribute: (value: unknown) => string | null;
|
|
37
|
+
};
|
|
38
|
+
attribute: string;
|
|
39
|
+
};
|
|
40
|
+
size: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
converter: {
|
|
43
|
+
fromAttribute: (value: string | null) => string;
|
|
44
|
+
toAttribute: (value: unknown) => string | null;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
labels: {
|
|
48
|
+
attribute: boolean;
|
|
49
|
+
};
|
|
50
|
+
hrefFor: {
|
|
51
|
+
attribute: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
pageNumbers: PaginationInputs['pageNumbers'];
|
|
55
|
+
selectedPageNumber: PaginationInputs['selectedPageNumber'];
|
|
56
|
+
numberOfBoxes: PaginationInputs['numberOfBoxes'];
|
|
57
|
+
showArrows: PaginationInputs['showArrows'];
|
|
58
|
+
size: PaginationInputs['size'];
|
|
59
|
+
labels: PaginationInputs['labels'];
|
|
60
|
+
hrefFor: PaginationInputs['hrefFor'];
|
|
61
|
+
constructor();
|
|
62
|
+
protected createRenderRoot(): HTMLElement;
|
|
63
|
+
render(): import('lit-html').TemplateResult;
|
|
64
|
+
}
|
|
65
|
+
declare global {
|
|
66
|
+
interface HTMLElementTagNameMap {
|
|
67
|
+
'mp-pagination': MpPagination;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { HostAttrs } from '@mintplayer/web-components/machine';
|
|
3
|
+
import { PaginationRenderView } from '@mintplayer/ui-core/pagination';
|
|
4
|
+
export type PaginationTemplateProps = {
|
|
5
|
+
view: PaginationRenderView;
|
|
6
|
+
} & {
|
|
7
|
+
slots?: {};
|
|
8
|
+
/** The element's forwarded aria-* / id / tabindex (takeHostAttrs), for its mp-attrs node. */
|
|
9
|
+
hostAttrs?: HostAttrs | null;
|
|
10
|
+
};
|
|
11
|
+
export declare function paginationTemplate({ view, slots, hostAttrs }: PaginationTemplateProps): TemplateResult;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from './generated';
|
|
2
|
+
export { buildPaginationLayout } from '@mintplayer/ui-core/pagination';
|
|
3
|
+
export type { PaginationItem, PaginationLabels, PaginationLayout, PaginationSize } from '@mintplayer/ui-core/pagination';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { CoreController as e, numberAttribute as t, props as n, stringAttribute as r } from "../machine/index.mjs";
|
|
2
|
+
import { LitElement as i, html as a } from "lit";
|
|
3
|
+
import { installLightStyles as o } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
+
import { styleMap as s } from "lit/directives/style-map.js";
|
|
5
|
+
import { parallaxCore as c, parallaxScopedStyles as l } from "@mintplayer/ui-core/parallax";
|
|
6
|
+
//#region libs/mintplayer-web-components/parallax/src/generated/parallax.view.generated.ts
|
|
7
|
+
function u({ view: e, slots: t = {} }) {
|
|
8
|
+
return a`
|
|
9
|
+
<div data-mps="parallax" ${n(e.band)} style=${s(e.bandStyle)}></div>
|
|
10
|
+
`;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region libs/mintplayer-web-components/parallax/src/generated/mp-parallax.generated.ts
|
|
14
|
+
var d = class extends i {
|
|
15
|
+
static {
|
|
16
|
+
this.properties = {
|
|
17
|
+
height: {
|
|
18
|
+
type: Number,
|
|
19
|
+
converter: t(150)
|
|
20
|
+
},
|
|
21
|
+
image: {
|
|
22
|
+
type: String,
|
|
23
|
+
converter: r(null)
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
#e = new e(this, c, {
|
|
28
|
+
idPrefix: "mp-parallax",
|
|
29
|
+
inputs: () => ({
|
|
30
|
+
height: this.height,
|
|
31
|
+
image: this.image
|
|
32
|
+
}),
|
|
33
|
+
hostBag: (e) => ({
|
|
34
|
+
...e.view.root,
|
|
35
|
+
"data-mps": "parallax"
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
constructor() {
|
|
39
|
+
super(), this.height = 150, this.image = null;
|
|
40
|
+
}
|
|
41
|
+
createRenderRoot() {
|
|
42
|
+
return this;
|
|
43
|
+
}
|
|
44
|
+
render() {
|
|
45
|
+
return u({ ...this.#e.props() });
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
typeof document < "u" && document.head && o("parallax", l), customElements.get("mp-parallax") || customElements.define("mp-parallax", d);
|
|
49
|
+
//#endregion
|
|
50
|
+
export { d as MpParallax };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MpParallax } from './mp-parallax.generated';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { ParallaxInputs } from '@mintplayer/ui-core/parallax';
|
|
3
|
+
/** A decorative band `height` pixels tall whose background `image` stays fixed while the page scrolls (it scrolls along under reduced motion). */
|
|
4
|
+
export declare class MpParallax extends LitElement {
|
|
5
|
+
#private;
|
|
6
|
+
static properties: {
|
|
7
|
+
height: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
converter: {
|
|
10
|
+
fromAttribute: (value: string | null) => number;
|
|
11
|
+
toAttribute: (value: unknown) => string | null;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
image: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
converter: {
|
|
17
|
+
fromAttribute: (value: string | null) => string | null;
|
|
18
|
+
toAttribute: (value: unknown) => string | null;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
height: ParallaxInputs['height'];
|
|
23
|
+
image: ParallaxInputs['image'];
|
|
24
|
+
constructor();
|
|
25
|
+
protected createRenderRoot(): HTMLElement;
|
|
26
|
+
render(): import('lit-html').TemplateResult;
|
|
27
|
+
}
|
|
28
|
+
declare global {
|
|
29
|
+
interface HTMLElementTagNameMap {
|
|
30
|
+
'mp-parallax': MpParallax;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { ParallaxView } from '@mintplayer/ui-core/parallax';
|
|
3
|
+
export type ParallaxTemplateProps = {
|
|
4
|
+
view: ParallaxView;
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {};
|
|
7
|
+
};
|
|
8
|
+
export declare function parallaxTemplate({ view, slots }: ParallaxTemplateProps): TemplateResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generated';
|
package/phone-input/index.mjs
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
import { CoreController as e, booleanAttribute as t,
|
|
2
|
-
import { LitElement as
|
|
3
|
-
import { installLightStyles as
|
|
4
|
-
import { repeat as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { phoneInputCore as
|
|
1
|
+
import { CoreController as e, booleanAttribute as t, forwardHostAttrs as n, props as r, stringAttribute as i, takeHostAttrs as a } from "../machine/index.mjs";
|
|
2
|
+
import { LitElement as o, html as s, nothing as c } from "lit";
|
|
3
|
+
import { installLightStyles as l } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
+
import { repeat as u } from "lit/directives/repeat.js";
|
|
5
|
+
import { bootstrapForms as d } from "@mintplayer/ui-core/bootstrap/forms";
|
|
6
|
+
import { unsafeHTML as f } from "lit/directives/unsafe-html.js";
|
|
7
|
+
import { phoneInputCore as p, phoneInputScopedStyles as m } from "@mintplayer/ui-core/phone-input";
|
|
8
8
|
//#region libs/mintplayer-web-components/phone-input/src/generated/phone-input.view.generated.ts
|
|
9
|
-
function
|
|
10
|
-
return
|
|
11
|
-
<div data-mps="phone-input" ${
|
|
12
|
-
<select data-mps="phone-input" ${
|
|
13
|
-
${e.rich ?
|
|
9
|
+
function h({ view: e, slots: t = {}, hostAttrs: i }) {
|
|
10
|
+
return s`
|
|
11
|
+
<div data-mps="phone-input" ${r(e.group)}>
|
|
12
|
+
<select data-mps="phone-input" ${r(e.select)}>
|
|
13
|
+
${e.rich ? s`
|
|
14
14
|
<button data-mps="phone-input" type="button">
|
|
15
15
|
<selectedcontent></selectedcontent>
|
|
16
16
|
</button>
|
|
17
|
-
` :
|
|
18
|
-
${
|
|
19
|
-
<option data-mps="phone-input" ${
|
|
20
|
-
${e.rich ?
|
|
21
|
-
<span data-mps="phone-input" ${
|
|
22
|
-
<span data-mps="phone-input" ${
|
|
23
|
-
<span data-mps="phone-input" ${
|
|
24
|
-
<span data-mps="phone-input" ${
|
|
25
|
-
` :
|
|
17
|
+
` : c}
|
|
18
|
+
${u(e.options, (e) => e.key, (t) => s`
|
|
19
|
+
<option data-mps="phone-input" ${r(t.bag)}>
|
|
20
|
+
${e.rich ? s`
|
|
21
|
+
<span data-mps="phone-input" ${r(e.flagBox)}>${f(t.flag)}</span>
|
|
22
|
+
<span data-mps="phone-input" ${r(e.richLabel)}>${t.name}</span>
|
|
23
|
+
<span data-mps="phone-input" ${r(e.listOnly)}>${t.dial}</span>
|
|
24
|
+
<span data-mps="phone-input" ${r(e.closedOnly)}>${t.iso}</span>
|
|
25
|
+
` : s`
|
|
26
26
|
${t.label}
|
|
27
27
|
`}
|
|
28
28
|
</option>
|
|
29
29
|
`)}
|
|
30
30
|
</select>
|
|
31
|
-
<span data-mps="phone-input" ${
|
|
32
|
-
<span data-mps="phone-input" ${
|
|
33
|
-
<span data-mps="phone-input" ${
|
|
31
|
+
<span data-mps="phone-input" ${r(e.addon)}>
|
|
32
|
+
<span data-mps="phone-input" ${r(e.flag)}>${f(e.flagHtml)}</span>
|
|
33
|
+
<span data-mps="phone-input" ${r(e.dial)}>${e.dialText}</span>
|
|
34
34
|
</span>
|
|
35
|
-
<input data-mps="phone-input" ${n(e.input)}>
|
|
35
|
+
<input data-mps="phone-input" ${r(n(e.input, i))}>
|
|
36
36
|
</div>
|
|
37
|
-
${e.hidden ?
|
|
38
|
-
<input data-mps="phone-input" ${
|
|
39
|
-
` :
|
|
40
|
-
${e.showFeedback ?
|
|
41
|
-
<div data-mps="phone-input" ${
|
|
42
|
-
` :
|
|
37
|
+
${e.hidden ? s`
|
|
38
|
+
<input data-mps="phone-input" ${r(e.hidden)}>
|
|
39
|
+
` : c}
|
|
40
|
+
${e.showFeedback ? s`
|
|
41
|
+
<div data-mps="phone-input" ${r(e.feedback.attrs)}>${e.feedback.text}</div>
|
|
42
|
+
` : c}
|
|
43
43
|
`;
|
|
44
44
|
}
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region libs/mintplayer-web-components/phone-input/src/generated/mp-phone-input.generated.ts
|
|
47
|
-
var
|
|
47
|
+
var g = class extends o {
|
|
48
48
|
static {
|
|
49
49
|
this.properties = {
|
|
50
50
|
value: {
|
|
51
51
|
type: String,
|
|
52
|
-
converter:
|
|
52
|
+
converter: i(null)
|
|
53
53
|
},
|
|
54
54
|
country: {
|
|
55
55
|
type: String,
|
|
56
|
-
converter:
|
|
56
|
+
converter: i(null)
|
|
57
57
|
},
|
|
58
58
|
defaultCountry: {
|
|
59
59
|
type: String,
|
|
60
|
-
converter:
|
|
60
|
+
converter: i(void 0),
|
|
61
61
|
attribute: "default-country"
|
|
62
62
|
},
|
|
63
63
|
locale: {
|
|
64
64
|
type: String,
|
|
65
|
-
converter:
|
|
65
|
+
converter: i(void 0)
|
|
66
66
|
},
|
|
67
67
|
preferredCountries: {
|
|
68
68
|
type: String,
|
|
69
|
-
converter:
|
|
69
|
+
converter: i(null),
|
|
70
70
|
attribute: "preferred-countries"
|
|
71
71
|
},
|
|
72
72
|
allowedCountries: {
|
|
73
73
|
type: String,
|
|
74
|
-
converter:
|
|
74
|
+
converter: i(null),
|
|
75
75
|
attribute: "allowed-countries"
|
|
76
76
|
},
|
|
77
77
|
disabled: {
|
|
@@ -91,34 +91,34 @@ var m = class extends i {
|
|
|
91
91
|
},
|
|
92
92
|
errorText: {
|
|
93
93
|
type: String,
|
|
94
|
-
converter:
|
|
94
|
+
converter: i(void 0),
|
|
95
95
|
attribute: "error-text"
|
|
96
96
|
},
|
|
97
97
|
placeholder: {
|
|
98
98
|
type: String,
|
|
99
|
-
converter:
|
|
99
|
+
converter: i(void 0)
|
|
100
100
|
},
|
|
101
101
|
autocomplete: {
|
|
102
102
|
type: String,
|
|
103
|
-
converter:
|
|
103
|
+
converter: i("tel-national")
|
|
104
104
|
},
|
|
105
105
|
name: {
|
|
106
106
|
type: String,
|
|
107
|
-
converter:
|
|
107
|
+
converter: i(void 0)
|
|
108
108
|
},
|
|
109
109
|
inputLabel: {
|
|
110
110
|
type: String,
|
|
111
|
-
converter:
|
|
111
|
+
converter: i(void 0),
|
|
112
112
|
attribute: "input-label"
|
|
113
113
|
},
|
|
114
114
|
countryLabel: {
|
|
115
115
|
type: String,
|
|
116
|
-
converter:
|
|
116
|
+
converter: i(void 0),
|
|
117
117
|
attribute: "country-label"
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
#e = new e(this,
|
|
121
|
+
#e = new e(this, p, {
|
|
122
122
|
idPrefix: "mp-phone-input",
|
|
123
123
|
inputs: () => ({
|
|
124
124
|
value: this.value,
|
|
@@ -149,8 +149,12 @@ var m = class extends i {
|
|
|
149
149
|
createRenderRoot() {
|
|
150
150
|
return this;
|
|
151
151
|
}
|
|
152
|
+
#t = null;
|
|
152
153
|
render() {
|
|
153
|
-
return
|
|
154
|
+
return h({
|
|
155
|
+
...this.#e.props(),
|
|
156
|
+
hostAttrs: this.#t ??= a(this)
|
|
157
|
+
});
|
|
154
158
|
}
|
|
155
159
|
focusInput(...e) {
|
|
156
160
|
return this.#e.call("focusInput", e);
|
|
@@ -159,6 +163,6 @@ var m = class extends i {
|
|
|
159
163
|
return this.#e.call("whenReady", e);
|
|
160
164
|
}
|
|
161
165
|
};
|
|
162
|
-
typeof document < "u" && document.head && (
|
|
166
|
+
typeof document < "u" && document.head && (l(d.key, d.css, { order: d.order }), l("phone-input", m)), customElements.get("mp-phone-input") || customElements.define("mp-phone-input", g);
|
|
163
167
|
//#endregion
|
|
164
|
-
export {
|
|
168
|
+
export { g as MpPhoneInput };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { TemplateResult } from 'lit';
|
|
2
|
+
import { HostAttrs } from '@mintplayer/web-components/machine';
|
|
2
3
|
import { PhoneInputView } from '@mintplayer/ui-core/phone-input';
|
|
3
4
|
export type PhoneInputTemplateProps = {
|
|
4
5
|
view: PhoneInputView;
|
|
5
6
|
} & {
|
|
6
7
|
slots?: {};
|
|
8
|
+
/** The element's forwarded aria-* / id / tabindex (takeHostAttrs), for its mp-attrs node. */
|
|
9
|
+
hostAttrs?: HostAttrs | null;
|
|
7
10
|
};
|
|
8
|
-
export declare function phoneInputTemplate({ view, slots }: PhoneInputTemplateProps): TemplateResult;
|
|
11
|
+
export declare function phoneInputTemplate({ view, slots, hostAttrs }: PhoneInputTemplateProps): TemplateResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|