@orangelogic/design-system 4.56.0 → 4.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/chunks/{array-line-clamp.sxTWf9Iz.js → array-line-clamp.9myPWg1y.js} +2 -2
- package/library/chunks/{asset-link-format.b1PRwN5q.js → asset-link-format.zO0t0oA3.js} +237 -208
- package/library/chunks/{bicolor-picker.BEs23Gs0.js → bicolor-picker.DZY5PP24.js} +1 -1
- package/library/chunks/{block-width.C-Etq9nn.js → block-width.Dbc3rT3Y.js} +50 -50
- package/library/chunks/{border-input-group.dw1516Kf.js → border-input-group.BymzNWba.js} +1 -1
- package/library/chunks/{browser.Ct4pHP9I.js → browser.gIznFIix.js} +4 -1
- package/library/chunks/{color-picker.D38VZ1JB.js → color-picker.Ch5-Ylm8.js} +4 -4
- package/library/chunks/{color-swatch-group.D4cJJmvA.js → color-swatch-group.Bcw5aIqG.js} +404 -401
- package/library/chunks/{color-swatch.PNkiDQx5.js → color-swatch.DZG975M_.js} +2 -2
- package/library/chunks/{config-manager.DncPuD4f.js → config-manager.BfkCA0F3.js} +21 -21
- package/library/chunks/{configs-controller.0FoXQnJn.js → configs-controller.uTcM4iX4.js} +11 -11
- package/library/chunks/{confirm-popover.BHKVBESN.js → confirm-popover.DUrgLQjC.js} +2 -2
- package/library/chunks/{copy-button.CQO3gEFh.js → copy-button.CqqKJEh3.js} +1 -1
- package/library/chunks/{corner-position-input-group.BzYJD8zG.js → corner-position-input-group.mrOiz-0k.js} +1 -1
- package/library/chunks/{cropper.BRsN8h2t.js → cropper.CNmQt-sa.js} +10 -12
- package/library/chunks/{dialog.QENKQ3wO.js → dialog.BcCTa8Bd.js} +1 -1
- package/library/chunks/{document-viewer.CSSI__TI.js → document-viewer.Ch5h5Wte.js} +7 -7
- package/library/chunks/{dot-pagination.8huF7K9E.js → dot-pagination.C1C6NG8d.js} +1 -1
- package/library/chunks/{dropdown.BTQ07f9L.js → dropdown.DDQXJMth.js} +2 -2
- package/library/chunks/{dynamic-select.BEKv0lpx.js → dynamic-select.Dwcz7UjN.js} +1 -1
- package/library/chunks/{file-on-demand.DNVrOUTH.js → file-on-demand.BmRBmyyq.js} +8 -8
- package/library/chunks/{folder-select.B16qEGcG.js → folder-select.Buoz3ioX.js} +4 -4
- package/library/chunks/{header.B11-tX9H.js → header.CowQINf-.js} +1 -1
- package/library/chunks/{image.alhsAc_i.js → image.-lgb634-.js} +1 -1
- package/library/chunks/{line-clamp.BYoTFCvo.js → line-clamp.SD3U021K.js} +2 -2
- package/library/chunks/{masonry.B8EOiLu0.js → masonry.BxNeClR6.js} +2 -2
- package/library/chunks/{menu-item.Z7pkEEyC.js → menu-item.CtFgeM0H.js} +1 -1
- package/library/chunks/{menu.Dlt4EsSJ.js → menu.BEVPnl3Y.js} +1 -1
- package/library/chunks/{pagination.ATa3enAG.js → pagination.DULLxssA.js} +2 -2
- package/library/chunks/{popup.LaRE0W3Q.js → popup.w4ZU3jI-.js} +4 -4
- package/library/chunks/{radio-card.BVkRnAT5.js → radio-card.BWutKj6E.js} +1 -1
- package/library/chunks/{range.BWrWIE6S.js → range.ObEMbygm.js} +1 -1
- package/library/chunks/{select.DJSXKV7u.js → select.S9rnkI_b.js} +3 -3
- package/library/chunks/{shadow-input-group.B_06ZQpb.js → shadow-input-group.B_W5gJ4u.js} +1 -1
- package/library/chunks/{share-option-list.BetSdhgh.js → share-option-list.DOaEypfQ.js} +1 -1
- package/library/chunks/{size-input-group.VZ4Yt8qW.js → size-input-group.DUyTc5na.js} +2 -2
- package/library/chunks/{src.DiLNsEca.js → src.D0Zj6Eo1.js} +26 -26
- package/library/chunks/{src.CgqvT9Zj.js → src.Dia365C9.js} +82 -82
- package/library/chunks/{step.CA3PQN8l.js → step.DoO31jfk.js} +2 -2
- package/library/chunks/{stepper-wizard.B72l6S-I.js → stepper-wizard.DgrCTDtq.js} +2 -2
- package/library/chunks/{stepper.DgoOS-k1.js → stepper.BhpFjenM.js} +1 -1
- package/library/chunks/{tab-group.DhX_Aowk.js → tab-group.kyiPblS9.js} +4 -4
- package/library/chunks/{tab.vGimW19a.js → tab.Cv-UuYM5.js} +1 -1
- package/library/chunks/{tag.Dr7Na8Kf.js → tag.Cq8m5pRP.js} +1 -1
- package/library/chunks/{tooltip.BpXJhnhh.js → tooltip.Cc02vm6M.js} +1 -1
- package/library/chunks/{tree.BEdI81wd.js → tree.XYIP-Ujw.js} +2 -2
- package/library/chunks/{typeface.CDjUSIt9.js → typeface.eo-n8r2R.js} +1 -1
- package/library/chunks/{video.Dbzi5Pxz.js → video.B0vHXehv.js} +3 -3
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +29 -29
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/color-swatch.js +1 -1
- package/library/components/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/cropper.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/dropdown.js +1 -1
- package/library/components/dynamic-select.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +1 -1
- package/library/components/header.js +1 -1
- package/library/components/image.js +1 -1
- package/library/components/line-clamp.js +1 -1
- package/library/components/masonry.js +1 -1
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +14 -14
- package/library/components/organisms.js +3 -3
- package/library/components/pagination.js +1 -1
- package/library/components/popup.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/select.js +1 -1
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/size-input-group.js +1 -1
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/tab-group.js +1 -1
- package/library/components/tab.js +1 -1
- package/library/components/tag.js +1 -1
- package/library/components/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 +13812 -13812
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/hybrid/video-advanced/src/react/components/VideoEditor/VideoEditor.d.ts +1 -0
- package/library/packages/hybrid/video-advanced/src/react/plugins/Crop/Crop.d.ts +2 -0
- package/library/packages/hybrid/video-advanced/src/react/utils/browser.d.ts +1 -0
- package/library/packages/molecules/src/cropper/react/ReactCrop/ReactCrop.d.ts +1 -1
- package/library/packages/molecules/src/multi-select/components/board/board.utils.d.ts +0 -7
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +16 -1
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +8 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-resize/asset-link-format-resize.d.ts +7 -0
- package/library/packages/utils/src/browser/browser.d.ts +1 -0
- package/library/packages/utils/src/video/video.d.ts +1 -0
- package/library/utils.js +28 -28
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { t as o } from "./component.styles.0xM1ZmBs.js";
|
|
|
4
4
|
import { t as s } from "./custom-element.BEMYNDK1.js";
|
|
5
5
|
import { t as c } from "./style-map.DPGQIxip.js";
|
|
6
6
|
import { t as l } from "./space.Dd8jezXK.js";
|
|
7
|
-
import { t as u } from "./color-picker.
|
|
7
|
+
import { t as u } from "./color-picker.Ch5-Ylm8.js";
|
|
8
8
|
//#region ../../packages/molecules/src/bicolor-picker/bicolor-picker.styles.ts
|
|
9
9
|
var d = t``, f = class extends a {
|
|
10
10
|
constructor(...e) {
|
|
@@ -15,14 +15,14 @@ import { t as y } from "./when.BUskJLtZ.js";
|
|
|
15
15
|
import { t as ie } from "./icon.CeQpEaQz.js";
|
|
16
16
|
import { t as ae } from "./spinner.Bv06U7NJ.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.D0Zj6Eo1.js";
|
|
19
19
|
import { t as ce } from "./style-map.DPGQIxip.js";
|
|
20
20
|
import { t as le } from "./debounce.Ci-xdsHE.js";
|
|
21
21
|
import { t as b } from "./button.BjijpxeK.js";
|
|
22
22
|
import { O as x, r as ue, w as de } from "./string.9yahdkB8.js";
|
|
23
23
|
import { t as fe } from "./form.D_eBa3AQ.js";
|
|
24
|
-
import { t as pe } from "./tooltip.
|
|
25
|
-
import { t as me } from "./line-clamp.
|
|
24
|
+
import { t as pe } from "./tooltip.Cc02vm6M.js";
|
|
25
|
+
import { t as me } from "./line-clamp.SD3U021K.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,55 +33,55 @@ import { t as be } from "./checkbox.BdSpQlwf.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 Ce } from "./dropdown.
|
|
36
|
+
import { t as Ce } from "./dropdown.DDQXJMth.js";
|
|
37
37
|
import { t as we } from "./tabbable.BSwpOHdm.js";
|
|
38
38
|
import { t as w } from "./input.kTjqEyC8.js";
|
|
39
|
-
import { t as Te } from "./menu.
|
|
40
|
-
import { t as Ee } from "./menu-item.
|
|
39
|
+
import { t as Te } from "./menu.BEVPnl3Y.js";
|
|
40
|
+
import { t as Ee } from "./menu-item.CtFgeM0H.js";
|
|
41
41
|
import { n as De, r as Oe, t as ke } from "./ref.CU1NC5AM.js";
|
|
42
42
|
import { t as Ae } from "./textarea.CHSZI8vt.js";
|
|
43
43
|
import { n as je, t as T } from "./option.DWE0tark.js";
|
|
44
44
|
import { t as E } from "./space.Dd8jezXK.js";
|
|
45
|
-
import { t as D } from "./select.
|
|
46
|
-
import { t as Me } from "./tab.
|
|
47
|
-
import { t as Ne } from "./tab-group.
|
|
45
|
+
import { t as D } from "./select.S9rnkI_b.js";
|
|
46
|
+
import { t as Me } from "./tab.Cv-UuYM5.js";
|
|
47
|
+
import { t as Ne } from "./tab-group.kyiPblS9.js";
|
|
48
48
|
import { t as Pe } from "./map.ByDuLduF.js";
|
|
49
49
|
import { t as Fe } from "./tab-panel.BxeoKuSv.js";
|
|
50
50
|
import { t as Ie } from "./visually-hidden.Bv3SInZp.js";
|
|
51
|
-
import { t as Le } from "./color-picker.
|
|
52
|
-
import {
|
|
53
|
-
import { a as Ye, i as Xe, n as Ze, o as Qe, r as $e, s as et, t as O } from "./dialog.
|
|
51
|
+
import { t as Le } from "./color-picker.Ch5-Ylm8.js";
|
|
52
|
+
import { C as Re, D as ze, E as Be, H as Ve, K as He, S as Ue, T as We, W as Ge, b as Ke, k as qe, z as Je } from "./src.Dia365C9.js";
|
|
53
|
+
import { a as Ye, i as Xe, n as Ze, o as Qe, r as $e, s as et, t as O } from "./dialog.BcCTa8Bd.js";
|
|
54
54
|
import { t as tt } from "./divider.CqSNZCU8.js";
|
|
55
55
|
import { p as nt } from "./url.BCc06dE7.js";
|
|
56
56
|
import { d as rt, h as it, m as at, n as ot, o as st, p as ct } from "./color.CIOzHtLK.js";
|
|
57
57
|
import { a as k, h as lt, p as A } from "./responsive.L9Csz2w2.js";
|
|
58
58
|
import { r as j, s as ut } from "./asset-link-format.COPyGdND.js";
|
|
59
|
-
import { t as dt } from "./image
|
|
59
|
+
import { t as dt } from "./image.-lgb634-.js";
|
|
60
60
|
import { t as ft } from "./grid.CK4PRwur.js";
|
|
61
61
|
import { t as pt } from "./grid-item.CSieaU5T.js";
|
|
62
62
|
import { t as mt } from "./menu-label.B-FOyfAX.js";
|
|
63
63
|
import { t as ht } from "./radio.DhPbmKbQ.js";
|
|
64
|
-
import { t as gt } from "./radio-card.
|
|
64
|
+
import { t as gt } from "./radio-card.BWutKj6E.js";
|
|
65
65
|
import { t as _t } from "./radio-group.CHlxPcrs.js";
|
|
66
66
|
import { t as vt } from "./switch.BM9msK5T.js";
|
|
67
67
|
import { t as yt } from "./v4.JyXW8GUB.js";
|
|
68
|
-
import { t as bt } from "./bicolor-picker.
|
|
69
|
-
import { t as xt } from "./border-input-group.
|
|
70
|
-
import { n as St, t as Ct } from "./confirm-popover.
|
|
71
|
-
import { t as wt } from "./corner-position-input-group.
|
|
72
|
-
import { t as Tt } from "./cropper.
|
|
73
|
-
import { t as Et } from "./dynamic-select.
|
|
68
|
+
import { t as bt } from "./bicolor-picker.DZY5PP24.js";
|
|
69
|
+
import { t as xt } from "./border-input-group.BymzNWba.js";
|
|
70
|
+
import { n as St, t as Ct } from "./confirm-popover.DUrgLQjC.js";
|
|
71
|
+
import { t as wt } from "./corner-position-input-group.mrOiz-0k.js";
|
|
72
|
+
import { t as Tt } from "./cropper.CNmQt-sa.js";
|
|
73
|
+
import { t as Et } from "./dynamic-select.Dwcz7UjN.js";
|
|
74
74
|
import { t as Dt } from "./string-array.Dstcqyjm.js";
|
|
75
|
-
import { n as M, r as Ot, t as N } from "./folder-select.
|
|
75
|
+
import { n as M, r as Ot, t as N } from "./folder-select.Buoz3ioX.js";
|
|
76
76
|
import { t as kt } from "./choose.C2vpqhLc.js";
|
|
77
|
-
import { t as At } from "./masonry.
|
|
77
|
+
import { t as At } from "./masonry.BxNeClR6.js";
|
|
78
78
|
import { t as jt } from "./padding-input-group.B-hbA7P2.js";
|
|
79
79
|
import { t as Mt } from "./position-picker.X2hhfGx7.js";
|
|
80
|
-
import { t as Nt } from "./shadow-input-group.
|
|
81
|
-
import { t as Pt } from "./size-input-group.
|
|
82
|
-
import { C as Ft, S as It, T as Lt, _ as Rt, b as zt, c as Bt, f as Vt, g as Ht, h as Ut, i as Wt, l as Gt, n as Kt, o as qt, p as Jt, r as Yt, s as P, t as Xt, u as Zt, v as Qt, w as $t, x as en, y as tn } from "./asset-link-format.
|
|
83
|
-
import { c as nn, d as rn, f as an, n as on, u as sn } from "./color-swatch-group.
|
|
84
|
-
import { $ as cn, B as F, G as ln, O as un, P as dn, Q as fn, T as pn, X as mn, Y as hn, Z as gn, _ as _n, at as vn, ct as I, et as yn, lt as bn, ot as L, st as xn, v as Sn, w as Cn, x as wn } from "./configs-controller.
|
|
80
|
+
import { t as Nt } from "./shadow-input-group.B_W5gJ4u.js";
|
|
81
|
+
import { t as Pt } from "./size-input-group.DUyTc5na.js";
|
|
82
|
+
import { C as Ft, S as It, T as Lt, _ as Rt, b as zt, c as Bt, f as Vt, g as Ht, h as Ut, i as Wt, l as Gt, n as Kt, o as qt, p as Jt, r as Yt, s as P, t as Xt, u as Zt, v as Qt, w as $t, x as en, y as tn } from "./asset-link-format.zO0t0oA3.js";
|
|
83
|
+
import { c as nn, d as rn, f as an, n as on, u as sn } from "./color-swatch-group.Bcw5aIqG.js";
|
|
84
|
+
import { $ as cn, B as F, G as ln, O as un, P as dn, Q as fn, T as pn, X as mn, Y as hn, Z as gn, _ as _n, at as vn, ct as I, et as yn, lt as bn, ot as L, st as xn, v as Sn, w as Cn, x as wn } from "./configs-controller.uTcM4iX4.js";
|
|
85
85
|
import { a as Tn } from "./cloneDeep.C6x5LNv3.js";
|
|
86
86
|
//#region ../../packages/types/src/icon-picker.ts
|
|
87
87
|
var En = /* @__PURE__ */ function(e) {
|
|
@@ -93,7 +93,7 @@ var En = /* @__PURE__ */ function(e) {
|
|
|
93
93
|
async fetchAssetByID({ extraFields: e = [], recordId: t, securityByPassToken: n, token: r }) {
|
|
94
94
|
let i = await zt({
|
|
95
95
|
extraFields: e.filter((e) => e !== ""),
|
|
96
|
-
getPermanentAssetsPaths:
|
|
96
|
+
getPermanentAssetsPaths: ze(this.host.ownerDocument.defaultView),
|
|
97
97
|
isSiteBuilder: this.isSiteBuilder,
|
|
98
98
|
recordIds: [t],
|
|
99
99
|
securityByPassToken: n,
|
|
@@ -113,14 +113,14 @@ var En = /* @__PURE__ */ function(e) {
|
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
async refetchFormatUrl({ format: e, recordId: t, resolveExpiringImagePath: n = !1, securityByPassToken: r, token: i }) {
|
|
116
|
-
let a =
|
|
116
|
+
let a = We(this.host.ownerDocument.defaultView) && n;
|
|
117
117
|
if (!t || !a && !e) return "";
|
|
118
118
|
let o = `path_${e}`, s = e === "TRX", c = "path_TR1";
|
|
119
119
|
try {
|
|
120
120
|
let e = (await zt({
|
|
121
121
|
extraFields: a ? [
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
Re,
|
|
123
|
+
Ue,
|
|
124
124
|
Bt,
|
|
125
125
|
P
|
|
126
126
|
] : s ? [
|
|
@@ -129,7 +129,7 @@ var En = /* @__PURE__ */ function(e) {
|
|
|
129
129
|
Bt,
|
|
130
130
|
P
|
|
131
131
|
] : [o],
|
|
132
|
-
getPermanentAssetsPaths:
|
|
132
|
+
getPermanentAssetsPaths: ze(this.host.ownerDocument.defaultView),
|
|
133
133
|
isSiteBuilder: this.isSiteBuilder,
|
|
134
134
|
recordIds: [t],
|
|
135
135
|
securityByPassToken: r,
|
|
@@ -137,7 +137,7 @@ var En = /* @__PURE__ */ function(e) {
|
|
|
137
137
|
})).items[0];
|
|
138
138
|
if (!e) return "";
|
|
139
139
|
if (a) {
|
|
140
|
-
let t =
|
|
140
|
+
let t = Be(e, Yt(e[P], e["Document.FileExtension"] ?? ""), e[Bt]);
|
|
141
141
|
return t ? e[t] ?? "" : "";
|
|
142
142
|
}
|
|
143
143
|
let n = s ? e["Document.FileExtension"] ?? "" : "", l = Yt(s ? e[P] : void 0, n);
|
|
@@ -169,7 +169,7 @@ var En = /* @__PURE__ */ function(e) {
|
|
|
169
169
|
if (this.onRequestAsset) try {
|
|
170
170
|
this.emit("cx-asset-request-status", { detail: { busy: !0 } });
|
|
171
171
|
let e = await this.onRequestAsset(this.type.join(" "), this.multiple, this.accepts, this.restrict ? this.type.join(" ") : void 0);
|
|
172
|
-
if (this.accepts.length > 0 && Object.values(e).some((e) => !this.accepts.includes(ue(e.src) ?? "")))
|
|
172
|
+
if (this.accepts.length > 0 && Object.values(e).some((e) => !this.accepts.includes(ue(e.src) ?? ""))) qe(this.localize.term("nonAcceptedExtension", this.accepts), { notificationType: "warning" });
|
|
173
173
|
else if (this.multiple) {
|
|
174
174
|
let t = Object.values(e);
|
|
175
175
|
this.emit("cx-content-builder-asset-select", { detail: t });
|
|
@@ -206,7 +206,7 @@ var En = /* @__PURE__ */ function(e) {
|
|
|
206
206
|
qt,
|
|
207
207
|
Rt
|
|
208
208
|
],
|
|
209
|
-
getPermanentAssetsPaths:
|
|
209
|
+
getPermanentAssetsPaths: ze(this.ownerDocument.defaultView),
|
|
210
210
|
isSiteBuilder: this.isSiteBuilder,
|
|
211
211
|
recordIds: t
|
|
212
212
|
});
|
|
@@ -450,7 +450,7 @@ var V = class extends d {
|
|
|
450
450
|
return this.typefaceGroups.flatMap((e) => e.typefaces);
|
|
451
451
|
}
|
|
452
452
|
get selectedTypeface() {
|
|
453
|
-
return this.allTypefaces.find((e) =>
|
|
453
|
+
return this.allTypefaces.find((e) => Ge(e) === this.familyValue);
|
|
454
454
|
}
|
|
455
455
|
get availableFamilies() {
|
|
456
456
|
return this.selectedTypeface?.families ?? [];
|
|
@@ -467,8 +467,8 @@ var V = class extends d {
|
|
|
467
467
|
e.stopPropagation();
|
|
468
468
|
let t = e.target.value;
|
|
469
469
|
if (t === this.familyValue) return;
|
|
470
|
-
let n = this.allTypefaces.find((e) =>
|
|
471
|
-
this.familyValue = t, this.styleValue = i ?
|
|
470
|
+
let n = this.allTypefaces.find((e) => Ge(e) === t), r = this.availableFamilies.find((e) => Ve(e) === this.styleValue), i = r ? n?.families.find((e) => String(e.fontStyle ?? "") === String(r.fontStyle ?? "") && String(e.fontWeight ?? "") === String(r.fontWeight ?? "")) : void 0;
|
|
471
|
+
this.familyValue = t, this.styleValue = i ? Ve(i) : "", this.emit("cx-font-picker-change", { detail: {
|
|
472
472
|
family: this.familyValue,
|
|
473
473
|
style: this.styleValue
|
|
474
474
|
} });
|
|
@@ -485,14 +485,14 @@ var V = class extends d {
|
|
|
485
485
|
return n`${C(this.typefaceGroups, (e) => e.label, (e, t) => n`
|
|
486
486
|
${t > 0 ? n`<cx-divider></cx-divider>` : a}
|
|
487
487
|
${y(e.label, () => n`<cx-menu-label>${e.label}</cx-menu-label>`)}
|
|
488
|
-
${C(e.typefaces, (e) =>
|
|
488
|
+
${C(e.typefaces, (e) => Ge(e), (e) => n`<cx-option value=${Ge(e)} style=${ce({ "--option-font-family": He(e.typeface) })}>${e.typeface}</cx-option>`)}
|
|
489
489
|
`)}`;
|
|
490
490
|
}
|
|
491
491
|
renderFamilySelect(e) {
|
|
492
492
|
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>`;
|
|
493
493
|
}
|
|
494
494
|
renderStyleOptions(e) {
|
|
495
|
-
return n`${C(e, (e) =>
|
|
495
|
+
return n`${C(e, (e) => Ve(e), (e) => n`<cx-option value=${Ve(e)}>${e.name}</cx-option>`)}`;
|
|
496
496
|
}
|
|
497
497
|
renderStyleSelect(e) {
|
|
498
498
|
let { italic: t, upright: r } = this.groupedFamilies;
|
|
@@ -40927,7 +40927,7 @@ var Nr = J, Pr = r`:host{width:100%;display:block}.gallery-config-dialog{--width
|
|
|
40927
40927
|
if (this.editedImage.pageId && !this.selectedPageLabel) try {
|
|
40928
40928
|
let e = "Document.Title", { items: t } = await zt({
|
|
40929
40929
|
extraFields: [e],
|
|
40930
|
-
getPermanentAssetsPaths:
|
|
40930
|
+
getPermanentAssetsPaths: ze(this.ownerDocument.defaultView),
|
|
40931
40931
|
isSiteBuilder: !0,
|
|
40932
40932
|
recordIds: [this.editedImage.pageId]
|
|
40933
40933
|
});
|
|
@@ -41055,7 +41055,7 @@ var Nr = J, Pr = r`:host{width:100%;display:block}.gallery-config-dialog{--width
|
|
|
41055
41055
|
if (e.detail.representativeAssetId && !this.isThumbnailManuallySet) {
|
|
41056
41056
|
let { items: i } = await zt({
|
|
41057
41057
|
extraFields: [Fr],
|
|
41058
|
-
getPermanentAssetsPaths:
|
|
41058
|
+
getPermanentAssetsPaths: ze(this.ownerDocument.defaultView),
|
|
41059
41059
|
isSiteBuilder: !0,
|
|
41060
41060
|
recordIds: [e.detail.representativeAssetId]
|
|
41061
41061
|
}), a = i[0];
|
|
@@ -41465,7 +41465,7 @@ var zr = X, Br = r`.page-picker__name{--color:var(--cx-color-primary-500)}.page-
|
|
|
41465
41465
|
if (this.value && !this.selectedLabel) try {
|
|
41466
41466
|
let e = "Document.Title", { items: t } = await zt({
|
|
41467
41467
|
extraFields: [e],
|
|
41468
|
-
getPermanentAssetsPaths:
|
|
41468
|
+
getPermanentAssetsPaths: ze(this.ownerDocument.defaultView),
|
|
41469
41469
|
isSiteBuilder: !0,
|
|
41470
41470
|
recordIds: [this.value]
|
|
41471
41471
|
});
|
|
@@ -41878,10 +41878,10 @@ var Vr = Z, Hr = [
|
|
|
41878
41878
|
return (await this.resolveAssetFormat(e, t, n)).src;
|
|
41879
41879
|
}
|
|
41880
41880
|
async resolveAssetFormat(e, t, n) {
|
|
41881
|
-
let r = "path_TR1", i = !t, a =
|
|
41881
|
+
let r = "path_TR1", i = !t, a = We(this.host.ownerDocument.defaultView) && n, o = await this.apiSearchAssets({
|
|
41882
41882
|
fields: a ? [
|
|
41883
|
-
|
|
41884
|
-
|
|
41883
|
+
Re,
|
|
41884
|
+
Ue,
|
|
41885
41885
|
Bt,
|
|
41886
41886
|
P,
|
|
41887
41887
|
Ut
|
|
@@ -41893,18 +41893,18 @@ var Vr = Z, Hr = [
|
|
|
41893
41893
|
P,
|
|
41894
41894
|
Ut
|
|
41895
41895
|
],
|
|
41896
|
-
getPermanentAssetsPaths:
|
|
41896
|
+
getPermanentAssetsPaths: ze(this.host.ownerDocument.defaultView),
|
|
41897
41897
|
isSiteBuilder: !0,
|
|
41898
41898
|
query: { recordId: [e] }
|
|
41899
41899
|
});
|
|
41900
41900
|
for (let e of o.items) {
|
|
41901
41901
|
let n = String(e["Document.FileExtension"] ?? "");
|
|
41902
41902
|
if (a) {
|
|
41903
|
-
let t =
|
|
41903
|
+
let t = Be(e, Yt(String(e["CoreField.DocType"] ?? ""), n), n), r = t ? e[t] : void 0;
|
|
41904
41904
|
if (r && $t(r)) return this.getResolvedImage(r);
|
|
41905
41905
|
continue;
|
|
41906
41906
|
}
|
|
41907
|
-
let o = i ?
|
|
41907
|
+
let o = i ? Ke(n, String(e["CoreField.FileSize"] ?? "")) : t, s = `path_${o}`;
|
|
41908
41908
|
if (o !== "TRX" || Yt(String(e["CoreField.DocType"] ?? ""), n)) {
|
|
41909
41909
|
let t = e[s];
|
|
41910
41910
|
if ($t(t)) return this.getResolvedImage(t);
|
|
@@ -42970,7 +42970,7 @@ var Jr = Q, Yr = r`:host{display:block}.editor{gap:var(--cx-spacing-small);flex-
|
|
|
42970
42970
|
e.preventDefault();
|
|
42971
42971
|
return;
|
|
42972
42972
|
}
|
|
42973
|
-
if (
|
|
42973
|
+
if (Je(this.dialogForm)) {
|
|
42974
42974
|
e.preventDefault(), e.stopPropagation(), this.confirmPopover.show();
|
|
42975
42975
|
return;
|
|
42976
42976
|
}
|
|
@@ -5,7 +5,7 @@ import { t as s } from "./custom-element.BEMYNDK1.js";
|
|
|
5
5
|
import { t as c } from "./i18n.Bjg2ubA4.js";
|
|
6
6
|
import { t as l } from "./input.kTjqEyC8.js";
|
|
7
7
|
import { t as u } from "./space.Dd8jezXK.js";
|
|
8
|
-
import { t as d } from "./bicolor-picker.
|
|
8
|
+
import { t as d } from "./bicolor-picker.DZY5PP24.js";
|
|
9
9
|
//#region ../../packages/molecules/src/border-input-group/border-input-group.styles.ts
|
|
10
10
|
var f = t`.border-width{width:72px}`, p = class extends a {
|
|
11
11
|
constructor(...e) {
|
|
@@ -61,5 +61,8 @@ function d(e) {
|
|
|
61
61
|
function f() {
|
|
62
62
|
return /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
63
63
|
}
|
|
64
|
+
function p() {
|
|
65
|
+
return /mac os x/i.test(navigator.userAgent) && !f();
|
|
66
|
+
}
|
|
64
67
|
//#endregion
|
|
65
|
-
export { t as a,
|
|
68
|
+
export { t as a, p as c, r as d, a as i, n as l, d as n, e as o, s as r, f as s, o as t, i as u };
|
|
@@ -23,12 +23,12 @@ import { c as T, d as E, f as D, i as O, n as k, o as A, s as te, u as j } from
|
|
|
23
23
|
import { t as M } from "./drag.s0AcVpKh.js";
|
|
24
24
|
import { t as N } from "./math.od1DVmRk.js";
|
|
25
25
|
import { t as P } from "./repeat.CKv9FPlC.js";
|
|
26
|
-
import { t as F } from "./dropdown.
|
|
26
|
+
import { t as F } from "./dropdown.DDQXJMth.js";
|
|
27
27
|
import { t as I } from "./input.kTjqEyC8.js";
|
|
28
28
|
import { t as L } from "./option.DWE0tark.js";
|
|
29
|
-
import { t as R } from "./select.
|
|
30
|
-
import { t as z } from "./tab.
|
|
31
|
-
import { t as B } from "./tab-group.
|
|
29
|
+
import { t as R } from "./select.S9rnkI_b.js";
|
|
30
|
+
import { t as z } from "./tab.Cv-UuYM5.js";
|
|
31
|
+
import { t as B } from "./tab-group.kyiPblS9.js";
|
|
32
32
|
import { t as V } from "./tab-panel.BxeoKuSv.js";
|
|
33
33
|
import { t as H } from "./visually-hidden.Bv3SInZp.js";
|
|
34
34
|
//#region ../../packages/atoms/src/components/color-picker/color-picker.styles.ts
|