@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260425114015 → 0.8.1-dev.20260427052110

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
@@ -4519,6 +4519,14 @@ var PathUtility = class {
4519
4519
  const segments = path.split("/").filter(Boolean);
4520
4520
  return segments.length > 0 ? segments[0] : "";
4521
4521
  }
4522
+ getFileNameFromUrl(url) {
4523
+ if (!url || url.indexOf("/") === -1) {
4524
+ return url;
4525
+ }
4526
+ const parts = url.split("/");
4527
+ const filename = parts[parts.length - 1];
4528
+ return filename;
4529
+ }
4522
4530
  };
4523
4531
  var PathUtility_default = new PathUtility();
4524
4532
 
@@ -6515,36 +6523,33 @@ var DataForm = (props) => {
6515
6523
  );
6516
6524
  }
6517
6525
  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) => {
6518
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
6526
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6519
6527
  "div",
6520
6528
  {
6521
6529
  className: sectionRow.grow ? "grow" : "",
6522
- children: [
6523
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { children: field.controlType }),
6524
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6525
- InputControl_default,
6526
- {
6527
- name: field.name,
6528
- controlType: field.controlType,
6529
- value: getNestedProperty2(
6530
- formState.inputValues,
6531
- field.name
6532
- ),
6533
- callback: handleInputChange,
6534
- dataSourceDependsOn: field.dataSourceDependsOn,
6535
- dependentValue: field.dataSourceDependsOn ? formState.inputValues[field.dataSourceDependsOn] : "",
6536
- dataSource: field.dataSource,
6537
- dataset: field.dataset,
6538
- dataKeyFieldName: field.dataKeyFieldName,
6539
- dataTextFieldName: field.dataTextFieldName,
6540
- attributes: field.attributes,
6541
- serviceClient: props.serviceClient,
6542
- assetsUploadPath: props.dataItem ? props.dataItem["assetsUploadPath"] : null,
6543
- entityType: field.entityType,
6544
- uploadInSharedLocation: field.uploadInSharedLocation
6545
- }
6546
- )
6547
- ]
6530
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6531
+ InputControl_default,
6532
+ {
6533
+ name: field.name,
6534
+ controlType: field.controlType,
6535
+ value: getNestedProperty2(
6536
+ formState.inputValues,
6537
+ field.name
6538
+ ),
6539
+ callback: handleInputChange,
6540
+ dataSourceDependsOn: field.dataSourceDependsOn,
6541
+ dependentValue: field.dataSourceDependsOn ? formState.inputValues[field.dataSourceDependsOn] : "",
6542
+ dataSource: field.dataSource,
6543
+ dataset: field.dataset,
6544
+ dataKeyFieldName: field.dataKeyFieldName,
6545
+ dataTextFieldName: field.dataTextFieldName,
6546
+ attributes: field.attributes,
6547
+ serviceClient: props.serviceClient,
6548
+ assetsUploadPath: props.dataItem ? props.dataItem["assetsUploadPath"] : null,
6549
+ entityType: field.entityType,
6550
+ uploadInSharedLocation: field.uploadInSharedLocation
6551
+ }
6552
+ )
6548
6553
  },
6549
6554
  field.name
6550
6555
  );
package/dist/index.mjs CHANGED
@@ -3385,6 +3385,14 @@ var PathUtility = class {
3385
3385
  const segments = path.split("/").filter(Boolean);
3386
3386
  return segments.length > 0 ? segments[0] : "";
3387
3387
  }
3388
+ getFileNameFromUrl(url) {
3389
+ if (!url || url.indexOf("/") === -1) {
3390
+ return url;
3391
+ }
3392
+ const parts = url.split("/");
3393
+ const filename = parts[parts.length - 1];
3394
+ return filename;
3395
+ }
3388
3396
  };
3389
3397
  var PathUtility_default = new PathUtility();
3390
3398
 
@@ -5369,36 +5377,33 @@ var DataForm = (props) => {
5369
5377
  );
5370
5378
  }
5371
5379
  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__ */ jsxs38(
5380
+ return /* @__PURE__ */ jsx66(
5373
5381
  "div",
5374
5382
  {
5375
5383
  className: sectionRow.grow ? "grow" : "",
5376
- children: [
5377
- /* @__PURE__ */ jsx66("div", { children: field.controlType }),
5378
- /* @__PURE__ */ jsx66(
5379
- InputControl_default,
5380
- {
5381
- name: field.name,
5382
- controlType: field.controlType,
5383
- value: getNestedProperty2(
5384
- formState.inputValues,
5385
- field.name
5386
- ),
5387
- callback: handleInputChange,
5388
- dataSourceDependsOn: field.dataSourceDependsOn,
5389
- dependentValue: field.dataSourceDependsOn ? formState.inputValues[field.dataSourceDependsOn] : "",
5390
- dataSource: field.dataSource,
5391
- dataset: field.dataset,
5392
- dataKeyFieldName: field.dataKeyFieldName,
5393
- dataTextFieldName: field.dataTextFieldName,
5394
- attributes: field.attributes,
5395
- serviceClient: props.serviceClient,
5396
- assetsUploadPath: props.dataItem ? props.dataItem["assetsUploadPath"] : null,
5397
- entityType: field.entityType,
5398
- uploadInSharedLocation: field.uploadInSharedLocation
5399
- }
5400
- )
5401
- ]
5384
+ children: /* @__PURE__ */ jsx66(
5385
+ InputControl_default,
5386
+ {
5387
+ name: field.name,
5388
+ controlType: field.controlType,
5389
+ value: getNestedProperty2(
5390
+ formState.inputValues,
5391
+ field.name
5392
+ ),
5393
+ callback: handleInputChange,
5394
+ dataSourceDependsOn: field.dataSourceDependsOn,
5395
+ dependentValue: field.dataSourceDependsOn ? formState.inputValues[field.dataSourceDependsOn] : "",
5396
+ dataSource: field.dataSource,
5397
+ dataset: field.dataset,
5398
+ dataKeyFieldName: field.dataKeyFieldName,
5399
+ dataTextFieldName: field.dataTextFieldName,
5400
+ attributes: field.attributes,
5401
+ serviceClient: props.serviceClient,
5402
+ assetsUploadPath: props.dataItem ? props.dataItem["assetsUploadPath"] : null,
5403
+ entityType: field.entityType,
5404
+ uploadInSharedLocation: field.uploadInSharedLocation
5405
+ }
5406
+ )
5402
5407
  },
5403
5408
  field.name
5404
5409
  );
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.20260425114015",
3
+ "version": "0.8.1-dev.20260427052110",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -49,7 +49,7 @@
49
49
  "load-tsconfig": "^0.2.5",
50
50
  "magic-string": "^0.30.21",
51
51
  "mlly": "^1.8.0",
52
- "moment-timezone": "^0.6.1",
52
+ "moment-timezone": "^0.6.2",
53
53
  "ms": "^2.1.3",
54
54
  "mz": "^2.7.0",
55
55
  "next": "^15.5.15",