@vuu-ui/vuu-data-react 0.8.58 → 0.8.59
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/cjs/data-editing/date-editing-utils.js +24 -0
- package/cjs/data-editing/date-editing-utils.js.map +1 -0
- package/cjs/index.js +2 -0
- package/cjs/index.js.map +1 -1
- package/esm/data-editing/date-editing-utils.js +22 -0
- package/esm/data-editing/date-editing-utils.js.map +1 -0
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -1
- package/package.json +12 -11
- package/types/data-editing/date-editing-utils.d.ts +8 -0
- package/types/data-editing/index.d.ts +1 -0
- package/types/index.d.ts +1 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var vuuUiControls = require('@vuu-ui/vuu-ui-controls');
|
|
5
|
+
|
|
6
|
+
const getDataItemEditControl = ({
|
|
7
|
+
column,
|
|
8
|
+
onCommit
|
|
9
|
+
}) => {
|
|
10
|
+
switch (column.serverDataType) {
|
|
11
|
+
default:
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13
|
+
vuuUiControls.VuuInput,
|
|
14
|
+
{
|
|
15
|
+
"data-field": column.name,
|
|
16
|
+
onCommit,
|
|
17
|
+
variant: "secondary"
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
exports.getDataItemEditControl = getDataItemEditControl;
|
|
24
|
+
//# sourceMappingURL=date-editing-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-editing-utils.js","sources":["../../src/data-editing/date-editing-utils.tsx"],"sourcesContent":["import { ColumnDescriptor } from \"@vuu-ui/vuu-table-types\";\nimport { Commithandler, VuuInput } from \"@vuu-ui/vuu-ui-controls\";\n\nexport interface DataItemEditControlProps {\n column: ColumnDescriptor;\n onCommit: Commithandler;\n}\n\nexport const getDataItemEditControl = ({\n column,\n onCommit,\n}: DataItemEditControlProps) => {\n switch (column.serverDataType) {\n default:\n return (\n <VuuInput\n data-field={column.name}\n onCommit={onCommit}\n variant=\"secondary\"\n />\n );\n }\n};\n"],"names":["jsx","VuuInput"],"mappings":";;;;;AAQO,MAAM,yBAAyB,CAAC;AAAA,EACrC,MAAA;AAAA,EACA,QAAA;AACF,CAAgC,KAAA;AAC9B,EAAA,QAAQ,OAAO,cAAgB;AAAA,IAC7B;AACE,MACE,uBAAAA,cAAA;AAAA,QAACC,sBAAA;AAAA,QAAA;AAAA,UACC,cAAY,MAAO,CAAA,IAAA;AAAA,UACnB,QAAA;AAAA,UACA,OAAQ,EAAA,WAAA;AAAA,SAAA;AAAA,OACV,CAAA;AAAA,GAEN;AACF;;;;"}
|
package/cjs/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var dateEditingUtils = require('./data-editing/date-editing-utils.js');
|
|
3
4
|
var useDataSource = require('./hooks/useDataSource.js');
|
|
4
5
|
var useLookupValues = require('./hooks/useLookupValues.js');
|
|
5
6
|
var useServerConnectionStatus = require('./hooks/useServerConnectionStatus.js');
|
|
@@ -10,6 +11,7 @@ var useVuuTables = require('./hooks/useVuuTables.js');
|
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
|
|
14
|
+
exports.getDataItemEditControl = dateEditingUtils.getDataItemEditControl;
|
|
13
15
|
exports.MovingWindow = useDataSource.MovingWindow;
|
|
14
16
|
exports.useDataSource = useDataSource.useDataSource;
|
|
15
17
|
exports.useLookupValues = useLookupValues.useLookupValues;
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { VuuInput } from '@vuu-ui/vuu-ui-controls';
|
|
3
|
+
|
|
4
|
+
const getDataItemEditControl = ({
|
|
5
|
+
column,
|
|
6
|
+
onCommit
|
|
7
|
+
}) => {
|
|
8
|
+
switch (column.serverDataType) {
|
|
9
|
+
default:
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
|
+
VuuInput,
|
|
12
|
+
{
|
|
13
|
+
"data-field": column.name,
|
|
14
|
+
onCommit,
|
|
15
|
+
variant: "secondary"
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { getDataItemEditControl };
|
|
22
|
+
//# sourceMappingURL=date-editing-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-editing-utils.js","sources":["../../src/data-editing/date-editing-utils.tsx"],"sourcesContent":["import { ColumnDescriptor } from \"@vuu-ui/vuu-table-types\";\nimport { Commithandler, VuuInput } from \"@vuu-ui/vuu-ui-controls\";\n\nexport interface DataItemEditControlProps {\n column: ColumnDescriptor;\n onCommit: Commithandler;\n}\n\nexport const getDataItemEditControl = ({\n column,\n onCommit,\n}: DataItemEditControlProps) => {\n switch (column.serverDataType) {\n default:\n return (\n <VuuInput\n data-field={column.name}\n onCommit={onCommit}\n variant=\"secondary\"\n />\n );\n }\n};\n"],"names":[],"mappings":";;;AAQO,MAAM,yBAAyB,CAAC;AAAA,EACrC,MAAA;AAAA,EACA,QAAA;AACF,CAAgC,KAAA;AAC9B,EAAA,QAAQ,OAAO,cAAgB;AAAA,IAC7B;AACE,MACE,uBAAA,GAAA;AAAA,QAAC,QAAA;AAAA,QAAA;AAAA,UACC,cAAY,MAAO,CAAA,IAAA;AAAA,UACnB,QAAA;AAAA,UACA,OAAQ,EAAA,WAAA;AAAA,SAAA;AAAA,OACV,CAAA;AAAA,GAEN;AACF;;;;"}
|
package/esm/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { getDataItemEditControl } from './data-editing/date-editing-utils.js';
|
|
1
2
|
export { MovingWindow, useDataSource } from './hooks/useDataSource.js';
|
|
2
3
|
export { useLookupValues } from './hooks/useLookupValues.js';
|
|
3
4
|
export { useServerConnectionStatus } from './hooks/useServerConnectionStatus.js';
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.8.
|
|
2
|
+
"version": "0.8.59",
|
|
3
3
|
"author": "heswell",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"devDependencies": {
|
|
6
|
-
"@vuu-ui/vuu-data-types": "0.8.
|
|
7
|
-
"@vuu-ui/vuu-filter-types": "0.8.
|
|
8
|
-
"@vuu-ui/vuu-popups": "0.8.
|
|
9
|
-
"@vuu-ui/vuu-protocol-types": "0.8.
|
|
10
|
-
"@vuu-ui/vuu-table-types": "0.8.
|
|
6
|
+
"@vuu-ui/vuu-data-types": "0.8.59",
|
|
7
|
+
"@vuu-ui/vuu-filter-types": "0.8.59",
|
|
8
|
+
"@vuu-ui/vuu-popups": "0.8.59",
|
|
9
|
+
"@vuu-ui/vuu-protocol-types": "0.8.59",
|
|
10
|
+
"@vuu-ui/vuu-table-types": "0.8.59"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@vuu-ui/vuu-data-remote": "0.8.
|
|
14
|
-
"@vuu-ui/vuu-filter-parser": "0.8.
|
|
15
|
-
"@vuu-ui/vuu-popups": "0.8.
|
|
16
|
-
"@vuu-ui/vuu-shell": "0.8.
|
|
17
|
-
"@vuu-ui/vuu-
|
|
13
|
+
"@vuu-ui/vuu-data-remote": "0.8.59",
|
|
14
|
+
"@vuu-ui/vuu-filter-parser": "0.8.59",
|
|
15
|
+
"@vuu-ui/vuu-popups": "0.8.59",
|
|
16
|
+
"@vuu-ui/vuu-shell": "0.8.59",
|
|
17
|
+
"@vuu-ui/vuu-ui-controls": "0.8.59",
|
|
18
|
+
"@vuu-ui/vuu-utils": "0.8.59"
|
|
18
19
|
},
|
|
19
20
|
"peerDependencies": {
|
|
20
21
|
"react": ">=17.0.2",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
|
|
3
|
+
import { Commithandler } from "@vuu-ui/vuu-ui-controls";
|
|
4
|
+
export interface DataItemEditControlProps {
|
|
5
|
+
column: ColumnDescriptor;
|
|
6
|
+
onCommit: Commithandler;
|
|
7
|
+
}
|
|
8
|
+
export declare const getDataItemEditControl: ({ column, onCommit, }: DataItemEditControlProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./date-editing-utils";
|
package/types/index.d.ts
CHANGED