@orangelogic/design-system 2.170.0 → 2.171.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/{asset-link-format.BSo7khRt.js → asset-link-format.BATKDRgD.js} +1 -1
- package/library/chunks/button.styles.Bcj_XoRt.js +5 -0
- package/library/chunks/{button.DDem_XZq.js → button.zWaIO1sl.js} +1 -1
- package/library/chunks/{color-swatch-group.C_PwK2oY.js → color-swatch-group.CQlgq_I5.js} +3 -3
- package/library/chunks/{confirm-popover.Cx6BUoTL.js → confirm-popover.hHcCIzpX.js} +2 -2
- package/library/chunks/{dialog.B_v8598F.js → dialog.BaHYOyYO.js} +1 -1
- package/library/chunks/{document-viewer.BT1kp8Ig.js → document-viewer.B89YB5oo.js} +1 -1
- package/library/chunks/{folder-select.B9qqU1CQ.js → folder-select.C6Sv4jtu.js} +60 -44
- package/library/chunks/{modal.jdGhujoh.js → modal.Ct0bJBSe.js} +21 -7
- package/library/chunks/{pagination.TxcRv9BL.js → pagination.CwKlKOek.js} +1 -1
- package/library/chunks/{tab-group.BdWDbwBy.js → tab-group.C_n0GEc_.js} +1 -1
- package/library/components/asset-link-format.js +2 -2
- package/library/components/atoms.js +5 -5
- package/library/components/button.js +2 -2
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/confirm-popover.js +3 -3
- package/library/components/dialog.js +2 -2
- package/library/components/document-viewer.js +1 -1
- package/library/components/drawer.js +1 -1
- package/library/components/dynamic-select.js +62 -54
- package/library/components/element-clamp.js +1 -1
- package/library/components/file-on-demand.js +4 -4
- package/library/components/folder-select.js +1 -1
- package/library/components/line-clamp.js +1 -1
- package/library/components/molecules.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +2 -2
- package/library/components/radio-button.js +1 -1
- package/library/components/tab-group.js +2 -2
- package/library/components/types.js +21 -15
- package/library/package.json +1 -1
- package/library/packages/molecules/src/dynamic-select/dynamic-select.d.ts +7 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -0
- package/library/packages/types/src/content-builder.d.ts +5 -0
- package/library/packages/utils/src/custom-element/modal.d.ts +7 -0
- package/library/react-web-component.d.ts +4 -0
- package/library/utils.js +1 -1
- package/package.json +1 -1
- package/library/chunks/button.styles.BersilzZ.js +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../components/cropper.js";
|
|
2
|
-
import { C as Z } from "./button.
|
|
2
|
+
import { C as Z } from "./button.zWaIO1sl.js";
|
|
3
3
|
import L from "../components/space.js";
|
|
4
4
|
import { C as U } from "./typography.IqHbnd3C.js";
|
|
5
5
|
import { n as l, C as B } from "./lib-cortex-element.CVMmyPMC.js";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { i as o } from "./lit-element.jLBm65_O.js";
|
|
2
|
+
const r = o`:host{--background-color:var(--cx-color-primary);--color:light-dark(var(--cx-color-neutral-0),var(--cx-color-neutral-1000));--font-size:var(--cx-font-size-medium);--font-weight:var(--cx-font-weight-medium);--height:var(--cx-input-height-medium);--justify-content:center;--gap:0;--min-height:auto;--padding:0;--label-line-height:1.15;--button-custom-height:32px;--button-custom-padding:4px 8px 4px 8px;--button-custom-font-size:var(--cx-font-size-medium);cursor:pointer;width:auto;max-width:100%;line-height:normal;display:inline-block;position:relative}:host([width-type=fill]),:host([width-type=adaptive][device-type=tablet]),:host([width-type=adaptive][device-type=mobile]){width:100%}.button{align-items:center;justify-content:var(--justify-content,center);gap:var(--gap,0);border-style:solid;border-width:var(--cx-input-border-width);width:100%;font-family:var(--font-family,var(--cx-input-font-family)), var(--cx-font-sans);font-style:var(--font-style,normal);font-weight:var(--font-weight,var(--cx-font-weight-regular));font-size:var(--font-size,var(--cx-font-size-medium));height:var(--height,var(--cx-input-height-medium));min-height:var(--min-height,auto);padding:var(--padding,0);text-transform:var(--cx-button-text-transform,none);-webkit-user-select:none;user-select:none;white-space:nowrap;vertical-align:middle;transition:var(--cx-transition-x-fast) background-color, var(--cx-transition-x-fast) color, var(--cx-transition-x-fast) border, var(--cx-transition-x-fast) box-shadow;cursor:inherit;text-decoration:none;display:inline-flex}.button::-moz-focus-inner{border:0}.button:focus{outline:none}.button:focus-visible{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.button--disabled{opacity:.5;cursor:default}.button--disabled *{pointer-events:none}.button__prefix,.button__suffix{pointer-events:none;flex:none;align-items:center;display:flex}.button__label{line-height:var(--label-line-height);white-space:nowrap;text-overflow:ellipsis;display:none;overflow:hidden}.button__label::slotted(cx-icon){vertical-align:-2px}.button__label--has-label{display:inline-block}.button--standard.button--default{background-color:var(--cx-color-neutral-100);border-color:var(--cx-color-neutral-100);color:var(--cx-color-neutral-700)}.button--standard.button--default:hover:not(.button--disabled){background-color:var(--cx-color-neutral-200);border-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral-700)}.button--standard.button--default.button--focused:not(.button--disabled):not(:hover),.button--standard.button--default:focus-visible:not(.button--disabled):not(:hover){background-color:var(--cx-color-neutral-100);border-color:var(--cx-color-neutral-100);color:var(--cx-color-neutral-700)}.button--standard.button--default:active:not(.button--disabled){background-color:var(--cx-color-neutral-300);border-color:var(--cx-color-neutral-300);color:var(--cx-color-neutral-700)}.button--standard.button--primary{background-color:var(--cx-color-primary);border-color:var(--cx-color-primary);color:var(--cx-color-neutral-0)}.button--standard.button--primary:hover:not(.button--disabled){background-color:var(--cx-color-primary-500);border-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.button--standard.button--primary.button--focused:not(.button--disabled):not(:hover),.button--standard.button--primary:focus-visible:not(.button--disabled):not(:hover){background-color:var(--cx-color-primary);border-color:var(--cx-color-primary);color:var(--cx-color-neutral-0)}.button--standard.button--primary:active:not(.button--disabled){background-color:var(--cx-color-primary-700);border-color:var(--cx-color-primary-700);color:var(--cx-color-neutral-0)}.button--standard.button--success{background-color:var(--cx-color-success);border-color:var(--cx-color-success);color:var(--cx-color-neutral-0)}.button--standard.button--success:hover:not(.button--disabled){background-color:var(--cx-color-success-500);border-color:var(--cx-color-success-500);color:var(--cx-color-neutral-0)}.button--standard.button--success.button--focused:not(.button--disabled):not(:hover),.button--standard.button--success:focus-visible:not(.button--disabled):not(:hover){background-color:var(--cx-color-success);border-color:var(--cx-color-success);color:var(--cx-color-neutral-0)}.button--standard.button--success:active:not(.button--disabled){background-color:var(--cx-color-success-700);border-color:var(--cx-color-success-700);color:var(--cx-color-neutral-0)}.button--standard.button--warning{background-color:var(--cx-color-warning);border-color:var(--cx-color-warning);color:var(--cx-color-neutral-0)}.button--standard.button--warning:hover:not(.button--disabled){background-color:var(--cx-color-warning-500);border-color:var(--cx-color-warning-500);color:var(--cx-color-neutral-0)}.button--standard.button--warning.button--focused:not(.button--disabled):not(:hover),.button--standard.button--warning:focus-visible:not(.button--disabled):not(:hover){background-color:var(--cx-color-warning);border-color:var(--cx-color-warning);color:var(--cx-color-neutral-0)}.button--standard.button--warning:active:not(.button--disabled){background-color:var(--cx-color-warning-700);border-color:var(--cx-color-warning-700);color:var(--cx-color-neutral-0)}.button--standard.button--danger{background-color:var(--cx-color-danger);border-color:var(--cx-color-danger);color:var(--cx-color-neutral-0)}.button--standard.button--danger:hover:not(.button--disabled){background-color:var(--cx-color-danger-500);border-color:var(--cx-color-danger-500);color:var(--cx-color-neutral-0)}.button--standard.button--danger.button--focused:not(.button--disabled):not(:hover),.button--standard.button--danger:focus-visible:not(.button--disabled):not(:hover){background-color:var(--cx-color-danger);border-color:var(--cx-color-danger);color:var(--cx-color-neutral-0)}.button--standard.button--danger:active:not(.button--disabled){background-color:var(--cx-color-danger-700);border-color:var(--cx-color-danger-700);color:var(--cx-color-neutral-0)}.button--standard.button--custom{background-color:var(--background-color);border-color:var(--background-color);color:var(--color)}.button--standard.button--custom:hover:not(.button--disabled){background-color:var(--background-color-focus,var(--background-color));border-color:var(--background-color-focus,var(--background-color));color:var(--color-focus,var(--color))}.button--standard.button--custom.button--focused:not(.button--disabled):not(:hover),.button--standard.button--custom:focus-visible:not(.button--disabled):not(:hover){background-color:var(--background-color);border-color:var(--background-color);color:var(--color)}.button--standard.button--custom:active:not(.button--disabled){background-color:var(--background-color-active,var(--background-color));border-color:var(--background-color-active,var(--background-color));color:var(--color-active,var(--color))}.button--outline{border:solid var(--cx-input-border-width);background:0 0}.button--outline.button--default{border-color:var(--cx-input-border-color);color:var(--cx-color-neutral)}.button--outline.button--default:hover:not(.button--disabled),.button--outline.button--default.button--checked:not(.button--disabled){border-color:var(--cx-color-neutral-300);background-color:var(--cx-color-neutral-100);color:var(--cx-color-neutral)}.button--outline.button--default.button--focused:not(.button--disabled):not(:hover):not(.button--checked),.button--outline.button--default:focus-visible:not(.button--disabled):not(:hover):not(.button--checked){border-color:var(--cx-input-border-color);color:var(--cx-color-neutral);background-color:#0000}.button--outline.button--default:active:not(.button--disabled){border-color:var(--cx-color-neutral-300);background-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral)}.button--outline.button--primary{border-color:var(--cx-color-primary);color:var(--cx-color-primary)}.button--outline.button--primary:hover:not(.button--disabled),.button--outline.button--primary.button--checked:not(.button--disabled){background-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.button--outline.button--primary.button--focused:not(.button--disabled):not(:hover):not(.button--checked),.button--outline.button--primary:focus-visible:not(.button--disabled):not(:hover):not(.button--checked){border-color:var(--cx-color-primary);color:var(--cx-color-primary);background-color:#0000}.button--outline.button--primary:active:not(.button--disabled){border-color:var(--cx-color-primary-700);background-color:var(--cx-color-primary-700);color:var(--cx-color-neutral-0)}.button--outline.button--success{border-color:var(--cx-color-success);color:var(--cx-color-success)}.button--outline.button--success:hover:not(.button--disabled),.button--outline.button--success.button--checked:not(.button--disabled){background-color:var(--cx-color-success-500);color:var(--cx-color-neutral-0)}.button--outline.button--success.button--focused:not(.button--disabled):not(:hover):not(.button--checked),.button--outline.button--success:focus-visible:not(.button--disabled):not(:hover):not(.button--checked){border-color:var(--cx-color-success);color:var(--cx-color-success);background-color:#0000}.button--outline.button--success:active:not(.button--disabled){border-color:var(--cx-color-success);background-color:var(--cx-color-success);color:var(--cx-color-neutral-0)}.button--outline.button--warning{border-color:var(--cx-color-warning);color:var(--cx-color-warning)}.button--outline.button--warning:hover:not(.button--disabled),.button--outline.button--warning.button--checked:not(.button--disabled){background-color:var(--cx-color-warning-500);color:var(--cx-color-neutral-0)}.button--outline.button--warning.button--focused:not(.button--disabled):not(:hover):not(.button--checked),.button--outline.button--warning:focus-visible:not(.button--disabled):not(:hover):not(.button--checked){border-color:var(--cx-color-warning);color:var(--cx-color-warning);background-color:#0000}.button--outline.button--warning:active:not(.button--disabled){border-color:var(--cx-color-warning-700);background-color:var(--cx-color-warning-700);color:var(--cx-color-neutral-0)}.button--outline.button--danger{border-color:var(--cx-color-danger);color:var(--cx-color-danger)}.button--outline.button--danger:hover:not(.button--disabled),.button--outline.button--danger.button--checked:not(.button--disabled){background-color:var(--cx-color-danger-500);color:var(--cx-color-neutral-0)}.button--outline.button--danger.button--focused:not(.button--disabled):not(:hover):not(.button--checked),.button--outline.button--danger:focus-visible:not(.button--disabled):not(:hover):not(.button--checked){border-color:var(--cx-color-danger);color:var(--cx-color-danger);background-color:#0000}.button--outline.button--danger:active:not(.button--disabled){border-color:var(--cx-color-danger-700);background-color:var(--cx-color-danger-700);color:var(--cx-color-neutral-0)}@media (forced-colors:active){.button.button--outline.button--checked:not(.button--disabled){outline:2px solid #0000}}.button--text{color:var(--cx-color-neutral);background-color:#0000;border-color:#0000}.button--text:hover:not(.button--disabled){background-color:var(--cx-color-neutral-100);border-color:var(--cx-color-neutral-100);color:var(--cx-color-neutral)}.button--text.button--focused:not(.button--disabled):not(:hover),.button--text:focus-visible:not(.button--disabled):not(:hover){color:var(--cx-color-neutral);background-color:#0000;border-color:#0000}.button--text:active:not(.button--disabled){background-color:var(--cx-color-neutral-200);border-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral)}.button--tertiary{color:var(--cx-color-neutral);background-color:#0000;border-color:#0000}.button--tertiary:hover:not(.button--disabled){background-color:var(--cx-color-neutral-100);color:var(--cx-color-neutral);border-color:#0000}.button--tertiary.button--focused:not(.button--disabled):not(:hover),.button--tertiary:focus-visible:not(.button--disabled):not(:hover){color:var(--cx-color-neutral);background-color:#0000;border-color:#0000}.button--tertiary:active:not(.button--disabled){background-color:var(--cx-color-neutral-300);color:var(--cx-color-neutral);border-color:#0000}.button--small{height:auto;min-height:var(--cx-input-height-small);font-size:var(--cx-button-font-size-medium);border-radius:var(--cx-button-border-radius-small)}.button--small ::slotted(cx-icon){--font-size:var(--cx-font-size-medium)}.button--medium{height:auto;min-height:var(--cx-input-height-medium);font-size:var(--cx-button-font-size-medium);border-radius:var(--cx-button-border-radius-medium)}.button--large{height:auto;min-height:var(--cx-input-height-large);font-size:var(--cx-button-font-size-medium);border-radius:var(--cx-button-border-radius-large)}.button--x-large{height:auto;min-height:var(--cx-input-height-x-large);font-size:var(--cx-button-font-size-medium);border-radius:var(--cx-button-border-radius-large)}.button--custom-size{--height:var(--button-custom-height);--padding:var(--button-custom-padding);--font-size:var(--button-custom-font-size);--font-family:var(--button-custom-font-family), var(--cx-font-sans);--font-style:var(--button-custom-font-style);--font-weight:var(--button-custom-font-weight);border-radius:var(--cx-button-border-radius-medium)}.button--pill.button--small{border-radius:var(--cx-input-height-small)}.button--pill.button--medium{border-radius:var(--cx-input-height-medium)}.button--pill.button--large{border-radius:var(--cx-input-height-large)}.button--pill.button--x-large{border-radius:var(--cx-input-height-x-large)}.button--circle{padding-left:0;padding-right:0}.button--circle.button--small{width:var(--cx-input-height-small);border-radius:50%}.button--circle.button--medium{width:var(--cx-input-height-medium);border-radius:50%}.button--circle.button--large{width:var(--cx-input-height-large);border-radius:50%}.button--circle.button--x-large{width:var(--cx-input-height-x-large);border-radius:50%}.button--circle .button__prefix,.button--circle .button__suffix,.button--circle .button__caret{display:none}.button--circle .button__label{justify-content:center;align-items:center;line-height:1;display:inline-flex}.button--caret .button__caret{--font-size:var(--caret-font-size,var(--cx-font-size-large));margin-block:auto}.button--caret.button--small .button__caret{--font-size:var(--caret-font-size,var(--cx-font-size-medium))}.button--caret .button__suffix{display:none}.button--loading{cursor:wait;position:relative}.button--loading .button__prefix,.button--loading .button__label,.button--loading .button__suffix,.button--loading .button__caret{visibility:hidden}.button--loading cx-spinner{--indicator-color:currentColor;width:1em;height:1em;font-size:1em;position:absolute;top:calc(50% - .5em);left:calc(50% - .5em)}.button ::slotted(cx-badge){pointer-events:none;position:absolute;top:0;right:0;translate:50% -50%}.button--rtl ::slotted(cx-badge){left:0;right:auto;translate:-50% -50%}.button--has-label.button--small .button__label{padding:0 var(--cx-spacing-x-small)}.button--has-label.button--medium .button__label{padding:0 var(--cx-spacing-small)}.button--has-label.button--large .button__label{padding:0 var(--cx-spacing-medium)}.button--has-label.button--x-large .button__label{padding:0 var(--cx-spacing-large)}.button--has-prefix.button--small,.button--has-prefix.button--small .button__label,.button--has-prefix.button--medium,.button--has-prefix.button--medium .button__label{padding-inline-start:var(--cx-spacing-x-small)}.button--has-prefix.button--large{padding-inline-start:var(--cx-spacing-small)}.button--has-prefix.button--large .button__label{padding-inline-start:var(--cx-spacing-x-small)}.button--has-prefix.button--x-large,.button--has-prefix.button--x-large .button__label{padding-inline-start:var(--cx-spacing-medium)}.button--has-suffix.button--small,.button--caret.button--small,.button--has-suffix.button--small .button__label,.button--caret.button--small .button__label,.button--has-suffix.button--medium,.button--caret.button--medium,.button--has-suffix.button--medium .button__label,.button--caret.button--medium .button__label{padding-inline-end:var(--cx-spacing-x-small)}.button--has-suffix.button--large,.button--caret.button--large{padding-inline-end:var(--cx-spacing-small)}.button--has-suffix.button--large .button__label,.button--caret.button--large .button__label{padding-inline-end:var(--cx-spacing-x-small)}.button--has-suffix.button--x-large,.button--caret.button--x-large,.button--has-suffix.button--x-large .button__label,.button--caret.button--x-large .button__label{padding-inline-end:var(--cx-spacing-medium)}.button--caret cx-icon::part(span){height:auto}:host([data-cx-button-group__button--first]:not([data-cx-button-group__button--last])) .button{border-start-end-radius:0;border-end-end-radius:0}:host([data-cx-button-group__button--inner]) .button{border-radius:0}:host([data-cx-button-group__button--last]:not([data-cx-button-group__button--first])) .button{border-start-start-radius:0;border-end-start-radius:0}:host([data-cx-button-group__button]:not([data-cx-button-group__button--first])){margin-inline-start:calc(-1 * var(--cx-input-border-width))}:host([data-cx-button-group__button]:not([data-cx-button-group__button--first],[data-cx-button-group__button--radio],[variant=default]):not(:hover)) .button:after{content:"";top:0;inset-inline-start:0;mix-blend-mode:multiply;border-left:1px solid #80808054;position:absolute;bottom:0}:host([data-cx-button-group__button--hover]){z-index:1}:host([data-cx-button-group__button--focus]),:host([data-cx-button-group__button][checked]){z-index:2}`;
|
|
3
|
+
export {
|
|
4
|
+
r as b
|
|
5
|
+
};
|
|
@@ -13,7 +13,7 @@ import { n as b } from "./when.Dr1es41R.js";
|
|
|
13
13
|
import { u as h, i as m } from "./static.UA3G1Deq.js";
|
|
14
14
|
import { C as D } from "./icon.D5iM9wXS.js";
|
|
15
15
|
import B from "../components/spinner.js";
|
|
16
|
-
import { b as F } from "./button.styles.
|
|
16
|
+
import { b as F } from "./button.styles.Bcj_XoRt.js";
|
|
17
17
|
var v = /* @__PURE__ */ ((t) => (t.Adaptive = "adaptive", t.Fill = "fill", t.Hug = "hug", t))(v || {}), l = /* @__PURE__ */ ((t) => (t.Custom = "custom", t.Large = "large", t.Medium = "medium", t.Small = "small", t.XLarge = "x-large", t))(l || {}), k = Object.defineProperty, V = Object.getOwnPropertyDescriptor, r = (t, s, p, n) => {
|
|
18
18
|
for (var a = n > 1 ? void 0 : n ? V(s, p) : s, d = t.length - 1, c; d >= 0; d--)
|
|
19
19
|
(c = t[d]) && (a = (n ? c(s, p, a) : c(a)) || a);
|
|
@@ -3,8 +3,8 @@ import { C as Ir, T as Rn } from "./typography.IqHbnd3C.js";
|
|
|
3
3
|
import { n as m, C as Pe } from "./lib-cortex-element.CVMmyPMC.js";
|
|
4
4
|
import { C as Hr, a as es } from "./color-swatch.DpzAGKQx.js";
|
|
5
5
|
import { c as $e } from "./component.styles.CRO4Odto.js";
|
|
6
|
-
import { C as Ct } from "./button.
|
|
7
|
-
import { C as Sn, o as kn, O as No } from "./dialog.
|
|
6
|
+
import { C as Ct } from "./button.zWaIO1sl.js";
|
|
7
|
+
import { C as Sn, o as kn, O as No } from "./dialog.BaHYOyYO.js";
|
|
8
8
|
import { C as oi } from "./icon-button.DJvfUmOl.js";
|
|
9
9
|
import Pt from "../components/tooltip.js";
|
|
10
10
|
import { i as Nr, r as Dn, f as Jt, m as Tn, a as Mn, t as Vr, g as Fn, b as Ln, c as zn } from "./toast.CXEAfCvN.js";
|
|
@@ -40,7 +40,7 @@ import { o as pt } from "./style-map.llVFPd__.js";
|
|
|
40
40
|
import ai from "../components/dropdown.js";
|
|
41
41
|
import ta from "../components/menu-section.js";
|
|
42
42
|
import Gr from "../components/checkbox.js";
|
|
43
|
-
import { C as ia, P as sa } from "./pagination.
|
|
43
|
+
import { C as ia, P as sa } from "./pagination.CwKlKOek.js";
|
|
44
44
|
import { H as Ur } from "./slot.j5oheLJC.js";
|
|
45
45
|
import { g as B, a as Bo } from "./dom.C5aVLhKS.js";
|
|
46
46
|
import "./browser.BHOCIF_A.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as _ } from "./button.
|
|
2
|
-
import { C as u, D as h } from "./dialog.
|
|
1
|
+
import { C as _ } from "./button.zWaIO1sl.js";
|
|
2
|
+
import { C as u, D as h } from "./dialog.BaHYOyYO.js";
|
|
3
3
|
import g from "../components/dropdown.js";
|
|
4
4
|
import { C as x } from "./typography.IqHbnd3C.js";
|
|
5
5
|
import { n as e, C as b } from "./lib-cortex-element.CVMmyPMC.js";
|
|
@@ -4,7 +4,7 @@ import { i as _s, x as He, E as fr } from "./lit-element.jLBm65_O.js";
|
|
|
4
4
|
import { a as ie, s as Te, w as os } from "./event.BeKOsirN.js";
|
|
5
5
|
import { c as br } from "./custom-element.L4WJXn1j.js";
|
|
6
6
|
import { L as yr } from "./i18n.DbXTTLXx.js";
|
|
7
|
-
import { M as gr } from "./modal.
|
|
7
|
+
import { M as gr } from "./modal.Ct0bJBSe.js";
|
|
8
8
|
import { l as ss, u as rs } from "./scroll.xtO5yojm.js";
|
|
9
9
|
import { H as mr } from "./slot.j5oheLJC.js";
|
|
10
10
|
import { w as $s } from "./watch.DJF5K-8U.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as resizableComponentStyles, R as ResizableElement, a as ResizeDirection, b as HeightMode } from "./resizable-component.styles.CAfXABBc.js";
|
|
2
|
-
import { C as CxButton } from "./button.
|
|
2
|
+
import { C as CxButton } from "./button.zWaIO1sl.js";
|
|
3
3
|
import CxDrawer from "../components/drawer.js";
|
|
4
4
|
import CxDropdown from "../components/dropdown.js";
|
|
5
5
|
import { C as CxIcon } from "./icon.D5iM9wXS.js";
|
|
@@ -3,7 +3,7 @@ import { C as me } from "./input.B-c9KEAH.js";
|
|
|
3
3
|
import re from "../components/line-clamp.js";
|
|
4
4
|
import ye from "../components/select.js";
|
|
5
5
|
import ge from "../components/tag.js";
|
|
6
|
-
import { C as
|
|
6
|
+
import { C as S, a as xe } from "./tree.B0-6Ny9b.js";
|
|
7
7
|
import { n as s, C as B } from "./lib-cortex-element.CVMmyPMC.js";
|
|
8
8
|
import { h as z, F as be, A as $e } from "./endpoints.CwgTrs4A.js";
|
|
9
9
|
import { M as P } from "./asset-link-format.ClaYu_v8.js";
|
|
@@ -12,11 +12,11 @@ import { c as N } from "./custom-element.L4WJXn1j.js";
|
|
|
12
12
|
import { L as W } from "./i18n.DbXTTLXx.js";
|
|
13
13
|
import { w as m } from "./watch.DJF5K-8U.js";
|
|
14
14
|
import { g as R, p as K, e as q } from "./string.BhJ0Zogu.js";
|
|
15
|
-
import { x as y, i as
|
|
15
|
+
import { x as y, i as ve } from "./lit-element.jLBm65_O.js";
|
|
16
16
|
import { r as g } from "./state.CSDxrqLd.js";
|
|
17
17
|
import { e as ie } from "./query.BBf1UFkC.js";
|
|
18
|
-
import { r as
|
|
19
|
-
import { C as le } from "./button.
|
|
18
|
+
import { r as Se } from "./choose.BTbF6BAn.js";
|
|
19
|
+
import { C as le } from "./button.zWaIO1sl.js";
|
|
20
20
|
import { d as Ie } from "./debounce.DaHuiSGU.js";
|
|
21
21
|
import { o as p } from "./if-defined.BRoBj_Rp.js";
|
|
22
22
|
import { c as G } from "./repeat.CFjcER6_.js";
|
|
@@ -36,12 +36,12 @@ async function H({
|
|
|
36
36
|
includeDirectChild: u,
|
|
37
37
|
limit: f = De,
|
|
38
38
|
searchTerm: $,
|
|
39
|
-
self:
|
|
39
|
+
self: D,
|
|
40
40
|
start: Q = 0,
|
|
41
41
|
token: pe
|
|
42
42
|
}) {
|
|
43
43
|
let U = [], j = u ?? !0;
|
|
44
|
-
e && e.length > 0 && !i ? (U = e,
|
|
44
|
+
e && e.length > 0 && !i ? (U = e, D = !0, j = !1) : i && (U = [i]);
|
|
45
45
|
try {
|
|
46
46
|
return (await z.request({
|
|
47
47
|
baseURL: t,
|
|
@@ -55,7 +55,7 @@ async function H({
|
|
|
55
55
|
Limit: f,
|
|
56
56
|
ObjectRecordIDs: U,
|
|
57
57
|
SeeThru: !!$,
|
|
58
|
-
Self:
|
|
58
|
+
Self: D,
|
|
59
59
|
Start: Q,
|
|
60
60
|
Text: $ || void 0,
|
|
61
61
|
Token: pe || void 0
|
|
@@ -66,7 +66,7 @@ async function H({
|
|
|
66
66
|
responseType: "json",
|
|
67
67
|
transformResponse: [
|
|
68
68
|
...Array.isArray(z.defaults.transformResponse) ? z.defaults.transformResponse : [],
|
|
69
|
-
(I,
|
|
69
|
+
(I, Le, E) => {
|
|
70
70
|
if (E !== void 0 && (E < 200 || E >= 300))
|
|
71
71
|
return {
|
|
72
72
|
data: [],
|
|
@@ -78,12 +78,12 @@ async function H({
|
|
|
78
78
|
const fe = I.contentItems?.length ?? 0;
|
|
79
79
|
return {
|
|
80
80
|
data: I.contentItems?.map((x) => {
|
|
81
|
-
const
|
|
81
|
+
const L = x.fields[b.DocType] ?? "", O = x.fields[b.TitleWithFallback] ?? "", w = x.fields[b.CortexPath] ?? "", M = w.endsWith("/") && w.length > 1 ? w.slice(0, -1) : w;
|
|
82
82
|
let Z = M;
|
|
83
|
-
(
|
|
83
|
+
(L === P.Album || L === P.ProjectDocument) && (Z = M ? `${M}/${O}` : O);
|
|
84
84
|
const J = x.fields[b.DocSubTypeIsFontIcon];
|
|
85
85
|
return {
|
|
86
|
-
docType:
|
|
86
|
+
docType: L,
|
|
87
87
|
fullPath: Z,
|
|
88
88
|
hasChildren: x.fields[b.HasBrowserChildren] === "1",
|
|
89
89
|
iconColor: x.fields[b.DocSubTypeIconColor],
|
|
@@ -92,7 +92,7 @@ async function H({
|
|
|
92
92
|
id: x.recordID,
|
|
93
93
|
isFontIcon: J === void 0 ? void 0 : J === "1",
|
|
94
94
|
representativeAssetId: x.fields[b.RepresentativeAssetId] ?? "",
|
|
95
|
-
title:
|
|
95
|
+
title: O
|
|
96
96
|
};
|
|
97
97
|
}) ?? [],
|
|
98
98
|
hasMore: Q + fe < I.totalCount,
|
|
@@ -114,7 +114,7 @@ const oe = {
|
|
|
114
114
|
fromAttribute: (e) => (e ?? "").split(" ").filter((t) => t !== ""),
|
|
115
115
|
toAttribute: (e) => e.join(" ")
|
|
116
116
|
};
|
|
117
|
-
var
|
|
117
|
+
var F = /* @__PURE__ */ ((e) => (e.Input = "input", e.Select = "select", e))(F || {}), _e = Object.defineProperty, we = Object.getOwnPropertyDescriptor, h = (e, t, r, l) => {
|
|
118
118
|
for (var i = l > 1 ? void 0 : l ? we(t, r) : t, u = e.length - 1, f; u >= 0; u--)
|
|
119
119
|
(f = e[u]) && (i = (l ? f(t, r, i) : f(i)) || i);
|
|
120
120
|
return l && i && _e(t, r, i), i;
|
|
@@ -199,8 +199,8 @@ let a = class extends B {
|
|
|
199
199
|
const $ = q(f);
|
|
200
200
|
if (!$.path.trim() || !$.id.trim())
|
|
201
201
|
continue;
|
|
202
|
-
const
|
|
203
|
-
if (
|
|
202
|
+
const D = K($.path);
|
|
203
|
+
if (D.startsWith(r) && D !== r) {
|
|
204
204
|
i = !0;
|
|
205
205
|
break;
|
|
206
206
|
}
|
|
@@ -253,7 +253,7 @@ a.dependencies = {
|
|
|
253
253
|
"cx-icon": te,
|
|
254
254
|
"cx-line-clamp": re,
|
|
255
255
|
"cx-space": Fe,
|
|
256
|
-
"cx-tree-item":
|
|
256
|
+
"cx-tree-item": S
|
|
257
257
|
};
|
|
258
258
|
h([
|
|
259
259
|
ie("cx-tree-item")
|
|
@@ -359,10 +359,10 @@ var ke = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, ne = (e) =
|
|
|
359
359
|
for (var i = l > 1 ? void 0 : l ? Ve(t, r) : t, u = e.length - 1, f; u >= 0; u--)
|
|
360
360
|
(f = e[u]) && (i = (l ? f(t, r, i) : f(i)) || i);
|
|
361
361
|
return l && i && ke(t, r, i), i;
|
|
362
|
-
}, ce = (e, t, r) => t.has(e) || ne("Cannot " + r),
|
|
362
|
+
}, ce = (e, t, r) => t.has(e) || ne("Cannot " + r), v = (e, t, r) => (ce(e, t, "read from private field"), t.get(e)), A = (e, t, r) => t.has(e) ? ne("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), X = (e, t, r, l) => (ce(e, t, "write to private field"), t.set(e, r), r), _, V, T;
|
|
363
363
|
let n = class extends B {
|
|
364
364
|
constructor() {
|
|
365
|
-
super(...arguments), this.localize = new W(this), this.minQueryLength = 1, this.selection = "single", this.searchTerm = "", this.selectedValue = "", this.token = "", this.bearerToken = "", this.baseUrl = "", this.allowedFolders = [], this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.seeThru = !1, this.extraFolderData = null, this.api = H, this.excludeVirtualFolders = !1, this.firstFetchCallback = null, this.autoPageSize = !1, this.data = [], this.hasMore = !1, this.loading = !1, this.preloading = !1, this.preloadedFolders = [], this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], A(this, _, !1), A(this, V, 10), A(this,
|
|
365
|
+
super(...arguments), this.localize = new W(this), this.minQueryLength = 1, this.selection = "single", this.searchTerm = "", this.selectedValue = "", this.token = "", this.bearerToken = "", this.baseUrl = "", this.allowedFolders = [], this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.seeThru = !1, this.extraFolderData = null, this.api = H, this.excludeVirtualFolders = !1, this.firstFetchCallback = null, this.autoPageSize = !1, this.data = [], this.hasMore = !1, this.loading = !1, this.preloading = !1, this.preloadedFolders = [], this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], A(this, _, !1), A(this, V, 10), A(this, T, /* @__PURE__ */ new Set());
|
|
366
366
|
}
|
|
367
367
|
get empty() {
|
|
368
368
|
return !this.loading && this.data.length === 0;
|
|
@@ -457,10 +457,10 @@ let n = class extends B {
|
|
|
457
457
|
}
|
|
458
458
|
async handleFetchFolders() {
|
|
459
459
|
const { data: e, hasMore: t } = await this.fetchFolders();
|
|
460
|
-
|
|
460
|
+
v(this, _) || (e.length > 0 && this.firstFetchCallback?.(e), X(this, _, !0)), this.data = e, this.hasMore = t, this.loading = !1, this.seedSelectionFromValue(e), this.removePreloadedFolders(e), await this.preloadSelectedFolders();
|
|
461
461
|
}
|
|
462
462
|
async handleSelectedValueChange() {
|
|
463
|
-
if (!
|
|
463
|
+
if (!v(this, _))
|
|
464
464
|
return;
|
|
465
465
|
const e = new Set(
|
|
466
466
|
this.selectedValue.split(/[\s,]+/).filter(Boolean)
|
|
@@ -499,7 +499,7 @@ let n = class extends B {
|
|
|
499
499
|
bearerToken: this.bearerToken,
|
|
500
500
|
excludeVirtualFolders: this.excludeVirtualFolders,
|
|
501
501
|
folderId: "",
|
|
502
|
-
limit:
|
|
502
|
+
limit: v(this, V),
|
|
503
503
|
searchTerm: this.searchTerm,
|
|
504
504
|
seeThru: this.seeThru,
|
|
505
505
|
start: 0,
|
|
@@ -528,7 +528,7 @@ let n = class extends B {
|
|
|
528
528
|
...this.data.map((i) => i.id),
|
|
529
529
|
...this.extraFolderData ? [this.extraFolderData.id] : [],
|
|
530
530
|
...this.preloadedFolders.map((i) => i.id),
|
|
531
|
-
...
|
|
531
|
+
...v(this, T),
|
|
532
532
|
...[
|
|
533
533
|
...this.querySelectorAll(
|
|
534
534
|
"cx-folder-select-tree-item"
|
|
@@ -539,7 +539,7 @@ let n = class extends B {
|
|
|
539
539
|
);
|
|
540
540
|
if (r.length === 0)
|
|
541
541
|
return;
|
|
542
|
-
r.forEach((i) =>
|
|
542
|
+
r.forEach((i) => v(this, T).add(i)), this.preloading = !0;
|
|
543
543
|
const l = [];
|
|
544
544
|
if (await Promise.all(
|
|
545
545
|
r.map(async (i) => {
|
|
@@ -561,7 +561,7 @@ let n = class extends B {
|
|
|
561
561
|
} catch {
|
|
562
562
|
}
|
|
563
563
|
})
|
|
564
|
-
), r.forEach((i) =>
|
|
564
|
+
), r.forEach((i) => v(this, T).delete(i)), this.preloading = v(this, T).size > 0, l.length > 0) {
|
|
565
565
|
const i = new Set(this.preloadedFolders.map((f) => f.id)), u = l.filter((f) => !i.has(f.id));
|
|
566
566
|
u.length > 0 && (this.preloadedFolders = [...this.preloadedFolders, ...u].sort(
|
|
567
567
|
(f, $) => f.title.localeCompare($.title)
|
|
@@ -613,7 +613,7 @@ let n = class extends B {
|
|
|
613
613
|
};
|
|
614
614
|
_ = /* @__PURE__ */ new WeakMap();
|
|
615
615
|
V = /* @__PURE__ */ new WeakMap();
|
|
616
|
-
|
|
616
|
+
T = /* @__PURE__ */ new WeakMap();
|
|
617
617
|
n.dependencies = {
|
|
618
618
|
"cx-button": le,
|
|
619
619
|
"cx-folder-select-tree-item": a,
|
|
@@ -716,24 +716,24 @@ d([
|
|
|
716
716
|
n = d([
|
|
717
717
|
N("cx-folder-select-tree")
|
|
718
718
|
], n);
|
|
719
|
-
const Pe =
|
|
719
|
+
const Pe = ve`:host{flex-direction:column;width:100%;height:100%;min-height:0;max-height:100%;display:flex}.folder-select{gap:var(--cx-spacing-x-small);flex-direction:column;flex:1;width:100%;min-height:0;display:flex}.folder-select__search{flex-shrink:0}.folder-select__tree{flex-direction:column;flex:1;min-height:0;display:flex}.folder-select-tree{flex:1;min-height:0;overflow:auto}.folder-select-tree__item__icon{color:var(--cx-color-primary)}.folder-select-tree__empty-message{font-size:var(--cx-font-size-small);color:var(--cx-color-neutral-500);padding-block:var(--cx-spacing-2x-small);padding-inline:var(--cx-spacing-small);text-align:center;cursor:default;user-select:none}.folder-select-tree__load-more{margin-inline:var(--cx-spacing-small)}.folder-select-tree-item::part(label),.folder-select-tree-item__label,.folder-select-tree-item__title{overflow:hidden}`;
|
|
720
720
|
var Re = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, he = (e) => {
|
|
721
721
|
throw TypeError(e);
|
|
722
722
|
}, c = (e, t, r, l) => {
|
|
723
723
|
for (var i = l > 1 ? void 0 : l ? Ue(t, r) : t, u = e.length - 1, f; u >= 0; u--)
|
|
724
724
|
(f = e[u]) && (i = (l ? f(t, r, i) : f(i)) || i);
|
|
725
725
|
return l && i && Re(t, r, i), i;
|
|
726
|
-
}, de = (e, t, r) => t.has(e) || he("Cannot " + r), Y = (e, t, r) => (de(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Ee = (e, t, r) => t.has(e) ? he("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), ee = (e, t, r, l) => (de(e, t, "write to private field"), t.set(e, r), r),
|
|
726
|
+
}, de = (e, t, r) => t.has(e) || he("Cannot " + r), Y = (e, t, r) => (de(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Ee = (e, t, r) => t.has(e) ? he("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), ee = (e, t, r, l) => (de(e, t, "write to private field"), t.set(e, r), r), C;
|
|
727
727
|
let o = class extends B {
|
|
728
728
|
constructor() {
|
|
729
|
-
super(), this.localize = new W(this), this.minQueryLength = 1, this.selection = "single", this.variant =
|
|
729
|
+
super(), this.localize = new W(this), this.minQueryLength = 1, this.selection = "single", this.variant = F.Input, this.value = "", this.name = "", this.selectedLabel = "", this.baseUrl = "", this.allowedFolders = [], this.open = !1, this.token = "", this.bearerToken = "", this.seeThru = !1, this.api = H, this.required = !1, this.form = void 0, this.excludeVirtualFolders = !1, this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.autoPageSize = !1, this.firstFetchCallback = null, this.searchTerm = "", this.treeLoading = !1, Ee(this, C), this.selectGetOptionValue = this.selectGetOptionValue.bind(this), this.selectGetOptionLabel = this.selectGetOptionLabel.bind(this), this.selectGetOptionSelected = this.selectGetOptionSelected.bind(this), this.selectFilterCallback = this.selectFilterCallback.bind(this), this.selectSetOptionSelected = this.selectSetOptionSelected.bind(this), this.selectGetTag = this.selectGetTag.bind(this), this.updateWrappedApi();
|
|
730
730
|
}
|
|
731
731
|
updateWrappedApi() {
|
|
732
732
|
if (!this.api) {
|
|
733
|
-
ee(this,
|
|
733
|
+
ee(this, C, void 0);
|
|
734
734
|
return;
|
|
735
735
|
}
|
|
736
|
-
ee(this,
|
|
736
|
+
ee(this, C, async (e) => {
|
|
737
737
|
try {
|
|
738
738
|
return await this.api(e);
|
|
739
739
|
} catch (t) {
|
|
@@ -757,6 +757,22 @@ let o = class extends B {
|
|
|
757
757
|
handleTreeLoadingChange(e) {
|
|
758
758
|
this.treeLoading = e.detail.loading;
|
|
759
759
|
}
|
|
760
|
+
/**
|
|
761
|
+
* Lazy-loaded tree children can grow the popup's content well past its
|
|
762
|
+
* original height. cx-popup only recomputes flip/placement on scroll,
|
|
763
|
+
* resize, or viewport changes (Floating UI's autoUpdate) — not on
|
|
764
|
+
* internal content mutations — so without this the popup can stay
|
|
765
|
+
* anchored below the trigger even after it no longer fits there.
|
|
766
|
+
*
|
|
767
|
+
* Clearing --auto-size-available-height/-width first matters as much as
|
|
768
|
+
* the reposition() call itself: cx-select's own auto-size CSS clamps the
|
|
769
|
+
* listbox to the *previous* available space, so flip's overflow check
|
|
770
|
+
* still measures the clamped (small) height and never decides to flip
|
|
771
|
+
* (see the same clear in cx-select's filterOptionsByInput()).
|
|
772
|
+
*/
|
|
773
|
+
async handleTreeChildrenLoaded() {
|
|
774
|
+
this.variant !== F.Select || !this.selectEl || (await this.selectEl.updateComplete, this.selectEl.popup.style.removeProperty("--auto-size-available-width"), this.selectEl.popup.style.removeProperty("--auto-size-available-height"), this.selectEl.popup.reposition());
|
|
775
|
+
}
|
|
760
776
|
handleSelectClear() {
|
|
761
777
|
if (this.searchTerm = "", this.selection !== "multiple")
|
|
762
778
|
return;
|
|
@@ -813,17 +829,17 @@ let o = class extends B {
|
|
|
813
829
|
this.syncValueFromTree(), this.syncSelectValue(), this.selectEl.handleDefaultSlotChange(), await this.selectEl.updateComplete, this.searchTerm = e, this.selectEl.displayLabel = this.searchTerm;
|
|
814
830
|
}
|
|
815
831
|
selectGetOptionValue(e) {
|
|
816
|
-
return !e || !(e instanceof
|
|
832
|
+
return !e || !(e instanceof S) ? this.value : e.dataset.id || this.value;
|
|
817
833
|
}
|
|
818
834
|
selectGetOptionLabel(e) {
|
|
819
|
-
return !e || !(e instanceof
|
|
835
|
+
return !e || !(e instanceof S) ? this.selectedLabel : e.dataset.name || this.selectedLabel;
|
|
820
836
|
}
|
|
821
837
|
selectGetOptionSelected(e) {
|
|
822
|
-
if (!(!e || !(e instanceof
|
|
838
|
+
if (!(!e || !(e instanceof S)))
|
|
823
839
|
return e.selected;
|
|
824
840
|
}
|
|
825
841
|
selectFilterCallback(e) {
|
|
826
|
-
return !(!e || !(e instanceof
|
|
842
|
+
return !(!e || !(e instanceof S));
|
|
827
843
|
}
|
|
828
844
|
/**
|
|
829
845
|
* Custom tag renderer for cx-select multi mode. Identical visuals to the
|
|
@@ -840,11 +856,11 @@ let o = class extends B {
|
|
|
840
856
|
remove-button:tag__remove-button,
|
|
841
857
|
remove-button__base:tag__remove-button__base
|
|
842
858
|
" removable @cx-remove=${(r) => {
|
|
843
|
-
r.stopPropagation(), e instanceof
|
|
859
|
+
r.stopPropagation(), e instanceof S && (e.selected = !1);
|
|
844
860
|
}}><cx-line-clamp lines="1">${this.selectGetOptionLabel(e)}</cx-line-clamp></cx-tag>`;
|
|
845
861
|
}
|
|
846
862
|
selectSetOptionSelected(e, t) {
|
|
847
|
-
if (!(!e || !(e instanceof
|
|
863
|
+
if (!(!e || !(e instanceof S)) && this.selection !== "multiple") {
|
|
848
864
|
if (t === void 0) {
|
|
849
865
|
e.selected = !e.selected;
|
|
850
866
|
return;
|
|
@@ -865,25 +881,25 @@ let o = class extends B {
|
|
|
865
881
|
}
|
|
866
882
|
}
|
|
867
883
|
async handleVariantChange() {
|
|
868
|
-
this.variant ===
|
|
884
|
+
this.variant === F.Select && (await this.updateComplete, this.updateFunctionProps());
|
|
869
885
|
}
|
|
870
886
|
handleValueChange() {
|
|
871
887
|
this.selectEl && (this.searchTerm = "", this.selectEl.getOptionValue = this.selectGetOptionValue, this.selectEl.getOptionLabel = this.selectGetOptionLabel, this.selectEl.getOptionSelected = this.selectGetOptionSelected, this.selectEl.filterCallback = this.selectFilterCallback, this.selectEl.setOptionSelected = this.selectSetOptionSelected, this.selectEl.getTag = this.selectGetTag, this.syncSelectValue(), this.selectEl.handleDefaultSlotChange());
|
|
872
888
|
}
|
|
873
889
|
render() {
|
|
874
|
-
return y`<div class="folder-select">${
|
|
890
|
+
return y`<div class="folder-select">${Se(this.variant, [
|
|
875
891
|
[
|
|
876
|
-
|
|
877
|
-
() => y`<cx-input class="folder-select__search" aria-label=${this.localize.term("searchFolders")} placeholder=${`${this.localize.term("searchFolders")}...`} value=${this.searchTerm} clearable @cx-input=${this.handleSearchTermInputChange}><cx-icon name="search" slot="prefix"></cx-icon></cx-input><cx-folder-select-tree class="folder-select__tree" base-url=${this.baseUrl} extra-folder-id=${this.extraFolderId} extra-folder-title=${this.extraFolderTitle} extra-folder-icon=${this.extraFolderIcon} min-query-length=${this.minQueryLength} search-term=${this.searchTerm} selected-value=${this.value} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?see-thru=${this.seeThru} ?auto-page-size=${this.autoPageSize} .allowedFolders=${this.allowedFolders} .api=${Y(this,
|
|
892
|
+
F.Input,
|
|
893
|
+
() => y`<cx-input class="folder-select__search" aria-label=${this.localize.term("searchFolders")} placeholder=${`${this.localize.term("searchFolders")}...`} value=${this.searchTerm} clearable @cx-input=${this.handleSearchTermInputChange}><cx-icon name="search" slot="prefix"></cx-icon></cx-input><cx-folder-select-tree class="folder-select__tree" base-url=${this.baseUrl} extra-folder-id=${this.extraFolderId} extra-folder-title=${this.extraFolderTitle} extra-folder-icon=${this.extraFolderIcon} min-query-length=${this.minQueryLength} search-term=${this.searchTerm} selected-value=${this.value} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?see-thru=${this.seeThru} ?auto-page-size=${this.autoPageSize} .allowedFolders=${this.allowedFolders} .api=${Y(this, C)} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree>`
|
|
878
894
|
],
|
|
879
895
|
[
|
|
880
|
-
|
|
881
|
-
() => y`<cx-select clearable hoist lazy name=${this.name} value=${this.value} .form=${this.form} ?required=${this.required} ?multiple=${this.selection === "multiple"} ?loading=${this.treeLoading} @input=${this.handleSearchTermSelectChange} @cx-clear=${this.handleSelectClear} @cx-selected-change=${this.handleTreeSelectedChange} @cx-folder-select-selection-seeded=${this.handleTreeSelectedChange} @cx-folder-select-loading-change=${this.handleTreeLoadingChange} allow-freetext><cx-folder-select-tree base-url=${this.baseUrl} extra-folder-id=${this.extraFolderId} extra-folder-title=${this.extraFolderTitle} extra-folder-icon=${this.extraFolderIcon} min-query-length=${this.minQueryLength} search-term=${this.searchTerm} selected-value=${this.value} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?see-thru=${this.seeThru} ?auto-page-size=${this.autoPageSize} .allowedFolders=${this.allowedFolders} .api=${Y(this,
|
|
896
|
+
F.Select,
|
|
897
|
+
() => y`<cx-select clearable hoist lazy name=${this.name} value=${this.value} .form=${this.form} ?required=${this.required} ?multiple=${this.selection === "multiple"} ?loading=${this.treeLoading} @input=${this.handleSearchTermSelectChange} @cx-clear=${this.handleSelectClear} @cx-selected-change=${this.handleTreeSelectedChange} @cx-folder-select-selection-seeded=${this.handleTreeSelectedChange} @cx-folder-select-loading-change=${this.handleTreeLoadingChange} @cx-folder-select-children-loaded=${this.handleTreeChildrenLoaded} allow-freetext><cx-folder-select-tree base-url=${this.baseUrl} extra-folder-id=${this.extraFolderId} extra-folder-title=${this.extraFolderTitle} extra-folder-icon=${this.extraFolderIcon} min-query-length=${this.minQueryLength} search-term=${this.searchTerm} selected-value=${this.value} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?see-thru=${this.seeThru} ?auto-page-size=${this.autoPageSize} .allowedFolders=${this.allowedFolders} .api=${Y(this, C)} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree></cx-select>`
|
|
882
898
|
]
|
|
883
899
|
])}</div>`;
|
|
884
900
|
}
|
|
885
901
|
};
|
|
886
|
-
|
|
902
|
+
C = /* @__PURE__ */ new WeakMap();
|
|
887
903
|
o.styles = [se, Pe];
|
|
888
904
|
o.dependencies = {
|
|
889
905
|
"cx-folder-select-tree": n,
|
|
@@ -1002,7 +1018,7 @@ o = c([
|
|
|
1002
1018
|
], o);
|
|
1003
1019
|
export {
|
|
1004
1020
|
o as C,
|
|
1005
|
-
|
|
1021
|
+
F,
|
|
1006
1022
|
H as a,
|
|
1007
1023
|
oe as s
|
|
1008
1024
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
import { g as
|
|
1
|
+
import { g as u, a as h } from "./active-elements.jTVWtBDp.js";
|
|
2
|
+
import { g as l } from "./tabbable.BwnZBHrm.js";
|
|
3
3
|
let i = [];
|
|
4
4
|
function v() {
|
|
5
5
|
return [...i];
|
|
@@ -11,11 +11,11 @@ class m {
|
|
|
11
11
|
}, this.handleKeyDown = (n) => {
|
|
12
12
|
if (n.key !== "Tab" || this.isExternalActivated || !this.isActive())
|
|
13
13
|
return;
|
|
14
|
-
const o =
|
|
14
|
+
const o = u();
|
|
15
15
|
if (this.previousFocus = o, this.previousFocus && this.possiblyHasTabbableChildren(this.previousFocus))
|
|
16
16
|
return;
|
|
17
17
|
n.shiftKey ? this.tabDirection = "backward" : this.tabDirection = "forward";
|
|
18
|
-
const t =
|
|
18
|
+
const t = l(this.element);
|
|
19
19
|
let s = t.findIndex(
|
|
20
20
|
(r) => r === o
|
|
21
21
|
);
|
|
@@ -30,7 +30,7 @@ class m {
|
|
|
30
30
|
if (this.tabDirection === "backward" && this.previousFocus && this.possiblyHasTabbableChildren(this.previousFocus) || r && this.possiblyHasTabbableChildren(r))
|
|
31
31
|
return;
|
|
32
32
|
n.preventDefault(), this.currentFocus = r, this.currentFocus?.focus({ preventScroll: !1 });
|
|
33
|
-
const a = [...
|
|
33
|
+
const a = [...h()];
|
|
34
34
|
if (a.includes(this.currentFocus) || !a.includes(this.previousFocus))
|
|
35
35
|
break;
|
|
36
36
|
}
|
|
@@ -59,10 +59,24 @@ class m {
|
|
|
59
59
|
deactivateExternal() {
|
|
60
60
|
this.isExternalActivated = !1;
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Focus counts as inside if either tree says so. `:focus-within` follows the
|
|
64
|
+
* render tree and covers content slotted in from elsewhere, but stops at the
|
|
65
|
+
* top layer (e.g. a hoisted listbox in a popover); the active element chain
|
|
66
|
+
* follows the DOM tree and covers that.
|
|
67
|
+
*/
|
|
68
|
+
hasFocusInside() {
|
|
69
|
+
if (this.element.matches(":focus-within"))
|
|
70
|
+
return !0;
|
|
71
|
+
for (const e of h())
|
|
72
|
+
if (this.element === e || this.element.contains(e))
|
|
73
|
+
return !0;
|
|
74
|
+
return !1;
|
|
75
|
+
}
|
|
62
76
|
checkFocus() {
|
|
63
77
|
if (this.isActive() && !this.isExternalActivated) {
|
|
64
|
-
const e =
|
|
65
|
-
if (!this.
|
|
78
|
+
const e = l(this.element);
|
|
79
|
+
if (!this.hasFocusInside()) {
|
|
66
80
|
const n = e[0], o = e[e.length - 1], t = this.tabDirection === "forward" ? n : o;
|
|
67
81
|
typeof t?.focus == "function" && (this.currentFocus = t, t.focus({ preventScroll: !1 }));
|
|
68
82
|
}
|
|
@@ -10,7 +10,7 @@ import { r as S } from "./state.CSDxrqLd.js";
|
|
|
10
10
|
import { e as $ } from "./class-map.BiVq-cVR.js";
|
|
11
11
|
import { c as x } from "./repeat.CFjcER6_.js";
|
|
12
12
|
import { n as g } from "./when.Dr1es41R.js";
|
|
13
|
-
import { C as w } from "./button.
|
|
13
|
+
import { C as w } from "./button.zWaIO1sl.js";
|
|
14
14
|
import { C as v } from "./input.B-c9KEAH.js";
|
|
15
15
|
import { C as I } from "./option.Bvyag0r1.js";
|
|
16
16
|
import B from "../components/select.js";
|
|
@@ -17,7 +17,7 @@ import { i as Ji } from "./guard.D4axKaMo.js";
|
|
|
17
17
|
import { o as tr } from "./map.D8heArFD.js";
|
|
18
18
|
import { o as Ue } from "./style-map.llVFPd__.js";
|
|
19
19
|
import { n as Pe } from "./when.Dr1es41R.js";
|
|
20
|
-
import { C as Yn } from "./button.
|
|
20
|
+
import { C as Yn } from "./button.zWaIO1sl.js";
|
|
21
21
|
import Xn from "../components/dropdown.js";
|
|
22
22
|
import { C as qn } from "./icon-button.DJvfUmOl.js";
|
|
23
23
|
import Gn from "../components/menu.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./cropper.js";
|
|
2
|
-
import "../chunks/button.
|
|
2
|
+
import "../chunks/button.zWaIO1sl.js";
|
|
3
3
|
import "./space.js";
|
|
4
4
|
import "../chunks/typography.IqHbnd3C.js";
|
|
5
5
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
|
-
import { C as h } from "../chunks/asset-link-format.
|
|
6
|
+
import { C as h } from "../chunks/asset-link-format.BATKDRgD.js";
|
|
7
7
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
8
8
|
import "../chunks/asset-link-format.ClaYu_v8.js";
|
|
9
9
|
import "../chunks/position-picker.DjnhxIKF.js";
|
|
@@ -9,7 +9,7 @@ import { default as h } from "./avatar.js";
|
|
|
9
9
|
import { default as P } from "./badge.js";
|
|
10
10
|
import { default as M } from "./breadcrumb.js";
|
|
11
11
|
import { default as F } from "./breadcrumb-item.js";
|
|
12
|
-
import { C as O } from "../chunks/button.
|
|
12
|
+
import { C as O } from "../chunks/button.zWaIO1sl.js";
|
|
13
13
|
import { default as E } from "./button-group.js";
|
|
14
14
|
import { default as L } from "./card.js";
|
|
15
15
|
import { default as j } from "./checkbox.js";
|
|
@@ -18,9 +18,9 @@ import { default as q } from "./copy-button.js";
|
|
|
18
18
|
import { default as K } from "./date-calendar.js";
|
|
19
19
|
import { default as W } from "./details.js";
|
|
20
20
|
import { default as Y } from "./diff.js";
|
|
21
|
-
import { C as _ } from "../chunks/dialog.
|
|
21
|
+
import { C as _ } from "../chunks/dialog.BaHYOyYO.js";
|
|
22
22
|
import { default as oe } from "./divider.js";
|
|
23
|
-
import { C as ae } from "../chunks/document-viewer.
|
|
23
|
+
import { C as ae } from "../chunks/document-viewer.B89YB5oo.js";
|
|
24
24
|
import { C as xe } from "../chunks/dot-pagination.BqGFeFXK.js";
|
|
25
25
|
import { default as me } from "./dot-status.js";
|
|
26
26
|
import { default as pe } from "./drawer.js";
|
|
@@ -52,7 +52,7 @@ import { default as ao } from "./menu-label.js";
|
|
|
52
52
|
import { default as xo } from "./menu-section.js";
|
|
53
53
|
import { default as mo } from "./mutation-observer.js";
|
|
54
54
|
import { C as po } from "../chunks/option.Bvyag0r1.js";
|
|
55
|
-
import { C as uo } from "../chunks/pagination.
|
|
55
|
+
import { C as uo } from "../chunks/pagination.CwKlKOek.js";
|
|
56
56
|
import { default as no } from "./popup.js";
|
|
57
57
|
import { default as co } from "./progress-bar.js";
|
|
58
58
|
import { default as bo } from "./progress-ring.js";
|
|
@@ -74,7 +74,7 @@ import { default as Uo } from "./step.js";
|
|
|
74
74
|
import { default as Xo } from "./stepper.js";
|
|
75
75
|
import { default as Zo } from "./switch.js";
|
|
76
76
|
import { default as et } from "./tab.js";
|
|
77
|
-
import { C as tt } from "../chunks/tab-group.
|
|
77
|
+
import { C as tt } from "../chunks/tab-group.C_n0GEc_.js";
|
|
78
78
|
import { default as rt } from "./tab-panel.js";
|
|
79
79
|
import { default as ft } from "./tag.js";
|
|
80
80
|
import { default as st } from "./textarea.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
-
import { C as h } from "../chunks/button.
|
|
3
|
+
import { C as h } from "../chunks/button.zWaIO1sl.js";
|
|
4
4
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
5
5
|
import "../chunks/form.CP9KLGjF.js";
|
|
6
6
|
import "../chunks/i18n.DbXTTLXx.js";
|
|
@@ -14,7 +14,7 @@ import "../chunks/when.Dr1es41R.js";
|
|
|
14
14
|
import "../chunks/static.UA3G1Deq.js";
|
|
15
15
|
import "../chunks/icon.D5iM9wXS.js";
|
|
16
16
|
import "./spinner.js";
|
|
17
|
-
import "../chunks/button.styles.
|
|
17
|
+
import "../chunks/button.styles.Bcj_XoRt.js";
|
|
18
18
|
export {
|
|
19
19
|
h as default
|
|
20
20
|
};
|
|
@@ -16,7 +16,7 @@ import { e as _ } from "../chunks/class-map.BiVq-cVR.js";
|
|
|
16
16
|
import { o as y } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
17
17
|
import { o as f } from "../chunks/style-map.llVFPd__.js";
|
|
18
18
|
import { n as d } from "../chunks/when.Dr1es41R.js";
|
|
19
|
-
import { C as B } from "../chunks/button.
|
|
19
|
+
import { C as B } from "../chunks/button.zWaIO1sl.js";
|
|
20
20
|
import L from "./button-group.js";
|
|
21
21
|
import T from "./dropdown.js";
|
|
22
22
|
import { C as N } from "../chunks/icon.D5iM9wXS.js";
|
|
@@ -3,7 +3,7 @@ import "../chunks/typography.IqHbnd3C.js";
|
|
|
3
3
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
4
4
|
import "../chunks/color-swatch.DpzAGKQx.js";
|
|
5
5
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
6
|
-
import { C as v } from "../chunks/color-swatch-group.
|
|
6
|
+
import { C as v } from "../chunks/color-swatch-group.CQlgq_I5.js";
|
|
7
7
|
import "../chunks/transformation.8uLv6uwG.js";
|
|
8
8
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
9
9
|
import "../chunks/debounce.DaHuiSGU.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../chunks/button.
|
|
2
|
-
import "../chunks/dialog.
|
|
1
|
+
import "../chunks/button.zWaIO1sl.js";
|
|
2
|
+
import "../chunks/dialog.BaHYOyYO.js";
|
|
3
3
|
import "./dropdown.js";
|
|
4
4
|
import "../chunks/typography.IqHbnd3C.js";
|
|
5
5
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
6
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
7
|
-
import { C as x } from "../chunks/confirm-popover.
|
|
7
|
+
import { C as x } from "../chunks/confirm-popover.hHcCIzpX.js";
|
|
8
8
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
9
9
|
import "../chunks/i18n.DbXTTLXx.js";
|
|
10
10
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
-
import { C as q } from "../chunks/dialog.
|
|
3
|
+
import { C as q } from "../chunks/dialog.BaHYOyYO.js";
|
|
4
4
|
import "../chunks/event.BeKOsirN.js";
|
|
5
5
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
6
6
|
import "../chunks/i18n.DbXTTLXx.js";
|
|
7
|
-
import "../chunks/modal.
|
|
7
|
+
import "../chunks/modal.Ct0bJBSe.js";
|
|
8
8
|
import "../chunks/scroll.xtO5yojm.js";
|
|
9
9
|
import "../chunks/slot.j5oheLJC.js";
|
|
10
10
|
import "../chunks/watch.DJF5K-8U.js";
|