@mintplayer/web-components 2.16.0 → 2.17.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/accordion/index.mjs +5 -5
- package/calendar/index.mjs +1 -1
- package/carousel/index.mjs +57 -143
- package/charts/core/index.mjs +30 -20
- package/charts/core/src/attributes.d.ts +18 -0
- package/charts/core/src/index.d.ts +2 -0
- package/charts/core/src/view-window.d.ts +46 -0
- package/charts/hierarchy/index.mjs +245 -256
- package/charts/hierarchy/src/components/mp-hierarchy-chart.d.ts +1 -3
- package/charts/sparkline/index.mjs +27 -26
- package/charts/trend/index.mjs +21 -20
- package/checkbox/index.mjs +1 -1
- package/checkbox/src/components/mp-checkbox.d.ts +1 -0
- package/chunks/attributes-L3eKsbdy.mjs +16 -0
- package/chunks/color-mode-warning-71FmlzWX.mjs +13 -0
- package/chunks/{form-check.styles-B0pxJ6YC.mjs → form-check.styles-DqvBnspm.mjs} +24 -3
- package/chunks/{mp-calendar.element-CJ8-t-Zn.mjs → mp-calendar.element-BIHS9SZZ.mjs} +11 -6
- package/chunks/{mp-checkbox-CzwS7Y_t.mjs → mp-checkbox-zV83gILn.mjs} +44 -36
- package/chunks/{mp-datatable-B7st6G-I.mjs → mp-datatable-eRpl7-2V.mjs} +173 -173
- package/chunks/{mp-datetime-picker.element-DsWA1AFs.mjs → mp-datetime-picker.element-Cxu5-qRE.mjs} +29 -32
- package/chunks/{mp-pagination-Dea75mD4.mjs → mp-pagination-hGy4dL7p.mjs} +9 -4
- package/chunks/{mp-radio-cL46sUA0.mjs → mp-radio-BhRVNdKp.mjs} +32 -28
- package/chunks/{mp-select-BNrbPwN4.mjs → mp-select-CgqYFvUj.mjs} +41 -26
- package/chunks/{mp-splitter-Ckn1kN4v.mjs → mp-splitter-DLehrw3Y.mjs} +144 -120
- package/chunks/{mp-timepicker.element-CwaAAOcm.mjs → mp-timepicker.element-BiB9lkgc.mjs} +58 -45
- package/chunks/{mp-toggle-button-eo_aTQtu.mjs → mp-toggle-button-CaS9uYLE.mjs} +26 -24
- package/chunks/{mp-treeview-C8iltDbq.mjs → mp-treeview-CaMTDrvY.mjs} +51 -50
- package/chunks/{overlay-controller-DifgO6jT.mjs → overlay-controller-BHDagokg.mjs} +96 -92
- package/chunks/{id-DNZVAnGC.mjs → resource.service--lqLwEqk.mjs} +144 -206
- package/chunks/view-window-DGvFiDnW.mjs +263 -0
- package/code-snippet/index.mjs +70 -66
- package/code-snippet/src/hljs-loaders.generated.d.ts +1 -1
- package/custom-elements.json +65750 -0
- package/datatable/index.mjs +1 -1
- package/datatable/src/components/column-resize.d.ts +11 -0
- package/datatable/src/components/mp-datatable.d.ts +5 -0
- package/datepicker/index.mjs +10 -9
- package/datetime-picker/index.mjs +1 -1
- package/datetime-picker/src/mp-datetime-picker.element.d.ts +3 -0
- package/dock/index.mjs +430 -463
- package/dock/src/components/mint-dock-manager.element.d.ts +25 -2
- package/dock/src/core/resize.d.ts +60 -0
- package/dropdown-menu/index.mjs +4 -2
- package/dropdown-menu/src/components/mp-dropdown-menu.d.ts +6 -1
- package/dropdown-menu/src/index.d.ts +1 -1
- package/dropdown-menu/src/types/dropdown.d.ts +14 -1
- package/dropdown-menu/src/types/index.d.ts +1 -1
- package/file-manager/index.mjs +63 -61
- package/file-manager/src/components/mp-file-manager.d.ts +4 -3
- package/multi-range/index.mjs +56 -50
- package/multi-range/src/mint-multi-range.element.d.ts +4 -10
- package/multi-range/src/pointer-geometry.d.ts +31 -0
- package/navbar/index.mjs +89 -439
- package/overlay/index.mjs +1 -1
- package/overlay/src/overlay-controller.d.ts +0 -14
- package/overlay/src/placement.d.ts +48 -0
- package/package.json +7 -1
- package/pagination/index.mjs +1 -1
- package/phone-input/index.mjs +44 -40
- package/phone-input/src/components/stack.d.ts +8 -0
- package/query-builder/index.mjs +418 -466
- package/query-builder/src/dnd/drag-controller.d.ts +12 -8
- package/query-builder/src/mp-query-builder.element.d.ts +5 -1
- package/query-builder/src/mp-query-condition.element.d.ts +1 -0
- package/radio/index.mjs +1 -1
- package/radio-group/index.mjs +1 -1
- package/ribbon/index.mjs +477 -498
- package/ribbon/src/core/band-text-color.d.ts +10 -0
- package/ribbon/src/core/key-tip-allocator.d.ts +10 -0
- package/ribbon/src/core/plan-reduce-steps.d.ts +62 -0
- package/ribbon/src/mp-ribbon.element.d.ts +0 -27
- package/scheduler/index.mjs +726 -711
- package/scheduler/src/components/mp-scheduler.d.ts +19 -3
- package/scheduler/src/drag/drag-manager.d.ts +1 -9
- package/scheduler/src/input/input-handler.d.ts +12 -2
- package/scheduler/src/utils/geometry.d.ts +39 -0
- package/scheduler/src/views/timeline-view.d.ts +0 -1
- package/scheduler-core/index.mjs +84 -71
- package/scheduler-core/src/services/resource.service.d.ts +0 -12
- package/scheduler-core/src/services/timeline.service.d.ts +0 -9
- package/select/index.mjs +1 -1
- package/select/src/components/mp-select.d.ts +1 -0
- package/signature-pad/index.mjs +21 -23
- package/signature-pad/src/canvas-point.d.ts +26 -0
- package/signature-pad/src/mp-signature-pad.element.d.ts +1 -7
- package/splitter/index.mjs +1 -1
- package/splitter/src/components/mp-splitter.d.ts +16 -0
- package/splitter/src/managers/index.d.ts +1 -0
- package/splitter/src/managers/rescale-panel-sizes.d.ts +14 -0
- package/swiper-core/index.mjs +2 -2
- package/theming/bs-theme-preboot.js +1 -0
- package/theming/color-mode.css +36 -0
- package/theming/index.d.ts +1 -0
- package/theming/index.mjs +327 -0
- package/theming/src/components/mp-theme-toggle.d.ts +71 -0
- package/theming/src/cookie.d.ts +31 -0
- package/theming/src/index.d.ts +5 -0
- package/theming/src/preboot.d.ts +1 -0
- package/theming/src/resolve.d.ts +36 -0
- package/theming/src/store.d.ts +27 -0
- package/theming/src/styles/theme-toggle.styles.d.ts +2 -0
- package/theming/src/testing/fake-broadcast-channel.d.ts +35 -0
- package/theming/src/toggle-modes.d.ts +23 -0
- package/tile-manager/index.mjs +252 -211
- package/tile-manager/src/components/mint-tile-manager.element.d.ts +8 -0
- package/tile-manager/src/utils/grid-geometry.d.ts +49 -0
- package/timeline/index.mjs +156 -164
- package/timeline/src/components/mp-timeline.d.ts +41 -7
- package/timepicker/index.mjs +7 -4
- package/timepicker/src/mp-time-list.element.d.ts +26 -0
- package/timepicker/src/mp-timepicker.element.d.ts +3 -0
- package/toggle-button/index.mjs +1 -1
- package/tree-select/index.mjs +21 -9
- package/treeview/index.mjs +1 -1
- package/treeview/src/components/mp-treeview.d.ts +6 -4
- package/chunks/color-DIeST-IS.mjs +0 -224
- package/query-builder/src/mp-query-condition.element.template.d.ts +0 -2
package/datatable/index.mjs
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Narrowest width, in px, a column can be resized to — by pointer or by keyboard. */
|
|
2
|
+
export declare const MIN_COLUMN_WIDTH = 40;
|
|
3
|
+
/** Width change, in px, of one ArrowLeft/ArrowRight press on a resize handle. */
|
|
4
|
+
export declare const KEYBOARD_RESIZE_STEP = 10;
|
|
5
|
+
/**
|
|
6
|
+
* The width a column takes after being resized by `delta` px from
|
|
7
|
+
* `startWidth`, clamped to the shared floor. One function for both input
|
|
8
|
+
* paths, so a pointer drag and a keyboard press can never disagree about the
|
|
9
|
+
* floor.
|
|
10
|
+
*/
|
|
11
|
+
export declare function resizedColumnWidth(startWidth: number, delta: number): number;
|
|
@@ -540,10 +540,15 @@ export declare class MpDatatable extends LitElement {
|
|
|
540
540
|
/** Keyboard handling on a tree-mode row. Arrow keys + Enter/Space toggle expansion. */
|
|
541
541
|
private onRowKeydown;
|
|
542
542
|
private hasRowClickListeners;
|
|
543
|
+
/**
|
|
544
|
+
* Bound only to the sort <button>, which renders only for sortable columns;
|
|
545
|
+
* the resize handle is the button's sibling, so its clicks never land here.
|
|
546
|
+
*/
|
|
543
547
|
private onHeaderClick;
|
|
544
548
|
private onRowClick;
|
|
545
549
|
private onRowDblClick;
|
|
546
550
|
private onRowContextMenu;
|
|
551
|
+
/** Row checkboxes render only in `'multiple'` mode, so this is multi-select toggling. */
|
|
547
552
|
private onRowCheckboxToggle;
|
|
548
553
|
/**
|
|
549
554
|
* Clears the entire selection. The header checkbox is only rendered when
|
package/datepicker/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { html as d, unsafeCSS as
|
|
1
|
+
import { html as d, unsafeCSS as p, LitElement as u, nothing as c } from "lit";
|
|
2
2
|
import { query as a } from "lit/decorators.js";
|
|
3
|
-
import { O as h } from "../chunks/overlay-controller-
|
|
3
|
+
import { O as h } from "../chunks/overlay-controller-BHDagokg.mjs";
|
|
4
4
|
import "lit/directives/ref.js";
|
|
5
5
|
import { H as b } from "../chunks/host-aria-WSGs7SPQ.mjs";
|
|
6
|
-
import "../chunks/mp-calendar.element-
|
|
6
|
+
import "../chunks/mp-calendar.element-BIHS9SZZ.mjs";
|
|
7
7
|
d`<!-- Rendered dynamically by render(). This file exists only so the codegen-wc
|
|
8
8
|
target emits a \`styles\` export from the sibling .scss. -->`;
|
|
9
|
-
const g =
|
|
9
|
+
const g = p(`:host {
|
|
10
10
|
display: inline-block;
|
|
11
11
|
position: relative;
|
|
12
12
|
box-sizing: border-box;
|
|
@@ -104,7 +104,7 @@ var m = Object.defineProperty, o = (s, e, t, v) => {
|
|
|
104
104
|
};
|
|
105
105
|
const f = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM2 2a1 1 0 0 0-1 1v1h14V3a1 1 0 0 0-1-1H2zm13 3H1v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V5z"/></svg>';
|
|
106
106
|
let y = 0;
|
|
107
|
-
class i extends
|
|
107
|
+
class i extends u {
|
|
108
108
|
constructor() {
|
|
109
109
|
super(...arguments), this.selectedDate = null, this.currentMonth = null, this.disableDateFn = null, this.min = null, this.max = null, this.firstDayOfWeek = 1, this.locale = void 0, this.disabled = !1, this.placeholder = "", this.triggerLabel = "Choose date", this.inputLabel = "Selected date", this.ariaLabelForRender = null, this.ariaLabelledByForSync = null, this.ariaDescribedByForSync = null, this.instanceId = `mp-dp-${++y}`, this.popupId = `${this.instanceId}-popup`, this.hostAria = new b(this, {
|
|
110
110
|
referenceTarget: () => this.displayInputEl ?? null
|
|
@@ -128,7 +128,7 @@ class i extends p {
|
|
|
128
128
|
this.disabled || (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.overlay.isOpen || await this.overlay.open());
|
|
129
129
|
}, this.onSelectedDateChange = (e) => {
|
|
130
130
|
const t = e.detail;
|
|
131
|
-
t instanceof Date && (this.selectedDate = t, this.requestUpdate(), this.dispatchEvent(
|
|
131
|
+
t instanceof Date && (e.stopPropagation(), this.selectedDate = t, this.requestUpdate(), this.dispatchEvent(
|
|
132
132
|
new CustomEvent("selected-date-change", {
|
|
133
133
|
detail: new Date(t.getFullYear(), t.getMonth(), t.getDate()),
|
|
134
134
|
bubbles: !0,
|
|
@@ -137,7 +137,7 @@ class i extends p {
|
|
|
137
137
|
), this.overlay.close());
|
|
138
138
|
}, this.onCurrentMonthChange = (e) => {
|
|
139
139
|
const t = e.detail;
|
|
140
|
-
t instanceof Date && (this.currentMonth = t, this.requestUpdate(), this.dispatchEvent(
|
|
140
|
+
t instanceof Date && (e.stopPropagation(), this.currentMonth = t, this.requestUpdate(), this.dispatchEvent(
|
|
141
141
|
new CustomEvent("current-month-change", {
|
|
142
142
|
detail: new Date(t.getFullYear(), t.getMonth(), 1),
|
|
143
143
|
bubbles: !0,
|
|
@@ -225,6 +225,9 @@ class i extends p {
|
|
|
225
225
|
role="dialog"
|
|
226
226
|
aria-label="${this.triggerLabel}"
|
|
227
227
|
>
|
|
228
|
+
<!-- The one listener for both the default calendar (fallback content is a
|
|
229
|
+
child of the slot) and a slotted consumer calendar. The inner event
|
|
230
|
+
is stopped here and re-emitted once from the host. -->
|
|
228
231
|
<slot name="calendar"
|
|
229
232
|
@selected-date-change="${this.onSelectedDateChange}"
|
|
230
233
|
@current-month-change="${this.onCurrentMonthChange}"
|
|
@@ -237,8 +240,6 @@ class i extends p {
|
|
|
237
240
|
.max="${this.max}"
|
|
238
241
|
.firstDayOfWeek="${this.firstDayOfWeek}"
|
|
239
242
|
.locale="${this.locale}"
|
|
240
|
-
@selected-date-change="${this.onSelectedDateChange}"
|
|
241
|
-
@current-month-change="${this.onCurrentMonthChange}"
|
|
242
243
|
></mp-calendar>
|
|
243
244
|
</slot>
|
|
244
245
|
</div>
|