@orangelogic/design-system 2.60.0 → 2.61.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/apps/cortex/src/types.d.ts +2 -0
- package/library/chunks/_baseRest.ClTMQtN1.js +67 -0
- package/library/chunks/{_baseUniq.BUihBa8c.js → _baseUniq.Df-fLIBx.js} +53 -56
- package/library/chunks/{amazon_s3.DeaMdPPn.js → amazon_s3.BEMtqafk.js} +1 -1
- package/library/chunks/animate.El-MpOws.js +37 -0
- package/library/chunks/animation-registry.HmpwNuGH.js +34 -0
- package/library/chunks/{animation.B7d72NVK.js → animation.DfUHRQry.js} +10 -8
- package/library/chunks/array.DCtvHiLS.js +81 -0
- package/library/chunks/asset.CG_yXtWK.js +288 -0
- package/library/chunks/{browser.Va59Ix3P.js → browser.BHOCIF_A.js} +18 -16
- package/library/chunks/{button.CtCSNRB3.js → button.P71VJ5xh.js} +75 -74
- package/library/chunks/{button.styles.C8AIO8fd.js → button.styles.Dl5IQLHU.js} +1 -1
- package/library/chunks/{capitalize.CNStXZBq.js → capitalize.WSkCXkNE.js} +1 -1
- package/library/chunks/{chatbot.sm4Rph1v.js → chatbot.BmpIu59L.js} +2 -2
- package/library/chunks/{class-map.CoZTSvbM.js → class-map.BiVq-cVR.js} +1 -1
- package/library/chunks/{color-swatch-group.qJevXs50.js → color-swatch-group.DlLmydlB.js} +116 -127
- package/library/chunks/color-swatch.Bpb_hW2H.js +407 -0
- package/library/chunks/color.vLD2sNTs.js +164 -0
- package/library/chunks/{component.styles.CI-v8BZa.js → component.styles.DMSLciL5.js} +1 -1
- package/library/chunks/{confirm-popover.D2TF1x6K.js → confirm-popover.C1uA36JR.js} +15 -13
- package/library/chunks/{content-builder.WranV3P4.js → content-builder.Bf7kqzDI.js} +1 -1
- package/library/chunks/converters.DkDtLstb.js +11 -0
- package/library/chunks/{cropper.aA0v16xS.js → cropper.BraEEykE.js} +5004 -5024
- package/library/chunks/custom-element.L4WJXn1j.js +14 -0
- package/library/chunks/debounce.DaHuiSGU.js +15 -0
- package/library/chunks/{default-value.CIKAvD5l.js → default-value.COZopaet.js} +1 -1
- package/library/chunks/{dialog.B1TORO6S.js → dialog.C_75RVVz.js} +52 -49
- package/library/chunks/{directive-helpers.DBHob-_L.js → directive-helpers.Dm4rc594.js} +1 -1
- package/library/chunks/dom.CZrJ64Dm.js +92 -0
- package/library/chunks/{dot-pagination.8f2oX_ge.js → dot-pagination.CoCIJsHC.js} +24 -22
- package/library/chunks/{endpoints.BgyupJys.js → endpoints.B7lcoc1N.js} +1 -3
- package/library/chunks/{file-on-demand.Cwgabdyw.js → file-on-demand.B2jNilAj.js} +1829 -1544
- package/library/chunks/{folder-select.DiWCwR-T.js → folder-select.CSEQxIXF.js} +380 -255
- package/library/chunks/{form-control.styles.NE2Q-quE.js → form-control.styles.CUGhvlfT.js} +1 -1
- package/library/chunks/{form.B8u0ywni.js → form.CO12-VK0.js} +1 -1
- package/library/chunks/{guard.BDP4A85K.js → guard.D4axKaMo.js} +1 -1
- package/library/chunks/{header.B_FD8uLt.js → header.Bd3G0-oA.js} +11 -9
- package/library/chunks/{hub-connection.CxfaT11o.js → hub-connection.BxT2b7Nq.js} +4 -3
- package/library/chunks/{i18n.BP2FRO1v.js → i18n.DrzK7TPf.js} +54 -7
- package/library/chunks/identity.ByMq8VxU.js +6 -0
- package/library/chunks/{if-defined.MfEgpxEN.js → if-defined.BRoBj_Rp.js} +1 -1
- package/library/chunks/{iframe.DZm7FiCl.js → iframe.UCj6Ze2A.js} +18 -16
- package/library/chunks/{image.Ycf8RudS.js → image.DZCRhE3G.js} +82 -79
- package/library/chunks/image.mbpyiQpQ.js +82 -0
- package/library/chunks/index.S0wy3rzm.js +373 -0
- package/library/chunks/isObjectLike.D3cpZO39.js +81 -0
- package/library/chunks/{isSymbol.L0C2ND_U.js → isSymbol.huJ_Cvxt.js} +1 -1
- package/library/chunks/lib-cortex-element.CVMmyPMC.js +146 -0
- package/library/chunks/{list-editor.COkw5JKG.js → list-editor.CrLntuM7.js} +75 -79
- package/library/chunks/{custom-element.vnXBMQxc.js → lit-element.jLBm65_O.js} +123 -277
- package/library/chunks/{live.LdB9xEhp.js → live.SCz6M8Gs.js} +2 -2
- package/library/chunks/{mailchimp.BjbPJfd-.js → mailchimp.Bs6uJVsf.js} +1 -1
- package/library/chunks/{modal.BqNLxgs1.js → modal.U1QltQKe.js} +25 -19
- package/library/chunks/{option.D9KJhzHs.js → option.D1u5-cTt.js} +21 -19
- package/library/chunks/{orangelogic.BgbQXkBv.js → orangelogic.TdFfoPUN.js} +1 -1
- package/library/chunks/{overlayscrollbars.aFuRG5Rs.js → overlayscrollbars.XhGWx9Zk.js} +1 -1
- package/library/chunks/{pagination.C2FN4fmO.js → pagination.BI3LONVU.js} +17 -15
- package/library/chunks/{ref.BaCjlzLO.js → ref.bzeTdX0K.js} +2 -2
- package/library/chunks/{repeat.CauKaXyy.js → repeat.DbF2p5ae.js} +2 -2
- package/library/chunks/responsive.CA6dcNiM.js +17 -0
- package/library/chunks/{scroll.DwPiX2Ox.js → scroll.xtO5yojm.js} +3 -2
- package/library/chunks/{slot.DJLm4Dig.js → slot.j5oheLJC.js} +12 -4
- package/library/chunks/{state.Cw55xXlb.js → state.CSDxrqLd.js} +1 -1
- package/library/chunks/{static.BjNkqt7_.js → static.UA3G1Deq.js} +1 -1
- package/library/chunks/string.Cp_XNbnV.js +160 -0
- package/library/chunks/{style-map.CZovMmo_.js → style-map.llVFPd__.js} +1 -1
- package/library/chunks/{tab-group.5fLnWflv.js → tab-group.DxSlcWK0.js} +20 -18
- package/library/chunks/{table.BAr8KKc6.js → table.CY-iMTWV.js} +457 -505
- package/library/chunks/template.CsJd8Pb_.js +20 -0
- package/library/chunks/time.D_uFZqqe.js +118 -0
- package/library/chunks/{toString.CL_lYXbK.js → toString.CRT5zqEU.js} +3 -3
- package/library/chunks/toast.BXNbwZV8.js +25 -0
- package/library/chunks/{tree.CUfvIDyA.js → tree.CNbrP8cY.js} +33 -36
- package/library/chunks/{typography.BFpl0WMA.js → typography.oDzoLbZS.js} +16 -14
- package/library/chunks/{unsafe-html.DyO9_Rsq.js → unsafe-html.Dff7-rCx.js} +1 -1
- package/library/chunks/url.LjsR2sB5.js +15 -0
- package/library/chunks/user-agent.D9aPuOyL.js +4 -0
- package/library/chunks/watch.q1sEjPWL.js +501 -0
- package/library/components/alert.js +38 -35
- package/library/components/animated-image.js +25 -23
- package/library/components/animation.js +7 -5
- package/library/components/array-line-clamp.d.ts +3 -0
- package/library/components/array-line-clamp.js +195 -0
- package/library/components/asset-link-format.js +223 -212
- package/library/components/atoms.js +164 -162
- package/library/components/avatar.js +28 -26
- package/library/components/badge.js +10 -8
- package/library/components/bicolor-picker.js +21 -19
- package/library/components/border-input-group.js +11 -9
- package/library/components/breadcrumb-item.js +14 -12
- package/library/components/breadcrumb.js +24 -22
- package/library/components/button-group.js +26 -24
- package/library/components/button.js +14 -13
- package/library/components/card.js +28 -19
- package/library/components/checkbox.js +29 -23
- package/library/components/color-picker.js +19 -17
- package/library/components/color-swatch-group.js +20 -17
- package/library/components/color-swatch.js +16 -13
- package/library/components/confirm-popover.js +11 -9
- package/library/components/copy-button.js +15 -13
- package/library/components/corner-position-input-group.js +13 -11
- package/library/components/cortex-element.d.ts +3 -0
- package/library/components/cortex-element.js +5 -0
- package/library/components/cropper.js +7 -5
- package/library/components/details.js +23 -20
- package/library/components/dialog.js +19 -16
- package/library/components/divider.js +13 -11
- package/library/components/dot-pagination.js +11 -9
- package/library/components/dot-status.js +10 -8
- package/library/components/drawer.js +63 -51
- package/library/components/dropdown.js +29 -26
- package/library/components/dynamic-select.js +12 -10
- package/library/components/element-clamp.js +28 -25
- package/library/components/file-on-demand.js +21 -20
- package/library/components/folder-select.js +12 -10
- package/library/components/format-bytes.js +11 -10
- package/library/components/format-date.js +11 -9
- package/library/components/format-number.js +16 -15
- package/library/components/format-time.js +118 -9
- package/library/components/grid-item.js +48 -46
- package/library/components/grid.js +31 -29
- package/library/components/header.js +10 -9
- package/library/components/hub-connection.js +6 -5
- package/library/components/icon-button.js +20 -18
- package/library/components/icon.js +17 -15
- package/library/components/iframe.js +10 -8
- package/library/components/image-comparer.js +27 -25
- package/library/components/image.js +14 -11
- package/library/components/include.js +26 -24
- package/library/components/input-group.js +15 -13
- package/library/components/input.js +23 -21
- package/library/components/line-clamp.js +12 -10
- package/library/components/list-editor.js +17 -15
- package/library/components/markdown.js +80 -78
- package/library/components/masonry.js +46 -44
- package/library/components/menu-item.js +151 -136
- package/library/components/menu-label.js +15 -13
- package/library/components/menu-section.js +18 -16
- package/library/components/menu.js +10 -8
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +12 -10
- package/library/components/option.js +10 -8
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +30 -28
- package/library/components/pagination.js +14 -12
- package/library/components/popup.js +3296 -9
- package/library/components/position-picker.js +12 -10
- package/library/components/progress-bar.js +13 -11
- package/library/components/progress-ring.js +15 -13
- package/library/components/qr-code.js +54 -52
- package/library/components/radio-button.js +19 -17
- package/library/components/radio-card.js +14 -12
- package/library/components/radio-group.js +20 -18
- package/library/components/radio.js +15 -13
- package/library/components/range.js +25 -23
- package/library/components/rating.js +17 -15
- package/library/components/relative-time.js +16 -14
- package/library/components/resize-observer.js +21 -19
- package/library/components/select.js +1442 -25
- package/library/components/shadow-input-group.js +19 -17
- package/library/components/share-option-list.js +20 -18
- package/library/components/sidebar.js +14 -12
- package/library/components/size-input-group.js +35 -33
- package/library/components/skeleton.js +12 -10
- package/library/components/space.js +12 -10
- package/library/components/spinner.js +17 -15
- package/library/components/split-panel.js +15 -13
- package/library/components/step.js +18 -16
- package/library/components/stepper-wizard.js +11 -9
- package/library/components/stepper.js +13 -11
- package/library/components/switch.js +21 -19
- package/library/components/tab-group.js +15 -13
- package/library/components/tab-panel.js +20 -18
- package/library/components/tab.js +18 -16
- package/library/components/table.js +69 -67
- package/library/components/tag.js +11 -9
- package/library/components/textarea.js +20 -18
- package/library/components/timecode.js +98 -8
- package/library/components/tooltip.js +24 -21
- package/library/components/tree-item.js +14 -11
- package/library/components/tree.js +12 -10
- package/library/components/typeface.js +13 -11
- package/library/components/types.js +15487 -15444
- package/library/components/typography.js +6 -4
- package/library/components/video.js +13 -11
- package/library/components/visually-hidden.js +15 -13
- package/library/events.d.ts +1 -0
- package/library/events.js +1 -0
- package/library/package.json +11 -2
- package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.d.ts +45 -0
- package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -0
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +7 -1
- package/library/packages/atoms/src/components/include/include.d.ts +1 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +0 -4
- package/library/packages/atoms/src/index.d.ts +1 -0
- package/library/packages/events/src/cx-file-on-demand-load-more.d.ts +8 -0
- package/library/packages/events/src/cx-file-on-demand-pin.d.ts +8 -0
- package/library/packages/events/src/cx-file-on-demand-unpin.d.ts +8 -0
- package/library/packages/events/src/cx-folder-select-search-term-change.d.ts +8 -0
- package/library/packages/events/src/cx-share-option-list-item-selected.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +6 -2
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
- package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
- package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +8 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +6 -1
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +3 -7
- package/library/packages/organisms/src/content-builder/styleController.d.ts +8 -8
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +80 -0
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.styles.d.ts +2 -0
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-pinned-status.ts/file-on-demand-pinned-status.d.ts +44 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +1 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +11 -18
- package/library/packages/organisms/src/file-on-demand/file-on-demand.utils.d.ts +6 -0
- package/library/packages/services/src/api/folder/folder.d.ts +4 -8
- package/library/packages/services/src/api/folder/folder.types.d.ts +2 -1
- package/library/packages/types/src/file-on-demand.d.ts +4 -0
- package/library/packages/types/src/folder-select.d.ts +9 -2
- package/library/packages/utils/src/custom-element/i18n.d.ts +40 -2
- package/library/packages/utils/src/drag-scroll/drag-scroll.d.ts +22 -0
- package/library/packages/utils/src/drag-scroll/index.d.ts +1 -0
- package/library/packages/utils/src/font/font.d.ts +26 -0
- package/library/packages/utils/src/font/index.d.ts +1 -0
- package/library/packages/utils/src/history-manager/history-manager.d.ts +13 -0
- package/library/packages/utils/src/history-manager/index.d.ts +1 -0
- package/library/packages/utils/src/index.d.ts +45 -0
- package/library/packages/utils/src/template/index.d.ts +1 -0
- package/library/packages/utils/src/template/template.d.ts +3 -0
- package/library/react-web-component.d.ts +418 -360
- package/library/utils.d.ts +1 -0
- package/library/utils.js +180 -0
- package/package.json +11 -2
- package/library/chunks/animation-registry.DavRkTTr.js +0 -69
- package/library/chunks/asset.Ba-CxnNM.js +0 -309
- package/library/chunks/color-swatch.DUe3iLLo.js +0 -558
- package/library/chunks/dom.C0OFx7ND.js +0 -78
- package/library/chunks/format-time.BW6-ZWCX.js +0 -226
- package/library/chunks/isObjectLike.z36Fu426.js +0 -34
- package/library/chunks/popup._w5T7x8f.js +0 -3307
- package/library/chunks/select.DfO4de04.js +0 -1441
- package/library/chunks/string.BCk3SmdZ.js +0 -144
- package/library/chunks/timecode.D7XTiQ_3.js +0 -105
- package/library/chunks/watch.BCJD77bD.js +0 -547
- package/library/packages/events/src/cx-load-more.d.ts +0 -8
|
@@ -1,37 +1,40 @@
|
|
|
1
|
-
import { C as _ } from "./button.
|
|
2
|
-
import { C as q, D as
|
|
3
|
-
import
|
|
1
|
+
import { C as _ } from "./button.P71VJ5xh.js";
|
|
2
|
+
import { C as q, D as G } from "./dialog.C_75RVVz.js";
|
|
3
|
+
import j from "../components/grid.js";
|
|
4
4
|
import R from "../components/grid-item.js";
|
|
5
5
|
import S from "../components/input.js";
|
|
6
6
|
import P from "../components/line-clamp.js";
|
|
7
7
|
import F from "../components/radio.js";
|
|
8
8
|
import B from "../components/radio-group.js";
|
|
9
9
|
import E from "../components/space.js";
|
|
10
|
-
import { C as K, H as U } from "./table.
|
|
11
|
-
import { C as L } from "./typography.
|
|
12
|
-
import {
|
|
13
|
-
import { c as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
10
|
+
import { C as K, H as U } from "./table.CY-iMTWV.js";
|
|
11
|
+
import { C as L } from "./typography.oDzoLbZS.js";
|
|
12
|
+
import { n as o, C as T } from "./lib-cortex-element.CVMmyPMC.js";
|
|
13
|
+
import { c as D } from "./component.styles.DMSLciL5.js";
|
|
14
|
+
import { c as z } from "./custom-element.L4WJXn1j.js";
|
|
15
|
+
import { d as H } from "./debounce.DaHuiSGU.js";
|
|
16
|
+
import { L as M } from "./i18n.DrzK7TPf.js";
|
|
17
|
+
import { w as g } from "./watch.q1sEjPWL.js";
|
|
17
18
|
import { g as V } from "./_commonjsHelpers.ByX85dGu.js";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
19
|
+
import { i as O, x as l } from "./lit-element.jLBm65_O.js";
|
|
20
|
+
import { r as b } from "./state.CSDxrqLd.js";
|
|
21
|
+
import { e as y } from "./query.BBf1UFkC.js";
|
|
20
22
|
import { r as W } from "./choose.BTbF6BAn.js";
|
|
21
|
-
import { e as J } from "./class-map.
|
|
23
|
+
import { e as J } from "./class-map.BiVq-cVR.js";
|
|
22
24
|
import { o as X } from "./map.D8heArFD.js";
|
|
23
|
-
import { c as x } from "./repeat.
|
|
24
|
-
import { n as
|
|
25
|
-
import { t as Y } from "./toString.
|
|
25
|
+
import { c as x } from "./repeat.DbF2p5ae.js";
|
|
26
|
+
import { n as N } from "./when.Dr1es41R.js";
|
|
27
|
+
import { t as Y } from "./toString.CRT5zqEU.js";
|
|
26
28
|
import Z from "../components/icon-button.js";
|
|
27
|
-
import { C as Q } from "./image.
|
|
28
|
-
import {
|
|
29
|
-
import { a as
|
|
30
|
-
import { A as v } from "./content-builder.
|
|
31
|
-
import { e as
|
|
32
|
-
|
|
29
|
+
import { C as Q } from "./image.DZCRhE3G.js";
|
|
30
|
+
import { a as ee, D as w } from "./asset.CG_yXtWK.js";
|
|
31
|
+
import { a as ae } from "./index.Cpamj0jB.js";
|
|
32
|
+
import { A as v } from "./content-builder.Bf7kqzDI.js";
|
|
33
|
+
import { e as te, t as I } from "./string.Cp_XNbnV.js";
|
|
34
|
+
import { t as ie } from "./toast.BXNbwZV8.js";
|
|
35
|
+
var A, k;
|
|
33
36
|
function ne() {
|
|
34
|
-
return k || (k = 1,
|
|
37
|
+
return k || (k = 1, A = {
|
|
35
38
|
aa: {
|
|
36
39
|
name: "Afar",
|
|
37
40
|
nativeName: "Afaraf"
|
|
@@ -764,31 +767,31 @@ function ne() {
|
|
|
764
767
|
name: "Zulu",
|
|
765
768
|
nativeName: "isiZulu"
|
|
766
769
|
}
|
|
767
|
-
}),
|
|
770
|
+
}), A;
|
|
768
771
|
}
|
|
769
|
-
var
|
|
772
|
+
var C, $;
|
|
770
773
|
function se() {
|
|
771
|
-
if ($) return
|
|
774
|
+
if ($) return C;
|
|
772
775
|
$ = 1;
|
|
773
776
|
const e = ne(), a = {}, t = {}, n = [], i = [], m = [];
|
|
774
777
|
for (const d in e) {
|
|
775
778
|
const { name: c, nativeName: h } = e[d];
|
|
776
779
|
a[d] = t[c.toLowerCase()] = t[h.toLowerCase()] = { code: d, name: c, nativeName: h }, n.push(d), i.push(c), m.push(h);
|
|
777
780
|
}
|
|
778
|
-
return
|
|
781
|
+
return C = class f {
|
|
779
782
|
static getLanguages(c = []) {
|
|
780
783
|
return c.map(
|
|
781
|
-
(h) =>
|
|
784
|
+
(h) => f.validate(h) ? Object.assign({}, a[h]) : { code: h, name: "", nativeName: "" }
|
|
782
785
|
);
|
|
783
786
|
}
|
|
784
787
|
static getName(c) {
|
|
785
|
-
return
|
|
788
|
+
return f.validate(c) ? e[c].name : "";
|
|
786
789
|
}
|
|
787
790
|
static getAllNames() {
|
|
788
791
|
return i.slice();
|
|
789
792
|
}
|
|
790
793
|
static getNativeName(c) {
|
|
791
|
-
return
|
|
794
|
+
return f.validate(c) ? e[c].nativeName : "";
|
|
792
795
|
}
|
|
793
796
|
static getAllNativeNames() {
|
|
794
797
|
return m.slice();
|
|
@@ -802,7 +805,7 @@ function se() {
|
|
|
802
805
|
static validate(c) {
|
|
803
806
|
return e.hasOwnProperty(c);
|
|
804
807
|
}
|
|
805
|
-
},
|
|
808
|
+
}, C;
|
|
806
809
|
}
|
|
807
810
|
var re = se();
|
|
808
811
|
const oe = /* @__PURE__ */ V(re);
|
|
@@ -811,7 +814,7 @@ function me(e) {
|
|
|
811
814
|
var a = ++le;
|
|
812
815
|
return Y(e) + a;
|
|
813
816
|
}
|
|
814
|
-
const ce =
|
|
817
|
+
const ce = O`
|
|
815
818
|
:host {
|
|
816
819
|
isolation: isolate;
|
|
817
820
|
}
|
|
@@ -855,9 +858,9 @@ var de = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, p = (e, a,
|
|
|
855
858
|
(d = e[m]) && (i = (n ? d(a, t, i) : d(i)) || i);
|
|
856
859
|
return n && i && de(a, t, i), i;
|
|
857
860
|
};
|
|
858
|
-
let u = class extends
|
|
861
|
+
let u = class extends T {
|
|
859
862
|
constructor() {
|
|
860
|
-
super(...arguments), this.localize = new
|
|
863
|
+
super(...arguments), this.localize = new M(this), this.value = "", this.name = "", this.type = [v.Image], this.multiple = !1, this.accepts = [], this.required = !1, this.disabled = !1, this.onRequestAsset = void 0, this.apiGetAssets = ee;
|
|
861
864
|
}
|
|
862
865
|
async handleRequestAssetClick() {
|
|
863
866
|
if (this.onRequestAsset)
|
|
@@ -873,9 +876,9 @@ let u = class extends z {
|
|
|
873
876
|
this.accepts
|
|
874
877
|
);
|
|
875
878
|
if (this.accepts.length > 0 && Object.values(e).some(
|
|
876
|
-
(t) => !this.accepts.includes(
|
|
879
|
+
(t) => !this.accepts.includes(te(t.src) ?? "")
|
|
877
880
|
))
|
|
878
|
-
|
|
881
|
+
ie(this.localize.term("nonAcceptedExtension", this.accepts), {
|
|
879
882
|
notificationType: "warning"
|
|
880
883
|
});
|
|
881
884
|
else if (this.multiple) {
|
|
@@ -886,10 +889,10 @@ let u = class extends z {
|
|
|
886
889
|
} else {
|
|
887
890
|
const { id: t, name: n, src: i, type: m } = e;
|
|
888
891
|
let d = i;
|
|
889
|
-
m === v.Audio && (d = (await
|
|
890
|
-
extraFields: [
|
|
892
|
+
m === v.Audio && (d = (await this.apiGetAssets({
|
|
893
|
+
extraFields: [w],
|
|
891
894
|
recordIds: [t]
|
|
892
|
-
})).items[0]?.[
|
|
895
|
+
})).items[0]?.[w]), d && this.emit("cx-content-builder-asset-select", {
|
|
893
896
|
detail: {
|
|
894
897
|
id: t,
|
|
895
898
|
name: n,
|
|
@@ -927,31 +930,24 @@ let u = class extends z {
|
|
|
927
930
|
src=${this.value}
|
|
928
931
|
alt=${this.name}
|
|
929
932
|
width="200px"
|
|
930
|
-
object-fit=${
|
|
933
|
+
object-fit=${ae.Cover}
|
|
931
934
|
></cx-image>`;
|
|
932
935
|
if (this.name && this.acceptsType(v.Video))
|
|
933
936
|
return l`
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
937
|
+
<cx-typography variant="body-2">
|
|
938
|
+
${I(this.name, 30, 11, 11)}
|
|
939
|
+
</cx-typography>
|
|
940
|
+
`;
|
|
941
|
+
if (this.name && (this.acceptsType(v.Other) || this.acceptsType(v.All))) {
|
|
938
942
|
const e = this.name.split(",");
|
|
939
943
|
return l`<cx-typography variant="body-2">
|
|
940
|
-
${
|
|
941
|
-
|
|
942
|
-
${g(
|
|
944
|
+
${I(e[0], 30, 11, 11)}
|
|
945
|
+
${N(
|
|
943
946
|
e.length > 1,
|
|
944
947
|
() => l` ${this.localize.term("andOthers", e.length - 1)}`
|
|
945
948
|
)}
|
|
946
949
|
</cx-typography>`;
|
|
947
950
|
}
|
|
948
|
-
if (this.name && this.acceptsType(v.All)) {
|
|
949
|
-
const e = this.name.split(",");
|
|
950
|
-
return l`<cx-typography variant="body-2">
|
|
951
|
-
${A(e[0], 30, 11, 11)}
|
|
952
|
-
${g(e.length > 1, () => l` ${this.localize.term("andOthers", e.length - 1)}`)}
|
|
953
|
-
</cx-typography>`;
|
|
954
|
-
}
|
|
955
951
|
return null;
|
|
956
952
|
}
|
|
957
953
|
render() {
|
|
@@ -964,7 +960,7 @@ let u = class extends z {
|
|
|
964
960
|
align-items=${this.acceptsType(v.Image) ? "flex-start" : "center"}
|
|
965
961
|
>
|
|
966
962
|
${this.renderAssetPreview()}
|
|
967
|
-
${
|
|
963
|
+
${N(
|
|
968
964
|
!this.disabled,
|
|
969
965
|
() => l`
|
|
970
966
|
<div class="asset-picker__button-container">
|
|
@@ -984,7 +980,7 @@ let u = class extends z {
|
|
|
984
980
|
${this.localize.term("choose")}
|
|
985
981
|
</cx-button>
|
|
986
982
|
</div>
|
|
987
|
-
${
|
|
983
|
+
${N(
|
|
988
984
|
this.value,
|
|
989
985
|
() => l`<cx-icon-button
|
|
990
986
|
label=${this.localize.term("delete")}
|
|
@@ -999,7 +995,7 @@ let u = class extends z {
|
|
|
999
995
|
`;
|
|
1000
996
|
}
|
|
1001
997
|
};
|
|
1002
|
-
u.styles = [
|
|
998
|
+
u.styles = [D, ce];
|
|
1003
999
|
u.dependencies = {
|
|
1004
1000
|
"cx-button": _,
|
|
1005
1001
|
"cx-icon-button": Z,
|
|
@@ -1009,10 +1005,10 @@ u.dependencies = {
|
|
|
1009
1005
|
"cx-typography": L
|
|
1010
1006
|
};
|
|
1011
1007
|
p([
|
|
1012
|
-
|
|
1008
|
+
y(".asset-picker__button")
|
|
1013
1009
|
], u.prototype, "buttonEl", 2);
|
|
1014
1010
|
p([
|
|
1015
|
-
|
|
1011
|
+
y(".asset-picker__input")
|
|
1016
1012
|
], u.prototype, "inputEl", 2);
|
|
1017
1013
|
p([
|
|
1018
1014
|
o({ reflect: !0, type: String })
|
|
@@ -1051,12 +1047,12 @@ p([
|
|
|
1051
1047
|
o({ attribute: "on-request-asset", type: Function })
|
|
1052
1048
|
], u.prototype, "onRequestAsset", 2);
|
|
1053
1049
|
p([
|
|
1054
|
-
|
|
1050
|
+
g("value")
|
|
1055
1051
|
], u.prototype, "handleValueChange", 1);
|
|
1056
1052
|
u = p([
|
|
1057
|
-
|
|
1053
|
+
z("cx-asset-picker")
|
|
1058
1054
|
], u);
|
|
1059
|
-
const pe =
|
|
1055
|
+
const pe = O`
|
|
1060
1056
|
:host {
|
|
1061
1057
|
--overridden-min-height: var(--min-height, 160px);
|
|
1062
1058
|
--overridden-max-height: var(--max-height, 260px);
|
|
@@ -1113,9 +1109,9 @@ var he = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, r = (e, a,
|
|
|
1113
1109
|
const ge = {
|
|
1114
1110
|
resizable: !1
|
|
1115
1111
|
};
|
|
1116
|
-
let s = class extends
|
|
1112
|
+
let s = class extends T {
|
|
1117
1113
|
constructor() {
|
|
1118
|
-
super(...arguments), this.localize = new
|
|
1114
|
+
super(...arguments), this.localize = new M(this), this.data = [], this.canAdd = !1, this.addDialogLabel = "", this.editDialogLabel = "", this.displayField = "", this.descriptionField = "", this.addItemText = "", this.sampleItem = {}, this.useEvents = !1, this.sortable = !1, this.loadingEvent = "", this.loadingItemIndex = void 0, this.columns = [], this.noHeader = !1, this.rowHeight = 40, this.defaultLanguage = "", this.supportedLanguages = ["en"], this.boundary = document.body, this.onRequestAsset = void 0, this.editedItem = null, this.isAdding = !1, this.columnsMap = {}, this.sortedEntries = [], this.translatableControls = [], this.disableCloseConfigDialog = !1, this.hoverMenu = {
|
|
1119
1115
|
data: [
|
|
1120
1116
|
{
|
|
1121
1117
|
icon: "create",
|
|
@@ -1399,7 +1395,7 @@ let s = class extends z {
|
|
|
1399
1395
|
<cx-dialog
|
|
1400
1396
|
part="dialog"
|
|
1401
1397
|
class="list-editor__dialog"
|
|
1402
|
-
divider-position=${
|
|
1398
|
+
divider-position=${G.Footer}
|
|
1403
1399
|
use-overlay-scrollbar
|
|
1404
1400
|
strategy="fixed"
|
|
1405
1401
|
?open=${!!this.editedItem}
|
|
@@ -1410,7 +1406,7 @@ let s = class extends z {
|
|
|
1410
1406
|
<cx-typography variant="h4">
|
|
1411
1407
|
${this.isAdding ? this.addDialogLabel : this.editDialogLabel}
|
|
1412
1408
|
</cx-typography>
|
|
1413
|
-
${
|
|
1409
|
+
${N(
|
|
1414
1410
|
!this.isAdding && this.editedItem?.[this.displayField],
|
|
1415
1411
|
() => l`<cx-typography variant="body3">
|
|
1416
1412
|
<cx-line-clamp lines="1">
|
|
@@ -1419,7 +1415,7 @@ let s = class extends z {
|
|
|
1419
1415
|
</cx-typography>`
|
|
1420
1416
|
)}
|
|
1421
1417
|
</cx-space>
|
|
1422
|
-
${
|
|
1418
|
+
${N(
|
|
1423
1419
|
this.tabs.length >= 1,
|
|
1424
1420
|
() => l`
|
|
1425
1421
|
<cx-tab-group
|
|
@@ -1485,7 +1481,7 @@ let s = class extends z {
|
|
|
1485
1481
|
</cx-space>
|
|
1486
1482
|
</cx-dialog>
|
|
1487
1483
|
</div>
|
|
1488
|
-
${
|
|
1484
|
+
${N(
|
|
1489
1485
|
this.canAdd,
|
|
1490
1486
|
() => l`
|
|
1491
1487
|
<cx-button
|
|
@@ -1502,12 +1498,12 @@ let s = class extends z {
|
|
|
1502
1498
|
`;
|
|
1503
1499
|
}
|
|
1504
1500
|
};
|
|
1505
|
-
s.styles = [
|
|
1501
|
+
s.styles = [D, pe];
|
|
1506
1502
|
s.dependencies = {
|
|
1507
1503
|
"cx-asset-picker": u,
|
|
1508
1504
|
"cx-button": _,
|
|
1509
1505
|
"cx-dialog": q,
|
|
1510
|
-
"cx-grid":
|
|
1506
|
+
"cx-grid": j,
|
|
1511
1507
|
"cx-grid-item": R,
|
|
1512
1508
|
"cx-input": S,
|
|
1513
1509
|
"cx-line-clamp": P,
|
|
@@ -1518,10 +1514,10 @@ s.dependencies = {
|
|
|
1518
1514
|
"cx-typography": L
|
|
1519
1515
|
};
|
|
1520
1516
|
r([
|
|
1521
|
-
|
|
1517
|
+
y("cx-dialog")
|
|
1522
1518
|
], s.prototype, "dialog", 2);
|
|
1523
1519
|
r([
|
|
1524
|
-
|
|
1520
|
+
y("cx-table")
|
|
1525
1521
|
], s.prototype, "table", 2);
|
|
1526
1522
|
r([
|
|
1527
1523
|
o({
|
|
@@ -1618,20 +1614,20 @@ r([
|
|
|
1618
1614
|
b()
|
|
1619
1615
|
], s.prototype, "translatableControls", 2);
|
|
1620
1616
|
r([
|
|
1621
|
-
|
|
1622
|
-
|
|
1617
|
+
g("columns"),
|
|
1618
|
+
g("supportedLanguages", { waitUntilFirstUpdate: !0 })
|
|
1623
1619
|
], s.prototype, "handleColumnsChange", 1);
|
|
1624
1620
|
r([
|
|
1625
|
-
|
|
1626
|
-
|
|
1621
|
+
g("editedItem"),
|
|
1622
|
+
g("columns", { waitUntilFirstUpdate: !0 })
|
|
1627
1623
|
], s.prototype, "handleEditedItemChange", 1);
|
|
1628
1624
|
r([
|
|
1629
|
-
|
|
1630
|
-
|
|
1625
|
+
g("loadingEvent", { waitUntilFirstUpdate: !0 }),
|
|
1626
|
+
g("loadingItemIndex", { waitUntilFirstUpdate: !0 }),
|
|
1631
1627
|
H(10)
|
|
1632
1628
|
], s.prototype, "handleLoadingEventChange", 1);
|
|
1633
1629
|
s = r([
|
|
1634
|
-
|
|
1630
|
+
z("cx-list-editor")
|
|
1635
1631
|
], s);
|
|
1636
1632
|
export {
|
|
1637
1633
|
s as C,
|