@orangelogic/design-system 2.71.0 → 2.72.0-pr84875.5
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.CG_yXtWK.js → asset.DWZ2Lzb6.js} +21 -22
- package/library/chunks/{color-swatch-group.CSctShAT.js → color-swatch-group.U2tGN6wW.js} +1 -1
- package/library/chunks/{list-editor.rlWs0RYN.js → list-editor.QCj3oq9e.js} +2 -2
- package/library/chunks/{table.DNwNmw8a.js → table.DWTaNNnC.js} +14 -3
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +1 -1
- package/library/components/color-swatch-group.js +2 -2
- package/library/components/list-editor.js +2 -2
- package/library/components/molecules.js +1 -1
- package/library/components/organisms.js +1 -1
- package/library/components/table.js +1 -1
- package/library/components/types.js +10719 -10551
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/table/table.d.ts +1 -1
- package/library/packages/events/src/cx-bento-range-change.d.ts +9 -0
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +44 -26
- package/library/packages/organisms/src/bento-grid/bento-layout.d.ts +44 -0
- package/library/packages/types/src/bento-grid.d.ts +37 -0
- package/library/react-web-component.d.ts +5 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h as i, A as T, a as
|
|
2
|
-
import { f as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
1
|
+
import { h as i, A as T, a as M } from "./endpoints.B7lcoc1N.js";
|
|
2
|
+
import { f as P, t as L } from "./toast.BXNbwZV8.js";
|
|
3
|
+
const C = "CoreField.LargeSizePreview", h = "CoreField.DocType", b = "Document.Title", j = "Document.CaptionLong", S = "Document.FileExtension", O = "CoreField.FileSize", N = "CoreField.Identifier", g = "CoreField.Keywords", R = "CoreField.MaxHeight", G = "CoreField.MaxWidth", x = "Document.RecordID", U = "CoreField.DocSubType", w = "CoreField.TitleWithFallback", I = "CoreField.OriginalFileName", F = "CoreField.UpdatedFileName", E = "CoreField.OriginalPreview";
|
|
4
|
+
function W(o) {
|
|
5
5
|
return !o || Object.keys(o).length === 0 ? {} : Object.entries(o).reduce(
|
|
6
6
|
(e, [t, r]) => !r || r.length === 0 ? e : t === "Types" ? {
|
|
7
7
|
...e,
|
|
@@ -128,14 +128,14 @@ async function q({
|
|
|
128
128
|
Fields: [
|
|
129
129
|
...c,
|
|
130
130
|
w,
|
|
131
|
-
|
|
131
|
+
C,
|
|
132
132
|
E,
|
|
133
133
|
g,
|
|
134
134
|
G,
|
|
135
135
|
R,
|
|
136
136
|
O,
|
|
137
137
|
h,
|
|
138
|
-
|
|
138
|
+
U,
|
|
139
139
|
N,
|
|
140
140
|
S,
|
|
141
141
|
x,
|
|
@@ -149,7 +149,7 @@ async function q({
|
|
|
149
149
|
SearchTerm: a || void 0,
|
|
150
150
|
SeeThru: l,
|
|
151
151
|
Start: u,
|
|
152
|
-
...
|
|
152
|
+
...W(s)
|
|
153
153
|
},
|
|
154
154
|
paramsSerializer: {
|
|
155
155
|
indexes: null
|
|
@@ -157,19 +157,19 @@ async function q({
|
|
|
157
157
|
responseType: "json",
|
|
158
158
|
transformResponse: [
|
|
159
159
|
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
160
|
-
(
|
|
161
|
-
facets:
|
|
162
|
-
items:
|
|
163
|
-
let p = n.fields[S] ?? "",
|
|
164
|
-
return p && !p.startsWith(".") && (p = "." + p),
|
|
165
|
-
docSubType: n.fields[
|
|
160
|
+
(D) => ({
|
|
161
|
+
facets: D.facets,
|
|
162
|
+
items: D.contentItems?.map((n) => {
|
|
163
|
+
let p = n.fields[S] ?? "", _ = n.fields[F] ?? "", m = n.fields[C] ?? "";
|
|
164
|
+
return p && !p.startsWith(".") && (p = "." + p), _ === "" && (_ = n.fields[I] ?? ""), p.toLowerCase() === ".gif" && (m = n.fields[E] ?? ""), {
|
|
165
|
+
docSubType: n.fields[U] ?? "",
|
|
166
166
|
docType: n.fields[h] ?? "",
|
|
167
167
|
extension: p,
|
|
168
168
|
height: n.fields[R] ?? "0",
|
|
169
169
|
id: n.recordID,
|
|
170
170
|
identifier: n.fields[N] ?? "",
|
|
171
|
-
imageUrl:
|
|
172
|
-
name:
|
|
171
|
+
imageUrl: m,
|
|
172
|
+
name: _ ?? "",
|
|
173
173
|
originalUrl: n.fields[E] ?? "",
|
|
174
174
|
recordId: n.fields[x] ?? "",
|
|
175
175
|
size: n.fields[O] ?? "0 MB",
|
|
@@ -181,7 +181,7 @@ async function q({
|
|
|
181
181
|
)
|
|
182
182
|
};
|
|
183
183
|
}) ?? [],
|
|
184
|
-
totalCount:
|
|
184
|
+
totalCount: D.totalCount
|
|
185
185
|
})
|
|
186
186
|
],
|
|
187
187
|
url: T.GET_CONTENT_V2
|
|
@@ -250,7 +250,7 @@ async function V({
|
|
|
250
250
|
formatsByDocType: t.formatsByDocType ?? {}
|
|
251
251
|
}
|
|
252
252
|
],
|
|
253
|
-
url:
|
|
253
|
+
url: M
|
|
254
254
|
})).data;
|
|
255
255
|
} catch {
|
|
256
256
|
return { formatsByDocType: {} };
|
|
@@ -259,26 +259,25 @@ async function V({
|
|
|
259
259
|
async function K(o, e) {
|
|
260
260
|
const t = new FormData();
|
|
261
261
|
t.append("InputStream", o);
|
|
262
|
-
const r = await
|
|
262
|
+
const r = await P(
|
|
263
263
|
T.UPLOAD_AND_GET_RESPONSE,
|
|
264
264
|
{
|
|
265
265
|
body: t,
|
|
266
266
|
method: "POST"
|
|
267
267
|
},
|
|
268
268
|
{
|
|
269
|
-
ByPassPermissionCheck: "true",
|
|
270
269
|
ClientFileName: o.name,
|
|
271
270
|
FolderRecordID: e?.imageUploadFolderID || ""
|
|
272
271
|
}
|
|
273
272
|
), a = r ? await r.json() : null;
|
|
274
|
-
return a ? a.downloadLink === "" ? (
|
|
273
|
+
return a ? a.downloadLink === "" ? (L(e?.errorUploadMessage || "", {
|
|
275
274
|
notificationType: "error"
|
|
276
|
-
}), "") : a.downloadLink : (
|
|
275
|
+
}), "") : a.downloadLink : (L(e?.errorUploadMessage || "", {
|
|
277
276
|
notificationType: "error"
|
|
278
277
|
}), "");
|
|
279
278
|
}
|
|
280
279
|
export {
|
|
281
|
-
|
|
280
|
+
C as D,
|
|
282
281
|
k as a,
|
|
283
282
|
H as b,
|
|
284
283
|
z as c,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from "../components/space.js";
|
|
2
|
-
import { C as $ } from "./table.
|
|
2
|
+
import { C as $ } from "./table.DWTaNNnC.js";
|
|
3
3
|
import { C as k } from "./typography.oDzoLbZS.js";
|
|
4
4
|
import { n as h, C as F } from "./lib-cortex-element.CVMmyPMC.js";
|
|
5
5
|
import { C, a as m } from "./color-swatch.9fo7Prlq.js";
|
|
@@ -9,7 +9,7 @@ import B from "../components/radio.js";
|
|
|
9
9
|
import K from "../components/radio-group.js";
|
|
10
10
|
import U from "../components/select.js";
|
|
11
11
|
import E from "../components/space.js";
|
|
12
|
-
import { C as H, H as V } from "./table.
|
|
12
|
+
import { C as H, H as V } from "./table.DWTaNNnC.js";
|
|
13
13
|
import { C as L } from "./typography.oDzoLbZS.js";
|
|
14
14
|
import { n as o, C as T } from "./lib-cortex-element.CVMmyPMC.js";
|
|
15
15
|
import W from "../components/dynamic-select.js";
|
|
@@ -30,7 +30,7 @@ import { n as N } from "./when.Dr1es41R.js";
|
|
|
30
30
|
import { t as ee } from "./toString.CL_lYXbK.js";
|
|
31
31
|
import { C as ae } from "./icon-button.Dxz2J4cg.js";
|
|
32
32
|
import { C as te } from "./image.Q7doiTcu.js";
|
|
33
|
-
import { a as ie, D as $ } from "./asset.
|
|
33
|
+
import { a as ie, D as $ } from "./asset.DWZ2Lzb6.js";
|
|
34
34
|
import { a as ne } from "./index.Cpamj0jB.js";
|
|
35
35
|
import { A as v } from "./content-builder.B4Tqoc6M.js";
|
|
36
36
|
import { e as se, t as w } from "./string.B_rEG27K.js";
|
|
@@ -1449,6 +1449,16 @@ const po = H`
|
|
|
1449
1449
|
text-align: center;
|
|
1450
1450
|
}
|
|
1451
1451
|
|
|
1452
|
+
.tabulator .tabulator-alert.tabulator-alert-state-loading {
|
|
1453
|
+
top: var(--header-height, var(--cx-spacing-3x-large));
|
|
1454
|
+
height: calc(100% - var(--header-height, var(--cx-spacing-3x-large)));
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
.tabulator.tabulator-header-hidden .tabulator-alert.tabulator-alert-state-loading {
|
|
1458
|
+
top: 0;
|
|
1459
|
+
height: 100%;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1452
1462
|
.tabulator .tabulator-alert .tabulator-alert-msg {
|
|
1453
1463
|
display: inline-block;
|
|
1454
1464
|
margin: 0 auto;
|
|
@@ -17036,13 +17046,13 @@ class Jl extends B {
|
|
|
17036
17046
|
if (e) {
|
|
17037
17047
|
for (this.clear(), this.dispatch("alert-show", t), this.type = t; this.msgElement.firstChild; )
|
|
17038
17048
|
this.msgElement.removeChild(this.msgElement.firstChild);
|
|
17039
|
-
this.msgElement.classList.add(this._typeClass());
|
|
17049
|
+
this.element.classList.add(this._typeClass()), this.msgElement.classList.add(this._typeClass());
|
|
17040
17050
|
let i;
|
|
17041
17051
|
typeof e == "function" ? i = e() : i = e, i instanceof HTMLElement ? this.msgElement.appendChild(i) : this.msgElement.innerHTML = S(String(i)), this.table.element.appendChild(this.element);
|
|
17042
17052
|
}
|
|
17043
17053
|
}
|
|
17044
17054
|
clear() {
|
|
17045
|
-
this.dispatch("alert-hide", this.type), this.element.parentNode && this.element.parentNode.removeChild(this.element), this.msgElement.classList.remove(this._typeClass());
|
|
17055
|
+
this.dispatch("alert-hide", this.type), this.element.parentNode && this.element.parentNode.removeChild(this.element), this.element.classList.remove(this._typeClass()), this.msgElement.classList.remove(this._typeClass()), this.type = null;
|
|
17046
17056
|
}
|
|
17047
17057
|
}
|
|
17048
17058
|
const ps = process.env.NODE_ENV === "development";
|
|
@@ -17178,7 +17188,8 @@ const it = process.env.NODE_ENV === "development", lt = class lt extends B {
|
|
|
17178
17188
|
return;
|
|
17179
17189
|
const e = typeof this.table.options.dataLoader == "function" ? this.table.options.dataLoader() : this.table.options.dataLoader, t = x`<cx-spinner aria-hidden="true"></cx-spinner>`, i = k(t);
|
|
17180
17190
|
e && this.table.alertManager?.alert(
|
|
17181
|
-
this.table.options.dataLoaderLoading || i
|
|
17191
|
+
this.table.options.dataLoaderLoading || i,
|
|
17192
|
+
"loading"
|
|
17182
17193
|
);
|
|
17183
17194
|
}
|
|
17184
17195
|
alertError() {
|
|
@@ -3,7 +3,7 @@ import { C as q } from "../chunks/button.D6S0sAOO.js";
|
|
|
3
3
|
import H from "./space.js";
|
|
4
4
|
import { C as W } from "../chunks/typography.oDzoLbZS.js";
|
|
5
5
|
import { n as l, C as F } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
|
-
import { b as rt, c as ht } from "../chunks/asset.
|
|
6
|
+
import { b as rt, c as ht } from "../chunks/asset.DWZ2Lzb6.js";
|
|
7
7
|
import { c as E } from "../chunks/component.styles.DMSLciL5.js";
|
|
8
8
|
import { T as c, U as o } from "../chunks/asset-link-format.BSRDqHg7.js";
|
|
9
9
|
import { c as N } from "../chunks/custom-element.L4WJXn1j.js";
|
|
@@ -70,7 +70,7 @@ import { default as ka } from "./stepper.js";
|
|
|
70
70
|
import { default as Ea } from "./switch.js";
|
|
71
71
|
import { default as La } from "./tab.js";
|
|
72
72
|
import { C as ja } from "../chunks/tab-group.euL1exrl.js";
|
|
73
|
-
import { C as za } from "../chunks/table.
|
|
73
|
+
import { C as za } from "../chunks/table.DWTaNNnC.js";
|
|
74
74
|
import { default as qa } from "./tab-panel.js";
|
|
75
75
|
import { default as Ka } from "./tag.js";
|
|
76
76
|
import { default as Wa } from "./textarea.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./space.js";
|
|
2
|
-
import "../chunks/table.
|
|
2
|
+
import "../chunks/table.DWTaNNnC.js";
|
|
3
3
|
import "../chunks/typography.oDzoLbZS.js";
|
|
4
4
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
5
5
|
import "../chunks/color-swatch.9fo7Prlq.js";
|
|
6
6
|
import "../chunks/component.styles.DMSLciL5.js";
|
|
7
|
-
import { C as w } from "../chunks/color-swatch-group.
|
|
7
|
+
import { C as w } from "../chunks/color-swatch-group.U2tGN6wW.js";
|
|
8
8
|
import "../chunks/content-builder.B4Tqoc6M.js";
|
|
9
9
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
10
10
|
import "../chunks/debounce.DaHuiSGU.js";
|
|
@@ -9,7 +9,7 @@ import "./radio.js";
|
|
|
9
9
|
import "./radio-group.js";
|
|
10
10
|
import "./select.js";
|
|
11
11
|
import "./space.js";
|
|
12
|
-
import "../chunks/table.
|
|
12
|
+
import "../chunks/table.DWTaNNnC.js";
|
|
13
13
|
import "../chunks/typography.oDzoLbZS.js";
|
|
14
14
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
15
15
|
import "./dynamic-select.js";
|
|
@@ -18,7 +18,7 @@ import "../chunks/custom-element.L4WJXn1j.js";
|
|
|
18
18
|
import "../chunks/debounce.DaHuiSGU.js";
|
|
19
19
|
import "../chunks/i18n.BU7mYVLM.js";
|
|
20
20
|
import "../chunks/watch.BCJD77bD.js";
|
|
21
|
-
import { c as E, C as F } from "../chunks/list-editor.
|
|
21
|
+
import { c as E, C as F } from "../chunks/list-editor.QCj3oq9e.js";
|
|
22
22
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
23
23
|
import "../chunks/state.CSDxrqLd.js";
|
|
24
24
|
import "../chunks/query.BBf1UFkC.js";
|
|
@@ -6,7 +6,7 @@ import { default as u } from "./corner-position-input-group.js";
|
|
|
6
6
|
import { C as m } from "../chunks/cropper.CQB3_qqG.js";
|
|
7
7
|
import { default as i } from "./dynamic-select.js";
|
|
8
8
|
import { C as c } from "../chunks/folder-select.B4PPWsoq.js";
|
|
9
|
-
import { C as P } from "../chunks/list-editor.
|
|
9
|
+
import { C as P } from "../chunks/list-editor.QCj3oq9e.js";
|
|
10
10
|
import { default as I } from "./masonry.js";
|
|
11
11
|
import { default as y } from "./padding-input-group.js";
|
|
12
12
|
import { default as w } from "./position-picker.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as a } from "./asset-link-format.js";
|
|
2
|
-
import { C as t } from "../chunks/color-swatch-group.
|
|
2
|
+
import { C as t } from "../chunks/color-swatch-group.U2tGN6wW.js";
|
|
3
3
|
import { C } from "../chunks/file-on-demand.DyPdfxfM.js";
|
|
4
4
|
export {
|
|
5
5
|
a as CxAssetLinkFormat,
|
|
@@ -10,7 +10,7 @@ import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
|
10
10
|
import "../chunks/component.styles.DMSLciL5.js";
|
|
11
11
|
import "../chunks/overlayscrollbars.XhGWx9Zk.js";
|
|
12
12
|
import "../chunks/pagination.I2BZVSB2.js";
|
|
13
|
-
import { A as F, i as P, j as S, d as g, g as v, b as y, k as A, l as D, c as I, a0 as f, a1 as h, D as E, m as G, E as j, n as H, F as K, o as L, p as V, q as k, G as q, r as B, s as J, t as N, I as O, u as Q, K as U, v as W, M as X, w as Y, x as Z, y as _, z as $, B as oo, J as eo, L as ao, P as so, e as lo, N as to, h as uo, O as ro, Q as Mo, U as io, V as po, f as mo, R as no, X as Co, W as Ro, S as co, Y as bo, Z as wo, T as To, a as xo, _ as zo, $ as Fo, C as Po } from "../chunks/table.
|
|
13
|
+
import { A as F, i as P, j as S, d as g, g as v, b as y, k as A, l as D, c as I, a0 as f, a1 as h, D as E, m as G, E as j, n as H, F as K, o as L, p as V, q as k, G as q, r as B, s as J, t as N, I as O, u as Q, K as U, v as W, M as X, w as Y, x as Z, y as _, z as $, B as oo, J as eo, L as ao, P as so, e as lo, N as to, h as uo, O as ro, Q as Mo, U as io, V as po, f as mo, R as no, X as Co, W as Ro, S as co, Y as bo, Z as wo, T as To, a as xo, _ as zo, $ as Fo, C as Po } from "../chunks/table.DWTaNNnC.js";
|
|
14
14
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
15
15
|
import "../chunks/i18n.BU7mYVLM.js";
|
|
16
16
|
import "../chunks/watch.BCJD77bD.js";
|