@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260425055809 → 0.8.1-dev.20260425060911
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/index.js +30 -27
- package/dist/index.mjs +31 -28
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6519,36 +6519,39 @@ var DataForm = (props) => {
|
|
|
6519
6519
|
);
|
|
6520
6520
|
}
|
|
6521
6521
|
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react56.default.Fragment, { children: isVisible && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
|
|
6522
|
-
return /* @__PURE__ */ (0, import_jsx_runtime75.
|
|
6522
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
6523
6523
|
"div",
|
|
6524
6524
|
{
|
|
6525
6525
|
className: sectionRow.grow ? "grow" : "",
|
|
6526
|
-
children:
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6526
|
+
children: [
|
|
6527
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_jsx_runtime75.Fragment, { children: field }),
|
|
6528
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6529
|
+
InputControl_default,
|
|
6530
|
+
{
|
|
6531
|
+
name: field.name,
|
|
6532
|
+
controlType: (
|
|
6533
|
+
// @ts-ignore
|
|
6534
|
+
InputControlType_default[field.controlType]
|
|
6535
|
+
),
|
|
6536
|
+
value: getNestedProperty2(
|
|
6537
|
+
formState.inputValues,
|
|
6538
|
+
field.name
|
|
6539
|
+
),
|
|
6540
|
+
callback: handleInputChange,
|
|
6541
|
+
dataSourceDependsOn: field.dataSourceDependsOn,
|
|
6542
|
+
dependentValue: field.dataSourceDependsOn ? formState.inputValues[field.dataSourceDependsOn] : "",
|
|
6543
|
+
dataSource: field.dataSource,
|
|
6544
|
+
dataset: field.dataset,
|
|
6545
|
+
dataKeyFieldName: field.dataKeyFieldName,
|
|
6546
|
+
dataTextFieldName: field.dataTextFieldName,
|
|
6547
|
+
attributes: field.attributes,
|
|
6548
|
+
serviceClient: props.serviceClient,
|
|
6549
|
+
assetsUploadPath: props.dataItem ? props.dataItem["assetsUploadPath"] : null,
|
|
6550
|
+
entityType: field.entityType,
|
|
6551
|
+
uploadInSharedLocation: field.uploadInSharedLocation
|
|
6552
|
+
}
|
|
6553
|
+
)
|
|
6554
|
+
]
|
|
6552
6555
|
},
|
|
6553
6556
|
field.name
|
|
6554
6557
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -5103,7 +5103,7 @@ var DataFormChildSection = (props) => {
|
|
|
5103
5103
|
var DataFormChildSection_default = DataFormChildSection;
|
|
5104
5104
|
|
|
5105
5105
|
// src/components/dataForm/DataForm.tsx
|
|
5106
|
-
import { jsx as jsx66, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
5106
|
+
import { Fragment as Fragment11, jsx as jsx66, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
5107
5107
|
var DataForm = (props) => {
|
|
5108
5108
|
const formRef = useRef4(null);
|
|
5109
5109
|
console.log(props.dataItem, "dssads");
|
|
@@ -5369,36 +5369,39 @@ var DataForm = (props) => {
|
|
|
5369
5369
|
);
|
|
5370
5370
|
}
|
|
5371
5371
|
return /* @__PURE__ */ jsx66(React48.Fragment, { children: isVisible && /* @__PURE__ */ jsx66("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
|
|
5372
|
-
return /* @__PURE__ */
|
|
5372
|
+
return /* @__PURE__ */ jsxs38(
|
|
5373
5373
|
"div",
|
|
5374
5374
|
{
|
|
5375
5375
|
className: sectionRow.grow ? "grow" : "",
|
|
5376
|
-
children:
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5376
|
+
children: [
|
|
5377
|
+
/* @__PURE__ */ jsx66(Fragment11, { children: field }),
|
|
5378
|
+
/* @__PURE__ */ jsx66(
|
|
5379
|
+
InputControl_default,
|
|
5380
|
+
{
|
|
5381
|
+
name: field.name,
|
|
5382
|
+
controlType: (
|
|
5383
|
+
// @ts-ignore
|
|
5384
|
+
InputControlType_default[field.controlType]
|
|
5385
|
+
),
|
|
5386
|
+
value: getNestedProperty2(
|
|
5387
|
+
formState.inputValues,
|
|
5388
|
+
field.name
|
|
5389
|
+
),
|
|
5390
|
+
callback: handleInputChange,
|
|
5391
|
+
dataSourceDependsOn: field.dataSourceDependsOn,
|
|
5392
|
+
dependentValue: field.dataSourceDependsOn ? formState.inputValues[field.dataSourceDependsOn] : "",
|
|
5393
|
+
dataSource: field.dataSource,
|
|
5394
|
+
dataset: field.dataset,
|
|
5395
|
+
dataKeyFieldName: field.dataKeyFieldName,
|
|
5396
|
+
dataTextFieldName: field.dataTextFieldName,
|
|
5397
|
+
attributes: field.attributes,
|
|
5398
|
+
serviceClient: props.serviceClient,
|
|
5399
|
+
assetsUploadPath: props.dataItem ? props.dataItem["assetsUploadPath"] : null,
|
|
5400
|
+
entityType: field.entityType,
|
|
5401
|
+
uploadInSharedLocation: field.uploadInSharedLocation
|
|
5402
|
+
}
|
|
5403
|
+
)
|
|
5404
|
+
]
|
|
5402
5405
|
},
|
|
5403
5406
|
field.name
|
|
5404
5407
|
);
|
package/package.json
CHANGED