@mintplayer/web-components 2.4.0 → 2.7.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 (54) hide show
  1. package/a11y/index.mjs +9 -8
  2. package/checkbox/index.mjs +1 -1
  3. package/chunks/error-text-B45eDAt1.mjs +17 -0
  4. package/chunks/{form-associated-axmc5sY0.mjs → form-associated-BR-fUvZ1.mjs} +11 -26
  5. package/chunks/{color-CpFtrIoX.mjs → id-BstjfRrz.mjs} +383 -317
  6. package/chunks/{mp-checkbox-Ph2mMRGz.mjs → mp-checkbox-6EJwdUIn.mjs} +6 -5
  7. package/chunks/{mp-datatable-BwTlh9A_.mjs → mp-datatable-25O1GtvU.mjs} +1 -1
  8. package/chunks/mp-datetime-picker.element-MPTRHwyc.mjs +530 -0
  9. package/chunks/{mp-radio-BjW1HNSc.mjs → mp-radio-DvKgrTFL.mjs} +2 -2
  10. package/chunks/{mp-select-Ctu-v1-p.mjs → mp-select-CKX0eM5C.mjs} +5 -4
  11. package/chunks/{mp-timepicker.element-Bz393NDQ.mjs → mp-timepicker.element-COZEUIoE.mjs} +56 -52
  12. package/chunks/{mp-toggle-button-Kz6sIgBJ.mjs → mp-toggle-button-C4Loq_p4.mjs} +5 -4
  13. package/chunks/{overlay-controller-DPt13i8p.mjs → overlay-controller-D6agzzOI.mjs} +19 -4
  14. package/datatable/index.mjs +1 -1
  15. package/datepicker/index.mjs +1 -1
  16. package/datetime-picker/index.mjs +2 -431
  17. package/datetime-picker/src/mp-datetime-picker.element.d.ts +66 -0
  18. package/file-manager/index.mjs +1 -1
  19. package/navbar/index.mjs +1 -1
  20. package/otp-input/index.mjs +4 -3
  21. package/overlay/index.mjs +1 -1
  22. package/overlay/src/overlay-controller.d.ts +13 -0
  23. package/package.json +1 -1
  24. package/query-builder/index.mjs +2 -2
  25. package/radio/index.mjs +1 -1
  26. package/radio-group/index.mjs +2 -2
  27. package/ribbon/index.mjs +1 -1
  28. package/scheduler/index.mjs +3243 -882
  29. package/scheduler/src/components/mp-scheduler.d.ts +410 -2
  30. package/scheduler/src/events/index.d.ts +0 -1
  31. package/scheduler/src/events/scheduler-event-emitter.d.ts +20 -4
  32. package/scheduler/src/state/scheduler-state.d.ts +59 -7
  33. package/scheduler/src/views/base-view.d.ts +29 -0
  34. package/scheduler/src/views/day-view.d.ts +6 -0
  35. package/scheduler/src/views/timeline-view.d.ts +143 -4
  36. package/scheduler/src/views/week-view.d.ts +6 -0
  37. package/scheduler/src/views/year-view.d.ts +4 -2
  38. package/scheduler-core/index.mjs +63 -58
  39. package/scheduler-core/src/models/event.d.ts +6 -2
  40. package/scheduler-core/src/models/events.d.ts +76 -90
  41. package/scheduler-core/src/models/index.d.ts +1 -0
  42. package/scheduler-core/src/models/messages.d.ts +94 -0
  43. package/scheduler-core/src/models/options.d.ts +72 -16
  44. package/scheduler-core/src/models/permissions.d.ts +114 -0
  45. package/scheduler-core/src/models/time-slot.d.ts +15 -0
  46. package/scheduler-core/src/services/resource.service.d.ts +25 -11
  47. package/scheduler-core/src/utils/color.d.ts +22 -0
  48. package/select/index.mjs +1 -1
  49. package/timepicker/index.mjs +4 -3
  50. package/timepicker/src/mp-time-list.element.d.ts +44 -7
  51. package/timepicker/src/mp-timepicker.element.d.ts +5 -0
  52. package/toggle-button/index.mjs +1 -1
  53. package/tree-select/index.mjs +1 -1
  54. package/scheduler/src/events/event-types.d.ts +0 -58
package/a11y/index.mjs CHANGED
@@ -1,24 +1,25 @@
1
- import { L as a } from "../chunks/live-announcer-Bi0orG4n.mjs";
2
- import { F as r, a as t, d as n } from "../chunks/focus-restore-DxuP1Oe2.mjs";
1
+ import { L as o } from "../chunks/live-announcer-Bi0orG4n.mjs";
2
+ import { F as a, a as t, d as n } from "../chunks/focus-restore-DxuP1Oe2.mjs";
3
3
  import { i as c } from "../chunks/inert-regions-DXCnn1LN.mjs";
4
4
  import { F as i, c as m, a as p, d as x } from "../chunks/focus-trap-DTOLJ5bb.mjs";
5
5
  import { R as F, f as b, l as u, n as E } from "../chunks/roving-focus-CrL9982a.mjs";
6
6
  import { H as A, s as C, a as I } from "../chunks/host-aria-WSGs7SPQ.mjs";
7
- import { F as v, e as g, a as H } from "../chunks/form-associated-axmc5sY0.mjs";
7
+ import { e as v, a as g } from "../chunks/error-text-B45eDAt1.mjs";
8
+ import { F as L } from "../chunks/form-associated-BR-fUvZ1.mjs";
8
9
  export {
9
- r as FocusRestore,
10
+ a as FocusRestore,
10
11
  t as FocusRestoreController,
11
12
  i as FocusTrap,
12
- v as FormAssociatedMixin,
13
+ L as FormAssociatedMixin,
13
14
  A as HostAriaController,
14
- a as LiveAnnouncerController,
15
+ o as LiveAnnouncerController,
15
16
  F as RovingFocus,
16
17
  m as collectTabbables,
17
18
  p as containsComposed,
18
19
  n as deepActiveElement,
19
20
  x as dismissStack,
20
- g as errorFeedback,
21
- H as errorFeedbackElements,
21
+ v as errorFeedback,
22
+ g as errorFeedbackElements,
22
23
  b as firstEnabledIndex,
23
24
  c as inertRegions,
24
25
  u as lastEnabledIndex,
@@ -1,4 +1,4 @@
1
- import { M as p } from "../chunks/mp-checkbox-Ph2mMRGz.mjs";
1
+ import { M as p } from "../chunks/mp-checkbox-6EJwdUIn.mjs";
2
2
  export {
3
3
  p as MpCheckbox
4
4
  };
@@ -0,0 +1,17 @@
1
+ import { nothing as o, html as a } from "lit";
2
+ const t = "invalid-feedback", c = { id: o, node: o };
3
+ function l(e, n, s) {
4
+ const r = n?.trim();
5
+ return !r || !s ? c : {
6
+ id: e,
7
+ node: a`<small class=${t} id=${e}>${r}</small>`
8
+ };
9
+ }
10
+ function d(e) {
11
+ const n = e?.querySelector(`.${t}`);
12
+ return n ? [n] : [];
13
+ }
14
+ export {
15
+ d as a,
16
+ l as e
17
+ };
@@ -1,26 +1,13 @@
1
- import { nothing as o, html as m } from "lit";
2
- import { s as d } from "./host-aria-WSGs7SPQ.mjs";
3
- const n = "invalid-feedback", u = { id: o, node: o };
4
- function b(e, s, i) {
5
- const t = s?.trim();
6
- return !t || !i ? u : {
7
- id: e,
8
- node: m`<small class=${n} id=${e}>${t}</small>`
9
- };
10
- }
11
- function F(e) {
12
- const s = e?.querySelector(`.${n}`);
13
- return s ? [s] : [];
14
- }
15
- function y(e) {
16
- class s extends e {
1
+ import { s as n } from "./host-aria-WSGs7SPQ.mjs";
2
+ function h(s) {
3
+ class i extends s {
17
4
  static {
18
5
  this.formAssociated = !0;
19
6
  }
20
7
  /** Effective disabled per the platform, as last reported by the UA. */
21
8
  #e = !1;
22
9
  get internals() {
23
- return d(this);
10
+ return n(this);
24
11
  }
25
12
  get effectiveDisabled() {
26
13
  return this.#e || this.hasAttribute("disabled");
@@ -33,11 +20,11 @@ function y(e) {
33
20
  const t = this.internals;
34
21
  !t || typeof t.setFormValue != "function" || t.setFormValue(this.#t().formValue());
35
22
  }
36
- setFormValidity(t, a) {
37
- const r = this.internals;
38
- if (!r || typeof r.setValidity != "function") return;
39
- const l = this.#t().formValidityAnchor?.() ?? void 0, c = Object.values(t).some(Boolean);
40
- r.setValidity(t, c ? a : void 0, l);
23
+ setFormValidity(t, r) {
24
+ const e = this.internals;
25
+ if (!e || typeof e.setValidity != "function") return;
26
+ const o = this.#t().formValidityAnchor?.() ?? void 0, a = Object.values(t).some(Boolean);
27
+ e.setValidity(t, a ? r : void 0, o);
41
28
  }
42
29
  formDisabledCallback(t) {
43
30
  this.#e = t, this.requestUpdate?.();
@@ -49,10 +36,8 @@ function y(e) {
49
36
  this.#t().formRestore?.(t), this.syncFormValue();
50
37
  }
51
38
  }
52
- return s;
39
+ return i;
53
40
  }
54
41
  export {
55
- y as F,
56
- F as a,
57
- b as e
42
+ h as F
58
43
  };