@orangelogic/design-system 2.75.0 → 2.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/chunks/{color-swatch-group.DLgAN7p7.js → color-swatch-group.BgI-HWS2.js} +1 -1
- package/library/chunks/{list-editor.0Yd4kvV6.js → list-editor.DpBm_m_b.js} +1 -1
- package/library/chunks/{table.p6kMJx5q.js → table.D3Pc7KGF.js} +2197 -2093
- 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/masonry.js +1 -1
- 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 +4 -4
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/table/table.d.ts +5 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/TabulatorFull.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/Group.d.ts +8 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupComponent.d.ts +3 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupLoadMore.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupRows.d.ts +2 -0
- package/library/packages/types/src/table.d.ts +21 -0
- package/package.json +1 -1
|
@@ -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.G24wrely.js";
|
|
73
|
-
import { C as za } from "../chunks/table.
|
|
73
|
+
import { C as za } from "../chunks/table.D3Pc7KGF.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.D3Pc7KGF.js";
|
|
3
3
|
import "../chunks/typography.oDzoLbZS.js";
|
|
4
4
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
5
5
|
import "../chunks/color-swatch.BuUP5yG4.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.BgI-HWS2.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.D3Pc7KGF.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.BUW7B9hr.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.DpBm_m_b.js";
|
|
22
22
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
23
23
|
import "../chunks/state.CSDxrqLd.js";
|
|
24
24
|
import "../chunks/query.BBf1UFkC.js";
|
|
@@ -182,7 +182,7 @@ let r = class extends w {
|
|
|
182
182
|
this.destroySortable(), this.sortable && this.initSortable();
|
|
183
183
|
}
|
|
184
184
|
connectedUpdatedCallback() {
|
|
185
|
-
this.
|
|
185
|
+
this.handleSortableChange();
|
|
186
186
|
}
|
|
187
187
|
disconnectedCallback() {
|
|
188
188
|
super.disconnectedCallback(), this.destroySortable();
|
|
@@ -6,7 +6,7 @@ import { default as u } from "./corner-position-input-group.js";
|
|
|
6
6
|
import { C as m } from "../chunks/cropper.D1lO3pl-.js";
|
|
7
7
|
import { default as i } from "./dynamic-select.js";
|
|
8
8
|
import { C as c } from "../chunks/folder-select.BqLmIlj6.js";
|
|
9
|
-
import { C as P } from "../chunks/list-editor.
|
|
9
|
+
import { C as P } from "../chunks/list-editor.DpBm_m_b.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.BgI-HWS2.js";
|
|
3
3
|
import { C } from "../chunks/file-on-demand.BJZ5E8XT.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.BXCr_5om.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.D3Pc7KGF.js";
|
|
14
14
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
15
15
|
import "../chunks/i18n.BUW7B9hr.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.G24wrely.js";
|
|
74
|
-
import { C as r9 } from "../chunks/table.
|
|
74
|
+
import { C as r9 } from "../chunks/table.D3Pc7KGF.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";
|
|
@@ -112,7 +112,7 @@ 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.
|
|
115
|
+
import { a as l9, u as Ju, I as bR, C as rY } from "../chunks/list-editor.DpBm_m_b.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.BuUP5yG4.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.
|
|
169
|
-
import { C as tWt } from "../chunks/color-swatch-group.
|
|
168
|
+
import { a as Uw } from "../chunks/color-swatch-group.BgI-HWS2.js";
|
|
169
|
+
import { C as tWt } from "../chunks/color-swatch-group.BgI-HWS2.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";
|
package/library/package.json
CHANGED
|
@@ -367,6 +367,10 @@ export default class CxTable extends CortexElement {
|
|
|
367
367
|
* Enabling the groupUpdateOnCellEdit option will cause a row to be regrouped when the cell it is grouped by is edited.
|
|
368
368
|
*/
|
|
369
369
|
groupUpdateOnCellEdit: boolean;
|
|
370
|
+
/**
|
|
371
|
+
* Load-more state keyed by the serialized group path returned by `group.getPathKey()`.
|
|
372
|
+
*/
|
|
373
|
+
groupLoadMoreMeta: Options['groupLoadMoreMeta'];
|
|
370
374
|
/**
|
|
371
375
|
* If true, the table will be rendered as a tree.
|
|
372
376
|
*/
|
|
@@ -711,6 +715,7 @@ export default class CxTable extends CortexElement {
|
|
|
711
715
|
handleGroupByChange(): void;
|
|
712
716
|
handleGroupHeaderChange(): void;
|
|
713
717
|
handleGroupValuesChange(): void;
|
|
718
|
+
handleGroupLoadMoreMetaChange(): void;
|
|
714
719
|
handlePaginationSizeChange(): void;
|
|
715
720
|
handlePaginationInitialPageChange(): void;
|
|
716
721
|
handleLoadingChange(): void;
|
package/library/packages/atoms/src/components/table/tabulator-tables/core/TabulatorFull.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare class TabulatorFull extends Tabulator implements ITabulatorFull {
|
|
|
21
21
|
* You can use the setGroupStartOpen function to change the default open state of groups. This function has one argument and takes the same values as passed to the groupStartOpen setup option.
|
|
22
22
|
* Note: If you use the setGroupStartOpen or setGroupHeader before you have set any groups on the table, the table will not update until the setGroupBy function is called.
|
|
23
23
|
*/
|
|
24
|
+
setGroupLoadMoreMeta: (meta: Options['groupLoadMoreMeta']) => void;
|
|
24
25
|
setGroupStartOpen: (values: Options['groupStartOpen']) => void;
|
|
25
26
|
setGroupValues: (data: GroupValuesArg) => void;
|
|
26
27
|
/**
|
package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/Group.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as CxIconButton } from '../../../../icon-button/icon-button.ts';
|
|
2
|
+
import { GroupLoadMoreEventPayload, GroupLoadMoreState } from '../../../../../../../types/src/table';
|
|
2
3
|
import { default as Row } from '../../core/row/Row';
|
|
3
4
|
import { default as GroupComponent } from './GroupComponent';
|
|
4
5
|
import { default as GroupRows } from './GroupRows';
|
|
@@ -34,6 +35,8 @@ export default class Group {
|
|
|
34
35
|
visible: boolean | ((key: any, count: number, data: any[], component: GroupComponent) => boolean);
|
|
35
36
|
component: GroupComponent | null;
|
|
36
37
|
addBindingsFlag?: boolean;
|
|
38
|
+
private _loadMoreRow;
|
|
39
|
+
private _loadMoreStateKey;
|
|
37
40
|
constructor(groupManager: GroupRows, parent: Group | false, level: number, key: any, field: string | false, generator: GroupGenerator, oldGroup: Group | false);
|
|
38
41
|
wipe(elementsOnly?: boolean): void;
|
|
39
42
|
createElements(): void;
|
|
@@ -51,6 +54,11 @@ export default class Group {
|
|
|
51
54
|
conformRowData(data: Record<string, any>): Record<string, any>;
|
|
52
55
|
removeRow(row: Row): void;
|
|
53
56
|
removeGroup(group: Group): void;
|
|
57
|
+
getPathKey(): string;
|
|
58
|
+
getLoadMoreState(): GroupLoadMoreState | undefined;
|
|
59
|
+
getGroupLoadMoreEventPayload(): GroupLoadMoreEventPayload;
|
|
60
|
+
generateLoadMoreRow(): Row | false;
|
|
61
|
+
private applyGroupIndent;
|
|
54
62
|
getHeadersAndRows(): Array<Group | Row>;
|
|
55
63
|
getData(visible?: boolean, transform?: string): any[];
|
|
56
64
|
getRowCount(): number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IGroupComponent, ITabulator, ScrollToRowPosition } from '../../../../../../../types/src/table';
|
|
1
|
+
import { GroupLoadMorePathSegment, IGroupComponent, ITabulator, ScrollToRowPosition } from '../../../../../../../types/src/table';
|
|
2
2
|
import { default as Group } from './Group';
|
|
3
3
|
|
|
4
4
|
export default class GroupComponent implements IGroupComponent {
|
|
@@ -11,6 +11,8 @@ export default class GroupComponent implements IGroupComponent {
|
|
|
11
11
|
getRows(): any[];
|
|
12
12
|
getSubGroups(): any[];
|
|
13
13
|
getParentGroup(): GroupComponent | false;
|
|
14
|
+
getPath(): GroupLoadMorePathSegment[];
|
|
15
|
+
getPathKey(): string;
|
|
14
16
|
isVisible(): boolean;
|
|
15
17
|
show(): void;
|
|
16
18
|
hide(): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GroupLoadMoreEventPayload, GroupLoadMoreMeta, GroupLoadMorePathSegment, GroupLoadMoreState } from '../../../../../../../types/src/table';
|
|
2
|
+
import { default as Group } from './Group';
|
|
3
|
+
|
|
4
|
+
export declare function getGroupPath(group: Group): GroupLoadMorePathSegment[];
|
|
5
|
+
export declare function getGroupPathKey(path: GroupLoadMorePathSegment[]): string;
|
|
6
|
+
export declare function getGroupLoadMoreState(meta: GroupLoadMoreMeta | undefined, pathKey: string): GroupLoadMoreState | undefined;
|
|
7
|
+
export declare function getGroupLoadMoreEventPayload(group: Group): GroupLoadMoreEventPayload;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GroupLoadMoreMeta } from '../../../../../../../types/src/table';
|
|
1
2
|
import { default as Module } from '../../core/Module';
|
|
2
3
|
import { default as Row } from '../../core/row/Row';
|
|
3
4
|
import { default as RowComponent } from '../../core/row/RowComponent';
|
|
@@ -38,6 +39,7 @@ export default class GroupRows extends Module {
|
|
|
38
39
|
setGroupStartOpen(values: GroupStartOpen | GroupStartOpen[]): void;
|
|
39
40
|
private updateGroupVisibility;
|
|
40
41
|
setGroupHeader(values: GroupHeaderGenerator | GroupHeaderGenerator[] | false): void;
|
|
42
|
+
setGroupLoadMoreMeta(meta: GroupLoadMoreMeta | undefined): void;
|
|
41
43
|
userGetGroups(_values?: boolean): GroupComponent[];
|
|
42
44
|
userGetGroup(key: any): GroupComponent | false;
|
|
43
45
|
private findGroupByKey;
|
|
@@ -903,6 +903,7 @@ export interface ITabulatorFull extends ITabulator {
|
|
|
903
903
|
setSheetData: (lookup: string | SpreadsheetComponent, data: unknown[][]) => void;
|
|
904
904
|
setGroupBy: (groups: GroupArg) => void;
|
|
905
905
|
setGroupHeader: (values: Options['groupHeader']) => void;
|
|
906
|
+
setGroupLoadMoreMeta: (meta: GroupLoadMoreMeta | undefined) => void;
|
|
906
907
|
setGroupStartOpen: (values: Options['groupStartOpen']) => void;
|
|
907
908
|
setGroupValues: (data: GroupValuesArg) => void;
|
|
908
909
|
setPageSize: (size: number | true) => void;
|
|
@@ -957,11 +958,27 @@ export interface ISheetComponent {
|
|
|
957
958
|
setRows(rows: number): unknown;
|
|
958
959
|
setTitle(title: string): unknown;
|
|
959
960
|
}
|
|
961
|
+
export interface GroupLoadMorePathSegment {
|
|
962
|
+
field: string | false;
|
|
963
|
+
key: unknown;
|
|
964
|
+
}
|
|
965
|
+
export interface GroupLoadMoreState {
|
|
966
|
+
hasMore: boolean;
|
|
967
|
+
loading?: boolean;
|
|
968
|
+
}
|
|
969
|
+
export type GroupLoadMoreMeta = Record<string, GroupLoadMoreState>;
|
|
970
|
+
export interface GroupLoadMoreEventPayload {
|
|
971
|
+
path: GroupLoadMorePathSegment[];
|
|
972
|
+
pathKey: string;
|
|
973
|
+
rowCount: number;
|
|
974
|
+
}
|
|
960
975
|
export interface IGroupComponent {
|
|
961
976
|
getElement(): HTMLElement | false;
|
|
962
977
|
getField(): string | false;
|
|
963
978
|
getKey(): unknown;
|
|
964
979
|
getParentGroup(): IGroupComponent | false;
|
|
980
|
+
getPath(): GroupLoadMorePathSegment[];
|
|
981
|
+
getPathKey(): string;
|
|
965
982
|
getRows(): IRowComponent[];
|
|
966
983
|
getSubGroups(): IGroupComponent[];
|
|
967
984
|
getTable(): unknown;
|
|
@@ -1310,6 +1327,8 @@ export interface OptionsRowGrouping {
|
|
|
1310
1327
|
groupToggleElement?: 'arrow' | 'header' | false;
|
|
1311
1328
|
/** show/hide column calculations when group is closed. */
|
|
1312
1329
|
groupClosedShowCalcs?: boolean;
|
|
1330
|
+
/** Load-more state keyed by serialized group path. */
|
|
1331
|
+
groupLoadMoreMeta?: GroupLoadMoreMeta;
|
|
1313
1332
|
groupUpdateOnCellEdit?: boolean;
|
|
1314
1333
|
}
|
|
1315
1334
|
export type FilterPredicate = (filterVal: any, rowVal: any, rowData: any, filterParams: FilterParams) => boolean;
|
|
@@ -2824,6 +2843,7 @@ export interface EventCallBackMethods {
|
|
|
2824
2843
|
movableRowsElementDrop: (event: UIEvent, element: Element, row: IRowComponent) => void;
|
|
2825
2844
|
dataGrouping: () => void;
|
|
2826
2845
|
dataGrouped: (groups: IGroupComponent[]) => void;
|
|
2846
|
+
groupLoadMore: (detail: GroupLoadMoreEventPayload) => void;
|
|
2827
2847
|
groupVisibilityChanged: (group: IGroupComponent, visible: boolean) => void;
|
|
2828
2848
|
localized: (locale: string, lang: any) => void;
|
|
2829
2849
|
renderStarted: () => void;
|
|
@@ -2992,6 +3012,7 @@ export interface HeaderFilterFunc {
|
|
|
2992
3012
|
}
|
|
2993
3013
|
export type LangObject = Record<string, any>;
|
|
2994
3014
|
export type TableSelector = string | HTMLElement | ITabulator | TableSelector[];
|
|
3015
|
+
export declare const DEFAULT_GROUP_INDENT = 36;
|
|
2995
3016
|
/**
|
|
2996
3017
|
* @typedef {Object} TrafficFormatterParams
|
|
2997
3018
|
* @property {Record<any, string>} [colorMap] - Record mapping cell values to colors. Used when the cell value should be mapped to a specific color.
|