@orangelogic/design-system 2.71.0 → 2.72.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.
@@ -1,7 +1,7 @@
1
- import { h as i, A as T, a as U } from "./endpoints.B7lcoc1N.js";
2
- import { f as M, t as C } from "./toast.BXNbwZV8.js";
3
- const L = "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", P = "CoreField.DocSubType", w = "CoreField.TitleWithFallback", I = "CoreField.OriginalFileName", F = "CoreField.UpdatedFileName", E = "CoreField.OriginalPreview";
4
- function B(o) {
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
- L,
131
+ C,
132
132
  E,
133
133
  g,
134
134
  G,
135
135
  R,
136
136
  O,
137
137
  h,
138
- P,
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
- ...B(s)
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
- (m) => ({
161
- facets: m.facets,
162
- items: m.contentItems?.map((n) => {
163
- let p = n.fields[S] ?? "", D = n.fields[F] ?? "", _ = n.fields[L] ?? "";
164
- return p && !p.startsWith(".") && (p = "." + p), D === "" && (D = n.fields[I] ?? ""), p.toLowerCase() === ".gif" && (_ = n.fields[E] ?? ""), {
165
- docSubType: n.fields[P] ?? "",
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: D ?? "",
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: m.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: U
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 M(
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 === "" ? (C(e?.errorUploadMessage || "", {
273
+ return a ? a.downloadLink === "" ? (L(e?.errorUploadMessage || "", {
275
274
  notificationType: "error"
276
- }), "") : a.downloadLink : (C(e?.errorUploadMessage || "", {
275
+ }), "") : a.downloadLink : (L(e?.errorUploadMessage || "", {
277
276
  notificationType: "error"
278
277
  }), "");
279
278
  }
280
279
  export {
281
- L as D,
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.DNwNmw8a.js";
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.DNwNmw8a.js";
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.CG_yXtWK.js";
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.CG_yXtWK.js";
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.DNwNmw8a.js";
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.DNwNmw8a.js";
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.CSctShAT.js";
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.DNwNmw8a.js";
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.rlWs0RYN.js";
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.rlWs0RYN.js";
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.CSctShAT.js";
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.DNwNmw8a.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.DWTaNNnC.js";
14
14
  import "../chunks/custom-element.L4WJXn1j.js";
15
15
  import "../chunks/i18n.BU7mYVLM.js";
16
16
  import "../chunks/watch.BCJD77bD.js";
@@ -71,7 +71,7 @@ import { default as aqt } from "./stepper.js";
71
71
  import Kb from "./switch.js";
72
72
  import G2 from "./tab.js";
73
73
  import { C as K2, T as e9, a as t9, b as n9, g as SO } from "../chunks/tab-group.euL1exrl.js";
74
- import { C as r9 } from "../chunks/table.DNwNmw8a.js";
74
+ import { C as r9 } from "../chunks/table.DWTaNNnC.js";
75
75
  import i9 from "./tab-panel.js";
76
76
  import { default as cqt } from "./tag.js";
77
77
  import _K from "./textarea.js";
@@ -107,12 +107,12 @@ import { c as hh, b as VK } from "../chunks/capitalize.CNStXZBq.js";
107
107
  import { o as rr } from "../chunks/style-map.llVFPd__.js";
108
108
  import { r as wT, w as WK, i as gR, C as mR, a as vn, G as wi, S as Sr, b as ln, c as Kd, O as Mu, d as GK, t as c9, o as KK, g as jw, P as L_, f as PO, e as YK, h as XK } from "../chunks/index.xnuklZH8.js";
109
109
  import { D as Uqt, H as qqt, m as Vqt, u as Wqt, x as Gqt, p as Kqt, j as Yqt, k as Xqt, l as Jqt, y as Zqt, v as Qqt, s as eVt, q as tVt, n as nVt } from "../chunks/index.xnuklZH8.js";
110
- import { a as db, d as JK, e as ZK, D as R_, u as QK } from "../chunks/asset.CG_yXtWK.js";
110
+ import { a as db, d as JK, e as ZK, D as R_, u as QK } from "../chunks/asset.DWZ2Lzb6.js";
111
111
  import { H as fR } from "../chunks/slot.j5oheLJC.js";
112
112
  import { a as iVt, g as oVt } from "../chunks/slot.j5oheLJC.js";
113
113
  import { b as NO, G as gh, c as Gd, T as vR, d as fn, i as yR, g as eY, t as LO, u as tY, f as y1, h as nY, F as Cf, M as Vv } from "../chunks/string.B_rEG27K.js";
114
114
  import { a as sVt, e as cVt, p as lVt, s as dVt, l as uVt, j as pVt, k as hVt, m as gVt } from "../chunks/string.B_rEG27K.js";
115
- import { a as l9, u as Ju, I as bR, C as rY } from "../chunks/list-editor.rlWs0RYN.js";
115
+ import { a as l9, u as Ju, I as bR, C as rY } from "../chunks/list-editor.QCj3oq9e.js";
116
116
  import iY from "./bicolor-picker.js";
117
117
  import wR from "./border-input-group.js";
118
118
  import { C as fVt } from "../chunks/color-swatch.9fo7Prlq.js";
@@ -165,8 +165,8 @@ import { c as mg } from "../chunks/math.DqTA6ya4.js";
165
165
  import { b as KO, e as BY } from "../chunks/number.CjNxU7Xs.js";
166
166
  import { a as YVt, c as XVt, f as JVt, r as ZVt, s as QVt } from "../chunks/number.CjNxU7Xs.js";
167
167
  import { t as DR } from "../chunks/event-options.CYHYGOd8.js";
168
- import { a as Uw } from "../chunks/color-swatch-group.CSctShAT.js";
169
- import { C as tWt } from "../chunks/color-swatch-group.CSctShAT.js";
168
+ import { a as Uw } from "../chunks/color-swatch-group.U2tGN6wW.js";
169
+ import { C as tWt } from "../chunks/color-swatch-group.U2tGN6wW.js";
170
170
  import { t as zY } from "../chunks/converters.DkDtLstb.js";
171
171
  import { i as FY } from "../chunks/user-agent.D9aPuOyL.js";
172
172
  import { a as MR, U as f9 } from "../chunks/url.LjsR2sB5.js";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.71.0",
4
+ "version": "2.72.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -38,7 +38,7 @@ import { RowComponent, TabulatorFull as Tabulator } from './tabulator-tables';
38
38
  * @cssproperty [--header-font-size=var(--cx-font-size-small)] - The font size of the table header.
39
39
  * @cssproperty [--header-color=var(--cx-color-neutral-800)] - The color of the table header.
40
40
  * @cssproperty [--header-border-color=var(--cx-color-neutral-200)] - The color of the table header border.
41
- * @cssproperty [--header-height=auto] - The height of the table header.
41
+ * @cssproperty [--header-height=var(--cx-spacing-3x-large)] - The height of the table header.
42
42
  * @cssproperty [--header-horizontal-padding=var(--cx-spacing-2x-small)] - The horizontal padding of the table header.
43
43
  * @cssproperty [--cell-border-color=var(--cx-color-neutral-200)] - The color of the table cell border.
44
44
  * @cssproperty [--cell-horizontal-padding=var(--cx-spacing-2x-small)] - The horizontal padding of the table cell.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.71.0",
4
+ "version": "2.72.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {