@dxos/react-ui-table 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef
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/dist/lib/browser/{chunk-BF54SSNL.mjs → chunk-FBURZBPH.mjs} +7 -7
- package/dist/lib/browser/chunk-FBURZBPH.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/{chunk-F7Y374KL.mjs → chunk-YGC7LZJN.mjs} +12 -68
- package/dist/lib/browser/chunk-YGC7LZJN.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +20 -83
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +3 -2
- package/dist/lib/browser/testing/index.mjs.map +1 -1
- package/dist/lib/browser/translations.mjs +36 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +2 -1
- package/dist/lib/node-esm/{chunk-SIRDIPHZ.mjs → chunk-DKKMSVKP.mjs} +7 -7
- package/dist/lib/node-esm/chunk-DKKMSVKP.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-CCJ4LOVM.mjs → chunk-GKIWDEZ7.mjs} +12 -68
- package/dist/lib/node-esm/chunk-GKIWDEZ7.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +20 -83
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +3 -2
- package/dist/lib/node-esm/testing/index.mjs.map +1 -1
- package/dist/lib/node-esm/translations.mjs +37 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +2 -1
- package/dist/types/src/components/Table/ColumnActionsMenu.d.ts.map +1 -1
- package/dist/types/src/components/Table/ColumnSettings.d.ts.map +1 -1
- package/dist/types/src/components/Table/DynamicTable.d.ts.map +1 -1
- package/dist/types/src/components/Table/DynamicTable.stories.d.ts +19 -19
- package/dist/types/src/components/Table/DynamicTable.stories.d.ts.map +1 -1
- package/dist/types/src/components/Table/Relations.stories.d.ts +82 -81
- package/dist/types/src/components/Table/Relations.stories.d.ts.map +1 -1
- package/dist/types/src/components/Table/RowActionsMenu.d.ts.map +1 -1
- package/dist/types/src/components/Table/Table.d.ts +2 -2
- package/dist/types/src/components/Table/Table.d.ts.map +1 -1
- package/dist/types/src/components/Table/Table.stories.d.ts +82 -81
- package/dist/types/src/components/Table/Table.stories.d.ts.map +1 -1
- package/dist/types/src/components/Table/TableContent.d.ts +1 -1
- package/dist/types/src/components/Table/TableToolbar.d.ts +1 -1
- package/dist/types/src/components/TableCellEditor/CellValidationMessage.d.ts.map +1 -1
- package/dist/types/src/components/TableCellEditor/FormCellEditor.d.ts.map +1 -1
- package/dist/types/src/components/TableCellEditor/TableCellEditor.d.ts.map +1 -1
- package/dist/types/src/components/TableCellEditor/TableCellEditor.stories.d.ts +19 -19
- package/dist/types/src/components/TableCellEditor/TableCellEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/testing.d.ts.map +1 -1
- package/dist/types/src/hooks/useAddRow.d.ts.map +1 -1
- package/dist/types/src/hooks/useProjectionModel.d.ts.map +1 -1
- package/dist/types/src/hooks/useTableModel.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/model/modal-controller.d.ts.map +1 -1
- package/dist/types/src/model/selection-model.d.ts +1 -1
- package/dist/types/src/model/selection-model.d.ts.map +1 -1
- package/dist/types/src/model/table-model.d.ts +3 -3
- package/dist/types/src/model/table-model.d.ts.map +1 -1
- package/dist/types/src/model/table-presentation.d.ts.map +1 -1
- package/dist/types/src/playwright/TableManager.d.ts.map +1 -1
- package/dist/types/src/playwright/playwright.config.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +19 -19
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Table.d.ts.map +1 -1
- package/dist/types/src/util/dynamic-table.d.ts.map +1 -1
- package/dist/types/src/util/query-ast.d.ts.map +1 -1
- package/dist/types/src/util/schema.d.ts.map +1 -1
- package/dist/types/src/util/signals.d.ts.map +1 -1
- package/dist/types/src/util/sort.d.ts.map +1 -1
- package/dist/types/src/util/table-buttons.d.ts +20 -20
- package/dist/types/src/util/table-buttons.d.ts.map +1 -1
- package/dist/types/src/util/table-controls.d.ts +4 -4
- package/dist/types/src/util/table-controls.d.ts.map +1 -1
- package/dist/types/src/util/tag.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +52 -55
- package/src/components/Table/ColumnActionsMenu.tsx +2 -1
- package/src/components/Table/DynamicTable.stories.tsx +2 -1
- package/src/components/Table/DynamicTable.tsx +1 -1
- package/src/components/Table/Relations.stories.tsx +41 -5
- package/src/components/Table/RowActionsMenu.tsx +3 -2
- package/src/components/Table/Table.stories.tsx +8 -8
- package/src/components/Table/TableToolbar.tsx +1 -1
- package/src/components/TableCellEditor/FormCellEditor.tsx +2 -1
- package/src/components/TableCellEditor/TableCellEditor.stories.tsx +2 -1
- package/src/index.ts +0 -4
- package/src/model/table-model.ts +7 -7
- package/src/model/table-presentation.test.ts +8 -1
- package/src/types/Table.ts +1 -1
- package/src/util/dynamic-table.test.ts +11 -4
- package/src/util/dynamic-table.ts +2 -2
- package/dist/lib/browser/chunk-BF54SSNL.mjs.map +0 -7
- package/dist/lib/browser/chunk-F7Y374KL.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-CCJ4LOVM.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SIRDIPHZ.mjs.map +0 -7
|
@@ -23,52 +23,52 @@ type ButtonData = {
|
|
|
23
23
|
export declare const tableButtons: {
|
|
24
24
|
readonly addColumn: {
|
|
25
25
|
readonly attr: string;
|
|
26
|
-
readonly icon:
|
|
26
|
+
readonly icon: 'ph--plus--regular';
|
|
27
27
|
readonly render: ({ disabled }: Omit<Extract<ButtonData, {
|
|
28
|
-
type:
|
|
29
|
-
}>,
|
|
28
|
+
type: 'newColumn';
|
|
29
|
+
}>, 'type'>) => string;
|
|
30
30
|
readonly getData: (_el: HTMLElement) => Extract<ButtonData, {
|
|
31
|
-
type:
|
|
31
|
+
type: 'newColumn';
|
|
32
32
|
}>;
|
|
33
33
|
};
|
|
34
34
|
readonly columnSettings: {
|
|
35
35
|
readonly attr: string;
|
|
36
|
-
readonly icon:
|
|
36
|
+
readonly icon: 'ph--caret-down--regular';
|
|
37
37
|
readonly render: ({ fieldId }: Omit<Extract<ButtonData, {
|
|
38
|
-
type:
|
|
39
|
-
}>,
|
|
38
|
+
type: 'columnSettings';
|
|
39
|
+
}>, 'type'>) => string;
|
|
40
40
|
readonly getData: (el: HTMLElement) => Extract<ButtonData, {
|
|
41
|
-
type:
|
|
41
|
+
type: 'columnSettings';
|
|
42
42
|
}>;
|
|
43
43
|
};
|
|
44
44
|
readonly rowMenu: {
|
|
45
45
|
readonly attr: string;
|
|
46
|
-
readonly icon:
|
|
46
|
+
readonly icon: 'ph--dots-three--regular';
|
|
47
47
|
readonly render: ({ rowIndex }: Omit<Extract<ButtonData, {
|
|
48
|
-
type:
|
|
49
|
-
}>,
|
|
48
|
+
type: 'rowMenu';
|
|
49
|
+
}>, 'type'>) => string;
|
|
50
50
|
readonly getData: (el: HTMLElement) => Extract<ButtonData, {
|
|
51
|
-
type:
|
|
51
|
+
type: 'rowMenu';
|
|
52
52
|
}>;
|
|
53
53
|
};
|
|
54
54
|
readonly saveDraftRow: {
|
|
55
55
|
readonly attr: string;
|
|
56
|
-
readonly icon:
|
|
56
|
+
readonly icon: 'ph--floppy-disk--regular';
|
|
57
57
|
readonly render: ({ rowIndex, disabled }: Omit<Extract<ButtonData, {
|
|
58
|
-
type:
|
|
59
|
-
}>,
|
|
58
|
+
type: 'saveDraftRow';
|
|
59
|
+
}>, 'type'>) => string;
|
|
60
60
|
readonly getData: (el: HTMLElement) => Extract<ButtonData, {
|
|
61
|
-
type:
|
|
61
|
+
type: 'saveDraftRow';
|
|
62
62
|
}>;
|
|
63
63
|
};
|
|
64
64
|
readonly sort: {
|
|
65
65
|
readonly attr: string;
|
|
66
|
-
readonly icon:
|
|
66
|
+
readonly icon: 'ph--sort-ascending--regular';
|
|
67
67
|
readonly render: ({ fieldId, direction }: Omit<Extract<ButtonData, {
|
|
68
|
-
type:
|
|
69
|
-
}>,
|
|
68
|
+
type: 'sort';
|
|
69
|
+
}>, 'type'>) => string;
|
|
70
70
|
readonly getData: (el: HTMLElement) => Extract<ButtonData, {
|
|
71
|
-
type:
|
|
71
|
+
type: 'sort';
|
|
72
72
|
}>;
|
|
73
73
|
};
|
|
74
74
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-buttons.d.ts","sourceRoot":"","sources":["../../../../src/util/table-buttons.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,WAAW,GAAG,gBAAgB,GAAG,SAAS,GAAG,WAAW,GAAG,gBAAgB,GAAG,MAAM,GAAG,cAAc,CAAC;AAElH,eAAO,MAAM,kBAAkB,EAAE;KAAG,CAAC,IAAI,WAAW,GAAG,MAAM;CAOnD,CAAC;AAEX,KAAK,UAAU,GACX;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GACzC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO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C,UAAU,EAAE;YAAE,IAAI,EAAE,gBAAgB,CAAA;SAAE,CAAC,EAAE,MAAM,CAAC;+BAWrE,WAAW,KAAG,OAAO,CAAC,UAAU,EAAE;YAAE,IAAI,EAAE,gBAAgB,CAAA;SAAE,CAAC;;aAyE3E,OAAO;;uBAjED,yBAAyB;wCACR,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YAAE,IAAI,EAAE,SAAS,CAAA;SAAE,CAAC,EAAE,MAAM,CAAC;+BAU/D,WAAW,KAAG,OAAO,CAAC,UAAU,EAAE;YAAE,IAAI,EAAE,SAAS,CAAA;SAAE,CAAC;;aAuDpE,YAAY;;uBAvBN,0BAA0B;kDACC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YAAE,IAAI,EAAE,cAAc,CAAA;SAAE,CAAC,EAAE,MAAM,CAAC;+BAY9E,WAAW,KAAG,OAAO,CAAC,UAAU,EAAE;YAAE,IAAI,EAAE,cAAc,CAAA;SAAE,CAAC;;aAWzE,IAAI;;uBAhDE,6BAA6B;kDACF,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC,EAAE,MAAM,CAAC;+BActE,WAAW,KAAG,OAAO,CAAC,UAAU,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;;CAkCzD,CAAC"}
|
|
@@ -19,8 +19,8 @@ export type RenderSwitchProps = CommonRenderProps & Omit<Extract<ControlData, {
|
|
|
19
19
|
type: 'switch';
|
|
20
20
|
}>, 'type'>;
|
|
21
21
|
export declare const CONTROL_IDENTIFIERS: {
|
|
22
|
-
readonly checkbox:
|
|
23
|
-
readonly switch:
|
|
22
|
+
readonly checkbox: 'data-table-checkbox';
|
|
23
|
+
readonly switch: 'data-table-switch';
|
|
24
24
|
};
|
|
25
25
|
export declare const CheckboxStory: ({ rowIndex, header, checked, disabled, }: RenderCheckboxProps) => string;
|
|
26
26
|
export declare const SwitchStory: ({ colIndex, rowIndex, checked, disabled }: RenderSwitchProps) => string;
|
|
@@ -29,14 +29,14 @@ export declare const tableControls: {
|
|
|
29
29
|
readonly attr: "data-table-checkbox";
|
|
30
30
|
readonly render: ({ rowIndex, header, checked, disabled, }: RenderCheckboxProps) => string;
|
|
31
31
|
readonly getData: (el: HTMLElement) => Extract<ControlData, {
|
|
32
|
-
type:
|
|
32
|
+
type: 'checkbox';
|
|
33
33
|
}>;
|
|
34
34
|
};
|
|
35
35
|
readonly switch: {
|
|
36
36
|
readonly attr: "data-table-switch";
|
|
37
37
|
readonly render: ({ colIndex, rowIndex, checked, disabled }: RenderSwitchProps) => string;
|
|
38
38
|
readonly getData: (el: HTMLElement) => Extract<ControlData, {
|
|
39
|
-
type:
|
|
39
|
+
type: 'switch';
|
|
40
40
|
}>;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-controls.d.ts","sourceRoot":"","sources":["../../../../src/util/table-controls.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEjD,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GACxD;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3D,KAAK,iBAAiB,GAAG;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,EAAE,MAAM,CAAC,CAAC;AAC/G,MAAM,MAAM,iBAAiB,GAAG,iBAA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BAAmB,KAAG,MAAM;iBAyB3B,OAAO,OAAO,WAAW,KAAG,OAAO,CAAC,WAAW,EAAE;YAAE,IAAI,EAAE,UAAU,CAAA;SAAE,CAAC;;aAMxE,MAAM;iBACJ,IAAI;iBACJ,MAAM,8CAvB6E,iBAAiB,KAAG,MAAM;iBAwB7G,OAAO,OAAO,WAAW,KAAG,OAAO,CAAC,WAAW,EAAE;YAAE,IAAI,EAAE,QAAQ,CAAA;SAAE,CAAC;;CAM9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../src/util/tag.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAA6B,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../src/util/tag.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAA6B,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,aAAa,UAAW,OAAO,KAAG,MAAM,EAAE,GAAG,SAgBzD,CAAC"}
|