@orangelogic/design-system 4.18.0 → 4.20.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/{color-swatch-group.DHrDL5W4.js → color-swatch-group.WMinusvs.js} +378 -359
- package/library/chunks/{config-manager.j-83Ts1D.js → config-manager.Q6Uu3jTl.js} +7 -7
- package/library/chunks/{config-manager.utils.C-G0Iimp.js → config-manager.utils.BjTsUGLW.js} +11 -11
- package/library/chunks/{configs-controller.FjT3LVI8.js → configs-controller.Dea3OymR.js} +3 -3
- package/library/chunks/{folder-select.CmyEyzfA.js → folder-select.DZ27acgw.js} +36 -19
- package/library/chunks/{header.DpccEGpQ.js → header.Ny2fWwyt.js} +43 -15
- package/library/chunks/{src.BQQW1rcJ.js → src.BFdGIzyC.js} +1 -1
- package/library/components/atoms.js +2 -2
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/folder-select.js +1 -1
- package/library/components/header.js +1 -1
- package/library/components/molecules.js +4 -4
- package/library/components/organisms.js +1 -1
- package/library/components/types.js +13074 -13010
- package/library/package.json +1 -1
- package/library/packages/events/src/cx-table-validation-change.d.ts +2 -2
- package/library/packages/events/src/cx-video-active-subclip-change.d.ts +6 -0
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/hybrid/rich-text/src/components/rich-text-toolbar/rich-text-toolbar.d.ts +16 -8
- package/library/packages/hybrid/rich-text/src/components/rich-text-toolbar/toolbar-align-actions.d.ts +3 -8
- package/library/packages/hybrid/rich-text/src/rich-text.d.ts +21 -1
- package/library/packages/hybrid/rich-text/src/utils/parse-border-from-style.d.ts +2 -1
- package/library/packages/hybrid/table-core/src/table/controllers/filter-controller.d.ts +8 -0
- package/library/packages/hybrid/table-core/src/table/table-in-memory-data.d.ts +2 -0
- package/library/packages/hybrid/table-core/src/table/table.d.ts +1 -1
- package/library/packages/hybrid/video-advanced/src/react/context.d.ts +1 -0
- package/library/packages/hybrid/video-advanced/src/react/hooks/useVideoEditorAnnotation.d.ts +26 -0
- package/library/packages/hybrid/video-advanced/src/react/type.d.ts +12 -0
- package/library/packages/molecules/src/faceted-filter/components/facet/facet.d.ts +2 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +2 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +3 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +2 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/DownloadManager.d.ts +4 -2
- package/library/packages/organisms/src/downloader/data/core/worker/app/utilities/index.d.ts +2 -1
- package/library/packages/organisms/src/downloader/data/core/worker/utilities/FilePathFixer.d.ts +10 -0
- package/library/packages/services/src/api/folder/folder.d.ts +1 -1
- package/library/packages/tools/src/tiptap/extensions/index.d.ts +7 -1
- package/library/packages/tools/src/tiptap/extensions/link/helpers/active-link-range.d.ts +9 -0
- package/library/packages/tools/src/tiptap/extensions/table/index.d.ts +13 -1
- package/library/packages/tools/src/tiptap/utils/to-published-html.d.ts +14 -0
- package/library/packages/types/src/folder-select.d.ts +1 -0
- package/library/packages/types/src/rich-text.d.ts +10 -0
- package/library/packages/types/src/table.d.ts +10 -0
- package/library/react-web-component.d.ts +5 -1
- package/package.json +1 -1
- package/library/packages/hybrid/video-advanced/src/react/@types/react-range-slider-input/index.d.ts +0 -1
|
@@ -14,7 +14,7 @@ import { t as b } from "./style-map.DPGQIxip.js";
|
|
|
14
14
|
import { t as x } from "./button.F15zfy2d.js";
|
|
15
15
|
import { t as S } from "./tooltip.EVa9qa8X.js";
|
|
16
16
|
import { t as ee } from "./line-clamp.DUw4HDNG.js";
|
|
17
|
-
import { C as te, D as ne, E as re, S as ie, T as ae, _ as oe, a as se, b as ce, c as le, g as ue, h as de, i as fe, o as pe, r as me, s as he, t as C, v as w, w as T, x as E, y as D } from "./config-manager.utils.
|
|
17
|
+
import { C as te, D as ne, E as re, S as ie, T as ae, _ as oe, a as se, b as ce, c as le, g as ue, h as de, i as fe, o as pe, r as me, s as he, t as C, v as w, w as T, x as E, y as D } from "./config-manager.utils.BjTsUGLW.js";
|
|
18
18
|
import { t as O } from "./typography.B0mkhqTB.js";
|
|
19
19
|
import { t as k } from "./button-group.CPfXrqyq.js";
|
|
20
20
|
import { t as A } from "./card.3c-X4hqR.js";
|
|
@@ -49,11 +49,11 @@ import { t as ze } from "./radio-group.DKOIr2PH.js";
|
|
|
49
49
|
import { t as Be } from "./switch.D6KXmWnC.js";
|
|
50
50
|
import { t as Ve } from "./bicolor-picker.BHwn7qgI.js";
|
|
51
51
|
import { t as He } from "./border-input-group.DlxLP_Yi.js";
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
52
|
+
import { t as Ue } from "./corner-position-input-group.BVPOtopa.js";
|
|
53
|
+
import { n as We, t as U } from "./confirm-popover.B60_VW9E.js";
|
|
54
54
|
import { t as W } from "./_baseIteratee.DWc2-Bvm.js";
|
|
55
55
|
import { t as Ge } from "./dynamic-select.C7bnEwn9.js";
|
|
56
|
-
import { r as G } from "./folder-select.
|
|
56
|
+
import { r as G } from "./folder-select.DZ27acgw.js";
|
|
57
57
|
import { t as Ke } from "./choose.C2vpqhLc.js";
|
|
58
58
|
import { t as qe } from "./padding-input-group.DYHH1M0o.js";
|
|
59
59
|
import { t as Je } from "./position-picker.B3klGTsy.js";
|
|
@@ -63,7 +63,7 @@ import { T as K } from "./asset-link-format.B-wi80wk.js";
|
|
|
63
63
|
import { n as Ze } from "./_baseXor.Ca5K0ORC.js";
|
|
64
64
|
import { n as Qe, s as $e, t as q } from "./isArrayLikeObject.Da3IzQeH.js";
|
|
65
65
|
import { i as et } from "./_baseClone.CnI5Vpqn.js";
|
|
66
|
-
import { C as tt, i as nt, o as J, t as rt } from "./configs-controller.
|
|
66
|
+
import { C as tt, i as nt, o as J, t as rt } from "./configs-controller.Dea3OymR.js";
|
|
67
67
|
import { t as it } from "./isEmpty.D3QQduJ5.js";
|
|
68
68
|
import { i as at } from "./cloneDeep.C6x5LNv3.js";
|
|
69
69
|
//#region ../../node_modules/lodash-es/difference.js
|
|
@@ -450,7 +450,7 @@ var Y = (e) => M(e) ? e._$litType$.h : e.strings, ht = g(class extends h {
|
|
|
450
450
|
"cx-checkbox": j,
|
|
451
451
|
"cx-color-swatch-picker": w,
|
|
452
452
|
"cx-confirm-popover": U,
|
|
453
|
-
"cx-corner-position-input-group":
|
|
453
|
+
"cx-corner-position-input-group": Ue,
|
|
454
454
|
"cx-dam-custom-toolbar-buttons-editor": se,
|
|
455
455
|
"cx-dialog": V,
|
|
456
456
|
"cx-divider": Ae,
|
|
@@ -577,7 +577,7 @@ var Y = (e) => M(e) ? e._$litType$.h : e.strings, ht = g(class extends h {
|
|
|
577
577
|
render() {
|
|
578
578
|
return t`<cx-dialog class="config-form" use-overlay-scrollbar divider-position=${B.Footer} .boundary=${this.boundary} @cx-after-show=${this.handleAfterShow} @cx-after-hide=${this.handleAfterHide} @cx-request-close=${this.handleRequestClose} @cx-asset-request-status=${this.handleAssetRequestStatus}><cx-space slot="label" direction="vertical" spacing="2x-small"><cx-typography variant="h4">${v(this.dialogTitle, () => t`<cx-line-clamp lines="1">${this.dialogTitle}</cx-line-clamp>`, () => t`${this.localize.term("settingsTitle", this.blockName)}`)}</cx-typography>${v(this.templateName, () => t`<cx-typography variant="body3"><cx-line-clamp lines="1">${this.templateName}</cx-line-clamp></cx-typography>`)}</cx-space>${Pe(this.formKey, t`<form id="config-form" @submit=${this.handleFormSubmit}>${ht(v(this.isEditingTemplateSettings, () => v(this.isTemplateEditable, () => t`<cx-tab-group class="config-form__tab-group" placement="top"><cx-tab slot="nav" panel="template" active>${this.localize.term("template")}</cx-tab><cx-tab-panel name="template" active><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.renderTemplateForm()}</cx-space></cx-tab-panel></cx-tab-group>`), () => v(!it(this.traits) && this.tabs.length >= 1, () => t`<cx-tab-group class="config-form__tab-group" placement="top">${v(this.showTemplateTab, () => t`<cx-tab slot="nav" panel="template" active>${this.localize.term("template")}</cx-tab><cx-tab-panel name="template" active><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.renderTemplateForm()}</cx-space></cx-tab-panel>`)}
|
|
579
579
|
${R(this.tabs.filter((e) => !this.showTemplateTab || e === "appearance" || e === "effects" || e === "sidePanels" || e === "styling"), (e) => e, (e, n) => t`<cx-tab slot="nav" panel=${e} ?active=${!this.showTemplateTab && n === 0}>${this.localize.term(e)}</cx-tab><cx-tab-panel name=${e} ?active=${!this.showTemplateTab && n === 0}><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.configFormController.renderBasicControls(this.traits, void 0, e)}</cx-space></cx-tab-panel>`)}
|
|
580
|
-
${v(this.translatableControls.length > 0, () => t`<cx-tab slot="nav" panel="Translation">${this.localize.term("translation")}</cx-tab><cx-tab-panel name="Translation"><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.configFormController.renderTranslationControls()}</cx-space></cx-tab-panel>`)}</cx-tab-group>`, () => t`<cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.configFormController.renderBasicControls(this.traits, void 0, this.tabs[0])}</cx-space>`)))}</form>`)}<cx-space slot="footer" spacing="x-small" wrap="nowrap" justify-content="end"><cx-button variant="default" size="medium" @click=${this.handleCancelClick}>${this.localize.term("cancel")}</cx-button><cx-button-group><cx-button type="submit" variant="primary" size="medium" ?loading=${this.loading} @click=${this.handleSaveClick}>${this.localize.term("save")}</cx-button>${v(this.isTemplateEditable && !this.isEditingTemplateSettings && !this.showTemplateTab, () => t`<cx-dropdown class="config-form__dropdown" placement="bottom-end" hoist @cx-select=${this.handleDropdownSelect}><cx-button slot="trigger" type="submit" variant="primary" caret><cx-visually-hidden>${this.localize.term("moreOptions")}</cx-visually-hidden></cx-button><cx-menu class="config-form__dropdown-menu"><cx-menu-item value="save-as-new-template"><cx-button type="submit" variant="text">${this.localize.term("saveAsNewTemplate")}</cx-button></cx-menu-item>${v(this.templateId, () => t`<cx-menu-item value="detach-template"><cx-button type="submit" variant="text">${this.localize.term("detachTemplate")}</cx-button></cx-menu-item>`)}</cx-menu></cx-dropdown>`)}</cx-button-group></cx-space></cx-dialog><cx-confirm-popover class="config-form__confirm-popover" divider-position=${B.Both} buttons-direction=${
|
|
580
|
+
${v(this.translatableControls.length > 0, () => t`<cx-tab slot="nav" panel="Translation">${this.localize.term("translation")}</cx-tab><cx-tab-panel name="Translation"><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.configFormController.renderTranslationControls()}</cx-space></cx-tab-panel>`)}</cx-tab-group>`, () => t`<cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.configFormController.renderBasicControls(this.traits, void 0, this.tabs[0])}</cx-space>`)))}</form>`)}<cx-space slot="footer" spacing="x-small" wrap="nowrap" justify-content="end"><cx-button variant="default" size="medium" @click=${this.handleCancelClick}>${this.localize.term("cancel")}</cx-button><cx-button-group><cx-button type="submit" variant="primary" size="medium" ?loading=${this.loading} @click=${this.handleSaveClick}>${this.localize.term("save")}</cx-button>${v(this.isTemplateEditable && !this.isEditingTemplateSettings && !this.showTemplateTab, () => t`<cx-dropdown class="config-form__dropdown" placement="bottom-end" hoist @cx-select=${this.handleDropdownSelect}><cx-button slot="trigger" type="submit" variant="primary" caret><cx-visually-hidden>${this.localize.term("moreOptions")}</cx-visually-hidden></cx-button><cx-menu class="config-form__dropdown-menu"><cx-menu-item value="save-as-new-template"><cx-button type="submit" variant="text">${this.localize.term("saveAsNewTemplate")}</cx-button></cx-menu-item>${v(this.templateId, () => t`<cx-menu-item value="detach-template"><cx-button type="submit" variant="text">${this.localize.term("detachTemplate")}</cx-button></cx-menu-item>`)}</cx-menu></cx-dropdown>`)}</cx-button-group></cx-space></cx-dialog><cx-confirm-popover class="config-form__confirm-popover" divider-position=${B.Both} buttons-direction=${We.HorizontalReverse} dialog-label=${this.localize.term("dismissChanges")} confirm-text=${this.localize.term("dismissChanges")} .boundary=${this.boundary} variant="dialog" @cx-confirm=${this.hide}><cx-typography variant="body2" slot="footer" class="confirm-popover__footer">${this.localize.term("doYouWantToCloseThisDialogChangesWillBeDismissed")}</cx-typography></cx-confirm-popover>`;
|
|
581
581
|
}
|
|
582
582
|
};
|
|
583
583
|
s([u(".config-form"), c("design:type", V === void 0 ? Object : V)], Z.prototype, "dialog", void 0), s([u("#config-form"), c("design:type", typeof HTMLFormElement > "u" ? Object : HTMLFormElement)], Z.prototype, "form", void 0), s([u("cx-confirm-popover"), c("design:type", U === void 0 ? Object : U)], Z.prototype, "confirmPopover", void 0), s([u(".config-form__tab-group"), c("design:type", z === void 0 ? Object : z)], Z.prototype, "tabGroup", void 0), s([a({
|
package/library/chunks/{config-manager.utils.C-G0Iimp.js → config-manager.utils.BjTsUGLW.js}
RENAMED
|
@@ -15,7 +15,7 @@ import { t as y } from "./when.BUskJLtZ.js";
|
|
|
15
15
|
import { t as ie } from "./icon.CeQpEaQz.js";
|
|
16
16
|
import { t as ae } from "./spinner.DXFJTymk.js";
|
|
17
17
|
import { n as oe } from "./tslib.es6.DJNsMHqv.js";
|
|
18
|
-
import { t as se } from "./src.
|
|
18
|
+
import { t as se } from "./src.BFdGIzyC.js";
|
|
19
19
|
import { t as ce } from "./style-map.DPGQIxip.js";
|
|
20
20
|
import { t as b } from "./button.F15zfy2d.js";
|
|
21
21
|
import { E as x, S as le, r as ue } from "./string.DamEXDH2.js";
|
|
@@ -66,11 +66,11 @@ import { t as ft } from "./switch.D6KXmWnC.js";
|
|
|
66
66
|
import { t as pt } from "./v4.JyXW8GUB.js";
|
|
67
67
|
import { t as mt } from "./bicolor-picker.BHwn7qgI.js";
|
|
68
68
|
import { t as ht } from "./border-input-group.DlxLP_Yi.js";
|
|
69
|
-
import {
|
|
70
|
-
import { t as vt } from "./
|
|
69
|
+
import { t as gt } from "./corner-position-input-group.BVPOtopa.js";
|
|
70
|
+
import { n as _t, t as vt } from "./confirm-popover.B60_VW9E.js";
|
|
71
71
|
import { t as yt } from "./cropper.D4ymxgab.js";
|
|
72
72
|
import { t as bt } from "./dynamic-select.C7bnEwn9.js";
|
|
73
|
-
import { i as xt, n as P, r as St, t as F } from "./folder-select.
|
|
73
|
+
import { i as xt, n as P, r as St, t as F } from "./folder-select.DZ27acgw.js";
|
|
74
74
|
import { t as Ct } from "./choose.C2vpqhLc.js";
|
|
75
75
|
import { t as wt } from "./masonry.MH1B7um_.js";
|
|
76
76
|
import { t as Tt } from "./padding-input-group.DYHH1M0o.js";
|
|
@@ -78,8 +78,8 @@ import { t as Et } from "./position-picker.B3klGTsy.js";
|
|
|
78
78
|
import { t as Dt } from "./shadow-input-group.ClTseaRz.js";
|
|
79
79
|
import { t as Ot } from "./size-input-group.D9EWFcr7.js";
|
|
80
80
|
import { C as kt, S as At, T as jt, _ as Mt, b as Nt, c as Pt, f as Ft, g as It, h as Lt, i as Rt, l as zt, n as Bt, o as Vt, p as Ht, r as Ut, s as Wt, t as Gt, u as Kt, v as qt, w as Jt, x as Yt, y as Xt } from "./asset-link-format.B-wi80wk.js";
|
|
81
|
-
import { c as Zt, d as Qt, f as $t, n as en, u as tn } from "./color-swatch-group.
|
|
82
|
-
import { B as nn, C as rn, H as an, J as on, P as sn, Q as cn, R as ln, U as un, V as dn, X as fn, Y as I, Z as L, f as pn, g as mn, k as R, p as hn, y as gn, z as _n } from "./configs-controller.
|
|
81
|
+
import { c as Zt, d as Qt, f as $t, n as en, u as tn } from "./color-swatch-group.WMinusvs.js";
|
|
82
|
+
import { B as nn, C as rn, H as an, J as on, P as sn, Q as cn, R as ln, U as un, V as dn, X as fn, Y as I, Z as L, f as pn, g as mn, k as R, p as hn, y as gn, z as _n } from "./configs-controller.Dea3OymR.js";
|
|
83
83
|
import { a as vn } from "./cloneDeep.C6x5LNv3.js";
|
|
84
84
|
//#region ../../packages/types/src/icon-picker.ts
|
|
85
85
|
var yn = /* @__PURE__ */ function(e) {
|
|
@@ -42487,8 +42487,8 @@ var Yr = class {
|
|
|
42487
42487
|
"cx-card": ye,
|
|
42488
42488
|
"cx-checkbox": be,
|
|
42489
42489
|
"cx-color-swatch-picker": br,
|
|
42490
|
-
"cx-confirm-popover":
|
|
42491
|
-
"cx-corner-position-input-group":
|
|
42490
|
+
"cx-confirm-popover": vt,
|
|
42491
|
+
"cx-corner-position-input-group": gt,
|
|
42492
42492
|
"cx-dialog": k,
|
|
42493
42493
|
"cx-divider": He,
|
|
42494
42494
|
"cx-download-format-picker": wn,
|
|
@@ -42843,7 +42843,7 @@ var ei = Q, ti = r`:host{display:block}.editor{gap:var(--cx-spacing-small);flex-
|
|
|
42843
42843
|
static #t = this.dependencies = {
|
|
42844
42844
|
"cx-button": b,
|
|
42845
42845
|
"cx-checkbox": be,
|
|
42846
|
-
"cx-confirm-popover":
|
|
42846
|
+
"cx-confirm-popover": vt,
|
|
42847
42847
|
"cx-dialog": k,
|
|
42848
42848
|
"cx-dropdown": w,
|
|
42849
42849
|
"cx-dynamic-select": bt,
|
|
@@ -43236,7 +43236,7 @@ var ei = Q, ti = r`:host{display:block}.editor{gap:var(--cx-spacing-small);flex-
|
|
|
43236
43236
|
render() {
|
|
43237
43237
|
let e = this.isAdding ? this.localize.term("newCustomButton") : this.localize.term("editCustomButton");
|
|
43238
43238
|
return n`<div class="editor"><cx-list-editor part="list" use-events sortable .columns=${this.columns} .data=${this.data} .boundary=${this.boundary} @cx-list-editor-edit=${this.handleListEditorEdit} @cx-list-editor-delete=${this.handleListEditorDelete} @cx-list-editor-change=${this.handleListEditorReorder}></cx-list-editor><cx-dropdown class="editor__add-button" data-testid="add-button" stay-open-on-select hoist><cx-button slot="trigger" variant="default" size="medium" caret>${this.localize.term("addButton")}</cx-button><div class="add-button-panel"><cx-dynamic-select hoist free-width placement="bottom-start" icon-name="search" custom-change-event="cx-available-button-select" .api=${this.availableButtonsApi} .columns=${this.addSelectColumns} @cx-available-button-select=${this.handleAvailableButtonSelect}></cx-dynamic-select><cx-button class="add-button-panel__create-new" variant="text" @click=${this.handleCreateNewClick}>${this.localize.term("createNew")}</cx-button></div></cx-dropdown></div><cx-dialog part="dialog" class="editor__dialog" divider-position=${ze.Both} use-overlay-scrollbar strategy="fixed" ?open=${!!this.editedItem} .boundary=${this.boundary} @cx-request-close=${this.handleRequestClose} @cx-asset-request-status=${this.handleAssetRequestStatus}><cx-typography slot="label" variant="h4">${e}</cx-typography><form class="dialog__form" @submit=${this.handleDialogFormSubmit}>${y(this.editedItem, () => n`<div class="dialog__body">${this.renderGeneralSection()}
|
|
43239
|
-
${this.renderVisibilitySection()}</div>`)}</form><cx-space slot="footer" spacing="x-small" wrap="nowrap" justify-content="end"><cx-button data-testid="cancel-button" variant="default" size="medium" @click=${this.handleCancelClick}>${this.localize.term("cancel")}</cx-button><cx-button data-testid="save-button" variant="primary" size="medium" @click=${this.handleSaveClick}>${this.localize.term("save")}</cx-button></cx-space></cx-dialog><cx-confirm-popover class="editor__confirm-popover" divider-position=${ze.Both} buttons-direction=${
|
|
43239
|
+
${this.renderVisibilitySection()}</div>`)}</form><cx-space slot="footer" spacing="x-small" wrap="nowrap" justify-content="end"><cx-button data-testid="cancel-button" variant="default" size="medium" @click=${this.handleCancelClick}>${this.localize.term("cancel")}</cx-button><cx-button data-testid="save-button" variant="primary" size="medium" @click=${this.handleSaveClick}>${this.localize.term("save")}</cx-button></cx-space></cx-dialog><cx-confirm-popover class="editor__confirm-popover" divider-position=${ze.Both} buttons-direction=${_t.HorizontalReverse} dialog-label=${this.localize.term("dismissChanges")} confirm-text=${this.localize.term("dismissChanges")} .boundary=${this.boundary} variant="dialog" @cx-confirm=${this.handleConfirmClose}><cx-typography variant="body2" slot="footer">${this.localize.term("doYouWantToCloseThisDialogChangesWillBeDismissed")}</cx-typography></cx-confirm-popover>`;
|
|
43240
43240
|
}
|
|
43241
43241
|
};
|
|
43242
43242
|
l([s({
|
|
@@ -43263,7 +43263,7 @@ l([s({
|
|
|
43263
43263
|
}), u("design:type", String)], $.prototype, "teamspaceModule", void 0), l([s({ type: Object }), u("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], $.prototype, "boundary", void 0), l([s({
|
|
43264
43264
|
attribute: "on-configure-workflow",
|
|
43265
43265
|
type: Function
|
|
43266
|
-
}), u("design:type", Object)], $.prototype, "onConfigureWorkflow", void 0), l([c(), u("design:type", Object)], $.prototype, "editedItem", void 0), l([c(), u("design:type", Boolean)], $.prototype, "isAdding", void 0), l([c(), u("design:type", typeof Record > "u" ? Object : Record)], $.prototype, "subTypesData", void 0), l([c(), u("design:type", Boolean)], $.prototype, "isLoadingSubTypes", void 0), l([c(), u("design:type", Boolean)], $.prototype, "isAssetRequestBusy", void 0), l([f("cx-dropdown"), u("design:type", w === void 0 ? Object : w)], $.prototype, "addDropdownEl", void 0), l([f(".add-button-panel cx-dynamic-select cx-select"), u("design:type", O === void 0 ? Object : O)], $.prototype, "addButtonSelectEl", void 0), l([f("form.dialog__form"), u("design:type", typeof HTMLFormElement > "u" ? Object : HTMLFormElement)], $.prototype, "dialogForm", void 0), l([f("cx-confirm-popover"), u("design:type",
|
|
43266
|
+
}), u("design:type", Object)], $.prototype, "onConfigureWorkflow", void 0), l([c(), u("design:type", Object)], $.prototype, "editedItem", void 0), l([c(), u("design:type", Boolean)], $.prototype, "isAdding", void 0), l([c(), u("design:type", typeof Record > "u" ? Object : Record)], $.prototype, "subTypesData", void 0), l([c(), u("design:type", Boolean)], $.prototype, "isLoadingSubTypes", void 0), l([c(), u("design:type", Boolean)], $.prototype, "isAssetRequestBusy", void 0), l([f("cx-dropdown"), u("design:type", w === void 0 ? Object : w)], $.prototype, "addDropdownEl", void 0), l([f(".add-button-panel cx-dynamic-select cx-select"), u("design:type", O === void 0 ? Object : O)], $.prototype, "addButtonSelectEl", void 0), l([f("form.dialog__form"), u("design:type", typeof HTMLFormElement > "u" ? Object : HTMLFormElement)], $.prototype, "dialogForm", void 0), l([f("cx-confirm-popover"), u("design:type", vt === void 0 ? Object : vt)], $.prototype, "confirmPopover", void 0), l([
|
|
43267
43267
|
g("editedItem"),
|
|
43268
43268
|
u("design:type", Function),
|
|
43269
43269
|
u("design:paramtypes", []),
|
|
@@ -13,10 +13,10 @@ import { a as se, i as ce, n as le, r as ue } from "./document-viewer.BUAq7eW6.j
|
|
|
13
13
|
import { f as de, l as fe } from "./url.CZO_DV8Y.js";
|
|
14
14
|
import { _ as pe, g as me, p as he, v as ge } from "./color.CIOzHtLK.js";
|
|
15
15
|
import { g as _e, m as ve, p as ye, s as b } from "./responsive.L9Csz2w2.js";
|
|
16
|
-
import { n as be, r as xe } from "./header.
|
|
16
|
+
import { n as be, r as xe } from "./header.Ny2fWwyt.js";
|
|
17
17
|
import { d as Se, f as x, l as S, o as C, s as Ce } from "./endpoints.jOHOmF_t.js";
|
|
18
|
-
import { n as w } from "./folder-select.
|
|
19
|
-
import { a as T, i as E, o as D, r as O, s as we } from "./color-swatch-group.
|
|
18
|
+
import { n as w } from "./folder-select.DZ27acgw.js";
|
|
19
|
+
import { a as T, i as E, o as D, r as O, s as we } from "./color-swatch-group.WMinusvs.js";
|
|
20
20
|
import { n as Te } from "./isEmpty.D3QQduJ5.js";
|
|
21
21
|
import { a as k } from "./cloneDeep.C6x5LNv3.js";
|
|
22
22
|
//#region ../../packages/services/src/api/dashboard/dashboard.ts
|
|
@@ -28,24 +28,25 @@ import { t as F } from "./choose.C2vpqhLc.js";
|
|
|
28
28
|
var { Axios: I, AxiosError: L, CanceledError: R, isCancel: z, CancelToken: B, VERSION: V, all: H, Cancel: ee, isAxiosError: te, spread: ne, toFormData: re, AxiosHeaders: ie, HttpStatusCode: ae, formToJSON: oe, getAdapter: se, mergeConfig: ce } = P, U = /* @__PURE__ */ function(e) {
|
|
29
29
|
return e.CortexPath = "Document.CortexPath", e.DocSubTypeIconColor = "DocSubTypeIconColor", e.DocSubTypeIconImageUrl = "DocSubTypeIconImageUrl", e.DocSubTypeIconName = "DocSubTypeIconName", e.DocSubTypeIsFontIcon = "DocSubTypeIsFontIcon", e.DocType = "CoreField.DocType", e.HasBrowserChildren = "Document.HasBrowserChildren", e.RepresentativeAssetId = "Document.DocumentDirectRepresentativeRID", e.TitleWithFallback = "CoreField.TitleWithFallback", e;
|
|
30
30
|
}({});
|
|
31
|
-
async function W({ allowedFolders: e, baseUrl: t, bearerToken: n, excludeVirtualFolders: r, folderId: i, includeDirectChild: a, limit: o = 50,
|
|
32
|
-
let
|
|
33
|
-
e && e.length > 0 && !i ? (
|
|
31
|
+
async function W({ allowedFolders: e, baseUrl: t, bearerToken: n, excludeVirtualFolders: r, folderId: i, includeDirectChild: a, limit: o = 50, noCache: s, searchTerm: c, self: l, start: u = 0, token: d }) {
|
|
32
|
+
let f = [], p = a ?? !0;
|
|
33
|
+
e && e.length > 0 && !i ? (f = e, l = !0, p = !1) : i && (f = [i]);
|
|
34
34
|
try {
|
|
35
35
|
return (await N.request({
|
|
36
36
|
baseURL: t,
|
|
37
|
+
cache: !s && void 0,
|
|
37
38
|
headers: { Authorization: `Bearer ${n}` },
|
|
38
39
|
method: "GET",
|
|
39
40
|
params: {
|
|
40
|
-
IncludeDirectChild:
|
|
41
|
+
IncludeDirectChild: p,
|
|
41
42
|
IncludeVirtualFolders: !r,
|
|
42
43
|
Limit: o,
|
|
43
|
-
ObjectRecordIDs:
|
|
44
|
-
SeeThru: !!
|
|
45
|
-
Self:
|
|
46
|
-
Start:
|
|
47
|
-
Text:
|
|
48
|
-
Token:
|
|
44
|
+
ObjectRecordIDs: f,
|
|
45
|
+
SeeThru: !!c,
|
|
46
|
+
Self: l,
|
|
47
|
+
Start: u,
|
|
48
|
+
Text: c || void 0,
|
|
49
|
+
Token: d || void 0
|
|
49
50
|
},
|
|
50
51
|
paramsSerializer: { indexes: null },
|
|
51
52
|
responseType: "json",
|
|
@@ -75,7 +76,7 @@ async function W({ allowedFolders: e, baseUrl: t, bearerToken: n, excludeVirtual
|
|
|
75
76
|
title: n
|
|
76
77
|
};
|
|
77
78
|
}) ?? [],
|
|
78
|
-
hasMore:
|
|
79
|
+
hasMore: u + r < e.totalCount,
|
|
79
80
|
totalCount: e.totalCount
|
|
80
81
|
};
|
|
81
82
|
}],
|
|
@@ -98,7 +99,7 @@ var G = {
|
|
|
98
99
|
return e.Input = "input", e.Select = "select", e;
|
|
99
100
|
}({}), q = class extends o {
|
|
100
101
|
constructor(...e) {
|
|
101
|
-
super(...e), this.localize = new u(this), this.role = "treeitem", this.disabledSyncCheckboxes = !0, this.folderId = "", this.hasChildren = !1, this.selectable = !1, this.fullPath = "", this.docType = k.Story, this.name = "", this.representativeAssetId = "", this.selectedValue = "", this.selection = "single", this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], this.token = "", this.bearerToken = "", this.baseUrl = "", this.searchTerm = "", this.api = W, this.excludeVirtualFolders = !1, this.url = "", this.icon = "", this.iconName = "", this.iconImageUrl = "", this.iconColor = "", this.isFontIcon = !1, this.data = null, this.hasMore = !1, this.loading = !1;
|
|
102
|
+
super(...e), this.localize = new u(this), this.role = "treeitem", this.disabledSyncCheckboxes = !0, this.folderId = "", this.hasChildren = !1, this.selectable = !1, this.fullPath = "", this.docType = k.Story, this.name = "", this.representativeAssetId = "", this.selectedValue = "", this.selection = "single", this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], this.token = "", this.bearerToken = "", this.baseUrl = "", this.searchTerm = "", this.api = W, this.excludeVirtualFolders = !1, this.reloadOnExpand = !1, this.url = "", this.icon = "", this.iconName = "", this.iconImageUrl = "", this.iconColor = "", this.isFontIcon = !1, this.data = null, this.hasMore = !1, this.loading = !1;
|
|
102
103
|
}
|
|
103
104
|
static #e = this.styles = [c];
|
|
104
105
|
static #t = this.dependencies = {
|
|
@@ -123,6 +124,7 @@ var G = {
|
|
|
123
124
|
bearerToken: this.bearerToken,
|
|
124
125
|
excludeVirtualFolders: this.excludeVirtualFolders,
|
|
125
126
|
folderId: e,
|
|
127
|
+
noCache: this.reloadOnExpand,
|
|
126
128
|
start: t,
|
|
127
129
|
token: this.token
|
|
128
130
|
});
|
|
@@ -166,6 +168,9 @@ var G = {
|
|
|
166
168
|
this.treeItem.expanded = !1;
|
|
167
169
|
}
|
|
168
170
|
}
|
|
171
|
+
handleAfterCollapse(e) {
|
|
172
|
+
this.reloadOnExpand && e.target === this.treeItem && (this.data = null);
|
|
173
|
+
}
|
|
169
174
|
async syncBoxes() {
|
|
170
175
|
if (this.selection !== "multiple" || (await this.updateComplete, !this.treeItem)) return;
|
|
171
176
|
let e = this.fullPath, t = v({
|
|
@@ -195,7 +200,7 @@ var G = {
|
|
|
195
200
|
return e`<cx-tree-item class=${f({ "folder-select-tree-item": !0 })} data-id=${this.folderId} data-url=${p(this.url)} data-name=${p(this.name?.trim() || void 0)} data-representative-asset-id=${p(this.representativeAssetId || void 0)} role="option" ?lazy=${this.hasChildren && this.data === null} ?selected=${this.selection === "multiple" ? this.currentRootIDsSet.has(v({
|
|
196
201
|
id: this.folderId,
|
|
197
202
|
path: this.fullPath
|
|
198
|
-
})) : this.selectedValue === this.folderId} ?disabled-sync-checkboxes=${this.selection === "multiple"} .selectable=${this.selectable} @cx-lazy-load=${this.handleLazyLoad}><cx-space class="folder-select-tree-item__label" direction="horizontal" spacing="x-small" align-items="center" wrap="nowrap">${this.renderIcon()}<cx-line-clamp lines="1" class="folder-select-tree-item__title">${O(this.name, this.searchTerm)}</cx-line-clamp></cx-space>${w(this.data || [], (e) => e.id, (t) => e`<cx-folder-select-tree-item slot="children" folder-id=${t.id} full-path=${t.fullPath} name=${t.title} doc-type=${t.docType} icon-name=${p(t.iconName || void 0)} icon-image-url=${p(t.iconImageUrl || void 0)} icon-color=${p(t.iconColor || void 0)} representative-asset-id=${t.representativeAssetId} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?has-children=${t.hasChildren} ?is-font-icon=${t.isFontIcon} ?selectable=${this.selectable} base-url=${this.baseUrl} url=${p(t.url ?? void 0)} .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} value=${t.url}></cx-folder-select-tree-item>`)}
|
|
203
|
+
})) : this.selectedValue === this.folderId} ?disabled-sync-checkboxes=${this.selection === "multiple"} .selectable=${this.selectable} @cx-lazy-load=${this.handleLazyLoad} @cx-after-collapse=${this.handleAfterCollapse}><cx-space class="folder-select-tree-item__label" direction="horizontal" spacing="x-small" align-items="center" wrap="nowrap">${this.renderIcon()}<cx-line-clamp lines="1" class="folder-select-tree-item__title">${O(this.name, this.searchTerm)}</cx-line-clamp></cx-space>${w(this.data || [], (e) => e.id, (t) => e`<cx-folder-select-tree-item slot="children" folder-id=${t.id} full-path=${t.fullPath} name=${t.title} doc-type=${t.docType} icon-name=${p(t.iconName || void 0)} icon-image-url=${p(t.iconImageUrl || void 0)} icon-color=${p(t.iconColor || void 0)} representative-asset-id=${t.representativeAssetId} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?reload-on-expand=${this.reloadOnExpand} ?has-children=${t.hasChildren} ?is-font-icon=${t.isFontIcon} ?selectable=${this.selectable} base-url=${this.baseUrl} url=${p(t.url ?? void 0)} .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} value=${t.url}></cx-folder-select-tree-item>`)}
|
|
199
204
|
${m(this.hasMore, () => e`<div slot="children" class="load-more-button"><cx-button variant="text" @click=${this.loadMore} ?loading=${this.loading}>${this.localize.term("more")}</cx-button></div>`)}</cx-tree-item>`;
|
|
200
205
|
}
|
|
201
206
|
};
|
|
@@ -259,6 +264,10 @@ i([s("cx-tree-item"), a("design:type", A === void 0 ? Object : A)], q.prototype,
|
|
|
259
264
|
reflect: !0,
|
|
260
265
|
type: Boolean
|
|
261
266
|
}), a("design:type", Boolean)], q.prototype, "excludeVirtualFolders", void 0), i([n({
|
|
267
|
+
attribute: "reload-on-expand",
|
|
268
|
+
reflect: !0,
|
|
269
|
+
type: Boolean
|
|
270
|
+
}), a("design:type", Boolean)], q.prototype, "reloadOnExpand", void 0), i([n({
|
|
262
271
|
reflect: !0,
|
|
263
272
|
type: String
|
|
264
273
|
}), a("design:type", String)], q.prototype, "url", void 0), i([n({
|
|
@@ -291,7 +300,7 @@ i([s("cx-tree-item"), a("design:type", A === void 0 ? Object : A)], q.prototype,
|
|
|
291
300
|
], q.prototype, "syncBoxes", null), q = i([l("cx-folder-select-tree-item")], q);
|
|
292
301
|
var J = q, Y = class extends o {
|
|
293
302
|
constructor(...e) {
|
|
294
|
-
super(...e), this.localize = new u(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 = W, 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 = [], this.#t = !1, this.#n = 10, this.#r = /* @__PURE__ */ new Set();
|
|
303
|
+
super(...e), this.localize = new u(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 = W, this.excludeVirtualFolders = !1, this.reloadOnExpand = !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 = [], this.#t = !1, this.#n = 10, this.#r = /* @__PURE__ */ new Set();
|
|
295
304
|
}
|
|
296
305
|
static #e = this.dependencies = {
|
|
297
306
|
"cx-button": _,
|
|
@@ -459,14 +468,14 @@ var J = q, Y = class extends o {
|
|
|
459
468
|
return r ? (this.currentRootIDsSet = new Set(this.currentRootIDsSet), t || this.emit("cx-folder-select-selection-seeded"), !0) : !1;
|
|
460
469
|
}
|
|
461
470
|
renderFolder(t) {
|
|
462
|
-
return e`<cx-folder-select-tree-item .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${t.docType} folder-id=${t.id} full-path=${p(t.fullPath ?? void 0)} icon-name=${p(t.iconName || void 0)} icon-image-url=${p(t.iconImageUrl || void 0)} icon-color=${p(t.iconColor || void 0)} name=${t.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${p(t.url ?? void 0)} ?has-children=${t.hasChildren} ?is-font-icon=${t.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`;
|
|
471
|
+
return e`<cx-folder-select-tree-item .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${t.docType} folder-id=${t.id} full-path=${p(t.fullPath ?? void 0)} icon-name=${p(t.iconName || void 0)} icon-image-url=${p(t.iconImageUrl || void 0)} icon-color=${p(t.iconColor || void 0)} name=${t.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${p(t.url ?? void 0)} ?has-children=${t.hasChildren} ?is-font-icon=${t.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?reload-on-expand=${this.reloadOnExpand}></cx-folder-select-tree-item>`;
|
|
463
472
|
}
|
|
464
473
|
render() {
|
|
465
474
|
return e`<cx-tree class="folder-select-tree" selection=${this.selection} force-on-change disabled-auto-expand disabled-sync-checkboxes @cx-selected-change=${this.handleSelectedChange} @cx-folder-select-children-loaded=${this.handleChildrenLoaded}>${m(this.empty, () => e`<div class="folder-select-tree__empty-message" role="status" aria-live="polite"><cx-typography variant="body3">${this.localize.term("noResults")}</cx-typography></div>`)}
|
|
466
|
-
${m(this.extraFolderData, () => e`<cx-folder-select-tree-item .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${p(this.extraFolderData?.docType ?? void 0)} folder-id=${p(this.extraFolderData?.id ?? void 0)} full-path=${p(this.extraFolderData?.fullPath ?? void 0)} icon=${this.extraFolderIcon} icon-name=${p(this.extraFolderData?.iconName || void 0)} icon-image-url=${p(this.extraFolderData?.iconImageUrl || void 0)} icon-color=${p(this.extraFolderData?.iconColor || void 0)} name=${this.extraFolderTitle || this.extraFolderData?.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${p(this.extraFolderData?.url ?? void 0)} ?has-children=${this.extraFolderData?.hasChildren} ?is-font-icon=${this.extraFolderData?.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`)}
|
|
475
|
+
${m(this.extraFolderData, () => e`<cx-folder-select-tree-item .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${p(this.extraFolderData?.docType ?? void 0)} folder-id=${p(this.extraFolderData?.id ?? void 0)} full-path=${p(this.extraFolderData?.fullPath ?? void 0)} icon=${this.extraFolderIcon} icon-name=${p(this.extraFolderData?.iconName || void 0)} icon-image-url=${p(this.extraFolderData?.iconImageUrl || void 0)} icon-color=${p(this.extraFolderData?.iconColor || void 0)} name=${this.extraFolderTitle || this.extraFolderData?.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${p(this.extraFolderData?.url ?? void 0)} ?has-children=${this.extraFolderData?.hasChildren} ?is-font-icon=${this.extraFolderData?.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?reload-on-expand=${this.reloadOnExpand}></cx-folder-select-tree-item>`)}
|
|
467
476
|
${w(this.data, (e) => e.id, (e) => this.renderFolder(e))}
|
|
468
477
|
${m(this.hasMore, () => e`<cx-button class="folder-select-tree__load-more" variant="text" @click=${this.loadMore} ?loading=${this.loading}>${this.localize.term("more")}</cx-button>`)}
|
|
469
|
-
${w(this.preloadedFolders, (e) => `preloaded-${e.id}`, (t) => e`<cx-folder-select-tree-item style=${g({ display: "none" })} .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${t.docType} folder-id=${t.id} full-path=${p(t.fullPath ?? void 0)} icon-name=${p(t.iconName || void 0)} icon-image-url=${p(t.iconImageUrl || void 0)} icon-color=${p(t.iconColor || void 0)} name=${t.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${p(t.url ?? void 0)} ?has-children=${!1} ?is-font-icon=${t.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`)}</cx-tree>`;
|
|
478
|
+
${w(this.preloadedFolders, (e) => `preloaded-${e.id}`, (t) => e`<cx-folder-select-tree-item style=${g({ display: "none" })} .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${t.docType} folder-id=${t.id} full-path=${p(t.fullPath ?? void 0)} icon-name=${p(t.iconName || void 0)} icon-image-url=${p(t.iconImageUrl || void 0)} icon-color=${p(t.iconColor || void 0)} name=${t.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${p(t.url ?? void 0)} ?has-children=${!1} ?is-font-icon=${t.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?reload-on-expand=${this.reloadOnExpand}></cx-folder-select-tree-item>`)}</cx-tree>`;
|
|
470
479
|
}
|
|
471
480
|
};
|
|
472
481
|
i([n({
|
|
@@ -521,6 +530,10 @@ i([n({
|
|
|
521
530
|
reflect: !0,
|
|
522
531
|
type: Boolean
|
|
523
532
|
}), a("design:type", Boolean)], Y.prototype, "excludeVirtualFolders", void 0), i([n({
|
|
533
|
+
attribute: "reload-on-expand",
|
|
534
|
+
reflect: !0,
|
|
535
|
+
type: Boolean
|
|
536
|
+
}), a("design:type", Boolean)], Y.prototype, "reloadOnExpand", void 0), i([n({
|
|
524
537
|
attribute: "first-fetch-callback",
|
|
525
538
|
reflect: !1,
|
|
526
539
|
type: Function
|
|
@@ -567,7 +580,7 @@ var X = Y, Z = t`:host{flex-direction:column;width:100%;height:100%;min-height:0
|
|
|
567
580
|
};
|
|
568
581
|
#n;
|
|
569
582
|
constructor() {
|
|
570
|
-
super(), this.localize = new u(this), this.minQueryLength = 1, this.selection = "single", this.variant = K.Input, this.value = "", this.name = "", this.selectedLabel = "", this.baseUrl = "", this.allowedFolders = [], this.open = !1, this.token = "", this.bearerToken = "", this.seeThru = !1, this.api = W, 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, 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.selectGetTag = this.selectGetTag.bind(this), this.updateWrappedApi();
|
|
583
|
+
super(), this.localize = new u(this), this.minQueryLength = 1, this.selection = "single", this.variant = K.Input, this.value = "", this.name = "", this.selectedLabel = "", this.baseUrl = "", this.allowedFolders = [], this.open = !1, this.token = "", this.bearerToken = "", this.seeThru = !1, this.api = W, this.required = !1, this.form = void 0, this.excludeVirtualFolders = !1, this.reloadOnExpand = !1, this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.autoPageSize = !1, this.firstFetchCallback = null, this.searchTerm = "", this.treeLoading = !1, 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.selectGetTag = this.selectGetTag.bind(this), this.updateWrappedApi();
|
|
571
584
|
}
|
|
572
585
|
updateWrappedApi() {
|
|
573
586
|
if (!this.api) {
|
|
@@ -664,7 +677,7 @@ var X = Y, Z = t`:host{flex-direction:column;width:100%;height:100%;min-height:0
|
|
|
664
677
|
this.selectEl && (this.searchTerm = "", this.updateFunctionProps());
|
|
665
678
|
}
|
|
666
679
|
render() {
|
|
667
|
-
return e`<div class="folder-select">${F(this.variant, [[K.Input, () => e`<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=${this.#n} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree>`], [K.Select, () => e`<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=${this.#n} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree></cx-select>`]])}</div>`;
|
|
680
|
+
return e`<div class="folder-select">${F(this.variant, [[K.Input, () => e`<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} ?reload-on-expand=${this.reloadOnExpand} ?see-thru=${this.seeThru} ?auto-page-size=${this.autoPageSize} .allowedFolders=${this.allowedFolders} .api=${this.#n} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree>`], [K.Select, () => e`<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} ?reload-on-expand=${this.reloadOnExpand} ?see-thru=${this.seeThru} ?auto-page-size=${this.autoPageSize} .allowedFolders=${this.allowedFolders} .api=${this.#n} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree></cx-select>`]])}</div>`;
|
|
668
681
|
}
|
|
669
682
|
};
|
|
670
683
|
i([s("cx-select"), a("design:type", D === void 0 ? Object : D)], Q.prototype, "selectEl", void 0), i([s("cx-folder-select-tree"), a("design:type", X === void 0 ? Object : X)], Q.prototype, "treeEl", void 0), i([n({
|
|
@@ -719,6 +732,10 @@ i([s("cx-select"), a("design:type", D === void 0 ? Object : D)], Q.prototype, "s
|
|
|
719
732
|
reflect: !0,
|
|
720
733
|
type: Boolean
|
|
721
734
|
}), a("design:type", Boolean)], Q.prototype, "excludeVirtualFolders", void 0), i([n({
|
|
735
|
+
attribute: "reload-on-expand",
|
|
736
|
+
reflect: !0,
|
|
737
|
+
type: Boolean
|
|
738
|
+
}), a("design:type", Boolean)], Q.prototype, "reloadOnExpand", void 0), i([n({
|
|
722
739
|
attribute: "extra-folder-id",
|
|
723
740
|
reflect: !0,
|
|
724
741
|
type: String
|
|
@@ -76,29 +76,21 @@ var S = e`insert,span[format]{background-color:var(--cx-color-success-200)}delet
|
|
|
76
76
|
list-style: none;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
/* Scale the number/bullet marker with the item's font (matches the content-builder text block's */
|
|
80
|
-
.ProseMirror li::marker {
|
|
81
|
-
font-size: var(--font-size);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
79
|
/* Highlight the full link range when the cursor is inside it. */
|
|
85
80
|
.ProseMirror .link--active {
|
|
86
81
|
background-color: var(--cx-color-primary-100);
|
|
87
82
|
border-radius: var(--cx-border-radius-x-small);
|
|
88
83
|
}
|
|
89
84
|
|
|
90
|
-
/*
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
.ProseMirror a :is(sub, sup) {
|
|
96
|
-
text-decoration: underline;
|
|
97
|
-
}
|
|
98
|
-
|
|
85
|
+
/* Sits just above the table. TableView.updateButtonPosition() overrides top/transform
|
|
86
|
+
to drop it below the table when there is not enough room above; without this default
|
|
87
|
+
the absolute box falls back to its static position, which is already below the table,
|
|
88
|
+
so the handle rendered under every table instead of over it. */
|
|
99
89
|
.ProseMirror .tableWrapper .floating-button {
|
|
100
90
|
opacity: 0;
|
|
101
91
|
position: absolute;
|
|
92
|
+
top: 0;
|
|
93
|
+
transform: translateY(-100%);
|
|
102
94
|
transition: opacity 0.2s ease-in-out;
|
|
103
95
|
}
|
|
104
96
|
|
|
@@ -239,13 +231,49 @@ var S = e`insert,span[format]{background-color:var(--cx-color-success-200)}delet
|
|
|
239
231
|
z-index: 2;
|
|
240
232
|
}
|
|
241
233
|
|
|
234
|
+
/* Tiptap injects these into document.head, which never reaches this shadow root, so the
|
|
235
|
+
caret placed before or after a block rendered as an invisible 0px box. */
|
|
236
|
+
.ProseMirror-gapcursor {
|
|
237
|
+
display: none;
|
|
238
|
+
pointer-events: none;
|
|
239
|
+
position: absolute;
|
|
240
|
+
margin: 0;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.ProseMirror-gapcursor::after {
|
|
244
|
+
content: '';
|
|
245
|
+
display: block;
|
|
246
|
+
position: absolute;
|
|
247
|
+
top: -2px;
|
|
248
|
+
width: 20px;
|
|
249
|
+
border-top: 1px solid var(--cx-color-neutral-900);
|
|
250
|
+
animation: prosemirror-cursor-blink 1.1s steps(2, start) infinite;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.ProseMirror-focused .ProseMirror-gapcursor {
|
|
254
|
+
display: block;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
@keyframes prosemirror-cursor-blink {
|
|
258
|
+
to {
|
|
259
|
+
visibility: hidden;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
242
263
|
.ProseMirror table td,
|
|
243
264
|
.ProseMirror table th {
|
|
244
|
-
border: 1px dashed var(--cx-color-neutral-400);
|
|
245
265
|
min-width: 1rem;
|
|
246
266
|
position: relative;
|
|
247
267
|
}
|
|
248
268
|
|
|
269
|
+
/* Authoring guide only: a dashed outline so borderless cells stay visible while editing.
|
|
270
|
+
Read-only surfaces must render the table exactly as the saved HTML describes it,
|
|
271
|
+
otherwise the editor shows borders the preview does not. */
|
|
272
|
+
.ProseMirror[contenteditable='true'] table td,
|
|
273
|
+
.ProseMirror[contenteditable='true'] table th {
|
|
274
|
+
border: 1px dashed var(--cx-color-neutral-400);
|
|
275
|
+
}
|
|
276
|
+
|
|
249
277
|
.ProseMirror table[data-align='center'] {
|
|
250
278
|
margin-left: auto;
|
|
251
279
|
margin-right: auto;
|
|
@@ -57,7 +57,7 @@ import "../components/format-number.js";
|
|
|
57
57
|
import "./format-time.Dx24Hlhc.js";
|
|
58
58
|
import "./grid.CK4PRwur.js";
|
|
59
59
|
import "./grid-item.CSieaU5T.js";
|
|
60
|
-
import "./header.
|
|
60
|
+
import "./header.Ny2fWwyt.js";
|
|
61
61
|
import "./hub-connection.C0CASy-Q.js";
|
|
62
62
|
import "./iframe.C3N5F3yF.js";
|
|
63
63
|
import "./image-comparer.Txi69uYU.js";
|
|
@@ -8,7 +8,7 @@ import { t as c } from "../chunks/alert.C-yzkTnx.js";
|
|
|
8
8
|
import { t as l } from "../chunks/am-chart.COOKOvT1.js";
|
|
9
9
|
import { t as u } from "../chunks/animated-image.w6VdagCh.js";
|
|
10
10
|
import { t as d } from "../chunks/animation.CRLxJUWm.js";
|
|
11
|
-
import { n as f, r as p, t as m } from "../chunks/src.
|
|
11
|
+
import { n as f, r as p, t as m } from "../chunks/src.BFdGIzyC.js";
|
|
12
12
|
import { t as h } from "../chunks/button.F15zfy2d.js";
|
|
13
13
|
import { t as g } from "../chunks/tooltip.EVa9qa8X.js";
|
|
14
14
|
import { t as _ } from "../chunks/resize-observer.D9EHlnZI.js";
|
|
@@ -59,7 +59,7 @@ import se from "./format-number.js";
|
|
|
59
59
|
import { t as ce } from "../chunks/format-time.Dx24Hlhc.js";
|
|
60
60
|
import { t as le } from "../chunks/grid.CK4PRwur.js";
|
|
61
61
|
import { t as ue } from "../chunks/grid-item.CSieaU5T.js";
|
|
62
|
-
import { t as de } from "../chunks/header.
|
|
62
|
+
import { t as de } from "../chunks/header.Ny2fWwyt.js";
|
|
63
63
|
import { t as fe } from "../chunks/hub-connection.C0CASy-Q.js";
|
|
64
64
|
import { t as pe } from "../chunks/iframe.C3N5F3yF.js";
|
|
65
65
|
import { t as me } from "../chunks/image-comparer.Txi69uYU.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/color-swatch-group.
|
|
1
|
+
import { t as e } from "../chunks/color-swatch-group.WMinusvs.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/folder-select.
|
|
1
|
+
import { t as e } from "../chunks/folder-select.DZ27acgw.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/header.
|
|
1
|
+
import { t as e } from "../chunks/header.Ny2fWwyt.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "../chunks/bicolor-picker.BHwn7qgI.js";
|
|
2
2
|
import { t } from "../chunks/border-input-group.DlxLP_Yi.js";
|
|
3
3
|
import { t as n } from "../chunks/color-swatch.D7dE-Qmf.js";
|
|
4
|
-
import { t as r } from "../chunks/
|
|
5
|
-
import { t as i } from "../chunks/
|
|
4
|
+
import { t as r } from "../chunks/corner-position-input-group.BVPOtopa.js";
|
|
5
|
+
import { t as i } from "../chunks/confirm-popover.B60_VW9E.js";
|
|
6
6
|
import { t as a } from "../chunks/cropper.D4ymxgab.js";
|
|
7
7
|
import { t as o } from "../chunks/dynamic-select.C7bnEwn9.js";
|
|
8
|
-
import { t as s } from "../chunks/folder-select.
|
|
8
|
+
import { t as s } from "../chunks/folder-select.DZ27acgw.js";
|
|
9
9
|
import { t as c } from "../chunks/masonry.MH1B7um_.js";
|
|
10
10
|
import { t as l } from "../chunks/padding-input-group.DYHH1M0o.js";
|
|
11
11
|
import { t as u } from "../chunks/position-picker.B3klGTsy.js";
|
|
@@ -15,4 +15,4 @@ import { t as p } from "../chunks/sidebar.C7hLNDp-.js";
|
|
|
15
15
|
import { t as m } from "../chunks/size-input-group.D9EWFcr7.js";
|
|
16
16
|
import { t as h } from "../chunks/stepper-wizard.Diwy_209.js";
|
|
17
17
|
import { t as g } from "../chunks/typeface.BrqvkPV7.js";
|
|
18
|
-
export { e as CxBicolorPicker, t as CxBorderInputGroup, n as CxColorSwatch,
|
|
18
|
+
export { e as CxBicolorPicker, t as CxBorderInputGroup, n as CxColorSwatch, i as CxConfirmPopover, r as CxCornerPositionInputGroup, a as CxCropper, o as CxDynamicSelect, s as CxFolderSelect, c as CxMasonry, l as CxPaddingInputGroup, u as CxPositionPicker, d as CxShadowInputGroup, f as CxShareOptionList, p as CxSidebar, m as CxSizeInputGroup, h as CxStepperWizard, g as CxTypeface };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as e } from "../chunks/asset-link-format.B-wi80wk.js";
|
|
2
|
-
import { t } from "../chunks/color-swatch-group.
|
|
2
|
+
import { t } from "../chunks/color-swatch-group.WMinusvs.js";
|
|
3
3
|
import { t as n } from "../chunks/file-on-demand.DgSknSTy.js";
|
|
4
4
|
export { e as CxAssetLinkFormat, t as CxColorSwatchGroup, n as CxFileOnDemand };
|