@mintplayer/web-components 2.21.0 → 3.1.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/chunks/{datatable-x_OgDL1V.mjs → datatable-FVQ8MQyR.mjs} +25 -9
- package/chunks/{pagination-Bcz1TwlS.mjs → pagination-DgDp3v3u.mjs} +1 -1
- package/custom-elements.json +7303 -8214
- package/datatable/index.mjs +1 -1
- package/datatable/src/components/mp-datatable.d.ts +20 -0
- package/file-manager/index.mjs +1 -1
- package/package.json +2 -2
- package/pagination/index.mjs +1 -1
- package/tile-manager/index.mjs +150 -731
- package/tile-manager/src/components/index.d.ts +1 -2
- package/tile-manager/src/components/mp-tile-manager.d.ts +107 -0
- package/tile-manager/src/index.d.ts +2 -3
- package/tile-manager/src/components/mint-tile-manager.element.d.ts +0 -212
- package/tile-manager/src/components/mint-tile-manager.element.template.d.ts +0 -2
- package/tile-manager/src/types/grid-rect.d.ts +0 -12
- package/tile-manager/src/types/index.d.ts +0 -3
- package/tile-manager/src/types/tile-layout-snapshot.d.ts +0 -15
- package/tile-manager/src/types/tile-position.d.ts +0 -10
- package/tile-manager/src/utils/grid-geometry.d.ts +0 -49
- package/tile-manager/src/utils/index.d.ts +0 -1
- package/tile-manager/src/utils/pack.d.ts +0 -24
|
@@ -2,7 +2,7 @@ import { _ as e, g as t, i as n, y as r } from "./a11y-C6aX-lsZ.mjs";
|
|
|
2
2
|
import { installLightStyles as i, scopedHtml as a } from "../light-dom/index.mjs";
|
|
3
3
|
import "./checkbox-EnxkCGiC.mjs";
|
|
4
4
|
import { t as o } from "./overlay-kT0nfzL-.mjs";
|
|
5
|
-
import "./pagination-
|
|
5
|
+
import "./pagination-DgDp3v3u.mjs";
|
|
6
6
|
import { LitElement as s, nothing as c, render as l, unsafeCSS as u } from "lit";
|
|
7
7
|
import { repeat as d } from "lit/directives/repeat.js";
|
|
8
8
|
import { styleMap as f } from "lit/directives/style-map.js";
|
|
@@ -74,7 +74,7 @@ var _ = {
|
|
|
74
74
|
announceSelection: (e) => e === 1 ? "1 row selected" : `${e} rows selected`,
|
|
75
75
|
announceLoaded: (e) => e === 1 ? "Loaded 1 row" : `Loaded ${e} rows`,
|
|
76
76
|
rangeIncomplete: "Range not selected: some rows in it have not loaded yet"
|
|
77
|
-
}, x = u("@charset \"UTF-8\";\nmp-datatable {\n display: block;\n width: 100%;\n position: relative;\n --mp-datatable-border-color: var(--bs-border-color, rgba(0, 0, 0, 0.125));\n --mp-datatable-row-hover-bg: var(--bs-table-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));\n --mp-datatable-row-selected-bg: var(--bs-list-group-active-bg, var(--bs-primary, #0d6efd));\n --mp-datatable-row-selected-color: var(--bs-list-group-active-color, #fff);\n --mp-datatable-cut-opacity: 0.55;\n --mp-datatable-resize-handle-color: var(--bs-primary, #0d6efd);\n}\n\n[data-mps=datatable] {\n box-sizing: border-box;\n}\n\n.datatable-shell[data-mps=datatable] {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n}\n\n.datatable-scroll[data-mps=datatable] {\n overflow: auto;\n flex: 1 1 auto;\n}\n\n.datatable-scroll.datatable-virtual[data-mps=datatable] {\n max-height: var(--mp-datatable-virtual-max-height, 480px);\n}\n.datatable-scroll.datatable-virtual[data-mps=datatable] thead[data-mps=datatable] th[data-mps=datatable] {\n position: sticky;\n top: 0;\n z-index: 1;\n background-color: var(--bs-body-bg, #fff);\n}\n.datatable-scroll.datatable-virtual[data-mps=datatable] thead[data-mps=datatable] th[data-sortable=true]:hover[data-mps=datatable] {\n background-color: var(--bs-body-bg, #fff);\n background-image: linear-gradient(var(--mp-datatable-row-hover-bg), var(--mp-datatable-row-hover-bg));\n}\n.datatable-scroll.datatable-virtual[data-mps=datatable] thead[data-mps=datatable] tr.filter-row[data-mps=datatable] th[data-mps=datatable] {\n position: sticky;\n top: var(--mp-datatable-header-height, 0px);\n z-index: 1;\n background-color: var(--bs-body-bg, #fff);\n}\n\ntr.virtual-spacer[data-mps=datatable] {\n pointer-events: none;\n}\ntr.virtual-spacer[data-mps=datatable] > td {\n border-bottom: 0;\n}\n\ntable[data-mps=datatable] {\n width: 100%;\n border-collapse: collapse;\n margin: 0;\n table-layout: auto;\n}\n\ntable.measured[data-mps=datatable] {\n table-layout: fixed;\n}\ntbody[data-mps=datatable] > tr[data-mps=datatable] > td {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nthead[data-mps=datatable] th[data-mps=datatable] {\n background-color: var(--bs-table-bg, transparent);\n border-bottom: 1px solid var(--mp-datatable-border-color);\n text-align: left;\n font-weight: 600;\n padding: 0.5rem 0.75rem;\n white-space: nowrap;\n position: relative;\n user-select: none;\n}\n\nthead[data-mps=datatable] th[data-sortable=true][data-mps=datatable] {\n cursor: pointer;\n padding: 0;\n}\nthead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::before, thead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::after {\n position: absolute;\n display: block;\n opacity: 0.3;\n bottom: 0.5em;\n pointer-events: none;\n}\nthead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::before {\n content: \"↑\";\n right: 1em;\n}\nthead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::after {\n content: \"↓\";\n right: 0.5em;\n}\nthead[data-mps=datatable] th[data-sortable=true][aria-sort=ascending][data-mps=datatable]::after {\n opacity: 1;\n}\nthead[data-mps=datatable] th[data-sortable=true][aria-sort=descending][data-mps=datatable]::before {\n opacity: 1;\n}\n\nthead[data-mps=datatable] th[data-sortable=true]:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg);\n}\n\n.header-cell[data-mps=datatable] {\n display: inline-flex;\n align-items: center;\n gap: 0.4rem;\n}\n\nbutton.header-sort[data-mps=datatable] {\n border: 0;\n margin: 0;\n background: none;\n font: inherit;\n color: inherit;\n text-align: inherit;\n cursor: pointer;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n padding: 0.5rem 2rem 0.5rem 0.75rem;\n}\n\n.resize-handle:focus-visible[data-mps=datatable],\nbutton.header-sort:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--mp-datatable-resize-handle-color);\n outline-offset: 1px;\n}\n\ntbody[data-mps=datatable] tr:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--mp-datatable-resize-handle-color);\n outline-offset: -2px;\n}\n\n.sort-index[data-mps=datatable] {\n position: absolute;\n right: 0.1em;\n bottom: 0.3em;\n font-size: 0.65em;\n font-weight: bold;\n opacity: 0.7;\n}\n\n.resize-handle[data-mps=datatable] {\n position: absolute;\n right: 0;\n top: 0;\n width: 24px;\n max-width: 50%;\n height: 100%;\n cursor: col-resize;\n user-select: none;\n z-index: 2;\n touch-action: none;\n -webkit-touch-callout: none;\n}\n\n.resize-handle[data-mps=datatable]::before {\n content: \"\";\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: 3px;\n}\n\n.resize-handle:hover[data-mps=datatable]::before,\n.resize-handle.active[data-mps=datatable]::before {\n background-color: var(--mp-datatable-resize-handle-color);\n}\n\n@media (pointer: coarse) {\n .resize-handle[data-mps=datatable] {\n width: 40px;\n }\n .resize-handle[data-mps=datatable]::before {\n background-color: var(--mp-datatable-border-color);\n }\n}\ntbody[data-mps=datatable] > tr[data-mps=datatable] > td {\n padding: 0.5rem 0.75rem;\n border-bottom: 1px solid var(--mp-datatable-border-color);\n vertical-align: middle;\n}\ntbody[data-mps=datatable] > tr[data-mps=datatable] > td svg,\ntbody[data-mps=datatable] > tr[data-mps=datatable] > td img {\n max-width: var(--mp-datatable-cell-media-max-width, none);\n height: auto;\n vertical-align: middle;\n}\n\ntbody[data-mps=datatable] tr[data-mps=datatable] {\n cursor: default;\n}\n\ntbody[data-mps=datatable] tr[data-clickable=true][data-mps=datatable] {\n cursor: pointer;\n}\n\ntbody[data-mps=datatable] tr:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg);\n}\n\ntbody[data-mps=datatable] tr[data-selected=true][data-mps=datatable] {\n background-color: var(--mp-datatable-row-selected-bg);\n color: var(--mp-datatable-row-selected-color);\n}\n\ntbody[data-mps=datatable] tr[data-cut=true][data-mps=datatable] {\n opacity: var(--mp-datatable-cut-opacity);\n}\n\ntbody[data-mps=datatable] tr[data-focused=true][data-mps=datatable] {\n outline: 2px solid var(--bs-primary, #0d6efd);\n outline-offset: -2px;\n}\ntr[data-mps=datatable] > .checkbox-cell[data-mps=datatable] {\n width: 2.5rem;\n padding-inline: 0.5rem;\n text-align: center;\n text-overflow: clip;\n}\n\n.checkbox-cell.checkbox-cell-toggles[data-mps=datatable] {\n cursor: pointer;\n}\n\n.tree-chevron-cell[data-mps=datatable] {\n width: 2rem;\n padding-right: 0;\n white-space: nowrap;\n user-select: none;\n}\n\n.tree-chevron[data-mps=datatable] {\n appearance: none;\n background: transparent;\n border: 0;\n padding: 0;\n width: 1.5rem;\n height: 1.5rem;\n line-height: 1;\n cursor: pointer;\n color: var(--bs-body-color, inherit);\n font-size: 0.85em;\n border-radius: 0.25rem;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n.tree-chevron:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg);\n}\n.tree-chevron:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--bs-primary, #0d6efd);\n outline-offset: 1px;\n}\n\ntbody[data-mps=datatable] tr[data-placeholder=true][data-mps=datatable] {\n cursor: default;\n opacity: 0.6;\n pointer-events: none;\n}\n\n.tree-placeholder-cell[data-mps=datatable] {\n color: var(--bs-secondary-color, #6c757d);\n font-style: italic;\n padding-left: 1.25rem;\n}\n\n.empty-state[data-mps=datatable],\n.loading-state[data-mps=datatable] {\n padding: 2rem 1rem;\n text-align: center;\n color: var(--bs-secondary-color, #6c757d);\n}\n\n.datatable-footer[data-mps=datatable] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0.5rem 0;\n gap: 1rem;\n flex-wrap: wrap;\n flex: 0 0 auto;\n}\n\n.datatable-per-page[data-mps=datatable],\n.datatable-pagination[data-mps=datatable] {\n flex: 0 1 auto;\n}\n\ntr.filter-row[data-mps=datatable] th[data-mps=datatable] {\n padding: 0;\n border-bottom: 1px solid var(--mp-datatable-border-color);\n font-weight: 400;\n user-select: none;\n}\n\n.filter-trigger[data-mps=datatable] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n min-width: 0;\n box-sizing: border-box;\n padding: 0.5rem;\n border-radius: 0;\n background: transparent;\n border: 1px solid transparent;\n color: inherit;\n cursor: pointer;\n line-height: 1;\n}\n\n.filter-trigger:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));\n}\n\n.filter-trigger:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--bs-focus-ring-color, #0d6efd);\n outline-offset: 1px;\n}\n\n.filter-trigger[aria-expanded=true][data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));\n border-color: var(--mp-datatable-border-color);\n}\n\n.filter-icon[data-mps=datatable] {\n width: 0.875rem;\n height: 0.875rem;\n fill: currentColor;\n flex: 0 0 auto;\n}\n\n.filter-trigger.active[data-mps=datatable] .filter-icon[data-mps=datatable] {\n fill: var(--bs-primary, #0d6efd);\n}\n\n.filter-trigger.active[data-mps=datatable]::after {\n content: \"\";\n width: 0.375rem;\n height: 0.375rem;\n margin-inline-start: 0.25rem;\n border-radius: 50%;\n background-color: var(--bs-primary, #0d6efd);\n flex: 0 0 auto;\n}\n\n.filter-panel[data-mps=datatable] {\n position: fixed;\n min-width: 12rem;\n max-width: min(22rem, 100vw - 2rem);\n padding: 0.5rem;\n background-color: var(--bs-body-bg, #fff);\n color: var(--bs-body-color, inherit);\n border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));\n border-radius: 0.375rem;\n box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);\n}\n\n.filter-panel-body[data-mps=datatable] {\n display: block;\n max-height: min(20rem, 60vh);\n overflow: auto;\n}\n\n.resize-panel[data-mps=datatable] {\n position: fixed;\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n min-width: 12rem;\n padding: 0.5rem;\n background-color: var(--bs-body-bg, #fff);\n color: var(--bs-body-color, inherit);\n border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));\n border-radius: 0.375rem;\n box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);\n}\n\n.resize-panel-steps[data-mps=datatable] {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n}\n\n.resize-panel-width[data-mps=datatable] {\n flex: 1 1 auto;\n text-align: center;\n font-variant-numeric: tabular-nums;\n}\n\n.resize-panel-step[data-mps=datatable],\n.resize-panel-action[data-mps=datatable] {\n min-height: 2.75rem;\n padding: 0.25rem 0.75rem;\n font: inherit;\n color: inherit;\n background: transparent;\n border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));\n border-radius: 0.25rem;\n cursor: pointer;\n}\n\n.resize-panel-step[data-mps=datatable] {\n flex: 0 0 2.75rem;\n font-size: 1.25rem;\n line-height: 1;\n}\n\n.resize-panel-step:hover[data-mps=datatable],\n.resize-panel-action:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));\n}\n\n.resize-panel-step:focus-visible[data-mps=datatable],\n.resize-panel-action:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--mp-datatable-resize-handle-color, var(--bs-primary, #0d6efd));\n outline-offset: 1px;\n}\n\n.filter-clear[data-mps=datatable],\n.filter-invert[data-mps=datatable] {\n display: block;\n width: 100%;\n box-sizing: border-box;\n padding: 0.25rem 0.5rem;\n margin-bottom: 0.375rem;\n background: transparent;\n border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));\n border-radius: 0.25rem;\n color: inherit;\n cursor: pointer;\n text-align: start;\n line-height: 1.4;\n}\n\n.filter-clear:disabled[data-mps=datatable] {\n opacity: 0.5;\n cursor: default;\n}\n\n.filter-invert[aria-pressed=true][data-mps=datatable] {\n background-color: var(--bs-primary, #0d6efd);\n border-color: var(--bs-primary, #0d6efd);\n color: var(--bs-primary-bg-subtle, #fff);\n}\n\n.filter-search[data-mps=datatable],\n.filter-operand[data-mps=datatable],\n.filter-operator[data-mps=datatable] {\n box-sizing: border-box;\n padding: 0.25rem 0.5rem;\n background-color: var(--bs-body-bg, #fff);\n color: inherit;\n border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));\n border-radius: 0.25rem;\n font: inherit;\n line-height: 1.5;\n}\n\n.filter-operand[type=number][data-mps=datatable] {\n appearance: textfield;\n}\n\n.filter-operand[data-mps=datatable]::-webkit-outer-spin-button,\n.filter-operand[data-mps=datatable]::-webkit-inner-spin-button {\n appearance: none;\n margin: 0;\n}\n\n.filter-search[data-mps=datatable] {\n display: block;\n width: 100%;\n margin-bottom: 0.375rem;\n}\n\n.filter-clear:focus-visible[data-mps=datatable],\n.filter-invert:focus-visible[data-mps=datatable],\n.filter-search:focus-visible[data-mps=datatable],\n.filter-option[data-mps=datatable] input:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--bs-focus-ring-color, #0d6efd);\n outline-offset: 1px;\n}\n\n.filter-comparison[data-mps=datatable] {\n display: flex;\n gap: 0.375rem;\n align-items: stretch;\n}\n\n.filter-operator[data-mps=datatable] {\n flex: 0 0 auto;\n max-width: 9rem;\n padding-inline: 0.375rem;\n}\n\n.filter-operand[data-mps=datatable] {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n.filter-operator:focus-visible[data-mps=datatable],\n.filter-operand:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--bs-focus-ring-color, #0d6efd);\n outline-offset: 1px;\n}\n\n.filter-options[data-mps=datatable] {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n}\n\n.filter-option[data-mps=datatable] {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n padding: 0.125rem 0.25rem;\n border-radius: 0.25rem;\n cursor: pointer;\n overflow-wrap: anywhere;\n}\n\n.filter-option:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));\n}\n\n.filter-remaining[data-mps=datatable] {\n color: var(--bs-secondary-color, #6c757d);\n}\n\n.filter-loading[data-mps=datatable],\n.filter-no-values[data-mps=datatable],\n.filter-has-more[data-mps=datatable] {\n display: block;\n padding: 0.25rem;\n color: var(--bs-secondary-color, #6c757d);\n font-size: 0.875em;\n}\n\n.filter-summary[data-mps=datatable] {\n margin-inline-start: 0.25rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 0.875em;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .resize-handle[data-mps=datatable] {\n transition: none !important;\n }\n}");
|
|
77
|
+
}, x = u("@charset \"UTF-8\";\nmp-datatable {\n display: block;\n width: 100%;\n position: relative;\n --mp-datatable-border-color: var(--bs-border-color, rgba(0, 0, 0, 0.125));\n --mp-datatable-row-hover-bg: var(--bs-table-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));\n --mp-datatable-row-selected-bg: var(--bs-list-group-active-bg, var(--bs-primary, #0d6efd));\n --mp-datatable-row-selected-color: var(--bs-list-group-active-color, #fff);\n --mp-datatable-cut-opacity: 0.55;\n --mp-datatable-resize-handle-color: var(--bs-primary, #0d6efd);\n}\n\n[data-mps=datatable] {\n box-sizing: border-box;\n}\n\n.datatable-shell[data-mps=datatable] {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n}\n\n.datatable-scroll[data-mps=datatable] {\n overflow: auto;\n flex: 1 1 auto;\n}\n\n.datatable-scroll.datatable-virtual[data-mps=datatable] {\n max-height: var(--mp-datatable-virtual-max-height, 480px);\n}\n.datatable-scroll.datatable-virtual[data-mps=datatable] thead[data-mps=datatable] th[data-mps=datatable] {\n position: sticky;\n top: 0;\n z-index: 1;\n background-color: var(--bs-body-bg, #fff);\n}\n.datatable-scroll.datatable-virtual[data-mps=datatable] thead[data-mps=datatable] th[data-sortable=true]:hover[data-mps=datatable] {\n background-color: var(--bs-body-bg, #fff);\n background-image: linear-gradient(var(--mp-datatable-row-hover-bg), var(--mp-datatable-row-hover-bg));\n}\n.datatable-scroll.datatable-virtual[data-mps=datatable] thead[data-mps=datatable] tr.filter-row[data-mps=datatable] th[data-mps=datatable] {\n position: sticky;\n top: var(--mp-datatable-header-height, 0px);\n z-index: 1;\n background-color: var(--bs-body-bg, #fff);\n}\n\ntr.virtual-spacer[data-mps=datatable] {\n pointer-events: none;\n}\ntr.virtual-spacer[data-mps=datatable] > td {\n border-bottom: 0;\n}\n\ntable[data-mps=datatable] {\n width: 100%;\n border-collapse: collapse;\n margin: 0;\n table-layout: auto;\n}\n\ntable.measured[data-mps=datatable] {\n table-layout: fixed;\n}\ntbody[data-mps=datatable] > tr[data-mps=datatable] > td {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nthead[data-mps=datatable] th[data-mps=datatable] {\n background-color: var(--bs-table-bg, transparent);\n border-bottom: 1px solid var(--mp-datatable-border-color);\n text-align: left;\n font-weight: 600;\n padding: 0.5rem 0.75rem;\n white-space: nowrap;\n position: relative;\n user-select: none;\n}\n\nthead[data-mps=datatable] th[data-sortable=true][data-mps=datatable] {\n cursor: pointer;\n padding: 0;\n}\nthead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::before, thead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::after {\n position: absolute;\n display: block;\n opacity: 0.3;\n bottom: 0.5em;\n pointer-events: none;\n}\nthead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::before {\n content: \"↑\";\n right: 1em;\n}\nthead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::after {\n content: \"↓\";\n right: 0.5em;\n}\nthead[data-mps=datatable] th[data-sortable=true][aria-sort=ascending][data-mps=datatable]::after {\n opacity: 1;\n}\nthead[data-mps=datatable] th[data-sortable=true][aria-sort=descending][data-mps=datatable]::before {\n opacity: 1;\n}\n\nthead[data-mps=datatable] th[data-sortable=true]:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg);\n}\n\n.header-cell[data-mps=datatable] {\n display: inline-flex;\n align-items: center;\n gap: 0.4rem;\n}\n\nbutton.header-sort[data-mps=datatable] {\n border: 0;\n margin: 0;\n background: none;\n font: inherit;\n color: inherit;\n text-align: inherit;\n cursor: pointer;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n padding: 0.5rem 2rem 0.5rem 0.75rem;\n}\n\n.resize-handle:focus-visible[data-mps=datatable],\nbutton.header-sort:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--mp-datatable-resize-handle-color);\n outline-offset: 1px;\n}\n\ntbody[data-mps=datatable] tr:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--mp-datatable-resize-handle-color);\n outline-offset: -2px;\n}\n\n.sort-index[data-mps=datatable] {\n position: absolute;\n right: 0.1em;\n bottom: 0.3em;\n font-size: 0.65em;\n font-weight: bold;\n opacity: 0.7;\n}\n\n.resize-handle[data-mps=datatable] {\n position: absolute;\n right: 0;\n top: 0;\n width: 24px;\n max-width: 50%;\n height: 100%;\n cursor: col-resize;\n user-select: none;\n z-index: 2;\n touch-action: none;\n -webkit-touch-callout: none;\n}\n\n.resize-handle[data-mps=datatable]::before {\n content: \"\";\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: 3px;\n}\n\n.resize-handle:hover[data-mps=datatable]::before,\n.resize-handle.active[data-mps=datatable]::before {\n background-color: var(--mp-datatable-resize-handle-color);\n}\n\n@media (pointer: coarse) {\n .resize-handle[data-mps=datatable] {\n width: 40px;\n }\n .resize-handle[data-mps=datatable]::before {\n background-color: var(--mp-datatable-border-color);\n }\n}\ntbody[data-mps=datatable] > tr[data-mps=datatable] > td {\n padding: 0.5rem 0.75rem;\n border-bottom: 1px solid var(--mp-datatable-border-color);\n vertical-align: middle;\n}\ntbody[data-mps=datatable] > tr[data-mps=datatable] > td svg,\ntbody[data-mps=datatable] > tr[data-mps=datatable] > td img {\n max-width: var(--mp-datatable-cell-media-max-width, none);\n height: auto;\n vertical-align: middle;\n}\n\ntbody[data-mps=datatable] tr[data-mps=datatable] {\n cursor: default;\n}\n\ntbody[data-mps=datatable] tr[data-clickable=true][data-mps=datatable] {\n cursor: pointer;\n}\n\ntbody[data-mps=datatable] tr:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg);\n}\n\ntbody[data-mps=datatable] tr[data-selected=true][data-mps=datatable] {\n background-color: var(--mp-datatable-row-selected-bg);\n color: var(--mp-datatable-row-selected-color);\n}\n\ntbody[data-mps=datatable] tr[data-cut=true][data-mps=datatable] {\n opacity: var(--mp-datatable-cut-opacity);\n}\n\ntbody[data-mps=datatable] tr[data-focused=true][data-mps=datatable] {\n outline: 2px solid var(--bs-primary, #0d6efd);\n outline-offset: -2px;\n}\ntr[data-mps=datatable] > .checkbox-cell[data-mps=datatable] {\n width: 2.5rem;\n padding-inline: 0.5rem;\n text-align: center;\n text-overflow: clip;\n}\n\n.checkbox-cell.checkbox-cell-toggles[data-mps=datatable] {\n cursor: pointer;\n}\n\n.tree-chevron-cell[data-mps=datatable] {\n width: 2rem;\n padding-right: 0;\n white-space: nowrap;\n user-select: none;\n}\n\n.tree-chevron[data-mps=datatable] {\n appearance: none;\n background: transparent;\n border: 0;\n padding: 0;\n width: 1.5rem;\n height: 1.5rem;\n line-height: 1;\n cursor: pointer;\n color: var(--bs-body-color, inherit);\n font-size: 0.85em;\n border-radius: 0.25rem;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n.tree-chevron:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg);\n}\n.tree-chevron:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--bs-primary, #0d6efd);\n outline-offset: 1px;\n}\n\ntbody[data-mps=datatable] tr[data-placeholder=true][data-mps=datatable] {\n cursor: default;\n opacity: 0.6;\n pointer-events: none;\n}\n\n.tree-placeholder-cell[data-mps=datatable] {\n color: var(--bs-secondary-color, #6c757d);\n font-style: italic;\n padding-left: 1.25rem;\n}\n\n.empty-state[data-mps=datatable],\n.loading-state[data-mps=datatable] {\n padding: 2rem 1rem;\n text-align: center;\n color: var(--bs-secondary-color, #6c757d);\n}\n\n.datatable-footer[data-mps=datatable] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0.5rem 0;\n gap: 1rem;\n flex-wrap: wrap;\n flex: 0 0 auto;\n}\n\n.datatable-per-page[data-mps=datatable],\n.datatable-pagination[data-mps=datatable] {\n flex: 0 1 auto;\n}\n\nmp-datatable[fill] {\n height: 100%;\n overflow: auto;\n}\n\nmp-datatable[fill] .datatable-shell[data-mps=datatable] {\n height: auto;\n min-height: 100%;\n width: max-content;\n min-width: 100%;\n}\n\nmp-datatable[fill] .datatable-scroll[data-mps=datatable] {\n overflow: visible;\n flex: 1 0 auto;\n max-height: none;\n}\n\nmp-datatable[fill] .datatable-scroll[data-mps=datatable] > table[data-mps=datatable] {\n width: auto;\n min-width: 100%;\n border-collapse: separate;\n border-spacing: 0;\n}\n\nmp-datatable[fill] .datatable-scroll[data-mps=datatable] > table[data-mps=datatable] > thead[data-mps=datatable] {\n position: sticky;\n top: 0;\n z-index: 2;\n}\n\nmp-datatable[fill] .datatable-scroll[data-mps=datatable] > table[data-mps=datatable] > thead[data-mps=datatable] th[data-mps=datatable] {\n background-color: var(--mp-datatable-fill-bg, var(--bs-body-bg, #fff));\n}\n\nmp-datatable[fill] .datatable-scroll[data-mps=datatable] > table[data-mps=datatable] > thead[data-mps=datatable] th[data-sortable=true]:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-fill-bg, var(--bs-body-bg, #fff));\n background-image: linear-gradient(var(--mp-datatable-row-hover-bg), var(--mp-datatable-row-hover-bg));\n}\n\nmp-datatable[fill] .datatable-footer[data-mps=datatable] {\n position: sticky;\n bottom: 0;\n z-index: 2;\n background-color: var(--mp-datatable-fill-bg, var(--bs-body-bg, #fff));\n}\n\ntr.filter-row[data-mps=datatable] th[data-mps=datatable] {\n padding: 0;\n border-bottom: 1px solid var(--mp-datatable-border-color);\n font-weight: 400;\n user-select: none;\n}\n\n.filter-trigger[data-mps=datatable] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n min-width: 0;\n box-sizing: border-box;\n padding: 0.5rem;\n border-radius: 0;\n background: transparent;\n border: 1px solid transparent;\n color: inherit;\n cursor: pointer;\n line-height: 1;\n}\n\n.filter-trigger:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));\n}\n\n.filter-trigger:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--bs-focus-ring-color, #0d6efd);\n outline-offset: 1px;\n}\n\n.filter-trigger[aria-expanded=true][data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));\n border-color: var(--mp-datatable-border-color);\n}\n\n.filter-icon[data-mps=datatable] {\n width: 0.875rem;\n height: 0.875rem;\n fill: currentColor;\n flex: 0 0 auto;\n}\n\n.filter-trigger.active[data-mps=datatable] .filter-icon[data-mps=datatable] {\n fill: var(--bs-primary, #0d6efd);\n}\n\n.filter-trigger.active[data-mps=datatable]::after {\n content: \"\";\n width: 0.375rem;\n height: 0.375rem;\n margin-inline-start: 0.25rem;\n border-radius: 50%;\n background-color: var(--bs-primary, #0d6efd);\n flex: 0 0 auto;\n}\n\n.filter-panel[data-mps=datatable] {\n position: fixed;\n min-width: 12rem;\n max-width: min(22rem, 100vw - 2rem);\n padding: 0.5rem;\n background-color: var(--bs-body-bg, #fff);\n color: var(--bs-body-color, inherit);\n border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));\n border-radius: 0.375rem;\n box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);\n}\n\n.filter-panel-body[data-mps=datatable] {\n display: block;\n max-height: min(20rem, 60vh);\n overflow: auto;\n}\n\n.resize-panel[data-mps=datatable] {\n position: fixed;\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n min-width: 12rem;\n padding: 0.5rem;\n background-color: var(--bs-body-bg, #fff);\n color: var(--bs-body-color, inherit);\n border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));\n border-radius: 0.375rem;\n box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);\n}\n\n.resize-panel-steps[data-mps=datatable] {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n}\n\n.resize-panel-width[data-mps=datatable] {\n flex: 1 1 auto;\n text-align: center;\n font-variant-numeric: tabular-nums;\n}\n\n.resize-panel-step[data-mps=datatable],\n.resize-panel-action[data-mps=datatable] {\n min-height: 2.75rem;\n padding: 0.25rem 0.75rem;\n font: inherit;\n color: inherit;\n background: transparent;\n border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));\n border-radius: 0.25rem;\n cursor: pointer;\n}\n\n.resize-panel-step[data-mps=datatable] {\n flex: 0 0 2.75rem;\n font-size: 1.25rem;\n line-height: 1;\n}\n\n.resize-panel-step:hover[data-mps=datatable],\n.resize-panel-action:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));\n}\n\n.resize-panel-step:focus-visible[data-mps=datatable],\n.resize-panel-action:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--mp-datatable-resize-handle-color, var(--bs-primary, #0d6efd));\n outline-offset: 1px;\n}\n\n.filter-clear[data-mps=datatable],\n.filter-invert[data-mps=datatable] {\n display: block;\n width: 100%;\n box-sizing: border-box;\n padding: 0.25rem 0.5rem;\n margin-bottom: 0.375rem;\n background: transparent;\n border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));\n border-radius: 0.25rem;\n color: inherit;\n cursor: pointer;\n text-align: start;\n line-height: 1.4;\n}\n\n.filter-clear:disabled[data-mps=datatable] {\n opacity: 0.5;\n cursor: default;\n}\n\n.filter-invert[aria-pressed=true][data-mps=datatable] {\n background-color: var(--bs-primary, #0d6efd);\n border-color: var(--bs-primary, #0d6efd);\n color: var(--bs-primary-bg-subtle, #fff);\n}\n\n.filter-search[data-mps=datatable],\n.filter-operand[data-mps=datatable],\n.filter-operator[data-mps=datatable] {\n box-sizing: border-box;\n padding: 0.25rem 0.5rem;\n background-color: var(--bs-body-bg, #fff);\n color: inherit;\n border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));\n border-radius: 0.25rem;\n font: inherit;\n line-height: 1.5;\n}\n\n.filter-operand[type=number][data-mps=datatable] {\n appearance: textfield;\n}\n\n.filter-operand[data-mps=datatable]::-webkit-outer-spin-button,\n.filter-operand[data-mps=datatable]::-webkit-inner-spin-button {\n appearance: none;\n margin: 0;\n}\n\n.filter-search[data-mps=datatable] {\n display: block;\n width: 100%;\n margin-bottom: 0.375rem;\n}\n\n.filter-clear:focus-visible[data-mps=datatable],\n.filter-invert:focus-visible[data-mps=datatable],\n.filter-search:focus-visible[data-mps=datatable],\n.filter-option[data-mps=datatable] input:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--bs-focus-ring-color, #0d6efd);\n outline-offset: 1px;\n}\n\n.filter-comparison[data-mps=datatable] {\n display: flex;\n gap: 0.375rem;\n align-items: stretch;\n}\n\n.filter-operator[data-mps=datatable] {\n flex: 0 0 auto;\n max-width: 9rem;\n padding-inline: 0.375rem;\n}\n\n.filter-operand[data-mps=datatable] {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n.filter-operator:focus-visible[data-mps=datatable],\n.filter-operand:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--bs-focus-ring-color, #0d6efd);\n outline-offset: 1px;\n}\n\n.filter-options[data-mps=datatable] {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n}\n\n.filter-option[data-mps=datatable] {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n padding: 0.125rem 0.25rem;\n border-radius: 0.25rem;\n cursor: pointer;\n overflow-wrap: anywhere;\n}\n\n.filter-option:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));\n}\n\n.filter-remaining[data-mps=datatable] {\n color: var(--bs-secondary-color, #6c757d);\n}\n\n.filter-loading[data-mps=datatable],\n.filter-no-values[data-mps=datatable],\n.filter-has-more[data-mps=datatable] {\n display: block;\n padding: 0.25rem;\n color: var(--bs-secondary-color, #6c757d);\n font-size: 0.875em;\n}\n\n.filter-summary[data-mps=datatable] {\n margin-inline-start: 0.25rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 0.875em;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .resize-handle[data-mps=datatable] {\n transition: none !important;\n }\n}");
|
|
78
78
|
//#endregion
|
|
79
79
|
//#region libs/mintplayer-web-components/datatable/src/sort/compute-next-sort.ts
|
|
80
80
|
function S(e, t, n) {
|
|
@@ -146,7 +146,7 @@ var M = 200, N = 0, P = class extends s {
|
|
|
146
146
|
], this._autoSort = !0, this._totalRecords = null, this._virtualScroll = !1, this._itemSize = 40, this._virtualBuffer = 10, this._virtualRange = {
|
|
147
147
|
startIndex: 0,
|
|
148
148
|
endIndex: 0
|
|
149
|
-
}, this._scrollElement = null, this._resizeObserver = null, this._headerObserver = null, this._observedThead = null, this._scrollListener = null, this._viewportHeight = 0, this._openFilterColumn = null, this._mountedFilterColumn = null, this._consumerMountedFilter = !1, this._filterUid = `mp-dt-${Math.random().toString(36).slice(2, 9)}`, this._distincts = null, this._filterStates = /* @__PURE__ */ new Map(), this._tree = !1, this._idKey = null, this._childCountKey = null, this._treeIndent = 1.25, this._expandedIds = /* @__PURE__ */ new Set(), this._selectionStrategy = "flat", this._childCache = /* @__PURE__ */ new Map(), this._childTotals = /* @__PURE__ */ new Map(), this._pendingFetches = /* @__PURE__ */ new Set(), this._pageCache = /* @__PURE__ */ new Map(), this._pendingPageFetches = /* @__PURE__ */ new Set(), this._fetch = null, this._fetchGeneration = 0, this._fetchAbort = new AbortController(), this._initialFetchDone = !1, this._reloadScheduled = !1, this._lastReloadKey = null, this._cachedFlatList = null, this._cachedIndeterminateKeys = null, this._rowLabel = null, this._resizableColumns = !0, this.filterOverlay = new o(this, {
|
|
149
|
+
}, this._scrollElement = null, this._resizeObserver = null, this._headerObserver = null, this._observedThead = null, this._scrollListener = null, this._viewportHeight = 0, this._openFilterColumn = null, this._mountedFilterColumn = null, this._consumerMountedFilter = !1, this._filterUid = `mp-dt-${Math.random().toString(36).slice(2, 9)}`, this._distincts = null, this._filterStates = /* @__PURE__ */ new Map(), this._tree = !1, this._idKey = null, this._childCountKey = null, this._treeIndent = 1.25, this._expandedIds = /* @__PURE__ */ new Set(), this._selectionStrategy = "flat", this._childCache = /* @__PURE__ */ new Map(), this._childTotals = /* @__PURE__ */ new Map(), this._pendingFetches = /* @__PURE__ */ new Set(), this._pageCache = /* @__PURE__ */ new Map(), this._pendingPageFetches = /* @__PURE__ */ new Set(), this._fetch = null, this._fetchGeneration = 0, this._fetchAbort = new AbortController(), this._initialFetchDone = !1, this._reloadScheduled = !1, this._lastReloadKey = null, this._cachedFlatList = null, this._cachedIndeterminateKeys = null, this._fill = !1, this._rowLabel = null, this._resizableColumns = !0, this.filterOverlay = new o(this, {
|
|
150
150
|
portal: !0,
|
|
151
151
|
modal: !0,
|
|
152
152
|
scrollStrategy: "reposition",
|
|
@@ -202,6 +202,7 @@ var M = 200, N = 0, P = class extends s {
|
|
|
202
202
|
"auto-sort",
|
|
203
203
|
"empty-message",
|
|
204
204
|
"virtual-scroll",
|
|
205
|
+
"fill",
|
|
205
206
|
"item-size",
|
|
206
207
|
"tree",
|
|
207
208
|
"tree-indent",
|
|
@@ -261,6 +262,13 @@ var M = 200, N = 0, P = class extends s {
|
|
|
261
262
|
let t = !!e;
|
|
262
263
|
this._virtualScroll !== t && (this._virtualScroll = t, this.requestUpdate());
|
|
263
264
|
}
|
|
265
|
+
get fill() {
|
|
266
|
+
return this._fill;
|
|
267
|
+
}
|
|
268
|
+
set fill(e) {
|
|
269
|
+
let t = !!e;
|
|
270
|
+
this._fill !== t && (this._fill = t, this.requestUpdate());
|
|
271
|
+
}
|
|
264
272
|
get itemSize() {
|
|
265
273
|
return this._itemSize;
|
|
266
274
|
}
|
|
@@ -513,6 +521,7 @@ var M = 200, N = 0, P = class extends s {
|
|
|
513
521
|
else if (e === "auto-sort") this.autoSort = n !== "false";
|
|
514
522
|
else if (e === "empty-message") this.emptyMessage = n ?? "No data";
|
|
515
523
|
else if (e === "virtual-scroll") this.virtualScroll = n !== null;
|
|
524
|
+
else if (e === "fill") this.fill = n !== null;
|
|
516
525
|
else if (e === "item-size") {
|
|
517
526
|
let e = Number(n);
|
|
518
527
|
Number.isFinite(e) && (this.itemSize = e);
|
|
@@ -529,18 +538,25 @@ var M = 200, N = 0, P = class extends s {
|
|
|
529
538
|
this._resizableColumns = !!e, this.requestUpdate();
|
|
530
539
|
}
|
|
531
540
|
connectedCallback() {
|
|
532
|
-
super.connectedCallback();
|
|
541
|
+
super.connectedCallback(), this.hasUpdated && this.bindScroller();
|
|
533
542
|
}
|
|
534
543
|
firstUpdated() {
|
|
535
|
-
this.
|
|
544
|
+
this.bindScroller(), this.refreshVirtualRange(), this.hostAria.syncReferences();
|
|
545
|
+
}
|
|
546
|
+
bindScroller() {
|
|
547
|
+
let e = this._fill ? this : this.renderRoot?.querySelector(".datatable-scroll") ?? null;
|
|
548
|
+
e !== this._scrollElement && (this.unbindScroller(), this._scrollElement = e, e && (this._scrollListener = () => this.refreshVirtualRange(), e.addEventListener("scroll", this._scrollListener, { passive: !0 }), typeof ResizeObserver < "u" && (this._resizeObserver = new ResizeObserver(() => {
|
|
536
549
|
this.refreshVirtualRange(), this.scheduleRefit();
|
|
537
|
-
}), this._resizeObserver.observe(
|
|
550
|
+
}), this._resizeObserver.observe(e))));
|
|
551
|
+
}
|
|
552
|
+
unbindScroller() {
|
|
553
|
+
this._scrollElement && this._scrollListener && this._scrollElement.removeEventListener("scroll", this._scrollListener), this._scrollListener = null, this._resizeObserver?.disconnect(), this._resizeObserver = null, this._scrollElement = null;
|
|
538
554
|
}
|
|
539
555
|
willUpdate(e) {
|
|
540
|
-
super.willUpdate(e), this._cachedFlatList = null, this._cachedIndeterminateKeys = null;
|
|
556
|
+
super.willUpdate(e), this.hasAttribute("fill") !== this._fill && this.toggleAttribute("fill", this._fill), this._cachedFlatList = null, this._cachedIndeterminateKeys = null;
|
|
541
557
|
}
|
|
542
558
|
updated(e) {
|
|
543
|
-
super.updated(e), this.refreshVirtualRange(), this.nameRowCheckboxes(), this.maybeMeasureInitialColumnWidths();
|
|
559
|
+
super.updated(e), this.bindScroller(), this.refreshVirtualRange(), this.nameRowCheckboxes(), this.maybeMeasureInitialColumnWidths();
|
|
544
560
|
let t = this.renderRoot?.querySelectorAll(".resize-handle:not([aria-valuenow])") ?? [];
|
|
545
561
|
for (let e of t) {
|
|
546
562
|
let t = e.closest("th");
|
|
@@ -595,7 +611,7 @@ var M = 200, N = 0, P = class extends s {
|
|
|
595
611
|
return n > 0 ? n : null;
|
|
596
612
|
}
|
|
597
613
|
disconnectedCallback() {
|
|
598
|
-
super.disconnectedCallback(), this.
|
|
614
|
+
super.disconnectedCallback(), this.unbindScroller(), this._headerObserver?.disconnect(), this._observedThead = null, this._refitFrame != null && cancelAnimationFrame(this._refitFrame), this._refitFrame = null, this._filterStates.forEach((e) => this.abortFilterRequest(e));
|
|
599
615
|
}
|
|
600
616
|
refreshVirtualRange() {
|
|
601
617
|
if (!this._virtualScroll || !this._scrollElement) return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement as e, html as t, nothing as n, unsafeCSS as r } from "lit";
|
|
2
2
|
import { repeat as i } from "lit/directives/repeat.js";
|
|
3
3
|
//#region libs/mintplayer-web-components/pagination/src/styles/pagination.styles.ts
|
|
4
|
-
var a = r(":host {\n display: block;\n --mp-pagination-bg: var(--bs-pagination-bg, transparent);\n --mp-pagination-color: var(--bs-pagination-color, var(--bs-link-color, #0d6efd));\n --mp-pagination-hover-bg: var(--bs-pagination-hover-bg, var(--bs-tertiary-bg, #e9ecef));\n --mp-pagination-hover-color: var(--bs-pagination-hover-color, var(--bs-link-hover-color, #0a58ca));\n --mp-pagination-active-bg: var(--bs-pagination-active-bg, var(--bs-primary, #0d6efd));\n --mp-pagination-active-color: var(--bs-pagination-active-color, #fff);\n --mp-pagination-disabled-bg: var(--bs-pagination-disabled-bg, transparent);\n --mp-pagination-disabled-color: var(--bs-pagination-disabled-color, var(--bs-secondary-color, #6c757d));\n --mp-pagination-border-color: var(--bs-pagination-border-color, var(--bs-border-color, #dee2e6));\n --mp-pagination-active-border-color: var(--bs-pagination-active-border-color, var(--bs-primary, #0d6efd));\n --mp-pagination-padding-y: 0.375rem;\n --mp-pagination-padding-x: 0.75rem;\n --mp-pagination-font-size: 1rem;\n --mp-pagination-border-radius: 0.375rem;\n font-family: inherit;\n}\n\n* {\n box-sizing: border-box;\n}\n\n:host([size=small]) {\n --mp-pagination-padding-y: 0.25rem;\n --mp-pagination-padding-x: 0.5rem;\n --mp-pagination-font-size: 0.875rem;\n}\n\n:host([size=large]) {\n --mp-pagination-padding-y: 0.75rem;\n --mp-pagination-padding-x: 1.5rem;\n --mp-pagination-font-size: 1.25rem;\n}\n\nnav {\n display: contents;\n}\n\nul {\n display: inline-flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\nli {\n display: inline-flex;\n}\n\n.page-link {\n appearance: none;\n background-color: var(--mp-pagination-bg);\n border: 1px solid var(--mp-pagination-border-color);\n color: var(--mp-pagination-color);\n cursor: pointer;\n font: inherit;\n font-size: var(--mp-pagination-font-size);\n padding: var(--mp-pagination-padding-y) var(--mp-pagination-padding-x);\n text-decoration: none;\n user-select: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width:
|
|
4
|
+
var a = r(":host {\n display: block;\n --mp-pagination-bg: var(--bs-pagination-bg, transparent);\n --mp-pagination-color: var(--bs-pagination-color, var(--bs-link-color, #0d6efd));\n --mp-pagination-hover-bg: var(--bs-pagination-hover-bg, var(--bs-tertiary-bg, #e9ecef));\n --mp-pagination-hover-color: var(--bs-pagination-hover-color, var(--bs-link-hover-color, #0a58ca));\n --mp-pagination-active-bg: var(--bs-pagination-active-bg, var(--bs-primary, #0d6efd));\n --mp-pagination-active-color: var(--bs-pagination-active-color, #fff);\n --mp-pagination-disabled-bg: var(--bs-pagination-disabled-bg, transparent);\n --mp-pagination-disabled-color: var(--bs-pagination-disabled-color, var(--bs-secondary-color, #6c757d));\n --mp-pagination-border-color: var(--bs-pagination-border-color, var(--bs-border-color, #dee2e6));\n --mp-pagination-active-border-color: var(--bs-pagination-active-border-color, var(--bs-primary, #0d6efd));\n --mp-pagination-padding-y: 0.375rem;\n --mp-pagination-padding-x: 0.75rem;\n --mp-pagination-font-size: 1rem;\n --mp-pagination-border-radius: 0.375rem;\n font-family: inherit;\n}\n\n* {\n box-sizing: border-box;\n}\n\n:host([size=small]) {\n --mp-pagination-padding-y: 0.25rem;\n --mp-pagination-padding-x: 0.5rem;\n --mp-pagination-font-size: 0.875rem;\n}\n\n:host([size=large]) {\n --mp-pagination-padding-y: 0.75rem;\n --mp-pagination-padding-x: 1.5rem;\n --mp-pagination-font-size: 1.25rem;\n}\n\nnav {\n display: contents;\n}\n\nul {\n display: inline-flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\nli {\n display: inline-flex;\n}\n\n.page-link {\n appearance: none;\n background-color: var(--mp-pagination-bg);\n border: 1px solid var(--mp-pagination-border-color);\n color: var(--mp-pagination-color);\n cursor: pointer;\n font: inherit;\n font-size: var(--mp-pagination-font-size);\n padding: var(--mp-pagination-padding-y) var(--mp-pagination-padding-x);\n text-decoration: none;\n user-select: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: max(var(--mp-pagination-padding-x) * 2 + 1ch, 25px);\n margin-left: -1px;\n}\n\nli:first-child .page-link {\n margin-left: 0;\n border-top-left-radius: var(--mp-pagination-border-radius);\n border-bottom-left-radius: var(--mp-pagination-border-radius);\n}\n\nli:last-child .page-link {\n border-top-right-radius: var(--mp-pagination-border-radius);\n border-bottom-right-radius: var(--mp-pagination-border-radius);\n}\n\n.page-link:hover:not([disabled]):not([aria-current=page]) {\n background-color: var(--mp-pagination-hover-bg);\n color: var(--mp-pagination-hover-color);\n z-index: 1;\n}\n\n.page-link:focus-visible {\n outline: 2px solid var(--mp-pagination-active-bg);\n outline-offset: -2px;\n z-index: 2;\n}\n\n.page-link[aria-current=page] {\n background-color: var(--mp-pagination-active-bg);\n border-color: var(--mp-pagination-active-border-color);\n color: var(--mp-pagination-active-color);\n z-index: 2;\n}\n\n.page-link[disabled],\n.page-link.disabled {\n background-color: var(--mp-pagination-disabled-bg);\n color: var(--mp-pagination-disabled-color);\n cursor: default;\n pointer-events: none;\n}\n\n.ellipsis {\n background-color: var(--mp-pagination-bg);\n border: 1px solid var(--mp-pagination-border-color);\n color: var(--mp-pagination-disabled-color);\n font: inherit;\n font-size: var(--mp-pagination-font-size);\n padding: var(--mp-pagination-padding-y) var(--mp-pagination-padding-x);\n cursor: default;\n user-select: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: -1px;\n}\n\n.visually-hidden {\n position: absolute !important;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n margin: -1px !important;\n overflow: hidden !important;\n clip: rect(0, 0, 0, 0) !important;\n white-space: nowrap !important;\n border: 0 !important;\n}"), o = class extends e {
|
|
5
5
|
constructor(...e) {
|
|
6
6
|
super(...e), this._pageNumbers = [], this._selectedPageNumber = 1, this._numberOfBoxes = 0, this._showArrows = !0, this._size = "medium", this._ariaLabel = "Pagination";
|
|
7
7
|
}
|