@orangelogic/design-system 3.0.0-ATT-beta-1 → 3.0.0-ATT-beta-4
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/{asset-link-format.49uUtr5_.js → asset-link-format.DQQbLL7M.js} +6 -6
- package/library/chunks/{button.B1e_bqoD.js → button.OHEYWSrR.js} +1 -1
- package/library/chunks/{color-swatch-group.CQcuSxc3.js → color-swatch-group.CN_GgQwr.js} +9 -9
- package/library/chunks/{color.CQn51f4A.js → color.CIHdfM_a.js} +9 -9
- package/library/chunks/{confirm-popover.DG02IuAR.js → confirm-popover.BD8dOAqb.js} +3 -3
- package/library/chunks/{dialog.Dn6wnquV.js → dialog.y1aI4Fx-.js} +2 -2
- package/library/chunks/{document-viewer.DJkCknWG.js → document-viewer.CrNxabxZ.js} +7 -7
- package/library/chunks/{dot-pagination.DdyNOLk-.js → dot-pagination.Bt-nFDdb.js} +1 -1
- package/library/chunks/{folder-select.BZLYHs3m.js → folder-select.vvuA1oj1.js} +4 -4
- package/library/chunks/gradient.CIzq8fOU.js +176 -0
- package/library/chunks/{header.BMefKvtr.js → header.DNPt0Mng.js} +1 -1
- package/library/chunks/{i18n.zTV5Adxd.js → i18n.GGbM-Gif.js} +9 -0
- package/library/chunks/{icon-button.Dmlakrma.js → icon-button.CQ4xfFSm.js} +1 -1
- package/library/chunks/{iframe.C4HWNwFP.js → iframe.irSJ3PFM.js} +1 -1
- package/library/chunks/{image.CGQaUytx.js → image.S1unGzEQ.js} +1 -1
- package/library/chunks/{index.D4Tjho1f.js → index.DJqUtN7F.js} +11 -11
- package/library/chunks/{input.B2mm_GSD.js → input.B-pldMRS.js} +1 -1
- package/library/chunks/{markdown.C-Vs4yq6.js → markdown.j9vZ4wrs.js} +2 -2
- package/library/chunks/{menu-item.BqInxhqc.js → menu-item.QBn0h6Ml.js} +1 -1
- package/library/chunks/{option.Daer9cjk.js → option.CVt288Bw.js} +1 -1
- package/library/chunks/{pagination.B0Hbo8VZ.js → pagination.Cq_-a53K.js} +5 -5
- package/library/chunks/{tab-group.BePpAaNw.js → tab-group.Ci9KAAG4.js} +4 -4
- package/library/chunks/transformation.oLdFrj9v.js +353 -0
- package/library/chunks/{tree.Coaw3iLt.js → tree.CT4bFJ8w.js} +1 -1
- package/library/chunks/{types.DTdNF4GV.js → types.B0rTkC1E.js} +14290 -14150
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +4 -4
- package/library/components/atoms.js +15 -15
- package/library/components/audio.js +2 -2
- package/library/components/bicolor-picker.js +2 -2
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/color-picker.js +971 -337
- package/library/components/color-swatch-group.js +3 -3
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +26 -26
- package/library/components/dialog.js +3 -3
- package/library/components/document-viewer.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +4 -4
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +9 -9
- package/library/components/folder-select.js +4 -4
- 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 +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +2 -2
- package/library/components/input.js +2 -2
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +3 -3
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +2 -2
- package/library/components/menu.js +2 -2
- package/library/components/molecules.js +2 -2
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +6 -6
- 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/range.js +1 -1
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +2 -2
- 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 +3 -3
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/tab-group.js +5 -5
- package/library/components/tab.js +2 -2
- package/library/components/tag.js +2 -2
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +197 -186
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/color-picker/color-picker.d.ts +160 -2
- package/library/packages/atoms/src/components/color-picker/components/gradient-slider/gradient-slider.d.ts +80 -0
- package/library/packages/atoms/src/components/color-picker/components/gradient-slider/gradient-slider.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/color-picker/components/gradient-stop-list/gradient-stop-list.d.ts +85 -0
- package/library/packages/atoms/src/components/color-picker/components/gradient-stop-list/gradient-stop-list.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/details/details.d.ts +2 -1
- package/library/packages/events/src/cx-gradient-change.d.ts +10 -0
- package/library/packages/events/src/cx-gradient-stop-add.d.ts +9 -0
- package/library/packages/events/src/cx-gradient-stop-change.d.ts +10 -0
- package/library/packages/events/src/cx-gradient-stop-remove.d.ts +8 -0
- package/library/packages/events/src/cx-gradient-stop-select.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +5 -0
- package/library/packages/molecules/src/details-group/details-group.d.ts +47 -11
- package/library/packages/organisms/src/carousel/carousel.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/content-builder-constants.d.ts +3 -0
- package/library/packages/types/src/color-picker.d.ts +33 -0
- package/library/packages/types/src/details-group.d.ts +80 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +9 -0
- package/library/packages/utils/src/gradient/gradient.d.ts +65 -0
- package/library/packages/utils/src/gradient/index.d.ts +1 -0
- package/library/packages/utils/src/index.d.ts +1 -0
- package/library/packages/utils/src/transformation/transformation.d.ts +7 -0
- package/library/react-web-component.d.ts +485 -473
- package/library/utils.js +131 -120
- package/package.json +1 -1
- package/library/chunks/transformation.DWz3SZFe.js +0 -340
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../components/cropper.js";
|
|
2
|
-
import { C as K } from "./button.
|
|
2
|
+
import { C as K } from "./button.OHEYWSrR.js";
|
|
3
3
|
import U from "../components/space.js";
|
|
4
4
|
import { C as B } from "./typography.BLYdTF0n.js";
|
|
5
5
|
import { n as h, C as q } from "./lib-cortex-element.CVMmyPMC.js";
|
|
@@ -7,10 +7,10 @@ import { h as E, a as Dt, C as Nt, S as Yt, b as Jt, c as te, d as ee } from "./
|
|
|
7
7
|
import "./browser.BHOCIF_A.js";
|
|
8
8
|
import { i as j, x as C, E as Ot } from "./lit-element.jLBm65_O.js";
|
|
9
9
|
import "./form.LpappO1d.js";
|
|
10
|
-
import { L as V } from "./i18n.
|
|
10
|
+
import { L as V } from "./i18n.GGbM-Gif.js";
|
|
11
11
|
import { a as ie } from "./string.CfI2ejyR.js";
|
|
12
12
|
import "./date-picker.BGHn6qg8.js";
|
|
13
|
-
import { a as bt, r as Lt, b as se, c as ae, d as lt } from "./transformation.
|
|
13
|
+
import { a as bt, r as Lt, b as se, c as ae, d as lt } from "./transformation.oLdFrj9v.js";
|
|
14
14
|
import "./content-builder.CBBdfVOl.js";
|
|
15
15
|
import "./unsafe-html.Dff7-rCx.js";
|
|
16
16
|
import { b as oe } from "./_baseUniq.lwMgmtt2.js";
|
|
@@ -26,9 +26,9 @@ import { n as M } from "./when.Dr1es41R.js";
|
|
|
26
26
|
import at from "../components/details.js";
|
|
27
27
|
import Ut from "../components/divider.js";
|
|
28
28
|
import { C as ot } from "./icon.BLXWp6CU.js";
|
|
29
|
-
import { C as Ct } from "./icon-button.
|
|
30
|
-
import { C as kt } from "./input.
|
|
31
|
-
import { C as yt } from "./option.
|
|
29
|
+
import { C as Ct } from "./icon-button.CQ4xfFSm.js";
|
|
30
|
+
import { C as kt } from "./input.B-pldMRS.js";
|
|
31
|
+
import { C as yt } from "./option.CVt288Bw.js";
|
|
32
32
|
import St from "../components/select.js";
|
|
33
33
|
import ne from "../components/position-picker.js";
|
|
34
34
|
import { c as he } from "./image.Y5c_hFx8.js";
|
|
@@ -2,7 +2,7 @@ import { n as i, C as g } from "./lib-cortex-element.CVMmyPMC.js";
|
|
|
2
2
|
import { c as C } from "./component.styles.CAS3c9pM.js";
|
|
3
3
|
import { c as x } from "./custom-element.L4WJXn1j.js";
|
|
4
4
|
import { F as w, v as $ } from "./form.LpappO1d.js";
|
|
5
|
-
import { L as S } from "./i18n.
|
|
5
|
+
import { L as S } from "./i18n.GGbM-Gif.js";
|
|
6
6
|
import { H as L, g as O } from "./slot.j5oheLJC.js";
|
|
7
7
|
import { w as y } from "./watch.DJF5K-8U.js";
|
|
8
8
|
import { r as u } from "./state.CSDxrqLd.js";
|
|
@@ -3,13 +3,13 @@ import { C as Kr, T as Pn } from "./typography.BLYdTF0n.js";
|
|
|
3
3
|
import { n as m, C as Pe } from "./lib-cortex-element.CVMmyPMC.js";
|
|
4
4
|
import qr from "../components/color-swatch.js";
|
|
5
5
|
import { c as We } from "./component.styles.CAS3c9pM.js";
|
|
6
|
-
import { C as xt } from "./button.
|
|
7
|
-
import { C as In, o as Hn, O as Nn } from "./dialog.
|
|
8
|
-
import { C as ai } from "./icon-button.
|
|
6
|
+
import { C as xt } from "./button.OHEYWSrR.js";
|
|
7
|
+
import { C as In, o as Hn, O as Nn } from "./dialog.y1aI4Fx-.js";
|
|
8
|
+
import { C as ai } from "./icon-button.CQ4xfFSm.js";
|
|
9
9
|
import Ht from "../components/tooltip.js";
|
|
10
10
|
import { i as Xr, r as Vn, f as Zt, m as Bn, a as $n, t as Jr, g as Wn } from "./toast.D3AW3RWv.js";
|
|
11
11
|
import { c as Ie } from "./custom-element.L4WJXn1j.js";
|
|
12
|
-
import { L as tt } from "./i18n.
|
|
12
|
+
import { L as tt } from "./i18n.GGbM-Gif.js";
|
|
13
13
|
import { b as jn, S as Gn, c as Go, p as Un, w as H, E as Kn } from "./watch.DJF5K-8U.js";
|
|
14
14
|
import { i as Y, x as E, E as pt, B as Yr } from "./lit-element.jLBm65_O.js";
|
|
15
15
|
import { r as F } from "./state.CSDxrqLd.js";
|
|
@@ -21,7 +21,7 @@ import { l as ri, i as Zn, f as Qn } from "./_flatRest.ZYRhuYq_.js";
|
|
|
21
21
|
import { a as po } from "./toString.B1zKIiZc.js";
|
|
22
22
|
import { a as ea, b as ta } from "./_baseUniq.lwMgmtt2.js";
|
|
23
23
|
import { C as gt } from "./icon.BLXWp6CU.js";
|
|
24
|
-
import { C as en } from "./input.
|
|
24
|
+
import { C as en } from "./input.B-pldMRS.js";
|
|
25
25
|
import { d as tn } from "./debounce.DaHuiSGU.js";
|
|
26
26
|
import { e as Xe } from "./class-map.BiVq-cVR.js";
|
|
27
27
|
import { c as qe } from "./repeat.CFjcER6_.js";
|
|
@@ -32,7 +32,7 @@ import { S as na } from "./sortable.esm.oSzf6C5Q.js";
|
|
|
32
32
|
import aa from "../components/line-clamp.js";
|
|
33
33
|
import { o as la } from "./unsafe-html.Dff7-rCx.js";
|
|
34
34
|
import li from "../components/menu.js";
|
|
35
|
-
import { C as hi } from "./menu-item.
|
|
35
|
+
import { C as hi } from "./menu-item.QBn0h6Ml.js";
|
|
36
36
|
import ha from "../components/popup.js";
|
|
37
37
|
import { r as ca } from "./choose.BTbF6BAn.js";
|
|
38
38
|
import { o as ee } from "./if-defined.BRoBj_Rp.js";
|
|
@@ -40,14 +40,14 @@ import { o as nt } from "./style-map.llVFPd__.js";
|
|
|
40
40
|
import ci from "../components/dropdown.js";
|
|
41
41
|
import da from "../components/menu-section.js";
|
|
42
42
|
import sn from "../components/checkbox.js";
|
|
43
|
-
import { C as ua, P as pa } from "./pagination.
|
|
43
|
+
import { C as ua, P as pa } from "./pagination.Cq_-a53K.js";
|
|
44
44
|
import { H as on } from "./slot.j5oheLJC.js";
|
|
45
45
|
import { g as $, a as Uo } from "./dom.D0lSUoEI.js";
|
|
46
46
|
import "./browser.BHOCIF_A.js";
|
|
47
47
|
import "./form.LpappO1d.js";
|
|
48
48
|
import "./purify.es.BIuh5IAZ.js";
|
|
49
49
|
import { D as rn, a as fa, t as ma, b as nn } from "./date-picker.BGHn6qg8.js";
|
|
50
|
-
import "./transformation.
|
|
50
|
+
import "./transformation.oLdFrj9v.js";
|
|
51
51
|
import { D as Fi } from "./content-builder.CBBdfVOl.js";
|
|
52
52
|
import { s as P, h as Ko, b as Ji, c as fo } from "./string.CfI2ejyR.js";
|
|
53
53
|
import { a as ga } from "./_commonjsHelpers.DQNKXVTB.js";
|
|
@@ -60,7 +60,7 @@ import Ca from "../components/badge.js";
|
|
|
60
60
|
import xa from "../components/details.js";
|
|
61
61
|
import Ea from "../components/tag.js";
|
|
62
62
|
import { c as Ra } from "./date.iWq_pkIk.js";
|
|
63
|
-
import { f as ln, c as hn, a as Sa, b as ka, g as Ta, C as os } from "./color.
|
|
63
|
+
import { f as ln, c as hn, a as Sa, b as ka, g as Ta, C as os } from "./color.CIHdfM_a.js";
|
|
64
64
|
import { g as Da, a as Ma } from "./responsive.BmBJSzC4.js";
|
|
65
65
|
import { r as Fa } from "./query-all.i3PyvTUQ.js";
|
|
66
66
|
import { i as qo } from "./guard.D4axKaMo.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as
|
|
2
|
-
var I = /* @__PURE__ */ ((r) => (r.Circle = "circle", r.GridItem = "grid-item", r.Oval = "oval", r))(I || {}), x = /* @__PURE__ */ ((r) => (r.SameLine = "same-line", r.SeparateLine = "separate-line", r))(x || {}), k = /* @__PURE__ */ ((r) => (r.Comma = "comma", r.Slash = "slash", r))(k || {}),
|
|
1
|
+
import { T as f } from "./index.C1chwzNp.js";
|
|
2
|
+
var I = /* @__PURE__ */ ((r) => (r.Circle = "circle", r.GridItem = "grid-item", r.Oval = "oval", r))(I || {}), x = /* @__PURE__ */ ((r) => (r.SameLine = "same-line", r.SeparateLine = "separate-line", r))(x || {}), k = /* @__PURE__ */ ((r) => (r.Comma = "comma", r.Slash = "slash", r))(k || {}), g = /* @__PURE__ */ ((r) => (r.LeadingHash = "leading-hash", r.LeadingHex = "leading-hex", r.None = "none", r))(g || {}), y = /* @__PURE__ */ ((r) => (r.Cmyk = "cmyk", r.Hex = "hex", r.Rgb = "rgb", r.Unknown = "unknown", r))(y || {});
|
|
3
3
|
const A = /^#([0-9A-Fa-f]{3}){1,2}$/, L = /^(\s*(25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)\s*,){2}\s*(25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)\s*$/, E = /^(\s*(100|[1-9]?\d)\s*,){3}\s*(100|[1-9]?\d)\s*$/, _ = /^#(?:[0-9A-Fa-f]{3}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/;
|
|
4
4
|
function $(r) {
|
|
5
5
|
return A.test(r) ? "hex" : L.test(r) ? "rgb" : E.test(r) ? "cmyk" : "unknown";
|
|
@@ -105,7 +105,7 @@ function p(r) {
|
|
|
105
105
|
const s = "light-dark", n = r.toLowerCase().indexOf(s + "(");
|
|
106
106
|
if (n === -1) {
|
|
107
107
|
const c = r.trim();
|
|
108
|
-
return c && new
|
|
108
|
+
return c && new f(c).isValid ? `${c} ${c}` : "";
|
|
109
109
|
}
|
|
110
110
|
const i = r.indexOf("(", n + s.length);
|
|
111
111
|
if (i === -1)
|
|
@@ -132,7 +132,7 @@ function p(r) {
|
|
|
132
132
|
return `${o} ${l}`;
|
|
133
133
|
}
|
|
134
134
|
function T(r, s) {
|
|
135
|
-
const n = new
|
|
135
|
+
const n = new f(r), i = new f(s), t = n.isValid ? r : "transparent", e = i.isValid ? s : "transparent";
|
|
136
136
|
return `light-dark(${t}, ${e})`;
|
|
137
137
|
}
|
|
138
138
|
const R = /^(?:[a-z-]+\([^()]*(?:\([^()]*\)[^()]*)*\)|\S+)/i;
|
|
@@ -151,7 +151,7 @@ function G(r) {
|
|
|
151
151
|
const s = r.match(/([a-zA-Z-]+\([^)]*\))/);
|
|
152
152
|
if (!s)
|
|
153
153
|
return "";
|
|
154
|
-
const n = s[1], i = n.replace(/^[a-zA-Z-]+\(|\)$/g, "").trim(), t = r.replace(n, "").trim(), e = i.
|
|
154
|
+
const n = s[1], i = n.replace(/^[a-zA-Z-]+\(|\)$/g, "").trim(), t = r.replace(n, "").trim(), e = i.split(",").map((a) => a.trim()).filter(Boolean).join(" ");
|
|
155
155
|
return `${t} ${e}`;
|
|
156
156
|
}
|
|
157
157
|
function V(r, s) {
|
|
@@ -160,9 +160,9 @@ function V(r, s) {
|
|
|
160
160
|
s === k.Slash ? "/" : ", "
|
|
161
161
|
);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function j(r, s) {
|
|
164
164
|
const n = r.trim().replace(/^(?:#|0x)/i, "");
|
|
165
|
-
return n ? s ===
|
|
165
|
+
return n ? s === g.None ? n : s === g.LeadingHex ? `0x${n}` : `#${n}` : r;
|
|
166
166
|
}
|
|
167
167
|
export {
|
|
168
168
|
I as C,
|
|
@@ -170,10 +170,10 @@ export {
|
|
|
170
170
|
L as R,
|
|
171
171
|
x as a,
|
|
172
172
|
k as b,
|
|
173
|
-
|
|
173
|
+
g as c,
|
|
174
174
|
M as d,
|
|
175
175
|
y as e,
|
|
176
|
-
|
|
176
|
+
j as f,
|
|
177
177
|
V as g,
|
|
178
178
|
T as h,
|
|
179
179
|
w as i,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { C as _ } from "./button.
|
|
2
|
-
import { C as u, D as h } from "./dialog.
|
|
1
|
+
import { C as _ } from "./button.OHEYWSrR.js";
|
|
2
|
+
import { C as u, D as h } from "./dialog.y1aI4Fx-.js";
|
|
3
3
|
import g from "../components/dropdown.js";
|
|
4
4
|
import { C as x } from "./typography.BLYdTF0n.js";
|
|
5
5
|
import { n as e, C as b } from "./lib-cortex-element.CVMmyPMC.js";
|
|
6
6
|
import { c as y } from "./component.styles.CAS3c9pM.js";
|
|
7
7
|
import { c as w } from "./custom-element.L4WJXn1j.js";
|
|
8
|
-
import { L as $ } from "./i18n.
|
|
8
|
+
import { L as $ } from "./i18n.GGbM-Gif.js";
|
|
9
9
|
import { i as z, x as d } from "./lit-element.jLBm65_O.js";
|
|
10
10
|
import { e as m } from "./query.BBf1UFkC.js";
|
|
11
11
|
import { e as a } from "./class-map.BiVq-cVR.js";
|
|
@@ -3,7 +3,7 @@ import { c as vr } from "./component.styles.CAS3c9pM.js";
|
|
|
3
3
|
import { i as _s, x as He, E as fr } from "./lit-element.jLBm65_O.js";
|
|
4
4
|
import { a as ie, s as Te, w as os } from "./event.BeKOsirN.js";
|
|
5
5
|
import { c as br } from "./custom-element.L4WJXn1j.js";
|
|
6
|
-
import { L as yr } from "./i18n.
|
|
6
|
+
import { L as yr } from "./i18n.GGbM-Gif.js";
|
|
7
7
|
import { M as gr } from "./modal.Ct0bJBSe.js";
|
|
8
8
|
import { l as ss, u as rs } from "./scroll.xtO5yojm.js";
|
|
9
9
|
import { H as mr } from "./slot.j5oheLJC.js";
|
|
@@ -16,7 +16,7 @@ import { o as wr } from "./style-map.llVFPd__.js";
|
|
|
16
16
|
import { n as lo } from "./when.Dr1es41R.js";
|
|
17
17
|
import { s as be, g as ae } from "./animation-registry.HmpwNuGH.js";
|
|
18
18
|
import xr from "../components/divider.js";
|
|
19
|
-
import { C as Sr } from "./icon-button.
|
|
19
|
+
import { C as Sr } from "./icon-button.CQ4xfFSm.js";
|
|
20
20
|
import zr from "../components/popup.js";
|
|
21
21
|
const Cr = _s`.os-size-observer,.os-size-observer-listener{direction:inherit;pointer-events:none;visibility:hidden;box-sizing:border-box;overflow:hidden;scroll-behavior:auto!important}.os-size-observer,.os-size-observer-listener,.os-size-observer-listener-item,.os-size-observer-listener-item-final{writing-mode:horizontal-tb;position:absolute;top:0;left:0}.os-size-observer{z-index:-1;contain:strict;padding:inherit;border:inherit;box-sizing:inherit;flex-flow:row;margin:-133px;display:flex;inset:0;transform:scale(.1)}.os-size-observer:before{content:"";box-sizing:inherit;flex:none;width:10px;height:10px;padding:10px}.os-size-observer-appear{animation:1ms forwards os-size-observer-appear-animation}.os-size-observer-listener{box-sizing:border-box;padding:inherit;border:inherit;flex:auto;margin:-133px;position:relative;transform:scale(10)}.os-size-observer-listener.ltr{margin-left:0;margin-right:-266px}.os-size-observer-listener.rtl{margin-left:-266px;margin-right:0}.os-size-observer-listener:empty:before{content:"";width:100%;height:100%}.os-size-observer-listener:empty:before,.os-size-observer-listener>.os-size-observer-listener-item{padding:inherit;border:inherit;box-sizing:content-box;flex:auto;display:block;position:relative}.os-size-observer-listener-scroll{box-sizing:border-box;display:flex}.os-size-observer-listener-item{direction:ltr;flex:none;bottom:0;right:0;overflow:hidden}.os-size-observer-listener-item-final{transition:none}@keyframes os-size-observer-appear-animation{0%{cursor:auto}to{cursor:none}}.os-trinsic-observer{box-sizing:border-box;z-index:-1;contain:strict;border:none;flex:none;max-width:0;height:0;max-height:1px;margin:0;padding:0;position:relative;top:calc(100% + 1px);overflow:hidden}.os-trinsic-observer:not(:empty){height:calc(100% + 1px);top:-1px}.os-trinsic-observer:not(:empty)>.os-size-observer{width:1000%;min-width:1px;height:1000%;min-height:1px}[data-overlayscrollbars-initialize]:not([data-overlayscrollbars-viewport]),[data-overlayscrollbars-viewport~=scrollbarHidden]{scrollbar-width:none!important}[data-overlayscrollbars-initialize]:not([data-overlayscrollbars-viewport])::-webkit-scrollbar,[data-overlayscrollbars-initialize]:not([data-overlayscrollbars-viewport])::-webkit-scrollbar-corner,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner{-webkit-appearance:none!important;appearance:none!important;width:0!important;height:0!important;display:none!important}[data-overlayscrollbars-initialize]:not([data-overlayscrollbars]):not(html):not(body){overflow:auto}html[data-overlayscrollbars-body]{overflow:hidden}html[data-overlayscrollbars-body],html[data-overlayscrollbars-body]>body{width:100%;height:100%;margin:0}html[data-overlayscrollbars-body]>body{margin:0;overflow:visible}[data-overlayscrollbars]{position:relative}[data-overlayscrollbars~=host],[data-overlayscrollbars-padding]{display:flex;scroll-behavior:auto!important;flex-flow:row!important;align-items:stretch!important}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){box-sizing:inherit;z-index:0;border:none;flex:auto;width:100%;min-width:0;height:auto;margin:0;padding:0;position:relative}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){--os-vaw:0;--os-vah:0;outline:none}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]):focus{outline:none}[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]:before{content:"";pointer-events:none;z-index:-1;min-width:1px;min-height:1px;width:var(--os-vaw);height:var(--os-vah);position:absolute}[data-overlayscrollbars~=host],[data-overlayscrollbars-padding]{overflow:hidden!important}[data-overlayscrollbars~=host][data-overlayscrollbars~=noClipping],[data-overlayscrollbars-padding~=noClipping]{overflow:visible!important}[data-overlayscrollbars-viewport]{--os-viewport-overflow-x:hidden;--os-viewport-overflow-y:hidden;overflow-x:var(--os-viewport-overflow-x);overflow-y:var(--os-viewport-overflow-y)}[data-overlayscrollbars-viewport~=overflowXVisible]{--os-viewport-overflow-x:visible}[data-overlayscrollbars-viewport~=overflowXHidden]{--os-viewport-overflow-x:hidden}[data-overlayscrollbars-viewport~=overflowXScroll]{--os-viewport-overflow-x:scroll}[data-overlayscrollbars-viewport~=overflowYVisible]{--os-viewport-overflow-y:visible}[data-overlayscrollbars-viewport~=overflowYHidden]{--os-viewport-overflow-y:hidden}[data-overlayscrollbars-viewport~=overflowYScroll]{--os-viewport-overflow-y:scroll}[data-overlayscrollbars-viewport~=overflowImportant]{overflow-x:var(--os-viewport-overflow-x)!important;overflow-y:var(--os-viewport-overflow-y)!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId){font-size:0!important;line-height:0!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):before,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):after,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId)>*{clip:rect(0, 0, 0, 0)!important;white-space:nowrap!important;border-width:0!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;display:none!important;position:absolute!important;overflow:hidden!important}[data-overlayscrollbars-viewport~=measuring],[data-overlayscrollbars-viewport~=scrolling]{scroll-behavior:auto!important;scroll-snap-type:none!important}[data-overlayscrollbars-viewport~=measuring][data-overlayscrollbars-viewport~=overflowXVisible]{overflow-x:hidden!important}[data-overlayscrollbars-viewport~=measuring][data-overlayscrollbars-viewport~=overflowYVisible]{overflow-y:hidden!important}[data-overlayscrollbars-content]{box-sizing:inherit}[data-overlayscrollbars-contents]:not(#osFakeId):not([data-overlayscrollbars-padding]):not([data-overlayscrollbars-viewport]):not([data-overlayscrollbars-content]){display:contents}[data-overlayscrollbars-grid],[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]{grid-template:1fr/1fr;display:grid}[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding],[data-overlayscrollbars-grid]>[data-overlayscrollbars-viewport],[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding]>[data-overlayscrollbars-viewport]{width:auto!important;height:auto!important}@property --os-scroll-percent{syntax:"<number>";inherits:true;initial-value:0}@property --os-viewport-percent{syntax:"<number>";inherits:true;initial-value:0}.os-scrollbar{--os-viewport-percent:0;--os-scroll-percent:0;--os-scroll-direction:0;--os-scroll-percent-directional:calc(var(--os-scroll-percent) - (var(--os-scroll-percent) + (1 - var(--os-scroll-percent)) * -1) * var(--os-scroll-direction));contain:size layout;contain:size layout style;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .15s,visibility .15s,top .15s,right .15s,bottom .15s,left .15s;position:absolute}body>.os-scrollbar{z-index:99999;position:fixed}.os-scrollbar-transitionless{transition:none!important}.os-scrollbar-track{position:relative;border:none!important;padding:0!important}.os-scrollbar-handle{position:absolute}.os-scrollbar-track,.os-scrollbar-handle{pointer-events:none;width:100%;height:100%}.os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle{pointer-events:auto;touch-action:none}.os-scrollbar-horizontal{bottom:0;left:0}.os-scrollbar-vertical{top:0;right:0}.os-scrollbar-rtl.os-scrollbar-horizontal{right:0}.os-scrollbar-rtl.os-scrollbar-vertical{left:0;right:auto}.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-auto-hide.os-scrollbar-auto-hide-hidden{opacity:0;visibility:hidden}.os-scrollbar-interaction.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-unusable,.os-scrollbar-unusable *,.os-scrollbar-wheel,.os-scrollbar-wheel *{pointer-events:none!important}.os-scrollbar-unusable .os-scrollbar-handle{opacity:0!important;transition:none!important}.os-scrollbar-horizontal .os-scrollbar-handle{bottom:0;left:calc(var(--os-scroll-percent-directional) * 100%);transform:translateX(calc(var(--os-scroll-percent-directional) * -100%));width:calc(var(--os-viewport-percent) * 100%)}.os-scrollbar-vertical .os-scrollbar-handle{right:0;top:calc(var(--os-scroll-percent-directional) * 100%);transform:translateY(calc(var(--os-scroll-percent-directional) * -100%));height:calc(var(--os-viewport-percent) * 100%)}@supports (container-type:size){.os-scrollbar-track{container-type:size}.os-scrollbar-horizontal .os-scrollbar-handle{transform:translateX(calc(var(--os-scroll-percent-directional) * 100cqw + var(--os-scroll-percent-directional) * -100%));left:auto}.os-scrollbar-vertical .os-scrollbar-handle{transform:translateY(calc(var(--os-scroll-percent-directional) * 100cqh + var(--os-scroll-percent-directional) * -100%));top:auto}.os-scrollbar-rtl.os-scrollbar-horizontal .os-scrollbar-handle{left:0;right:auto}}.os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle{left:0;right:auto}.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl{left:0;right:0}.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl{top:0;bottom:0}@media print{.os-scrollbar{display:none}}.os-scrollbar{--os-size:10px;--os-padding-perpendicular:4px;--os-padding-axis:2px;--os-track-border-radius:10px;--os-track-bg:none;--os-track-bg-hover:none;--os-track-bg-active:none;--os-track-border:none;--os-track-border-hover:none;--os-track-border-active:none;--os-handle-border-radius:13px;--os-handle-bg:var(--cx-color-neutral-400);--os-handle-bg-hover:var(--cx-color-neutral-500);--os-handle-bg-active:var(--cx-color-neutral-500);--os-handle-border:4px solid #0000;--os-handle-border-hover:4px solid #0000;--os-handle-border-active:4px solid #0000;--os-handle-min-size:50px;--os-handle-max-size:none;--os-handle-perpendicular-size:100%;--os-handle-perpendicular-size-hover:100%;--os-handle-perpendicular-size-active:100%;--os-handle-interactive-area-offset:4px}.os-scrollbar-track{border:var(--os-track-border);border-radius:var(--os-track-border-radius);background:var(--os-track-bg);transition:opacity .15s,background-color .15s,border-color .15s}.os-scrollbar-track:hover{border:var(--os-track-border-hover);background:var(--os-track-bg-hover)}.os-scrollbar-track:active{border:var(--os-track-border-active);background:var(--os-track-bg-active)}.os-scrollbar-handle{border:var(--os-handle-border);border-radius:var(--os-handle-border-radius);background:var(--os-handle-bg)}.os-scrollbar-handle:hover{background:var(--os-handle-bg-hover);border:var(--os-handle-border-hover)}.os-scrollbar-handle:active{border:var(--os-handle-border-active);background:var(--os-handle-bg-active)}.os-scrollbar-track:before,.os-scrollbar-handle:before{content:"";display:block;position:absolute;inset:0}.os-scrollbar-horizontal{padding:var(--os-padding-perpendicular) var(--os-padding-axis);right:var(--os-size);height:var(--os-size)}.os-scrollbar-horizontal.os-scrollbar-rtl{left:var(--os-size);right:0}.os-scrollbar-horizontal .os-scrollbar-track:before{top:calc(var(--os-padding-perpendicular) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal .os-scrollbar-handle{min-width:var(--os-handle-min-size);max-width:var(--os-handle-max-size);height:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,height .15s}.os-scrollbar-horizontal .os-scrollbar-handle:before{top:calc(( var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset) ) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal:hover .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-horizontal:active .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-active)}.os-scrollbar-vertical{padding:var(--os-padding-axis) var(--os-padding-perpendicular);bottom:var(--os-size);width:var(--os-size)}.os-scrollbar-vertical .os-scrollbar-track:before{left:calc(var(--os-padding-perpendicular) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical .os-scrollbar-handle{min-height:var(--os-handle-min-size);max-height:var(--os-handle-max-size);width:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,width .15s}.os-scrollbar-vertical .os-scrollbar-handle:before{left:calc(( var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset) ) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before{right:calc(( var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset) ) * -1);left:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical:hover .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-vertical:active .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-active)}[data-overlayscrollbars-viewport~=measuring]>.os-scrollbar,.os-theme-none.os-scrollbar{display:none!important}.os-theme-dark,.os-theme-light{box-sizing:border-box;--os-size:10px;--os-padding-perpendicular:4px;--os-padding-axis:2px;--os-track-border-radius:10px;--os-handle-interactive-area-offset:4px;--os-handle-border-radius:10px}`;
|
|
22
22
|
var jt = /* @__PURE__ */ ((t) => (t.Both = "both", t.Footer = "footer", t.Header = "header", t.None = "none", t))(jt || {});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as resizableComponentStyles, R as ResizableElement, a as ResizeDirection, b as HeightMode } from "./resizable-component.styles.CAfXABBc.js";
|
|
2
|
-
import { C as CxButton } from "./button.
|
|
2
|
+
import { C as CxButton } from "./button.OHEYWSrR.js";
|
|
3
3
|
import CxDrawer from "../components/drawer.js";
|
|
4
4
|
import CxDropdown from "../components/dropdown.js";
|
|
5
5
|
import { C as CxIcon } from "./icon.BLXWp6CU.js";
|
|
6
|
-
import { C as CxIconButton } from "./icon-button.
|
|
7
|
-
import { C as CxInput } from "./input.
|
|
6
|
+
import { C as CxIconButton } from "./icon-button.CQ4xfFSm.js";
|
|
7
|
+
import { C as CxInput } from "./input.B-pldMRS.js";
|
|
8
8
|
import CxMenu from "../components/menu.js";
|
|
9
|
-
import { C as CxMenuItem } from "./menu-item.
|
|
9
|
+
import { C as CxMenuItem } from "./menu-item.QBn0h6Ml.js";
|
|
10
10
|
import CxPopup from "../components/popup.js";
|
|
11
11
|
import CxProgressBar from "../components/progress-bar.js";
|
|
12
12
|
import CxResizeObserver from "../components/resize-observer.js";
|
|
@@ -19,11 +19,11 @@ import "./browser.BHOCIF_A.js";
|
|
|
19
19
|
import { c as customElement } from "./custom-element.L4WJXn1j.js";
|
|
20
20
|
import { i, x, E } from "./lit-element.jLBm65_O.js";
|
|
21
21
|
import "./form.LpappO1d.js";
|
|
22
|
-
import { L as LocalizeController } from "./i18n.
|
|
22
|
+
import { L as LocalizeController } from "./i18n.GGbM-Gif.js";
|
|
23
23
|
import "./purify.es.BIuh5IAZ.js";
|
|
24
24
|
import { w as watch } from "./watch.DJF5K-8U.js";
|
|
25
25
|
import "./date-picker.BGHn6qg8.js";
|
|
26
|
-
import { f as fetchCortexApi } from "./transformation.
|
|
26
|
+
import { f as fetchCortexApi } from "./transformation.oLdFrj9v.js";
|
|
27
27
|
import "./content-builder.CBBdfVOl.js";
|
|
28
28
|
import "./unsafe-html.Dff7-rCx.js";
|
|
29
29
|
import { r as reactExports, a as React, j as jsxRuntimeExports, w, R as ReactDOM } from "./jsx-runtime.CTpPVMxj.js";
|
|
@@ -35,7 +35,7 @@ import { a as ObjectFit } from "./index.Cpamj0jB.js";
|
|
|
35
35
|
import { r as r$1 } from "./state.CSDxrqLd.js";
|
|
36
36
|
import { e } from "./class-map.BiVq-cVR.js";
|
|
37
37
|
import { n as n$1 } from "./when.Dr1es41R.js";
|
|
38
|
-
import { C as CxImage } from "./image.
|
|
38
|
+
import { C as CxImage } from "./image.S1unGzEQ.js";
|
|
39
39
|
var BookReaderMode$1 = /* @__PURE__ */ ((l) => (l.Image = "Image", l.Pdf = "Pdf", l))(BookReaderMode$1 || {}), BookReaderViewMode = /* @__PURE__ */ ((l) => (l.FourPage = "FourPage", l.OnePage = "OnePage", l.TwoPage = "TwoPage", l))(BookReaderViewMode || {});
|
|
40
40
|
function commonjsRequire(l) {
|
|
41
41
|
throw new Error('Could not dynamically require "' + l + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -2,7 +2,7 @@ import { n as s, C as P } from "./lib-cortex-element.CVMmyPMC.js";
|
|
|
2
2
|
import { c as z } from "./component.styles.CAS3c9pM.js";
|
|
3
3
|
import { O as C } from "./index.Cpamj0jB.js";
|
|
4
4
|
import { c as F } from "./custom-element.L4WJXn1j.js";
|
|
5
|
-
import { L as S } from "./i18n.
|
|
5
|
+
import { L as S } from "./i18n.GGbM-Gif.js";
|
|
6
6
|
import { w as f } from "./watch.DJF5K-8U.js";
|
|
7
7
|
import { i as O, x as y } from "./lit-element.jLBm65_O.js";
|
|
8
8
|
import { r as j } from "./state.CSDxrqLd.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { C as re } from "./icon.BLXWp6CU.js";
|
|
2
|
-
import { C as me } from "./input.
|
|
2
|
+
import { C as me } from "./input.B-pldMRS.js";
|
|
3
3
|
import se from "../components/line-clamp.js";
|
|
4
4
|
import ye from "../components/select.js";
|
|
5
5
|
import ge from "../components/tag.js";
|
|
6
|
-
import { C as F, a as xe } from "./tree.
|
|
6
|
+
import { C as F, a as xe } from "./tree.CT4bFJ8w.js";
|
|
7
7
|
import { n as s, C as N } from "./lib-cortex-element.CVMmyPMC.js";
|
|
8
8
|
import { h as A, F as be, A as $e } from "./endpoints.mJ5S-tIs.js";
|
|
9
9
|
import { M as P } from "./asset-link-format.ClaYu_v8.js";
|
|
10
10
|
import { c as ie } from "./component.styles.CAS3c9pM.js";
|
|
11
11
|
import { c as W } from "./custom-element.L4WJXn1j.js";
|
|
12
|
-
import { L as q } from "./i18n.
|
|
12
|
+
import { L as q } from "./i18n.GGbM-Gif.js";
|
|
13
13
|
import { w as y } from "./watch.DJF5K-8U.js";
|
|
14
14
|
import { g as V, p as X, e as E } from "./string.CfI2ejyR.js";
|
|
15
15
|
import { x as g, i as ve } from "./lit-element.jLBm65_O.js";
|
|
16
16
|
import { r as x } from "./state.CSDxrqLd.js";
|
|
17
17
|
import { e as H } from "./query.BBf1UFkC.js";
|
|
18
18
|
import { r as Ie } from "./choose.BTbF6BAn.js";
|
|
19
|
-
import { C as ae } from "./button.
|
|
19
|
+
import { C as ae } from "./button.OHEYWSrR.js";
|
|
20
20
|
import { d as Se } from "./debounce.DaHuiSGU.js";
|
|
21
21
|
import { o as p } from "./if-defined.BRoBj_Rp.js";
|
|
22
22
|
import { c as G } from "./repeat.CFjcER6_.js";
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { T as f } from "./index.C1chwzNp.js";
|
|
2
|
+
var E = /* @__PURE__ */ ((n) => (n.Hex = "hex", n.Hsl = "hsl", n.Hsv = "hsv", n.Rgb = "rgb", n))(E || {}), h = /* @__PURE__ */ ((n) => (n.Linear = "linear", n.Radial = "radial", n))(h || {}), I = /* @__PURE__ */ ((n) => (n.Gradient = "gradient", n.Solid = "solid", n))(I || {});
|
|
3
|
+
const G = /^(linear|radial)-gradient\s*\(/i, m = {
|
|
4
|
+
"to bottom": 180,
|
|
5
|
+
"to bottom left": 225,
|
|
6
|
+
"to bottom right": 135,
|
|
7
|
+
"to left": 270,
|
|
8
|
+
"to right": 90,
|
|
9
|
+
"to top": 0,
|
|
10
|
+
"to top left": 315,
|
|
11
|
+
"to top right": 45
|
|
12
|
+
}, M = {
|
|
13
|
+
deg: 1,
|
|
14
|
+
grad: 0.9,
|
|
15
|
+
rad: 180 / Math.PI,
|
|
16
|
+
turn: 360
|
|
17
|
+
}, D = 2;
|
|
18
|
+
let b = 0;
|
|
19
|
+
function L() {
|
|
20
|
+
return b += 1, `gradient-stop-${b}`;
|
|
21
|
+
}
|
|
22
|
+
function R(n, t) {
|
|
23
|
+
const e = [];
|
|
24
|
+
let r = 0, o = 0;
|
|
25
|
+
for (let i = 0; i < n.length; i++) {
|
|
26
|
+
const s = n[i];
|
|
27
|
+
if (s === "(") {
|
|
28
|
+
r++;
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
if (s === ")") {
|
|
32
|
+
r = Math.max(0, r - 1);
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
s === t && r === 0 && (e.push(n.slice(o, i).trim()), o = i + 1);
|
|
36
|
+
}
|
|
37
|
+
return e.push(n.slice(o).trim()), e.filter((i) => i !== "");
|
|
38
|
+
}
|
|
39
|
+
function N(n) {
|
|
40
|
+
const t = n.indexOf("(");
|
|
41
|
+
if (t === -1)
|
|
42
|
+
return null;
|
|
43
|
+
let e = 0;
|
|
44
|
+
for (let r = t; r < n.length; r++) {
|
|
45
|
+
const o = n[r];
|
|
46
|
+
if (o === "(") {
|
|
47
|
+
e++;
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
if (o === ")" && (e--, e === 0))
|
|
51
|
+
return n.slice(t + 1, r).trim();
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
function x(n) {
|
|
56
|
+
const t = n % 360;
|
|
57
|
+
return t < 0 ? t + 360 : t;
|
|
58
|
+
}
|
|
59
|
+
function P(n) {
|
|
60
|
+
const t = n.trim().toLowerCase();
|
|
61
|
+
if (t in m)
|
|
62
|
+
return m[t];
|
|
63
|
+
if (t.startsWith("to ")) {
|
|
64
|
+
const r = t.slice(3).split(/\s+/).sort().join(" "), o = Object.keys(m).find(
|
|
65
|
+
(i) => i.slice(3).split(/\s+/).sort().join(" ") === r
|
|
66
|
+
);
|
|
67
|
+
return o === void 0 ? null : m[o];
|
|
68
|
+
}
|
|
69
|
+
const e = t.match(/^(-?\d*\.?\d+)(deg|grad|rad|turn)?$/);
|
|
70
|
+
if (e) {
|
|
71
|
+
const r = Number.parseFloat(e[1]), o = e[2] ?? "deg";
|
|
72
|
+
return x(r * M[o]);
|
|
73
|
+
}
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
function T(n) {
|
|
77
|
+
const t = n.trim().toLowerCase();
|
|
78
|
+
return t.startsWith("circle") || t.startsWith("ellipse") || t.startsWith("at ") || t.startsWith("closest-") || t.startsWith("farthest-");
|
|
79
|
+
}
|
|
80
|
+
function _(n) {
|
|
81
|
+
const t = R(n, " ");
|
|
82
|
+
if (t.length === 0)
|
|
83
|
+
return null;
|
|
84
|
+
const r = t[t.length - 1].match(/^(-?\d*\.?\d+)%$/), o = r !== null && t.length > 1, i = o ? t.slice(0, -1).join(" ") : t.join(" ");
|
|
85
|
+
return new f(i).isValid ? {
|
|
86
|
+
color: i,
|
|
87
|
+
position: o ? Number.parseFloat(r[1]) : null
|
|
88
|
+
} : null;
|
|
89
|
+
}
|
|
90
|
+
function $(n) {
|
|
91
|
+
const t = [...n];
|
|
92
|
+
t[0] === null && (t[0] = 0), t[t.length - 1] === null && (t[t.length - 1] = 100);
|
|
93
|
+
let e = 0;
|
|
94
|
+
for (; e < t.length; ) {
|
|
95
|
+
if (t[e] !== null) {
|
|
96
|
+
e++;
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
let o = e;
|
|
100
|
+
for (; o < t.length && t[o] === null; )
|
|
101
|
+
o++;
|
|
102
|
+
const i = t[e - 1], s = t[o], c = o - e + 1, u = (s - i) / c;
|
|
103
|
+
for (let l = 0; e + l < o; l++)
|
|
104
|
+
t[e + l] = i + u * (l + 1);
|
|
105
|
+
e = o;
|
|
106
|
+
}
|
|
107
|
+
let r = t[0];
|
|
108
|
+
return t.map((o) => (r = Math.max(r, o), r));
|
|
109
|
+
}
|
|
110
|
+
function S(n) {
|
|
111
|
+
return [...n].sort((t, e) => t.position - e.position);
|
|
112
|
+
}
|
|
113
|
+
function W(n) {
|
|
114
|
+
return typeof n == "string" && G.test(n.trim());
|
|
115
|
+
}
|
|
116
|
+
function y(n) {
|
|
117
|
+
if (!W(n))
|
|
118
|
+
return null;
|
|
119
|
+
const t = n.trim(), e = /^linear/i.test(t) ? h.Linear : h.Radial, r = N(t);
|
|
120
|
+
if (r === null)
|
|
121
|
+
return null;
|
|
122
|
+
const o = R(r, ",");
|
|
123
|
+
if (o.length === 0)
|
|
124
|
+
return null;
|
|
125
|
+
let i = e === h.Linear ? 180 : 0, s = o;
|
|
126
|
+
const c = P(o[0]);
|
|
127
|
+
c !== null ? (i = c, s = o.slice(1)) : T(o[0]) && (s = o.slice(1));
|
|
128
|
+
const u = s.map(_);
|
|
129
|
+
if (u.some((a) => a === null))
|
|
130
|
+
return null;
|
|
131
|
+
const l = u;
|
|
132
|
+
if (l.length < D)
|
|
133
|
+
return null;
|
|
134
|
+
const p = $(
|
|
135
|
+
l.map((a) => a.position)
|
|
136
|
+
), d = l.map((a, g) => ({
|
|
137
|
+
color: a.color,
|
|
138
|
+
id: L(),
|
|
139
|
+
position: p[g]
|
|
140
|
+
}));
|
|
141
|
+
return { angle: i, stops: S(d), type: e };
|
|
142
|
+
}
|
|
143
|
+
function A(n) {
|
|
144
|
+
const t = S(n.stops).map((r) => `${r.color} ${Math.round(r.position)}%`).join(", ");
|
|
145
|
+
return n.type === h.Radial ? `radial-gradient(circle at center, ${t})` : `linear-gradient(${Math.round(x(n.angle))}deg, ${t})`;
|
|
146
|
+
}
|
|
147
|
+
function C(n, t) {
|
|
148
|
+
if (n.length === 0)
|
|
149
|
+
return "";
|
|
150
|
+
const e = S(n), r = e[0], o = e[e.length - 1];
|
|
151
|
+
if (t <= r.position)
|
|
152
|
+
return new f(r.color).toRgbString();
|
|
153
|
+
if (t >= o.position)
|
|
154
|
+
return new f(o.color).toRgbString();
|
|
155
|
+
const i = e.findIndex((g) => g.position >= t), s = e[i], c = e[i - 1], u = s.position - c.position, l = u === 0 ? 1 : (t - c.position) / u, p = new f(c.color).toRgb(), d = new f(s.color).toRgb(), a = (g, w) => Math.round(g + (w - g) * l);
|
|
156
|
+
return new f({
|
|
157
|
+
a: p.a + (d.a - p.a) * l,
|
|
158
|
+
b: a(p.b, d.b),
|
|
159
|
+
g: a(p.g, d.g),
|
|
160
|
+
r: a(p.r, d.r)
|
|
161
|
+
}).toRgbString();
|
|
162
|
+
}
|
|
163
|
+
export {
|
|
164
|
+
E as C,
|
|
165
|
+
h as G,
|
|
166
|
+
D as M,
|
|
167
|
+
I as a,
|
|
168
|
+
A as b,
|
|
169
|
+
L as c,
|
|
170
|
+
R as d,
|
|
171
|
+
C as e,
|
|
172
|
+
W as i,
|
|
173
|
+
x as n,
|
|
174
|
+
y as p,
|
|
175
|
+
S as s
|
|
176
|
+
};
|
|
@@ -4,7 +4,7 @@ import { c as y } from "./component.styles.CAS3c9pM.js";
|
|
|
4
4
|
import { i as u } from "./lit-element.jLBm65_O.js";
|
|
5
5
|
import { D as p } from "./content-builder.CBBdfVOl.js";
|
|
6
6
|
import { c as w } from "./custom-element.L4WJXn1j.js";
|
|
7
|
-
import { L as P } from "./i18n.
|
|
7
|
+
import { L as P } from "./i18n.GGbM-Gif.js";
|
|
8
8
|
import { w as z } from "./watch.DJF5K-8U.js";
|
|
9
9
|
import { g as M, a as m } from "./responsive.BmBJSzC4.js";
|
|
10
10
|
import { r as C } from "./state.CSDxrqLd.js";
|
|
@@ -162,6 +162,7 @@ const b = {
|
|
|
162
162
|
addCurrent: "Add current",
|
|
163
163
|
addField: "Add field",
|
|
164
164
|
addFolderCard: "Add folder card",
|
|
165
|
+
addGradientStop: "Add stop",
|
|
165
166
|
addLimitExceeded: (e) => `Cannot add more than ${e} fields at a time. Please modify your selection. Then add another set of fields.`,
|
|
166
167
|
addMarker: "Add marker",
|
|
167
168
|
addNewCustomColumn: "Add new custom column",
|
|
@@ -670,7 +671,11 @@ const b = {
|
|
|
670
671
|
goToFirstPage: "Go to first page",
|
|
671
672
|
goToLastPage: "Go to last page",
|
|
672
673
|
goToSlide: (e, t) => `Go to slide ${e} of ${t}`,
|
|
674
|
+
gradient: "Gradient",
|
|
675
|
+
gradientAngle: "Gradient angle",
|
|
673
676
|
gradientEffect: "Gradient effect",
|
|
677
|
+
gradientStopNumber: (e) => `Color stop ${e}`,
|
|
678
|
+
gradientStops: "Gradient color stops",
|
|
674
679
|
grid: "Grid",
|
|
675
680
|
groupBy: "Group by",
|
|
676
681
|
guttersWidth: "Gutters width",
|
|
@@ -681,6 +686,7 @@ const b = {
|
|
|
681
686
|
height: "Height",
|
|
682
687
|
heightMode: "Height mode",
|
|
683
688
|
help: "Help",
|
|
689
|
+
hex: "Hex",
|
|
684
690
|
hexFormat: "HEX format",
|
|
685
691
|
hideCode: "Hide code",
|
|
686
692
|
hideColumn: "Hide column",
|
|
@@ -1002,6 +1008,7 @@ const b = {
|
|
|
1002
1008
|
quality: "Quality",
|
|
1003
1009
|
qualityHelpText: "From 1 to 100. 1 = Worst. 100 = Best. Supported Image Formats: JPG, JPEG.",
|
|
1004
1010
|
quote: "Quote",
|
|
1011
|
+
radial: "Radial",
|
|
1005
1012
|
radixPoint: "Radix Point",
|
|
1006
1013
|
read: "read",
|
|
1007
1014
|
readingMode: "Reading mode",
|
|
@@ -1017,6 +1024,7 @@ const b = {
|
|
|
1017
1024
|
remove: "Remove",
|
|
1018
1025
|
removeBlock: "Remove block",
|
|
1019
1026
|
removeFolder: (e) => e > 1 ? `Remove ${e} folders` : "Remove folder",
|
|
1027
|
+
removeGradientStop: "Remove color stop",
|
|
1020
1028
|
renderAudio: "Render audio",
|
|
1021
1029
|
replace: "Replace",
|
|
1022
1030
|
replaceAll: "Replace all",
|
|
@@ -1082,6 +1090,7 @@ const b = {
|
|
|
1082
1090
|
second: "Second",
|
|
1083
1091
|
secondary: "Secondary",
|
|
1084
1092
|
sectionBackground: "Section background",
|
|
1093
|
+
sectionBodyMaxWidth: "Section body max width",
|
|
1085
1094
|
sectionStyle: "Section style",
|
|
1086
1095
|
sectionTitles: "Section titles",
|
|
1087
1096
|
securityPoint: "Security Point",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as r, C as p } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as g } from "./component.styles.CAS3c9pM.js";
|
|
3
3
|
import { c as h } from "./custom-element.L4WJXn1j.js";
|
|
4
|
-
import { L as m } from "./i18n.
|
|
4
|
+
import { L as m } from "./i18n.GGbM-Gif.js";
|
|
5
5
|
import { r as f } from "./state.CSDxrqLd.js";
|
|
6
6
|
import { e as v } from "./query.BBf1UFkC.js";
|
|
7
7
|
import { e as y } from "./class-map.BiVq-cVR.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as r, C as d } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as h } from "./component.styles.CAS3c9pM.js";
|
|
3
3
|
import { c as y } from "./custom-element.L4WJXn1j.js";
|
|
4
|
-
import { L as u } from "./i18n.
|
|
4
|
+
import { L as u } from "./i18n.GGbM-Gif.js";
|
|
5
5
|
import { w as g } from "./watch.DJF5K-8U.js";
|
|
6
6
|
import { i as b, x as p } from "./lit-element.jLBm65_O.js";
|
|
7
7
|
import { e as v } from "./query.BBf1UFkC.js";
|
|
@@ -4,7 +4,7 @@ import { a as oe } from "./index.Cpamj0jB.js";
|
|
|
4
4
|
import { P as Te } from "./position-picker.qkbJlboF.js";
|
|
5
5
|
import { c as Ae } from "./custom-element.L4WJXn1j.js";
|
|
6
6
|
import { d as Oe } from "./debounce.DaHuiSGU.js";
|
|
7
|
-
import { L as Ze } from "./i18n.
|
|
7
|
+
import { L as Ze } from "./i18n.GGbM-Gif.js";
|
|
8
8
|
import { w as M } from "./watch.DJF5K-8U.js";
|
|
9
9
|
import { a as Ie } from "./url.CGdWC06g.js";
|
|
10
10
|
import { i as le, E as X, x as L } from "./lit-element.jLBm65_O.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { C as z } from "./typography.BLYdTF0n.js";
|
|
2
2
|
import { n, C as E } from "./lib-cortex-element.CVMmyPMC.js";
|
|
3
3
|
import { c as N } from "./component.styles.CAS3c9pM.js";
|
|
4
|
-
import { s as O } from "./folder-select.
|
|
4
|
+
import { s as O } from "./folder-select.vvuA1oj1.js";
|
|
5
5
|
import { E as S, B as W } from "./content-builder.CBBdfVOl.js";
|
|
6
6
|
import { c as M } from "./custom-element.L4WJXn1j.js";
|
|
7
|
-
import { L as P } from "./i18n.
|
|
7
|
+
import { L as P } from "./i18n.GGbM-Gif.js";
|
|
8
8
|
import { w as k } from "./watch.DJF5K-8U.js";
|
|
9
9
|
import { B as U, E as F, i as V, x as h } from "./lit-element.jLBm65_O.js";
|
|
10
10
|
import { r as g } from "./state.CSDxrqLd.js";
|
|
@@ -13,22 +13,22 @@ import { b as j } from "./_baseIteratee.sC2wLi2m.js";
|
|
|
13
13
|
import { a as H } from "./toString.B1zKIiZc.js";
|
|
14
14
|
import { b as J } from "./cloneDeep.tKGbEwzn.js";
|
|
15
15
|
import { c as X } from "./_baseClone.ipmFlCAx.js";
|
|
16
|
-
import { C as Y, I as Q, t as Z, c as tt, a as et, b as ot, d as st, e as rt, f as it, g as at, h as nt, i as lt, j as ct, k as pt, l as ht, m as dt, n as ut, o as mt, p as ft, q as gt, r as bt, s as yt, O as xt } from "./types.
|
|
17
|
-
import { C as Ct } from "./button.
|
|
16
|
+
import { C as Y, I as Q, t as Z, c as tt, a as et, b as ot, d as st, e as rt, f as it, g as at, h as nt, i as lt, j as ct, k as pt, l as ht, m as dt, n as ut, o as mt, p as ft, q as gt, r as bt, s as yt, O as xt } from "./types.B0rTkC1E.js";
|
|
17
|
+
import { C as Ct } from "./button.OHEYWSrR.js";
|
|
18
18
|
import wt from "../components/button-group.js";
|
|
19
19
|
import vt from "../components/card.js";
|
|
20
20
|
import kt from "../components/checkbox.js";
|
|
21
|
-
import { C as $t, D as _ } from "./dialog.
|
|
21
|
+
import { C as $t, D as _ } from "./dialog.y1aI4Fx-.js";
|
|
22
22
|
import Tt from "../components/divider.js";
|
|
23
23
|
import At from "../components/dropdown.js";
|
|
24
24
|
import St from "../components/grid.js";
|
|
25
25
|
import Ft from "../components/grid-item.js";
|
|
26
26
|
import { C as Pt } from "./icon.BLXWp6CU.js";
|
|
27
|
-
import { C as _t } from "./input.
|
|
27
|
+
import { C as _t } from "./input.B-pldMRS.js";
|
|
28
28
|
import Dt from "../components/line-clamp.js";
|
|
29
29
|
import Rt from "../components/menu.js";
|
|
30
|
-
import { C as It } from "./menu-item.
|
|
31
|
-
import { C as qt } from "./option.
|
|
30
|
+
import { C as It } from "./menu-item.QBn0h6Ml.js";
|
|
31
|
+
import { C as qt } from "./option.CVt288Bw.js";
|
|
32
32
|
import Lt from "../components/radio.js";
|
|
33
33
|
import Bt from "../components/radio-card.js";
|
|
34
34
|
import zt from "../components/radio-group.js";
|
|
@@ -36,14 +36,14 @@ import Et from "../components/select.js";
|
|
|
36
36
|
import Nt from "../components/space.js";
|
|
37
37
|
import Ot from "../components/switch.js";
|
|
38
38
|
import Mt from "../components/tab.js";
|
|
39
|
-
import { C as Vt } from "./tab-group.
|
|
39
|
+
import { C as Vt } from "./tab-group.Ci9KAAG4.js";
|
|
40
40
|
import jt from "../components/tab-panel.js";
|
|
41
41
|
import Gt from "../components/textarea.js";
|
|
42
42
|
import Kt from "../components/tooltip.js";
|
|
43
43
|
import Wt from "../components/visually-hidden.js";
|
|
44
44
|
import Ut from "../components/bicolor-picker.js";
|
|
45
45
|
import Ht from "../components/border-input-group.js";
|
|
46
|
-
import { C as Jt, a as Xt } from "./confirm-popover.
|
|
46
|
+
import { C as Jt, a as Xt } from "./confirm-popover.BD8dOAqb.js";
|
|
47
47
|
import Yt from "../components/corner-position-input-group.js";
|
|
48
48
|
import Qt from "../components/dynamic-select.js";
|
|
49
49
|
import Zt from "../components/padding-input-group.js";
|
|
@@ -59,7 +59,7 @@ import { n as y } from "./when.Dr1es41R.js";
|
|
|
59
59
|
import { b as ce } from "./_baseXor.BCxbgizO.js";
|
|
60
60
|
import { a as pe, i as L, b as he } from "./isArrayLikeObject.D7afXo-f.js";
|
|
61
61
|
import { i as de } from "./isEmpty.DtTJTUcf.js";
|
|
62
|
-
import { u as G } from "./asset-link-format.
|
|
62
|
+
import { u as G } from "./asset-link-format.DQQbLL7M.js";
|
|
63
63
|
import { r as ue } from "./choose.BTbF6BAn.js";
|
|
64
64
|
import { o as T } from "./if-defined.BRoBj_Rp.js";
|
|
65
65
|
import { o as me } from "./map.D8heArFD.js";
|