@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260425055034 → 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 +31 -25
- package/dist/index.mjs +32 -26
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6197,7 +6197,7 @@ var DataFormChildSection = (props) => {
|
|
|
6197
6197
|
{
|
|
6198
6198
|
index: filteredIndex,
|
|
6199
6199
|
name: field.name,
|
|
6200
|
-
controlType: field.controlType,
|
|
6200
|
+
controlType: InputControlType_default[field.controlType],
|
|
6201
6201
|
value: item[field.name],
|
|
6202
6202
|
dataset: field.dataset,
|
|
6203
6203
|
dataKeyFieldName: field.dataKeyFieldName,
|
|
@@ -6519,33 +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
|
-
|
|
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
|
+
]
|
|
6549
6555
|
},
|
|
6550
6556
|
field.name
|
|
6551
6557
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -5047,7 +5047,7 @@ var DataFormChildSection = (props) => {
|
|
|
5047
5047
|
{
|
|
5048
5048
|
index: filteredIndex,
|
|
5049
5049
|
name: field.name,
|
|
5050
|
-
controlType: field.controlType,
|
|
5050
|
+
controlType: InputControlType_default[field.controlType],
|
|
5051
5051
|
value: item[field.name],
|
|
5052
5052
|
dataset: field.dataset,
|
|
5053
5053
|
dataKeyFieldName: field.dataKeyFieldName,
|
|
@@ -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,33 +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
|
-
|
|
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
|
+
]
|
|
5399
5405
|
},
|
|
5400
5406
|
field.name
|
|
5401
5407
|
);
|
package/package.json
CHANGED