@orangelogic/design-system 3.52.0 → 3.53.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/assets/validation.worker-CATXl-v2.js +1 -0
- package/library/chunks/{alert.CuW7fOVy.js → alert.l5EVK3-E.js} +2 -2
- package/library/chunks/{array-line-clamp.VOjhwp2T.js → array-line-clamp.CaiICVna.js} +2 -2
- package/library/chunks/{asset-link-format.DW4-Yf4S.js → asset-link-format.CylxIiPd.js} +9 -9
- package/library/chunks/{audio.D_O5ecXD.js → audio.BDjVHTU2.js} +2 -2
- package/library/chunks/{bicolor-picker.DKcKLKki.js → bicolor-picker.CHeZU9u5.js} +1 -1
- package/library/chunks/{block-width.DGKtI0si.js → block-width.RHVYimlE.js} +158 -158
- package/library/chunks/{border-input-group.Bo4n74DK.js → border-input-group.DitDsVli.js} +3 -3
- package/library/chunks/{breadcrumb.qggcceb5.js → breadcrumb.wAs0dDVb.js} +1 -1
- package/library/chunks/{button.Ccrk9fUD.js → button.HVChe9zT.js} +2 -2
- package/library/chunks/{color-picker.DJWwlNQc.js → color-picker.DjOq0eFi.js} +10 -10
- package/library/chunks/{color-swatch-group.DSNjAqYx.js → color-swatch-group.9Qx8Gvf2.js} +689 -613
- package/library/chunks/{color-swatch._892g6OH.js → color-swatch.Czkv1Mbb.js} +3 -3
- package/library/chunks/{config-manager.CQA-H3Np.js → config-manager.DjYQhlA6.js} +27 -27
- package/library/chunks/{configs-controller.BXb0_Hg2.js → configs-controller.DM4UNL35.js} +55 -7
- package/library/chunks/{confirm-popover.BjAGzV05.js → confirm-popover.CmkU5LOc.js} +4 -4
- package/library/chunks/{copy-button.BLHge7EN.js → copy-button.Db9OgUsk.js} +2 -2
- package/library/chunks/{corner-position-input-group.BAvx6UsV.js → corner-position-input-group.DtjehmV9.js} +4 -4
- package/library/chunks/{date-calendar.UWxXkZCn.js → date-calendar.QH4E3gcB.js} +1 -1
- package/library/chunks/{details.DLqFxjTf.js → details.QX575PyS.js} +1 -1
- package/library/chunks/{dialog.Dw-WUyD8.js → dialog.BpXFrOri.js} +3 -3
- package/library/chunks/{document-viewer.B7_Adb8g.js → document-viewer.C6pZUsMP.js} +13 -13
- package/library/chunks/{dot-pagination.CSSalEx6.js → dot-pagination.DecVZgSJ.js} +2 -2
- package/library/chunks/{drawer.tfa9-G6a.js → drawer.DL2AzbcX.js} +2 -2
- package/library/chunks/{dropdown.DUfiVpFI.js → dropdown.jJJ_wxJN.js} +4 -4
- package/library/chunks/{dynamic-select.o5G8iUV1.js → dynamic-select.Di2M5NWC.js} +5 -5
- package/library/chunks/{e-chart.BopkVc04.js → e-chart.c19ibTnT.js} +2 -2
- package/library/chunks/{element-clamp.DzR3w7RX.js → element-clamp.B-sumN97.js} +2 -2
- package/library/chunks/{file-on-demand.D7bLG0JA.js → file-on-demand.P_3uP0Ur.js} +16 -16
- package/library/chunks/{folder-select.DA7Ezy8P.js → folder-select.33VMtLnU.js} +7 -7
- package/library/chunks/{format-time.BO9Y72qk.js → format-time.Dfu1FCrK.js} +1 -1
- package/library/chunks/{header.BaWpIXRz.js → header.BosjiWVg.js} +2 -2
- package/library/chunks/{i18n.BMXeDUpk.js → i18n.D_iHIFdS.js} +3 -0
- package/library/chunks/{icon-button.CziUJUiX.js → icon-button.D6mTxvLN.js} +2 -2
- package/library/chunks/{iframe.BnAR2-o2.js → iframe.C7j4Uzku.js} +1 -1
- package/library/chunks/{image-comparer.DStatUUS.js → image-comparer.D7C-cLm6.js} +1 -1
- package/library/chunks/{image.DzFSYcXq.js → image.nqoaGkQd.js} +11 -4
- package/library/chunks/{input.B3HfssSr.js → input.C44u0jQi.js} +1 -1
- package/library/chunks/{line-clamp.DV3tlosD.js → line-clamp.C7M133Jo.js} +2 -2
- package/library/chunks/{markdown.C-q35PEY.js → markdown.B6J44eJB.js} +2 -2
- package/library/chunks/{masonry.D7YK0FcU.js → masonry.CsJC8M6I.js} +3 -3
- package/library/chunks/{menu-item.D-IE19Jn.js → menu-item.UQ_IlBEV.js} +3 -3
- package/library/chunks/{menu.3akay3Bh.js → menu.BTt3TxEj.js} +2 -2
- package/library/chunks/{option.9V-nTQp7.js → option.CizwUJwq.js} +1 -1
- package/library/chunks/{padding-input-group.DKIv6567.js → padding-input-group.CSYzP2s4.js} +1 -1
- package/library/chunks/{pagination.Cs-s_PTI.js → pagination.Dgn16y4P.js} +7 -7
- package/library/chunks/{popup.CxGrVXG-.js → popup.DwPq0yI9.js} +1 -1
- package/library/chunks/{position-picker.CyXlSYCi.js → position-picker.aNCROlig.js} +1 -1
- package/library/chunks/{progress-bar.Cp8jz3Cn.js → progress-bar.VFfb2YnK.js} +1 -1
- package/library/chunks/{progress-ring.CMylJgKR.js → progress-ring.Czn6GoZL.js} +1 -1
- package/library/chunks/{radio-card.D4B962Sg.js → radio-card.rgobVDcV.js} +1 -1
- package/library/chunks/{range.Dl85wEtv.js → range.UVbDGy7M.js} +2 -2
- package/library/chunks/{rating.C-3rSMOT.js → rating.Dpqp5fJ2.js} +1 -1
- package/library/chunks/{relative-time.5fu63h4C.js → relative-time.ImRpAXxg.js} +1 -1
- package/library/chunks/{select.DJ_bfkBn.js → select.NoJEwBN4.js} +8 -8
- package/library/chunks/{shadow-input-group.DaDZTOGa.js → shadow-input-group.0xDWAN9L.js} +2 -2
- package/library/chunks/{share-option-list.BO50cnCs.js → share-option-list.CVyc5zE3.js} +2 -2
- package/library/chunks/{sidebar.CDTaDQY_.js → sidebar.B1CkFnS-.js} +1 -1
- package/library/chunks/{size-input-group.DvTF3TsD.js → size-input-group.DoE-qa2S.js} +5 -5
- package/library/chunks/{spinner.-79sJ3oo.js → spinner.BPSFoJkz.js} +1 -1
- package/library/chunks/{split-panel.DE2NmORY.js → split-panel.BsE9_zvp.js} +1 -1
- package/library/chunks/{src.CNvhakVg.js → src.cG4bHSGM.js} +47 -47
- package/library/chunks/{step.CIXS6vq7.js → step.ZFoTM46R.js} +3 -3
- package/library/chunks/{stepper-wizard.Bydp0R7p.js → stepper-wizard.CImDe292.js} +2 -2
- package/library/chunks/{stepper.DlYgTq-1.js → stepper.Y2ydDAom.js} +1 -1
- package/library/chunks/{tab-group._olfRqqQ.js → tab-group.DVCzY8ff.js} +7 -7
- package/library/chunks/{tab.CDVHHAgG.js → tab.DTDi6_uw.js} +3 -3
- package/library/chunks/{tag.ajqJVQQB.js → tag.DI1e3R9Y.js} +3 -3
- package/library/chunks/{tooltip.CGCOh4cQ.js → tooltip.BAg1FXgE.js} +2 -2
- package/library/chunks/{tree.huEm605f.js → tree.BFReY9S3.js} +3 -3
- package/library/chunks/{typeface.CtBzG7NU.js → typeface.DPIZSN2l.js} +3 -3
- package/library/chunks/{video.Be2Oh_tS.js → video.d4acczzs.js} +2 -2
- package/library/components/alert.js +1 -1
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +48 -48
- package/library/components/audio.js +1 -1
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.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/confirm-popover.js +1 -1
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +1 -1
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/dot-pagination.js +1 -1
- package/library/components/drawer.js +1 -1
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +1 -1
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +1 -1
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +1 -1
- package/library/components/header.js +1 -1
- package/library/components/icon-button.js +1 -1
- package/library/components/iframe.js +1 -1
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +1 -1
- package/library/components/input.js +1 -1
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +1 -1
- package/library/components/masonry.js +1 -1
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +16 -16
- package/library/components/option.js +1 -1
- package/library/components/organisms.js +3 -3
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +1 -1
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.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/sidebar.js +1 -1
- package/library/components/size-input-group.js +1 -1
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.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/tooltip.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 +12779 -12613
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/image/image.d.ts +1 -1
- package/library/packages/molecules/src/multi-select/components/board-list-item/board-list-item.d.ts +1 -0
- package/library/packages/organisms/src/chatbot/chatbot.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +11 -1
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +14 -10
- package/library/packages/organisms/src/index.d.ts +1 -0
- package/library/packages/types/src/table.d.ts +7 -6
- package/library/packages/utils/src/custom-element/i18n.d.ts +3 -0
- package/library/utils.js +1 -1
- package/package.json +1 -1
- package/library/assets/validation.worker-DnJlaA8S.js +0 -1
|
@@ -4,25 +4,25 @@ import { a as s, i as c, n as l, r as u, t as d } from "./cortex-element.DTrNUtd
|
|
|
4
4
|
import { t as f } from "./query.B1yi7t71.js";
|
|
5
5
|
import { t as p } from "./component.styles.0xM1ZmBs.js";
|
|
6
6
|
import { t as m } from "./custom-element.BEMYNDK1.js";
|
|
7
|
-
import { t as h } from "./i18n.
|
|
7
|
+
import { t as h } from "./i18n.D_iHIFdS.js";
|
|
8
8
|
import { t as ee } from "./slot.CZUlACxT.js";
|
|
9
9
|
import { t as g } from "./watch.Ub5r8btz.js";
|
|
10
10
|
import { r as te, t as ne } from "./directive.DaY8wl8H.js";
|
|
11
11
|
import { t as re } from "./class-map.D8nsNOVJ.js";
|
|
12
|
-
import { t as _ } from "./icon-button.
|
|
12
|
+
import { t as _ } from "./icon-button.D6mTxvLN.js";
|
|
13
13
|
import { t as v } from "./if-defined.B29V_rEp.js";
|
|
14
14
|
import { t as y } from "./when.BUskJLtZ.js";
|
|
15
15
|
import { t as ie } from "./icon.CeQpEaQz.js";
|
|
16
|
-
import { t as ae } from "./spinner
|
|
16
|
+
import { t as ae } from "./spinner.BPSFoJkz.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.cG4bHSGM.js";
|
|
19
19
|
import { t as ce } from "./style-map.DPGQIxip.js";
|
|
20
|
-
import { t as b } from "./button.
|
|
20
|
+
import { t as b } from "./button.HVChe9zT.js";
|
|
21
21
|
import { E as x, S as le, r as ue } from "./string.DamEXDH2.js";
|
|
22
22
|
import { t as de } from "./form.-ADsa-59.js";
|
|
23
23
|
import { t as fe } from "./debounce.Ci-xdsHE.js";
|
|
24
|
-
import { t as pe } from "./tooltip.
|
|
25
|
-
import { t as me } from "./line-clamp.
|
|
24
|
+
import { t as pe } from "./tooltip.BAg1FXgE.js";
|
|
25
|
+
import { t as me } from "./line-clamp.C7M133Jo.js";
|
|
26
26
|
import { n as he } from "./position-picker.dY_vgF_H.js";
|
|
27
27
|
import { a as ge } from "./src.BJhIYoMP.js";
|
|
28
28
|
import { i as _e } from "./number.CNp5LKkv.js";
|
|
@@ -33,54 +33,54 @@ import { t as be } from "./checkbox.C6vsHW9n.js";
|
|
|
33
33
|
import { t as xe } from "./default-value.opqQgoRT.js";
|
|
34
34
|
import { u as Se } from "./gradient.rrDxmV60.js";
|
|
35
35
|
import { t as C } from "./repeat.CKv9FPlC.js";
|
|
36
|
-
import { t as w } from "./dropdown.
|
|
36
|
+
import { t as w } from "./dropdown.jJJ_wxJN.js";
|
|
37
37
|
import { t as Ce } from "./tabbable.Bflg1dha.js";
|
|
38
|
-
import { t as T } from "./input.
|
|
39
|
-
import { t as we } from "./menu.
|
|
40
|
-
import { t as Te } from "./menu-item.
|
|
38
|
+
import { t as T } from "./input.C44u0jQi.js";
|
|
39
|
+
import { t as we } from "./menu.BTt3TxEj.js";
|
|
40
|
+
import { t as Te } from "./menu-item.UQ_IlBEV.js";
|
|
41
41
|
import { n as Ee, r as De, t as Oe } from "./ref.CU1NC5AM.js";
|
|
42
42
|
import { t as ke } from "./textarea.Bc4eCJgT.js";
|
|
43
|
-
import { n as Ae, t as E } from "./option.
|
|
43
|
+
import { n as Ae, t as E } from "./option.CizwUJwq.js";
|
|
44
44
|
import { t as D } from "./space.Dd8jezXK.js";
|
|
45
|
-
import { t as O } from "./select.
|
|
46
|
-
import { t as je } from "./tab.
|
|
47
|
-
import { t as Me } from "./tab-group.
|
|
45
|
+
import { t as O } from "./select.NoJEwBN4.js";
|
|
46
|
+
import { t as je } from "./tab.DTDi6_uw.js";
|
|
47
|
+
import { t as Me } from "./tab-group.DVCzY8ff.js";
|
|
48
48
|
import { t as Ne } from "./map.ByDuLduF.js";
|
|
49
49
|
import { t as Pe } from "./tab-panel.BxeoKuSv.js";
|
|
50
50
|
import { t as Fe } from "./visually-hidden.Bv3SInZp.js";
|
|
51
|
-
import { t as Ie } from "./color-picker.
|
|
52
|
-
import { a as Le, i as Re, n as ze, o as Be, r as Ve, s as He, t as k } from "./dialog.
|
|
51
|
+
import { t as Ie } from "./color-picker.DjOq0eFi.js";
|
|
52
|
+
import { a as Le, i as Re, n as ze, o as Be, r as Ve, s as He, t as k } from "./dialog.BpXFrOri.js";
|
|
53
53
|
import { t as Ue } from "./divider.CqSNZCU8.js";
|
|
54
54
|
import { f as We } from "./url.CZO_DV8Y.js";
|
|
55
55
|
import { d as Ge, h as Ke, m as qe, n as Je, o as Ye, p as Xe } from "./color.CIOzHtLK.js";
|
|
56
56
|
import { _ as Ze, a as A, h as Qe, p as j, s as $e } from "./responsive.L9Csz2w2.js";
|
|
57
57
|
import { n as et } from "./asset-link-format.DhdgEsA0.js";
|
|
58
|
-
import { getFontFamilyOptionValue as
|
|
59
|
-
import { t as
|
|
60
|
-
import { t as
|
|
61
|
-
import { t as
|
|
62
|
-
import { t as
|
|
63
|
-
import { t as
|
|
64
|
-
import { t as
|
|
65
|
-
import { t as
|
|
66
|
-
import { t as
|
|
67
|
-
import { t as
|
|
68
|
-
import { t as
|
|
69
|
-
import { t as
|
|
70
|
-
import { n as
|
|
71
|
-
import { t as
|
|
72
|
-
import { t as
|
|
73
|
-
import { t as
|
|
74
|
-
import { i as
|
|
58
|
+
import { getFontFamilyOptionValue as tt, getTypefaceOptionValue as M, isFormInteracted as nt, quoteFontFamily as rt, resolveAutoFormat as it, toast as at, unquoteFontFamily as ot } from "../utils.js";
|
|
59
|
+
import { t as st } from "./image.nqoaGkQd.js";
|
|
60
|
+
import { t as ct } from "./grid.CK4PRwur.js";
|
|
61
|
+
import { t as lt } from "./grid-item.CSieaU5T.js";
|
|
62
|
+
import { t as ut } from "./menu-label.B-FOyfAX.js";
|
|
63
|
+
import { t as dt } from "./radio.DhPbmKbQ.js";
|
|
64
|
+
import { t as ft } from "./radio-card.rgobVDcV.js";
|
|
65
|
+
import { t as pt } from "./radio-group.DKOIr2PH.js";
|
|
66
|
+
import { t as mt } from "./switch.D6KXmWnC.js";
|
|
67
|
+
import { t as ht } from "./v4.JyXW8GUB.js";
|
|
68
|
+
import { t as gt } from "./bicolor-picker.CHeZU9u5.js";
|
|
69
|
+
import { t as _t } from "./border-input-group.DitDsVli.js";
|
|
70
|
+
import { n as vt, t as yt } from "./confirm-popover.CmkU5LOc.js";
|
|
71
|
+
import { t as bt } from "./corner-position-input-group.DtjehmV9.js";
|
|
72
|
+
import { t as xt } from "./cropper.D4ymxgab.js";
|
|
73
|
+
import { t as St } from "./dynamic-select.Di2M5NWC.js";
|
|
74
|
+
import { i as Ct, n as N, r as wt, t as P } from "./folder-select.33VMtLnU.js";
|
|
75
75
|
import { t as Tt } from "./choose.C2vpqhLc.js";
|
|
76
|
-
import { t as Et } from "./masonry.
|
|
77
|
-
import { t as Dt } from "./padding-input-group.
|
|
78
|
-
import { t as Ot } from "./position-picker.
|
|
79
|
-
import { t as kt } from "./shadow-input-group.
|
|
80
|
-
import { t as At } from "./size-input-group.
|
|
81
|
-
import { C as jt, S as Mt, T as Nt, _ as Pt, b as Ft, c as It, f as Lt, g as Rt, h as zt, i as Bt, l as Vt, n as Ht, o as Ut, p as Wt, r as Gt, s as Kt, t as qt, u as Jt, v as Yt, w as Xt, x as Zt, y as Qt } from "./asset-link-format.
|
|
82
|
-
import { c as $t, d as en, f as tn, n as nn, u as rn } from "./color-swatch-group.
|
|
83
|
-
import { B as an,
|
|
76
|
+
import { t as Et } from "./masonry.CsJC8M6I.js";
|
|
77
|
+
import { t as Dt } from "./padding-input-group.CSYzP2s4.js";
|
|
78
|
+
import { t as Ot } from "./position-picker.aNCROlig.js";
|
|
79
|
+
import { t as kt } from "./shadow-input-group.0xDWAN9L.js";
|
|
80
|
+
import { t as At } from "./size-input-group.DoE-qa2S.js";
|
|
81
|
+
import { C as jt, S as Mt, T as Nt, _ as Pt, b as Ft, c as It, f as Lt, g as Rt, h as zt, i as Bt, l as Vt, n as Ht, o as Ut, p as Wt, r as Gt, s as Kt, t as qt, u as Jt, v as Yt, w as Xt, x as Zt, y as Qt } from "./asset-link-format.CylxIiPd.js";
|
|
82
|
+
import { c as $t, d as en, f as tn, n as nn, u as rn } from "./color-swatch-group.9Qx8Gvf2.js";
|
|
83
|
+
import { $ as F, B as an, E as on, G as sn, H as cn, I as ln, Q as un, S as dn, U as fn, V as pn, W as mn, X as hn, Z as I, et as gn, g as _n, h as vn, j as L, y as yn } from "./configs-controller.DM4UNL35.js";
|
|
84
84
|
import { a as bn } from "./cloneDeep.C6x5LNv3.js";
|
|
85
85
|
//#region ../../packages/types/src/icon-picker.ts
|
|
86
86
|
var xn = /* @__PURE__ */ function(e) {
|
|
@@ -149,7 +149,7 @@ var xn = /* @__PURE__ */ function(e) {
|
|
|
149
149
|
static #t = this.dependencies = {
|
|
150
150
|
"cx-button": b,
|
|
151
151
|
"cx-icon-button": _,
|
|
152
|
-
"cx-image":
|
|
152
|
+
"cx-image": st,
|
|
153
153
|
"cx-input": T,
|
|
154
154
|
"cx-space": D,
|
|
155
155
|
"cx-typography": S
|
|
@@ -158,7 +158,7 @@ var xn = /* @__PURE__ */ function(e) {
|
|
|
158
158
|
if (this.onRequestAsset) try {
|
|
159
159
|
this.emit("cx-asset-request-status", { detail: { busy: !0 } });
|
|
160
160
|
let e = await this.onRequestAsset(this.type.join(" "), this.multiple, this.accepts, this.restrict ? this.type.join(" ") : void 0);
|
|
161
|
-
if (this.accepts.length > 0 && Object.values(e).some((e) => !this.accepts.includes(ue(e.src) ?? "")))
|
|
161
|
+
if (this.accepts.length > 0 && Object.values(e).some((e) => !this.accepts.includes(ue(e.src) ?? ""))) at(this.localize.term("nonAcceptedExtension", this.accepts), { notificationType: "warning" });
|
|
162
162
|
else if (this.multiple) {
|
|
163
163
|
let t = Object.values(e);
|
|
164
164
|
this.emit("cx-content-builder-asset-select", { detail: t });
|
|
@@ -279,7 +279,7 @@ l([f(".asset-picker__button"), u("design:type", b === void 0 ? Object : b)], z.p
|
|
|
279
279
|
type: Boolean
|
|
280
280
|
}), u("design:type", Object)], z.prototype, "restrict", void 0), l([s({
|
|
281
281
|
attribute: "no-representative-for",
|
|
282
|
-
converter:
|
|
282
|
+
converter: wt,
|
|
283
283
|
reflect: !0
|
|
284
284
|
}), u("design:type", Array)], z.prototype, "noRepresentativeFor", void 0), l([s({
|
|
285
285
|
attribute: "on-request-asset",
|
|
@@ -421,9 +421,9 @@ var V = class extends d {
|
|
|
421
421
|
static #e = this.styles = [p, Mn];
|
|
422
422
|
static #t = this.dependencies = {
|
|
423
423
|
"cx-divider": Ue,
|
|
424
|
-
"cx-grid":
|
|
425
|
-
"cx-grid-item":
|
|
426
|
-
"cx-menu-label":
|
|
424
|
+
"cx-grid": ct,
|
|
425
|
+
"cx-grid-item": lt,
|
|
426
|
+
"cx-menu-label": ut,
|
|
427
427
|
"cx-option": E,
|
|
428
428
|
"cx-select": O,
|
|
429
429
|
"cx-space": D,
|
|
@@ -439,7 +439,7 @@ var V = class extends d {
|
|
|
439
439
|
return this.typefaceGroups.flatMap((e) => e.typefaces);
|
|
440
440
|
}
|
|
441
441
|
get selectedTypeface() {
|
|
442
|
-
return this.allTypefaces.find((e) =>
|
|
442
|
+
return this.allTypefaces.find((e) => M(e) === this.familyValue);
|
|
443
443
|
}
|
|
444
444
|
get availableFamilies() {
|
|
445
445
|
return this.selectedTypeface?.families ?? [];
|
|
@@ -456,8 +456,8 @@ var V = class extends d {
|
|
|
456
456
|
e.stopPropagation();
|
|
457
457
|
let t = e.target.value;
|
|
458
458
|
if (t === this.familyValue) return;
|
|
459
|
-
let n = this.allTypefaces.find((e) =>
|
|
460
|
-
this.familyValue = t, this.styleValue = i ?
|
|
459
|
+
let n = this.allTypefaces.find((e) => M(e) === t), r = this.availableFamilies.find((e) => tt(e) === this.styleValue), i = r ? n?.families.find((e) => String(e.fontStyle ?? "") === String(r.fontStyle ?? "") && String(e.fontWeight ?? "") === String(r.fontWeight ?? "")) : void 0;
|
|
460
|
+
this.familyValue = t, this.styleValue = i ? tt(i) : "", this.emit("cx-font-picker-change", { detail: {
|
|
461
461
|
family: this.familyValue,
|
|
462
462
|
style: this.styleValue
|
|
463
463
|
} });
|
|
@@ -474,14 +474,14 @@ var V = class extends d {
|
|
|
474
474
|
return n`${C(this.typefaceGroups, (e) => e.label, (e, t) => n`
|
|
475
475
|
${t > 0 ? n`<cx-divider></cx-divider>` : a}
|
|
476
476
|
${y(e.label, () => n`<cx-menu-label>${e.label}</cx-menu-label>`)}
|
|
477
|
-
${C(e.typefaces, (e) =>
|
|
477
|
+
${C(e.typefaces, (e) => M(e), (e) => n`<cx-option value=${M(e)} style=${ce({ "--option-font-family": rt(e.typeface) })}>${e.typeface}</cx-option>`)}
|
|
478
478
|
`)}`;
|
|
479
479
|
}
|
|
480
480
|
renderFamilySelect(e) {
|
|
481
481
|
return n`<cx-select part="family" class="font-picker__family" hoist label=${v(e)} data-label=${e || this.localize.term("fontFamily")} value=${this.allTypefaces.length > 0 ? this.familyValue : ""} ?required=${this.required} .form=${this.closest("form")} @cx-change=${this.handleFamilyChange}>${this.renderTypefaceOptions()}</cx-select>`;
|
|
482
482
|
}
|
|
483
483
|
renderStyleOptions(e) {
|
|
484
|
-
return n`${C(e, (e) =>
|
|
484
|
+
return n`${C(e, (e) => tt(e), (e) => n`<cx-option value=${tt(e)}>${e.name}</cx-option>`)}`;
|
|
485
485
|
}
|
|
486
486
|
renderStyleSelect(e) {
|
|
487
487
|
let { italic: t, upright: r } = this.groupedFamilies;
|
|
@@ -1012,7 +1012,7 @@ var rr = "data:application/json;base64,ewogICIxMjMiOiB7CiAgICAiY2F0ZWdvcmllcyI6I
|
|
|
1012
1012
|
static #t = this.styles = [p, ir];
|
|
1013
1013
|
static #n = this.dependencies = {
|
|
1014
1014
|
"cx-asset-picker": On,
|
|
1015
|
-
"cx-bicolor-picker":
|
|
1015
|
+
"cx-bicolor-picker": gt,
|
|
1016
1016
|
"cx-button": b,
|
|
1017
1017
|
"cx-divider": Ue,
|
|
1018
1018
|
"cx-dropdown": w,
|
|
@@ -1383,7 +1383,7 @@ var ur = W, dr = r`:host{isolation:isolate}.asset-format-picker__input[data-user
|
|
|
1383
1383
|
return this.#n.get(e) ?? e;
|
|
1384
1384
|
}
|
|
1385
1385
|
get canReset() {
|
|
1386
|
-
return !!this.defaultFormat && this.hasValue && (this.value?.format !== this.defaultFormat || this.value?.assetVersion !==
|
|
1386
|
+
return !!this.defaultFormat && this.hasValue && (this.value?.format !== this.defaultFormat || this.value?.assetVersion !== gn.Latest);
|
|
1387
1387
|
}
|
|
1388
1388
|
async handleRequestFormatClick() {
|
|
1389
1389
|
if (this.onRequestAssetFormat && !this.disabled && this.canAccess) try {
|
|
@@ -1396,7 +1396,7 @@ var ur = W, dr = r`:host{isolation:isolate}.asset-format-picker__input[data-user
|
|
|
1396
1396
|
}
|
|
1397
1397
|
handleResetClick() {
|
|
1398
1398
|
this.emit("cx-asset-format-select", { detail: {
|
|
1399
|
-
assetVersion:
|
|
1399
|
+
assetVersion: gn.Latest,
|
|
1400
1400
|
format: this.defaultFormat
|
|
1401
1401
|
} });
|
|
1402
1402
|
}
|
|
@@ -1501,10 +1501,10 @@ var fr = G, pr = r`:host{display:block;container-type:inline-size}.asset-transfo
|
|
|
1501
1501
|
static #t = this.dependencies = {
|
|
1502
1502
|
"cx-asset-link-format": qt,
|
|
1503
1503
|
"cx-button": b,
|
|
1504
|
-
"cx-cropper":
|
|
1504
|
+
"cx-cropper": xt,
|
|
1505
1505
|
"cx-dialog": k,
|
|
1506
|
-
"cx-grid":
|
|
1507
|
-
"cx-grid-item":
|
|
1506
|
+
"cx-grid": ct,
|
|
1507
|
+
"cx-grid-item": lt,
|
|
1508
1508
|
"cx-icon-button": _,
|
|
1509
1509
|
"cx-space": D,
|
|
1510
1510
|
"cx-spinner": ae,
|
|
@@ -1686,7 +1686,7 @@ var fr = G, pr = r`:host{display:block;container-type:inline-size}.asset-transfo
|
|
|
1686
1686
|
${y(this.hasTransformations, () => n`<cx-icon-button label=${this.localize.term("reset")} name="replay" @click=${this.handleDeleteClick}></cx-icon-button>`)}</cx-space>`, () => a)}<cx-dialog class="asset-transformation-dialog" divider-position=${Be.Both} strategy="overlay" ?open=${this.open} .boundary=${this.boundary} @cx-show=${this.handleDialogShow} @cx-request-close=${this.handleRequestClose}><cx-typography slot="label" variant="h4">${this.dialogLabel || this.localize.term("assetFormat")}</cx-typography><cx-grid class="asset-transformation-dialog__body" use-container><cx-grid-item xs="12" sm="8" fill><div class="asset-transformation-dialog__cropper-panel"><cx-cropper id="asset-transformation-dialog-cropper" ?multiple=${this.multiple}></cx-cropper></div></cx-grid-item><cx-grid-item xs="12" sm="4" fill><div class="asset-transformation-dialog__format-panel">${y(this.asset && this.proxies.length > 0, () => n`<cx-asset-link-format .asset=${this.asset} .baseUrl=${this.baseUrl} .proxies=${this.proxies} .queryElement=${this.shadowRoot} .selectedProxy=${this.initialDraft.format} .token=${this.token} .transformations=${this.initialDraft.transformations} default-proxy=${this.defaultFormat} for-cropper="asset-transformation-dialog-cropper" can-auto-format no-metadata ?auto-format=${!this.initialDraft.manualFormat} ?can-reset=${this.canReset} ?no-crop=${this.noCrop} ?no-resize=${this.noResize} ?no-rotate=${this.noRotate} @cx-show=${this.handleAssetLinkFormatShow}></cx-asset-link-format>`, () => n`<cx-spinner></cx-spinner>`)}</div></cx-grid-item></cx-grid><cx-space slot="footer" direction="horizontal" justify-content="end"><cx-button @click=${this.handleCancel}>${this.localize.term("cancel")}</cx-button><cx-button variant="primary" ?loading=${this.saving} @click=${this.handleSave}>${this.localize.term("save")}</cx-button></cx-space></cx-dialog>`;
|
|
1687
1687
|
}
|
|
1688
1688
|
};
|
|
1689
|
-
l([f("slot[name=\"trigger\"]"), u("design:type", typeof HTMLSlotElement > "u" ? Object : HTMLSlotElement)], K.prototype, "triggerSlot", void 0), l([f("cx-asset-link-format"), u("design:type", qt === void 0 ? Object : qt)], K.prototype, "assetLinkFormat", void 0), l([f("cx-cropper"), u("design:type",
|
|
1689
|
+
l([f("slot[name=\"trigger\"]"), u("design:type", typeof HTMLSlotElement > "u" ? Object : HTMLSlotElement)], K.prototype, "triggerSlot", void 0), l([f("cx-asset-link-format"), u("design:type", qt === void 0 ? Object : qt)], K.prototype, "assetLinkFormat", void 0), l([f("cx-cropper"), u("design:type", xt === void 0 ? Object : xt)], K.prototype, "cropperEl", void 0), l([s({
|
|
1690
1690
|
attribute: "asset-id",
|
|
1691
1691
|
type: String
|
|
1692
1692
|
}), u("design:type", Object)], K.prototype, "assetId", void 0), l([s({
|
|
@@ -40531,8 +40531,8 @@ var hr = K, gr = r`.table-select::part(listbox){padding-block:0}.table-select__t
|
|
|
40531
40531
|
"cx-button": b,
|
|
40532
40532
|
"cx-color-picker": Ie,
|
|
40533
40533
|
"cx-dialog": k,
|
|
40534
|
-
"cx-grid":
|
|
40535
|
-
"cx-grid-item":
|
|
40534
|
+
"cx-grid": ct,
|
|
40535
|
+
"cx-grid-item": lt,
|
|
40536
40536
|
"cx-input": T,
|
|
40537
40537
|
"cx-option": E,
|
|
40538
40538
|
"cx-select": O,
|
|
@@ -40566,7 +40566,7 @@ var hr = K, gr = r`.table-select::part(listbox){padding-block:0}.table-select__t
|
|
|
40566
40566
|
cmyk: this.dialogCmyk,
|
|
40567
40567
|
color: this.dialogColor,
|
|
40568
40568
|
hex: this.dialogHex,
|
|
40569
|
-
id: this.dialogId ||
|
|
40569
|
+
id: this.dialogId || ht(),
|
|
40570
40570
|
metadata: { ...this.dialogMetadata },
|
|
40571
40571
|
name: this.dialogName,
|
|
40572
40572
|
palette: this.dialogPalette.replaceAll("_", " "),
|
|
@@ -40743,13 +40743,13 @@ l([f("cx-dialog"), u("design:type", k === void 0 ? Object : k)], q.prototype, "d
|
|
|
40743
40743
|
], q.prototype, "handleDataChange", null), q = l([m("cx-color-swatch-picker"), u("design:paramtypes", [])], q);
|
|
40744
40744
|
var Er = q, Dr = r`.folder-picker__name{--color:var(--cx-color-primary-500)}.folder-picker__request-folder-button:not(:first-child){margin-left:var(--cx-spacing-small)}`, J = class extends d {
|
|
40745
40745
|
constructor(...e) {
|
|
40746
|
-
super(...e), this.localize = new h(this), this.boundary = document.body, this.name = "", this.value = "", this.variant =
|
|
40746
|
+
super(...e), this.localize = new h(this), this.boundary = document.body, this.name = "", this.value = "", this.variant = N.Input, this.useFullPath = !1, this.multiple = !1, this.allowedFolders = [], this.required = !1, this.selectedLabel = "", this.open = !1, this._selectedFolder = void 0, this._apiGetFolders = Ct;
|
|
40747
40747
|
}
|
|
40748
40748
|
static #e = this.styles = [p, Dr];
|
|
40749
40749
|
static #t = this.dependencies = {
|
|
40750
40750
|
"cx-button": b,
|
|
40751
40751
|
"cx-dialog": k,
|
|
40752
|
-
"cx-folder-select":
|
|
40752
|
+
"cx-folder-select": P,
|
|
40753
40753
|
"cx-icon-button": _,
|
|
40754
40754
|
"cx-space": D,
|
|
40755
40755
|
"cx-typography": S
|
|
@@ -40768,7 +40768,7 @@ var Er = q, Dr = r`.folder-picker__name{--color:var(--cx-color-primary-500)}.fol
|
|
|
40768
40768
|
}
|
|
40769
40769
|
handleSelectionChange(e) {
|
|
40770
40770
|
let t = e.detail.selection ?? [];
|
|
40771
|
-
if (this.variant ===
|
|
40771
|
+
if (this.variant === N.Select && this.multiple) {
|
|
40772
40772
|
let e = t.map((e) => e.dataset.id).filter((e) => !!e), n = t.find((e) => e.dataset.id)?.dataset.representativeAssetId;
|
|
40773
40773
|
this.emit("cx-content-builder-folder-change", { detail: {
|
|
40774
40774
|
id: e.join(" "),
|
|
@@ -40778,7 +40778,7 @@ var Er = q, Dr = r`.folder-picker__name{--color:var(--cx-color-primary-500)}.fol
|
|
|
40778
40778
|
}
|
|
40779
40779
|
if (!t.length || !t[0].dataset.id) return;
|
|
40780
40780
|
let { id: n, representativeAssetId: r } = t[0].dataset;
|
|
40781
|
-
this.variant ===
|
|
40781
|
+
this.variant === N.Select ? this.emit("cx-content-builder-folder-change", { detail: {
|
|
40782
40782
|
id: n,
|
|
40783
40783
|
representativeAssetId: r
|
|
40784
40784
|
} }) : this._selectedFolder = {
|
|
@@ -40807,11 +40807,11 @@ var Er = q, Dr = r`.folder-picker__name{--color:var(--cx-color-primary-500)}.fol
|
|
|
40807
40807
|
e ? this.useFullPath ? (this.selectedLabel = `/${(e.fullPath ?? "").replace(/^\/+/, "")}`, e.docType === et.Album && (this.selectedLabel += `/${e.title}`)) : this.selectedLabel = e.title : this.selectedLabel = "";
|
|
40808
40808
|
}
|
|
40809
40809
|
render() {
|
|
40810
|
-
return n`<cx-space part="base" class="folder-picker" spacing="2x-small" direction="horizontal" align-items="center">${y(this.variant ===
|
|
40811
|
-
${y(this.selectedLabel, () => n`<cx-typography data-testid="folder-name" variant="body3" class="folder-picker__name">${this.selectedLabel}</cx-typography>`)}<cx-button data-testid="request-folder-button" class="folder-picker__request-folder-button" @click=${this.handleRequestFolderClick}>${this.localize.term("choose")}</cx-button>${y(this.value, () => n`<cx-icon-button data-testid="delete-folder-button" label=${this.localize.term("delete")} name="delete" @click=${this.handleClear}></cx-icon-button>`)}<cx-dialog part="dialog" class="folder-picker__dialog" use-overlay-scrollbar strategy="overlay" ?open=${this.open} .boundary=${this.boundary} @cx-request-close=${this.handleRequestClose}><cx-typography slot="label" variant="h4">${this.localize.term("selectFolder")}</cx-typography><cx-folder-select name=${this.name} value=${this._selectedFolder || this.value} selected-label=${this.selectedLabel} variant=${this.variant} .form=${this.closest("form")} ?open=${this.open} ?required=${this.required} @cx-selection-change=${this.handleSelectionChange} .allowedFolders=${this.allowedFolders} .api=${
|
|
40810
|
+
return n`<cx-space part="base" class="folder-picker" spacing="2x-small" direction="horizontal" align-items="center">${y(this.variant === N.Select, () => n`<cx-folder-select name=${this.name} selected-label=${this.selectedLabel} selection=${this.multiple ? "multiple" : "single"} value=${this._selectedFolder || this.value} variant="select" .form=${this.closest("form")} ?open=${this.open} ?required=${this.required} @cx-clear=${this.handleClear} @cx-selection-change=${this.handleSelectionChange} .allowedFolders=${this.allowedFolders} .api=${Ct}></cx-folder-select>`, () => n`
|
|
40811
|
+
${y(this.selectedLabel, () => n`<cx-typography data-testid="folder-name" variant="body3" class="folder-picker__name">${this.selectedLabel}</cx-typography>`)}<cx-button data-testid="request-folder-button" class="folder-picker__request-folder-button" @click=${this.handleRequestFolderClick}>${this.localize.term("choose")}</cx-button>${y(this.value, () => n`<cx-icon-button data-testid="delete-folder-button" label=${this.localize.term("delete")} name="delete" @click=${this.handleClear}></cx-icon-button>`)}<cx-dialog part="dialog" class="folder-picker__dialog" use-overlay-scrollbar strategy="overlay" ?open=${this.open} .boundary=${this.boundary} @cx-request-close=${this.handleRequestClose}><cx-typography slot="label" variant="h4">${this.localize.term("selectFolder")}</cx-typography><cx-folder-select name=${this.name} value=${this._selectedFolder || this.value} selected-label=${this.selectedLabel} variant=${this.variant} .form=${this.closest("form")} ?open=${this.open} ?required=${this.required} @cx-selection-change=${this.handleSelectionChange} .allowedFolders=${this.allowedFolders} .api=${Ct}></cx-folder-select><cx-space slot="footer" spacing="x-small" wrap="nowrap" justify-content="end"><cx-button data-testid="cancel-button" variant="default" size="medium" @click=${this.handleRequestClose}>${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-space>`;
|
|
40812
40812
|
}
|
|
40813
40813
|
};
|
|
40814
|
-
l([f(".folder-picker__dialog"), u("design:type", k === void 0 ? Object : k)], J.prototype, "dialog", void 0), l([f("cx-folder-select"), u("design:type",
|
|
40814
|
+
l([f(".folder-picker__dialog"), u("design:type", k === void 0 ? Object : k)], J.prototype, "dialog", void 0), l([f("cx-folder-select"), u("design:type", P === void 0 ? Object : P)], J.prototype, "selectEl", void 0), l([s({ type: Object }), u("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], J.prototype, "boundary", void 0), l([s({
|
|
40815
40815
|
reflect: !0,
|
|
40816
40816
|
type: String
|
|
40817
40817
|
}), u("design:type", String)], J.prototype, "name", void 0), l([s({
|
|
@@ -40821,7 +40821,7 @@ l([f(".folder-picker__dialog"), u("design:type", k === void 0 ? Object : k)], J.
|
|
|
40821
40821
|
attribute: "variant",
|
|
40822
40822
|
reflect: !0,
|
|
40823
40823
|
type: String
|
|
40824
|
-
}), u("design:type",
|
|
40824
|
+
}), u("design:type", N === void 0 ? Object : N)], J.prototype, "variant", void 0), l([s({
|
|
40825
40825
|
attribute: "use-fullpath",
|
|
40826
40826
|
reflect: !0,
|
|
40827
40827
|
type: Boolean
|
|
@@ -40830,7 +40830,7 @@ l([f(".folder-picker__dialog"), u("design:type", k === void 0 ? Object : k)], J.
|
|
|
40830
40830
|
type: Boolean
|
|
40831
40831
|
}), u("design:type", Boolean)], J.prototype, "multiple", void 0), l([s({
|
|
40832
40832
|
attribute: "allowed-folders",
|
|
40833
|
-
converter:
|
|
40833
|
+
converter: wt,
|
|
40834
40834
|
type: Array
|
|
40835
40835
|
}), u("design:type", Array)], J.prototype, "allowedFolders", void 0), l([s({
|
|
40836
40836
|
reflect: !0,
|
|
@@ -40845,20 +40845,20 @@ var Or = J, kr = r`:host{width:100%;display:block}.gallery-config-dialog{--width
|
|
|
40845
40845
|
static #e = this.styles = [p, kr];
|
|
40846
40846
|
static #t = this.dependencies = {
|
|
40847
40847
|
"cx-asset-picker": On,
|
|
40848
|
-
"cx-bicolor-picker":
|
|
40848
|
+
"cx-bicolor-picker": gt,
|
|
40849
40849
|
"cx-button": b,
|
|
40850
40850
|
"cx-checkbox": be,
|
|
40851
40851
|
"cx-dialog": k,
|
|
40852
40852
|
"cx-divider": Ue,
|
|
40853
|
-
"cx-dynamic-select":
|
|
40853
|
+
"cx-dynamic-select": St,
|
|
40854
40854
|
"cx-folder-picker": Or,
|
|
40855
|
-
"cx-folder-select":
|
|
40856
|
-
"cx-grid":
|
|
40857
|
-
"cx-grid-item":
|
|
40855
|
+
"cx-folder-select": P,
|
|
40856
|
+
"cx-grid": ct,
|
|
40857
|
+
"cx-grid-item": lt,
|
|
40858
40858
|
"cx-input": T,
|
|
40859
40859
|
"cx-position-picker": Ot,
|
|
40860
|
-
"cx-radio":
|
|
40861
|
-
"cx-radio-group":
|
|
40860
|
+
"cx-radio": dt,
|
|
40861
|
+
"cx-radio-group": pt,
|
|
40862
40862
|
"cx-space": D,
|
|
40863
40863
|
"cx-typography": S
|
|
40864
40864
|
};
|
|
@@ -40876,11 +40876,11 @@ var Or = J, kr = r`:host{width:100%;display:block}.gallery-config-dialog{--width
|
|
|
40876
40876
|
}
|
|
40877
40877
|
}
|
|
40878
40878
|
constructor() {
|
|
40879
|
-
super(), this.localize = new h(this), this.variant = x.Asset, this.dialogVariant = j.Gallery, this.boundary = document.body, this.onRequestAsset = void 0, this.image = null, this.selectedPosition = -1, this.disabledAssetPicker = !1, this.editedImage = { id: "" }, this.assetRequestingStatus = !1, this.selectedPageLabel = "", this.isThumbnailManuallySet = !1, this.apiGetTeamSpaceSpaceList =
|
|
40879
|
+
super(), this.localize = new h(this), this.variant = x.Asset, this.dialogVariant = j.Gallery, this.boundary = document.body, this.onRequestAsset = void 0, this.image = null, this.selectedPosition = -1, this.disabledAssetPicker = !1, this.editedImage = { id: "" }, this.assetRequestingStatus = !1, this.selectedPageLabel = "", this.isThumbnailManuallySet = !1, this.apiGetTeamSpaceSpaceList = yn, this.apiGetPagesAndLinks = this.apiGetPagesAndLinks.bind(this);
|
|
40880
40880
|
}
|
|
40881
40881
|
async apiGetPagesAndLinks({ folderId: e = "", searchTerm: t = "", start: n = 0 }) {
|
|
40882
40882
|
try {
|
|
40883
|
-
let { data: r, hasMore: i } = await
|
|
40883
|
+
let { data: r, hasMore: i } = await vn({
|
|
40884
40884
|
parentId: e,
|
|
40885
40885
|
searchTerm: t,
|
|
40886
40886
|
start: n
|
|
@@ -41094,7 +41094,7 @@ Re.plugin({
|
|
|
41094
41094
|
var X = class extends d {
|
|
41095
41095
|
static #e = Nr = this;
|
|
41096
41096
|
constructor(...e) {
|
|
41097
|
-
super(...e), this.formControlController = new de(this, { assumeInteractionOn: ["cx-gallery-picker-action"] }), this.localize = new h(this), this.variant = x.Asset, this.sourceVariant =
|
|
41097
|
+
super(...e), this.formControlController = new de(this, { assumeInteractionOn: ["cx-gallery-picker-action"] }), this.localize = new h(this), this.variant = x.Asset, this.sourceVariant = L.Manual, this.dialogVariant = j.Gallery, this.name = "", this.value = void 0, this.defaultValue = void 0, this.src = "", this.format = "TR1", this.manualFormat = !1, this.boundary = document.body, this.form = void 0, this.onRequestAsset = void 0, this.loading = !1, this.masonryData = [], this.dataCount = 0, this.currentPage = 0, this.selectedPosition = -1, this.hasFinishedFetchingData = !1, this.errorDataMap = /* @__PURE__ */ new Map(), this.osInstance = null, this.itemsPerPage = 9, this.maxRows = 3, this.maxColumns = 3, this.rowHeight = "150px", this.spacing = "medium", this.autofetchController = new Ht(this, {
|
|
41098
41098
|
isSiteBuilder: !0,
|
|
41099
41099
|
maxEnd: 100
|
|
41100
41100
|
});
|
|
@@ -41160,7 +41160,7 @@ var X = class extends d {
|
|
|
41160
41160
|
await this.updateComplete, this.requestUpdate();
|
|
41161
41161
|
}
|
|
41162
41162
|
async fetchImagesInFolderBySlide() {
|
|
41163
|
-
if (await this.updateComplete, this.src !== "" && this.sourceVariant ===
|
|
41163
|
+
if (await this.updateComplete, this.src !== "" && this.sourceVariant === L.Api && this.currentPage !== Infinity) {
|
|
41164
41164
|
this.hasFinishedFetchingData = !1, this.loading = !0;
|
|
41165
41165
|
try {
|
|
41166
41166
|
let e = await this.autofetchController.fetchImagesInFolderByPage({
|
|
@@ -41177,10 +41177,10 @@ var X = class extends d {
|
|
|
41177
41177
|
}
|
|
41178
41178
|
}
|
|
41179
41179
|
handleSourceVariantChange() {
|
|
41180
|
-
this.sourceVariant ===
|
|
41180
|
+
this.sourceVariant === L.Api && (this.currentPage = 0, this.masonryData = [], this.dataCount = 0);
|
|
41181
41181
|
}
|
|
41182
41182
|
async fetchImagesByIDs(e, t) {
|
|
41183
|
-
if (await this.updateComplete, this.sourceVariant ===
|
|
41183
|
+
if (await this.updateComplete, this.sourceVariant === L.Api || !this.value) return;
|
|
41184
41184
|
if (this.value.length === 0) {
|
|
41185
41185
|
this.masonryData = [], this.dataCount = 0;
|
|
41186
41186
|
return;
|
|
@@ -41194,7 +41194,7 @@ var X = class extends d {
|
|
|
41194
41194
|
await this.doFetchByIds(n);
|
|
41195
41195
|
}
|
|
41196
41196
|
async handleFormatChange() {
|
|
41197
|
-
if (this.sourceVariant ===
|
|
41197
|
+
if (this.sourceVariant === L.Api || !this.value || this.value.length === 0) return;
|
|
41198
41198
|
let e = this.value.map((e) => e.id).filter((e) => e !== "");
|
|
41199
41199
|
e.length !== 0 && await this.doFetchByIds(e);
|
|
41200
41200
|
}
|
|
@@ -41234,9 +41234,9 @@ var X = class extends d {
|
|
|
41234
41234
|
}
|
|
41235
41235
|
handleEditItem(e) {
|
|
41236
41236
|
if (this.value) {
|
|
41237
|
-
if (this.emit("cx-gallery-picker-action"), this.sourceVariant ===
|
|
41238
|
-
if (this.selectedPosition = this.value.findIndex((t) => this.sourceVariant ===
|
|
41239
|
-
let t = this.value[this.selectedPosition], n = this.masonryData.find((t) => this.sourceVariant ===
|
|
41237
|
+
if (this.emit("cx-gallery-picker-action"), this.sourceVariant === L.Manual) {
|
|
41238
|
+
if (this.selectedPosition = this.value.findIndex((t) => this.sourceVariant === L.Manual ? t.rawId === e.detail.item.rawId : t.id === e.detail.item.id), this.selectedPosition < 0) return;
|
|
41239
|
+
let t = this.value[this.selectedPosition], n = this.masonryData.find((t) => this.sourceVariant === L.Manual ? t.rawId === e.detail.item.rawId : t.id === e.detail.item.id);
|
|
41240
41240
|
if (!t || !n?.src && !n?.backgroundColor) return;
|
|
41241
41241
|
let r = {
|
|
41242
41242
|
...t,
|
|
@@ -41280,12 +41280,12 @@ var X = class extends d {
|
|
|
41280
41280
|
if (n < 0) r = [...this.value ?? [], t];
|
|
41281
41281
|
else {
|
|
41282
41282
|
r = [...this.value ?? []];
|
|
41283
|
-
let e = this.sourceVariant ===
|
|
41283
|
+
let e = this.sourceVariant === L.Manual && !!t.rawId, n = (n) => e ? n.rawId === t.rawId : n.id === t.id;
|
|
41284
41284
|
r.some(n) ? r = r.map((e) => n(e) ? t : e) : r.push(t);
|
|
41285
41285
|
}
|
|
41286
41286
|
let i = r.map((e) => ({
|
|
41287
41287
|
...e,
|
|
41288
|
-
rawId: this.sourceVariant ===
|
|
41288
|
+
rawId: this.sourceVariant === L.Manual ? e.rawId || ht() : e.rawId ?? ""
|
|
41289
41289
|
}));
|
|
41290
41290
|
this.value = i, this.emit("cx-content-builder-gallery-change", { detail: { data: i.map((e) => ({
|
|
41291
41291
|
backgroundColor: e.backgroundColor,
|
|
@@ -41322,7 +41322,7 @@ var X = class extends d {
|
|
|
41322
41322
|
autoHideDelay: 1e3
|
|
41323
41323
|
} }), this.osInstance.on("scroll", (e) => {
|
|
41324
41324
|
let t = e.elements().viewport, n = t.scrollTop, r = t.clientHeight, i = t.scrollHeight, a = n + r >= i - 5;
|
|
41325
|
-
if (this.sourceVariant !==
|
|
41325
|
+
if (this.sourceVariant !== L.Api || this.loading || this.currentPage === Infinity || !this.src) return;
|
|
41326
41326
|
let o = (this.currentPage + 1) * this.itemsPerPage;
|
|
41327
41327
|
a && this.dataCount > o && this.currentPage++;
|
|
41328
41328
|
});
|
|
@@ -41331,7 +41331,7 @@ var X = class extends d {
|
|
|
41331
41331
|
this.osInstance?.destroy(), this.osInstance = null;
|
|
41332
41332
|
}
|
|
41333
41333
|
render() {
|
|
41334
|
-
let e = this.sourceVariant ===
|
|
41334
|
+
let e = this.sourceVariant === L.Manual ? [{
|
|
41335
41335
|
color: "var(--cx-color-danger)",
|
|
41336
41336
|
event: "cx-delete-item",
|
|
41337
41337
|
icon: "delete",
|
|
@@ -41349,7 +41349,7 @@ var X = class extends d {
|
|
|
41349
41349
|
hasError: this.errorDataMap.has(e.id),
|
|
41350
41350
|
loading: !e.src && !e.backgroundColor
|
|
41351
41351
|
}));
|
|
41352
|
-
return n`<cx-input class="gallery-picker__input" label=${this.localize.term("choose")} name=${this.name} value=${JSON.stringify(this.value ?? [])}></cx-input><div part="overlay" class="gallery-picker__overlay" tabindex="-1"><div part="masonry-wrapper" style=${ce({ maxHeight: this.maxMasonryHeight })} class="gallery-picker__masonry-wrapper" tabindex="-1"><cx-masonry class="gallery-picker__masonry" cols=${this.maxColumns} id-key=${this.sourceVariant ===
|
|
41352
|
+
return n`<cx-input class="gallery-picker__input" label=${this.localize.term("choose")} name=${this.name} value=${JSON.stringify(this.value ?? [])}></cx-input><div part="overlay" class="gallery-picker__overlay" tabindex="-1"><div part="masonry-wrapper" style=${ce({ maxHeight: this.maxMasonryHeight })} class="gallery-picker__masonry-wrapper" tabindex="-1"><cx-masonry class="gallery-picker__masonry" cols=${this.maxColumns} id-key=${this.sourceVariant === L.Manual ? "rawId" : "id"} row-height=${this.rowHeight} format=${this.format} ?manual-format=${this.manualFormat} spacing="medium" no-crossorigin ?sortable=${this.sourceVariant === L.Manual} .data=${t} .actions=${e} @cx-edit-item=${this.handleEditItem} @cx-delete-item=${this.handleDeleteItem} @cx-reorder=${this.handleReorder}></cx-masonry></div>${y(this.src ? this.hasFinishedFetchingData && this.masonryData.length === 0 : this.masonryData.length === 0, () => y(this.sourceVariant === L.Api, () => n`<cx-typography variant="body2" class="gallery-picker__no-slides-added">${y(this.dialogVariant === j.Gallery, () => this.localize.term("cardsWillBeAddedAutomaticallyFromTheSelectedFolder"), () => this.localize.term("slidesWillBeAddedAutomaticallyFromTheSelectedFolder"))}</cx-typography>`, () => n`<cx-typography variant="body2" class="gallery-picker__no-slides-added">${this.localize.term(`no${this.dialogVariant === j.Gallery ? "Cards" : "Slides"}AddedYet`)}</cx-typography>`))}</div>${y(this.sourceVariant === L.Manual, () => n`<cx-button class="gallery-picker-trigger" variant="default" @click=${this.handleAddItem}>${this.localize.term(`add${this.dialogVariant === j.Gallery ? "Card" : "Slide"}`)}</cx-button>`)}<cx-gallery-config variant=${this.variant} dialog-variant=${this.dialogVariant} ?disabled-asset-picker=${this.sourceVariant === L.Api} .boundary=${this.boundary} .onRequestAsset=${this.onRequestAsset} @cx-gallery-config-save=${this.handleSave}></cx-gallery-config>`;
|
|
41353
41353
|
}
|
|
41354
41354
|
};
|
|
41355
41355
|
l([f("cx-gallery-config"), u("design:type", jr === void 0 ? Object : jr)], X.prototype, "galleryConfig", void 0), l([f("cx-masonry"), u("design:type", Et === void 0 ? Object : Et)], X.prototype, "masonry", void 0), l([f(".gallery-picker__masonry-wrapper"), u("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], X.prototype, "scrollWrapper", void 0), l([f(".gallery-picker__input"), u("design:type", T === void 0 ? Object : T)], X.prototype, "inputEl", void 0), l([s({
|
|
@@ -41359,7 +41359,7 @@ l([f("cx-gallery-config"), u("design:type", jr === void 0 ? Object : jr)], X.pro
|
|
|
41359
41359
|
attribute: "source-variant",
|
|
41360
41360
|
reflect: !0,
|
|
41361
41361
|
type: String
|
|
41362
|
-
}), u("design:type",
|
|
41362
|
+
}), u("design:type", L === void 0 ? Object : L)], X.prototype, "sourceVariant", void 0), l([s({
|
|
41363
41363
|
attribute: "dialog-variant",
|
|
41364
41364
|
reflect: !0,
|
|
41365
41365
|
type: String
|
|
@@ -41428,14 +41428,14 @@ var Pr = X, Fr = r`.page-picker__name{--color:var(--cx-color-primary-500)}.page-
|
|
|
41428
41428
|
static #t = this.dependencies = {
|
|
41429
41429
|
"cx-button": b,
|
|
41430
41430
|
"cx-dialog": k,
|
|
41431
|
-
"cx-folder-select":
|
|
41431
|
+
"cx-folder-select": P,
|
|
41432
41432
|
"cx-icon-button": _,
|
|
41433
41433
|
"cx-space": D,
|
|
41434
41434
|
"cx-typography": S
|
|
41435
41435
|
};
|
|
41436
41436
|
#n;
|
|
41437
41437
|
constructor() {
|
|
41438
|
-
super(), this.localize = new h(this), this.boundary = document.body, this.name = "", this.value = "", this.variant =
|
|
41438
|
+
super(), this.localize = new h(this), this.boundary = document.body, this.name = "", this.value = "", this.variant = N.Select, this.required = !1, this.selectedLabel = "", this.open = !1, this.apiGetPagesAndLinks = this.apiGetPagesAndLinks.bind(this);
|
|
41439
41439
|
}
|
|
41440
41440
|
async fetchSelectedPage() {
|
|
41441
41441
|
if (this.value && !this.selectedLabel) try {
|
|
@@ -41451,7 +41451,7 @@ var Pr = X, Fr = r`.page-picker__name{--color:var(--cx-color-primary-500)}.page-
|
|
|
41451
41451
|
}
|
|
41452
41452
|
async apiGetPagesAndLinks({ folderId: e = "", searchTerm: t = "", start: n = 0 }) {
|
|
41453
41453
|
try {
|
|
41454
|
-
let { data: r, hasMore: i } = await
|
|
41454
|
+
let { data: r, hasMore: i } = await vn({
|
|
41455
41455
|
parentId: e,
|
|
41456
41456
|
searchTerm: t,
|
|
41457
41457
|
start: n
|
|
@@ -41489,7 +41489,7 @@ var Pr = X, Fr = r`.page-picker__name{--color:var(--cx-color-primary-500)}.page-
|
|
|
41489
41489
|
let t = e.detail.selection[0];
|
|
41490
41490
|
this.selectedLabel = t.dataset.name ?? "";
|
|
41491
41491
|
let { id: n, url: r } = t.dataset;
|
|
41492
|
-
this.variant ===
|
|
41492
|
+
this.variant === N.Select ? this.emit("cx-content-builder-page-change", { detail: {
|
|
41493
41493
|
id: n,
|
|
41494
41494
|
url: r
|
|
41495
41495
|
} }) : this.#n = {
|
|
@@ -41510,11 +41510,11 @@ var Pr = X, Fr = r`.page-picker__name{--color:var(--cx-color-primary-500)}.page-
|
|
|
41510
41510
|
this.emit("cx-content-builder-page-change", { detail: this.#n }), this.dialog.hide(), this.open = !1;
|
|
41511
41511
|
}
|
|
41512
41512
|
render() {
|
|
41513
|
-
return n`<cx-space part="base" class="page-picker" spacing="2x-small" direction="horizontal" align-items="center">${y(this.variant ===
|
|
41513
|
+
return n`<cx-space part="base" class="page-picker" spacing="2x-small" direction="horizontal" align-items="center">${y(this.variant === N.Select, () => n`<cx-folder-select name=${this.name} selected-label=${this.selectedLabel} value=${this.#n?.id || this.value} variant="select" .form=${this.closest("form")} ?open=${this.open} ?required=${this.required} @cx-clear=${this.handleClear} @cx-selection-change=${this.handleSelectionChange} .api=${this.apiGetPagesAndLinks}></cx-folder-select>`, () => n`
|
|
41514
41514
|
${y(this.selectedLabel, () => n`<cx-typography data-testid="page-name" variant="body3" class="page-picker__name">${this.selectedLabel}</cx-typography>`)}<cx-button data-testid="request-page-button" class="page-picker__request-page-button" @click=${this.handleRequestPageClick}>${this.localize.term("choose")}</cx-button>${y(this.value, () => n`<cx-icon-button data-testid="delete-page-button" label=${this.localize.term("delete")} name="delete" @click=${this.handleClear}></cx-icon-button>`)}<cx-dialog part="dialog" class="page-picker__dialog" use-overlay-scrollbar strategy="overlay" ?open=${this.open} .boundary=${this.boundary} @cx-request-close=${this.handleRequestClose}><cx-typography slot="label" variant="h4">${this.localize.term("selectFolder")}</cx-typography><cx-folder-select name=${this.name} value=${this.#n?.id || this.value} selected-label=${this.selectedLabel} variant=${this.variant} .form=${this.closest("form")} ?open=${this.open} ?required=${this.required} @cx-selection-change=${this.handleSelectionChange} .api=${this.apiGetPagesAndLinks}></cx-folder-select><cx-space slot="footer" spacing="x-small" wrap="nowrap" justify-content="end"><cx-button data-testid="cancel-button" variant="default" size="medium" @click=${this.handleRequestClose}>${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-space>`;
|
|
41515
41515
|
}
|
|
41516
41516
|
};
|
|
41517
|
-
l([f(".page-picker__dialog"), u("design:type", k === void 0 ? Object : k)], Z.prototype, "dialog", void 0), l([f("cx-folder-select"), u("design:type",
|
|
41517
|
+
l([f(".page-picker__dialog"), u("design:type", k === void 0 ? Object : k)], Z.prototype, "dialog", void 0), l([f("cx-folder-select"), u("design:type", P === void 0 ? Object : P)], Z.prototype, "selectEl", void 0), l([s({ type: Object }), u("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], Z.prototype, "boundary", void 0), l([s({
|
|
41518
41518
|
reflect: !0,
|
|
41519
41519
|
type: String
|
|
41520
41520
|
}), u("design:type", String)], Z.prototype, "name", void 0), l([s({
|
|
@@ -41524,7 +41524,7 @@ l([f(".page-picker__dialog"), u("design:type", k === void 0 ? Object : k)], Z.pr
|
|
|
41524
41524
|
attribute: "variant",
|
|
41525
41525
|
reflect: !0,
|
|
41526
41526
|
type: String
|
|
41527
|
-
}), u("design:type",
|
|
41527
|
+
}), u("design:type", N === void 0 ? Object : N)], Z.prototype, "variant", void 0), l([s({
|
|
41528
41528
|
reflect: !0,
|
|
41529
41529
|
type: Boolean
|
|
41530
41530
|
}), u("design:type", Object)], Z.prototype, "required", void 0), l([c(), u("design:type", String)], Z.prototype, "selectedLabel", void 0), l([c(), u("design:type", Object)], Z.prototype, "open", void 0), Z = l([m("cx-page-picker"), u("design:paramtypes", [])], Z);
|
|
@@ -41532,17 +41532,17 @@ var Ir = Z;
|
|
|
41532
41532
|
//#endregion
|
|
41533
41533
|
//#region ../../packages/organisms/src/content-builder/content-builder.utils.ts
|
|
41534
41534
|
function Lr(e, t, n) {
|
|
41535
|
-
return e.value === "space-default" ? n ?
|
|
41535
|
+
return e.value === "space-default" ? n ? rt(t?.value ?? n) : Ze : rt(t?.value ?? e.typeface);
|
|
41536
41536
|
}
|
|
41537
41537
|
function Rr(e, t) {
|
|
41538
|
-
return e.find((e) => e.typeface === t || e.value === t ||
|
|
41538
|
+
return e.find((e) => e.typeface === t || e.value === t || M(e) === t || e.families.some((e) => e.value === t));
|
|
41539
41539
|
}
|
|
41540
41540
|
function zr(e, t, n) {
|
|
41541
|
-
return e ? e.families.find((e) => String(e.fontStyle ?? "") === t && String(e.fontWeight ?? "") === n) || e.families.find((e) =>
|
|
41541
|
+
return e ? e.families.find((e) => String(e.fontStyle ?? "") === t && String(e.fontWeight ?? "") === n) || e.families.find((e) => tt(e) === t || e.value === t) : void 0;
|
|
41542
41542
|
}
|
|
41543
41543
|
function Br(e, t) {
|
|
41544
41544
|
return {
|
|
41545
|
-
family:
|
|
41545
|
+
family: ot(String(e[t.familyKey] ?? "")),
|
|
41546
41546
|
style: String(e[t.styleKey] ?? ""),
|
|
41547
41547
|
weight: String(t.weightKey ? e[t.weightKey] ?? "" : "")
|
|
41548
41548
|
};
|
|
@@ -41557,7 +41557,7 @@ function Ur(e, t) {
|
|
|
41557
41557
|
return Hr(e).filter((e) => e.id && e.name && t.includes(e.name)).map((e) => e.id);
|
|
41558
41558
|
}
|
|
41559
41559
|
function Wr(e) {
|
|
41560
|
-
return e === $e.Carousel ?
|
|
41560
|
+
return e === $e.Carousel ? dn : e === $e.FontKitAdvanced ? [$e.Text] : [];
|
|
41561
41561
|
}
|
|
41562
41562
|
function Gr(e, t) {
|
|
41563
41563
|
if (!t) return e;
|
|
@@ -41570,12 +41570,12 @@ function Gr(e, t) {
|
|
|
41570
41570
|
function Kr({ blockAttributes: e, keys: t, typefaces: n }) {
|
|
41571
41571
|
let r = Br(e, t), i = n.some((e) => e.value === "inherited-font") ? Qe : Ze, a = Rr(n, r.family) ?? (r.family ? void 0 : n.find((e) => e.value === i)), o = zr(a, r.style, r.weight);
|
|
41572
41572
|
return {
|
|
41573
|
-
familyValue: a ?
|
|
41574
|
-
styleValue: a && o ?
|
|
41573
|
+
familyValue: a ? M(a) : r.family,
|
|
41574
|
+
styleValue: a && o ? tt(o) : r.style
|
|
41575
41575
|
};
|
|
41576
41576
|
}
|
|
41577
41577
|
function qr({ clearDefaultFamily: e = !1, familyValue: t, spaceFontFamily: n, styleValue: r, typefaces: i }) {
|
|
41578
|
-
let a = t === Qe, o = i.find((e) =>
|
|
41578
|
+
let a = t === Qe, o = i.find((e) => M(e) === t), s = (o?.families ?? []).find((e) => tt(e) === r), c = o?.value === Ze, l = a || e && c && !n, u = t;
|
|
41579
41579
|
l ? u = "" : o && (u = Lr(o, s, n));
|
|
41580
41580
|
let d = String(s?.fontStyle ?? ""), f = s?.fontWeight === void 0 ? "" : String(s.fontWeight);
|
|
41581
41581
|
return {
|
|
@@ -41615,7 +41615,7 @@ function Zr(e, t) {
|
|
|
41615
41615
|
//#region ../../packages/organisms/src/form/control-renderer/control-renderer.ts
|
|
41616
41616
|
var Qr = class {
|
|
41617
41617
|
constructor(e, t) {
|
|
41618
|
-
this.apiSearchAssets = jt, this.apiGetTeamSpaceFontFamily =
|
|
41618
|
+
this.apiSearchAssets = jt, this.apiGetTeamSpaceFontFamily = _n, this.pendingGalleryPickerSaves = /* @__PURE__ */ new Set(), this.fontFamiliesCache = /* @__PURE__ */ new Map(), this.spaceFontFamilyCache = /* @__PURE__ */ new Map(), this.pendingFontFamilyFetches = /* @__PURE__ */ new Set(), this.typeSubtypeOptionsCache = /* @__PURE__ */ new Map(), this.pendingTypeSubtypeOptionsFetches = /* @__PURE__ */ new Set(), this.srcResolveVersions = /* @__PURE__ */ new Map(), this.host = e, this.options = t, this.localize = new h(this.host);
|
|
41619
41619
|
}
|
|
41620
41620
|
createChangeHandler({ key: e, trait: t, type: n }) {
|
|
41621
41621
|
let r;
|
|
@@ -41684,7 +41684,7 @@ var Qr = class {
|
|
|
41684
41684
|
} catch {
|
|
41685
41685
|
i = [];
|
|
41686
41686
|
}
|
|
41687
|
-
let a = new Set(i.map((e) => e.id)), o = r.map((e) => e.id).some((e) => !a.has(e)), s = this.context.blockAttributes["source-variant"] ===
|
|
41687
|
+
let a = new Set(i.map((e) => e.id)), o = r.map((e) => e.id).some((e) => !a.has(e)), s = this.context.blockAttributes["source-variant"] === L.Api;
|
|
41688
41688
|
o && !s ? this.pendingGalleryPickerSaves.add(e) : await this.handleConfigChange(e, r, n, t.callback);
|
|
41689
41689
|
}
|
|
41690
41690
|
if (t.galleryPickerConfigs?.transformationRecordIdKey && (!a || r.length > 0)) {
|
|
@@ -41856,7 +41856,7 @@ var Qr = class {
|
|
|
41856
41856
|
case "asset-format-picker":
|
|
41857
41857
|
r = async (r, ...i) => {
|
|
41858
41858
|
if (typeof r == "string") {
|
|
41859
|
-
let a = typeof i[0] == "string" ? i[0] :
|
|
41859
|
+
let a = typeof i[0] == "string" ? i[0] : gn.Latest, o = typeof i[1] == "string" ? i[1] : "", s = typeof i[2] == "string" ? i[2] : "";
|
|
41860
41860
|
await this.handleConfigChange(e, r, n, t.callback);
|
|
41861
41861
|
let c = t.assetFormatPickerConfigs?.assetVersionKey, l = t.assetFormatPickerConfigs?.formatSrcKey, u = t.assetFormatPickerConfigs?.versionLabelKey;
|
|
41862
41862
|
c && await this.handleConfigChange(c, a, "attribute"), l && await this.handleConfigChange(l, o, "attribute"), u && await this.handleConfigChange(u, s, "attribute");
|
|
@@ -41946,7 +41946,7 @@ var Qr = class {
|
|
|
41946
41946
|
query: { recordId: [e] }
|
|
41947
41947
|
});
|
|
41948
41948
|
for (let e of i.items) {
|
|
41949
|
-
let i = String(e["Document.FileExtension"] ?? ""), a = r ?
|
|
41949
|
+
let i = String(e["Document.FileExtension"] ?? ""), a = r ? it(i, String(e["CoreField.FileSize"] ?? "")) : t, o = `path_${a}`;
|
|
41950
41950
|
if (a !== "TRX" || Gt(String(e["CoreField.DocType"] ?? ""), i)) {
|
|
41951
41951
|
let t = e[o];
|
|
41952
41952
|
if (Xt(t)) return this.getResolvedImage(t);
|
|
@@ -42042,7 +42042,7 @@ var Qr = class {
|
|
|
42042
42042
|
a = {};
|
|
42043
42043
|
}
|
|
42044
42044
|
let s = [];
|
|
42045
|
-
if (e.src && e["source-variant"] ===
|
|
42045
|
+
if (e.src && e["source-variant"] === L.Api) s = [e.src];
|
|
42046
42046
|
else if (l.downloadFormatPickerConfigs?.isObjectFormat) try {
|
|
42047
42047
|
s = JSON.parse(e[l.downloadFormatPickerConfigs?.assetIdsKey ?? ""] ?? "[]").map((e) => e[l.downloadFormatPickerConfigs?.objectIdKey ?? "id"]);
|
|
42048
42048
|
} catch {
|
|
@@ -42055,7 +42055,7 @@ var Qr = class {
|
|
|
42055
42055
|
["asset-format-picker", () => {
|
|
42056
42056
|
let t = async (e) => {
|
|
42057
42057
|
await o(e.detail.format, e.detail.assetVersion, e.detail.assetSrc, e.detail.versionLabel);
|
|
42058
|
-
}, i = r, a = e[l.assetFormatPickerConfigs?.assetVersionKey ?? ""] ??
|
|
42058
|
+
}, i = r, a = e[l.assetFormatPickerConfigs?.assetVersionKey ?? ""] ?? gn.Latest, s = e[l.assetFormatPickerConfigs?.versionLabelKey ?? ""] || void 0, u = i ? {
|
|
42059
42059
|
assetVersion: a,
|
|
42060
42060
|
format: i,
|
|
42061
42061
|
versionLabel: s
|
|
@@ -42490,25 +42490,25 @@ var Qr = class {
|
|
|
42490
42490
|
"cx-asset-format-picker": fr,
|
|
42491
42491
|
"cx-asset-picker": On,
|
|
42492
42492
|
"cx-asset-transformation-dialog": hr,
|
|
42493
|
-
"cx-bicolor-picker":
|
|
42494
|
-
"cx-border-input-group":
|
|
42493
|
+
"cx-bicolor-picker": gt,
|
|
42494
|
+
"cx-border-input-group": _t,
|
|
42495
42495
|
"cx-button": b,
|
|
42496
42496
|
"cx-button-group": ve,
|
|
42497
42497
|
"cx-card": ye,
|
|
42498
42498
|
"cx-checkbox": be,
|
|
42499
42499
|
"cx-color-swatch-picker": Er,
|
|
42500
|
-
"cx-confirm-popover":
|
|
42501
|
-
"cx-corner-position-input-group":
|
|
42500
|
+
"cx-confirm-popover": yt,
|
|
42501
|
+
"cx-corner-position-input-group": bt,
|
|
42502
42502
|
"cx-dialog": k,
|
|
42503
42503
|
"cx-divider": Ue,
|
|
42504
42504
|
"cx-download-format-picker": An,
|
|
42505
42505
|
"cx-dropdown": w,
|
|
42506
|
-
"cx-dynamic-select":
|
|
42506
|
+
"cx-dynamic-select": St,
|
|
42507
42507
|
"cx-folder-picker": Or,
|
|
42508
42508
|
"cx-font-picker": Ln,
|
|
42509
42509
|
"cx-gallery-picker": Pr,
|
|
42510
|
-
"cx-grid":
|
|
42511
|
-
"cx-grid-item":
|
|
42510
|
+
"cx-grid": ct,
|
|
42511
|
+
"cx-grid-item": lt,
|
|
42512
42512
|
"cx-icon": ie,
|
|
42513
42513
|
"cx-icon-picker": or,
|
|
42514
42514
|
"cx-input": T,
|
|
@@ -42519,14 +42519,14 @@ var Qr = class {
|
|
|
42519
42519
|
"cx-padding-input-group": Dt,
|
|
42520
42520
|
"cx-page-picker": Ir,
|
|
42521
42521
|
"cx-position-picker": Ot,
|
|
42522
|
-
"cx-radio":
|
|
42523
|
-
"cx-radio-card":
|
|
42524
|
-
"cx-radio-group":
|
|
42522
|
+
"cx-radio": dt,
|
|
42523
|
+
"cx-radio-card": ft,
|
|
42524
|
+
"cx-radio-group": pt,
|
|
42525
42525
|
"cx-select": O,
|
|
42526
42526
|
"cx-shadow-input-group": kt,
|
|
42527
42527
|
"cx-size-input-group": At,
|
|
42528
42528
|
"cx-space": D,
|
|
42529
|
-
"cx-switch":
|
|
42529
|
+
"cx-switch": mt,
|
|
42530
42530
|
"cx-tab": je,
|
|
42531
42531
|
"cx-tab-group": Me,
|
|
42532
42532
|
"cx-tab-panel": Pe,
|
|
@@ -42853,26 +42853,26 @@ var ri = Q, ii = r`:host{display:block}.editor{gap:var(--cx-spacing-small);flex-
|
|
|
42853
42853
|
static #t = this.dependencies = {
|
|
42854
42854
|
"cx-button": b,
|
|
42855
42855
|
"cx-checkbox": be,
|
|
42856
|
-
"cx-confirm-popover":
|
|
42856
|
+
"cx-confirm-popover": yt,
|
|
42857
42857
|
"cx-dialog": k,
|
|
42858
42858
|
"cx-dropdown": w,
|
|
42859
|
-
"cx-dynamic-select":
|
|
42860
|
-
"cx-grid":
|
|
42861
|
-
"cx-grid-item":
|
|
42859
|
+
"cx-dynamic-select": St,
|
|
42860
|
+
"cx-grid": ct,
|
|
42861
|
+
"cx-grid-item": lt,
|
|
42862
42862
|
"cx-icon": ie,
|
|
42863
42863
|
"cx-icon-picker": or,
|
|
42864
42864
|
"cx-input": T,
|
|
42865
42865
|
"cx-list-editor": ri,
|
|
42866
42866
|
"cx-option": E,
|
|
42867
|
-
"cx-radio":
|
|
42868
|
-
"cx-radio-group":
|
|
42867
|
+
"cx-radio": dt,
|
|
42868
|
+
"cx-radio-group": pt,
|
|
42869
42869
|
"cx-select": O,
|
|
42870
42870
|
"cx-space": D,
|
|
42871
42871
|
"cx-type-subtype-select": ur,
|
|
42872
42872
|
"cx-typography": S
|
|
42873
42873
|
};
|
|
42874
42874
|
constructor() {
|
|
42875
|
-
super(), this.localize = new h(this), this.apiGetSubTypesWithWildcard = ln, this.apiGetDamViewAvailableSpaces =
|
|
42875
|
+
super(), this.localize = new h(this), this.apiGetSubTypesWithWildcard = ln, this.apiGetDamViewAvailableSpaces = mn, this.apiGetDamViewAvailableButtons = an, this.apiGetDamViewAvailableForms = pn, this.apiGetDamViewAvailableLevelsOfAccess = cn, this.apiGetDamViewAvailablePages = fn, this.apiGetDamViewCustomButtonDetail = sn, this.subTypesLoaded = !1, this.availableButtonDetailsByValue = /* @__PURE__ */ new Map(), this.pendingAvailableButtonSelect = Promise.resolve(), this.resolvedAvailableButtons = [], this.formApi = async () => {
|
|
42876
42876
|
let { forms: e } = await this.apiGetDamViewAvailableForms();
|
|
42877
42877
|
return {
|
|
42878
42878
|
data: e.map((e) => ({
|
|
@@ -42984,7 +42984,7 @@ var ri = Q, ii = r`:host{display:block}.editor{gap:var(--cx-spacing-small);flex-
|
|
|
42984
42984
|
let i = this.pendingAvailableButtonSelect.then(async () => {
|
|
42985
42985
|
let e = {
|
|
42986
42986
|
...this.createNewButton(),
|
|
42987
|
-
...
|
|
42987
|
+
...hn(await r),
|
|
42988
42988
|
label: n,
|
|
42989
42989
|
name: n
|
|
42990
42990
|
};
|
|
@@ -43012,7 +43012,7 @@ var ri = Q, ii = r`:host{display:block}.editor{gap:var(--cx-spacing-small);flex-
|
|
|
43012
43012
|
e.preventDefault();
|
|
43013
43013
|
return;
|
|
43014
43014
|
}
|
|
43015
|
-
if (
|
|
43015
|
+
if (nt(this.dialogForm)) {
|
|
43016
43016
|
e.preventDefault(), e.stopPropagation(), this.confirmPopover.show();
|
|
43017
43017
|
return;
|
|
43018
43018
|
}
|
|
@@ -43041,7 +43041,7 @@ var ri = Q, ii = r`:host{display:block}.editor{gap:var(--cx-spacing-small);flex-
|
|
|
43041
43041
|
}
|
|
43042
43042
|
handleAppearanceChange(e) {
|
|
43043
43043
|
let t = e.target.value, n = { appearance: t };
|
|
43044
|
-
t ===
|
|
43044
|
+
t === un.LabelOnly && (n.icon = ""), this.updateEditedItem(n);
|
|
43045
43045
|
}
|
|
43046
43046
|
handleIconChange(e) {
|
|
43047
43047
|
let t = e.target;
|
|
@@ -43125,8 +43125,8 @@ var ri = Q, ii = r`:host{display:block}.editor{gap:var(--cx-spacing-small);flex-
|
|
|
43125
43125
|
createNewButton() {
|
|
43126
43126
|
return {
|
|
43127
43127
|
accessLevel: "",
|
|
43128
|
-
action:
|
|
43129
|
-
appearance:
|
|
43128
|
+
action: I.OpenForm,
|
|
43129
|
+
appearance: un.LabelOnly,
|
|
43130
43130
|
completionMessage: "",
|
|
43131
43131
|
formId: "",
|
|
43132
43132
|
icon: "",
|
|
@@ -43141,7 +43141,7 @@ var ri = Q, ii = r`:host{display:block}.editor{gap:var(--cx-spacing-small);flex-
|
|
|
43141
43141
|
recordType: "",
|
|
43142
43142
|
spaceId: "",
|
|
43143
43143
|
tooltip: "",
|
|
43144
|
-
type:
|
|
43144
|
+
type: F.Secondary,
|
|
43145
43145
|
workflowId: ""
|
|
43146
43146
|
};
|
|
43147
43147
|
}
|
|
@@ -43152,14 +43152,14 @@ var ri = Q, ii = r`:host{display:block}.editor{gap:var(--cx-spacing-small);flex-
|
|
|
43152
43152
|
};
|
|
43153
43153
|
}
|
|
43154
43154
|
hasOtherPrimaryButton() {
|
|
43155
|
-
return this.editedItem ? this.data.some((e) => e.id !== this.editedItem.id && e.type ===
|
|
43155
|
+
return this.editedItem ? this.data.some((e) => e.id !== this.editedItem.id && e.type === F.Primary) : !1;
|
|
43156
43156
|
}
|
|
43157
43157
|
enforceSinglePrimary(e, t) {
|
|
43158
|
-
return e.find((e) => e.id === t)?.type ===
|
|
43159
|
-
let n = e.id === t, r = e.type ===
|
|
43158
|
+
return e.find((e) => e.id === t)?.type === F.Primary ? e.map((e) => {
|
|
43159
|
+
let n = e.id === t, r = e.type === F.Secondary;
|
|
43160
43160
|
return n || r ? e : {
|
|
43161
43161
|
...e,
|
|
43162
|
-
type:
|
|
43162
|
+
type: F.Secondary
|
|
43163
43163
|
};
|
|
43164
43164
|
}) : e;
|
|
43165
43165
|
}
|
|
@@ -43171,7 +43171,7 @@ var ri = Q, ii = r`:host{display:block}.editor{gap:var(--cx-spacing-small);flex-
|
|
|
43171
43171
|
}
|
|
43172
43172
|
renderTypeField() {
|
|
43173
43173
|
let e = this.hasOtherPrimaryButton();
|
|
43174
|
-
return n`<cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("type")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-radio-group data-testid="type-field" value=${e ?
|
|
43174
|
+
return n`<cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("type")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-radio-group data-testid="type-field" value=${e ? F.Secondary : this.editedItem.type} @cx-change=${this.handleTypeChange}><cx-radio ?disabled=${e} value=${F.Primary}>${this.localize.term("primary")}</cx-radio><cx-radio ?disabled=${e} value=${F.Secondary}>${this.localize.term("secondary")}</cx-radio></cx-radio-group></cx-grid-item>`;
|
|
43175
43175
|
}
|
|
43176
43176
|
renderLabelField() {
|
|
43177
43177
|
return n`<cx-grid-item xs="3" sm="1"><span class="field-label"><cx-typography variant="body2">${this.localize.term("label")}</cx-typography><span class="field-label__required" aria-hidden="true">*</span></span></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-input data-testid="label-field" name="label" required value=${this.editedItem.label} @cx-change=${this.handleLabelChange}></cx-input></cx-grid-item>`;
|
|
@@ -43180,43 +43180,43 @@ var ri = Q, ii = r`:host{display:block}.editor{gap:var(--cx-spacing-small);flex-
|
|
|
43180
43180
|
return n`<cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("tooltip")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-input data-testid="tooltip-field" value=${this.editedItem.tooltip} @cx-change=${this.handleTooltipChange}></cx-input></cx-grid-item>`;
|
|
43181
43181
|
}
|
|
43182
43182
|
renderAppearanceField() {
|
|
43183
|
-
return n`<cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("appearance")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-radio-group data-testid="appearance-field" value=${this.editedItem.appearance} @cx-change=${this.handleAppearanceChange}><cx-radio value=${
|
|
43183
|
+
return n`<cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("appearance")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-radio-group data-testid="appearance-field" value=${this.editedItem.appearance} @cx-change=${this.handleAppearanceChange}><cx-radio value=${un.LabelOnly}>${this.localize.term("labelOnly")}</cx-radio><cx-radio value=${un.IconAndLabel}>${this.localize.term("iconAndLabel")}</cx-radio><cx-radio value=${un.IconOnly}>${this.localize.term("iconOnly")}</cx-radio></cx-radio-group></cx-grid-item>`;
|
|
43184
43184
|
}
|
|
43185
43185
|
renderIconField() {
|
|
43186
|
-
return !this.editedItem || this.editedItem.appearance ===
|
|
43186
|
+
return !this.editedItem || this.editedItem.appearance === un.LabelOnly ? a : n`<cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("icon")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-icon-picker data-testid="icon-field" no-custom-option .value=${{
|
|
43187
43187
|
name: this.editedItem.icon ?? "",
|
|
43188
43188
|
src: ""
|
|
43189
43189
|
}} @cx-change=${this.handleIconChange}></cx-icon-picker></cx-grid-item>`;
|
|
43190
43190
|
}
|
|
43191
43191
|
renderActionField() {
|
|
43192
|
-
return n`<cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("actionOnClick")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-select data-testid="action-field" hoist value=${this.editedItem.action} @cx-change=${this.handleActionChange}><cx-option value=${
|
|
43192
|
+
return n`<cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("actionOnClick")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-select data-testid="action-field" hoist value=${this.editedItem.action} @cx-change=${this.handleActionChange}><cx-option value=${I.OpenForm}>${this.localize.term("openForm")}</cx-option><cx-option value=${I.CreateRecord}>${this.localize.term("createRecord")}</cx-option><cx-option value=${I.OpenLink}>${this.localize.term("openLink")}</cx-option><cx-option value=${I.OpenPage}>${this.localize.term("openPage")}</cx-option><cx-option value=${I.OpenSpace}>${this.localize.term("openSpace")}</cx-option><cx-option value=${I.ExecuteWorkflow}>${this.localize.term("executeWorkflow")}</cx-option></cx-select></cx-grid-item>`;
|
|
43193
43193
|
}
|
|
43194
43194
|
renderFormToOpenField() {
|
|
43195
|
-
return this.editedItem?.action ===
|
|
43195
|
+
return this.editedItem?.action === I.OpenForm ? n`<cx-grid-item xs="3" sm="1"><span class="field-label"><cx-typography variant="body2">${this.localize.term("formToOpen")}</cx-typography><span class="field-label__required" aria-hidden="true">*</span></span></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-dynamic-select data-testid="form-to-open-field" name="formId" hoist free-width placement="bottom-start" required .value=${this.editedItem.formId ?? ""} .api=${this.formApi} custom-change-event="cx-form-id-select" @cx-form-id-select=${this.handleFormIdChange}></cx-dynamic-select></cx-grid-item>` : a;
|
|
43196
43196
|
}
|
|
43197
43197
|
renderLinkField() {
|
|
43198
|
-
return this.editedItem?.action ===
|
|
43198
|
+
return this.editedItem?.action === I.OpenLink ? n`<cx-grid-item xs="3" sm="1"><span class="field-label"><cx-typography variant="body2">${this.localize.term("link")}</cx-typography><span class="field-label__required" aria-hidden="true">*</span></span></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-input data-testid="link-field" name="link" required value=${this.editedItem.link ?? ""} @cx-change=${this.handleLinkChange}></cx-input></cx-grid-item>` : a;
|
|
43199
43199
|
}
|
|
43200
43200
|
renderPageField() {
|
|
43201
|
-
return this.editedItem?.action ===
|
|
43201
|
+
return this.editedItem?.action === I.OpenPage ? n`<cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("page")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-dynamic-select data-testid="page-field" clearable free-width hoist placement="bottom-start" .api=${this.pageApi} .columns=${this.pageSelectColumns} .value=${this.editedItem.pageId ?? ""} @cx-change=${this.handlePageChange}></cx-dynamic-select></cx-grid-item>` : a;
|
|
43202
43202
|
}
|
|
43203
43203
|
renderRecordTypeAndSubTypeField() {
|
|
43204
|
-
return this.editedItem?.action ===
|
|
43204
|
+
return this.editedItem?.action === I.CreateRecord ? n`<cx-grid-item xs="3" sm="1"><span class="field-label"><cx-typography variant="body2">${this.localize.term("type")}</cx-typography><span class="field-label__required" aria-hidden="true">*</span></span></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-type-subtype-select data-testid="record-type-subtype-field" required value=${ur.encodeRowToken({
|
|
43205
43205
|
subtype: this.editedItem.recordSubType ?? "",
|
|
43206
43206
|
type: this.editedItem.recordType ?? ""
|
|
43207
43207
|
})} .options=${this.typeSubtypeOptions} @cx-change=${this.handleRecordTypeSubtypeChange}></cx-type-subtype-select></cx-grid-item>` : a;
|
|
43208
43208
|
}
|
|
43209
43209
|
renderSpaceField() {
|
|
43210
|
-
return this.editedItem?.action ===
|
|
43210
|
+
return this.editedItem?.action === I.OpenSpace ? n`<cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("space")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-dynamic-select data-testid="space-field" hoist free-width placement="bottom-start" .value=${this.editedItem.spaceId ?? ""} .api=${this.spaceApi} custom-change-event="cx-space-id-select" @cx-space-id-select=${this.handleSpaceIdChange}></cx-dynamic-select></cx-grid-item>` : a;
|
|
43211
43211
|
}
|
|
43212
43212
|
renderOpenInNewTabField() {
|
|
43213
|
-
return this.editedItem?.action ===
|
|
43213
|
+
return this.editedItem?.action === I.OpenLink ? n`<cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("openInNewTab")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-checkbox data-testid="open-in-new-tab-field" ?checked=${this.editedItem.openInNewTab ?? !1} @cx-change=${this.handleOpenInNewTabChange}></cx-checkbox></cx-grid-item>` : a;
|
|
43214
43214
|
}
|
|
43215
43215
|
renderConfigureWorkflowButton() {
|
|
43216
|
-
return this.editedItem?.action ===
|
|
43216
|
+
return this.editedItem?.action === I.ExecuteWorkflow ? n`<cx-grid-item xs="3" sm="1"></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-button data-testid="configure-workflow-button" variant="default" size="medium" @click=${this.handleConfigureWorkflowClick}><cx-icon slot="prefix" name="settings" size="small"></cx-icon>${this.localize.term("configure")}</cx-button></cx-grid-item>` : a;
|
|
43217
43217
|
}
|
|
43218
43218
|
renderCompletionMessageField() {
|
|
43219
|
-
return this.editedItem?.action ===
|
|
43219
|
+
return this.editedItem?.action === I.ExecuteWorkflow ? n`<cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("completionMessage")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-input data-testid="completion-message-field" aria-label=${this.localize.term("completionMessage")} placeholder=${this.localize.term("completionMessagePlaceholder")} value=${this.editedItem.completionMessage ?? ""} @cx-change=${this.handleCompletionMessageChange}></cx-input></cx-grid-item>` : a;
|
|
43220
43220
|
}
|
|
43221
43221
|
renderAccessLevelField() {
|
|
43222
43222
|
return n`<cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("levelOfAccess")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-dynamic-select data-testid="access-level-field" hoist free-width placement="bottom-start" .value=${this.editedItem.accessLevel} .api=${this.accessLevelApi} custom-change-event="cx-access-level-select" @cx-access-level-select=${this.handleAccessLevelChange}></cx-dynamic-select></cx-grid-item>`;
|
|
@@ -43246,7 +43246,7 @@ var ri = Q, ii = r`:host{display:block}.editor{gap:var(--cx-spacing-small);flex-
|
|
|
43246
43246
|
render() {
|
|
43247
43247
|
let e = this.isAdding ? this.localize.term("newCustomButton") : this.localize.term("editCustomButton");
|
|
43248
43248
|
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=${Be.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()}
|
|
43249
|
-
${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=${Be.Both} buttons-direction=${
|
|
43249
|
+
${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=${Be.Both} buttons-direction=${vt.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>`;
|
|
43250
43250
|
}
|
|
43251
43251
|
};
|
|
43252
43252
|
l([s({
|
|
@@ -43273,7 +43273,7 @@ l([s({
|
|
|
43273
43273
|
}), 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({
|
|
43274
43274
|
attribute: "on-configure-workflow",
|
|
43275
43275
|
type: Function
|
|
43276
|
-
}), 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",
|
|
43276
|
+
}), 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", yt === void 0 ? Object : yt)], $.prototype, "confirmPopover", void 0), l([
|
|
43277
43277
|
g("editedItem"),
|
|
43278
43278
|
u("design:type", Function),
|
|
43279
43279
|
u("design:paramtypes", []),
|