@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
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { RatingInputs } from '@mintplayer/ui-core/rating';
|
|
3
|
+
/** A star rating as native radios in a radiogroup: `value` (two-way, 0 for none) out of `maximum`. Works without JavaScript. */
|
|
4
|
+
export declare class MpRating extends LitElement {
|
|
5
|
+
#private;
|
|
6
|
+
static properties: {
|
|
7
|
+
value: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
converter: {
|
|
10
|
+
fromAttribute: (value: string | null) => number;
|
|
11
|
+
toAttribute: (value: unknown) => string | null;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
maximum: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
converter: {
|
|
17
|
+
fromAttribute: (value: string | null) => number;
|
|
18
|
+
toAttribute: (value: unknown) => string | null;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
disabled: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
converter: {
|
|
24
|
+
fromAttribute: (value: string | null) => boolean;
|
|
25
|
+
toAttribute: (value: unknown) => string | null;
|
|
26
|
+
};
|
|
27
|
+
reflect: boolean;
|
|
28
|
+
};
|
|
29
|
+
name: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
converter: {
|
|
32
|
+
fromAttribute: (value: string | null) => string | null;
|
|
33
|
+
toAttribute: (value: unknown) => string | null;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
label: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
converter: {
|
|
39
|
+
fromAttribute: (value: string | null) => string;
|
|
40
|
+
toAttribute: (value: unknown) => string | null;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
starLabel: {
|
|
44
|
+
attribute: boolean;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
value: RatingInputs['value'];
|
|
48
|
+
maximum: RatingInputs['maximum'];
|
|
49
|
+
disabled: RatingInputs['disabled'];
|
|
50
|
+
/** The radios' form name; null derives one from the id. */
|
|
51
|
+
name: RatingInputs['name'];
|
|
52
|
+
/** Names the radiogroup; a consumer `aria-label` wins. */
|
|
53
|
+
label: RatingInputs['label'];
|
|
54
|
+
/** Each star's accessible name, as a formatter (word order differs across languages). */
|
|
55
|
+
starLabel: RatingInputs['starLabel'];
|
|
56
|
+
constructor();
|
|
57
|
+
protected createRenderRoot(): HTMLElement;
|
|
58
|
+
render(): import('lit-html').TemplateResult;
|
|
59
|
+
}
|
|
60
|
+
declare global {
|
|
61
|
+
interface HTMLElementTagNameMap {
|
|
62
|
+
'mp-rating': MpRating;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { RatingView } from '@mintplayer/ui-core/rating';
|
|
3
|
+
export type RatingTemplateProps = {
|
|
4
|
+
view: RatingView;
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {};
|
|
7
|
+
};
|
|
8
|
+
export declare function ratingTemplate({ view, slots }: RatingTemplateProps): TemplateResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generated';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { CoreController as e, LightChildren as t, booleanAttribute as n, instanceStyle as r, props as i, stringAttribute 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 { resizableCore as d, resizableScopedStyles as f } from "@mintplayer/ui-core/resizable";
|
|
6
|
+
//#region libs/mintplayer-web-components/resizable/src/generated/resizable.view.generated.ts
|
|
7
|
+
function p({ view: e, slots: t = {} }) {
|
|
8
|
+
return s`
|
|
9
|
+
${r(e.css)}
|
|
10
|
+
${u(e.glyphs, (e) => e.key, (e) => s`
|
|
11
|
+
<div data-mps="resizable" ${i(e.attrs)}></div>
|
|
12
|
+
`)}
|
|
13
|
+
${t.default === void 0 ? c : t.default}
|
|
14
|
+
`;
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region libs/mintplayer-web-components/resizable/src/generated/mp-resizable.generated.ts
|
|
18
|
+
var m = class extends o {
|
|
19
|
+
static {
|
|
20
|
+
this.properties = {
|
|
21
|
+
positioning: {
|
|
22
|
+
type: String,
|
|
23
|
+
converter: a("inline", ["absolute", "inline"])
|
|
24
|
+
},
|
|
25
|
+
horizontal: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
converter: n(!0)
|
|
28
|
+
},
|
|
29
|
+
vertical: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
converter: n(!0)
|
|
32
|
+
},
|
|
33
|
+
corners: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
converter: n(!0)
|
|
36
|
+
},
|
|
37
|
+
labels: { attribute: !1 },
|
|
38
|
+
presetPosition: { attribute: !1 },
|
|
39
|
+
defaultRenderer: { attribute: !1 }
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
#e = new t(this);
|
|
43
|
+
#t = new e(this, d, {
|
|
44
|
+
idPrefix: "mp-resizable",
|
|
45
|
+
inputs: () => ({
|
|
46
|
+
positioning: this.positioning,
|
|
47
|
+
horizontal: this.horizontal,
|
|
48
|
+
vertical: this.vertical,
|
|
49
|
+
corners: this.corners,
|
|
50
|
+
labels: this.labels,
|
|
51
|
+
presetPosition: this.presetPosition
|
|
52
|
+
}),
|
|
53
|
+
hostBag: (e) => ({
|
|
54
|
+
...e.view.root,
|
|
55
|
+
"data-mps": "resizable"
|
|
56
|
+
})
|
|
57
|
+
});
|
|
58
|
+
constructor() {
|
|
59
|
+
super(), this.positioning = "inline", this.horizontal = !0, this.vertical = !0, this.corners = !0, this.labels = null, this.presetPosition = null;
|
|
60
|
+
}
|
|
61
|
+
createRenderRoot() {
|
|
62
|
+
return this;
|
|
63
|
+
}
|
|
64
|
+
willUpdate() {
|
|
65
|
+
this.#e.capture();
|
|
66
|
+
}
|
|
67
|
+
render() {
|
|
68
|
+
return p({
|
|
69
|
+
...this.#t.props(),
|
|
70
|
+
slots: {
|
|
71
|
+
...this.#e.slots,
|
|
72
|
+
...this.defaultRenderer ? { default: this.defaultRenderer() } : {}
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
typeof document < "u" && document.head && l("resizable", f), customElements.get("mp-resizable") || customElements.define("mp-resizable", m);
|
|
78
|
+
//#endregion
|
|
79
|
+
export { m as MpResizable };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MpResizable } from './mp-resizable.generated';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { ResizableInputs } from '@mintplayer/ui-core/resizable';
|
|
3
|
+
/**
|
|
4
|
+
* A box with draggable edges and corners around any content. Drag a glyph, or focus it and use
|
|
5
|
+
* the arrow keys (10px, Shift for 1px). Inline positioning grows the box by giving back margin, so
|
|
6
|
+
* the content around it stays put; absolute positioning writes its own size and offset.
|
|
7
|
+
*/
|
|
8
|
+
export declare class MpResizable extends LitElement {
|
|
9
|
+
#private;
|
|
10
|
+
static properties: {
|
|
11
|
+
positioning: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
converter: {
|
|
14
|
+
fromAttribute: (value: string | null) => string;
|
|
15
|
+
toAttribute: (value: unknown) => string | null;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
horizontal: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
converter: {
|
|
21
|
+
fromAttribute: (value: string | null) => boolean;
|
|
22
|
+
toAttribute: (value: unknown) => string | null;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
vertical: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
converter: {
|
|
28
|
+
fromAttribute: (value: string | null) => boolean;
|
|
29
|
+
toAttribute: (value: unknown) => string | null;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
corners: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
converter: {
|
|
35
|
+
fromAttribute: (value: string | null) => boolean;
|
|
36
|
+
toAttribute: (value: unknown) => string | null;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
labels: {
|
|
40
|
+
attribute: boolean;
|
|
41
|
+
};
|
|
42
|
+
presetPosition: {
|
|
43
|
+
attribute: boolean;
|
|
44
|
+
};
|
|
45
|
+
defaultRenderer: {
|
|
46
|
+
attribute: boolean;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
positioning: ResizableInputs['positioning'];
|
|
50
|
+
horizontal: ResizableInputs['horizontal'];
|
|
51
|
+
vertical: ResizableInputs['vertical'];
|
|
52
|
+
corners: ResizableInputs['corners'];
|
|
53
|
+
labels: ResizableInputs['labels'];
|
|
54
|
+
presetPosition: ResizableInputs['presetPosition'];
|
|
55
|
+
/** Renders the default slot; wins over slot="default" children. */
|
|
56
|
+
defaultRenderer: (() => unknown) | null | undefined;
|
|
57
|
+
constructor();
|
|
58
|
+
protected createRenderRoot(): HTMLElement;
|
|
59
|
+
protected willUpdate(): void;
|
|
60
|
+
render(): import('lit-html').TemplateResult;
|
|
61
|
+
}
|
|
62
|
+
declare global {
|
|
63
|
+
interface HTMLElementTagNameMap {
|
|
64
|
+
'mp-resizable': MpResizable;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { ResizableView } from '@mintplayer/ui-core/resizable';
|
|
3
|
+
export type ResizableTemplateProps = {
|
|
4
|
+
view: ResizableView;
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {
|
|
7
|
+
default?: unknown;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function resizableTemplate({ view, slots }: ResizableTemplateProps): TemplateResult;
|
package/scheduler/index.mjs
CHANGED
|
@@ -445,7 +445,13 @@ var O = class extends a {
|
|
|
445
445
|
},
|
|
446
446
|
view: {
|
|
447
447
|
type: String,
|
|
448
|
-
converter: i(null
|
|
448
|
+
converter: i(null, [
|
|
449
|
+
"year",
|
|
450
|
+
"month",
|
|
451
|
+
"week",
|
|
452
|
+
"day",
|
|
453
|
+
"timeline"
|
|
454
|
+
])
|
|
449
455
|
},
|
|
450
456
|
date: { attribute: !1 },
|
|
451
457
|
selectedEvent: { attribute: !1 },
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { CoreController as e, LightChildren 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 { scrollspyCore as f, scrollspyScopedStyles as p } from "@mintplayer/ui-core/scrollspy";
|
|
6
|
+
//#region libs/mintplayer-web-components/scrollspy/src/generated/scrollspy.view.generated.ts
|
|
7
|
+
function m({ view: e, slots: t = {}, hostAttrs: r }) {
|
|
8
|
+
return c`
|
|
9
|
+
<nav data-mps="scrollspy" ${i(n(e.nav, r))}>
|
|
10
|
+
<ul data-mps="scrollspy" ${i(e.list)}>
|
|
11
|
+
${d(e.entries, (e) => e.key, (e) => c`
|
|
12
|
+
<li data-mps="scrollspy">
|
|
13
|
+
<button data-mps="scrollspy" ${i(e.button)}>${e.text}</button>
|
|
14
|
+
</li>
|
|
15
|
+
`)}
|
|
16
|
+
</ul>
|
|
17
|
+
</nav>
|
|
18
|
+
<div data-mps="scrollspy" ${i(e.content)}>
|
|
19
|
+
${t.default === void 0 ? l : t.default}
|
|
20
|
+
</div>
|
|
21
|
+
`;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region libs/mintplayer-web-components/scrollspy/src/generated/mp-scrollspy.generated.ts
|
|
25
|
+
var h = class extends s {
|
|
26
|
+
static {
|
|
27
|
+
this.properties = {
|
|
28
|
+
label: {
|
|
29
|
+
type: String,
|
|
30
|
+
converter: a("Section navigation")
|
|
31
|
+
},
|
|
32
|
+
scrollContainer: { attribute: !1 },
|
|
33
|
+
offset: {
|
|
34
|
+
type: Number,
|
|
35
|
+
converter: r(0)
|
|
36
|
+
},
|
|
37
|
+
defaultRenderer: { attribute: !1 }
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
#e = new t(this);
|
|
41
|
+
#t = new e(this, f, {
|
|
42
|
+
idPrefix: "mp-scrollspy",
|
|
43
|
+
inputs: () => ({
|
|
44
|
+
label: this.label,
|
|
45
|
+
scrollContainer: this.scrollContainer,
|
|
46
|
+
offset: this.offset
|
|
47
|
+
}),
|
|
48
|
+
hostBag: (e) => ({
|
|
49
|
+
...e.view.root,
|
|
50
|
+
"data-mps": "scrollspy"
|
|
51
|
+
})
|
|
52
|
+
});
|
|
53
|
+
constructor() {
|
|
54
|
+
super(), this.label = "Section navigation", this.scrollContainer = null, this.offset = 0;
|
|
55
|
+
}
|
|
56
|
+
createRenderRoot() {
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
willUpdate() {
|
|
60
|
+
this.#e.capture();
|
|
61
|
+
}
|
|
62
|
+
#n = null;
|
|
63
|
+
render() {
|
|
64
|
+
return m({
|
|
65
|
+
...this.#t.props(),
|
|
66
|
+
slots: {
|
|
67
|
+
...this.#e.slots,
|
|
68
|
+
...this.defaultRenderer ? { default: this.defaultRenderer() } : {}
|
|
69
|
+
},
|
|
70
|
+
hostAttrs: this.#n ??= o(this)
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
typeof document < "u" && document.head && u("scrollspy", p), customElements.get("mp-scrollspy") || customElements.define("mp-scrollspy", h);
|
|
75
|
+
//#endregion
|
|
76
|
+
export { h as MpScrollspy };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MpScrollspy } from './mp-scrollspy.generated';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { ScrollspyInputs } from '@mintplayer/ui-core/scrollspy';
|
|
3
|
+
/**
|
|
4
|
+
* A table of contents beside the content that follows the reader. The sections are the content's
|
|
5
|
+
* elements marked `data-scrollspy`; the active one is `aria-current="location"`. The list is built once
|
|
6
|
+
* hydrated (no-JS tier 2).
|
|
7
|
+
*/
|
|
8
|
+
export declare class MpScrollspy extends LitElement {
|
|
9
|
+
#private;
|
|
10
|
+
static properties: {
|
|
11
|
+
label: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
converter: {
|
|
14
|
+
fromAttribute: (value: string | null) => string;
|
|
15
|
+
toAttribute: (value: unknown) => string | null;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
scrollContainer: {
|
|
19
|
+
attribute: boolean;
|
|
20
|
+
};
|
|
21
|
+
offset: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
converter: {
|
|
24
|
+
fromAttribute: (value: string | null) => number;
|
|
25
|
+
toAttribute: (value: unknown) => string | null;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
defaultRenderer: {
|
|
29
|
+
attribute: boolean;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
/** Names the section navigation; a consumer `aria-label` wins. */
|
|
33
|
+
label: ScrollspyInputs['label'];
|
|
34
|
+
/** The element that scrolls; null finds the nearest scrolling ancestor, else the window. */
|
|
35
|
+
scrollContainer: ScrollspyInputs['scrollContainer'];
|
|
36
|
+
/** Pixels between the viewport top and the trigger line when the window scrolls (a fixed navbar). */
|
|
37
|
+
offset: ScrollspyInputs['offset'];
|
|
38
|
+
/** Renders the default slot; wins over slot="default" children. */
|
|
39
|
+
defaultRenderer: (() => unknown) | null | undefined;
|
|
40
|
+
constructor();
|
|
41
|
+
protected createRenderRoot(): HTMLElement;
|
|
42
|
+
protected willUpdate(): void;
|
|
43
|
+
render(): import('lit-html').TemplateResult;
|
|
44
|
+
}
|
|
45
|
+
declare global {
|
|
46
|
+
interface HTMLElementTagNameMap {
|
|
47
|
+
'mp-scrollspy': MpScrollspy;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { HostAttrs } from '@mintplayer/web-components/machine';
|
|
3
|
+
import { ScrollspyView } from '@mintplayer/ui-core/scrollspy';
|
|
4
|
+
export type ScrollspyTemplateProps = {
|
|
5
|
+
view: ScrollspyView;
|
|
6
|
+
} & {
|
|
7
|
+
slots?: {
|
|
8
|
+
default?: unknown;
|
|
9
|
+
};
|
|
10
|
+
/** The element's forwarded aria-* / id / tabindex (takeHostAttrs), for its mp-attrs node. */
|
|
11
|
+
hostAttrs?: HostAttrs | null;
|
|
12
|
+
};
|
|
13
|
+
export declare function scrollspyTemplate({ view, slots, hostAttrs }: ScrollspyTemplateProps): TemplateResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generated';
|
package/select/index.mjs
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { CoreController as e, LightChildren as t, booleanAttribute as n,
|
|
2
|
-
import { LitElement as
|
|
3
|
-
import { installLightStyles as
|
|
4
|
-
import { repeat as
|
|
5
|
-
import { bootstrapForms as
|
|
6
|
-
import { selectCore as
|
|
1
|
+
import { CoreController as e, LightChildren as t, booleanAttribute as n, forwardHostAttrs as r, numberAttribute as i, props as a, stringAttribute as o, takeHostAttrs as s } from "../machine/index.mjs";
|
|
2
|
+
import { LitElement as c, html as l, nothing as u } from "lit";
|
|
3
|
+
import { installLightStyles as d } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
+
import { repeat as f } from "lit/directives/repeat.js";
|
|
5
|
+
import { bootstrapForms as p } from "@mintplayer/ui-core/bootstrap/forms";
|
|
6
|
+
import { selectCore as m, selectScopedStyles as h } from "@mintplayer/ui-core/select";
|
|
7
7
|
//#region libs/mintplayer-web-components/select/src/generated/select.view.generated.ts
|
|
8
|
-
function
|
|
8
|
+
function g(e, t) {
|
|
9
9
|
return typeof e == "function" ? e(t) : e;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
return
|
|
13
|
-
<select data-mps="select" ${
|
|
14
|
-
${e.rich && t.option ?
|
|
11
|
+
function _({ view: e, slots: t = {}, hostAttrs: n }) {
|
|
12
|
+
return l`
|
|
13
|
+
<select data-mps="select" ${a(r(e.select, n))}>
|
|
14
|
+
${e.rich && t.option ? l`
|
|
15
15
|
<button data-mps="select" type="button">
|
|
16
16
|
<selectedcontent></selectedcontent>
|
|
17
17
|
</button>
|
|
18
|
-
` :
|
|
19
|
-
${e.items ?
|
|
20
|
-
${
|
|
21
|
-
${n.group ?
|
|
22
|
-
<optgroup data-mps="select" ${
|
|
23
|
-
${
|
|
24
|
-
<option data-mps="select" ${
|
|
25
|
-
${e.rich ?
|
|
26
|
-
${t.option === void 0 ?
|
|
18
|
+
` : u}
|
|
19
|
+
${e.items ? l`
|
|
20
|
+
${f(e.items, (e) => e.key, (n) => l`
|
|
21
|
+
${n.group ? l`
|
|
22
|
+
<optgroup data-mps="select" ${a(n.group)}>
|
|
23
|
+
${f(n.options, (e) => e.key, (n) => l`
|
|
24
|
+
<option data-mps="select" ${a(n.bag)}>
|
|
25
|
+
${e.rich ? l`
|
|
26
|
+
${t.option === void 0 ? l`
|
|
27
27
|
${n.option.label}
|
|
28
|
-
` :
|
|
29
|
-
` :
|
|
28
|
+
` : g(t.option, { option: n.option })}
|
|
29
|
+
` : l`
|
|
30
30
|
${n.option.label}
|
|
31
31
|
`}
|
|
32
32
|
</option>
|
|
33
33
|
`)}
|
|
34
34
|
</optgroup>
|
|
35
|
-
` :
|
|
36
|
-
${
|
|
37
|
-
<option data-mps="select" ${
|
|
38
|
-
${e.rich ?
|
|
39
|
-
${t.option === void 0 ?
|
|
35
|
+
` : l`
|
|
36
|
+
${f(n.options, (e) => e.key, (n) => l`
|
|
37
|
+
<option data-mps="select" ${a(n.bag)}>
|
|
38
|
+
${e.rich ? l`
|
|
39
|
+
${t.option === void 0 ? l`
|
|
40
40
|
${n.option.label}
|
|
41
|
-
` :
|
|
42
|
-
` :
|
|
41
|
+
` : g(t.option, { option: n.option })}
|
|
42
|
+
` : l`
|
|
43
43
|
${n.option.label}
|
|
44
44
|
`}
|
|
45
45
|
</option>
|
|
46
46
|
`)}
|
|
47
47
|
`}
|
|
48
48
|
`)}
|
|
49
|
-
` :
|
|
50
|
-
${t.default === void 0 ?
|
|
49
|
+
` : l`
|
|
50
|
+
${t.default === void 0 ? u : t.default}
|
|
51
51
|
`}
|
|
52
52
|
</select>
|
|
53
|
-
${e.showFeedback ?
|
|
54
|
-
<div data-mps="select" ${
|
|
55
|
-
` :
|
|
53
|
+
${e.showFeedback ? l`
|
|
54
|
+
<div data-mps="select" ${a(e.feedback.attrs)}>${e.feedback.text}</div>
|
|
55
|
+
` : u}
|
|
56
56
|
`;
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region libs/mintplayer-web-components/select/src/generated/mp-select.generated.ts
|
|
60
|
-
var
|
|
60
|
+
var v = class extends c {
|
|
61
61
|
static {
|
|
62
62
|
this.properties = {
|
|
63
63
|
size: {
|
|
64
64
|
type: String,
|
|
65
|
-
converter:
|
|
65
|
+
converter: o("md", [
|
|
66
66
|
"sm",
|
|
67
67
|
"md",
|
|
68
68
|
"lg"
|
|
@@ -76,7 +76,7 @@ var g = class extends o {
|
|
|
76
76
|
},
|
|
77
77
|
numberVisible: {
|
|
78
78
|
type: Number,
|
|
79
|
-
converter:
|
|
79
|
+
converter: i(void 0),
|
|
80
80
|
attribute: "number-visible"
|
|
81
81
|
},
|
|
82
82
|
disabled: {
|
|
@@ -96,21 +96,21 @@ var g = class extends o {
|
|
|
96
96
|
},
|
|
97
97
|
errorText: {
|
|
98
98
|
type: String,
|
|
99
|
-
converter:
|
|
99
|
+
converter: o(void 0),
|
|
100
100
|
attribute: "error-text"
|
|
101
101
|
},
|
|
102
102
|
name: {
|
|
103
103
|
type: String,
|
|
104
|
-
converter:
|
|
104
|
+
converter: o(void 0)
|
|
105
105
|
},
|
|
106
106
|
inputLabel: {
|
|
107
107
|
type: String,
|
|
108
|
-
converter:
|
|
108
|
+
converter: o(void 0),
|
|
109
109
|
attribute: "input-label"
|
|
110
110
|
},
|
|
111
111
|
value: {
|
|
112
112
|
type: String,
|
|
113
|
-
converter:
|
|
113
|
+
converter: o(null)
|
|
114
114
|
},
|
|
115
115
|
values: { attribute: !1 },
|
|
116
116
|
options: { attribute: !1 },
|
|
@@ -119,7 +119,7 @@ var g = class extends o {
|
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
#e = new t(this);
|
|
122
|
-
#t = new e(this,
|
|
122
|
+
#t = new e(this, m, {
|
|
123
123
|
idPrefix: "mp-select",
|
|
124
124
|
inputs: () => ({
|
|
125
125
|
size: this.size,
|
|
@@ -150,17 +150,19 @@ var g = class extends o {
|
|
|
150
150
|
willUpdate() {
|
|
151
151
|
this.#e.capture();
|
|
152
152
|
}
|
|
153
|
+
#n = null;
|
|
153
154
|
render() {
|
|
154
|
-
return
|
|
155
|
+
return _({
|
|
155
156
|
...this.#t.props(),
|
|
156
157
|
slots: {
|
|
157
158
|
...this.#e.slots,
|
|
158
159
|
...this.optionRenderer ? { option: this.optionRenderer } : {},
|
|
159
160
|
...this.defaultRenderer ? { default: this.defaultRenderer() } : {}
|
|
160
|
-
}
|
|
161
|
+
},
|
|
162
|
+
hostAttrs: this.#n ??= s(this)
|
|
161
163
|
});
|
|
162
164
|
}
|
|
163
165
|
};
|
|
164
|
-
typeof document < "u" && document.head && (
|
|
166
|
+
typeof document < "u" && document.head && (d(p.key, p.css, { order: p.order }), d("select", h)), customElements.get("mp-select") || customElements.define("mp-select", v);
|
|
165
167
|
//#endregion
|
|
166
|
-
export {
|
|
168
|
+
export { v as MpSelect };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TemplateResult } from 'lit';
|
|
2
|
+
import { HostAttrs } from '@mintplayer/web-components/machine';
|
|
2
3
|
import { SelectOption, SelectView } from '@mintplayer/ui-core/select';
|
|
3
4
|
export type SelectOptionSlotArgs = {
|
|
4
5
|
option: SelectOption;
|
|
@@ -12,5 +13,7 @@ export type SelectTemplateProps = {
|
|
|
12
13
|
}) => unknown);
|
|
13
14
|
default?: unknown;
|
|
14
15
|
};
|
|
16
|
+
/** The element's forwarded aria-* / id / tabindex (takeHostAttrs), for its mp-attrs node. */
|
|
17
|
+
hostAttrs?: HostAttrs | null;
|
|
15
18
|
};
|
|
16
|
-
export declare function selectTemplate({ view, slots }: SelectTemplateProps): TemplateResult;
|
|
19
|
+
export declare function selectTemplate({ view, slots, hostAttrs }: SelectTemplateProps): TemplateResult;
|