@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 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.jsx)(
6522
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
6523
6523
  "div",
6524
6524
  {
6525
6525
  className: sectionRow.grow ? "grow" : "",
6526
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6527
- InputControl_default,
6528
- {
6529
- name: field.name,
6530
- controlType: field.controlType,
6531
- value: getNestedProperty2(
6532
- formState.inputValues,
6533
- field.name
6534
- ),
6535
- callback: handleInputChange,
6536
- dataSourceDependsOn: field.dataSourceDependsOn,
6537
- dependentValue: field.dataSourceDependsOn ? formState.inputValues[field.dataSourceDependsOn] : "",
6538
- dataSource: field.dataSource,
6539
- dataset: field.dataset,
6540
- dataKeyFieldName: field.dataKeyFieldName,
6541
- dataTextFieldName: field.dataTextFieldName,
6542
- attributes: field.attributes,
6543
- serviceClient: props.serviceClient,
6544
- assetsUploadPath: props.dataItem ? props.dataItem["assetsUploadPath"] : null,
6545
- entityType: field.entityType,
6546
- uploadInSharedLocation: field.uploadInSharedLocation
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__ */ jsx66(
5372
+ return /* @__PURE__ */ jsxs38(
5373
5373
  "div",
5374
5374
  {
5375
5375
  className: sectionRow.grow ? "grow" : "",
5376
- children: /* @__PURE__ */ jsx66(
5377
- InputControl_default,
5378
- {
5379
- name: field.name,
5380
- controlType: field.controlType,
5381
- value: getNestedProperty2(
5382
- formState.inputValues,
5383
- field.name
5384
- ),
5385
- callback: handleInputChange,
5386
- dataSourceDependsOn: field.dataSourceDependsOn,
5387
- dependentValue: field.dataSourceDependsOn ? formState.inputValues[field.dataSourceDependsOn] : "",
5388
- dataSource: field.dataSource,
5389
- dataset: field.dataset,
5390
- dataKeyFieldName: field.dataKeyFieldName,
5391
- dataTextFieldName: field.dataTextFieldName,
5392
- attributes: field.attributes,
5393
- serviceClient: props.serviceClient,
5394
- assetsUploadPath: props.dataItem ? props.dataItem["assetsUploadPath"] : null,
5395
- entityType: field.entityType,
5396
- uploadInSharedLocation: field.uploadInSharedLocation
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acoustte-digital-services/digitalstore-controls-dev",
3
- "version": "0.8.1-dev.20260425055034",
3
+ "version": "0.8.1-dev.20260425060911",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",