@nokecy/qc-ui-form-designer 2.0.0-beta.5 → 2.0.0-beta.8
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.
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ArrayTable = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _agGridReact = require("ag-grid-react");
|
|
9
|
+
var _locale = require("@nokecy/qc-ui-components/ag-grid-plus/locale");
|
|
9
10
|
var _agGridCommunity = require("ag-grid-community");
|
|
10
11
|
var _designerCore = require("@nokecy/designer-core");
|
|
11
12
|
var _designerReact = require("@nokecy/designer-react");
|
|
@@ -216,6 +217,7 @@ var ArrayTable = exports.ArrayTable = (0, _formilyReact.observer)(function (prop
|
|
|
216
217
|
});
|
|
217
218
|
}, [columns]);
|
|
218
219
|
var renderTable = function renderTable() {
|
|
220
|
+
var _props$localeText;
|
|
219
221
|
if (node.children.length === 0) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_designerReact.DroppableWidget, {});
|
|
220
222
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
221
223
|
style: {
|
|
@@ -225,6 +227,7 @@ var ArrayTable = exports.ArrayTable = (0, _formilyReact.observer)(function (prop
|
|
|
225
227
|
disabled: true,
|
|
226
228
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_agGridReact.AgGridReact, {
|
|
227
229
|
modules: [_agGridCommunity.AllCommunityModule],
|
|
230
|
+
localeText: (_props$localeText = props.localeText) !== null && _props$localeText !== void 0 ? _props$localeText : _locale.localeText,
|
|
228
231
|
className: "ag-theme-alpine",
|
|
229
232
|
defaultColDef: {
|
|
230
233
|
resizable: false,
|
|
@@ -15,6 +15,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
15
15
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
16
|
import React, { useMemo } from 'react';
|
|
17
17
|
import { AgGridReact } from 'ag-grid-react';
|
|
18
|
+
import { localeText } from '@nokecy/qc-ui-components/ag-grid-plus/locale';
|
|
18
19
|
import { AllCommunityModule } from 'ag-grid-community';
|
|
19
20
|
import { TreeNode, createBehavior, createResource } from '@nokecy/designer-core';
|
|
20
21
|
import { useTreeNode, TreeNodeWidget, DroppableWidget, useNodeIdProps } from '@nokecy/designer-react';
|
|
@@ -210,6 +211,7 @@ export var ArrayTable = observer(function (props) {
|
|
|
210
211
|
});
|
|
211
212
|
}, [columns]);
|
|
212
213
|
var renderTable = function renderTable() {
|
|
214
|
+
var _props$localeText;
|
|
213
215
|
if (node.children.length === 0) return /*#__PURE__*/_jsx(DroppableWidget, {});
|
|
214
216
|
return /*#__PURE__*/_jsx("div", {
|
|
215
217
|
style: {
|
|
@@ -219,6 +221,7 @@ export var ArrayTable = observer(function (props) {
|
|
|
219
221
|
disabled: true,
|
|
220
222
|
children: [/*#__PURE__*/_jsx(AgGridReact, {
|
|
221
223
|
modules: [AllCommunityModule],
|
|
224
|
+
localeText: (_props$localeText = props.localeText) !== null && _props$localeText !== void 0 ? _props$localeText : localeText,
|
|
222
225
|
className: "ag-theme-alpine",
|
|
223
226
|
defaultColDef: {
|
|
224
227
|
resizable: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nokecy/qc-ui-form-designer",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.8",
|
|
4
4
|
"description": "QC_UI reusable form designer integration",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@nokecy/formily-core": "2.3.7",
|
|
56
56
|
"@nokecy/formily-json-schema": "2.3.7",
|
|
57
57
|
"@nokecy/formily-react": "2.3.7",
|
|
58
|
-
"@nokecy/qc-ui-components": "2.0.0-beta.
|
|
58
|
+
"@nokecy/qc-ui-components": "2.0.0-beta.8"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"ag-grid-community": "^33.0.0",
|