@orangelogic/design-system 2.43.0 → 2.44.0-ci.2

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 (31) hide show
  1. package/library/chunks/{color-swatch-group.DrpRd8Xw.js → color-swatch-group.CMz7zQdk.js} +1 -1
  2. package/library/chunks/{file-on-demand.ZcYwCR_s.js → file-on-demand.CODE3g50.js} +1 -1
  3. package/library/chunks/{list-editor.B_BRQoUp.js → list-editor.BZMql0Tj.js} +1 -1
  4. package/library/chunks/ref.BDmlFGTP.js +99 -0
  5. package/library/chunks/{tab-group.g2uXM2W8.js → tab-group.uF5JbAGa.js} +1 -1
  6. package/library/chunks/{table.Be9berv0.js → table.D6Abk0xC.js} +1 -1
  7. package/library/components/atoms.js +3 -3
  8. package/library/components/color-swatch-group.js +2 -2
  9. package/library/components/file-on-demand.js +2 -2
  10. package/library/components/line-clamp.js +19 -19
  11. package/library/components/list-editor.js +2 -2
  12. package/library/components/menu-item.js +678 -13
  13. package/library/components/menu.js +1 -1
  14. package/library/components/molecules.js +1 -1
  15. package/library/components/organisms.js +2 -2
  16. package/library/components/range.js +535 -396
  17. package/library/components/tab-group.js +2 -2
  18. package/library/components/table.js +1 -1
  19. package/library/components/tooltip.js +8 -8
  20. package/library/components/types.js +217 -203
  21. package/library/package.json +1 -1
  22. package/library/packages/atoms/src/components/line-clamp/line-clamp.d.ts +1 -1
  23. package/library/packages/atoms/src/components/range/mark-controller.d.ts +34 -0
  24. package/library/packages/atoms/src/components/range/range.d.ts +6 -8
  25. package/library/packages/atoms/src/components/range/range.utils.d.ts +58 -1
  26. package/library/packages/atoms/src/components/tooltip/tooltip.d.ts +1 -1
  27. package/library/packages/organisms/src/downloader/downloader.d.ts +1 -0
  28. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +6 -1
  29. package/library/react-web-component.d.ts +6 -2
  30. package/package.json +1 -1
  31. package/library/chunks/menu-item.DOFCmq0Z.js +0 -775
@@ -1,5 +1,5 @@
1
1
  import _ from "../components/space.js";
2
- import { C as z } from "./table.Be9berv0.js";
2
+ import { C as z } from "./table.D6Abk0xC.js";
3
3
  import { C as $ } from "./typography.trna8y2b.js";
4
4
  import { x as h, B as F, i as k, n as p, C as A, c as S } from "./custom-element.fmLrnDZr.js";
5
5
  import { C as v, a as m } from "./color-swatch.DkZKPbUq.js";
@@ -25,7 +25,7 @@ import Mt from "../components/relative-time.js";
25
25
  import { C as Bt } from "./select.Bo8mWJ1g.js";
26
26
  import Vt from "../components/space.js";
27
27
  import Ht from "../components/tab.js";
28
- import { C as Wt } from "./tab-group.g2uXM2W8.js";
28
+ import { C as Wt } from "./tab-group.uF5JbAGa.js";
29
29
  import Gt from "../components/tab-panel.js";
30
30
  import qt from "../components/tooltip.js";
31
31
  import { C as Yt } from "./typography.trna8y2b.js";
@@ -7,7 +7,7 @@ import R from "../components/line-clamp.js";
7
7
  import O from "../components/radio.js";
8
8
  import k from "../components/radio-group.js";
9
9
  import C from "../components/space.js";
10
- import { C as T, H as P } from "./table.Be9berv0.js";
10
+ import { C as T, H as P } from "./table.D6Abk0xC.js";
11
11
  import { C as I } from "./typography.trna8y2b.js";
12
12
  import { i as A, n, C as w, x as l, c as E } from "./custom-element.fmLrnDZr.js";
13
13
  import { c as D } from "./component.styles.DtouHn2g.js";
@@ -0,0 +1,99 @@
1
+ import { E as l } from "./custom-element.fmLrnDZr.js";
2
+ import { f as $ } from "./directive-helpers.D78ZFDYN.js";
3
+ import { i as f, t as a, e as _ } from "./directive.oAbCiebi.js";
4
+ /**
5
+ * @license
6
+ * Copyright 2017 Google LLC
7
+ * SPDX-License-Identifier: BSD-3-Clause
8
+ */
9
+ const h = (t, s) => {
10
+ const e = t._$AN;
11
+ if (e === void 0) return !1;
12
+ for (const i of e) i._$AO?.(s, !1), h(i, s);
13
+ return !0;
14
+ }, n = (t) => {
15
+ let s, e;
16
+ do {
17
+ if ((s = t._$AM) === void 0) break;
18
+ e = s._$AN, e.delete(t), t = s;
19
+ } while (e?.size === 0);
20
+ }, d = (t) => {
21
+ for (let s; s = t._$AM; t = s) {
22
+ let e = s._$AN;
23
+ if (e === void 0) s._$AN = e = /* @__PURE__ */ new Set();
24
+ else if (e.has(t)) break;
25
+ e.add(t), v(s);
26
+ }
27
+ };
28
+ function A(t) {
29
+ this._$AN !== void 0 ? (n(this), this._$AM = t, d(this)) : this._$AM = t;
30
+ }
31
+ function u(t, s = !1, e = 0) {
32
+ const i = this._$AH, c = this._$AN;
33
+ if (c !== void 0 && c.size !== 0) if (s) if (Array.isArray(i)) for (let o = e; o < i.length; o++) h(i[o], !1), n(i[o]);
34
+ else i != null && (h(i, !1), n(i));
35
+ else h(this, t);
36
+ }
37
+ const v = (t) => {
38
+ t.type == a.CHILD && (t._$AP ??= u, t._$AQ ??= A);
39
+ };
40
+ class p extends f {
41
+ constructor() {
42
+ super(...arguments), this._$AN = void 0;
43
+ }
44
+ _$AT(s, e, i) {
45
+ super._$AT(s, e, i), d(this), this.isConnected = s._$AU;
46
+ }
47
+ _$AO(s, e = !0) {
48
+ s !== this.isConnected && (this.isConnected = s, s ? this.reconnected?.() : this.disconnected?.()), e && (h(this, s), n(this));
49
+ }
50
+ setValue(s) {
51
+ if ($(this._$Ct)) this._$Ct._$AI(s, this);
52
+ else {
53
+ const e = [...this._$Ct._$AH];
54
+ e[this._$Ci] = s, this._$Ct._$AI(e, this, 0);
55
+ }
56
+ }
57
+ disconnected() {
58
+ }
59
+ reconnected() {
60
+ }
61
+ }
62
+ /**
63
+ * @license
64
+ * Copyright 2020 Google LLC
65
+ * SPDX-License-Identifier: BSD-3-Clause
66
+ */
67
+ const N = () => new G();
68
+ class G {
69
+ }
70
+ const r = /* @__PURE__ */ new WeakMap(), M = _(class extends p {
71
+ render(t) {
72
+ return l;
73
+ }
74
+ update(t, [s]) {
75
+ const e = s !== this.G;
76
+ return e && this.G !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.G = s, this.ht = t.options?.host, this.rt(this.ct = t.element)), l;
77
+ }
78
+ rt(t) {
79
+ if (this.isConnected || (t = void 0), typeof this.G == "function") {
80
+ const s = this.ht ?? globalThis;
81
+ let e = r.get(s);
82
+ e === void 0 && (e = /* @__PURE__ */ new WeakMap(), r.set(s, e)), e.get(this.G) !== void 0 && this.G.call(this.ht, void 0), e.set(this.G, t), t !== void 0 && this.G.call(this.ht, t);
83
+ } else this.G.value = t;
84
+ }
85
+ get lt() {
86
+ return typeof this.G == "function" ? r.get(this.ht ?? globalThis)?.get(this.G) : this.G?.value;
87
+ }
88
+ disconnected() {
89
+ this.lt === this.ct && this.rt(void 0);
90
+ }
91
+ reconnected() {
92
+ this.rt(this.ct);
93
+ }
94
+ });
95
+ export {
96
+ N as e,
97
+ p as f,
98
+ M as n
99
+ };
@@ -18,7 +18,7 @@ import { C as Hn } from "./button.DrU92LJQ.js";
18
18
  import Yn from "../components/dropdown.js";
19
19
  import Xn from "../components/icon-button.js";
20
20
  import qn from "../components/menu.js";
21
- import { C as Gn } from "./menu-item.DOFCmq0Z.js";
21
+ import Gn from "../components/menu-item.js";
22
22
  import Kn from "../components/tab.js";
23
23
  var bi = /* @__PURE__ */ ((o) => (o.Bottom = "bottom", o.End = "end", o.Start = "start", o.Top = "top", o))(bi || {}), Ge = /* @__PURE__ */ ((o) => (o.Center = "center", o.End = "flex-end", o.Start = "flex-start", o))(Ge || {}), wr = /* @__PURE__ */ ((o) => (o.Auto = "auto", o.Manual = "manual", o))(wr || {}), Ke = /* @__PURE__ */ ((o) => (o.Button = "button", o.Default = "default", o.Timeline = "timeline", o))(Ke || {}), yt = /* @__PURE__ */ ((o) => (o.Dropdown = "dropdown", o.Pagination = "pagination", o.Scroll = "scroll", o))(yt || {}), Vt = /* @__PURE__ */ ((o) => (o.Absolute = "absolute", o.DisplayNone = "display-none", o))(Vt || {});
24
24
  function Dt(o) {
@@ -22,7 +22,7 @@ import { c as Qe } from "./repeat.B1pVpmRx.js";
22
22
  import { o as et } from "./style-map.lEJHEwk3.js";
23
23
  import ts from "../components/dropdown.js";
24
24
  import is from "../components/menu.js";
25
- import { C as ss } from "./menu-item.DOFCmq0Z.js";
25
+ import ss from "../components/menu-item.js";
26
26
  import xs from "../components/menu-section.js";
27
27
  import Rs from "../components/input.js";
28
28
  import { C as Ts } from "./typography.trna8y2b.js";
@@ -37,7 +37,7 @@ import { default as Se } from "./input-group.js";
37
37
  import { default as Ae } from "./line-clamp.js";
38
38
  import { default as Pe } from "./markdown.js";
39
39
  import { default as Ge } from "./menu.js";
40
- import { C as ve } from "../chunks/menu-item.DOFCmq0Z.js";
40
+ import { default as ve } from "./menu-item.js";
41
41
  import { default as ke } from "./menu-label.js";
42
42
  import { default as he } from "./menu-section.js";
43
43
  import { default as He } from "./mutation-observer.js";
@@ -64,8 +64,8 @@ import { default as Ro } from "./step.js";
64
64
  import { default as Do } from "./stepper.js";
65
65
  import { default as yo } from "./switch.js";
66
66
  import { default as Mo } from "./tab.js";
67
- import { C as Oo } from "../chunks/tab-group.g2uXM2W8.js";
68
- import { C as wo } from "../chunks/table.Be9berv0.js";
67
+ import { C as Oo } from "../chunks/tab-group.uF5JbAGa.js";
68
+ import { C as wo } from "../chunks/table.D6Abk0xC.js";
69
69
  import { default as Fo } from "./tab-panel.js";
70
70
  import { default as No } from "./tag.js";
71
71
  import { default as Eo } from "./textarea.js";
@@ -1,10 +1,10 @@
1
1
  import "./space.js";
2
- import "../chunks/table.Be9berv0.js";
2
+ import "../chunks/table.D6Abk0xC.js";
3
3
  import "../chunks/typography.trna8y2b.js";
4
4
  import "../chunks/custom-element.fmLrnDZr.js";
5
5
  import "../chunks/color-swatch.DkZKPbUq.js";
6
6
  import "../chunks/component.styles.DtouHn2g.js";
7
- import { C as n } from "../chunks/color-swatch-group.DrpRd8Xw.js";
7
+ import { C as n } from "../chunks/color-swatch-group.CMz7zQdk.js";
8
8
  import "../chunks/content-builder.UlVFSATk.js";
9
9
  import "../chunks/popup.CJrePm7n.js";
10
10
  import "../chunks/i18n.D33BKrRs.js";
@@ -1,4 +1,4 @@
1
- import { C as J } from "../chunks/file-on-demand.ZcYwCR_s.js";
1
+ import { C as J } from "../chunks/file-on-demand.CODE3g50.js";
2
2
  import "./avatar.js";
3
3
  import "../chunks/button.DrU92LJQ.js";
4
4
  import "../chunks/dialog.rme_OwWe.js";
@@ -14,7 +14,7 @@ import "./relative-time.js";
14
14
  import "../chunks/select.Bo8mWJ1g.js";
15
15
  import "./space.js";
16
16
  import "./tab.js";
17
- import "../chunks/tab-group.g2uXM2W8.js";
17
+ import "../chunks/tab-group.uF5JbAGa.js";
18
18
  import "./tab-panel.js";
19
19
  import "./tooltip.js";
20
20
  import "../chunks/tree.DynOxJWg.js";
@@ -1,8 +1,8 @@
1
1
  import "../chunks/button.DrU92LJQ.js";
2
2
  import "./tooltip.js";
3
3
  import "./resize-observer.js";
4
- import { i as g, n as r, C as x, x as h, c as w } from "../chunks/custom-element.fmLrnDZr.js";
5
- import { c as b } from "../chunks/component.styles.DtouHn2g.js";
4
+ import { i as g, n as r, C as b, x as h, c as x } from "../chunks/custom-element.fmLrnDZr.js";
5
+ import { c as w } from "../chunks/component.styles.DtouHn2g.js";
6
6
  import { i as f } from "../chunks/browser.Va59Ix3P.js";
7
7
  import { d as C } from "../chunks/popup.CJrePm7n.js";
8
8
  import { r as u } from "../chunks/state.Dt9F_SuS.js";
@@ -38,28 +38,28 @@ const v = g`
38
38
  padding-left: 0;
39
39
  }
40
40
  `;
41
- var T = Object.defineProperty, B = Object.getOwnPropertyDescriptor, e = (i, s, n, a) => {
42
- for (var l = a > 1 ? void 0 : a ? B(s, n) : s, o = i.length - 1, p; o >= 0; o--)
41
+ var T = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, e = (i, s, n, a) => {
42
+ for (var l = a > 1 ? void 0 : a ? $(s, n) : s, o = i.length - 1, p; o >= 0; o--)
43
43
  (p = i[o]) && (l = (a ? p(s, n, l) : p(l)) || l);
44
44
  return a && l && T(s, n, l), l;
45
45
  };
46
- let t = class extends x {
46
+ let t = class extends b {
47
47
  constructor() {
48
- super(...arguments), this.lines = 1, this.open = !1, this.showMore = !1, this.showMoreText = "View more...", this.showLessText = "View less...", this.disabledTooltip = !1, this.hoverBridge = !0, this.placement = "top", this.isClamped = !1, this.tooltipContent = "", this.calculated = !1;
48
+ super(...arguments), this.lines = 1, this.open = !1, this.showMore = !1, this.showMoreText = "View more...", this.showLessText = "View less...", this.disabledTooltip = !1, this.disabledHoverBridge = !1, this.placement = "top", this.isClamped = !1, this.tooltipContent = "", this.calculated = !1;
49
49
  }
50
50
  async updateTooltipContent() {
51
51
  const s = this.shadowRoot.querySelector("slot").assignedNodes({ flatten: !0 }), n = async (o) => {
52
52
  if (o.nodeType === Node.ELEMENT_NODE)
53
53
  try {
54
- let c = o.childNodes.length > 0 || o.shadowRoot ? "" : o.textContent ?? "";
54
+ let d = o.childNodes.length > 0 || o.shadowRoot ? "" : o.textContent ?? "";
55
55
  if (await customElements.whenDefined(o.nodeName.toLowerCase()), o.shadowRoot) {
56
- const d = o.shadowRoot?.childNodes ?? [];
57
- for (const m of d)
58
- c += await n(m);
56
+ const c = o.shadowRoot?.childNodes ?? [];
57
+ for (const m of c)
58
+ d += await n(m);
59
59
  }
60
- for (const d of o.childNodes)
61
- c += await n(d);
62
- return c.trim();
60
+ for (const c of o.childNodes)
61
+ d += await n(c);
62
+ return d.trim();
63
63
  } catch {
64
64
  }
65
65
  return o.nodeType !== Node.COMMENT_NODE ? o.textContent ?? "" : "";
@@ -134,7 +134,7 @@ let t = class extends x {
134
134
  class="tooltip"
135
135
  content=${this.tooltip}
136
136
  hoist
137
- .hoverBridge=${this.hoverBridge}
137
+ ?disabled-hover-bridge=${this.disabledHoverBridge}
138
138
  .flipBoundary=${this.flipBoundary}
139
139
  .shiftBoundary=${this.shiftBoundary}
140
140
  placement=${this.placement}
@@ -147,7 +147,7 @@ let t = class extends x {
147
147
  class="tooltip"
148
148
  content=${this.tooltipContent}
149
149
  hoist
150
- .hoverBridge=${this.hoverBridge}
150
+ ?disabled-hover-bridge=${this.disabledHoverBridge}
151
151
  .flipBoundary=${this.flipBoundary}
152
152
  .shiftBoundary=${this.shiftBoundary}
153
153
  placement=${this.placement}
@@ -158,7 +158,7 @@ let t = class extends x {
158
158
  `;
159
159
  }
160
160
  };
161
- t.styles = [b, v];
161
+ t.styles = [w, v];
162
162
  e([
163
163
  r({ type: Number })
164
164
  ], t.prototype, "lines", 2);
@@ -181,8 +181,8 @@ e([
181
181
  r({ attribute: "disabled-tooltip", type: Boolean })
182
182
  ], t.prototype, "disabledTooltip", 2);
183
183
  e([
184
- r({ attribute: "hover-bridge", reflect: !0, type: Boolean })
185
- ], t.prototype, "hoverBridge", 2);
184
+ r({ attribute: "disabled-hover-bridge", reflect: !0, type: Boolean })
185
+ ], t.prototype, "disabledHoverBridge", 2);
186
186
  e([
187
187
  r({ attribute: "flip-boundary", type: Object })
188
188
  ], t.prototype, "flipBoundary", 2);
@@ -211,7 +211,7 @@ e([
211
211
  C(100)
212
212
  ], t.prototype, "handleResize", 1);
213
213
  t = e([
214
- w("cx-line-clamp")
214
+ x("cx-line-clamp")
215
215
  ], t);
216
216
  export {
217
217
  t as default
@@ -7,7 +7,7 @@ import "./line-clamp.js";
7
7
  import "./radio.js";
8
8
  import "./radio-group.js";
9
9
  import "./space.js";
10
- import "../chunks/table.Be9berv0.js";
10
+ import "../chunks/table.D6Abk0xC.js";
11
11
  import "../chunks/typography.trna8y2b.js";
12
12
  import "../chunks/custom-element.fmLrnDZr.js";
13
13
  import "../chunks/component.styles.DtouHn2g.js";
@@ -20,7 +20,7 @@ import "../chunks/choose.BTbF6BAn.js";
20
20
  import "../chunks/class-map.DqNfBvJI.js";
21
21
  import "../chunks/repeat.B1pVpmRx.js";
22
22
  import "../chunks/when.Dr1es41R.js";
23
- import { c as v, C as w } from "../chunks/list-editor.B_BRQoUp.js";
23
+ import { c as v, C as w } from "../chunks/list-editor.BZMql0Tj.js";
24
24
  export {
25
25
  v as columnDefaults,
26
26
  w as default