@dxos/react-ui-table 0.8.4-main.fcfe5033a5 → 0.8.4-staging.60fe92afc8

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.
Files changed (115) hide show
  1. package/LICENSE +102 -5
  2. package/dist/lib/browser/{chunk-F7Y374KL.mjs → chunk-4KOQTPFC.mjs} +62 -111
  3. package/dist/lib/browser/chunk-4KOQTPFC.mjs.map +7 -0
  4. package/dist/lib/browser/{chunk-BF54SSNL.mjs → chunk-62PYOJPY.mjs} +13 -16
  5. package/dist/lib/browser/chunk-62PYOJPY.mjs.map +7 -0
  6. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  7. package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
  8. package/dist/lib/browser/index.mjs +57 -131
  9. package/dist/lib/browser/index.mjs.map +4 -4
  10. package/dist/lib/browser/meta.json +1 -1
  11. package/dist/lib/browser/testing/index.mjs +9 -8
  12. package/dist/lib/browser/testing/index.mjs.map +3 -3
  13. package/dist/lib/browser/translations.mjs +36 -0
  14. package/dist/lib/browser/translations.mjs.map +7 -0
  15. package/dist/lib/browser/types/index.mjs +2 -1
  16. package/dist/lib/node-esm/{chunk-SIRDIPHZ.mjs → chunk-7LMOZUTS.mjs} +13 -16
  17. package/dist/lib/node-esm/chunk-7LMOZUTS.mjs.map +7 -0
  18. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  19. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  20. package/dist/lib/node-esm/{chunk-CCJ4LOVM.mjs → chunk-KOSV2J5N.mjs} +62 -111
  21. package/dist/lib/node-esm/chunk-KOSV2J5N.mjs.map +7 -0
  22. package/dist/lib/node-esm/index.mjs +57 -131
  23. package/dist/lib/node-esm/index.mjs.map +4 -4
  24. package/dist/lib/node-esm/meta.json +1 -1
  25. package/dist/lib/node-esm/testing/index.mjs +9 -8
  26. package/dist/lib/node-esm/testing/index.mjs.map +3 -3
  27. package/dist/lib/node-esm/translations.mjs +37 -0
  28. package/dist/lib/node-esm/translations.mjs.map +7 -0
  29. package/dist/lib/node-esm/types/index.mjs +2 -1
  30. package/dist/types/src/components/Table/ColumnActionsMenu.d.ts.map +1 -1
  31. package/dist/types/src/components/Table/ColumnSettings.d.ts +2 -2
  32. package/dist/types/src/components/Table/ColumnSettings.d.ts.map +1 -1
  33. package/dist/types/src/components/Table/DynamicTable.d.ts +3 -4
  34. package/dist/types/src/components/Table/DynamicTable.d.ts.map +1 -1
  35. package/dist/types/src/components/Table/DynamicTable.stories.d.ts +21 -20
  36. package/dist/types/src/components/Table/DynamicTable.stories.d.ts.map +1 -1
  37. package/dist/types/src/components/Table/Relations.stories.d.ts +87 -81
  38. package/dist/types/src/components/Table/Relations.stories.d.ts.map +1 -1
  39. package/dist/types/src/components/Table/RowActionsMenu.d.ts.map +1 -1
  40. package/dist/types/src/components/Table/Table.d.ts +2 -2
  41. package/dist/types/src/components/Table/Table.d.ts.map +1 -1
  42. package/dist/types/src/components/Table/Table.stories.d.ts +88 -81
  43. package/dist/types/src/components/Table/Table.stories.d.ts.map +1 -1
  44. package/dist/types/src/components/Table/TableContent.d.ts +2 -1
  45. package/dist/types/src/components/Table/TableContent.d.ts.map +1 -1
  46. package/dist/types/src/components/Table/TableToolbar.d.ts +1 -1
  47. package/dist/types/src/components/Table/TableToolbar.d.ts.map +1 -1
  48. package/dist/types/src/components/TableCellEditor/CellValidationMessage.d.ts.map +1 -1
  49. package/dist/types/src/components/TableCellEditor/FormCellEditor.d.ts +1 -2
  50. package/dist/types/src/components/TableCellEditor/FormCellEditor.d.ts.map +1 -1
  51. package/dist/types/src/components/TableCellEditor/TableCellEditor.d.ts.map +1 -1
  52. package/dist/types/src/components/TableCellEditor/TableCellEditor.stories.d.ts +19 -19
  53. package/dist/types/src/components/TableCellEditor/TableCellEditor.stories.d.ts.map +1 -1
  54. package/dist/types/src/components/testing.d.ts.map +1 -1
  55. package/dist/types/src/hooks/useAddRow.d.ts.map +1 -1
  56. package/dist/types/src/hooks/useProjectionModel.d.ts.map +1 -1
  57. package/dist/types/src/hooks/useTableModel.d.ts.map +1 -1
  58. package/dist/types/src/index.d.ts +0 -2
  59. package/dist/types/src/index.d.ts.map +1 -1
  60. package/dist/types/src/model/modal-controller.d.ts.map +1 -1
  61. package/dist/types/src/model/selection-model.d.ts +1 -1
  62. package/dist/types/src/model/selection-model.d.ts.map +1 -1
  63. package/dist/types/src/model/table-model.d.ts +7 -7
  64. package/dist/types/src/model/table-model.d.ts.map +1 -1
  65. package/dist/types/src/model/table-presentation.d.ts.map +1 -1
  66. package/dist/types/src/playwright/TableManager.d.ts.map +1 -1
  67. package/dist/types/src/playwright/playwright.config.d.ts.map +1 -1
  68. package/dist/types/src/testing/useTestTableModel.d.ts +1 -1
  69. package/dist/types/src/testing/useTestTableModel.d.ts.map +1 -1
  70. package/dist/types/src/translations.d.ts +19 -19
  71. package/dist/types/src/translations.d.ts.map +1 -1
  72. package/dist/types/src/types/Table.d.ts +12 -6
  73. package/dist/types/src/types/Table.d.ts.map +1 -1
  74. package/dist/types/src/util/dynamic-table.d.ts +6 -6
  75. package/dist/types/src/util/dynamic-table.d.ts.map +1 -1
  76. package/dist/types/src/util/query-ast.d.ts.map +1 -1
  77. package/dist/types/src/util/schema.d.ts.map +1 -1
  78. package/dist/types/src/util/signals.d.ts.map +1 -1
  79. package/dist/types/src/util/sort.d.ts.map +1 -1
  80. package/dist/types/src/util/table-buttons.d.ts +20 -20
  81. package/dist/types/src/util/table-buttons.d.ts.map +1 -1
  82. package/dist/types/src/util/table-controls.d.ts +4 -4
  83. package/dist/types/src/util/table-controls.d.ts.map +1 -1
  84. package/dist/types/src/util/tag.d.ts.map +1 -1
  85. package/dist/types/tsconfig.tsbuildinfo +1 -1
  86. package/package.json +53 -63
  87. package/src/components/Table/ColumnActionsMenu.tsx +2 -1
  88. package/src/components/Table/ColumnSettings.tsx +2 -2
  89. package/src/components/Table/DynamicTable.stories.tsx +9 -8
  90. package/src/components/Table/DynamicTable.tsx +11 -12
  91. package/src/components/Table/Relations.stories.tsx +46 -9
  92. package/src/components/Table/RowActionsMenu.tsx +3 -2
  93. package/src/components/Table/Table.stories.tsx +86 -33
  94. package/src/components/Table/TableContent.tsx +9 -4
  95. package/src/components/Table/TableToolbar.tsx +2 -2
  96. package/src/components/TableCellEditor/CellValidationMessage.tsx +1 -2
  97. package/src/components/TableCellEditor/FormCellEditor.tsx +8 -7
  98. package/src/components/TableCellEditor/TableCellEditor.stories.tsx +7 -4
  99. package/src/components/TableCellEditor/TableCellEditor.tsx +8 -6
  100. package/src/components/testing.ts +7 -12
  101. package/src/hooks/useProjectionModel.ts +5 -6
  102. package/src/hooks/useTableModel.ts +1 -1
  103. package/src/index.ts +0 -4
  104. package/src/model/table-model.test.ts +4 -9
  105. package/src/model/table-model.ts +43 -36
  106. package/src/model/table-presentation.test.ts +4 -9
  107. package/src/model/table-presentation.ts +15 -15
  108. package/src/testing/useTestTableModel.ts +6 -7
  109. package/src/types/Table.ts +16 -15
  110. package/src/util/dynamic-table.test.ts +13 -20
  111. package/src/util/dynamic-table.ts +19 -18
  112. package/dist/lib/browser/chunk-BF54SSNL.mjs.map +0 -7
  113. package/dist/lib/browser/chunk-F7Y374KL.mjs.map +0 -7
  114. package/dist/lib/node-esm/chunk-CCJ4LOVM.mjs.map +0 -7
  115. package/dist/lib/node-esm/chunk-SIRDIPHZ.mjs.map +0 -7
@@ -13,92 +13,98 @@ declare const meta: {
13
13
  translations: ({
14
14
  readonly 'en-US': {
15
15
  readonly "@dxos/react-ui-table": {
16
- readonly 'object.placeholder': "New table";
17
- readonly 'create-object.label': "Create table";
18
- readonly 'table-name.placeholder': "Table name";
19
- readonly 'settings.title': "Table settings";
20
- readonly 'table-schema.label': "Type";
21
- readonly 'continue.label': "Continue";
22
- readonly 'create-stack-section.label': "Create table";
23
- readonly 'add-row.label': "Add row";
24
- readonly 'column-action-sort-descending.menu': "Sort Descending";
25
- readonly 'column-action-sort-ascending.menu': "Sort Ascending";
26
- readonly 'column-action-clear-sorting.menu': "Clear Sorting";
27
- readonly 'column-action-settings.menu': "Column Settings";
28
- readonly 'column-action-delete.menu': "Delete Column";
29
- readonly 'delete-row.label': "Delete row";
30
- readonly 'bulk-delete-row.label': "Delete selected rows";
31
- readonly 'column-deleted.label': "Column deleted";
32
- readonly 'new-column-button.label': "Create column";
33
- readonly 'create-new-object.label': "Create new object “{{text}}”";
34
- readonly 'save-view.label': "Save changes to view";
16
+ readonly 'object.placeholder': 'New table';
17
+ readonly 'create-object.label': 'Create table';
18
+ readonly 'table-name.placeholder': 'Table name';
19
+ readonly 'settings.title': 'Table settings';
20
+ readonly 'table-schema.label': 'Type';
21
+ readonly 'continue.label': 'Continue';
22
+ readonly 'create-stack-section.label': 'Create table';
23
+ readonly 'add-row.label': 'Add row';
24
+ readonly 'column-action-sort-descending.menu': 'Sort Descending';
25
+ readonly 'column-action-sort-ascending.menu': 'Sort Ascending';
26
+ readonly 'column-action-clear-sorting.menu': 'Clear Sorting';
27
+ readonly 'column-action-settings.menu': 'Column Settings';
28
+ readonly 'column-action-delete.menu': 'Delete Column';
29
+ readonly 'delete-row.label': 'Delete row';
30
+ readonly 'bulk-delete-row.label': 'Delete selected rows';
31
+ readonly 'column-deleted.label': 'Column deleted';
32
+ readonly 'new-column-button.label': 'Create column';
33
+ readonly 'create-new-object.label': 'Create new object \u201C{{text}}\u201D';
34
+ readonly 'save-view.label': 'Save changes to view';
35
35
  };
36
36
  };
37
37
  } | {
38
38
  readonly 'en-US': {
39
39
  readonly "@dxos/react-ui-form": {
40
- readonly "fields.label": "Fields";
41
- readonly "hidden-fields.label": "Hidden Fields";
42
- readonly "empty-readonly-ref-field.label": "(none)";
43
- readonly "add-property-button.label": "Add property";
44
- readonly "field-property.label": "Property";
45
- readonly "field-property.placeholder": "Property name";
46
- readonly "field-format.label": "Type";
47
- readonly "field-path.label": "Field path";
48
- readonly "add-field.button": "Add field";
49
- readonly "boolean-input-true.value": "Yes";
50
- readonly "boolean-input-false.value": "No";
51
- readonly "show-field.label": "Show field";
52
- readonly "hide-field.label": "Hide field";
53
- readonly "delete-field.label": "Delete field";
54
- readonly "ref-field-combobox-input.placeholder": "Search\u2026";
55
- readonly "ref-field.placeholder": "Select\u2026";
56
- readonly "ref-field.placeholder_one": "Select\u2026";
57
- readonly "ref-field.placeholder_other": "Select items\u2026";
58
- readonly "create-option.label": "Create";
59
- readonly "add-tag.label": "Add tag";
60
- readonly "example.placeholder": "Example";
61
- readonly "latitude.placeholder": "Latitude (e.g., 40.7128)";
62
- readonly "longitude.placeholder": "Longitude (e.g., -74.0060)";
63
- readonly "cancel-button.label": "Cancel";
64
- readonly "save-button.label": "Save";
65
- readonly "format.boolean.label": "Boolean";
66
- readonly "format.currency.label": "Currency";
67
- readonly "format.date.label": "Date";
68
- readonly "format.date-time.label": "DateTime";
69
- readonly "format.did.label": "DID";
70
- readonly "format.duration.label": "Duration";
71
- readonly "format.dxn.label": "DXN";
72
- readonly "format.email.label": "Email";
73
- readonly "format.formula.label": "Formula";
74
- readonly "format.hostname.label": "Hostname";
75
- readonly "format.integer.label": "Integer";
76
- readonly "format.json.label": "JSON";
77
- readonly "format.lnglat.label": "Geopoint";
78
- readonly "format.markdown.label": "Markdown";
79
- readonly "format.percent.label": "Percent";
80
- readonly "format.ref.label": "Reference";
81
- readonly "format.regex.label": "RegExp";
82
- readonly "format.string.label": "String";
83
- readonly "format.single-select.label": "Select";
84
- readonly "format.multi-select.label": "Multi-select";
85
- readonly "format.text.label": "Long text";
86
- readonly "format.time.label": "Time";
87
- readonly "format.timestamp.label": "Timestamp";
88
- readonly "format.user.label": "User";
89
- readonly "format.number.label": "Number";
90
- readonly "format.uri.label": "URI";
91
- readonly "format.url.label": "URL";
92
- readonly "format.uuid.label": "UUID";
93
- readonly "latitude.label": "Latitude";
94
- readonly "longitude.label": "Longitude";
95
- readonly "select-option.label": "Label";
96
- readonly "select-option-label.placeholder": "Option label";
97
- readonly "select-option-delete.button": "Delete";
98
- readonly "select-option-add.button": "Add option";
99
- readonly "system-schema.title": "System type";
100
- readonly "system-schema.description": "System type: cannot add or remove fields.";
101
- readonly "remove.button": "Remove";
40
+ readonly 'ref-editor.placeholder': "Type '@' to add a reference, or enter a value";
41
+ readonly 'ref-editor-auto.placeholder': 'Search by name, or enter a value';
42
+ readonly 'fields.label': 'Fields';
43
+ readonly 'hidden-fields.label': 'Hidden Fields';
44
+ readonly 'empty-readonly-ref-field.label': '(none)';
45
+ readonly 'field-property.label': 'Property';
46
+ readonly 'field-property.placeholder': 'Property name';
47
+ readonly 'field-format.label': 'Type';
48
+ readonly 'field-path.label': 'Field path';
49
+ readonly 'remove-item.button': 'Delete item';
50
+ readonly 'add-item.button': 'Add item';
51
+ readonly 'add-property-button.label': 'Add property';
52
+ readonly 'boolean-input-true.value': 'Yes';
53
+ readonly 'boolean-input-false.value': 'No';
54
+ readonly 'show-field.label': 'Show field';
55
+ readonly 'hide-field.label': 'Hide field';
56
+ readonly 'expand-fields.label': 'Expand';
57
+ readonly 'collapse-fields.label': 'Collapse';
58
+ readonly 'delete-field.label': 'Delete field';
59
+ readonly 'create-option.label': 'Create';
60
+ readonly 'add-tag.label': 'Add tag';
61
+ readonly 'ref-field-combobox-input.placeholder': 'Search\u2026';
62
+ readonly 'ref-field.placeholder': 'Select\u2026';
63
+ readonly 'ref-field.placeholder_one': 'Select\u2026';
64
+ readonly 'ref-field.placeholder_other': 'Select items\u2026';
65
+ readonly 'example.placeholder': 'Example';
66
+ readonly 'latitude.placeholder': 'Latitude (e.g., 40.7128)';
67
+ readonly 'longitude.placeholder': 'Longitude (e.g., -74.0060)';
68
+ readonly 'cancel-button.label': 'Cancel';
69
+ readonly 'save-button.label': 'Save';
70
+ readonly 'create-text.label': 'Create text';
71
+ readonly 'format.boolean.label': 'Boolean';
72
+ readonly 'format.currency.label': 'Currency';
73
+ readonly 'format.date.label': 'Date';
74
+ readonly 'format.date-time.label': 'DateTime';
75
+ readonly 'format.did.label': 'DID';
76
+ readonly 'format.duration.label': 'Duration';
77
+ readonly 'format.dxn.label': 'DXN';
78
+ readonly 'format.email.label': 'Email';
79
+ readonly 'format.formula.label': 'Formula';
80
+ readonly 'format.hostname.label': 'Hostname';
81
+ readonly 'format.integer.label': 'Integer';
82
+ readonly 'format.json.label': 'JSON';
83
+ readonly 'format.lnglat.label': 'Geopoint';
84
+ readonly 'format.markdown.label': 'Markdown';
85
+ readonly 'format.percent.label': 'Percent';
86
+ readonly 'format.ref.label': 'Reference';
87
+ readonly 'format.regex.label': 'RegExp';
88
+ readonly 'format.string.label': 'String';
89
+ readonly 'format.single-select.label': 'Select';
90
+ readonly 'format.multi-select.label': 'Multi-select';
91
+ readonly 'format.text.label': 'Long text';
92
+ readonly 'format.time.label': 'Time';
93
+ readonly 'format.timestamp.label': 'Timestamp';
94
+ readonly 'format.user.label': 'User';
95
+ readonly 'format.number.label': 'Number';
96
+ readonly 'format.uri.label': 'URI';
97
+ readonly 'format.url.label': 'URL';
98
+ readonly 'format.uuid.label': 'UUID';
99
+ readonly 'latitude.label': 'Latitude';
100
+ readonly 'longitude.label': 'Longitude';
101
+ readonly 'select-option.label': 'Label';
102
+ readonly 'select-option-label.placeholder': 'Option label';
103
+ readonly 'select-option-delete.button': 'Delete';
104
+ readonly 'select-option-add.button': 'Add option';
105
+ readonly 'system-schema.title': 'System type';
106
+ readonly 'system-schema.description': 'System type: cannot add or remove fields.';
107
+ readonly 'remove.button': 'Delete';
102
108
  };
103
109
  };
104
110
  })[];
@@ -1 +1 @@
1
- {"version":3,"file":"Relations.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Relations.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAgE,MAAM,OAAO,CAAC;AAgBrF,OAAO,iCAAiC,CAAC;AAqGzC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmB2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAgGrB,CAAC"}
1
+ {"version":3,"file":"Relations.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Relations.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAgE,MAAM,OAAO,CAAC;AAerF,OAAO,iCAAiC,CAAC;AAwGzC,QAAA,MAAM,IAAI;;;;;QAeN,MAAM;QACN,QAAQ;YAAI,OAAO;;QACnB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEqB,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAmIrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RowActionsMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/RowActionsMenu.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAGpE,KAAK,mBAAmB,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AAE1E,eAAO,MAAM,cAAc,GAAI,mBAAmB,mBAAmB,6BA2CpE,CAAC"}
1
+ {"version":3,"file":"RowActionsMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/RowActionsMenu.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAEpE,KAAK,mBAAmB,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AAE1E,eAAO,MAAM,cAAc,sBAAuB,mBAAmB,6BA2CpE,CAAC"}
@@ -17,10 +17,10 @@ export declare const Table: {
17
17
  } & React.RefAttributes<TableController>>;
18
18
  Toolbar: React.ForwardRefExoticComponent<Omit<import("./TableToolbar").TableToolbarProps, "className"> & {
19
19
  classNames?: import("@dxos/ui-types").ClassNameValue;
20
- } & Pick<React.HTMLAttributes<Element>, "children" | "role" | "className" | "style"> & React.RefAttributes<HTMLDivElement>>;
20
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
21
21
  Content: React.ForwardRefExoticComponent<Omit<import("./TableContent").TableContentProps, "className"> & {
22
22
  classNames?: import("@dxos/ui-types").ClassNameValue;
23
- } & Pick<React.HTMLAttributes<Element>, "children" | "role" | "className" | "style"> & React.RefAttributes<HTMLDivElement>>;
23
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
24
24
  };
25
25
  export type { TableController, TableRootProps };
26
26
  export { useTableContext };
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAA2C,MAAM,OAAO,CAAC;AAE/G,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE/E,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAYnD,KAAK,iBAAiB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AAe,EAAE,cAAc,EAAE,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -15,92 +15,98 @@ declare const meta: {
15
15
  translations: ({
16
16
  readonly 'en-US': {
17
17
  readonly "@dxos/react-ui-table": {
18
- readonly 'object.placeholder': "New table";
19
- readonly 'create-object.label': "Create table";
20
- readonly 'table-name.placeholder': "Table name";
21
- readonly 'settings.title': "Table settings";
22
- readonly 'table-schema.label': "Type";
23
- readonly 'continue.label': "Continue";
24
- readonly 'create-stack-section.label': "Create table";
25
- readonly 'add-row.label': "Add row";
26
- readonly 'column-action-sort-descending.menu': "Sort Descending";
27
- readonly 'column-action-sort-ascending.menu': "Sort Ascending";
28
- readonly 'column-action-clear-sorting.menu': "Clear Sorting";
29
- readonly 'column-action-settings.menu': "Column Settings";
30
- readonly 'column-action-delete.menu': "Delete Column";
31
- readonly 'delete-row.label': "Delete row";
32
- readonly 'bulk-delete-row.label': "Delete selected rows";
33
- readonly 'column-deleted.label': "Column deleted";
34
- readonly 'new-column-button.label': "Create column";
35
- readonly 'create-new-object.label': "Create new object “{{text}}”";
36
- readonly 'save-view.label': "Save changes to view";
18
+ readonly 'object.placeholder': 'New table';
19
+ readonly 'create-object.label': 'Create table';
20
+ readonly 'table-name.placeholder': 'Table name';
21
+ readonly 'settings.title': 'Table settings';
22
+ readonly 'table-schema.label': 'Type';
23
+ readonly 'continue.label': 'Continue';
24
+ readonly 'create-stack-section.label': 'Create table';
25
+ readonly 'add-row.label': 'Add row';
26
+ readonly 'column-action-sort-descending.menu': 'Sort Descending';
27
+ readonly 'column-action-sort-ascending.menu': 'Sort Ascending';
28
+ readonly 'column-action-clear-sorting.menu': 'Clear Sorting';
29
+ readonly 'column-action-settings.menu': 'Column Settings';
30
+ readonly 'column-action-delete.menu': 'Delete Column';
31
+ readonly 'delete-row.label': 'Delete row';
32
+ readonly 'bulk-delete-row.label': 'Delete selected rows';
33
+ readonly 'column-deleted.label': 'Column deleted';
34
+ readonly 'new-column-button.label': 'Create column';
35
+ readonly 'create-new-object.label': 'Create new object \u201C{{text}}\u201D';
36
+ readonly 'save-view.label': 'Save changes to view';
37
37
  };
38
38
  };
39
39
  } | {
40
40
  readonly 'en-US': {
41
41
  readonly "@dxos/react-ui-form": {
42
- readonly "fields.label": "Fields";
43
- readonly "hidden-fields.label": "Hidden Fields";
44
- readonly "empty-readonly-ref-field.label": "(none)";
45
- readonly "add-property-button.label": "Add property";
46
- readonly "field-property.label": "Property";
47
- readonly "field-property.placeholder": "Property name";
48
- readonly "field-format.label": "Type";
49
- readonly "field-path.label": "Field path";
50
- readonly "add-field.button": "Add field";
51
- readonly "boolean-input-true.value": "Yes";
52
- readonly "boolean-input-false.value": "No";
53
- readonly "show-field.label": "Show field";
54
- readonly "hide-field.label": "Hide field";
55
- readonly "delete-field.label": "Delete field";
56
- readonly "ref-field-combobox-input.placeholder": "Search\u2026";
57
- readonly "ref-field.placeholder": "Select\u2026";
58
- readonly "ref-field.placeholder_one": "Select\u2026";
59
- readonly "ref-field.placeholder_other": "Select items\u2026";
60
- readonly "create-option.label": "Create";
61
- readonly "add-tag.label": "Add tag";
62
- readonly "example.placeholder": "Example";
63
- readonly "latitude.placeholder": "Latitude (e.g., 40.7128)";
64
- readonly "longitude.placeholder": "Longitude (e.g., -74.0060)";
65
- readonly "cancel-button.label": "Cancel";
66
- readonly "save-button.label": "Save";
67
- readonly "format.boolean.label": "Boolean";
68
- readonly "format.currency.label": "Currency";
69
- readonly "format.date.label": "Date";
70
- readonly "format.date-time.label": "DateTime";
71
- readonly "format.did.label": "DID";
72
- readonly "format.duration.label": "Duration";
73
- readonly "format.dxn.label": "DXN";
74
- readonly "format.email.label": "Email";
75
- readonly "format.formula.label": "Formula";
76
- readonly "format.hostname.label": "Hostname";
77
- readonly "format.integer.label": "Integer";
78
- readonly "format.json.label": "JSON";
79
- readonly "format.lnglat.label": "Geopoint";
80
- readonly "format.markdown.label": "Markdown";
81
- readonly "format.percent.label": "Percent";
82
- readonly "format.ref.label": "Reference";
83
- readonly "format.regex.label": "RegExp";
84
- readonly "format.string.label": "String";
85
- readonly "format.single-select.label": "Select";
86
- readonly "format.multi-select.label": "Multi-select";
87
- readonly "format.text.label": "Long text";
88
- readonly "format.time.label": "Time";
89
- readonly "format.timestamp.label": "Timestamp";
90
- readonly "format.user.label": "User";
91
- readonly "format.number.label": "Number";
92
- readonly "format.uri.label": "URI";
93
- readonly "format.url.label": "URL";
94
- readonly "format.uuid.label": "UUID";
95
- readonly "latitude.label": "Latitude";
96
- readonly "longitude.label": "Longitude";
97
- readonly "select-option.label": "Label";
98
- readonly "select-option-label.placeholder": "Option label";
99
- readonly "select-option-delete.button": "Delete";
100
- readonly "select-option-add.button": "Add option";
101
- readonly "system-schema.title": "System type";
102
- readonly "system-schema.description": "System type: cannot add or remove fields.";
103
- readonly "remove.button": "Remove";
42
+ readonly 'ref-editor.placeholder': "Type '@' to add a reference, or enter a value";
43
+ readonly 'ref-editor-auto.placeholder': 'Search by name, or enter a value';
44
+ readonly 'fields.label': 'Fields';
45
+ readonly 'hidden-fields.label': 'Hidden Fields';
46
+ readonly 'empty-readonly-ref-field.label': '(none)';
47
+ readonly 'field-property.label': 'Property';
48
+ readonly 'field-property.placeholder': 'Property name';
49
+ readonly 'field-format.label': 'Type';
50
+ readonly 'field-path.label': 'Field path';
51
+ readonly 'remove-item.button': 'Delete item';
52
+ readonly 'add-item.button': 'Add item';
53
+ readonly 'add-property-button.label': 'Add property';
54
+ readonly 'boolean-input-true.value': 'Yes';
55
+ readonly 'boolean-input-false.value': 'No';
56
+ readonly 'show-field.label': 'Show field';
57
+ readonly 'hide-field.label': 'Hide field';
58
+ readonly 'expand-fields.label': 'Expand';
59
+ readonly 'collapse-fields.label': 'Collapse';
60
+ readonly 'delete-field.label': 'Delete field';
61
+ readonly 'create-option.label': 'Create';
62
+ readonly 'add-tag.label': 'Add tag';
63
+ readonly 'ref-field-combobox-input.placeholder': 'Search\u2026';
64
+ readonly 'ref-field.placeholder': 'Select\u2026';
65
+ readonly 'ref-field.placeholder_one': 'Select\u2026';
66
+ readonly 'ref-field.placeholder_other': 'Select items\u2026';
67
+ readonly 'example.placeholder': 'Example';
68
+ readonly 'latitude.placeholder': 'Latitude (e.g., 40.7128)';
69
+ readonly 'longitude.placeholder': 'Longitude (e.g., -74.0060)';
70
+ readonly 'cancel-button.label': 'Cancel';
71
+ readonly 'save-button.label': 'Save';
72
+ readonly 'create-text.label': 'Create text';
73
+ readonly 'format.boolean.label': 'Boolean';
74
+ readonly 'format.currency.label': 'Currency';
75
+ readonly 'format.date.label': 'Date';
76
+ readonly 'format.date-time.label': 'DateTime';
77
+ readonly 'format.did.label': 'DID';
78
+ readonly 'format.duration.label': 'Duration';
79
+ readonly 'format.dxn.label': 'DXN';
80
+ readonly 'format.email.label': 'Email';
81
+ readonly 'format.formula.label': 'Formula';
82
+ readonly 'format.hostname.label': 'Hostname';
83
+ readonly 'format.integer.label': 'Integer';
84
+ readonly 'format.json.label': 'JSON';
85
+ readonly 'format.lnglat.label': 'Geopoint';
86
+ readonly 'format.markdown.label': 'Markdown';
87
+ readonly 'format.percent.label': 'Percent';
88
+ readonly 'format.ref.label': 'Reference';
89
+ readonly 'format.regex.label': 'RegExp';
90
+ readonly 'format.string.label': 'String';
91
+ readonly 'format.single-select.label': 'Select';
92
+ readonly 'format.multi-select.label': 'Multi-select';
93
+ readonly 'format.text.label': 'Long text';
94
+ readonly 'format.time.label': 'Time';
95
+ readonly 'format.timestamp.label': 'Timestamp';
96
+ readonly 'format.user.label': 'User';
97
+ readonly 'format.number.label': 'Number';
98
+ readonly 'format.uri.label': 'URI';
99
+ readonly 'format.url.label': 'URL';
100
+ readonly 'format.uuid.label': 'UUID';
101
+ readonly 'latitude.label': 'Latitude';
102
+ readonly 'longitude.label': 'Longitude';
103
+ readonly 'select-option.label': 'Label';
104
+ readonly 'select-option-label.placeholder': 'Option label';
105
+ readonly 'select-option-delete.button': 'Delete';
106
+ readonly 'select-option-add.button': 'Add option';
107
+ readonly 'system-schema.title': 'System type';
108
+ readonly 'system-schema.description': 'System type: cannot add or remove fields.';
109
+ readonly 'remove.button': 'Delete';
104
110
  };
105
111
  };
106
112
  })[];
@@ -111,5 +117,6 @@ type Story = StoryObj<typeof meta>;
111
117
  export declare const Default: Story;
112
118
  export declare const StaticSchema: StoryObj;
113
119
  export declare const ArrayOfObjects: StoryObj;
120
+ export declare const RequiredSchema: StoryObj;
114
121
  export declare const Tags: Meta<DefaultStoryProps>;
115
122
  //# sourceMappingURL=Table.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Table.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAsB,MAAM,OAAO,CAAC;AAkJ3C,KAAK,iBAAiB,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAQ3C,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2C6B,CAAC;AAExC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,YAAY,EAAE,QA2B1B,CAAC;AAmBF,eAAO,MAAM,cAAc,EAAE,QA4B5B,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,iBAAiB,CAwDxC,CAAC"}
1
+ {"version":3,"file":"Table.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAsB,MAAM,OAAO,CAAC;AAkJ3C,KAAK,iBAAiB,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAQ3C,QAAA,MAAM,IAAI;;;;;QAwCN,MAAM;QACN,QAAQ;YACN,OAAO;;QAET,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEuB,CAAC;eAEzB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,YAAY,EAAE,QA2B1B,CAAC;AAcF,eAAO,MAAM,cAAc,EAAE,QA4B5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,QAqD5B,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,iBAAiB,CAwDxC,CAAC"}
@@ -7,11 +7,12 @@ export type TableContentProps = {
7
7
  model?: TableModel;
8
8
  presentation?: TablePresentation;
9
9
  ignoreAttention?: boolean;
10
+ attendableId?: string;
10
11
  onCreate?: OnCreateHandler;
11
12
  onRowClick?: (row: any) => void;
12
13
  testId?: string;
13
14
  };
14
15
  export declare const TableContent: React.ForwardRefExoticComponent<Omit<TableContentProps, "className"> & {
15
16
  classNames?: import("@dxos/ui-types").ClassNameValue;
16
- } & Pick<React.HTMLAttributes<Element>, "children" | "role" | "className" | "style"> & React.RefAttributes<HTMLDivElement>>;
17
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
17
18
  //# sourceMappingURL=TableContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/TableContent.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA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AE,GAAG,KAAK,IAAI,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,YAAY;;2HA6WxB,CAAC"}
@@ -16,6 +16,6 @@ export type TableToolbarProps = Pick<MenuRootProps, 'attendableId'> & TableToolb
16
16
  };
17
17
  export declare const TableToolbar: React.ForwardRefExoticComponent<Omit<TableToolbarProps, "className"> & {
18
18
  classNames?: import("@dxos/ui-types").ClassNameValue;
19
- } & Pick<React.HTMLAttributes<Element>, "children" | "role" | "className" | "style"> & React.RefAttributes<HTMLDivElement>>;
19
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
20
20
  export {};
21
21
  //# sourceMappingURL=TableToolbar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/TableToolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAmB,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAGL,KAAK,gBAAgB,EAErB,KAAK,UAAU,EACf,aAAa,EAId,MAAM,qBAAqB,CAAC;AAK7B,MAAM,MAAM,4BAA4B,GAAG;IAAE,IAAI,EAAE,sBAAsB,CAAA;CAAE,CAAC;AAE5E,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,4BAA4B,CAAC,CAAC;AAE1E,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAEzE,KAAK,iBAAiB,GAAG,OAAO,CAAC;IAAE,SAAS,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAmDzD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC,GACjE,iBAAiB,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;CAC7C,CAAC;AAEJ,eAAO,MAAM,YAAY;;2HAsBxB,CAAC"}
1
+ {"version":3,"file":"TableToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/TableToolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAmB,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAyC,MAAM,OAAO,CAAC;AAG9D,OAAO,EAGL,KAAK,gBAAgB,EAErB,KAAK,UAAU,EACf,aAAa,EAId,MAAM,qBAAqB,CAAC;AAI7B,MAAM,MAAM,4BAA4B,GAAG;IAAE,IAAI,EAAE,sBAAsB,CAAA;CAAE,CAAC;AAE5E,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,4BAA4B,CAAC,CAAC;AAE1E,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAEzE,KAAK,iBAAiB,GAAG,OAAO,CAAC;IAAE,SAAS,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAmDzD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC,GACjE,iBAAiB,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;CAC7C,CAAC;AAEJ,eAAO,MAAM,YAAY;;2HAsBxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CellValidationMessage.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/CellValidationMessage.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,qBAAqB,CAAC;AAE3E,MAAM,MAAM,0BAA0B,GAAG;IACvC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,4CAInC,eAAe,CAAC,0BAA0B,CAAC,6BAyB7C,CAAC"}
1
+ {"version":3,"file":"CellValidationMessage.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/CellValidationMessage.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,qBAAqB,CAAC;AAE3E,MAAM,MAAM,0BAA0B,GAAG;IACvC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,+CAI/B,eAAe,CAAC,0BAA0B,CAAC,6BAwB7C,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import { type Type } from '@dxos/echo';
3
- import { Ref } from '@dxos/echo/internal';
2
+ import { Ref, Type } from '@dxos/echo';
4
3
  import { type FormRootProps } from '@dxos/react-ui-form';
5
4
  import { type FieldProjection } from '@dxos/schema';
6
5
  import { type ModalController, type TableModel } from '../../model';
@@ -1 +1 @@
1
- {"version":3,"file":"FormCellEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/FormCellEditor.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,EAAU,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,GAAG,EAAY,MAAM,qBAAqB,CAAC;AAGpD,OAAO,EAAQ,KAAK,aAAa,EAAsB,MAAM,qBAAqB,CAAC;AAEnF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAE,KAAK,e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aAAa,CAAC;AAEpE,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG;IACpD,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI;IAC5E,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IACjF,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,IAAI,CAAC,SAAS,uFAQtD,eAAe,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,sBAoC1C,CAAC;AAQF,eAAO,MAAM,eAAe,qDAMzB,eAAe,CAAC,oBAAoB,CAAC,sBA2JvC,CAAC"}
@@ -14,25 +14,25 @@ declare const meta: {
14
14
  translations: [{
15
15
  readonly 'en-US': {
16
16
  readonly "@dxos/react-ui-table": {
17
- readonly 'object.placeholder': "New table";
18
- readonly 'create-object.label': "Create table";
19
- readonly 'table-name.placeholder': "Table name";
20
- readonly 'settings.title': "Table settings";
21
- readonly 'table-schema.label': "Type";
22
- readonly 'continue.label': "Continue";
23
- readonly 'create-stack-section.label': "Create table";
24
- readonly 'add-row.label': "Add row";
25
- readonly 'column-action-sort-descending.menu': "Sort Descending";
26
- readonly 'column-action-sort-ascending.menu': "Sort Ascending";
27
- readonly 'column-action-clear-sorting.menu': "Clear Sorting";
28
- readonly 'column-action-settings.menu': "Column Settings";
29
- readonly 'column-action-delete.menu': "Delete Column";
30
- readonly 'delete-row.label': "Delete row";
31
- readonly 'bulk-delete-row.label': "Delete selected rows";
32
- readonly 'column-deleted.label': "Column deleted";
33
- readonly 'new-column-button.label': "Create column";
34
- readonly 'create-new-object.label': "Create new object “{{text}}”";
35
- readonly 'save-view.label': "Save changes to view";
17
+ readonly 'object.placeholder': 'New table';
18
+ readonly 'create-object.label': 'Create table';
19
+ readonly 'table-name.placeholder': 'Table name';
20
+ readonly 'settings.title': 'Table settings';
21
+ readonly 'table-schema.label': 'Type';
22
+ readonly 'continue.label': 'Continue';
23
+ readonly 'create-stack-section.label': 'Create table';
24
+ readonly 'add-row.label': 'Add row';
25
+ readonly 'column-action-sort-descending.menu': 'Sort Descending';
26
+ readonly 'column-action-sort-ascending.menu': 'Sort Ascending';
27
+ readonly 'column-action-clear-sorting.menu': 'Clear Sorting';
28
+ readonly 'column-action-settings.menu': 'Column Settings';
29
+ readonly 'column-action-delete.menu': 'Delete Column';
30
+ readonly 'delete-row.label': 'Delete row';
31
+ readonly 'bulk-delete-row.label': 'Delete selected rows';
32
+ readonly 'column-deleted.label': 'Column deleted';
33
+ readonly 'new-column-button.label': 'Create column';
34
+ readonly 'create-new-object.label': 'Create new object \u201C{{text}}\u201D';
35
+ readonly 'save-view.label': 'Save changes to view';
36
36
  };
37
37
  };
38
38
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"TableCellEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/TableCellEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAQ,KAAK,WAAW,EAAkB,MAAM,qBAAqB,CAAC;AAU7E,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,WAAW,CAAC;CACtB,CAAC;AAmBF,QAAA,MAAM,IAAI;;6BAhByB,iBAAiB;0BAAjB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Cf,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC"}
1
+ {"version":3,"file":"TableCellEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/TableCellEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAQ,KAAK,WAAW,EAAkB,MAAM,qBAAqB,CAAC;AAW7E,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,WAAW,CAAC;CACtB,CAAC;AAmBF,QAAA,MAAM,IAAI;;6BAhByB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDf,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/components/testing.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAU,IAAI,EAAE,MAAM,YAAY,CAAC;AAI1C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,UAAU;;;;;wBAUtB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MA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b,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,YAAY,0DAA2D,cAAc,SA6DjG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useAddRow.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAddRow.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,QAAQ,EAAO,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAE3D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IACvB,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC;CACtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,gBAAgB,cAAc,aAE5C,GAAG,KAAG,eAajB,CAAC"}
1
+ {"version":3,"file":"useAddRow.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAddRow.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,QAAQ,EAAO,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAE3D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IACvB,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC;CACtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,mBAAoB,cAAc,aAE5C,GAAG,KAAG,eAajB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useProjectionModel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useProjectionModel.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAGxD,OAAO,EAAc,IAAI,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,EAAE,eAAe,EAA4B,MAAM,cAAc,CAAC;AAEzE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,IAAI,CAAC,SAAS,EACzD,QAAQ,CAAC,GAAG,SAAS,EACrB,OAAO,KAAK,CAAC,KAAK,GAAG,SAAS,EAC9B,UAAU,QAAQ,CAAC,QAAQ,gCAsB5B,CAAC"}
1
+ {"version":3,"file":"useProjectionModel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useProjectionModel.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAGxD,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,OAAO,EAAE,eAAe,EAA4B,MAAM,cAAc,CAAC;AAEzE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,IAAI,CAAC,SAAS,UACjD,CAAC,GAAG,SAAS,SACd,KAAK,CAAC,KAAK,GAAG,SAAS,YACpB,QAAQ,CAAC,QAAQ,gCAqB5B,CAAC"}