@orangelogic/design-system 4.50.0 → 4.52.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/{array-line-clamp.HGGPocNC.js → array-line-clamp.DKxxZlon.js} +2 -2
- package/library/chunks/{asset-link-format.Ca8KxyCV.js → asset-link-format.B_gS4nTL.js} +557 -522
- package/library/chunks/{bicolor-picker.BGSxhZJ-.js → bicolor-picker.YUjpxOEl.js} +1 -1
- package/library/chunks/{block-width.BiCAGZxV.js → block-width.BDpJyD-F.js} +27 -27
- package/library/chunks/{border-input-group.wXw6aSGa.js → border-input-group.D5V40_dV.js} +1 -1
- package/library/chunks/{color-picker.DlcAbY3b.js → color-picker.B6zsp9q3.js} +108 -108
- package/library/chunks/{color-swatch-group.BdYLfI59.js → color-swatch-group.C-4jpi7T.js} +109 -109
- package/library/chunks/{color-swatch.D31RnyZs.js → color-swatch.Biz89VJr.js} +1 -1
- package/library/chunks/{config-manager.Bwkq7ll7.js → config-manager.D4XcNU1d.js} +16 -16
- package/library/chunks/{configs-controller.Cc-Lt6BH.js → configs-controller.C8z7oMRd.js} +5 -5
- package/library/chunks/{corner-position-input-group.DmmX8lEw.js → corner-position-input-group.vhSOueRn.js} +1 -1
- package/library/chunks/{diff.DAFtnzhM.js → diff.DZjfy2VU.js} +4 -4
- package/library/chunks/{document-viewer.CpC54CmZ.js → document-viewer.DVV4HsLS.js} +3 -3
- package/library/chunks/{dynamic-select.CtdC5OzH.js → dynamic-select.DmTXLyzH.js} +5 -5
- package/library/chunks/{file-on-demand.B4KUSqtB.js → file-on-demand.CLwTe72F.js} +9 -9
- package/library/chunks/{folder-select.DEGiL0pP.js → folder-select.BF1l6Zah.js} +20 -20
- package/library/chunks/{image.B87-7U_Z.js → image.C6-Opjew.js} +10 -10
- package/library/chunks/{line-clamp.BFh7eXXl.js → line-clamp.COXyDBRB.js} +23 -18
- package/library/chunks/{masonry.H7Hpnx9d.js → masonry.4Lcy37gf.js} +1 -1
- package/library/chunks/{pagination.ca5R1wld.js → pagination.Mr-XiQBd.js} +1 -1
- package/library/chunks/{radio-card.DTRD2YQ6.js → radio-card.jROctGtI.js} +1 -1
- package/library/chunks/{range.BUjztx8Q.js → range.CQzHuhd9.js} +10 -10
- package/library/chunks/{select.NhbQgMNA.js → select.CEgt2ciT.js} +2 -2
- package/library/chunks/{shadow-input-group.Zt8zKRxQ.js → shadow-input-group.DTEIzl1s.js} +1 -1
- package/library/chunks/{share-option-list.pVQugFoP.js → share-option-list.CdQeYk-I.js} +4 -4
- package/library/chunks/{size-input-group.Cxo0uCXM.js → size-input-group.DtldCuqS.js} +1 -1
- package/library/chunks/{src.3QpUQeRm.js → src.BjEmxalH.js} +18 -18
- package/library/chunks/{step.CC1wfskA.js → step.BlnWLzqI.js} +1 -1
- package/library/chunks/{stepper-wizard.BJARESIb.js → stepper-wizard.t7enm9Uz.js} +2 -2
- package/library/chunks/{stepper.CUxBZKM6.js → stepper.DzhUPTLW.js} +1 -1
- package/library/chunks/{tab-group.lMvydOdb.js → tab-group.DIVmzKse.js} +1 -1
- package/library/chunks/{tab.BKJEGsgj.js → tab.C0oUx7MY.js} +1 -1
- package/library/chunks/{tag.Dj8VrFFk.js → tag.B2S21_nF.js} +1 -1
- package/library/chunks/{tree.BWKeg92V.js → tree.Bq4vAQ6w.js} +1 -1
- package/library/chunks/{typeface.BLblmcP7.js → typeface.Dr9m4SZE.js} +1 -1
- package/library/chunks/{video.2jpE1tqO.js → video.bGH-n4pZ.js} +12 -12
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +21 -21
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/color-swatch.js +1 -1
- package/library/components/corner-position-input-group.js +1 -1
- package/library/components/diff.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/dynamic-select.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +1 -1
- package/library/components/image.js +1 -1
- package/library/components/line-clamp.js +1 -1
- package/library/components/masonry.js +1 -1
- package/library/components/molecules.js +12 -12
- package/library/components/organisms.js +3 -3
- package/library/components/pagination.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/select.js +1 -1
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/size-input-group.js +1 -1
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/tab-group.js +1 -1
- package/library/components/tab.js +1 -1
- package/library/components/tag.js +1 -1
- package/library/components/tree-item.js +1 -1
- package/library/components/tree.js +1 -1
- package/library/components/typeface.js +1 -1
- package/library/components/types.js +228 -228
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/alert/alert.d.ts +3 -0
- package/library/packages/atoms/src/components/badge/badge.d.ts +3 -0
- package/library/packages/atoms/src/components/button/button.d.ts +12 -0
- package/library/packages/atoms/src/components/card/card.d.ts +1 -0
- package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +18 -0
- package/library/packages/atoms/src/components/color-picker/color-picker.d.ts +7 -0
- package/library/packages/atoms/src/components/copy-button/copy-button.d.ts +11 -0
- package/library/packages/atoms/src/components/dialog/dialog.d.ts +2 -0
- package/library/packages/atoms/src/components/divider/divider.d.ts +2 -0
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +3 -0
- package/library/packages/atoms/src/components/dropdown/dropdown.d.ts +3 -0
- package/library/packages/atoms/src/components/icon-button/icon-button.d.ts +6 -0
- package/library/packages/atoms/src/components/image/image.d.ts +1 -0
- package/library/packages/atoms/src/components/input/input.d.ts +39 -0
- package/library/packages/atoms/src/components/line-clamp/line-clamp.d.ts +8 -0
- package/library/packages/atoms/src/components/menu/menu.d.ts +4 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
- package/library/packages/atoms/src/components/option/option.d.ts +1 -0
- package/library/packages/atoms/src/components/pagination/pagination.d.ts +1 -0
- package/library/packages/atoms/src/components/radio/radio.d.ts +14 -0
- package/library/packages/atoms/src/components/radio-button/radio-button.d.ts +11 -0
- package/library/packages/atoms/src/components/radio-card/radio-card.d.ts +3 -0
- package/library/packages/atoms/src/components/radio-group/radio-group.d.ts +2 -0
- package/library/packages/atoms/src/components/range/range.d.ts +3 -0
- package/library/packages/atoms/src/components/rating/rating.d.ts +2 -0
- package/library/packages/atoms/src/components/select/select.d.ts +38 -0
- package/library/packages/atoms/src/components/split-panel/split-panel.d.ts +1 -0
- package/library/packages/atoms/src/components/switch/switch.d.ts +12 -0
- package/library/packages/atoms/src/components/tag/tag.d.ts +10 -0
- package/library/packages/atoms/src/components/textarea/textarea.d.ts +38 -0
- package/library/packages/atoms/src/components/tooltip/tooltip.d.ts +9 -0
- package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +1 -0
- package/library/packages/hybrid/rich-text/src/components/rich-text-bubble-menu/rich-text-bubble-menu.d.ts +4 -0
- package/library/packages/hybrid/rich-text/src/components/rich-text-toolbar/rich-text-toolbar.d.ts +3 -0
- package/library/packages/hybrid/rich-text/src/rich-text.d.ts +3 -0
- package/library/packages/hybrid/table-core/src/table/components/table-toolbar/table-toolbar.d.ts +2 -0
- package/library/packages/hybrid/table-core/src/table/table.d.ts +3 -0
- package/library/packages/hybrid/video-advanced/src/video-advanced/video-advanced.d.ts +12 -0
- package/library/packages/molecules/src/3d-viewer/components/3d-viewer-config/3d-viewer-config.d.ts +3 -0
- package/library/packages/molecules/src/annotator/annotator.d.ts +2 -0
- package/library/packages/molecules/src/asset-format-picker/asset-format-picker.d.ts +3 -0
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +3 -0
- package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +3 -0
- package/library/packages/molecules/src/input-date-picker/input-date-picker.d.ts +3 -0
- package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +3 -0
- package/library/packages/molecules/src/multi-select/components/board/board.d.ts +4 -0
- package/library/packages/molecules/src/multi-select/components/board-list-item/board-list-item.d.ts +6 -0
- package/library/packages/molecules/src/publish-page/publish-page.d.ts +2 -0
- package/library/packages/molecules/src/view-and-sort/view-and-sort.d.ts +6 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +8 -2
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +11 -3
- package/library/packages/organisms/src/chatbot/chatbot.d.ts +4 -0
- package/library/packages/organisms/src/comment/comment.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/blocks/button/button.d.ts +3 -0
- package/library/packages/organisms/src/content-builder/blocks/search-box/search-box.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/rte-bubble-menu.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-table-generator/rte-table-generator.d.ts +6 -0
- package/library/packages/organisms/src/downloader/downloader.d.ts +6 -0
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +2 -0
- package/library/packages/organisms/src/find-and-replace/find-and-replace.d.ts +1 -0
- package/library/packages/organisms/src/text-to-speech/text-to-speech.d.ts +3 -0
- package/library/react-web-component.d.ts +30 -30
- package/library/utils.js +7 -7
- package/package.json +1 -1
- package/library/chunks/{src.CFxipFzl.js → src.BJpSLSUr.js} +1 -1
|
@@ -11,7 +11,7 @@ import { t as m } from "./when.BUskJLtZ.js";
|
|
|
11
11
|
import { t as h } from "./style-map.DPGQIxip.js";
|
|
12
12
|
import { t as g } from "./debounce.Ci-xdsHE.js";
|
|
13
13
|
import { t as _ } from "./resize-observer.D9EHlnZI.js";
|
|
14
|
-
import { t as v } from "./line-clamp.
|
|
14
|
+
import { t as v } from "./line-clamp.COXyDBRB.js";
|
|
15
15
|
import { t as y } from "./typography.B0mkhqTB.js";
|
|
16
16
|
import { t as b } from "./repeat.CKv9FPlC.js";
|
|
17
17
|
import { t as x } from "./space.Dd8jezXK.js";
|
|
@@ -13,8 +13,8 @@ import { t as y } from "./icon.CeQpEaQz.js";
|
|
|
13
13
|
import { t as b } from "./style-map.DPGQIxip.js";
|
|
14
14
|
import { t as x } from "./button.DnOMjl_G.js";
|
|
15
15
|
import { t as ee } from "./tooltip.DJl5qcTx.js";
|
|
16
|
-
import { t as te } from "./line-clamp.
|
|
17
|
-
import { S as ne, _ as re, a as ie, b as ae, c as oe, d as se, f as ce, g as le, h as ue, i as de, l as fe, m as pe, n as me, o as he, p as ge, s as S, t as C, u as w, v as T, x as E, y as D } from "./block-width.
|
|
16
|
+
import { t as te } from "./line-clamp.COXyDBRB.js";
|
|
17
|
+
import { S as ne, _ as re, a as ie, b as ae, c as oe, d as se, f as ce, g as le, h as ue, i as de, l as fe, m as pe, n as me, o as he, p as ge, s as S, t as C, u as w, v as T, x as E, y as D } from "./block-width.BDpJyD-F.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";
|
|
@@ -29,13 +29,13 @@ import { n as xe, t as Se } from "./ref.CU1NC5AM.js";
|
|
|
29
29
|
import { t as Ce } from "./textarea.BgWdR_7D.js";
|
|
30
30
|
import { t as we } from "./option.Da60zYvc.js";
|
|
31
31
|
import { t as Te } from "./space.Dd8jezXK.js";
|
|
32
|
-
import { t as Ee } from "./select.
|
|
33
|
-
import { t as De } from "./tab.
|
|
34
|
-
import { t as z } from "./tab-group.
|
|
32
|
+
import { t as Ee } from "./select.CEgt2ciT.js";
|
|
33
|
+
import { t as De } from "./tab.C0oUx7MY.js";
|
|
34
|
+
import { t as z } from "./tab-group.DIVmzKse.js";
|
|
35
35
|
import { t as Oe } from "./map.ByDuLduF.js";
|
|
36
36
|
import { t as ke } from "./tab-panel.BxeoKuSv.js";
|
|
37
37
|
import { t as Ae } from "./visually-hidden.Bv3SInZp.js";
|
|
38
|
-
import { R as je } from "./src.
|
|
38
|
+
import { R as je } from "./src.BJpSLSUr.js";
|
|
39
39
|
import { o as B, t as V } from "./dialog.BKSCSk0r.js";
|
|
40
40
|
import { t as Me } from "./divider.CqSNZCU8.js";
|
|
41
41
|
import { n as Ne } from "./toString.r2ImdBrm.js";
|
|
@@ -44,26 +44,26 @@ import { t as Fe } from "./keyed.zYwdaCfO.js";
|
|
|
44
44
|
import { t as Ie } from "./grid.CK4PRwur.js";
|
|
45
45
|
import { t as Le } from "./grid-item.CSieaU5T.js";
|
|
46
46
|
import { t as Re } from "./radio.DhPbmKbQ.js";
|
|
47
|
-
import { t as ze } from "./radio-card.
|
|
47
|
+
import { t as ze } from "./radio-card.jROctGtI.js";
|
|
48
48
|
import { t as Be } from "./radio-group.DSnDDjKe.js";
|
|
49
49
|
import { t as Ve } from "./switch.CBho2RVW.js";
|
|
50
|
-
import { t as He } from "./bicolor-picker.
|
|
51
|
-
import { t as Ue } from "./border-input-group.
|
|
50
|
+
import { t as He } from "./bicolor-picker.YUjpxOEl.js";
|
|
51
|
+
import { t as Ue } from "./border-input-group.D5V40_dV.js";
|
|
52
52
|
import { n as We, t as U } from "./confirm-popover.UUhlXSDu.js";
|
|
53
|
-
import { t as Ge } from "./corner-position-input-group.
|
|
53
|
+
import { t as Ge } from "./corner-position-input-group.vhSOueRn.js";
|
|
54
54
|
import { t as W } from "./_baseIteratee.DWc2-Bvm.js";
|
|
55
|
-
import { t as Ke } from "./dynamic-select.
|
|
55
|
+
import { t as Ke } from "./dynamic-select.DmTXLyzH.js";
|
|
56
56
|
import { t as G } from "./string-array.Dstcqyjm.js";
|
|
57
57
|
import { t as qe } from "./choose.C2vpqhLc.js";
|
|
58
58
|
import { t as Je } from "./padding-input-group.CGDq3Cct.js";
|
|
59
59
|
import { t as Ye } from "./position-picker.DzRyAx7a.js";
|
|
60
|
-
import { t as Xe } from "./shadow-input-group.
|
|
61
|
-
import { t as Ze } from "./size-input-group.
|
|
62
|
-
import { T as K } from "./asset-link-format.
|
|
60
|
+
import { t as Xe } from "./shadow-input-group.DTEIzl1s.js";
|
|
61
|
+
import { t as Ze } from "./size-input-group.DtldCuqS.js";
|
|
62
|
+
import { T as K } from "./asset-link-format.B_gS4nTL.js";
|
|
63
63
|
import { n as Qe } from "./_baseXor.Ca5K0ORC.js";
|
|
64
64
|
import { n as $e, s as et, t as q } from "./isArrayLikeObject.Da3IzQeH.js";
|
|
65
65
|
import { i as tt } from "./_baseClone.CnI5Vpqn.js";
|
|
66
|
-
import { P as nt, l as J, s as rt, t as it } from "./configs-controller.
|
|
66
|
+
import { P as nt, l as J, s as rt, t as it } from "./configs-controller.C8z7oMRd.js";
|
|
67
67
|
import { t as at } from "./isEmpty.D3QQduJ5.js";
|
|
68
68
|
import { i as ot } from "./cloneDeep.C6x5LNv3.js";
|
|
69
69
|
//#region ../../node_modules/lodash-es/difference.js
|
|
@@ -575,7 +575,7 @@ var Y = (e) => M(e) ? e._$litType$.h : e.strings, X = g(class extends h {
|
|
|
575
575
|
return t`<cx-space direction="vertical" spacing="medium" wrap="nowrap"><cx-typography variant="body2">${this.localize.term("contentBuilderBlockSettingsHelpText")}</cx-typography><cx-grid columns="3" use-flex-gap spacing="var(--cx-spacing-small)" column-spacing="0" wrap="nowrap"><cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("templateName")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-input name="name" value=${this.name ?? ""} can-show-length maxlength="200" required @cx-change=${this.handleNameInputChange} type="text"></cx-input></cx-grid-item></cx-grid><cx-grid columns="3" use-flex-gap spacing="var(--cx-spacing-small)" column-spacing="0" wrap="nowrap"><cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("description")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-textarea name="description" value=${this.description ?? ""} can-show-length maxlength="200" resize="none" @cx-change=${this.handleDescriptionInputChange} type="text"></cx-textarea></cx-grid-item></cx-grid></cx-space>`;
|
|
576
576
|
}
|
|
577
577
|
render() {
|
|
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>${Fe(this.formKey, t`<form id="config-form" @submit=${this.handleFormSubmit}>${X(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(!at(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>`)}
|
|
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.localize.term("template")}: ${this.templateName}`}</cx-line-clamp></cx-typography>`)}</cx-space>${Fe(this.formKey, t`<form id="config-form" @submit=${this.handleFormSubmit}>${X(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(!at(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
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
|
}
|
|
@@ -5,20 +5,20 @@ import { a as o, c as s, i as c, l, o as u, s as d } from "./resizable-component
|
|
|
5
5
|
import { D as f, E as p, O as m, u as h } from "./string.DAuTpyw8.js";
|
|
6
6
|
import { n as g } from "./position-picker.dY_vgF_H.js";
|
|
7
7
|
import { a as _, n as v, o as ee, s as y } from "./src.BJhIYoMP.js";
|
|
8
|
-
import { a as te, i as ne, r as re } from "./tab-group.
|
|
8
|
+
import { a as te, i as ne, r as re } from "./tab-group.DIVmzKse.js";
|
|
9
9
|
import { t as ie } from "./parse.CDrJ-NY7.js";
|
|
10
|
-
import { G as ae, J as oe, U as se, V as ce } from "./src.
|
|
10
|
+
import { G as ae, J as oe, U as se, V as ce } from "./src.BJpSLSUr.js";
|
|
11
11
|
import { t as le } from "./toString.r2ImdBrm.js";
|
|
12
12
|
import { t as ue } from "./capitalize.BT_EavGy.js";
|
|
13
|
-
import { a as de, i as fe, n as pe, r as me } from "./document-viewer.
|
|
13
|
+
import { a as de, i as fe, n as pe, r as me } from "./document-viewer.DVV4HsLS.js";
|
|
14
14
|
import { l as he, p as ge } from "./url.BCc06dE7.js";
|
|
15
15
|
import { _ as _e, g as ve, p as ye, v as be } from "./color.CIOzHtLK.js";
|
|
16
16
|
import { _ as xe, g as Se, h as Ce, m as we, p as Te, s as b } from "./responsive.L9Csz2w2.js";
|
|
17
17
|
import { r as x } from "./asset-link-format.COPyGdND.js";
|
|
18
18
|
import { n as Ee, r as De } from "./header.CD4B3ylz.js";
|
|
19
19
|
import { c as Oe, f as ke, p as S, s as C, u as w } from "./string-array.Dstcqyjm.js";
|
|
20
|
-
import { n as Ae } from "./folder-select.
|
|
21
|
-
import { a as T, i as E, o as D, r as O, s as je } from "./color-swatch-group.
|
|
20
|
+
import { n as Ae } from "./folder-select.BF1l6Zah.js";
|
|
21
|
+
import { a as T, i as E, o as D, r as O, s as je } from "./color-swatch-group.C-4jpi7T.js";
|
|
22
22
|
import { n as Me } from "./isEmpty.D3QQduJ5.js";
|
|
23
23
|
import { a as k } from "./cloneDeep.C6x5LNv3.js";
|
|
24
24
|
//#region ../../packages/services/src/api/dashboard/dashboard.ts
|
|
@@ -7,7 +7,7 @@ import { t as l } from "./src.BJhIYoMP.js";
|
|
|
7
7
|
import { t as u } from "./input.D1UkXp3F.js";
|
|
8
8
|
import { t as d } from "./option.Da60zYvc.js";
|
|
9
9
|
import { t as f } from "./space.Dd8jezXK.js";
|
|
10
|
-
import { t as p } from "./select.
|
|
10
|
+
import { t as p } from "./select.CEgt2ciT.js";
|
|
11
11
|
//#region ../../packages/molecules/src/corner-position-input-group/corner-position-input-group.styles.ts
|
|
12
12
|
var m = t`:host{width:100%;display:block}.corner-position-input-group__inputs{width:100%}.corner-position-input-group__input{flex:1}`, h = {
|
|
13
13
|
mask: "numpx",
|
|
@@ -5,8 +5,8 @@ import { t as l } from "./custom-element.BEMYNDK1.js";
|
|
|
5
5
|
import { t as u } from "./slot.CZUlACxT.js";
|
|
6
6
|
import { t as d } from "./watch.Ub5r8btz.js";
|
|
7
7
|
import { t as f } from "./when.BUskJLtZ.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { t as p } from "./debounce.Ci-xdsHE.js";
|
|
9
|
+
import { g as m } from "./string.DAuTpyw8.js";
|
|
10
10
|
import { t as h } from "./unsafe-html.Cb838aX7.js";
|
|
11
11
|
//#region ../../packages/atoms/src/components/diff/diff.styles.ts
|
|
12
12
|
var g = t`:host,.cx-diff__content{display:inline}.cx-diff__del,.cx-diff__old{background-color:var(--cx-diff-deleted-bg,var(--cx-color-neutral-200));color:var(--cx-diff-deleted-color,inherit);margin-inline-end:var(--cx-diff-gap,var(--cx-spacing-2x-small));text-decoration:line-through}.cx-diff__ins,.cx-diff__new{background-color:var(--cx-diff-inserted-bg,var(--cx-color-success-200));color:var(--cx-diff-inserted-color,inherit)}`, _ = "(function(){let e=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`],t=[`<table>`];function n(t){return t?e.includes(t.match(/^<(\\w+)/)?.[1]?.toLowerCase()||t.match(/^<\\/(\\w+)/)?.[1]?.toLowerCase()||``):!1}function r(e){return!e||n(e.key)?!1:/<([a-z]+)(?![^>]*\\/>)[^>]*>/.test(e.key)}function i(e){return!e||n(e.key)?!1:/<\\/\\w+>/.test(e.key)}let a=/* @__PURE__ */ RegExp(`^<(iframe|object|math|svg|script|video|head|style|a|source)\\b`);function o(e){return e===`>`}function s(e){return e===`<`}function c(e){return/^\\s+$/.test(e)}function l(e){let t=e.match(/^\\s*<([^!>][^>]*)>\\s*$/);return!!t&&t[1].trim().split(` `)[0]}function u(e){return!l(e)}function d(e){return/^<!--/.test(e)}function f(e){return/-->$/.test(e)}function p(e){let t=a.exec(e);return t&&t[1]}function m(e,t){return e.substring(e.length-t.length-2)===`</`+t}function h(e){let t=/^<img[\\s>]/.test(e);return!/^<source[\\s>]/.test(e)&&(t||u(e)||!!p(e)||n(e))}function g(e){return{key:e,string:e}}function _(e,t,n,r){this.segment=r,this.length=n,this.startInBefore=e+r.beforeIndex,this.startInAfter=t+r.afterIndex,this.endInBefore=this.startInBefore+this.length-1,this.endInAfter=this.startInAfter+this.length-1,this.segmentStartInBefore=e,this.segmentStartInAfter=t,this.segmentEndInBefore=this.segmentStartInBefore+this.length-1,this.segmentEndInAfter=this.segmentStartInAfter+this.length-1}function v(e){let t=`char`,n=``,r=``,i=[];for(let l=0;l<e.length;l++){let u=e[l];switch(t){case`tag`:var a=p(n);a?(t=`atomic_tag`,r=a,n+=u):d(n)?(t=`html_comment`,n+=u):o(u)?(n+=`>`,i.push(g(n)),n=``,t=c(u)?`whitespace`:`char`):n+=u;break;case`atomic_tag`:o(u)&&m(n,r)?(n+=`>`,i.push(g(n)),n=``,r=``,t=`char`):n+=u;break;case`html_comment`:n+=u,f(n)&&(n=``,t=`char`);break;case`char`:s(u)?(n&&i.push(g(n)),n=`<`,t=`tag`):/\\s/.test(u)?(n&&i.push(g(n)),n=u,t=`whitespace`):/[\\w\\d#@]/.test(u)?n+=u:/&/.test(u)?(n&&i.push(g(n)),n=u):(n+=u,i.push(g(n)),n=``);break;case`whitespace`:s(u)?(n&&i.push(g(n)),n=`<`,t=`tag`):c(u)?n+=u:(n&&i.push(g(n)),n=u,t=`char`);break;default:throw Error(`Unknown mode `+t)}}return n&&i.push(g(n)),i}function y(e){let t=/^<img.*src=['\"]([^\"']*)['\"].*>$/.exec(e);if(t)return`<img src=\"`+t[1]+`\">`;let n=/^<a.*href=['\"]([^\"']*)['\"]/.exec(e);if(n)return`<a href=\"`+n[1]+`\"></a>`;let r=/^<object.*data=['\"]([^\"']*)['\"]/.exec(e);if(r)return`<object src=\"`+r[1]+`\"></object>`;if(/^<(svg|math|video)[\\s>]/.test(e)){let t=e.indexOf(`data-uuid=\"`);return t===-1?e:e.slice(0,t)+e.slice(t+44)}let i=/^<iframe.*src=['\"]([^\"']*)['\"].*>/.exec(e);if(i)return`<iframe src=\"`+i[1]+`\"></iframe>`;let a=/<([^\\s>]+)[\\s>]/.exec(e);return a?`<`+a[1].toLowerCase()+`>`:e&&e.replace(/(\\s+| | )/g,` `)}function b(e){return e.reduce((e,t,n)=>(e[t.key]?e[t.key].push(n):e[t.key]=[n],e),Object.create(null))}function x(e,t){return t.endInBefore<e.startInBefore&&t.endInAfter<e.startInAfter?-1:+(t.startInBefore>e.endInBefore&&t.startInAfter>e.endInAfter)}function S(){this._root=null}S.prototype={add:function(e){let t={left:null,right:null,value:e},n=this._root;if(n)for(;;){let r=x(n.value,e);if(r===-1){if(n.left)n=n.left;else{n.left=t;break}}else if(r===1){if(n.right)n=n.right;else{n.right=t;break}}else break}else this._root=t},toArray:function(){function e(t,n){return t&&(e(t.left,n),n.push(t.value),e(t.right,n)),n}return e(this._root,[])}};function C(e,n,a){let o=e.beforeTokens,s=e.afterMap,c=null,l=null;for(var u=0;u<o.length;u++){var d=!1;let f=o.length-u;if(l&&f<l.length)break;let p=o[u];if(t.includes(y(p.key)))continue;if(p.key===` `){c=u;continue}c===u-1&&(d=!0);let m=s[p.key];if(m)for(let o of m){let s=l?l.length:0,c=w(e,u,o,s,d);if(c&&c.length>s){let e=0,o=``,s=``,u=0,d=0,f=0;for(let t=c.endInBefore;t>=c.startInBefore;t--)i(n[t])?e++:r(n[t])&&e>0&&e--;for(let e=c.endInAfter;e>=c.startInAfter;e--)i(a[e])?u++:r(a[e])&&u>0&&u--;let p=c.startInBefore-1,m=c.startInAfter-1,h=!0,g=n.length+a.length,_=0;for(;(p>=0||m>=0)&&!(_>g);)if(_++,p>=0&&!o&&(r(n[p])?d>0?d--:e>0?(o=n[p].string,e--):o=n[p].string:i(n[p])&&d++,p--),m>=0&&!s&&(r(a[m])?f>0?f--:u>0?(s=a[m].string,u--):s=a[m].string:i(a[m])&&f++,m--),o&&s||o&&m<0||s&&p<0){if(o!==s||t.includes(y(o))){h=!1;break}o=``,s=``;continue}h&&(l=c)}}}return l||null}function w(e,n,r,i,a){let o=e.beforeTokens,s=e.afterTokens,c=n+i,l=r+i;if(c>=o.length||l>=s.length)return;let u=``;if(i){let e=o[c].key;if(e!==s[l].key&&!t.includes(y(e)))return}let d=!0,f=1,p=n+f,m=r+f;for(;d&&p<o.length&&m<s.length;){u=o[p].key;let e=s[m].key;u===e&&!t.includes(y(u))?(f++,p=n+f,m=r+f):d=!1}if(a&&n>0&&r>0){let e=o[n-1].key,t=s[r-1].key;e===` `&&t===` `&&(n--,r--,f++)}return new _(n,r,f,e)}function T(e,t,n,r){return{afterIndex:r,afterMap:b(t),afterTokens:t,beforeIndex:n,beforeMap:b(e),beforeTokens:e}}function E(e){let t=new S,n,r=[e],i=e.beforeTokens,a=e.afterTokens;for(;r.length;)if(e=r.pop(),n=C(e,i,a),n&&n.length){if(n.segmentStartInBefore>0&&n.segmentStartInAfter>0){let t=e.beforeTokens.slice(0,n.segmentStartInBefore),i=e.afterTokens.slice(0,n.segmentStartInAfter);r.push(T(t,i,e.beforeIndex,e.afterIndex))}let i=e.beforeTokens.slice(n.segmentEndInBefore+1),a=e.afterTokens.slice(n.segmentEndInAfter+1),o=e.beforeIndex+n.segmentEndInBefore+1,s=e.afterIndex+n.segmentEndInAfter+1;i.length&&a.length&&r.push(T(i,a,o,s)),t.add(n)}return t.toArray()}function D(e,t){if(!e)throw Error(`Missing beforeTokens`);if(!t)throw Error(`Missing afterTokens`);let n=0,r=0,i=[],a=T(e,t,0,0),o=E(a);o.push(new _(e.length,t.length,0,a));for(let e=0;e<o.length;e++){let t=o[e],a=`none`;n===t.startInBefore?r!==t.startInAfter&&(a=`insert`):(a=`delete`,r!==t.startInAfter&&(a=`replace`)),a!==`none`&&i.push({action:a,endInAfter:a===`delete`?null:t.startInAfter-1,endInBefore:a===`insert`?null:t.startInBefore-1,startInAfter:r,startInBefore:n}),t.length!==0&&i.push({action:`equal`,endInAfter:t.endInAfter,endInBefore:t.endInBefore,startInAfter:t.startInAfter,startInBefore:t.startInBefore}),n=t.endInBefore+1,r=t.endInAfter+1}let s=[],c={action:`none`,endInAfter:null,endInBefore:null,startInAfter:0,startInBefore:0};function l(t){return t.action!==`equal`||(t.endInBefore??0)-t.startInBefore!==0?!1:/^\\s$/.test(e.slice(t.startInBefore,(t.endInBefore??0)+1))}for(let e=0;e<i.length;e++){let t=i[e];l(t)&&c.action===`replace`||t.action===`replace`&&c.action===`replace`?(c.endInBefore=t.endInBefore,c.endInAfter=t.endInAfter):(s.push(t),c=t)}return s}function O(e){this.tokens=e,this.notes=e.reduce((e,t,i)=>{e.notes.push({insertedTag:r({key:t}),isWrappable:h(t)});let a=!n(t)&&l(t),o=e.tagStack[e.tagStack.length-1];return a&&(o&&`/`+o.tag===a?(e.notes[o.position].insertedTag=!0,e.tagStack.pop()):e.tagStack.push({position:i,tag:a})),e},{notes:[],tagStack:[]}).notes}O.prototype.combine=function(e,t){let n=this.notes,r=this.tokens.slice();return r.reduce((e,i,a)=>{n[a].insertedTag&&(r[a]=t(r[a])),e.status===null&&(e.status=n[a].isWrappable);let o=n[a].isWrappable;return o!==e.status&&(e.list.push({isWrappable:e.status,tokens:r.slice(e.lastIndex,a)}),e.lastIndex=a,e.status=o),a===r.length-1&&e.list.push({isWrappable:e.status,tokens:r.slice(e.lastIndex,a+1)}),e},{lastIndex:0,list:[],status:null}).list.map(e).join(``)};function k(e,t,n,r,i){let a=new O(t);r=r?r+`-`:``;let o=` data-`+r+`operation-index=\"`+n+`\"`;return i&&(o+=` class=\"`+i+`\"`),a.combine(t=>{if(t.isWrappable){let n=t.tokens.join(``);return n.trim()?`<`+e+o+`>`+n+`</`+e+`>`:n}return t.tokens.join(``)},t=>{let i=` data-diff-node=\"`+e+`\"`;return i+=` data-`+r+`operation-index=\"`+n+`\"`,t.replace(/>\\s*$/,i+`$&`)})}let A={delete:function(e,t,n,r,i,a){return k(`del`,t.slice(e.startInBefore,(e.endInBefore??0)+1).map(e=>e.string),r,i,a)},equal:function(e,t,n){return n.slice(e.startInAfter,(e.endInAfter??0)+1).reduce((e,t)=>e+t.string,``)},insert:function(e,t,n,r,i,a){return k(`ins`,n.slice(e.startInAfter,(e.endInAfter??0)+1).map(e=>e.string),r,i,a)},replace:function(e,t,n){let r=t.slice(e.startInBefore,(e.endInBefore??0)+1).reduce((e,t)=>e+t.string,``),i=n.slice(e.startInAfter,(e.endInAfter??0)+1).reduce((e,t)=>e+t.string,``);return r===i?i:A.delete.apply(null,arguments)+A.insert.apply(null,arguments)}};function j(e,t,n,r,i){return n.reduce((n,a,o)=>n+A[a.action](a,e,t,o,r,i),``)}function M(e){return e.replaceAll(/(\\w+)=(\"[^\"]*\")/g,(e,t,n)=>`${t}=${n.replaceAll(`<`,`<`).replaceAll(`>`,`>`)}`)}function N(e){return e.replaceAll(/(\\w+)=(\"[^\"]*\")/g,(e,t,n)=>`${t}=${n.replaceAll(`<`,`<`).replaceAll(`>`,`>`)}`)}function P(e,t,n,r,i){if(e===t)return e;i&&(a=RegExp(`^<(`+i.replace(/\\s*/g,``).replace(/,/g,`|`)+`)\\b`));let o=M(e),s=M(t),c=v(o),l=v(s);return N(j(c,l,D(c,l),r,n))}function F(e){let t=/<[^>]*\\sstyle=\"([^\"]*)\"[^>]*>/,n=e.match(t),r=n?.[1]?Object.fromEntries(n[1].split(`;`).map(e=>e.split(`:`))):{},i=``,a=``;Object.keys(r).filter(e=>e?e.includes(`border`)||e.includes(`padding`)||[`width`,`height`].includes(e)?(i+=`${e}:${r[e]};`,!1):!0:!1).forEach(e=>{a+=`${e}:${r[e]};`});let o=n?e.replace(t,e=>e.replace(/style=\"[^\"]*\"/,`style=\"${i}\"`)):e;return[a,o]}typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&(self.onmessage=function(e){if(e.data.type===`cx-diff-request`){let{id:t,newValue:n,oldValue:r}=e.data.payload;try{let e=P(r,n);self.postMessage({payload:{id:t,result:e},type:`cx-diff-response`})}catch{self.postMessage({payload:{id:t,result:``},type:`cx-diff-response`})}}if(e.data.type===`diffHTMLRequest`){let{changeRecordID:t,newValue:n,oldValue:r}=e.data.payload;try{let e=P(r,n).replaceAll(/<ins[^>]*>/g,`<span class=\"mce-item-ins-node\">`).replaceAll(`</ins>`,`</span>`).replaceAll(/<del[^>]*>/g,`<span class=\"mce-item-del-node\">`).replaceAll(`</del>`,`</span>`),i=[`video`,`code`,`iframe`],a=RegExp(`<(${i.join(`|`)})[^>]*>`,`g`),o=RegExp(`<\\/(${i.join(`|`)})[^>]*>`,`g`);e=e.replaceAll(a,e=>{let t=F(e);return`<span class=\"block-wrapper\" style=\"${t[0]}\">${t[1]}`}).replaceAll(o,e=>`${e}</span>`).replaceAll(/* @__PURE__ */ RegExp(`<(img)[^>]*>`,`g`),e=>{let t=F(e);return`<span class=\"block-wrapper\" style=\"${t[0]}\">${t[1]}</span>`}),self.postMessage({payload:{changeRecordID:t,diff:e,newValue:n,oldValue:r},type:`diffHTML`})}catch{self.postMessage({payload:{changeRecordID:t,diff:``,newValue:n,oldValue:r},type:`diffHTML`})}}})})();", v = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", _], { type: "text/javascript;charset=utf-8" });
|
|
@@ -78,7 +78,7 @@ var E = class extends s {
|
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
80
|
let t = await T(this.oldValue, this.newValue);
|
|
81
|
-
e === this.latestRequestId && (this.diffResult =
|
|
81
|
+
e === this.latestRequestId && (this.diffResult = m(t.replaceAll(/<ins[^>]*>/g, "<span class=\"cx-diff__ins\">").replaceAll("</ins>", "</span>").replaceAll(/<del[^>]*>/g, "<span class=\"cx-diff__del\">").replaceAll("</del>", "</span>")));
|
|
82
82
|
}
|
|
83
83
|
renderSlotMode() {
|
|
84
84
|
let t = this.hasSlotController.test("old"), n = this.hasSlotController.test("new");
|
|
@@ -103,7 +103,7 @@ a([r({
|
|
|
103
103
|
}), o("design:type", Object)], E.prototype, "newValue", void 0), a([i(), o("design:type", Object)], E.prototype, "diffResult", void 0), a([
|
|
104
104
|
d("oldValue"),
|
|
105
105
|
d("newValue", { waitUntilFirstUpdate: !0 }),
|
|
106
|
-
|
|
106
|
+
p(16),
|
|
107
107
|
o("design:type", Function),
|
|
108
108
|
o("design:paramtypes", []),
|
|
109
109
|
o("design:returntype", void 0)
|
|
@@ -13,8 +13,8 @@ import { t as icon_default } from "./icon.CeQpEaQz.js";
|
|
|
13
13
|
import { t as spinner_default } from "./spinner.DsWszid8.js";
|
|
14
14
|
import { t as button_default } from "./button.DnOMjl_G.js";
|
|
15
15
|
import { a as ResizeDirection, i as HeightMode, n as ResizableElement, t as resizable_component_styles_default } from "./resizable-component.styles.v9pbLDG5.js";
|
|
16
|
-
import { t as tooltip_default } from "./tooltip.DJl5qcTx.js";
|
|
17
16
|
import { t as resize_observer_default } from "./resize-observer.D9EHlnZI.js";
|
|
17
|
+
import { t as tooltip_default } from "./tooltip.DJl5qcTx.js";
|
|
18
18
|
import { a as ObjectFit } from "./src.BJhIYoMP.js";
|
|
19
19
|
import { t as typography_default } from "./typography.B0mkhqTB.js";
|
|
20
20
|
import { t as dropdown_default } from "./dropdown.CcjP36wF.js";
|
|
@@ -22,13 +22,13 @@ import { t as focusWhenVisible } from "./focus-when-visible.DKscgyKo.js";
|
|
|
22
22
|
import { t as input_default } from "./input.D1UkXp3F.js";
|
|
23
23
|
import { t as menu_default } from "./menu.DNeN3pz0.js";
|
|
24
24
|
import { t as menu_item_default } from "./menu-item.CCbtHE5R.js";
|
|
25
|
-
import { Y as fetchCortexApi } from "./src.
|
|
25
|
+
import { Y as fetchCortexApi } from "./src.BJpSLSUr.js";
|
|
26
26
|
import { t as drawer_default } from "./drawer.BEXLFfil.js";
|
|
27
27
|
import { t as progress_bar_default } from "./progress-bar.BfHPsueW.js";
|
|
28
28
|
import { a as require_react, n as w, r as require_client, t as require_jsx_runtime } from "./jsx-runtime.BqxT1jD6.js";
|
|
29
29
|
import { t as require___vite_browser_external } from "./__vite-browser-external.CMLby1wp.js";
|
|
30
30
|
import { i as _extends, r as _assertThisInitialized, t as _inheritsLoose } from "./inheritsLoose.CmL1ZoPA.js";
|
|
31
|
-
import { t as image_default } from "./image.
|
|
31
|
+
import { t as image_default } from "./image.C6-Opjew.js";
|
|
32
32
|
//#region ../../packages/types/src/book-reader.ts
|
|
33
33
|
var BookReaderMode$1 = /* @__PURE__ */ function(t) {
|
|
34
34
|
return t.Image = "Image", t.Pdf = "Pdf", t;
|
|
@@ -9,11 +9,11 @@ import { t as d } from "./icon-button.BAUsYiQh.js";
|
|
|
9
9
|
import { t as f } from "./if-defined.B29V_rEp.js";
|
|
10
10
|
import { t as p } from "./when.BUskJLtZ.js";
|
|
11
11
|
import { t as m } from "./style-map.DPGQIxip.js";
|
|
12
|
-
import { t as h } from "./
|
|
13
|
-
import { t as g } from "./
|
|
12
|
+
import { t as h } from "./debounce.Ci-xdsHE.js";
|
|
13
|
+
import { t as g } from "./button.DnOMjl_G.js";
|
|
14
14
|
import { t as _ } from "./repeat.CKv9FPlC.js";
|
|
15
15
|
import { n as v, t as y } from "./option.Da60zYvc.js";
|
|
16
|
-
import { t as b } from "./select.
|
|
16
|
+
import { t as b } from "./select.CEgt2ciT.js";
|
|
17
17
|
import { t as x } from "./map.ByDuLduF.js";
|
|
18
18
|
import { t as S } from "./keyed.zYwdaCfO.js";
|
|
19
19
|
import { t as C } from "./_baseIteratee.DWc2-Bvm.js";
|
|
@@ -45,7 +45,7 @@ var E = class extends a {
|
|
|
45
45
|
}, this.stayOpenOnSelect = !1, this.closeOnSelect = !1, this.forceOnChange = !1, this.allowDefaultMouseDown = !1, this.columns = [], this.useSearchTerm = !1, this.noSelectOnEnter = !1, this.noResetCurrent = !1, this.iconName = "", this.iconSrc = "", this.noDropdown = !1, this.noDropdownOnEmpty = !1, this.noFlip = !1, this.customChangeEvent = "", this.autoFallbackFirstOption = !1, this.hasOptions = !1, this.options = [], this.start = 0, this.searchTerm = "", this.hasMore = !1, this.loading = !1, this.fetchToken = 0;
|
|
46
46
|
}
|
|
47
47
|
static #e = this.dependencies = {
|
|
48
|
-
"cx-button":
|
|
48
|
+
"cx-button": g,
|
|
49
49
|
"cx-icon-button": d,
|
|
50
50
|
"cx-option": y,
|
|
51
51
|
"cx-select": b
|
|
@@ -257,7 +257,7 @@ r([o("cx-select"), i("design:type", b === void 0 ? Object : b)], E.prototype, "s
|
|
|
257
257
|
reflect: !0,
|
|
258
258
|
type: Boolean
|
|
259
259
|
}), i("design:type", Object)], E.prototype, "hasOptions", void 0), r([n(), i("design:type", Array)], E.prototype, "options", void 0), r([n(), i("design:type", Number)], E.prototype, "start", void 0), r([n(), i("design:type", Object)], E.prototype, "searchTerm", void 0), r([n(), i("design:type", Object)], E.prototype, "hasMore", void 0), r([n(), i("design:type", Object)], E.prototype, "loading", void 0), r([
|
|
260
|
-
|
|
260
|
+
h(200),
|
|
261
261
|
i("design:type", Function),
|
|
262
262
|
i("design:paramtypes", [Object]),
|
|
263
263
|
i("design:returntype", Promise)
|
|
@@ -11,11 +11,11 @@ import { t as _ } from "./when.BUskJLtZ.js";
|
|
|
11
11
|
import { t as v } from "./icon.CeQpEaQz.js";
|
|
12
12
|
import { t as ee } from "./spinner.DsWszid8.js";
|
|
13
13
|
import { t as te } from "./style-map.DPGQIxip.js";
|
|
14
|
-
import { t as ne } from "./
|
|
14
|
+
import { t as ne } from "./debounce.Ci-xdsHE.js";
|
|
15
|
+
import { t as re } from "./button.DnOMjl_G.js";
|
|
15
16
|
import { d as y } from "./string.DAuTpyw8.js";
|
|
16
|
-
import { t as re } from "./debounce.Ci-xdsHE.js";
|
|
17
17
|
import { t as b } from "./tooltip.DJl5qcTx.js";
|
|
18
|
-
import { t as x } from "./line-clamp.
|
|
18
|
+
import { t as x } from "./line-clamp.COXyDBRB.js";
|
|
19
19
|
import { t as S } from "./number.CNp5LKkv.js";
|
|
20
20
|
import { t as C } from "./typography.B0mkhqTB.js";
|
|
21
21
|
import { t as ie } from "./avatar.Ce0OZHBT.js";
|
|
@@ -23,9 +23,9 @@ import { t as w } from "./repeat.CKv9FPlC.js";
|
|
|
23
23
|
import { t as ae } from "./input.D1UkXp3F.js";
|
|
24
24
|
import { t as oe } from "./option.Da60zYvc.js";
|
|
25
25
|
import { t as se } from "./space.Dd8jezXK.js";
|
|
26
|
-
import { t as ce } from "./select.
|
|
27
|
-
import { t as le } from "./tab.
|
|
28
|
-
import { t as T } from "./tab-group.
|
|
26
|
+
import { t as ce } from "./select.CEgt2ciT.js";
|
|
27
|
+
import { t as le } from "./tab.C0oUx7MY.js";
|
|
28
|
+
import { t as T } from "./tab-group.DIVmzKse.js";
|
|
29
29
|
import { t as ue } from "./tab-panel.BxeoKuSv.js";
|
|
30
30
|
import { t as E } from "./dialog.BKSCSk0r.js";
|
|
31
31
|
import { t as de } from "./divider.CqSNZCU8.js";
|
|
@@ -33,7 +33,7 @@ import { t as fe } from "./progress-bar.BfHPsueW.js";
|
|
|
33
33
|
import { o as D, u as O } from "./url.BCc06dE7.js";
|
|
34
34
|
import k from "../components/format-bytes.js";
|
|
35
35
|
import { t as pe } from "./relative-time.BcpFkSZT.js";
|
|
36
|
-
import { a as A, i as me, n as he, t as j } from "./tree.
|
|
36
|
+
import { a as A, i as me, n as he, t as j } from "./tree.Bq4vAQ6w.js";
|
|
37
37
|
import { t as ge } from "./confirm-popover.UUhlXSDu.js";
|
|
38
38
|
import { t as _e } from "./_baseIteratee.DWc2-Bvm.js";
|
|
39
39
|
import { t as ve } from "./choose.C2vpqhLc.js";
|
|
@@ -765,7 +765,7 @@ var Be = Q, Ve = t`:host{--asset-height:40px;color:var(--cx-color-neutral-900);-
|
|
|
765
765
|
static #e = this.styles = Ve;
|
|
766
766
|
static #t = this.dependencies = {
|
|
767
767
|
"cx-avatar": ie,
|
|
768
|
-
"cx-button":
|
|
768
|
+
"cx-button": re,
|
|
769
769
|
"cx-confirm-popover": ge,
|
|
770
770
|
"cx-dialog": E,
|
|
771
771
|
"cx-divider": de,
|
|
@@ -1275,7 +1275,7 @@ a([c(".container"), o("design:type", typeof HTMLDivElement > "u" ? Object : HTML
|
|
|
1275
1275
|
o("design:returntype", void 0)
|
|
1276
1276
|
], $.prototype, "onUploadingAssetsChanged", null), a([i(), o("design:type", String)], $.prototype, "searchText", void 0), a([
|
|
1277
1277
|
p(["searchText"]),
|
|
1278
|
-
|
|
1278
|
+
ne(200),
|
|
1279
1279
|
o("design:type", Function),
|
|
1280
1280
|
o("design:paramtypes", []),
|
|
1281
1281
|
o("design:returntype", void 0)
|
|
@@ -10,18 +10,18 @@ import { t as p } from "./if-defined.B29V_rEp.js";
|
|
|
10
10
|
import { t as m } from "./when.BUskJLtZ.js";
|
|
11
11
|
import { t as h } from "./icon.CeQpEaQz.js";
|
|
12
12
|
import { t as g } from "./style-map.DPGQIxip.js";
|
|
13
|
-
import { t as _ } from "./
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { t as S } from "./line-clamp.
|
|
17
|
-
import { t as C } from "./tag.
|
|
13
|
+
import { t as _ } from "./debounce.Ci-xdsHE.js";
|
|
14
|
+
import { t as v } from "./button.DnOMjl_G.js";
|
|
15
|
+
import { c as y, d as b, i as x } from "./string.DAuTpyw8.js";
|
|
16
|
+
import { t as S } from "./line-clamp.COXyDBRB.js";
|
|
17
|
+
import { t as C } from "./tag.B2S21_nF.js";
|
|
18
18
|
import { t as w } from "./repeat.CKv9FPlC.js";
|
|
19
19
|
import { t as T } from "./input.D1UkXp3F.js";
|
|
20
20
|
import { t as E } from "./space.Dd8jezXK.js";
|
|
21
|
-
import { t as D } from "./select.
|
|
21
|
+
import { t as D } from "./select.CEgt2ciT.js";
|
|
22
22
|
import { t as O } from "./template.Cyvih0XQ.js";
|
|
23
23
|
import { s as k } from "./asset-link-format.COPyGdND.js";
|
|
24
|
-
import { a as A, i as j } from "./tree.
|
|
24
|
+
import { a as A, i as j } from "./tree.Bq4vAQ6w.js";
|
|
25
25
|
import { l as M, m as N, p as P, t as F } from "./string-array.Dstcqyjm.js";
|
|
26
26
|
import { t as I } from "./choose.C2vpqhLc.js";
|
|
27
27
|
//#region ../../node_modules/axios/index.js
|
|
@@ -100,7 +100,7 @@ var K = /* @__PURE__ */ function(e) {
|
|
|
100
100
|
}
|
|
101
101
|
static #e = this.styles = [c];
|
|
102
102
|
static #t = this.dependencies = {
|
|
103
|
-
"cx-button":
|
|
103
|
+
"cx-button": v,
|
|
104
104
|
"cx-icon": h,
|
|
105
105
|
"cx-line-clamp": S,
|
|
106
106
|
"cx-space": E,
|
|
@@ -170,14 +170,14 @@ var K = /* @__PURE__ */ function(e) {
|
|
|
170
170
|
}
|
|
171
171
|
async syncBoxes() {
|
|
172
172
|
if (this.selection !== "multiple" || (await this.updateComplete, !this.treeItem)) return;
|
|
173
|
-
let e = this.fullPath, t =
|
|
173
|
+
let e = this.fullPath, t = y({
|
|
174
174
|
id: this.folderId,
|
|
175
175
|
path: e
|
|
176
|
-
}), n =
|
|
176
|
+
}), n = b(e), r = this.currentRootIDsSet.has(t), i = !1;
|
|
177
177
|
if (e) for (let e of this.currentRootIDsSet) {
|
|
178
|
-
let t =
|
|
178
|
+
let t = x(e);
|
|
179
179
|
if (!t.path.trim() || !t.id.trim()) continue;
|
|
180
|
-
let r =
|
|
180
|
+
let r = b(t.path);
|
|
181
181
|
if (r.startsWith(n) && r !== n) {
|
|
182
182
|
i = !0;
|
|
183
183
|
break;
|
|
@@ -194,7 +194,7 @@ var K = /* @__PURE__ */ function(e) {
|
|
|
194
194
|
return e`<cx-icon class="folder-select-tree__item__icon" name=${this.icon || "folder"} variant=${n}></cx-icon>`;
|
|
195
195
|
}
|
|
196
196
|
render() {
|
|
197
|
-
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(
|
|
197
|
+
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(y({
|
|
198
198
|
id: this.folderId,
|
|
199
199
|
path: this.fullPath
|
|
200
200
|
})) : 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>`)}
|
|
@@ -300,7 +300,7 @@ var J = q, Y = class extends o {
|
|
|
300
300
|
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 = G, 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();
|
|
301
301
|
}
|
|
302
302
|
static #e = this.dependencies = {
|
|
303
|
-
"cx-button":
|
|
303
|
+
"cx-button": v,
|
|
304
304
|
"cx-folder-select-tree-item": J,
|
|
305
305
|
"cx-tree": j
|
|
306
306
|
};
|
|
@@ -352,7 +352,7 @@ var J = q, Y = class extends o {
|
|
|
352
352
|
if (this.selection !== "multiple") return;
|
|
353
353
|
let t = e.target, n = t.dataset.id ?? "", r = t.closest("cx-folder-select-tree-item")?.fullPath;
|
|
354
354
|
if (await t.updateComplete, !n.trim() || !r?.trim()) return;
|
|
355
|
-
let i =
|
|
355
|
+
let i = y({
|
|
356
356
|
id: n,
|
|
357
357
|
path: r
|
|
358
358
|
});
|
|
@@ -391,7 +391,7 @@ var J = q, Y = class extends o {
|
|
|
391
391
|
t.length !== this.preloadedFolders.length && (this.preloadedFolders = t), this.removeDeselectedRootIDs(e), await this.preloadSelectedFolders();
|
|
392
392
|
}
|
|
393
393
|
removeDeselectedRootIDs(e) {
|
|
394
|
-
let t = new Set([...this.currentRootIDsSet].filter((t) => e.has(
|
|
394
|
+
let t = new Set([...this.currentRootIDsSet].filter((t) => e.has(x(t).id)));
|
|
395
395
|
t.size !== this.currentRootIDsSet.size && (this.currentRootIDsSet = t);
|
|
396
396
|
}
|
|
397
397
|
async fetchFolders() {
|
|
@@ -427,7 +427,7 @@ var J = q, Y = class extends o {
|
|
|
427
427
|
}
|
|
428
428
|
async preloadSelectedFolders() {
|
|
429
429
|
if (this.selection !== "multiple" || !this.selectedValue || !this.api) return !1;
|
|
430
|
-
let e = new Set(this.selectedValue.split(/[\s,]+/).filter(Boolean)), t = new Set([...this.currentRootIDsSet].map((e) =>
|
|
430
|
+
let e = new Set(this.selectedValue.split(/[\s,]+/).filter(Boolean)), t = new Set([...this.currentRootIDsSet].map((e) => x(e).id)), n = /* @__PURE__ */ new Set([...t, ...this.#r]), r = [...e].filter((e) => !n.has(e));
|
|
431
431
|
if (r.length === 0) return !1;
|
|
432
432
|
r.forEach((e) => this.#r.add(e)), this.preloading = !0;
|
|
433
433
|
let i = [];
|
|
@@ -456,7 +456,7 @@ var J = q, Y = class extends o {
|
|
|
456
456
|
if (this.selection !== "multiple" || !this.selectedValue) return !1;
|
|
457
457
|
let n = new Set(this.selectedValue.split(/[\s,]+/).map((e) => e.trim()).filter(Boolean)), r = !1;
|
|
458
458
|
for (let t of e) if (t.fullPath && n.has(t.id)) {
|
|
459
|
-
let e =
|
|
459
|
+
let e = y({
|
|
460
460
|
id: t.id,
|
|
461
461
|
path: t.fullPath
|
|
462
462
|
});
|
|
@@ -555,7 +555,7 @@ i([n({
|
|
|
555
555
|
d("token", { waitUntilFirstUpdate: !0 }),
|
|
556
556
|
d("searchTerm", { waitUntilFirstUpdate: !0 }),
|
|
557
557
|
d("excludeVirtualFolders", { waitUntilFirstUpdate: !0 }),
|
|
558
|
-
|
|
558
|
+
_(500),
|
|
559
559
|
a("design:type", Function),
|
|
560
560
|
a("design:paramtypes", []),
|
|
561
561
|
a("design:returntype", Promise)
|
|
@@ -619,7 +619,7 @@ var X = Y, Z = t`:host{flex-direction:column;width:100%;height:100%;min-height:0
|
|
|
619
619
|
e && (await e.updateComplete, this.emit("cx-selection-change", { detail: { selection: e.selectedItems } }));
|
|
620
620
|
}
|
|
621
621
|
syncValueFromTree() {
|
|
622
|
-
this.treeEl && (this.value = [...this.treeEl.currentRootIDsSet].map((e) =>
|
|
622
|
+
this.treeEl && (this.value = [...this.treeEl.currentRootIDsSet].map((e) => x(e).id).filter(Boolean).join(" "));
|
|
623
623
|
}
|
|
624
624
|
syncSelectValue() {
|
|
625
625
|
this.selectEl && (this.selectEl.value = this.selection === "multiple" ? this.value.split(/[\s,]+/).filter(Boolean) : this.value);
|
|
@@ -11,8 +11,8 @@ import { t as m } from "./if-defined.B29V_rEp.js";
|
|
|
11
11
|
import { t as h } from "./when.BUskJLtZ.js";
|
|
12
12
|
import { t as g } from "./icon.CeQpEaQz.js";
|
|
13
13
|
import { t as _ } from "./style-map.DPGQIxip.js";
|
|
14
|
-
import {
|
|
15
|
-
import { t as C } from "./
|
|
14
|
+
import { t as v } from "./debounce.Ci-xdsHE.js";
|
|
15
|
+
import { a as y, i as b, n as x, s as S, t as C } from "./resizable-component.styles.v9pbLDG5.js";
|
|
16
16
|
import { t as w } from "./resize-observer.D9EHlnZI.js";
|
|
17
17
|
import { n as T } from "./position-picker.dY_vgF_H.js";
|
|
18
18
|
import { a as E } from "./src.BJhIYoMP.js";
|
|
@@ -621,13 +621,13 @@ var H = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
|
|
|
621
621
|
--font-size: var(--cx-font-size-4x-large);
|
|
622
622
|
color: var(--fallback-icon-color);
|
|
623
623
|
}
|
|
624
|
-
`, W = class extends
|
|
624
|
+
`, W = class extends x {
|
|
625
625
|
constructor(...e) {
|
|
626
626
|
super(...e), this.localize = new d(this), this.retryCount = 0, this.retryTimer = null, this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryIndex = 0, this.src = "", this.aspectRatio = 0, this.srcset = "", this.sizes = "", this.placeholder = "", this.alt = "", this.objectFit = E.Fill, this.cropFocus = T.CenterCenter, this.skeleton = !1, this.fallback = !1, this.canZoom = !1, this.loading = !1, this.block = !1, this.htmlLoading = "lazy", this.noCrossorigin = !1, this.clickHandlerType = A.Automatic, this.retryOnError = !1, this.maxRetries = 10, this.isZoomed = !1, this.imageRatio = 1, this.parsedAlt = "", this.parsedAltDarkMode = "", this.zoom = null, this.lastPatchedWidth = null;
|
|
627
627
|
}
|
|
628
628
|
static #e = this.styles = [
|
|
629
629
|
l,
|
|
630
|
-
|
|
630
|
+
C,
|
|
631
631
|
U
|
|
632
632
|
];
|
|
633
633
|
static #t = this.dependencies = {
|
|
@@ -655,7 +655,7 @@ var H = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
|
|
|
655
655
|
get highlighterClass() {
|
|
656
656
|
return {
|
|
657
657
|
"highlightable-item": !0,
|
|
658
|
-
"highlightable-item--effect-text-reveal": this.effect ===
|
|
658
|
+
"highlightable-item--effect-text-reveal": this.effect === S.TextReveal,
|
|
659
659
|
[`highlightable-item--text-reveal-style-${this.textRevealStyle}`]: !0,
|
|
660
660
|
...this.highlighterCropFocusClass
|
|
661
661
|
};
|
|
@@ -665,7 +665,7 @@ var H = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
|
|
|
665
665
|
}
|
|
666
666
|
get loadingAspectRatio() {
|
|
667
667
|
let e = this.currentAspectRatio;
|
|
668
|
-
return this.heightMode ===
|
|
668
|
+
return this.heightMode === b.Auto && !this.isLoaded && !this.isEmpty && Number.isFinite(e) && e > 0 ? e : void 0;
|
|
669
669
|
}
|
|
670
670
|
getHighlighterClass(e = !1) {
|
|
671
671
|
return {
|
|
@@ -762,8 +762,8 @@ var H = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
|
|
|
762
762
|
this.isRetrying = !1, this.emit("cx-error"), this.isLoaded = !0, this.isError = !0;
|
|
763
763
|
}
|
|
764
764
|
handleSizeChange() {
|
|
765
|
-
let e = this.resizeDirection !==
|
|
766
|
-
e && (this.width || this.isResizing ? this.style.setProperty("--width", n) : this.style.removeProperty("--width")), t && (this.heightMode !==
|
|
765
|
+
let e = this.resizeDirection !== y.Vertical, t = this.resizeDirection !== y.Horizontal, n = this.isResizing ? `${this.resizeSize.width}px` : this.width, r = this.isResizing ? `${this.resizeSize.height}px` : this.height;
|
|
766
|
+
e && (this.width || this.isResizing ? this.style.setProperty("--width", n) : this.style.removeProperty("--width")), t && (this.heightMode !== b.Auto && (this.height || this.isResizing) ? this.style.setProperty("--height", r) : this.style.removeProperty("--height"));
|
|
767
767
|
}
|
|
768
768
|
handleResize(e) {
|
|
769
769
|
let { entries: t } = e.detail;
|
|
@@ -797,7 +797,7 @@ var H = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
|
|
|
797
797
|
"container--empty": this.isEmpty,
|
|
798
798
|
"container--loading": this.loading,
|
|
799
799
|
"container--resizing": this.resizable && this.isResizeActive
|
|
800
|
-
})} style=${_({ "--easing": this.easeCSSVariable })} data-empty-label=${this.localize.term("emptyImage")} @click=${this.startResizing} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleResize}><div part="highlighter" tabindex=${m(this.highlighterTabindex)} role=${m(this.highlighterRole)} aria-label=${m(this.highlighterRole ? r : void 0)} aria-roledescription=${m(this.highlighterRole ? this.localize.term("image") : void 0)} class=${p(this.isEmpty ? {} : this.getHighlighterClass(this.isError))} @click=${this.handleClickAction} @mouseenter=${this.handleMouseEnter} @mouseleave=${this.handleMouseLeave} @blur=${this.handleBlur}>${h(this.isEmpty, () => n, () => h(this.effect ===
|
|
800
|
+
})} style=${_({ "--easing": this.easeCSSVariable })} data-empty-label=${this.localize.term("emptyImage")} @click=${this.startResizing} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleResize}><div part="highlighter" tabindex=${m(this.highlighterTabindex)} role=${m(this.highlighterRole)} aria-label=${m(this.highlighterRole ? r : void 0)} aria-roledescription=${m(this.highlighterRole ? this.localize.term("image") : void 0)} class=${p(this.isEmpty ? {} : this.getHighlighterClass(this.isError))} @click=${this.handleClickAction} @mouseenter=${this.handleMouseEnter} @mouseleave=${this.handleMouseLeave} @blur=${this.handleBlur}>${h(this.isEmpty, () => n, () => h(this.effect === S.Jump || this.effect === S.Zoom, () => e`<cx-popup class="popup-container" strategy="absolute" active placement="center" sync="both">${this.renderContent()}</cx-popup>`, () => this.renderContent()))}<div class="zoom-image-container">${h(t, () => e`<img part="zoom-image" class=${p({
|
|
801
801
|
"zoom-image": !0,
|
|
802
802
|
"zoom-image--hidden": !this.isZoomed
|
|
803
803
|
})} src=${this.currentSrc || this.placeholder} alt="" aria-hidden="true" decoding="async" draggable="false" crossorigin=${m(this.crossorigin)}>`)}</div>${h(this.showPlaceholderSkeleton, () => e`<slot name="skeleton" part="skeleton"><div class=${p({ skeleton: !0 })}><cx-skeleton effect="sheen" role="status" aria-live="polite" aria-label=${this.localize.term("loading")}></cx-skeleton></div></slot>`)}
|
|
@@ -882,7 +882,7 @@ a([s(".image"), o("design:type", typeof HTMLImageElement > "u" ? Object : HTMLIm
|
|
|
882
882
|
o("design:paramtypes", []),
|
|
883
883
|
o("design:returntype", void 0)
|
|
884
884
|
], W.prototype, "handleSrcChange", null), a([
|
|
885
|
-
|
|
885
|
+
v(100),
|
|
886
886
|
o("design:type", Function),
|
|
887
887
|
o("design:paramtypes", [Number]),
|
|
888
888
|
o("design:returntype", void 0)
|
|
@@ -3,17 +3,22 @@ import { a as n, i as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtd
|
|
|
3
3
|
import { t as s } from "./query.B1yi7t71.js";
|
|
4
4
|
import { t as c } from "./component.styles.0xM1ZmBs.js";
|
|
5
5
|
import { t as l } from "./custom-element.BEMYNDK1.js";
|
|
6
|
-
import "./button.DnOMjl_G.js";
|
|
7
6
|
import { c as u } from "./browser.Ct4pHP9I.js";
|
|
8
7
|
import { t as d } from "./debounce.Ci-xdsHE.js";
|
|
9
|
-
import "./
|
|
10
|
-
import "./resize-observer.D9EHlnZI.js";
|
|
8
|
+
import { t as f } from "./button.DnOMjl_G.js";
|
|
9
|
+
import { t as p } from "./resize-observer.D9EHlnZI.js";
|
|
10
|
+
import { t as m } from "./tooltip.DJl5qcTx.js";
|
|
11
11
|
//#region ../../packages/atoms/src/components/line-clamp/line-clamp.styles.ts
|
|
12
|
-
var
|
|
12
|
+
var h = t`:host{--toggler-color:var(--cx-color-primary)}.content{text-overflow:ellipsis;white-space:normal;overflow-wrap:break-word;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.toggler{margin-top:var(--cx-spacing-2x-small);display:block}.toggler::part(base){color:var(--toggler-color);font-weight:var(--cx-font-weight-medium);text-transform:none;width:auto}.toggler::part(label){padding-left:0}`, g = class extends o {
|
|
13
13
|
constructor(...e) {
|
|
14
14
|
super(...e), this.lines = 1, this.open = !1, this.showMore = !1, this.showMoreText = "View more...", this.showLessText = "View less...", this.clampedTooltip = "", this.disabledTooltip = !1, this.disabledHoverBridge = !1, this.placement = "top", this.isClamped = !1, this.tooltipContent = "", this.calculated = !1;
|
|
15
15
|
}
|
|
16
|
-
static #e = this.styles = [c,
|
|
16
|
+
static #e = this.styles = [c, h];
|
|
17
|
+
static #t = this.dependencies = {
|
|
18
|
+
"cx-button": f,
|
|
19
|
+
"cx-resize-observer": p,
|
|
20
|
+
"cx-tooltip": m
|
|
21
|
+
};
|
|
17
22
|
connectedUpdatedCallback() {
|
|
18
23
|
this.updateTooltipContent(), this.mutationObserver = new MutationObserver(() => {
|
|
19
24
|
this.updateTooltipContent();
|
|
@@ -75,40 +80,40 @@ var f = t`:host{--toggler-color:var(--cx-color-primary)}.content{text-overflow:e
|
|
|
75
80
|
`;
|
|
76
81
|
}
|
|
77
82
|
};
|
|
78
|
-
i([n({ type: Number }), a("design:type", Number)],
|
|
83
|
+
i([n({ type: Number }), a("design:type", Number)], g.prototype, "lines", void 0), i([n({
|
|
79
84
|
reflect: !0,
|
|
80
85
|
type: Boolean
|
|
81
|
-
}), a("design:type", Boolean)],
|
|
86
|
+
}), a("design:type", Boolean)], g.prototype, "open", void 0), i([n({
|
|
82
87
|
attribute: "show-more",
|
|
83
88
|
type: Boolean
|
|
84
|
-
}), a("design:type", Boolean)],
|
|
89
|
+
}), a("design:type", Boolean)], g.prototype, "showMore", void 0), i([n({
|
|
85
90
|
attribute: "show-more-text",
|
|
86
91
|
type: String
|
|
87
|
-
}), a("design:type", String)],
|
|
92
|
+
}), a("design:type", String)], g.prototype, "showMoreText", void 0), i([n({
|
|
88
93
|
attribute: "show-less-text",
|
|
89
94
|
type: String
|
|
90
|
-
}), a("design:type", String)],
|
|
95
|
+
}), a("design:type", String)], g.prototype, "showLessText", void 0), i([n({ type: String }), a("design:type", String)], g.prototype, "tooltip", void 0), i([n({
|
|
91
96
|
attribute: "clamped-tooltip",
|
|
92
97
|
type: String
|
|
93
|
-
}), a("design:type", Object)],
|
|
98
|
+
}), a("design:type", Object)], g.prototype, "clampedTooltip", void 0), i([n({
|
|
94
99
|
attribute: "disabled-tooltip",
|
|
95
100
|
type: Boolean
|
|
96
|
-
}), a("design:type", Boolean)],
|
|
101
|
+
}), a("design:type", Boolean)], g.prototype, "disabledTooltip", void 0), i([n({
|
|
97
102
|
attribute: "disabled-hover-bridge",
|
|
98
103
|
reflect: !0,
|
|
99
104
|
type: Boolean
|
|
100
|
-
}), a("design:type", Boolean)],
|
|
105
|
+
}), a("design:type", Boolean)], g.prototype, "disabledHoverBridge", void 0), i([n({
|
|
101
106
|
attribute: "flip-boundary",
|
|
102
107
|
type: Object
|
|
103
|
-
}), a("design:type", Object)],
|
|
108
|
+
}), a("design:type", Object)], g.prototype, "flipBoundary", void 0), i([n({
|
|
104
109
|
attribute: "shift-boundary",
|
|
105
110
|
type: Object
|
|
106
|
-
}), a("design:type", Object)],
|
|
111
|
+
}), a("design:type", Object)], g.prototype, "shiftBoundary", void 0), i([n(), a("design:type", String)], g.prototype, "placement", void 0), i([r(), a("design:type", Boolean)], g.prototype, "isClamped", void 0), i([r(), a("design:type", String)], g.prototype, "tooltipContent", void 0), i([r(), a("design:type", Boolean)], g.prototype, "calculated", void 0), i([s(".content"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], g.prototype, "content", void 0), i([s(".tooltip"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], g.prototype, "tooltipElement", void 0), i([
|
|
107
112
|
d(100),
|
|
108
113
|
a("design:type", Function),
|
|
109
114
|
a("design:paramtypes", []),
|
|
110
115
|
a("design:returntype", void 0)
|
|
111
|
-
],
|
|
112
|
-
var
|
|
116
|
+
], g.prototype, "handleResize", null), g = i([l("cx-line-clamp")], g);
|
|
117
|
+
var _ = g;
|
|
113
118
|
//#endregion
|
|
114
|
-
export {
|
|
119
|
+
export { _ as t };
|
|
@@ -13,7 +13,7 @@ import { t as g } from "./tooltip.DJl5qcTx.js";
|
|
|
13
13
|
import { a as _ } from "./src.BJhIYoMP.js";
|
|
14
14
|
import { t as v } from "./repeat.CKv9FPlC.js";
|
|
15
15
|
import { t as y } from "./space.Dd8jezXK.js";
|
|
16
|
-
import { t as b } from "./image.
|
|
16
|
+
import { t as b } from "./image.C6-Opjew.js";
|
|
17
17
|
import { t as x } from "./grid.CK4PRwur.js";
|
|
18
18
|
import { t as S } from "./grid-item.CSieaU5T.js";
|
|
19
19
|
import { t as C } from "./sortable.esm.BVU0_hc5.js";
|