@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.
Files changed (117) hide show
  1. package/accordion/index.mjs +5 -5
  2. package/calendar/index.mjs +1 -1
  3. package/carousel/index.mjs +57 -143
  4. package/charts/core/index.mjs +30 -20
  5. package/charts/core/src/attributes.d.ts +18 -0
  6. package/charts/core/src/index.d.ts +2 -0
  7. package/charts/core/src/view-window.d.ts +46 -0
  8. package/charts/hierarchy/index.mjs +245 -256
  9. package/charts/hierarchy/src/components/mp-hierarchy-chart.d.ts +1 -3
  10. package/charts/sparkline/index.mjs +27 -26
  11. package/charts/trend/index.mjs +21 -20
  12. package/checkbox/index.mjs +1 -1
  13. package/checkbox/src/components/mp-checkbox.d.ts +1 -0
  14. package/chunks/attributes-L3eKsbdy.mjs +16 -0
  15. package/chunks/color-mode-warning-71FmlzWX.mjs +13 -0
  16. package/chunks/{form-check.styles-B0pxJ6YC.mjs → form-check.styles-DqvBnspm.mjs} +24 -3
  17. package/chunks/{mp-calendar.element-CJ8-t-Zn.mjs → mp-calendar.element-BIHS9SZZ.mjs} +11 -6
  18. package/chunks/{mp-checkbox-CzwS7Y_t.mjs → mp-checkbox-zV83gILn.mjs} +44 -36
  19. package/chunks/{mp-datatable-B7st6G-I.mjs → mp-datatable-eRpl7-2V.mjs} +173 -173
  20. package/chunks/{mp-datetime-picker.element-DsWA1AFs.mjs → mp-datetime-picker.element-Cxu5-qRE.mjs} +29 -32
  21. package/chunks/{mp-pagination-Dea75mD4.mjs → mp-pagination-hGy4dL7p.mjs} +9 -4
  22. package/chunks/{mp-radio-cL46sUA0.mjs → mp-radio-BhRVNdKp.mjs} +32 -28
  23. package/chunks/{mp-select-BNrbPwN4.mjs → mp-select-CgqYFvUj.mjs} +41 -26
  24. package/chunks/{mp-splitter-Ckn1kN4v.mjs → mp-splitter-DLehrw3Y.mjs} +144 -120
  25. package/chunks/{mp-timepicker.element-CwaAAOcm.mjs → mp-timepicker.element-BiB9lkgc.mjs} +58 -45
  26. package/chunks/{mp-toggle-button-eo_aTQtu.mjs → mp-toggle-button-CaS9uYLE.mjs} +26 -24
  27. package/chunks/{mp-treeview-C8iltDbq.mjs → mp-treeview-CaMTDrvY.mjs} +51 -50
  28. package/chunks/{overlay-controller-DifgO6jT.mjs → overlay-controller-BHDagokg.mjs} +96 -92
  29. package/chunks/{id-DNZVAnGC.mjs → resource.service--lqLwEqk.mjs} +144 -206
  30. package/chunks/view-window-DGvFiDnW.mjs +263 -0
  31. package/code-snippet/index.mjs +70 -66
  32. package/code-snippet/src/hljs-loaders.generated.d.ts +1 -1
  33. package/custom-elements.json +65750 -0
  34. package/datatable/index.mjs +1 -1
  35. package/datatable/src/components/column-resize.d.ts +11 -0
  36. package/datatable/src/components/mp-datatable.d.ts +5 -0
  37. package/datepicker/index.mjs +10 -9
  38. package/datetime-picker/index.mjs +1 -1
  39. package/datetime-picker/src/mp-datetime-picker.element.d.ts +3 -0
  40. package/dock/index.mjs +430 -463
  41. package/dock/src/components/mint-dock-manager.element.d.ts +25 -2
  42. package/dock/src/core/resize.d.ts +60 -0
  43. package/dropdown-menu/index.mjs +4 -2
  44. package/dropdown-menu/src/components/mp-dropdown-menu.d.ts +6 -1
  45. package/dropdown-menu/src/index.d.ts +1 -1
  46. package/dropdown-menu/src/types/dropdown.d.ts +14 -1
  47. package/dropdown-menu/src/types/index.d.ts +1 -1
  48. package/file-manager/index.mjs +63 -61
  49. package/file-manager/src/components/mp-file-manager.d.ts +4 -3
  50. package/multi-range/index.mjs +56 -50
  51. package/multi-range/src/mint-multi-range.element.d.ts +4 -10
  52. package/multi-range/src/pointer-geometry.d.ts +31 -0
  53. package/navbar/index.mjs +89 -439
  54. package/overlay/index.mjs +1 -1
  55. package/overlay/src/overlay-controller.d.ts +0 -14
  56. package/overlay/src/placement.d.ts +48 -0
  57. package/package.json +7 -1
  58. package/pagination/index.mjs +1 -1
  59. package/phone-input/index.mjs +44 -40
  60. package/phone-input/src/components/stack.d.ts +8 -0
  61. package/query-builder/index.mjs +418 -466
  62. package/query-builder/src/dnd/drag-controller.d.ts +12 -8
  63. package/query-builder/src/mp-query-builder.element.d.ts +5 -1
  64. package/query-builder/src/mp-query-condition.element.d.ts +1 -0
  65. package/radio/index.mjs +1 -1
  66. package/radio-group/index.mjs +1 -1
  67. package/ribbon/index.mjs +477 -498
  68. package/ribbon/src/core/band-text-color.d.ts +10 -0
  69. package/ribbon/src/core/key-tip-allocator.d.ts +10 -0
  70. package/ribbon/src/core/plan-reduce-steps.d.ts +62 -0
  71. package/ribbon/src/mp-ribbon.element.d.ts +0 -27
  72. package/scheduler/index.mjs +726 -711
  73. package/scheduler/src/components/mp-scheduler.d.ts +19 -3
  74. package/scheduler/src/drag/drag-manager.d.ts +1 -9
  75. package/scheduler/src/input/input-handler.d.ts +12 -2
  76. package/scheduler/src/utils/geometry.d.ts +39 -0
  77. package/scheduler/src/views/timeline-view.d.ts +0 -1
  78. package/scheduler-core/index.mjs +84 -71
  79. package/scheduler-core/src/services/resource.service.d.ts +0 -12
  80. package/scheduler-core/src/services/timeline.service.d.ts +0 -9
  81. package/select/index.mjs +1 -1
  82. package/select/src/components/mp-select.d.ts +1 -0
  83. package/signature-pad/index.mjs +21 -23
  84. package/signature-pad/src/canvas-point.d.ts +26 -0
  85. package/signature-pad/src/mp-signature-pad.element.d.ts +1 -7
  86. package/splitter/index.mjs +1 -1
  87. package/splitter/src/components/mp-splitter.d.ts +16 -0
  88. package/splitter/src/managers/index.d.ts +1 -0
  89. package/splitter/src/managers/rescale-panel-sizes.d.ts +14 -0
  90. package/swiper-core/index.mjs +2 -2
  91. package/theming/bs-theme-preboot.js +1 -0
  92. package/theming/color-mode.css +36 -0
  93. package/theming/index.d.ts +1 -0
  94. package/theming/index.mjs +327 -0
  95. package/theming/src/components/mp-theme-toggle.d.ts +71 -0
  96. package/theming/src/cookie.d.ts +31 -0
  97. package/theming/src/index.d.ts +5 -0
  98. package/theming/src/preboot.d.ts +1 -0
  99. package/theming/src/resolve.d.ts +36 -0
  100. package/theming/src/store.d.ts +27 -0
  101. package/theming/src/styles/theme-toggle.styles.d.ts +2 -0
  102. package/theming/src/testing/fake-broadcast-channel.d.ts +35 -0
  103. package/theming/src/toggle-modes.d.ts +23 -0
  104. package/tile-manager/index.mjs +252 -211
  105. package/tile-manager/src/components/mint-tile-manager.element.d.ts +8 -0
  106. package/tile-manager/src/utils/grid-geometry.d.ts +49 -0
  107. package/timeline/index.mjs +156 -164
  108. package/timeline/src/components/mp-timeline.d.ts +41 -7
  109. package/timepicker/index.mjs +7 -4
  110. package/timepicker/src/mp-time-list.element.d.ts +26 -0
  111. package/timepicker/src/mp-timepicker.element.d.ts +3 -0
  112. package/toggle-button/index.mjs +1 -1
  113. package/tree-select/index.mjs +21 -9
  114. package/treeview/index.mjs +1 -1
  115. package/treeview/src/components/mp-treeview.d.ts +6 -4
  116. package/chunks/color-DIeST-IS.mjs +0 -224
  117. package/query-builder/src/mp-query-condition.element.template.d.ts +0 -2
@@ -1,4 +1,4 @@
1
- import { D as s, M as e, c as o, d as A, s as L } from "../chunks/mp-datatable-B7st6G-I.mjs";
1
+ import { D as s, M as e, c as o, d as A, s as L } from "../chunks/mp-datatable-eRpl7-2V.mjs";
2
2
  export {
3
3
  s as DEFAULT_DATATABLE_LABELS,
4
4
  e as MpDatatable,
@@ -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
@@ -1,12 +1,12 @@
1
- import { html as d, unsafeCSS as u, LitElement as p, nothing as c } from "lit";
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-DifgO6jT.mjs";
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-CJ8-t-Zn.mjs";
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 = u(`:host {
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 p {
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>
@@ -1,4 +1,4 @@
1
- import { M as m } from "../chunks/mp-datetime-picker.element-DsWA1AFs.mjs";
1
+ import { M as m } from "../chunks/mp-datetime-picker.element-Cxu5-qRE.mjs";
2
2
  export {
3
3
  m as MpDatetimePickerElement
4
4
  };
@@ -51,6 +51,9 @@ export declare class MpDatetimePickerElement extends LitElement {
51
51
  };
52
52
  hour12: {
53
53
  attribute: string;
54
+ converter: {
55
+ fromAttribute(value: string | null): Hour12Mode;
56
+ };
54
57
  };
55
58
  step: {
56
59
  attribute: string;