@orangelogic/design-system 2.77.0 → 2.78.0-ci.3
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/{button.csCRiZzY.js → button.DS64Tr8Z.js} +2 -4
- package/library/chunks/{color-swatch-group.CKdXj10T.js → color-swatch-group.DLXAJdU4.js} +1 -1
- package/library/chunks/{confirm-popover.Kx6YyQwp.js → confirm-popover.BNjRvnN0.js} +1 -1
- package/library/chunks/{file-on-demand.BJZ5E8XT.js → file-on-demand.BTTdth3o.js} +4 -4
- package/library/chunks/{folder-select.BqLmIlj6.js → folder-select.B2qxSKA5.js} +1 -1
- package/library/chunks/{index.VbMreXxL.js → index.Bx0otwQo.js} +1 -1
- package/library/chunks/{list-editor.BzzQoZe1.js → list-editor.C2ZRwPIG.js} +2 -2
- package/library/chunks/{pagination.BXCr_5om.js → pagination.DZq0IZjI.js} +83 -73
- package/library/chunks/{tab-group.G24wrely.js → tab-group.Dg6a82ei.js} +1 -1
- package/library/chunks/{table.34yySlt-.js → table.COCT3Fsb.js} +664 -516
- package/library/chunks/url.Cj9cIQXJ.js +27 -0
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +4 -4
- package/library/components/button.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +2 -2
- package/library/components/confirm-popover.js +2 -2
- package/library/components/dynamic-select.js +1 -1
- package/library/components/element-clamp.js +1 -1
- package/library/components/file-on-demand.js +5 -5
- package/library/components/folder-select.js +1 -1
- package/library/components/line-clamp.js +1 -1
- package/library/components/list-editor.js +3 -3
- package/library/components/molecules.js +3 -3
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +2 -2
- package/library/components/select.js +156 -127
- package/library/components/tab-group.js +2 -2
- package/library/components/table.js +3 -3
- package/library/components/textarea.js +200 -174
- package/library/components/types.js +10217 -10205
- package/library/components/video.js +3521 -3499
- package/library/package.json +4 -1
- package/library/packages/atoms/src/components/pagination/pagination.d.ts +2 -1
- package/library/packages/atoms/src/components/select/select.d.ts +11 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/Edit.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +32 -1
- package/library/packages/atoms/src/components/textarea/textarea.d.ts +19 -4
- package/library/packages/organisms/src/carousel/carousel.d.ts +2 -0
- package/library/packages/types/src/table.d.ts +2 -0
- package/library/packages/types/src/textarea.d.ts +4 -0
- package/library/packages/utils/src/url/url.d.ts +9 -0
- package/library/react-web-component.d.ts +10 -6
- package/library/utils.js +34 -33
- package/package.json +4 -1
- package/library/chunks/url.LjsR2sB5.js +0 -15
|
@@ -132,8 +132,7 @@ let e = class extends v {
|
|
|
132
132
|
}
|
|
133
133
|
render() {
|
|
134
134
|
const t = this.isLink() && !this.forceButtonNavigation, s = t ? b`a` : b`button`;
|
|
135
|
-
return h
|
|
136
|
-
<${s}
|
|
135
|
+
return h`<${s}
|
|
137
136
|
part="base"
|
|
138
137
|
class=${D({
|
|
139
138
|
button: !0,
|
|
@@ -195,8 +194,7 @@ let e = class extends v {
|
|
|
195
194
|
`
|
|
196
195
|
)}
|
|
197
196
|
${f(this.loading, () => h`<cx-spinner part="spinner"></cx-spinner>`)}
|
|
198
|
-
</${s}
|
|
199
|
-
`;
|
|
197
|
+
</${s}>`;
|
|
200
198
|
}
|
|
201
199
|
};
|
|
202
200
|
e.styles = [g, _];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from "../components/space.js";
|
|
2
|
-
import { C as $ } from "./table.
|
|
2
|
+
import { C as $ } from "./table.COCT3Fsb.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.BuUP5yG4.js";
|
|
@@ -15,7 +15,7 @@ import { c as U } from "./repeat.DbF2p5ae.js";
|
|
|
15
15
|
import { n as p } from "./when.Dr1es41R.js";
|
|
16
16
|
import { a as jt, i as It, c as Bt, b as dt } from "./_baseUniq.BUihBa8c.js";
|
|
17
17
|
import Mt from "../components/avatar.js";
|
|
18
|
-
import { C as Vt } from "./button.
|
|
18
|
+
import { C as Vt } from "./button.DS64Tr8Z.js";
|
|
19
19
|
import { C as Ht } from "./dialog.BdXQkCKY.js";
|
|
20
20
|
import Wt from "../components/divider.js";
|
|
21
21
|
import ot from "../components/format-bytes.js";
|
|
@@ -26,14 +26,14 @@ import At from "../components/relative-time.js";
|
|
|
26
26
|
import Yt from "../components/select.js";
|
|
27
27
|
import Kt from "../components/space.js";
|
|
28
28
|
import Xt from "../components/tab.js";
|
|
29
|
-
import { C as Zt } from "./tab-group.
|
|
29
|
+
import { C as Zt } from "./tab-group.Dg6a82ei.js";
|
|
30
30
|
import Jt from "../components/tab-panel.js";
|
|
31
31
|
import Dt from "../components/tooltip.js";
|
|
32
32
|
import { C as nt } from "./typography.oDzoLbZS.js";
|
|
33
|
-
import { C as Qt } from "./confirm-popover.
|
|
33
|
+
import { C as Qt } from "./confirm-popover.BNjRvnN0.js";
|
|
34
34
|
import { d as te } from "./debounce.DaHuiSGU.js";
|
|
35
35
|
import { a as et } from "./number.CjNxU7Xs.js";
|
|
36
|
-
import { i as K, a as ht } from "./url.
|
|
36
|
+
import { i as K, a as ht } from "./url.Cj9cIQXJ.js";
|
|
37
37
|
import { a as ee } from "./toString.CL_lYXbK.js";
|
|
38
38
|
import { S as pt, i as se } from "./isObjectLike.z36Fu426.js";
|
|
39
39
|
import ie from "../components/progress-bar.js";
|
|
@@ -12,7 +12,7 @@ import { x as f, i as ae } from "./lit-element.jLBm65_O.js";
|
|
|
12
12
|
import { r as x } from "./state.CSDxrqLd.js";
|
|
13
13
|
import { e as B } from "./query.BBf1UFkC.js";
|
|
14
14
|
import { r as se } from "./choose.BTbF6BAn.js";
|
|
15
|
-
import { C as W } from "./button.
|
|
15
|
+
import { C as W } from "./button.DS64Tr8Z.js";
|
|
16
16
|
import { d as le } from "./debounce.DaHuiSGU.js";
|
|
17
17
|
import { o as y } from "./if-defined.BRoBj_Rp.js";
|
|
18
18
|
import { c as q } from "./repeat.DbF2p5ae.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as _ } from "./button.
|
|
1
|
+
import { C as _ } from "./button.DS64Tr8Z.js";
|
|
2
2
|
import { C as q, D as G } from "./dialog.BdXQkCKY.js";
|
|
3
3
|
import j from "../components/grid.js";
|
|
4
4
|
import P from "../components/grid-item.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.COCT3Fsb.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";
|
|
@@ -5,12 +5,12 @@ import { c as f } from "./custom-element.L4WJXn1j.js";
|
|
|
5
5
|
import { L as C } from "./i18n.BUW7B9hr.js";
|
|
6
6
|
import { c as l } from "./math.DqTA6ya4.js";
|
|
7
7
|
import { w as x } from "./watch.BCJD77bD.js";
|
|
8
|
-
import { i as z, x as
|
|
8
|
+
import { i as z, x as p } from "./lit-element.jLBm65_O.js";
|
|
9
9
|
import { r as d } from "./state.CSDxrqLd.js";
|
|
10
10
|
import { e as S } from "./class-map.BiVq-cVR.js";
|
|
11
11
|
import { c as m } from "./repeat.DbF2p5ae.js";
|
|
12
|
-
import { n as
|
|
13
|
-
import { C as $ } from "./button.
|
|
12
|
+
import { n as r } from "./when.Dr1es41R.js";
|
|
13
|
+
import { C as $ } from "./button.DS64Tr8Z.js";
|
|
14
14
|
import v from "../components/input.js";
|
|
15
15
|
import { C as w } from "./option.Csqefux_.js";
|
|
16
16
|
import P from "../components/select.js";
|
|
@@ -94,10 +94,10 @@ const O = z`
|
|
|
94
94
|
color: var(--cx-color-primary);
|
|
95
95
|
}
|
|
96
96
|
`;
|
|
97
|
-
var
|
|
98
|
-
for (var o =
|
|
99
|
-
(u = t[h]) && (o = (
|
|
100
|
-
return
|
|
97
|
+
var M = Object.defineProperty, D = Object.getOwnPropertyDescriptor, a = (t, i, s, g) => {
|
|
98
|
+
for (var o = g > 1 ? void 0 : g ? D(i, s) : i, h = t.length - 1, u; h >= 0; h--)
|
|
99
|
+
(u = t[h]) && (o = (g ? u(i, s, o) : u(o)) || o);
|
|
100
|
+
return g && o && M(i, s, o), o;
|
|
101
101
|
};
|
|
102
102
|
let e = class extends b {
|
|
103
103
|
constructor() {
|
|
@@ -121,6 +121,9 @@ let e = class extends b {
|
|
|
121
121
|
get nextDisabled() {
|
|
122
122
|
return this._pageIndex >= this._pageCount;
|
|
123
123
|
}
|
|
124
|
+
get hasMultiplePages() {
|
|
125
|
+
return this._pageCount > 1;
|
|
126
|
+
}
|
|
124
127
|
updatePageCount() {
|
|
125
128
|
const t = Number.isFinite(this.pageSize) && this.pageSize > 0 ? this.pageSize : 1;
|
|
126
129
|
this._pageCount = Math.max(1, Math.ceil(this.count / t)), this.pageIndex = l(this.pageIndex, 1, this._pageCount);
|
|
@@ -160,7 +163,7 @@ let e = class extends b {
|
|
|
160
163
|
this._pageInputValue = this.pageIndex.toString();
|
|
161
164
|
}
|
|
162
165
|
renderCounterInput() {
|
|
163
|
-
return
|
|
166
|
+
return p`<cx-input
|
|
164
167
|
part="pagination-input"
|
|
165
168
|
class="pagination__page-input"
|
|
166
169
|
type="text"
|
|
@@ -197,7 +200,7 @@ let e = class extends b {
|
|
|
197
200
|
i && (this.pageIndex = Number(i.dataset.page));
|
|
198
201
|
}
|
|
199
202
|
renderPageButton(t) {
|
|
200
|
-
return
|
|
203
|
+
return p`
|
|
201
204
|
<cx-button
|
|
202
205
|
data-page=${t}
|
|
203
206
|
variant="text"
|
|
@@ -212,17 +215,17 @@ let e = class extends b {
|
|
|
212
215
|
`;
|
|
213
216
|
}
|
|
214
217
|
renderPageButtons() {
|
|
215
|
-
const t = Math.floor((this.paginationButtonCount - 1) / 2), i = Math.ceil((this.paginationButtonCount - 1) / 2),
|
|
218
|
+
const t = Math.floor((this.paginationButtonCount - 1) / 2), i = Math.ceil((this.paginationButtonCount - 1) / 2), s = Math.max(
|
|
216
219
|
1,
|
|
217
220
|
this._pageCount - this.pageIndex + t + 1 < this.paginationButtonCount ? this._pageCount - this.paginationButtonCount + 1 : this.pageIndex - t
|
|
218
|
-
),
|
|
221
|
+
), g = Math.min(
|
|
219
222
|
this._pageCount,
|
|
220
223
|
this.pageIndex <= i ? this.paginationButtonCount : this.pageIndex + i
|
|
221
224
|
);
|
|
222
|
-
return
|
|
225
|
+
return p`
|
|
223
226
|
<div class="pagination__pages" @click=${this.handlePageClick}>
|
|
224
227
|
${m(
|
|
225
|
-
Array.from({ length:
|
|
228
|
+
Array.from({ length: g - s + 1 }, (o, h) => h + s),
|
|
226
229
|
(o) => o,
|
|
227
230
|
(o) => this.renderPageButton(o)
|
|
228
231
|
)}
|
|
@@ -230,15 +233,17 @@ let e = class extends b {
|
|
|
230
233
|
`;
|
|
231
234
|
}
|
|
232
235
|
renderPageCount() {
|
|
233
|
-
return this.showPaginationInput ?
|
|
234
|
-
${this.renderCounterInput()}
|
|
235
|
-
<cx-typography variant="body3">${this.localize.term("itemOfTotal", "", this._pageCount)}</cx-typography>
|
|
236
|
-
</cx-space>` : s`<cx-typography variant="body3" class="pagination_count">
|
|
236
|
+
return !this.showPaginationInput || !this.hasMultiplePages ? p`<cx-typography variant="body3" class="pagination_count">
|
|
237
237
|
${this.localize.term("itemOfTotal", this.pageIndex, this._pageCount)}
|
|
238
|
-
</cx-typography
|
|
238
|
+
</cx-typography>` : p`<cx-space class="pagination_count">
|
|
239
|
+
${this.renderCounterInput()}
|
|
240
|
+
<cx-typography variant="body3">
|
|
241
|
+
${this.localize.term("itemOfTotal", "", this._pageCount)}
|
|
242
|
+
</cx-typography>
|
|
243
|
+
</cx-space>`;
|
|
239
244
|
}
|
|
240
245
|
renderRowCount() {
|
|
241
|
-
return
|
|
246
|
+
return p`<cx-typography variant="body3" class="pagination_count">
|
|
242
247
|
${this.localize.term(
|
|
243
248
|
"itemRangeOfTotal",
|
|
244
249
|
this.pageStart,
|
|
@@ -248,11 +253,11 @@ let e = class extends b {
|
|
|
248
253
|
</cx-typography>`;
|
|
249
254
|
}
|
|
250
255
|
render() {
|
|
251
|
-
return
|
|
256
|
+
return p`
|
|
252
257
|
<div class="pagination">
|
|
253
|
-
${
|
|
258
|
+
${r(
|
|
254
259
|
this.pageSizeOptions.length > 1,
|
|
255
|
-
() =>
|
|
260
|
+
() => p`
|
|
256
261
|
<label class="pagination__label__container">
|
|
257
262
|
<cx-typography variant="body3" class="pagination__label">
|
|
258
263
|
${this.label}
|
|
@@ -267,7 +272,7 @@ let e = class extends b {
|
|
|
267
272
|
${m(
|
|
268
273
|
this.pageSizeOptions,
|
|
269
274
|
(t) => t,
|
|
270
|
-
(t) =>
|
|
275
|
+
(t) => p`
|
|
271
276
|
<cx-option value=${t}>${t}</cx-option>
|
|
272
277
|
`
|
|
273
278
|
)}
|
|
@@ -275,70 +280,75 @@ let e = class extends b {
|
|
|
275
280
|
</label>
|
|
276
281
|
`
|
|
277
282
|
)}
|
|
278
|
-
${
|
|
283
|
+
${r(
|
|
279
284
|
this.paginationCounter === c.Both || this.paginationCounter === c.Rows,
|
|
280
285
|
() => this.renderRowCount(),
|
|
281
286
|
() => this.renderPageCount()
|
|
282
287
|
)}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
+
${r(
|
|
289
|
+
this.hasMultiplePages,
|
|
290
|
+
() => p`
|
|
291
|
+
<div class="pagination__navigation-buttons">
|
|
292
|
+
${r(
|
|
293
|
+
this.showFirst,
|
|
294
|
+
() => p`
|
|
295
|
+
<cx-tooltip hoist content=${this.localize.term("first")}>
|
|
296
|
+
<cx-icon-button
|
|
297
|
+
class="pagination__first"
|
|
298
|
+
label=${this.localize.term("first")}
|
|
299
|
+
name="first_page"
|
|
300
|
+
size=${this.iconButtonSize}
|
|
301
|
+
?disabled=${this.prevDisabled}
|
|
302
|
+
@click=${this.handleFirst}
|
|
303
|
+
></cx-icon-button>
|
|
304
|
+
</cx-tooltip>
|
|
305
|
+
`
|
|
306
|
+
)}
|
|
307
|
+
<cx-tooltip hoist content=${this.localize.term("previous")}>
|
|
288
308
|
<cx-icon-button
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
309
|
+
part="back-icon"
|
|
310
|
+
class="pagination__back"
|
|
311
|
+
label=${this.localize.term("previous")}
|
|
312
|
+
name=${this.backIconName}
|
|
292
313
|
size=${this.iconButtonSize}
|
|
293
314
|
?disabled=${this.prevDisabled}
|
|
294
|
-
@click=${this.
|
|
315
|
+
@click=${this.handleBack}
|
|
295
316
|
></cx-icon-button>
|
|
296
317
|
</cx-tooltip>
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
label=${this.localize.term("previous")}
|
|
304
|
-
name=${this.backIconName}
|
|
305
|
-
size=${this.iconButtonSize}
|
|
306
|
-
?disabled=${this.prevDisabled}
|
|
307
|
-
@click=${this.handleBack}
|
|
308
|
-
></cx-icon-button>
|
|
309
|
-
</cx-tooltip>
|
|
310
|
-
${g(
|
|
311
|
-
this.paginationCounter === c.Both,
|
|
312
|
-
() => this.renderPageCount()
|
|
313
|
-
)}
|
|
314
|
-
${g(this.showPaginationButtons, () => this.renderPageButtons())}
|
|
315
|
-
<cx-tooltip hoist content=${this.localize.term("next")}>
|
|
316
|
-
<cx-icon-button
|
|
317
|
-
part="next-icon"
|
|
318
|
-
class="pagination__forward"
|
|
319
|
-
label=${this.localize.term("next")}
|
|
320
|
-
name=${this.nextIconName}
|
|
321
|
-
size=${this.iconButtonSize}
|
|
322
|
-
?disabled=${this.nextDisabled}
|
|
323
|
-
@click=${this.handleForward}
|
|
324
|
-
></cx-icon-button>
|
|
325
|
-
</cx-tooltip>
|
|
326
|
-
${g(
|
|
327
|
-
this.showLast,
|
|
328
|
-
() => s`
|
|
329
|
-
<cx-tooltip hoist content=${this.localize.term("last")}>
|
|
318
|
+
${r(
|
|
319
|
+
this.paginationCounter === c.Both,
|
|
320
|
+
() => this.renderPageCount()
|
|
321
|
+
)}
|
|
322
|
+
${r(this.showPaginationButtons, () => this.renderPageButtons())}
|
|
323
|
+
<cx-tooltip hoist content=${this.localize.term("next")}>
|
|
330
324
|
<cx-icon-button
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
325
|
+
part="next-icon"
|
|
326
|
+
class="pagination__forward"
|
|
327
|
+
label=${this.localize.term("next")}
|
|
328
|
+
name=${this.nextIconName}
|
|
334
329
|
size=${this.iconButtonSize}
|
|
335
330
|
?disabled=${this.nextDisabled}
|
|
336
|
-
@click=${this.
|
|
331
|
+
@click=${this.handleForward}
|
|
337
332
|
></cx-icon-button>
|
|
338
333
|
</cx-tooltip>
|
|
339
|
-
|
|
334
|
+
${r(
|
|
335
|
+
this.showLast,
|
|
336
|
+
() => p`
|
|
337
|
+
<cx-tooltip hoist content=${this.localize.term("last")}>
|
|
338
|
+
<cx-icon-button
|
|
339
|
+
class="pagination__last"
|
|
340
|
+
label=${this.localize.term("last")}
|
|
341
|
+
name="last_page"
|
|
342
|
+
size=${this.iconButtonSize}
|
|
343
|
+
?disabled=${this.nextDisabled}
|
|
344
|
+
@click=${this.handleLast}
|
|
345
|
+
></cx-icon-button>
|
|
346
|
+
</cx-tooltip>
|
|
347
|
+
`
|
|
348
|
+
)}
|
|
349
|
+
</div>
|
|
350
|
+
`
|
|
340
351
|
)}
|
|
341
|
-
</div>
|
|
342
352
|
</div>
|
|
343
353
|
`;
|
|
344
354
|
}
|
|
@@ -362,7 +372,7 @@ a([
|
|
|
362
372
|
attribute: "page-size-options",
|
|
363
373
|
converter: {
|
|
364
374
|
fromAttribute: (t) => {
|
|
365
|
-
const i = (t ?? "").trim().split(/\s+/).map((
|
|
375
|
+
const i = (t ?? "").trim().split(/\s+/).map((s) => Number.parseInt(s, 10)).filter((s) => Number.isFinite(s) && s > 0);
|
|
366
376
|
return i.length ? i : [];
|
|
367
377
|
},
|
|
368
378
|
toAttribute: (t) => t.join(" ")
|
|
@@ -17,7 +17,7 @@ import { i as Ji } from "./guard.D4axKaMo.js";
|
|
|
17
17
|
import { o as tr } from "./map.D8heArFD.js";
|
|
18
18
|
import { o as Ue } from "./style-map.llVFPd__.js";
|
|
19
19
|
import { n as Pe } from "./when.Dr1es41R.js";
|
|
20
|
-
import { C as Yn } from "./button.
|
|
20
|
+
import { C as Yn } from "./button.DS64Tr8Z.js";
|
|
21
21
|
import Xn from "../components/dropdown.js";
|
|
22
22
|
import { C as qn } from "./icon-button.C3eqeQl9.js";
|
|
23
23
|
import Gn from "../components/menu.js";
|