@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260425064141 → 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.
|
@@ -274,10 +274,6 @@ var ServiceClient = class {
|
|
|
274
274
|
}
|
|
275
275
|
handleFetchError(error) {
|
|
276
276
|
console.log(error);
|
|
277
|
-
const serverApiError = error;
|
|
278
|
-
if (serverApiError) {
|
|
279
|
-
return serverApiError.data;
|
|
280
|
-
}
|
|
281
277
|
return {
|
|
282
278
|
message: "There is some error. Please try after sometime.",
|
|
283
279
|
isSuccessful: false
|
package/dist/index.js
CHANGED
|
@@ -631,10 +631,6 @@ var init_ServiceClient = __esm({
|
|
|
631
631
|
}
|
|
632
632
|
handleFetchError(error) {
|
|
633
633
|
console.log(error);
|
|
634
|
-
const serverApiError = error;
|
|
635
|
-
if (serverApiError) {
|
|
636
|
-
return serverApiError.data;
|
|
637
|
-
}
|
|
638
634
|
return {
|
|
639
635
|
message: "There is some error. Please try after sometime.",
|
|
640
636
|
isSuccessful: false
|
|
@@ -4523,6 +4519,14 @@ var PathUtility = class {
|
|
|
4523
4519
|
const segments = path.split("/").filter(Boolean);
|
|
4524
4520
|
return segments.length > 0 ? segments[0] : "";
|
|
4525
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
|
+
}
|
|
4526
4530
|
};
|
|
4527
4531
|
var PathUtility_default = new PathUtility();
|
|
4528
4532
|
|
|
@@ -6519,36 +6523,33 @@ var DataForm = (props) => {
|
|
|
6519
6523
|
);
|
|
6520
6524
|
}
|
|
6521
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) => {
|
|
6522
|
-
return /* @__PURE__ */ (0, import_jsx_runtime75.
|
|
6526
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6523
6527
|
"div",
|
|
6524
6528
|
{
|
|
6525
6529
|
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
|
-
]
|
|
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
|
+
)
|
|
6552
6553
|
},
|
|
6553
6554
|
field.name
|
|
6554
6555
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ServiceClient_default,
|
|
8
8
|
ToastService_default,
|
|
9
9
|
buttonClasses
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MCGXO6OE.mjs";
|
|
11
11
|
|
|
12
12
|
// src/components/controls/view/ViewControl.tsx
|
|
13
13
|
import React10 from "react";
|
|
@@ -2051,7 +2051,7 @@ function Hyperlink(props) {
|
|
|
2051
2051
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
2052
2052
|
import dynamic2 from "next/dynamic";
|
|
2053
2053
|
import { Fragment as Fragment3, jsx as jsx33, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2054
|
-
var LinkNodeButton = dynamic2(() => import("./LinkNodeButton-
|
|
2054
|
+
var LinkNodeButton = dynamic2(() => import("./LinkNodeButton-SSV4NINC.mjs"), {
|
|
2055
2055
|
ssr: false
|
|
2056
2056
|
});
|
|
2057
2057
|
var LinkNode = (props) => {
|
|
@@ -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__ */
|
|
5380
|
+
return /* @__PURE__ */ jsx66(
|
|
5373
5381
|
"div",
|
|
5374
5382
|
{
|
|
5375
5383
|
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
|
-
]
|
|
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.
|
|
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.
|
|
52
|
+
"moment-timezone": "^0.6.2",
|
|
53
53
|
"ms": "^2.1.3",
|
|
54
54
|
"mz": "^2.7.0",
|
|
55
55
|
"next": "^15.5.15",
|