@mintplayer/web-components 3.3.0 → 3.5.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 +10 -11
- package/a11y/index.mjs +248 -1
- package/a11y/src/index.d.ts +0 -2
- package/accordion/index.mjs +116 -142
- 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 -17
- 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/carousel/index.mjs +10 -9
- 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-DabWV3-q.mjs → datatable-wcZQMo-4.mjs} +16 -14
- package/chunks/{datetime-picker-BT6lb4qw.mjs → datetime-picker-BQGY51b5.mjs} +8 -7
- 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 +18688 -10640
- package/datatable/index.mjs +1 -1
- package/datepicker/index.mjs +8 -7
- package/datetime-picker/index.mjs +1 -1
- package/dropdown/index.d.ts +1 -0
- package/dropdown/index.mjs +294 -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 +22 -21
- 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 -32
- 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 +166 -50
- package/machine/src/body-teleport-directive.d.ts +3 -0
- package/machine/src/content-query.d.ts +4 -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 +4 -0
- package/machine/src/instance-style-directive.d.ts +17 -0
- package/machine/src/mark-links.d.ts +6 -0
- 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.d.ts +1 -0
- package/nav/index.mjs +126 -0
- package/nav/src/generated/index.d.ts +2 -0
- package/nav/src/generated/mp-nav-item.generated.d.ts +20 -0
- package/nav/src/generated/mp-nav.generated.d.ts +63 -0
- package/nav/src/generated/nav-item.view.generated.d.ts +10 -0
- package/nav/src/generated/nav.view.generated.d.ts +10 -0
- package/nav/src/index.d.ts +1 -0
- package/nav/src/nav-item.lit.d.ts +1 -0
- package/navbar/index.mjs +47 -104
- 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 -0
- 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 -28
- package/otp-input/src/generated/otp-input.view.generated.d.ts +4 -1
- package/package.json +131 -13
- 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 -47
- 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 +156 -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 +27 -25
- 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 +34 -27
- 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 -45
- 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/signature-pad/index.mjs +8 -7
- package/spinner/index.d.ts +1 -0
- package/spinner/index.mjs +63 -0
- package/spinner/src/generated/index.d.ts +1 -0
- package/spinner/src/generated/mp-spinner.generated.d.ts +51 -0
- package/spinner/src/generated/spinner.view.generated.d.ts +9 -0
- package/spinner/src/index.d.ts +1 -0
- 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/timepicker/index.mjs +13 -12
- 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 -218
- 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 -38
- 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 -42
- 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/theming/bs-theme-preboot.js +0 -1
- package/theming/color-mode.css +0 -37
- 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/file-manager/index.mjs
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { CoreController as e, booleanAttribute as t, props as n, stringAttribute as r } from "../machine/index.mjs";
|
|
2
|
-
import "../chunks/datatable-
|
|
2
|
+
import "../chunks/datatable-wcZQMo-4.mjs";
|
|
3
3
|
import "../chunks/splitter-EuJmtwjW.mjs";
|
|
4
|
-
import "../chunks/treeview-
|
|
4
|
+
import "../chunks/treeview-CKndcfiq.mjs";
|
|
5
5
|
import { LitElement as i, html as a, nothing as o } from "lit";
|
|
6
6
|
import { installLightStyles as s } from "@mintplayer/ui-core/scoped-styles";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { bootstrapBreadcrumb as c } from "@mintplayer/ui-core/bootstrap/breadcrumb";
|
|
8
|
+
import { repeat as l } from "lit/directives/repeat.js";
|
|
9
|
+
import { styleMap as u } from "lit/directives/style-map.js";
|
|
10
|
+
import { unsafeHTML as d } from "lit/directives/unsafe-html.js";
|
|
11
|
+
import { DEFAULT_FILE_MANAGER_MESSAGES as f, fileManagerCore as p, fileManagerScopedStyles as m, mergeMessages as h } from "@mintplayer/ui-core/file-manager";
|
|
11
12
|
//#region libs/mintplayer-web-components/file-manager/src/generated/file-manager.view.generated.ts
|
|
12
|
-
function
|
|
13
|
+
function g({ view: e, slots: t = {} }) {
|
|
13
14
|
return a`
|
|
14
15
|
<div data-mps="file-manager" ${n(e.live)}>${e.announcement}</div>
|
|
15
16
|
<div data-mps="file-manager" ${n(e.alert)}>${e.alertText}</div>
|
|
16
17
|
<div data-mps="file-manager" ${n(e.toolbar)}>
|
|
17
|
-
${
|
|
18
|
+
${l(e.actions, (e) => e.key, (t) => a`
|
|
18
19
|
<button data-mps="file-manager" ${n(t.bag)}>
|
|
19
20
|
<span data-mps="file-manager" ${n(e.glyph)}>${t.glyph}</span>
|
|
20
21
|
${t.label}
|
|
@@ -24,15 +25,15 @@ function h({ view: e, slots: t = {} }) {
|
|
|
24
25
|
<input data-mps="file-manager" ${n(e.search)}>
|
|
25
26
|
<div data-mps="file-manager" ${n(e.viewToggle)}>
|
|
26
27
|
<button data-mps="file-manager" ${n(e.listToggle)}>
|
|
27
|
-
<span data-mps="file-manager" ${n(e.toggleIcon)}>${
|
|
28
|
+
<span data-mps="file-manager" ${n(e.toggleIcon)}>${d(e.listIcon)}</span>
|
|
28
29
|
</button>
|
|
29
30
|
<button data-mps="file-manager" ${n(e.iconsToggle)}>
|
|
30
|
-
<span data-mps="file-manager" ${n(e.toggleIcon)}>${
|
|
31
|
+
<span data-mps="file-manager" ${n(e.toggleIcon)}>${d(e.gridIcon)}</span>
|
|
31
32
|
</button>
|
|
32
33
|
</div>
|
|
33
34
|
</div>
|
|
34
35
|
<nav data-mps="file-manager" ${n(e.breadcrumb)}>
|
|
35
|
-
${
|
|
36
|
+
${l(e.crumbs, (e) => e.key, (t) => a`
|
|
36
37
|
<span data-mps="file-manager" ${n(e.crumbItem)}>
|
|
37
38
|
${t.separator ? a`
|
|
38
39
|
<span data-mps="file-manager" ${n(e.crumbSeparator)}>›</span>
|
|
@@ -55,7 +56,7 @@ function h({ view: e, slots: t = {} }) {
|
|
|
55
56
|
<mp-datatable data-mp-owned .columns=${e.columns} .data=${e.data} .rowKey=${e.rowKey} .selectionMode=${e.selectionMode} .autoSort=${!1} .cutIds=${e.cutIds} .virtualScroll=${!0} .itemSize=${40} .fill=${!0} .emptyMessage=${e.emptyMessage} .inputLabel=${e.listLabel} .selectedIds=${e.selection.value} @selectedidschange=${(t) => t.target === t.currentTarget && e.selection.set(t.detail)} .sortColumns=${e.sort.value} @sortcolumnschange=${(t) => t.target === t.currentTarget && e.sort.set(t.detail)} @rowdblclick=${(t) => t.target === t.currentTarget && e.onRowDblClick(t.detail)} @rowcontextmenu=${(t) => t.target === t.currentTarget && e.onRowContextMenu(t.detail)} .cellRenderer=${({ column: t, rowIndex: r }) => a`
|
|
56
57
|
${t.name === "name" && e.rows[r] ? a`
|
|
57
58
|
<span data-mps="file-manager" ${n(e.rows[r].cell)}>
|
|
58
|
-
<span data-mps="file-manager" ${n(e.rowIcon)}>${
|
|
59
|
+
<span data-mps="file-manager" ${n(e.rowIcon)}>${d(e.rows[r].icon)}</span>
|
|
59
60
|
${e.rows[r].renameInput ? a`
|
|
60
61
|
<input data-mps="file-manager" ${n(e.rows[r].renameInput)}>
|
|
61
62
|
` : a`
|
|
@@ -68,9 +69,9 @@ function h({ view: e, slots: t = {} }) {
|
|
|
68
69
|
`}></mp-datatable>
|
|
69
70
|
` : a`
|
|
70
71
|
<div data-mps="file-manager" ${n(e.grid)}>
|
|
71
|
-
${
|
|
72
|
+
${l(e.rows, (e) => e.id, (t) => a`
|
|
72
73
|
<button data-mps="file-manager" ${n(t.card)}>
|
|
73
|
-
<span data-mps="file-manager" ${n(e.cardIcon)}>${
|
|
74
|
+
<span data-mps="file-manager" ${n(e.cardIcon)}>${d(t.icon)}</span>
|
|
74
75
|
<span data-mps="file-manager" ${n(e.cardName)}>${t.name}</span>
|
|
75
76
|
</button>
|
|
76
77
|
`)}
|
|
@@ -83,8 +84,8 @@ function h({ view: e, slots: t = {} }) {
|
|
|
83
84
|
`}></mp-splitter>
|
|
84
85
|
</div>
|
|
85
86
|
${e.menu ? a`
|
|
86
|
-
<ul data-mps="file-manager" ${n(e.menu.list)} style=${
|
|
87
|
-
${
|
|
87
|
+
<ul data-mps="file-manager" ${n(e.menu.list)} style=${u(e.menu.style)}>
|
|
88
|
+
${l(e.menu.items, (e) => e.key, (e) => a`
|
|
88
89
|
<li data-mps="file-manager" ${n(e.li)}>
|
|
89
90
|
${e.button ? a`
|
|
90
91
|
<button data-mps="file-manager" ${n(e.button)}>${e.label}</button>
|
|
@@ -97,7 +98,7 @@ function h({ view: e, slots: t = {} }) {
|
|
|
97
98
|
}
|
|
98
99
|
//#endregion
|
|
99
100
|
//#region libs/mintplayer-web-components/file-manager/src/generated/mp-file-manager.generated.ts
|
|
100
|
-
var
|
|
101
|
+
var _ = class extends i {
|
|
101
102
|
static {
|
|
102
103
|
this.properties = {
|
|
103
104
|
nodes: { attribute: !1 },
|
|
@@ -146,7 +147,7 @@ var g = class extends i {
|
|
|
146
147
|
pending: { attribute: !1 }
|
|
147
148
|
};
|
|
148
149
|
}
|
|
149
|
-
#e = new e(this,
|
|
150
|
+
#e = new e(this, p, {
|
|
150
151
|
idPrefix: "mp-file-manager",
|
|
151
152
|
inputs: () => ({
|
|
152
153
|
nodes: this.nodes,
|
|
@@ -185,7 +186,7 @@ var g = class extends i {
|
|
|
185
186
|
return this;
|
|
186
187
|
}
|
|
187
188
|
render() {
|
|
188
|
-
return
|
|
189
|
+
return g({ ...this.#e.props() });
|
|
189
190
|
}
|
|
190
191
|
markPending(...e) {
|
|
191
192
|
return this.#e.call("markPending", e);
|
|
@@ -203,6 +204,6 @@ var g = class extends i {
|
|
|
203
204
|
return this.#e.call("clearUpload", e);
|
|
204
205
|
}
|
|
205
206
|
};
|
|
206
|
-
typeof document < "u" && document.head && s("file-manager",
|
|
207
|
+
typeof document < "u" && document.head && (s(c.key, c.css, { order: c.order }), s("file-manager", m)), customElements.get("mp-file-manager") || customElements.define("mp-file-manager", _);
|
|
207
208
|
//#endregion
|
|
208
|
-
export {
|
|
209
|
+
export { f as DEFAULT_FILE_MANAGER_MESSAGES, _ as MpFileManager, h as mergeMessages };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { CoreController as e, LightChildren as t, booleanAttribute as n, forwardHostAttrs as r, props as i, stringAttribute as a, takeHostAttrs as o } from "../machine/index.mjs";
|
|
2
|
+
import { LitElement as s, html 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 { styleMap as d } from "lit/directives/style-map.js";
|
|
6
|
+
import { fileUploadCore as f, fileUploadScopedStyles as p, formatBytes as m } from "@mintplayer/ui-core/file-upload";
|
|
7
|
+
import { bootstrapProgress as h } from "@mintplayer/ui-core/bootstrap/progress";
|
|
8
|
+
import { bootstrapListGroup as g } from "@mintplayer/ui-core/bootstrap/list-group";
|
|
9
|
+
//#region libs/mintplayer-web-components/file-upload/src/generated/file-upload.view.generated.ts
|
|
10
|
+
function _(e, t) {
|
|
11
|
+
return typeof e == "function" ? e(t) : e;
|
|
12
|
+
}
|
|
13
|
+
function v({ view: e, slots: t = {}, hostAttrs: n }) {
|
|
14
|
+
return c`
|
|
15
|
+
<div data-mps="file-upload" ${i(r(e.zone, n))}>
|
|
16
|
+
<input data-mps="file-upload" ${i(e.input)}>
|
|
17
|
+
<span data-mps="file-upload" ${i(e.caption)}>${e.dropFilesCaption}</span>
|
|
18
|
+
<label data-mps="file-upload" ${i(e.browse)}>${e.browseFilesCaption}</label>
|
|
19
|
+
</div>
|
|
20
|
+
<ul data-mps="file-upload" ${i(e.list)}>
|
|
21
|
+
${u(e.rows, (e) => e.key, (e) => c`
|
|
22
|
+
<li data-mps="file-upload" ${i(e.item)}>
|
|
23
|
+
${t.fileTemplate === void 0 ? c`
|
|
24
|
+
<div data-mps="file-upload" class="file-upload-row d-flex flex-row">
|
|
25
|
+
<div data-mps="file-upload" class="file-upload-icon" aria-hidden="true"></div>
|
|
26
|
+
<div data-mps="file-upload" class="flex-grow-1 text-start px-2">
|
|
27
|
+
<span data-mps="file-upload" class="d-block text-truncate text-secondary">${e.name}</span>
|
|
28
|
+
<span data-mps="file-upload" class="d-block text-body-secondary mb-0">${e.size}</span>
|
|
29
|
+
<div data-mps="file-upload" ${i(e.progress)}>
|
|
30
|
+
<div data-mps="file-upload" ${i(e.bar)} style=${d(e.barStyle)}></div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
` : _(t.fileTemplate, { upload: e.upload })}
|
|
35
|
+
</li>
|
|
36
|
+
`)}
|
|
37
|
+
</ul>
|
|
38
|
+
`;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region libs/mintplayer-web-components/file-upload/src/generated/mp-file-upload.generated.ts
|
|
42
|
+
var y = class extends s {
|
|
43
|
+
static {
|
|
44
|
+
this.properties = {
|
|
45
|
+
files: { attribute: !1 },
|
|
46
|
+
name: {
|
|
47
|
+
type: String,
|
|
48
|
+
converter: a(null)
|
|
49
|
+
},
|
|
50
|
+
accept: {
|
|
51
|
+
type: String,
|
|
52
|
+
converter: a(null)
|
|
53
|
+
},
|
|
54
|
+
multiple: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
converter: n(!0)
|
|
57
|
+
},
|
|
58
|
+
disabled: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
converter: n(!1),
|
|
61
|
+
reflect: !0
|
|
62
|
+
},
|
|
63
|
+
dropFilesCaption: {
|
|
64
|
+
type: String,
|
|
65
|
+
converter: a("Drop your files here"),
|
|
66
|
+
attribute: "drop-files-caption"
|
|
67
|
+
},
|
|
68
|
+
browseFilesCaption: {
|
|
69
|
+
type: String,
|
|
70
|
+
converter: a("Browse for files"),
|
|
71
|
+
attribute: "browse-files-caption"
|
|
72
|
+
},
|
|
73
|
+
label: {
|
|
74
|
+
type: String,
|
|
75
|
+
converter: a("File upload drop zone")
|
|
76
|
+
},
|
|
77
|
+
inputLabel: {
|
|
78
|
+
type: String,
|
|
79
|
+
converter: a("Choose files to upload"),
|
|
80
|
+
attribute: "input-label"
|
|
81
|
+
},
|
|
82
|
+
fileAddedAnnouncement: { attribute: !1 },
|
|
83
|
+
filesAddedAnnouncement: { attribute: !1 },
|
|
84
|
+
progressLabel: { attribute: !1 },
|
|
85
|
+
formatSize: { attribute: !1 },
|
|
86
|
+
fileTemplateRenderer: { attribute: !1 }
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
#e = new t(this);
|
|
90
|
+
#t = new e(this, f, {
|
|
91
|
+
idPrefix: "mp-file-upload",
|
|
92
|
+
inputs: () => ({
|
|
93
|
+
files: this.files,
|
|
94
|
+
name: this.name,
|
|
95
|
+
accept: this.accept,
|
|
96
|
+
multiple: this.multiple,
|
|
97
|
+
disabled: this.disabled,
|
|
98
|
+
dropFilesCaption: this.dropFilesCaption,
|
|
99
|
+
browseFilesCaption: this.browseFilesCaption,
|
|
100
|
+
label: this.label,
|
|
101
|
+
inputLabel: this.inputLabel,
|
|
102
|
+
fileAddedAnnouncement: this.fileAddedAnnouncement,
|
|
103
|
+
filesAddedAnnouncement: this.filesAddedAnnouncement,
|
|
104
|
+
progressLabel: this.progressLabel,
|
|
105
|
+
formatSize: this.formatSize
|
|
106
|
+
}),
|
|
107
|
+
hostBag: (e) => ({
|
|
108
|
+
...e.view.root,
|
|
109
|
+
"data-mps": "file-upload"
|
|
110
|
+
}),
|
|
111
|
+
models: ["files"]
|
|
112
|
+
});
|
|
113
|
+
constructor() {
|
|
114
|
+
super(), this.files = [], this.name = null, this.accept = null, this.multiple = !0, this.disabled = !1, this.dropFilesCaption = "Drop your files here", this.browseFilesCaption = "Browse for files", this.label = "File upload drop zone", this.inputLabel = "Choose files to upload", this.fileAddedAnnouncement = (e) => `Added ${e}`, this.filesAddedAnnouncement = (e) => `Added ${e} files`, this.progressLabel = (e) => `Upload progress for ${e}`, this.formatSize = null;
|
|
115
|
+
}
|
|
116
|
+
createRenderRoot() {
|
|
117
|
+
return this;
|
|
118
|
+
}
|
|
119
|
+
willUpdate() {
|
|
120
|
+
this.#e.capture();
|
|
121
|
+
}
|
|
122
|
+
#n = null;
|
|
123
|
+
render() {
|
|
124
|
+
return v({
|
|
125
|
+
...this.#t.props(),
|
|
126
|
+
slots: {
|
|
127
|
+
...this.#e.slots,
|
|
128
|
+
...this.fileTemplateRenderer ? { fileTemplate: this.fileTemplateRenderer } : {}
|
|
129
|
+
},
|
|
130
|
+
hostAttrs: this.#n ??= o(this)
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
typeof document < "u" && document.head && (l(h.key, h.css, { order: h.order }), l(g.key, g.css, { order: g.order }), l("file-upload", p)), customElements.get("mp-file-upload") || customElements.define("mp-file-upload", y);
|
|
135
|
+
//#endregion
|
|
136
|
+
export { y as MpFileUpload, m as formatBytes };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { HostAttrs } from '@mintplayer/web-components/machine';
|
|
3
|
+
import { FileUpload, FileUploadView } from '@mintplayer/ui-core/file-upload';
|
|
4
|
+
export type FileUploadFileTemplateSlotArgs = {
|
|
5
|
+
upload: FileUpload;
|
|
6
|
+
};
|
|
7
|
+
export type FileUploadTemplateProps = {
|
|
8
|
+
view: FileUploadView;
|
|
9
|
+
} & {
|
|
10
|
+
slots?: {
|
|
11
|
+
fileTemplate?: unknown | ((args: {
|
|
12
|
+
upload: FileUpload;
|
|
13
|
+
}) => unknown);
|
|
14
|
+
};
|
|
15
|
+
/** The element's forwarded aria-* / id / tabindex (takeHostAttrs), for its mp-attrs node. */
|
|
16
|
+
hostAttrs?: HostAttrs | null;
|
|
17
|
+
};
|
|
18
|
+
export declare function fileUploadTemplate({ view, slots, hostAttrs }: FileUploadTemplateProps): TemplateResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MpFileUpload } from './mp-file-upload.generated';
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { FileUploadInputs } from '@mintplayer/ui-core/file-upload';
|
|
3
|
+
import { FileUploadFileTemplateSlotArgs } from './file-upload.view.generated';
|
|
4
|
+
/**
|
|
5
|
+
* A file drop zone over a native file input, with the list of files added. Drop files on it, click
|
|
6
|
+
* it or use the browse button; each batch is added to the two-way `files` list, emitted as
|
|
7
|
+
* `filesDropped` and announced. Rows show the name, size and a progress bar the consumer updates;
|
|
8
|
+
* the `fileTemplate` slot replaces a row. With `name` the input submits its files with a form, no
|
|
9
|
+
* JavaScript needed.
|
|
10
|
+
*/
|
|
11
|
+
export declare class MpFileUpload extends LitElement {
|
|
12
|
+
#private;
|
|
13
|
+
static properties: {
|
|
14
|
+
files: {
|
|
15
|
+
attribute: boolean;
|
|
16
|
+
};
|
|
17
|
+
name: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
converter: {
|
|
20
|
+
fromAttribute: (value: string | null) => string | null;
|
|
21
|
+
toAttribute: (value: unknown) => string | null;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
accept: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
converter: {
|
|
27
|
+
fromAttribute: (value: string | null) => string | null;
|
|
28
|
+
toAttribute: (value: unknown) => string | null;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
multiple: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
converter: {
|
|
34
|
+
fromAttribute: (value: string | null) => boolean;
|
|
35
|
+
toAttribute: (value: unknown) => string | null;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
disabled: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
converter: {
|
|
41
|
+
fromAttribute: (value: string | null) => boolean;
|
|
42
|
+
toAttribute: (value: unknown) => string | null;
|
|
43
|
+
};
|
|
44
|
+
reflect: boolean;
|
|
45
|
+
};
|
|
46
|
+
dropFilesCaption: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
converter: {
|
|
49
|
+
fromAttribute: (value: string | null) => string;
|
|
50
|
+
toAttribute: (value: unknown) => string | null;
|
|
51
|
+
};
|
|
52
|
+
attribute: string;
|
|
53
|
+
};
|
|
54
|
+
browseFilesCaption: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
converter: {
|
|
57
|
+
fromAttribute: (value: string | null) => string;
|
|
58
|
+
toAttribute: (value: unknown) => string | null;
|
|
59
|
+
};
|
|
60
|
+
attribute: string;
|
|
61
|
+
};
|
|
62
|
+
label: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
converter: {
|
|
65
|
+
fromAttribute: (value: string | null) => string;
|
|
66
|
+
toAttribute: (value: unknown) => string | null;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
inputLabel: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
converter: {
|
|
72
|
+
fromAttribute: (value: string | null) => string;
|
|
73
|
+
toAttribute: (value: unknown) => string | null;
|
|
74
|
+
};
|
|
75
|
+
attribute: string;
|
|
76
|
+
};
|
|
77
|
+
fileAddedAnnouncement: {
|
|
78
|
+
attribute: boolean;
|
|
79
|
+
};
|
|
80
|
+
filesAddedAnnouncement: {
|
|
81
|
+
attribute: boolean;
|
|
82
|
+
};
|
|
83
|
+
progressLabel: {
|
|
84
|
+
attribute: boolean;
|
|
85
|
+
};
|
|
86
|
+
formatSize: {
|
|
87
|
+
attribute: boolean;
|
|
88
|
+
};
|
|
89
|
+
fileTemplateRenderer: {
|
|
90
|
+
attribute: boolean;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
files: FileUploadInputs['files'];
|
|
94
|
+
name: FileUploadInputs['name'];
|
|
95
|
+
accept: FileUploadInputs['accept'];
|
|
96
|
+
multiple: FileUploadInputs['multiple'];
|
|
97
|
+
disabled: FileUploadInputs['disabled'];
|
|
98
|
+
dropFilesCaption: FileUploadInputs['dropFilesCaption'];
|
|
99
|
+
browseFilesCaption: FileUploadInputs['browseFilesCaption'];
|
|
100
|
+
label: FileUploadInputs['label'];
|
|
101
|
+
inputLabel: FileUploadInputs['inputLabel'];
|
|
102
|
+
fileAddedAnnouncement: FileUploadInputs['fileAddedAnnouncement'];
|
|
103
|
+
filesAddedAnnouncement: FileUploadInputs['filesAddedAnnouncement'];
|
|
104
|
+
progressLabel: FileUploadInputs['progressLabel'];
|
|
105
|
+
formatSize: FileUploadInputs['formatSize'];
|
|
106
|
+
/** Renders the fileTemplate slot, called per use; wins over slot="fileTemplate" children. */
|
|
107
|
+
fileTemplateRenderer: ((args: FileUploadFileTemplateSlotArgs) => unknown) | null | undefined;
|
|
108
|
+
constructor();
|
|
109
|
+
protected createRenderRoot(): HTMLElement;
|
|
110
|
+
protected willUpdate(): void;
|
|
111
|
+
render(): import('lit-html').TemplateResult;
|
|
112
|
+
}
|
|
113
|
+
declare global {
|
|
114
|
+
interface HTMLElementTagNameMap {
|
|
115
|
+
'mp-file-upload': MpFileUpload;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CoreController as e, LightChildren as t } from "../machine/index.mjs";
|
|
2
|
+
import { LitElement as n, html as r, nothing as i } from "lit";
|
|
3
|
+
import { installLightStyles as a } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
+
import { bootstrapForms as o } from "@mintplayer/ui-core/bootstrap/forms";
|
|
5
|
+
import { floatingLabelCore as s, floatingLabelsScopedStyles as c } from "@mintplayer/ui-core/floating-labels";
|
|
6
|
+
//#region libs/mintplayer-web-components/floating-labels/src/generated/floating-label.view.generated.ts
|
|
7
|
+
function l({ root: e, slots: t = {} }) {
|
|
8
|
+
return r`
|
|
9
|
+
${t.default === void 0 ? i : t.default}
|
|
10
|
+
`;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region libs/mintplayer-web-components/floating-labels/src/generated/mp-floating-label.generated.ts
|
|
14
|
+
var u = class extends n {
|
|
15
|
+
static {
|
|
16
|
+
this.properties = { defaultRenderer: { attribute: !1 } };
|
|
17
|
+
}
|
|
18
|
+
#e = new t(this);
|
|
19
|
+
#t = new e(this, s, {
|
|
20
|
+
idPrefix: "mp-floating-label",
|
|
21
|
+
inputs: () => ({}),
|
|
22
|
+
hostBag: (e) => ({
|
|
23
|
+
...e.root,
|
|
24
|
+
"data-mps": "floating-labels"
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
createRenderRoot() {
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
willUpdate() {
|
|
31
|
+
this.#e.capture();
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
return l({
|
|
35
|
+
...this.#t.props(),
|
|
36
|
+
slots: {
|
|
37
|
+
...this.#e.slots,
|
|
38
|
+
...this.defaultRenderer ? { default: this.defaultRenderer() } : {}
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
typeof document < "u" && document.head && (a(o.key, o.css, { order: o.order }), a("floating-labels", c)), customElements.get("mp-floating-label") || customElements.define("mp-floating-label", u);
|
|
44
|
+
//#endregion
|
|
45
|
+
export { u as MpFloatingLabel };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { CoreBag } from '@mintplayer/ui-core/component';
|
|
3
|
+
export type FloatingLabelTemplateProps = {
|
|
4
|
+
root: CoreBag;
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {
|
|
7
|
+
default?: unknown;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function floatingLabelTemplate({ root, slots }: FloatingLabelTemplateProps): TemplateResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MpFloatingLabel } from './mp-floating-label.generated';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/** Bootstrap's `.form-floating` around a control and then its `<label>`; a label without `for` is associated with the control. */
|
|
3
|
+
export declare class MpFloatingLabel extends LitElement {
|
|
4
|
+
#private;
|
|
5
|
+
static properties: {
|
|
6
|
+
defaultRenderer: {
|
|
7
|
+
attribute: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
/** Renders the default slot; wins over slot="default" children. */
|
|
11
|
+
defaultRenderer: (() => unknown) | null | undefined;
|
|
12
|
+
protected createRenderRoot(): HTMLElement;
|
|
13
|
+
protected willUpdate(): void;
|
|
14
|
+
render(): import('lit-html').TemplateResult;
|
|
15
|
+
}
|
|
16
|
+
declare global {
|
|
17
|
+
interface HTMLElementTagNameMap {
|
|
18
|
+
'mp-floating-label': MpFloatingLabel;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generated';
|
package/form/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
package/form/index.mjs
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { CoreController as e, LightChildren as t, coreDirective as n, forwardHostAttrs 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 { bootstrapForms as d } from "@mintplayer/ui-core/bootstrap/forms";
|
|
5
|
+
import { colFormLabelCore as f, formControlCore as p, formCore as m, formScopedStyles as h } from "@mintplayer/ui-core/form";
|
|
6
|
+
//#region libs/mintplayer-web-components/form/src/generated/form.view.generated.ts
|
|
7
|
+
function g({ view: e, slots: t = {}, hostAttrs: n }) {
|
|
8
|
+
return c`
|
|
9
|
+
<form data-mps="form" ${i(r(e.form, n))} action=${e.action ?? l}>
|
|
10
|
+
${t.default === void 0 ? l : t.default}
|
|
11
|
+
</form>
|
|
12
|
+
`;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region libs/mintplayer-web-components/form/src/generated/mp-form.generated.ts
|
|
16
|
+
var _ = class extends s {
|
|
17
|
+
static {
|
|
18
|
+
this.properties = {
|
|
19
|
+
action: {
|
|
20
|
+
type: String,
|
|
21
|
+
converter: a(null)
|
|
22
|
+
},
|
|
23
|
+
method: {
|
|
24
|
+
type: String,
|
|
25
|
+
converter: a(null, ["GET", "POST"])
|
|
26
|
+
},
|
|
27
|
+
defaultRenderer: { attribute: !1 }
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
#e = new t(this);
|
|
31
|
+
#t = new e(this, m, {
|
|
32
|
+
idPrefix: "mp-form",
|
|
33
|
+
inputs: () => ({
|
|
34
|
+
action: this.action,
|
|
35
|
+
method: this.method
|
|
36
|
+
}),
|
|
37
|
+
hostBag: (e) => ({
|
|
38
|
+
...e.view.root,
|
|
39
|
+
"data-mps": "form"
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
constructor() {
|
|
43
|
+
super(), this.action = null, this.method = null;
|
|
44
|
+
}
|
|
45
|
+
createRenderRoot() {
|
|
46
|
+
return this;
|
|
47
|
+
}
|
|
48
|
+
willUpdate() {
|
|
49
|
+
this.#e.capture();
|
|
50
|
+
}
|
|
51
|
+
#n = null;
|
|
52
|
+
render() {
|
|
53
|
+
return g({
|
|
54
|
+
...this.#t.props(),
|
|
55
|
+
slots: {
|
|
56
|
+
...this.#e.slots,
|
|
57
|
+
...this.defaultRenderer ? { default: this.defaultRenderer() } : {}
|
|
58
|
+
},
|
|
59
|
+
hostAttrs: this.#n ??= o(this)
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region libs/mintplayer-web-components/form/src/generated/form-control.directive.generated.ts
|
|
65
|
+
typeof document < "u" && document.head && (u(d.key, d.css, { order: d.order }), u("form", h)), customElements.get("mp-form") || customElements.define("mp-form", _), typeof document < "u" && document.head && (u(d.key, d.css, { order: d.order }), u("form", h));
|
|
66
|
+
var v = n(p, {
|
|
67
|
+
idPrefix: "mp-form-control",
|
|
68
|
+
bag: (e) => ({
|
|
69
|
+
...e,
|
|
70
|
+
"data-mps": "form"
|
|
71
|
+
})
|
|
72
|
+
});
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region libs/mintplayer-web-components/form/src/generated/col-form-label.directive.generated.ts
|
|
75
|
+
typeof document < "u" && document.head && (u(d.key, d.css, { order: d.order }), u("form", h));
|
|
76
|
+
var y = n(f, {
|
|
77
|
+
idPrefix: "mp-col-form-label",
|
|
78
|
+
bag: (e) => ({
|
|
79
|
+
...e,
|
|
80
|
+
"data-mps": "form"
|
|
81
|
+
})
|
|
82
|
+
});
|
|
83
|
+
//#endregion
|
|
84
|
+
export { _ as MpForm, y as bsColFormLabel, v as bsFormControl };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/** Bootstrap's `.col-form-label` on a label that lines up with a control in a grid row. */
|
|
2
|
+
export declare const bsColFormLabel: (inputs?: Partial<Record<never, never>> | undefined, content?: import('@mintplayer/web-components/machine').OverlayContent) => import('lit-html/directive.js').DirectiveResult;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { HostAttrs } from '@mintplayer/web-components/machine';
|
|
3
|
+
import { FormView } from '@mintplayer/ui-core/form';
|
|
4
|
+
export type FormTemplateProps = {
|
|
5
|
+
view: FormView;
|
|
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 formTemplate({ view, slots, hostAttrs }: FormTemplateProps): TemplateResult;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { FormInputs } from '@mintplayer/ui-core/form';
|
|
3
|
+
/**
|
|
4
|
+
* A real `<form>` that anchors Bootstrap's forms part for everything inside it. `submitted` reports a submit;
|
|
5
|
+
* without an `action` the native submit is cancelled.
|
|
6
|
+
*/
|
|
7
|
+
export declare class MpForm extends LitElement {
|
|
8
|
+
#private;
|
|
9
|
+
static properties: {
|
|
10
|
+
action: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
converter: {
|
|
13
|
+
fromAttribute: (value: string | null) => string | null;
|
|
14
|
+
toAttribute: (value: unknown) => string | null;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
method: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
converter: {
|
|
20
|
+
fromAttribute: (value: string | null) => string | null;
|
|
21
|
+
toAttribute: (value: unknown) => string | null;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
defaultRenderer: {
|
|
25
|
+
attribute: boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
action: FormInputs['action'];
|
|
29
|
+
method: FormInputs['method'];
|
|
30
|
+
/** Renders the default slot; wins over slot="default" children. */
|
|
31
|
+
defaultRenderer: (() => unknown) | null | undefined;
|
|
32
|
+
constructor();
|
|
33
|
+
protected createRenderRoot(): HTMLElement;
|
|
34
|
+
protected willUpdate(): void;
|
|
35
|
+
render(): import('lit-html').TemplateResult;
|
|
36
|
+
}
|
|
37
|
+
declare global {
|
|
38
|
+
interface HTMLElementTagNameMap {
|
|
39
|
+
'mp-form': MpForm;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generated';
|
package/grid/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|