@powerhousedao/document-engineering 1.18.0 → 1.20.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/dist/src/scalars/components/email-field/email-field.d.ts +9 -0
- package/dist/src/scalars/components/email-field/email-field.d.ts.map +1 -1
- package/dist/src/scalars/components/email-field/email-field.js +20 -1
- package/dist/src/scalars/components/email-field/email-field.js.map +1 -1
- package/dist/src/scalars/components/email-field/index.d.ts +2 -0
- package/dist/src/scalars/components/email-field/index.d.ts.map +1 -0
- package/dist/src/scalars/components/email-field/index.js +2 -0
- package/dist/src/scalars/components/email-field/index.js.map +1 -0
- package/dist/src/scalars/components/email-field/utils.d.ts +1 -0
- package/dist/src/scalars/components/email-field/utils.d.ts.map +1 -1
- package/dist/src/scalars/components/email-field/utils.js +5 -1
- package/dist/src/scalars/components/email-field/utils.js.map +1 -1
- package/dist/src/scalars/components/form/form.d.ts.map +1 -1
- package/dist/src/scalars/components/form/form.js +6 -0
- package/dist/src/scalars/components/form/form.js.map +1 -1
- package/dist/src/scalars/components/fragments/progress-bar/index.d.ts +2 -0
- package/dist/src/scalars/components/fragments/progress-bar/index.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/progress-bar/index.js +2 -0
- package/dist/src/scalars/components/fragments/progress-bar/index.js.map +1 -0
- package/dist/src/scalars/components/fragments/progress-bar/progress-bar.d.ts +7 -0
- package/dist/src/scalars/components/fragments/progress-bar/progress-bar.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/progress-bar/progress-bar.js +11 -0
- package/dist/src/scalars/components/fragments/progress-bar/progress-bar.js.map +1 -0
- package/dist/src/scalars/components/id-field/id-field.d.ts.map +1 -1
- package/dist/src/scalars/components/id-field/id-field.js +9 -6
- package/dist/src/scalars/components/id-field/id-field.js.map +1 -1
- package/dist/src/scalars/components/index.d.ts +1 -0
- package/dist/src/scalars/components/index.d.ts.map +1 -1
- package/dist/src/scalars/components/index.js +1 -0
- package/dist/src/scalars/components/index.js.map +1 -1
- package/dist/src/scalars/components/password-field/index.d.ts +3 -0
- package/dist/src/scalars/components/password-field/index.d.ts.map +1 -0
- package/dist/src/scalars/components/password-field/index.js +2 -0
- package/dist/src/scalars/components/password-field/index.js.map +1 -0
- package/dist/src/scalars/components/password-field/password-field.d.ts +8 -0
- package/dist/src/scalars/components/password-field/password-field.d.ts.map +1 -0
- package/dist/src/scalars/components/password-field/password-field.js +39 -0
- package/dist/src/scalars/components/password-field/password-field.js.map +1 -0
- package/dist/src/scalars/components/password-field/types.d.ts +10 -0
- package/dist/src/scalars/components/password-field/types.d.ts.map +1 -0
- package/dist/src/scalars/components/password-field/types.js +2 -0
- package/dist/src/scalars/components/password-field/types.js.map +1 -0
- package/dist/src/scalars/lib/validators/validateFieldMatch.d.ts +15 -0
- package/dist/src/scalars/lib/validators/validateFieldMatch.d.ts.map +1 -0
- package/dist/src/scalars/lib/validators/validateFieldMatch.js +18 -0
- package/dist/src/scalars/lib/validators/validateFieldMatch.js.map +1 -0
- package/dist/src/ui/components/data-entry/email-input/email-input.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/email-input/email-input.js +1 -1
- package/dist/src/ui/components/data-entry/email-input/email-input.js.map +1 -1
- package/dist/src/ui/components/data-entry/password-input/index.d.ts +3 -0
- package/dist/src/ui/components/data-entry/password-input/index.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/password-input/index.js +2 -0
- package/dist/src/ui/components/data-entry/password-input/index.js.map +1 -0
- package/dist/src/ui/components/data-entry/password-input/password-input.d.ts +5 -0
- package/dist/src/ui/components/data-entry/password-input/password-input.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/password-input/password-input.js +59 -0
- package/dist/src/ui/components/data-entry/password-input/password-input.js.map +1 -0
- package/dist/src/ui/components/data-entry/password-input/password-strength.d.ts +5 -0
- package/dist/src/ui/components/data-entry/password-input/password-strength.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/password-input/password-strength.js +58 -0
- package/dist/src/ui/components/data-entry/password-input/password-strength.js.map +1 -0
- package/dist/src/ui/components/data-entry/password-input/types.d.ts +19 -0
- package/dist/src/ui/components/data-entry/password-input/types.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/password-input/types.js +2 -0
- package/dist/src/ui/components/data-entry/password-input/types.js.map +1 -0
- package/dist/src/ui/components/data-entry/password-input/utils.d.ts +5 -0
- package/dist/src/ui/components/data-entry/password-input/utils.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/password-input/utils.js +11 -0
- package/dist/src/ui/components/data-entry/password-input/utils.js.map +1 -0
- package/dist/src/ui/components/icon/icon.d.ts +1 -1
- package/dist/src/ui/components/icon/icon.d.ts.map +1 -1
- package/dist/src/ui/components/icon/icon.js.map +1 -1
- package/dist/src/ui/components/icon-components/Hide.d.ts +7 -0
- package/dist/src/ui/components/icon-components/Hide.d.ts.map +1 -0
- package/dist/src/ui/components/icon-components/Hide.js +7 -0
- package/dist/src/ui/components/icon-components/Hide.js.map +1 -0
- package/dist/src/ui/components/icon-components/Show.d.ts +7 -0
- package/dist/src/ui/components/icon-components/Show.d.ts.map +1 -0
- package/dist/src/ui/components/icon-components/Show.js +7 -0
- package/dist/src/ui/components/icon-components/Show.js.map +1 -0
- package/dist/src/ui/components/icon-components/index.d.ts +1 -1
- package/dist/src/ui/components/icon-components/index.d.ts.map +1 -1
- package/dist/src/ui/components/icon-components/index.js +6 -0
- package/dist/src/ui/components/icon-components/index.js.map +1 -1
- package/dist/src/ui/components/index.d.ts +2 -0
- package/dist/src/ui/components/index.d.ts.map +1 -1
- package/dist/src/ui/components/index.js +2 -0
- package/dist/src/ui/components/index.js.map +1 -1
- package/dist/src/ui/components/object-set-table/examples/table-editing/table-editing.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/examples/table-editing/table-editing.js +7 -0
- package/dist/src/ui/components/object-set-table/examples/table-editing/table-editing.js.map +1 -1
- package/dist/src/ui/components/object-set-table/index.d.ts +1 -0
- package/dist/src/ui/components/object-set-table/index.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/index.js +1 -0
- package/dist/src/ui/components/object-set-table/index.js.map +1 -1
- package/dist/src/ui/components/object-set-table/logic/table-api.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/logic/table-api.js +3 -9
- package/dist/src/ui/components/object-set-table/logic/table-api.js.map +1 -1
- package/dist/src/ui/components/object-set-table/mock-data.d.ts +1 -1
- package/dist/src/ui/components/object-set-table/mock-data.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/mock-data.js +2 -2
- package/dist/src/ui/components/object-set-table/mock-data.js.map +1 -1
- package/dist/src/ui/components/object-set-table/object-set-table.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/object-set-table.js +2 -1
- package/dist/src/ui/components/object-set-table/object-set-table.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/body.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/body.js +3 -3
- package/dist/src/ui/components/object-set-table/subcomponents/body.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/basic-cell.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/basic-cell.js +3 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/basic-cell.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/default-cell.d.ts +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/cells/default-cell.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/default-cell.js +2 -2
- package/dist/src/ui/components/object-set-table/subcomponents/cells/default-cell.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.js +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.js +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/row-number-cell.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/row-number-cell.js +2 -2
- package/dist/src/ui/components/object-set-table/subcomponents/cells/row-number-cell.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.d.ts +3 -2
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.js +19 -17
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.d.ts +2 -2
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.js +9 -9
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/index.d.ts +4 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/index.d.ts.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/index.js +4 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/index.js.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.d.ts +3 -2
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.js +8 -5
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/string-editor.d.ts +4 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/string-editor.d.ts.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/string-editor.js +12 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/string-editor.js.map +1 -0
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/boolean-render.d.ts +2 -2
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/boolean-render.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/boolean-render.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/get-render-fn.js +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/get-render-fn.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/number-render.d.ts +2 -2
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/number-render.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/number-render.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/text-render.d.ts +2 -2
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/text-render.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/text-render.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-column-config.js +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-column-config.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-header-renderers/default-header-renderer.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-header-renderers/default-header-renderer.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-sort-columns/default-sort-fns.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-sort-columns/default-sort-fns.js +19 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-sort-columns/default-sort-fns.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/header.d.ts +2 -3
- package/dist/src/ui/components/object-set-table/subcomponents/header.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/header.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/rows/render-row.d.ts +2 -2
- package/dist/src/ui/components/object-set-table/subcomponents/rows/render-row.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/rows/render-row.js +3 -3
- package/dist/src/ui/components/object-set-table/subcomponents/rows/render-row.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/rows/row-actions.d.ts +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/rows/row-actions.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.d.ts +2 -2
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.js +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.js.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.d.ts +7 -10
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.js +43 -14
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.js.map +1 -1
- package/dist/src/ui/components/object-set-table/types.d.ts +48 -17
- package/dist/src/ui/components/object-set-table/types.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/utils.d.ts +2 -2
- package/dist/src/ui/components/object-set-table/utils.d.ts.map +1 -1
- package/dist/src/ui/components/object-set-table/utils.js.map +1 -1
- package/dist/style.css +53 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +6 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/text-editor.d.ts +0 -3
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/text-editor.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/text-editor.js +0 -9
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/text-editor.js.map +0 -1
|
@@ -27,7 +27,7 @@ const ObjectSetTable = (config) => {
|
|
|
27
27
|
* Extend the config with default values in case they are not provided
|
|
28
28
|
*/
|
|
29
29
|
const extendedConfig = useMemo(() => {
|
|
30
|
-
const defaultColumnType = '
|
|
30
|
+
const defaultColumnType = 'string';
|
|
31
31
|
const _config = {
|
|
32
32
|
...config,
|
|
33
33
|
columns: config.columns.map((column) => ({
|
|
@@ -57,6 +57,7 @@ const ObjectSetTable = (config) => {
|
|
|
57
57
|
})),
|
|
58
58
|
width: config.width ?? 'auto',
|
|
59
59
|
minRowCount: config.minRowCount ?? 0,
|
|
60
|
+
minRowHeight: config.minRowHeight ?? 'auto',
|
|
60
61
|
allowRowSelection: config.allowRowSelection ?? true,
|
|
61
62
|
showRowNumbers: config.showRowNumbers ?? true,
|
|
62
63
|
apiRef: config.apiRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object-set-table.js","sourceRoot":"","sources":["../../../../../src/ui/components/object-set-table/object-set-table.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,yDAAyD,CAAA;AACrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAA;AACnG,OAAO,EAAE,kBAAkB,EAAE,MAAM,0DAA0D,CAAA;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAA;AAEhF,OAAO,EAAE,sBAAsB,EAAE,MAAM,sDAAsD,CAAA;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,qEAAqE,CAAA;AAC3G,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,4DAA4D,CAAA;AAE5F;;;;;;;;;;GAUG;AACH,MAAM,cAAc,GAAG,CAAgC,MAA+B,EAAE,EAAE;IACxF;;OAEG;IACH,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,EAAE;QAClC,MAAM,iBAAiB,GAAe,
|
|
1
|
+
{"version":3,"file":"object-set-table.js","sourceRoot":"","sources":["../../../../../src/ui/components/object-set-table/object-set-table.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,yDAAyD,CAAA;AACrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAA;AACnG,OAAO,EAAE,kBAAkB,EAAE,MAAM,0DAA0D,CAAA;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAA;AAEhF,OAAO,EAAE,sBAAsB,EAAE,MAAM,sDAAsD,CAAA;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,qEAAqE,CAAA;AAC3G,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,4DAA4D,CAAA;AAE5F;;;;;;;;;;GAUG;AACH,MAAM,cAAc,GAAG,CAAgC,MAA+B,EAAE,EAAE;IACxF;;OAEG;IACH,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,EAAE;QAClC,MAAM,iBAAiB,GAAe,QAAQ,CAAA;QAC9C,MAAM,OAAO,GAA4B;YACvC,GAAG,MAAM;YACT,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBACvC,GAAG,MAAM;gBACT,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,sBAAsB,CAAC,MAAM,CAAC,IAAI,IAAI,iBAAiB,CAAC;gBAC/E,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,iBAAiB;gBACtC,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI,kBAAkB;gBACrD,cAAc,EAAE,MAAM,CAAC,cAAc,IAAI,qBAAqB;gBAC9D,YAAY,EAAE,MAAM,CAAC,YAAY,IAAI,qBAAqB;gBAC1D,UAAU,EAAE,MAAM,CAAC,UAAU,IAAI,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC;gBACzD,QAAQ,EAAE,MAAM,CAAC,QAAQ,IAAI,KAAK;gBAClC,sDAAsD;gBACtD,MAAM,EACJ,MAAM,CAAC,MAAM;oBACb,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;wBAClB,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;4BACxB,yEAAyE;4BACzE,sCAAsC;4BACtC,OAAO,CAAC,IAAI,CAAC,0CAA0C,MAAM,CAAC,KAAK,EAAE,EAAE,mBAAmB,CAAC,CAAA;wBAC7F,CAAC;wBACD,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KAAgB,CAAC,GAAG,KAAmB,CAAA;wBACpF,OAAO,IAAI,CAAA;oBACb,CAAC,CAAC;gBACJ,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,IAAI,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC;gBACzE,UAAU;gBACV,QAAQ,EAAE,MAAM,CAAC,QAAQ,IAAI,KAAK;gBAClC,aAAa,EAAE,MAAM,CAAC,aAAa,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,IAAI,iBAAiB,CAAC;aACxF,CAAC,CAAC;YACH,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,MAAM;YAC7B,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI,CAAC;YACpC,YAAY,EAAE,MAAM,CAAC,YAAY,IAAI,MAAM;YAC3C,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,IAAI,IAAI;YACnD,cAAc,EAAE,MAAM,CAAC,cAAc,IAAI,IAAI;YAC7C,MAAM,EAAE,MAAM,CAAC,MAAM;SACtB,CAAA;QAED,OAAO,OAAO,CAAA;IAChB,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAA;IAEZ,MAAM,QAAQ,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAA;IAE/C,OAAO,CACL,KAAC,aAAa,IAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ,YACvD,KAAC,cAAc,cACb,cAAK,SAAS,EAAC,oEAAoE,YACjF,iBAAO,SAAS,EAAC,kBAAkB,EAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,KAAK,EAAE,aAClF,KAAC,WAAW,IAAC,OAAO,EAAE,cAAc,CAAC,OAAO,GAAI,EAChD,KAAC,SAAS,KAAG,IACP,GACJ,GACS,GACH,CACjB,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/object-set-table/subcomponents/body.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAI3C,QAAA,MAAM,SAAS,GAAI,CAAC,SAAS,QAAQ,
|
|
1
|
+
{"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/object-set-table/subcomponents/body.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAI3C,QAAA,MAAM,SAAS,GAAI,CAAC,SAAS,QAAQ,8CAqCpC,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -3,7 +3,7 @@ import { useGlobalTableKeyEvents } from '../hooks/useGlobalTableKeyEvents.js';
|
|
|
3
3
|
import { useInternalTableState } from './table-provider/table-provider.js';
|
|
4
4
|
import { RenderRow } from './rows/render-row.js';
|
|
5
5
|
const TableBody = () => {
|
|
6
|
-
const { config, api } = useInternalTableState();
|
|
6
|
+
const { config, state, api } = useInternalTableState();
|
|
7
7
|
// add global key events to the table
|
|
8
8
|
useGlobalTableKeyEvents();
|
|
9
9
|
const canRenderInsertRow = api.canAdd();
|
|
@@ -14,8 +14,8 @@ const TableBody = () => {
|
|
|
14
14
|
const emptyRowsCount = shouldRenderEmptyRows
|
|
15
15
|
? (config.minRowCount ?? 0) - config.data.length - (canRenderInsertRow ? 1 : 0)
|
|
16
16
|
: 0;
|
|
17
|
-
return (_jsxs("tbody", { className: "text-sm leading-5 text-gray-900", children: [
|
|
18
|
-
Array.from({ length: emptyRowsCount }).map((_, index) => (_jsx(RenderRow, { item: {}, rowIndex: index + config.data.length + (canRenderInsertRow ? 1 : 0), mode: "empty" }, index)))] }));
|
|
17
|
+
return (_jsxs("tbody", { className: "text-sm leading-5 text-gray-900", children: [state.data.map((data, index) => (_jsx(RenderRow, { item: data, rowIndex: index }, JSON.stringify({ data, _reactKeyIndex: index })))), canRenderInsertRow && (_jsx(RenderRow, { item: { data: {}, __index: state.data.length }, rowIndex: config.data.length, mode: "inserting" })), emptyRowsCount > 0 &&
|
|
18
|
+
Array.from({ length: emptyRowsCount }).map((_, index) => (_jsx(RenderRow, { item: { data: {}, __index: state.data.length + 1 + index }, rowIndex: index + config.data.length + (canRenderInsertRow ? 1 : 0), mode: "empty" }, index)))] }));
|
|
19
19
|
};
|
|
20
20
|
export { TableBody };
|
|
21
21
|
//# sourceMappingURL=body.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"body.js","sourceRoot":"","sources":["../../../../../../src/ui/components/object-set-table/subcomponents/body.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAA;AAE7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAA;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAEhD,MAAM,SAAS,GAAG,GAAuB,EAAE;IACzC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,qBAAqB,EAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"body.js","sourceRoot":"","sources":["../../../../../../src/ui/components/object-set-table/subcomponents/body.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAA;AAE7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAA;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAEhD,MAAM,SAAS,GAAG,GAAuB,EAAE;IACzC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,qBAAqB,EAAK,CAAA;IAEzD,qCAAqC;IACrC,uBAAuB,EAAE,CAAA;IAEzB,MAAM,kBAAkB,GAAG,GAAG,CAAC,MAAM,EAAE,CAAA;IACvC,uHAAuH;IACvH,MAAM,qBAAqB,GAAG,kBAAkB;QAC9C,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,MAAM,CAAC,WAAW,IAAI,CAAC,CAAC,GAAG,CAAC;QACpD,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,MAAM,CAAC,WAAW,IAAI,CAAC,CAAC,CAAA;IAElD,MAAM,cAAc,GAAG,qBAAqB;QAC1C,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,IAAI,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/E,CAAC,CAAC,CAAC,CAAA;IAEL,OAAO,CACL,iBAAO,SAAS,EAAC,iCAAiC,aAC/C,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC/B,KAAC,SAAS,IAAuD,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,IAA5E,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAiC,CACjG,CAAC,EAED,kBAAkB,IAAI,CACrB,KAAC,SAAS,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAC,WAAW,GAAG,CAC7G,EAEA,cAAc,GAAG,CAAC;gBACjB,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACvD,KAAC,SAAS,IAER,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,EAAE,EAC1D,QAAQ,EAAE,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EACnE,IAAI,EAAC,OAAO,IAHP,KAAK,CAIV,CACH,CAAC,IACE,CACT,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-cell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/cells/basic-cell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"basic-cell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/cells/basic-cell.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAYxE,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from '../../../../../scalars/lib/utils.js';
|
|
3
|
+
import { useInternalTableState } from '../table-provider/table-provider.js';
|
|
3
4
|
const TableCellBasic = ({ children, className, ...props }) => {
|
|
4
|
-
|
|
5
|
+
const { config: { minRowHeight }, } = useInternalTableState();
|
|
6
|
+
return (_jsx("td", { className: cn('object-set-table__td', className), ...props, children: _jsx("div", { className: "flex flex-col", style: { minHeight: minRowHeight === 'auto' ? '100%' : minRowHeight }, children: children }) }));
|
|
5
7
|
};
|
|
6
8
|
export { TableCellBasic };
|
|
7
9
|
//# sourceMappingURL=basic-cell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-cell.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/cells/basic-cell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;
|
|
1
|
+
{"version":3,"file":"basic-cell.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/cells/basic-cell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAE3E,MAAM,cAAc,GAAyD,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACjH,MAAM,EACJ,MAAM,EAAE,EAAE,YAAY,EAAE,GACzB,GAAG,qBAAqB,EAAE,CAAA;IAE3B,OAAO,CACL,aAAI,SAAS,EAAE,EAAE,CAAC,sBAAsB,EAAE,SAAS,CAAC,KAAM,KAAK,YAC7D,cAAK,SAAS,EAAC,eAAe,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,YAAY,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,EAAE,YACjG,QAAQ,GACL,GACH,CACN,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-cell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/cells/default-cell.tsx"],"names":[],"mappings":"AAGA,UAAU,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC;IAChF,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;CACpB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"default-cell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/cells/default-cell.tsx"],"names":[],"mappings":"AAGA,UAAU,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC;IAChF,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAqBrD,CAAA;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from '../../../../../scalars/lib/utils.js';
|
|
3
3
|
import { TableCellBasic } from './basic-cell.js';
|
|
4
|
-
const DefaultTableCell = ({ children, className, isSelected, isEditable, ...props }) => {
|
|
5
|
-
return (_jsx(TableCellBasic, { tabIndex: 0, ...props, className: cn(className, 'py-0 focus:outline-none'), children: _jsx("div", { className: cn('flex
|
|
4
|
+
const DefaultTableCell = ({ children, className, isSelected, isEditable, isEditing = false, ...props }) => {
|
|
5
|
+
return (_jsx(TableCellBasic, { tabIndex: 0, ...props, className: cn(className, 'py-0 focus:outline-none'), children: _jsx("div", { className: cn('flex flex-1 items-center border border-transparent', !isEditing && 'py-2', isSelected && (isEditable ? 'border-blue-900' : 'border-gray-400')), children: _jsx("div", { className: "w-full px-[12px] py-2", children: children }) }) }));
|
|
6
6
|
};
|
|
7
7
|
export { DefaultTableCell };
|
|
8
8
|
//# sourceMappingURL=default-cell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-cell.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/cells/default-cell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"default-cell.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/cells/default-cell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAQhD,MAAM,gBAAgB,GAAoC,CAAC,EACzD,QAAQ,EACR,SAAS,EACT,UAAU,EACV,UAAU,EACV,SAAS,GAAG,KAAK,EACjB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,KAAC,cAAc,IAAC,QAAQ,EAAE,CAAC,KAAM,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,yBAAyB,CAAC,YACzF,cACE,SAAS,EAAE,EAAE,CACX,oDAAoD,EACpD,CAAC,SAAS,IAAI,MAAM,EACpB,UAAU,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CACnE,YAED,cAAK,SAAS,EAAC,uBAAuB,YAAE,QAAQ,GAAO,GACnD,GACS,CAClB,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -5,7 +5,7 @@ import { TableCellBasic } from './basic-cell.js';
|
|
|
5
5
|
const InformationCell = ({ rowIndex, emptyRow }) => {
|
|
6
6
|
const { state: { selectedRowIndexes }, api, } = useInternalTableState();
|
|
7
7
|
const canDelete = api.canDelete();
|
|
8
|
-
return (_jsx(TableCellBasic, { className: "min-w-[40px] max-w-[40px]", children: !emptyRow && canDelete && selectedRowIndexes.includes(rowIndex) && (_jsx("div", { className: "flex
|
|
8
|
+
return (_jsx(TableCellBasic, { className: "min-w-[40px] max-w-[40px]", children: !emptyRow && canDelete && selectedRowIndexes.includes(rowIndex) && (_jsx("div", { className: "flex flex-1 w-full items-center justify-center cursor-pointer text-red-900", onClick: () => {
|
|
9
9
|
void api.deleteRows([rowIndex]);
|
|
10
10
|
}, children: _jsx(Icon, { name: "Trash", size: 16 }) })) }));
|
|
11
11
|
};
|
package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-cell.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAOzE,UAAU,eAAe,CAAC,CAAC,SAAS,QAAQ;IAC1C,OAAO,EAAE,CAAC,CAAA;IACV,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,QAAA,MAAM,UAAU,GAAI,CAAC,SAAS,QAAQ,EAAE,8DAMrC,eAAe,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"render-cell.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAOzE,UAAU,eAAe,CAAC,CAAC,SAAS,QAAQ;IAC1C,OAAO,EAAE,CAAC,CAAA;IACV,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,QAAA,MAAM,UAAU,GAAI,CAAC,SAAS,QAAQ,EAAE,8DAMrC,eAAe,CAAC,CAAC,CAAC,4CA6CpB,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.js
CHANGED
|
@@ -28,7 +28,7 @@ const RenderCell = ({ rowItem, column, rowIndex, columnIndex, renderEmptyCell =
|
|
|
28
28
|
// get and format the cell value
|
|
29
29
|
const cellValue = column.valueFormatter?.(column.valueGetter?.(rowItem, cellContext), cellContext);
|
|
30
30
|
const isThisCellEditMode = isCellEditMode && isThisCellSelected;
|
|
31
|
-
return (_jsx(DefaultTableCell, { onClick: handleCellClick, isSelected: isThisCellSelected, isEditable: column.editable ?? false, children: _jsxs(Form, { ref: formRef, onSubmit: () => undefined, submitChangesOnly: true, children: [_jsx("div", { className: cn({ hidden: !isThisCellEditMode }), children: column.renderCellEditor?.(cellValue, () => null, cellContext) }), _jsx("div", { className: cn({ hidden: isThisCellEditMode }), children: column.renderCell?.(cellValue, cellContext) })] }) }, column.field));
|
|
31
|
+
return (_jsx(DefaultTableCell, { onClick: handleCellClick, isSelected: isThisCellSelected, isEditable: column.editable ?? false, isEditing: isThisCellEditMode, children: _jsxs(Form, { ref: formRef, onSubmit: () => undefined, submitChangesOnly: true, children: [_jsx("div", { className: cn({ hidden: !isThisCellEditMode }), children: column.renderCellEditor?.(cellValue, () => null, cellContext) }), _jsx("div", { className: cn({ hidden: isThisCellEditMode }), children: column.renderCell?.(cellValue, cellContext) })] }) }, column.field));
|
|
32
32
|
};
|
|
33
33
|
export { RenderCell };
|
|
34
34
|
//# sourceMappingURL=render-cell.js.map
|
package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-cell.js","sourceRoot":"","sources":["../../../../../../../../src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,mDAAmD,CAAA;AACxE,OAAO,EAAE,EAAE,EAAE,MAAM,wCAAwC,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAUlD,MAAM,UAAU,GAAG,CAAqB,EACtC,OAAO,EACP,MAAM,EACN,QAAQ,EACR,WAAW,EACX,eAAe,GAAG,KAAK,GACJ,EAAE,EAAE;IACvB,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,YAAY,CAAC;QAC5F,MAAM;QACN,QAAQ;QACR,WAAW;QACX,eAAe;KAChB,CAAC,CAAA;IAEF;;;OAGG;IACH,IAAI,eAAe,EAAE,CAAC;QACpB,OAAO,KAAC,SAAS,IAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,kBAAkB,EAAE,OAAO,EAAE,eAAe,GAAI,CAAA;IAChG,CAAC;IAED,MAAM,WAAW,GAAmB;QAClC,GAAG,EAAE,OAAO;QACZ,MAAM;QACN,QAAQ;QACR,WAAW;QACX,WAAW,EAAE,MAAM;KACpB,CAAA;IAED,gCAAgC;IAChC,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,EAAE,WAAW,CAAC,CAAA;IAElG,MAAM,kBAAkB,GAAG,cAAc,IAAI,kBAAkB,CAAA;IAE/D,OAAO,CACL,KAAC,gBAAgB,IAEf,OAAO,EAAE,eAAe,EACxB,UAAU,EAAE,kBAAkB,EAC9B,UAAU,EAAE,MAAM,CAAC,QAAQ,IAAI,KAAK,
|
|
1
|
+
{"version":3,"file":"render-cell.js","sourceRoot":"","sources":["../../../../../../../../src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,mDAAmD,CAAA;AACxE,OAAO,EAAE,EAAE,EAAE,MAAM,wCAAwC,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAUlD,MAAM,UAAU,GAAG,CAAqB,EACtC,OAAO,EACP,MAAM,EACN,QAAQ,EACR,WAAW,EACX,eAAe,GAAG,KAAK,GACJ,EAAE,EAAE;IACvB,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,YAAY,CAAC;QAC5F,MAAM;QACN,QAAQ;QACR,WAAW;QACX,eAAe;KAChB,CAAC,CAAA;IAEF;;;OAGG;IACH,IAAI,eAAe,EAAE,CAAC;QACpB,OAAO,KAAC,SAAS,IAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,kBAAkB,EAAE,OAAO,EAAE,eAAe,GAAI,CAAA;IAChG,CAAC;IAED,MAAM,WAAW,GAAmB;QAClC,GAAG,EAAE,OAAO;QACZ,MAAM;QACN,QAAQ;QACR,WAAW;QACX,WAAW,EAAE,MAAM;KACpB,CAAA;IAED,gCAAgC;IAChC,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,EAAE,WAAW,CAAC,CAAA;IAElG,MAAM,kBAAkB,GAAG,cAAc,IAAI,kBAAkB,CAAA;IAE/D,OAAO,CACL,KAAC,gBAAgB,IAEf,OAAO,EAAE,eAAe,EACxB,UAAU,EAAE,kBAAkB,EAC9B,UAAU,EAAE,MAAM,CAAC,QAAQ,IAAI,KAAK,EACpC,SAAS,EAAE,kBAAkB,YAE7B,MAAC,IAAI,IAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE,iBAAiB,mBAC9D,cAAK,SAAS,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,kBAAkB,EAAE,CAAC,YAChD,MAAM,CAAC,gBAAgB,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,GAC1D,EACN,cAAK,SAAS,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC,YAAG,MAAM,CAAC,UAAU,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,GAAO,IAClG,IAXF,MAAM,CAAC,KAAK,CAYA,CACpB,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
package/dist/src/ui/components/object-set-table/subcomponents/cells/row-number-cell.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row-number-cell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/cells/row-number-cell.tsx"],"names":[],"mappings":"AAIA,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,oBAAoB,CAAC,KAAK,IAAI,CAAA;IAChF,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"row-number-cell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/cells/row-number-cell.tsx"],"names":[],"mappings":"AAIA,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,oBAAoB,CAAC,KAAK,IAAI,CAAA;IAChF,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAyB/C,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -3,13 +3,13 @@ import { cn } from '../../../../../scalars/lib/utils.js';
|
|
|
3
3
|
import { useInternalTableState } from '../table-provider/table-provider.js';
|
|
4
4
|
import { TableCellBasic } from './basic-cell.js';
|
|
5
5
|
const RowNumberCell = ({ index, handleSelectRowOnClick, selected }) => {
|
|
6
|
-
const { config: { showRowNumbers, allowRowSelection }, } = useInternalTableState();
|
|
6
|
+
const { config: { showRowNumbers, allowRowSelection, minRowHeight }, } = useInternalTableState();
|
|
7
7
|
if (!showRowNumbers && !allowRowSelection) {
|
|
8
8
|
// if allow selection is enabled we need to show the row anyways
|
|
9
9
|
// to allow the user to select the row
|
|
10
10
|
return null;
|
|
11
11
|
}
|
|
12
|
-
return (_jsx(TableCellBasic, { className: cn('select-none border-r border-gray-300 text-center', allowRowSelection && 'cursor-pointer', selected && 'bg-blue-900 text-white'), onClick: handleSelectRowOnClick, children: showRowNumbers ? index : '' }));
|
|
12
|
+
return (_jsx(TableCellBasic, { className: cn('select-none border-r border-gray-300 text-center', allowRowSelection && 'cursor-pointer', selected && 'bg-blue-900 text-white'), onClick: handleSelectRowOnClick, children: _jsx("div", { className: "flex flex-1 items-center justify-center py-4", style: { minHeight: minRowHeight }, children: showRowNumbers ? index : '' }) }));
|
|
13
13
|
};
|
|
14
14
|
export { RowNumberCell };
|
|
15
15
|
//# sourceMappingURL=row-number-cell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row-number-cell.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/cells/row-number-cell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAQhD,MAAM,aAAa,GAAiC,CAAC,EAAE,KAAK,EAAE,sBAAsB,EAAE,QAAQ,EAAE,EAAE,EAAE;IAClG,MAAM,EACJ,MAAM,EAAE,EAAE,cAAc,EAAE,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"row-number-cell.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/cells/row-number-cell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAQhD,MAAM,aAAa,GAAiC,CAAC,EAAE,KAAK,EAAE,sBAAsB,EAAE,QAAQ,EAAE,EAAE,EAAE;IAClG,MAAM,EACJ,MAAM,EAAE,EAAE,cAAc,EAAE,iBAAiB,EAAE,YAAY,EAAE,GAC5D,GAAG,qBAAqB,EAAE,CAAA;IAE3B,IAAI,CAAC,cAAc,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAC1C,gEAAgE;QAChE,sCAAsC;QACtC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,CACL,KAAC,cAAc,IACb,SAAS,EAAE,EAAE,CACX,kDAAkD,EAClD,iBAAiB,IAAI,gBAAgB,EACrC,QAAQ,IAAI,wBAAwB,CACrC,EACD,OAAO,EAAE,sBAAsB,YAE/B,cAAK,SAAS,EAAC,8CAA8C,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,YAC7F,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GACxB,GACS,CAClB,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
1
|
+
import { type BooleanFieldProps } from '../../../../../scalars/components/boolean-field/boolean-field.js';
|
|
2
|
+
import type { CellContext, DataType } from '../../types.js';
|
|
3
|
+
export declare const booleanCellEditorFactory: <T extends DataType>(booleanFieldProps: Omit<BooleanFieldProps, "name" | "value" | "onChange">) => (value: unknown, onChange: (newValue: unknown) => void, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
//# sourceMappingURL=boolean-editor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean-editor.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"boolean-editor.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,kEAAkE,CAAA;AAEvH,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE3D,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,QAAQ,EACzD,mBAAmB,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,aAEvC,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,WAAW,WAAW,CAAC,CAAC,CAAC,4CAiC1G,CAAA"}
|
package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.js
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { BooleanField } from '../../../../../scalars/components/boolean-field/boolean-field.js';
|
|
3
3
|
import { cn } from '../../../../../scalars/lib/utils.js';
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
export const booleanCellEditorFactory = (booleanFieldProps) => {
|
|
5
|
+
const BooleanCellEditor = (value, onChange, context) => {
|
|
6
|
+
const booleanValue = (() => {
|
|
7
|
+
if (typeof value === 'boolean') {
|
|
8
|
+
return value;
|
|
9
|
+
}
|
|
10
|
+
else if (typeof value === 'string') {
|
|
11
|
+
return value === 'true';
|
|
12
|
+
}
|
|
13
|
+
return Boolean(value);
|
|
14
|
+
})();
|
|
15
|
+
return (_jsx("div", { className: cn('flex [&_button]:!mr-0', {
|
|
16
|
+
'justify-center': context.column.align === 'center',
|
|
17
|
+
'justify-end': context.column.align === 'right',
|
|
18
|
+
}), children: _jsx(BooleanField, { autoFocus: true, isToggle: false, name: context.column.field, ...booleanFieldProps, value: booleanValue, onChange: (value) => {
|
|
19
|
+
onChange(value);
|
|
20
|
+
} }) }));
|
|
21
|
+
};
|
|
22
|
+
return BooleanCellEditor;
|
|
20
23
|
};
|
|
21
|
-
export const booleanCellEditor = BooleanCellEditor;
|
|
22
24
|
//# sourceMappingURL=boolean-editor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean-editor.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"boolean-editor.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAA0B,MAAM,kEAAkE,CAAA;AACvH,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AAGxD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,iBAAyE,EACzE,EAAE;IACF,MAAM,iBAAiB,GAAG,CAAC,KAAc,EAAE,QAAqC,EAAE,OAAuB,EAAE,EAAE;QAC3G,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE;YACzB,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE,CAAC;gBAC/B,OAAO,KAAK,CAAA;YACd,CAAC;iBAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBACrC,OAAO,KAAK,KAAK,MAAM,CAAA;YACzB,CAAC;YAED,OAAO,OAAO,CAAC,KAAK,CAAC,CAAA;QACvB,CAAC,CAAC,EAAE,CAAA;QAEJ,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC,uBAAuB,EAAE;gBACrC,gBAAgB,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;gBACnD,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;aAChD,CAAC,YAEF,KAAC,YAAY,IACX,SAAS,QACT,QAAQ,EAAE,KAAK,EACf,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KACtB,iBAAiB,EACrB,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,CAAC,KAAc,EAAE,EAAE;oBAC3B,QAAQ,CAAC,KAAK,CAAC,CAAA;gBACjB,CAAC,GACD,GACE,CACP,CAAA;IACH,CAAC,CAAA;IAED,OAAO,iBAAiB,CAAA;AAC1B,CAAC,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ColumnType, RenderCellEditorFn } from '../../types.js';
|
|
2
|
-
export declare const getCellEditorFn: <T>(type?: ColumnType) => RenderCellEditorFn<T, unknown>;
|
|
1
|
+
import type { ColumnType, DataType, RenderCellEditorFn } from '../../types.js';
|
|
2
|
+
export declare const getCellEditorFn: <T extends DataType = DataType>(type?: ColumnType) => RenderCellEditorFn<T, unknown>;
|
|
3
3
|
//# sourceMappingURL=get-cell-editor-fn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-cell-editor-fn.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"get-cell-editor-fn.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAK9E,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,UAAU,KAAG,kBAAkB,CAAC,CAAC,EAAE,OAAO,CAa/G,CAAA"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { booleanCellEditorFactory } from './boolean-editor.js';
|
|
2
|
+
import { numberCellEditorFactory } from './number-editor.js';
|
|
3
|
+
import { stringCellEditorFactory } from './string-editor.js';
|
|
4
4
|
export const getCellEditorFn = (type) => {
|
|
5
5
|
switch (type) {
|
|
6
|
-
case '
|
|
7
|
-
return
|
|
6
|
+
case 'string':
|
|
7
|
+
return stringCellEditorFactory({});
|
|
8
8
|
case 'number':
|
|
9
|
-
return
|
|
9
|
+
return numberCellEditorFactory({});
|
|
10
10
|
case 'boolean':
|
|
11
|
-
return
|
|
11
|
+
return booleanCellEditorFactory({});
|
|
12
12
|
case undefined:
|
|
13
|
-
return
|
|
13
|
+
return stringCellEditorFactory({});
|
|
14
14
|
default:
|
|
15
|
-
return
|
|
15
|
+
return stringCellEditorFactory({});
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=get-cell-editor-fn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-cell-editor-fn.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"get-cell-editor-fn.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAE5D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAgC,IAAiB,EAAkC,EAAE;IAClH,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,QAAQ;YACX,OAAO,uBAAuB,CAAC,EAAE,CAAC,CAAA;QACpC,KAAK,QAAQ;YACX,OAAO,uBAAuB,CAAC,EAAE,CAAC,CAAA;QACpC,KAAK,SAAS;YACZ,OAAO,wBAAwB,CAAC,EAAE,CAAC,CAAA;QACrC,KAAK,SAAS;YACZ,OAAO,uBAAuB,CAAC,EAAE,CAAC,CAAA;QACpC;YACE,OAAO,uBAAuB,CAAC,EAAE,CAAC,CAAA;IACtC,CAAC;AACH,CAAC,CAAA"}
|
package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-editors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA"}
|
package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-editors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { NumberFieldProps } from '../../../data-entry/number-input/types.js';
|
|
2
|
+
import type { CellContext, DataType } from '../../types.js';
|
|
3
|
+
export declare const numberCellEditorFactory: <T extends DataType>(numberFieldProps: Omit<NumberFieldProps, "name" | "value" | "onChange">) => (value: unknown, onChange: (newValue: unknown) => unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
//# sourceMappingURL=number-editor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-editor.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"number-editor.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE3D,eAAO,MAAM,uBAAuB,GAAI,CAAC,SAAS,QAAQ,EACxD,kBAAkB,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,aAEtC,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,KAAK,OAAO,WAAW,WAAW,CAAC,CAAC,CAAC,4CAkB5G,CAAA"}
|
package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { NumberField } from '../../../../../scalars/components/number-field/number-field.js';
|
|
3
|
-
export const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export const numberCellEditorFactory = (numberFieldProps) => {
|
|
4
|
+
const NumberCellEditor = (value, onChange, context) => {
|
|
5
|
+
const numericValue = typeof value === 'number' ? value : Number(value) || 0;
|
|
6
|
+
return (_jsx(NumberField, { name: context.column.field, className: "max-w-full", autoFocus: true, ...numberFieldProps, value: numericValue, onChange: (event) => {
|
|
7
|
+
onChange(Number(event.target.value));
|
|
8
|
+
} }));
|
|
9
|
+
};
|
|
10
|
+
return NumberCellEditor;
|
|
8
11
|
};
|
|
9
12
|
//# sourceMappingURL=number-editor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-editor.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gEAAgE,CAAA;
|
|
1
|
+
{"version":3,"file":"number-editor.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gEAAgE,CAAA;AAI5F,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,gBAAuE,EACvE,EAAE;IACF,MAAM,gBAAgB,GAAG,CAAC,KAAc,EAAE,QAAwC,EAAE,OAAuB,EAAE,EAAE;QAC7G,MAAM,YAAY,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;QAE3E,OAAO,CACL,KAAC,WAAW,IACV,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAC1B,SAAS,EAAC,YAAY,EACtB,SAAS,WACL,gBAAgB,EACpB,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;gBAClB,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;YACtC,CAAC,GACD,CACH,CAAA;IACH,CAAC,CAAA;IAED,OAAO,gBAAgB,CAAA;AACzB,CAAC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type StringFieldProps } from '../../../../../scalars/components/string-field/string-field.js';
|
|
2
|
+
import type { CellContext, DataType } from '../../types.js';
|
|
3
|
+
export declare const stringCellEditorFactory: <T extends DataType>(stringFieldProps: Omit<StringFieldProps, "name" | "value" | "onChange">) => (value: unknown, onChange: (newValue: unknown) => void, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=string-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string-editor.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-editors/string-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,gEAAgE,CAAA;AACnH,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE3D,eAAO,MAAM,uBAAuB,GAAI,CAAC,SAAS,QAAQ,EACxD,kBAAkB,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,aAEtC,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,WAAW,WAAW,CAAC,CAAC,CAAC,4CAiBzG,CAAA"}
|
package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/string-editor.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { StringField } from '../../../../../scalars/components/string-field/string-field.js';
|
|
3
|
+
export const stringCellEditorFactory = (stringFieldProps) => {
|
|
4
|
+
const StringCellEditor = (value, onChange, context) => {
|
|
5
|
+
const stringValue = typeof value === 'string' ? value : String(value ?? '');
|
|
6
|
+
return (_jsx(StringField, { name: context.column.field, className: "max-w-full", autoFocus: true, ...stringFieldProps, value: stringValue, onChange: (e) => {
|
|
7
|
+
onChange(e.target.value);
|
|
8
|
+
} }));
|
|
9
|
+
};
|
|
10
|
+
return StringCellEditor;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=string-editor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string-editor.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-editors/string-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,gEAAgE,CAAA;AAGnH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,gBAAuE,EACvE,EAAE;IACF,MAAM,gBAAgB,GAAG,CAAC,KAAc,EAAE,QAAqC,EAAE,OAAuB,EAAE,EAAE;QAC1G,MAAM,WAAW,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAA;QAC3E,OAAO,CACL,KAAC,WAAW,IACV,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAC1B,SAAS,EAAC,YAAY,EACtB,SAAS,WACL,gBAAgB,EACpB,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;gBACd,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;YAC1B,CAAC,GACD,CACH,CAAA;IACH,CAAC,CAAA;IAED,OAAO,gBAAgB,CAAA;AACzB,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CellContext } from '../../types.js';
|
|
2
|
-
declare const renderBooleanCell: (value: unknown, context: CellContext) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import type { CellContext, DataType } from '../../types.js';
|
|
2
|
+
declare const renderBooleanCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { renderBooleanCell };
|
|
4
4
|
//# sourceMappingURL=boolean-render.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean-render.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-renderers/boolean-render.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"boolean-render.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-renderers/boolean-render.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE3D,QAAA,MAAM,iBAAiB,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAehG,CAAA;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean-render.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-renderers/boolean-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAA;AAGnE,MAAM,iBAAiB,GAAG,
|
|
1
|
+
{"version":3,"file":"boolean-render.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-renderers/boolean-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAA;AAGnE,MAAM,iBAAiB,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IACnG,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CACX;YACE,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC/C,gBAAgB,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YACnD,eAAe,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SAC1E,EACD,aAAa,CACd,YAED,KAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,EAAE,QAAQ,EAAE,IAAI,GAAI,GACzD,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-render-fn.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-renderers/get-render-fn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,MAAM,WAAW,GAAG,CAAI,IAA4B,EAAmB,EAAE;IACvE,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,
|
|
1
|
+
{"version":3,"file":"get-render-fn.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-renderers/get-render-fn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,MAAM,WAAW,GAAG,CAAI,IAA4B,EAAmB,EAAE;IACvE,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,QAAQ;YACX,OAAO,cAAc,CAAA;QACvB,KAAK,QAAQ;YACX,OAAO,gBAAgB,CAAA;QACzB,KAAK,SAAS;YACZ,OAAO,iBAAiB,CAAA;QAC1B,KAAK,SAAS;YACZ,OAAO,cAAc,CAAA;QACvB;YACE,OAAO,cAAc,CAAA;IACzB,CAAC;AACH,CAAC,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CellContext } from '../../types.js';
|
|
2
|
-
declare const renderNumberCell: (value: unknown, context: CellContext) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import type { CellContext, DataType } from '../../types.js';
|
|
2
|
+
declare const renderNumberCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { renderNumberCell };
|
|
4
4
|
//# sourceMappingURL=number-render.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-render.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-renderers/number-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"number-render.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-renderers/number-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE3D,QAAA,MAAM,gBAAgB,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAe/F,CAAA;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-render.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-renderers/number-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AAGxD,MAAM,gBAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"number-render.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-renderers/number-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AAGxD,MAAM,gBAAgB,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IAClG,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CACX;YACE,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC9C,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YAChD,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SACtE,EACD,eAAe,CAChB,YAEA,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,GACpB,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CellContext } from '../../types.js';
|
|
2
|
-
declare const renderTextCell: (value: unknown, context: CellContext) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import type { CellContext, DataType } from '../../types.js';
|
|
2
|
+
declare const renderTextCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { renderTextCell };
|
|
4
4
|
//# sourceMappingURL=text-render.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-render.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-renderers/text-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"text-render.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-renderers/text-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE3D,QAAA,MAAM,cAAc,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAY7F,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-render.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-renderers/text-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AAGxD,MAAM,cAAc,GAAG,
|
|
1
|
+
{"version":3,"file":"text-render.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-cell-renderers/text-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AAGxD,MAAM,cAAc,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IAChG,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC;YACZ,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC9C,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YAChD,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SACtE,CAAC,YAED,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,GACpB,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-column-config.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-fns/default-column-config.ts"],"names":[],"mappings":"AAEA,MAAM,sBAAsB,GAAG,CAAC,UAAsB,EAAmB,EAAE;IACzE,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,QAAQ;YACX,OAAO,OAAO,CAAA;QAEhB,KAAK,
|
|
1
|
+
{"version":3,"file":"default-column-config.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-fns/default-column-config.ts"],"names":[],"mappings":"AAEA,MAAM,sBAAsB,GAAG,CAAC,UAAsB,EAAmB,EAAE;IACzE,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,QAAQ;YACX,OAAO,OAAO,CAAA;QAEhB,KAAK,QAAQ,CAAC;QACd,KAAK,SAAS,CAAC;QACf;YACE,OAAO,MAAM,CAAA;IACjB,CAAC;AACH,CAAC,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-header-renderer.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-header-renderers/default-header-renderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"default-header-renderer.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-header-renderers/default-header-renderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAY,MAAM,gBAAgB,CAAA;AA2C3D,QAAA,MAAM,qBAAqB,GAAI,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAE9E,CAAA;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-header-renderer.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-header-renderers/default-header-renderer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAE3E,MAAM,oBAAoB,GAAG,CAAC,EAAE,KAAK,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"default-header-renderer.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-header-renderers/default-header-renderer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAE3E,MAAM,oBAAoB,GAAG,CAAC,EAAE,KAAK,EAAE,OAAO,EAAqD,EAAE,EAAE;IACrG,MAAM,EAAE,KAAK,EAAE,GAAG,qBAAqB,EAAE,CAAA;IAEzC,IAAI,OAAO,GAAG,EAAE,CAAA;IAChB,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK;QAAE,OAAO,IAAI,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAA;IACnE,IAAI,OAAO,CAAC,MAAM,CAAC,QAAQ;QAAE,OAAO,IAAI,WAAW,OAAO,CAAC,MAAM,CAAC,QAAQ,GAAG,CAAA;IAC7E,IAAI,OAAO,CAAC,MAAM,CAAC,QAAQ;QAAE,OAAO,IAAI,WAAW,OAAO,CAAC,MAAM,CAAC,QAAQ,GAAG,CAAA;IAC7E,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QACzB,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAA;QAClC,QAAQ,KAAK,EAAE,CAAC;YACd,KAAK,MAAM;gBACT,OAAO,IAAI,gBAAgB,CAAA;gBAC3B,MAAK;YACP,KAAK,QAAQ;gBACX,OAAO,IAAI,iBAAiB,CAAA;gBAC5B,MAAK;YACP,KAAK,OAAO;gBACV,OAAO,IAAI,cAAc,CAAA;gBACzB,MAAK;QACT,CAAC;IACH,CAAC;IAED,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,KAAK,KAAK,CAAC,SAAS,EAAE,WAAW,CAAA;IACrE,MAAM,gBAAgB,GAAG,KAAK,CAAC,SAAS,EAAE,SAAS,IAAI,IAAI,CAAA;IAE3D,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,yBAAyB,EACzB,oFAAoF,EACpF,OAAO,CACR,aAED,yBAAO,KAAK,GAAQ,EACnB,OAAO,CAAC,MAAM,CAAC,QAAQ,IAAI,KAAC,aAAa,IAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,GAAI,IACxF,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,qBAAqB,GAAG,CAAgB,KAAQ,EAAE,OAAuB,EAAE,EAAE;IACjF,OAAO,KAAC,oBAAoB,IAAC,KAAK,EAAE,KAAe,EAAE,OAAO,EAAE,OAAgC,GAAI,CAAA;AACpG,CAAC,CAAA;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-sort-fns.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-sort-columns/default-sort-fns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"default-sort-fns.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/default-sort-columns/default-sort-fns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AA4BxD,eAAO,MAAM,cAAc,GAAI,CAAC,GAAG,OAAO,EAAE,YAAY,UAAU,KAAG,MAAM,CAAC,CAAC,CAU5E,CAAA"}
|