@orangelogic/design-system 2.42.0 → 2.43.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/library/chunks/{confirm-popover.Bh2Uqczy.js → confirm-popover.NWK93E8p.js} +1 -1
- package/library/chunks/{dialog.XjpQ3Rkk.js → dialog.rme_OwWe.js} +86 -80
- package/library/chunks/{file-on-demand.DRcdg2GU.js → file-on-demand.ZcYwCR_s.js} +4 -4
- package/library/chunks/{list-editor.BX8sARxV.js → list-editor.B_BRQoUp.js} +1 -1
- package/library/chunks/{tab-group.BQ3bElvJ.js → tab-group.g2uXM2W8.js} +130 -128
- package/library/components/atoms.js +2 -2
- package/library/components/confirm-popover.js +2 -2
- package/library/components/dialog.js +1 -1
- package/library/components/file-on-demand.js +4 -4
- package/library/components/list-editor.js +2 -2
- package/library/components/molecules.js +2 -2
- package/library/components/organisms.js +1 -1
- package/library/components/sidebar.js +86 -67
- package/library/components/tab-group.js +1 -1
- package/library/components/tab.js +3 -6
- package/library/components/types.js +2817 -2816
- package/library/components/video.js +1 -1
- package/library/css/ol-base.css +2 -2
- package/library/package.json +1 -1
- package/library/packages/molecules/src/sidebar/sidebar.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as _ } from "./button.DrU92LJQ.js";
|
|
2
|
-
import { C as u, D as h } from "./dialog.
|
|
2
|
+
import { C as u, D as h } from "./dialog.rme_OwWe.js";
|
|
3
3
|
import g from "../components/dropdown.js";
|
|
4
4
|
import { C as x } from "./typography.trna8y2b.js";
|
|
5
5
|
import { i as b, n as e, C as y, x as d, c as w } from "./custom-element.fmLrnDZr.js";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
import { c as
|
|
3
|
-
import { O, C as
|
|
1
|
+
import { i as z, n, C as S, x as u, E as D, c as B } from "./custom-element.fmLrnDZr.js";
|
|
2
|
+
import { c as L } from "./component.styles.DtouHn2g.js";
|
|
3
|
+
import { O, C as P, H as $, z as H, o as E } from "./overlayscrollbars.BhATcEys.js";
|
|
4
4
|
import { s as p, g as h, b as c, a as y } from "./animation-registry.DavRkTTr.js";
|
|
5
|
-
import { w as
|
|
6
|
-
import { L as
|
|
7
|
-
import { M as
|
|
8
|
-
import { l as
|
|
9
|
-
import { H as
|
|
10
|
-
import { w as
|
|
11
|
-
import { r as
|
|
12
|
-
import { e as
|
|
5
|
+
import { w as x } from "./event.mFzZi4sr.js";
|
|
6
|
+
import { L as R } from "./i18n.D33BKrRs.js";
|
|
7
|
+
import { M as W } from "./modal.BqNLxgs1.js";
|
|
8
|
+
import { l as w, u as _ } from "./scroll.DwPiX2Ox.js";
|
|
9
|
+
import { H as q } from "./slot.DJLm4Dig.js";
|
|
10
|
+
import { w as k } from "./watch.BCJD77bD.js";
|
|
11
|
+
import { r as m } from "./state.Dt9F_SuS.js";
|
|
12
|
+
import { e as b } from "./query.BBf1UFkC.js";
|
|
13
13
|
import { e as v } from "./class-map.DqNfBvJI.js";
|
|
14
|
-
import { o as
|
|
15
|
-
import { o as
|
|
16
|
-
import { n as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { C as
|
|
14
|
+
import { o as C } from "./if-defined.CKupVaWs.js";
|
|
15
|
+
import { o as A } from "./style-map.lEJHEwk3.js";
|
|
16
|
+
import { n as g } from "./when.Dr1es41R.js";
|
|
17
|
+
import F from "../components/divider.js";
|
|
18
|
+
import I from "../components/icon-button.js";
|
|
19
|
+
import { C as T } from "./popup.CJrePm7n.js";
|
|
20
20
|
var l = /* @__PURE__ */ ((e) => (e.Both = "both", e.Footer = "footer", e.Header = "header", e.None = "none", e))(l || {});
|
|
21
|
-
const
|
|
21
|
+
const j = z`
|
|
22
22
|
:host {
|
|
23
23
|
--width: 31rem;
|
|
24
24
|
--header-spacing: var(--cx-spacing-small) var(--cx-spacing-large);
|
|
25
25
|
--body-spacing: var(--cx-spacing-medium) var(--cx-spacing-large);
|
|
26
|
-
--divider-spacing: 0
|
|
27
|
-
--footer-spacing: var(--cx-spacing-
|
|
26
|
+
--divider-spacing: 0;
|
|
27
|
+
--footer-spacing: var(--cx-spacing-medium);
|
|
28
28
|
--max-width: 100%;
|
|
29
29
|
--max-height: 100%;
|
|
30
30
|
--overlay-background-color: var(--cx-overlay-background-color);
|
|
@@ -167,19 +167,19 @@ const M = k`
|
|
|
167
167
|
pointer-events: auto;
|
|
168
168
|
}
|
|
169
169
|
`;
|
|
170
|
-
var
|
|
170
|
+
var M = Object.defineProperty, U = Object.getOwnPropertyDescriptor, a = (e, o, i, r) => {
|
|
171
171
|
for (var s = r > 1 ? void 0 : r ? U(o, i) : o, d = e.length - 1, f; d >= 0; d--)
|
|
172
172
|
(f = e[d]) && (s = (r ? f(o, i, s) : f(s)) || s);
|
|
173
|
-
return r && s &&
|
|
173
|
+
return r && s && M(o, i, s), s;
|
|
174
174
|
};
|
|
175
175
|
O.plugin({
|
|
176
|
-
ClickScroll:
|
|
177
|
-
ScrollbarsHiding:
|
|
178
|
-
SizeObserver:
|
|
176
|
+
ClickScroll: H,
|
|
177
|
+
ScrollbarsHiding: $,
|
|
178
|
+
SizeObserver: P
|
|
179
179
|
});
|
|
180
180
|
let t = class extends S {
|
|
181
181
|
constructor() {
|
|
182
|
-
super(), this.hasSlotController = new
|
|
182
|
+
super(), this.hasSlotController = new q(this, "footer"), this.localize = new R(this), this.modal = new W(this), this.open = !1, this.label = "", this.noHeader = !1, this.boundary = document.body, this.dividerPosition = l.Header, this.useOverlayScrollbar = !1, this.disableOverlayClick = !1, this.stayOpenOutsideClick = !1, this.strategy = "fixed", this.osInstance = null, this.boundaryObserver = null, this.boundarySize = {
|
|
183
183
|
height: 0,
|
|
184
184
|
width: 0
|
|
185
185
|
}, this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this), this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.preventBoundaryDialogClose = this.preventBoundaryDialogClose.bind(this), this.handleWindowResize = this.handleWindowResize.bind(this);
|
|
@@ -187,10 +187,10 @@ let t = class extends S {
|
|
|
187
187
|
runFirstUpdated() {
|
|
188
188
|
this.popup.hidden = !this.open, this.overlay = this.shadowRoot?.querySelector(
|
|
189
189
|
".dialog__overlay"
|
|
190
|
-
), this.open && (this.addOpenListeners(), this.modal.activate(), (!this.boundary || this.boundary === document.body) &&
|
|
190
|
+
), this.open && (this.addOpenListeners(), this.modal.activate(), (!this.boundary || this.boundary === document.body) && w(this)), this.updatePopupAnchor();
|
|
191
191
|
}
|
|
192
192
|
disconnectedCallback() {
|
|
193
|
-
super.disconnectedCallback(), this.modal.deactivate(), (!this.boundary || this.boundary === document.body) &&
|
|
193
|
+
super.disconnectedCallback(), this.modal.deactivate(), (!this.boundary || this.boundary === document.body) && _(this), this.removeOpenListeners(), window.removeEventListener("resize", this.handleWindowResize);
|
|
194
194
|
}
|
|
195
195
|
shouldUpdate(e) {
|
|
196
196
|
if (e.has("boundary")) {
|
|
@@ -286,7 +286,7 @@ let t = class extends S {
|
|
|
286
286
|
autoHide: "scroll",
|
|
287
287
|
autoHideDelay: 1e3
|
|
288
288
|
}
|
|
289
|
-
})), (!this.boundary || this.boundary === document.body) &&
|
|
289
|
+
})), (!this.boundary || this.boundary === document.body) && w(this);
|
|
290
290
|
const e = this.querySelector("[autofocus]");
|
|
291
291
|
e && e.removeAttribute("autofocus"), await Promise.all([
|
|
292
292
|
y(this.popup),
|
|
@@ -342,7 +342,7 @@ let t = class extends S {
|
|
|
342
342
|
).then(() => {
|
|
343
343
|
this.panel.hidden = !0;
|
|
344
344
|
})
|
|
345
|
-
]), this.overlay && (this.overlay.hidden = !1), this.panel.hidden = !1, (!this.boundary || this.boundary === document.body) &&
|
|
345
|
+
]), this.overlay && (this.overlay.hidden = !1), this.panel.hidden = !1, (!this.boundary || this.boundary === document.body) && _(this);
|
|
346
346
|
const i = this.originalTrigger;
|
|
347
347
|
typeof i?.focus == "function" && setTimeout(() => i.focus()), this.emit("cx-after-hide");
|
|
348
348
|
}
|
|
@@ -350,12 +350,12 @@ let t = class extends S {
|
|
|
350
350
|
/** Shows the dialog. */
|
|
351
351
|
async show() {
|
|
352
352
|
if (!this.open)
|
|
353
|
-
return this.open = !0,
|
|
353
|
+
return this.open = !0, x(this, "cx-after-show");
|
|
354
354
|
}
|
|
355
355
|
/** Hides the dialog */
|
|
356
356
|
async hide() {
|
|
357
357
|
if (this.open)
|
|
358
|
-
return this.open = !1,
|
|
358
|
+
return this.open = !1, x(this, "cx-after-hide");
|
|
359
359
|
}
|
|
360
360
|
render() {
|
|
361
361
|
return u`
|
|
@@ -382,7 +382,7 @@ let t = class extends S {
|
|
|
382
382
|
dialog__overlay: !0
|
|
383
383
|
})}
|
|
384
384
|
tabindex="-1"
|
|
385
|
-
style=${
|
|
385
|
+
style=${A({
|
|
386
386
|
height: `${this.boundarySize.height}px`,
|
|
387
387
|
width: `${this.boundarySize.width}px`
|
|
388
388
|
})}
|
|
@@ -393,45 +393,51 @@ let t = class extends S {
|
|
|
393
393
|
role="dialog"
|
|
394
394
|
aria-modal="true"
|
|
395
395
|
aria-hidden=${this.open ? "false" : "true"}
|
|
396
|
-
aria-label=${
|
|
397
|
-
aria-labelledby=${
|
|
396
|
+
aria-label=${C(this.noHeader ? this.label : void 0)}
|
|
397
|
+
aria-labelledby=${C(this.noHeader ? void 0 : "title")}
|
|
398
398
|
tabindex="-1"
|
|
399
399
|
>
|
|
400
|
-
${
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
<slot name="label">
|
|
404
|
-
${this.label.length > 0 ? this.label : "\uFEFF"}
|
|
405
|
-
</slot>
|
|
406
|
-
</h2>
|
|
407
|
-
<div part="header-actions" class="dialog__header-actions">
|
|
408
|
-
<slot name="header-actions"></slot>
|
|
409
|
-
<cx-icon-button
|
|
410
|
-
part="close-button"
|
|
411
|
-
exportparts="base:close-button__base"
|
|
412
|
-
class="dialog__close"
|
|
413
|
-
name="close"
|
|
414
|
-
label=${this.localize.term("close")}
|
|
415
|
-
@click=${this.handleCloseButtonClick}
|
|
416
|
-
></cx-icon-button>
|
|
417
|
-
</div>
|
|
418
|
-
</header>
|
|
419
|
-
${C(
|
|
420
|
-
[
|
|
421
|
-
l.Header,
|
|
422
|
-
l.Both
|
|
423
|
-
].includes(this.dividerPosition),
|
|
400
|
+
${g(
|
|
401
|
+
this.noHeader,
|
|
402
|
+
() => D,
|
|
424
403
|
() => u`
|
|
425
|
-
|
|
426
|
-
|
|
404
|
+
<header part="header" class="dialog__header">
|
|
405
|
+
<h2 part="title" class="dialog__title" id="title">
|
|
406
|
+
<slot name="label">
|
|
407
|
+
${this.label.length > 0 ? this.label : "\uFEFF"}
|
|
408
|
+
</slot>
|
|
409
|
+
</h2>
|
|
410
|
+
<div part="header-actions" class="dialog__header-actions">
|
|
411
|
+
<slot name="header-actions"></slot>
|
|
412
|
+
<cx-icon-button
|
|
413
|
+
part="close-button"
|
|
414
|
+
exportparts="base:close-button__base"
|
|
415
|
+
class="dialog__close"
|
|
416
|
+
name="close"
|
|
417
|
+
label=${this.localize.term("close")}
|
|
418
|
+
@click=${this.handleCloseButtonClick}
|
|
419
|
+
></cx-icon-button>
|
|
420
|
+
</div>
|
|
421
|
+
</header>
|
|
422
|
+
${g(
|
|
423
|
+
[
|
|
424
|
+
l.Header,
|
|
425
|
+
l.Both
|
|
426
|
+
].includes(this.dividerPosition),
|
|
427
|
+
() => u`
|
|
428
|
+
<cx-divider class="dialog__header-divider"></cx-divider>
|
|
429
|
+
`
|
|
430
|
+
)}
|
|
431
|
+
`
|
|
427
432
|
)}
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
433
|
+
<!-- The tabindex="-1" is here because the body is technically scrollable if overflowing.
|
|
434
|
+
However, if there's no focusable elements inside, you won't actually be able to scroll it via keyboard.
|
|
435
|
+
Previously this was just a <slot>, but tabindex="-1" on the slot causes children to not be focusable.
|
|
436
|
+
https://github.com/shoelace-style/shoelace/issues/1753#issuecomment-1836803277 -->
|
|
431
437
|
<div part="body" class="dialog__body" tabindex="-1">
|
|
432
438
|
<slot></slot>
|
|
433
439
|
</div>
|
|
434
|
-
${
|
|
440
|
+
${g(
|
|
435
441
|
[
|
|
436
442
|
l.Footer,
|
|
437
443
|
l.Both
|
|
@@ -451,23 +457,23 @@ let t = class extends S {
|
|
|
451
457
|
}
|
|
452
458
|
};
|
|
453
459
|
t.styles = [
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
460
|
+
L,
|
|
461
|
+
E,
|
|
462
|
+
j
|
|
457
463
|
];
|
|
458
464
|
t.dependencies = {
|
|
459
|
-
"cx-divider":
|
|
460
|
-
"cx-icon-button":
|
|
461
|
-
"cx-popup":
|
|
465
|
+
"cx-divider": F,
|
|
466
|
+
"cx-icon-button": I,
|
|
467
|
+
"cx-popup": T
|
|
462
468
|
};
|
|
463
469
|
a([
|
|
464
|
-
|
|
470
|
+
b(".popup")
|
|
465
471
|
], t.prototype, "popup", 2);
|
|
466
472
|
a([
|
|
467
|
-
|
|
473
|
+
b(".dialog__panel")
|
|
468
474
|
], t.prototype, "panel", 2);
|
|
469
475
|
a([
|
|
470
|
-
|
|
476
|
+
b(".dialog__body")
|
|
471
477
|
], t.prototype, "body", 2);
|
|
472
478
|
a([
|
|
473
479
|
n({ reflect: !0, type: Boolean })
|
|
@@ -509,22 +515,22 @@ a([
|
|
|
509
515
|
n({ reflect: !0 })
|
|
510
516
|
], t.prototype, "strategy", 2);
|
|
511
517
|
a([
|
|
512
|
-
|
|
518
|
+
m()
|
|
513
519
|
], t.prototype, "overlay", 2);
|
|
514
520
|
a([
|
|
515
|
-
|
|
521
|
+
m()
|
|
516
522
|
], t.prototype, "boundaryObserver", 2);
|
|
517
523
|
a([
|
|
518
|
-
|
|
524
|
+
m()
|
|
519
525
|
], t.prototype, "boundarySize", 2);
|
|
520
526
|
a([
|
|
521
|
-
|
|
527
|
+
k(["boundary"], { waitUntilFirstUpdate: !0 })
|
|
522
528
|
], t.prototype, "updatePopupAnchor", 1);
|
|
523
529
|
a([
|
|
524
|
-
|
|
530
|
+
k("open", { waitUntilFirstUpdate: !0 })
|
|
525
531
|
], t.prototype, "handleOpenChange", 1);
|
|
526
532
|
t = a([
|
|
527
|
-
|
|
533
|
+
B("cx-dialog")
|
|
528
534
|
], t);
|
|
529
535
|
p("dialog.show", {
|
|
530
536
|
keyframes: [
|
|
@@ -14,7 +14,7 @@ import { n as g } from "./when.Dr1es41R.js";
|
|
|
14
14
|
import { a as zt, i as _t, c as Et, b as tt } from "./_baseUniq.BUihBa8c.js";
|
|
15
15
|
import Lt from "../components/avatar.js";
|
|
16
16
|
import { C as Rt } from "./button.DrU92LJQ.js";
|
|
17
|
-
import { C as Pt } from "./dialog.
|
|
17
|
+
import { C as Pt } from "./dialog.rme_OwWe.js";
|
|
18
18
|
import Ft from "../components/divider.js";
|
|
19
19
|
import Ut from "../components/format-bytes.js";
|
|
20
20
|
import kt from "../components/icon-button.js";
|
|
@@ -25,11 +25,11 @@ 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.
|
|
28
|
+
import { C as Wt } from "./tab-group.g2uXM2W8.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";
|
|
32
|
-
import { C as Kt } from "./confirm-popover.
|
|
32
|
+
import { C as Kt } from "./confirm-popover.NWK93E8p.js";
|
|
33
33
|
import { d as Zt } from "./popup.CJrePm7n.js";
|
|
34
34
|
import { a as H } from "./number.eX2EGPvy.js";
|
|
35
35
|
import { o as Xt } from "./style-map.lEJHEwk3.js";
|
|
@@ -692,7 +692,7 @@ const at = (t, e = "https://", i = !1) => i && t.match(we) || t.match(/^[a-zA-Z]
|
|
|
692
692
|
} catch {
|
|
693
693
|
return !1;
|
|
694
694
|
}
|
|
695
|
-
}, we = "^(?![a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/)(?!([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}($|\\/))[^\\s]+$", Se = "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[
|
|
695
|
+
}, we = "^(?![a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/)(?!([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}($|\\/))[^\\s]+$", Se = "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$", As = "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.){2,}[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$";
|
|
696
696
|
function Ie(t, e, i) {
|
|
697
697
|
switch (i.length) {
|
|
698
698
|
case 0:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as _ } from "./button.DrU92LJQ.js";
|
|
2
|
-
import { C as z } from "./dialog.
|
|
2
|
+
import { C as z } from "./dialog.rme_OwWe.js";
|
|
3
3
|
import M from "../components/grid.js";
|
|
4
4
|
import q from "../components/grid-item.js";
|
|
5
5
|
import $ from "../components/input.js";
|