@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260722073037 → 0.8.1-dev.20260722075037
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/DateTimeViewClient-K5FE5VSN.mjs +14 -0
- package/dist/DateTimeViewClient-M7V35KUW.mjs +16 -0
- package/dist/DateViewClient-4CTEMOMJ.mjs +7 -0
- package/dist/DateViewClient-JBS5UXMD.mjs +9 -0
- package/dist/{InputControlClient-QAZKQLFO.mjs → InputControlClient-7NS4QUWO.mjs} +1 -1
- package/dist/{InputControlClient-QQCQD4EG.mjs → InputControlClient-BUOYZNWQ.mjs} +1 -1
- package/dist/LinkNodeButton-AOEDCCL7.mjs +227 -0
- package/dist/{LinkNodeButton-XA7Z5IDR.mjs → LinkNodeButton-BIZA2NPE.mjs} +92 -38
- package/dist/chunk-23WJE3YB.mjs +253 -0
- package/dist/chunk-DKW4DXCU.mjs +120 -0
- package/dist/{chunk-YL6E76X2.mjs → chunk-RHVNJMS4.mjs} +48 -9
- package/dist/chunk-YBNWT4TV.mjs +123 -0
- package/dist/index.js +172 -72
- package/dist/index.mjs +17 -19
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
1
3
|
"use strict";
|
|
2
4
|
var __create = Object.create;
|
|
3
5
|
var __defProp = Object.defineProperty;
|
|
@@ -35,13 +37,42 @@ var DateViewClient_exports = {};
|
|
|
35
37
|
__export(DateViewClient_exports, {
|
|
36
38
|
default: () => DateViewClient_default
|
|
37
39
|
});
|
|
38
|
-
var import_react2, import_jsx_runtime2, DateViewClient, DateViewClient_default;
|
|
40
|
+
var import_react2, import_jsx_runtime2, dateFormatter, timeFormatterNoSeconds, timeFormatterWithSeconds, dateTimeFormatterNoSeconds, dateTimeFormatterWithSeconds, DateViewClient, DateViewClient_default;
|
|
39
41
|
var init_DateViewClient = __esm({
|
|
40
42
|
"src/components/controls/view/DateViewClient.tsx"() {
|
|
41
43
|
"use strict";
|
|
42
44
|
"use client";
|
|
43
45
|
import_react2 = require("react");
|
|
44
46
|
import_jsx_runtime2 = require("react/jsx-runtime");
|
|
47
|
+
dateFormatter = new Intl.DateTimeFormat("en", {
|
|
48
|
+
day: "2-digit",
|
|
49
|
+
month: "short",
|
|
50
|
+
year: "numeric"
|
|
51
|
+
});
|
|
52
|
+
timeFormatterNoSeconds = new Intl.DateTimeFormat("en", {
|
|
53
|
+
hour: "2-digit",
|
|
54
|
+
minute: "2-digit"
|
|
55
|
+
});
|
|
56
|
+
timeFormatterWithSeconds = new Intl.DateTimeFormat("en", {
|
|
57
|
+
hour: "2-digit",
|
|
58
|
+
minute: "2-digit",
|
|
59
|
+
second: "2-digit"
|
|
60
|
+
});
|
|
61
|
+
dateTimeFormatterNoSeconds = new Intl.DateTimeFormat("en", {
|
|
62
|
+
day: "2-digit",
|
|
63
|
+
month: "short",
|
|
64
|
+
year: "numeric",
|
|
65
|
+
hour: "2-digit",
|
|
66
|
+
minute: "2-digit"
|
|
67
|
+
});
|
|
68
|
+
dateTimeFormatterWithSeconds = new Intl.DateTimeFormat("en", {
|
|
69
|
+
day: "2-digit",
|
|
70
|
+
month: "short",
|
|
71
|
+
year: "numeric",
|
|
72
|
+
hour: "2-digit",
|
|
73
|
+
minute: "2-digit",
|
|
74
|
+
second: "2-digit"
|
|
75
|
+
});
|
|
45
76
|
DateViewClient = (props) => {
|
|
46
77
|
const [timeZoneAbbr, setTimeZoneAbbr] = (0, import_react2.useState)("");
|
|
47
78
|
(0, import_react2.useEffect)(() => {
|
|
@@ -66,37 +97,13 @@ var init_DateViewClient = __esm({
|
|
|
66
97
|
return date;
|
|
67
98
|
};
|
|
68
99
|
const formatDate = (date) => {
|
|
69
|
-
return
|
|
70
|
-
day: "2-digit",
|
|
71
|
-
month: "short",
|
|
72
|
-
year: "numeric"
|
|
73
|
-
}).format(date);
|
|
100
|
+
return dateFormatter.format(date);
|
|
74
101
|
};
|
|
75
102
|
const formatTime = (date) => {
|
|
76
|
-
return date.getSeconds() === 0 ?
|
|
77
|
-
hour: "2-digit",
|
|
78
|
-
minute: "2-digit"
|
|
79
|
-
}).format(date) : new Intl.DateTimeFormat("en", {
|
|
80
|
-
hour: "2-digit",
|
|
81
|
-
minute: "2-digit",
|
|
82
|
-
second: "2-digit"
|
|
83
|
-
}).format(date);
|
|
103
|
+
return date.getSeconds() === 0 ? timeFormatterNoSeconds.format(date) : timeFormatterWithSeconds.format(date);
|
|
84
104
|
};
|
|
85
105
|
const formatDateTime = (date) => {
|
|
86
|
-
return date.getSeconds() === 0 ?
|
|
87
|
-
day: "2-digit",
|
|
88
|
-
month: "short",
|
|
89
|
-
year: "numeric",
|
|
90
|
-
hour: "2-digit",
|
|
91
|
-
minute: "2-digit"
|
|
92
|
-
}).format(date) : new Intl.DateTimeFormat("en", {
|
|
93
|
-
day: "2-digit",
|
|
94
|
-
month: "short",
|
|
95
|
-
year: "numeric",
|
|
96
|
-
hour: "2-digit",
|
|
97
|
-
minute: "2-digit",
|
|
98
|
-
second: "2-digit"
|
|
99
|
-
}).format(date);
|
|
106
|
+
return date.getSeconds() === 0 ? dateTimeFormatterNoSeconds.format(date) : dateTimeFormatterWithSeconds.format(date);
|
|
100
107
|
};
|
|
101
108
|
const getTimePeriod = (date) => {
|
|
102
109
|
const hours = date.getHours();
|
|
@@ -1869,7 +1876,9 @@ var init_Button = __esm({
|
|
|
1869
1876
|
event.preventDefault();
|
|
1870
1877
|
event.stopPropagation();
|
|
1871
1878
|
if (props.confirm) {
|
|
1872
|
-
const confirmed = await showConfirmation(
|
|
1879
|
+
const confirmed = await showConfirmation(
|
|
1880
|
+
"Are you sure you want to delete this item?"
|
|
1881
|
+
);
|
|
1873
1882
|
setShowModal(null);
|
|
1874
1883
|
if (!confirmed) {
|
|
1875
1884
|
return;
|
|
@@ -1884,7 +1893,9 @@ var init_Button = __esm({
|
|
|
1884
1893
|
isValid = await props.onValidate();
|
|
1885
1894
|
if (!isValid) {
|
|
1886
1895
|
setInProgress(false);
|
|
1887
|
-
ToastService_default.showError(
|
|
1896
|
+
ToastService_default.showError(
|
|
1897
|
+
"There are errors in the form. Please fix them before proceeding."
|
|
1898
|
+
);
|
|
1888
1899
|
return;
|
|
1889
1900
|
}
|
|
1890
1901
|
}
|
|
@@ -1908,7 +1919,16 @@ var init_Button = __esm({
|
|
|
1908
1919
|
return new Promise((resolve) => {
|
|
1909
1920
|
const onConfirm = () => resolve(true);
|
|
1910
1921
|
const onCancel = () => resolve(false);
|
|
1911
|
-
setShowModal(
|
|
1922
|
+
setShowModal(
|
|
1923
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1924
|
+
Confirm_default,
|
|
1925
|
+
{
|
|
1926
|
+
message: props.confirmationMessage,
|
|
1927
|
+
onConfirm,
|
|
1928
|
+
onCancel
|
|
1929
|
+
}
|
|
1930
|
+
)
|
|
1931
|
+
);
|
|
1912
1932
|
});
|
|
1913
1933
|
};
|
|
1914
1934
|
let buttonClass = props.ButtonType ? buttonClasses.get(props.ButtonType) : buttonClasses.get("Primary" /* Solid */);
|
|
@@ -1922,13 +1942,39 @@ var init_Button = __esm({
|
|
|
1922
1942
|
onClick: execute,
|
|
1923
1943
|
disabled: props.disabled,
|
|
1924
1944
|
title: isDisabled ? "The button is disabled to prevent any action" : "",
|
|
1925
|
-
className: buttonClass
|
|
1945
|
+
className: `${buttonClass} relative inline-flex items-center justify-center gap-2 ${props.className ?? ""}`,
|
|
1926
1946
|
children: [
|
|
1927
1947
|
isActionPerformed && props.oneTimeAction && responseMessage ? responseMessage : props.children,
|
|
1928
|
-
inProgress && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1948
|
+
inProgress && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: props.hideProgressIndicator ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "absolute bottom-0 left-0 h-0.5 bg-gray-400 rounded animate-progress" }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
1949
|
+
"svg",
|
|
1950
|
+
{
|
|
1951
|
+
className: `animate-spin h-5 w-5 flex-shrink-0 ${progressClass}`,
|
|
1952
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1953
|
+
fill: "none",
|
|
1954
|
+
viewBox: "0 0 24 24",
|
|
1955
|
+
children: [
|
|
1956
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1957
|
+
"circle",
|
|
1958
|
+
{
|
|
1959
|
+
className: "opacity-25",
|
|
1960
|
+
cx: "12",
|
|
1961
|
+
cy: "12",
|
|
1962
|
+
r: "10",
|
|
1963
|
+
stroke: "currentColor",
|
|
1964
|
+
strokeWidth: "4"
|
|
1965
|
+
}
|
|
1966
|
+
),
|
|
1967
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1968
|
+
"path",
|
|
1969
|
+
{
|
|
1970
|
+
className: "opacity-75",
|
|
1971
|
+
fill: "currentColor",
|
|
1972
|
+
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
1973
|
+
}
|
|
1974
|
+
)
|
|
1975
|
+
]
|
|
1976
|
+
}
|
|
1977
|
+
) })
|
|
1932
1978
|
]
|
|
1933
1979
|
}
|
|
1934
1980
|
),
|
|
@@ -3090,6 +3136,8 @@ var init_LinkNodeButton = __esm({
|
|
|
3090
3136
|
LinkNodeButton = (props) => {
|
|
3091
3137
|
const { node, dataitem, children, linkText, linkType, linkUrl } = props;
|
|
3092
3138
|
const [isLoading, setIsLoading] = (0, import_react38.useState)(false);
|
|
3139
|
+
const [successMessage, setSuccessMessage] = (0, import_react38.useState)(null);
|
|
3140
|
+
console.log("LinkNodeButton props:", props);
|
|
3093
3141
|
const extractFieldNames = (0, import_react38.useCallback)((template) => {
|
|
3094
3142
|
if (!template) return [];
|
|
3095
3143
|
const regex = /\{(\{\})?([a-zA-Z_$][a-zA-Z0-9_$]*)(?:\}\})?\}/g;
|
|
@@ -3097,35 +3145,38 @@ var init_LinkNodeButton = __esm({
|
|
|
3097
3145
|
const fieldNames = matches.map((match) => match[2] || match[1]).filter((name, index, self) => self.indexOf(name) === index);
|
|
3098
3146
|
return fieldNames;
|
|
3099
3147
|
}, []);
|
|
3100
|
-
const replaceTemplateVariables = (0, import_react38.useCallback)(
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3148
|
+
const replaceTemplateVariables = (0, import_react38.useCallback)(
|
|
3149
|
+
(template, responseData) => {
|
|
3150
|
+
if (!template) return template;
|
|
3151
|
+
let result = template;
|
|
3152
|
+
const fieldNames = extractFieldNames(template);
|
|
3153
|
+
if (responseData) {
|
|
3154
|
+
fieldNames.forEach((fieldName) => {
|
|
3155
|
+
const value = getNestedValue7(responseData, fieldName);
|
|
3156
|
+
if (value !== void 0) {
|
|
3157
|
+
const regex1 = new RegExp(`\\{${fieldName}\\}`, "g");
|
|
3158
|
+
const regex2 = new RegExp(`\\{\\{${fieldName}\\}\\}`, "g");
|
|
3159
|
+
result = result.replace(regex1, String(value));
|
|
3160
|
+
result = result.replace(regex2, String(value));
|
|
3161
|
+
}
|
|
3162
|
+
});
|
|
3163
|
+
}
|
|
3164
|
+
if (props.routeParameters) {
|
|
3165
|
+
Object.entries(props.routeParameters).forEach(([key, value]) => {
|
|
3166
|
+
const regex = new RegExp(`\\{\\{${key}\\}\\}`, "g");
|
|
3167
|
+
result = result.replace(regex, String(value));
|
|
3168
|
+
});
|
|
3169
|
+
}
|
|
3170
|
+
if (dataitem) {
|
|
3171
|
+
Object.entries(dataitem).forEach(([key, value]) => {
|
|
3172
|
+
const regex = new RegExp(`\\{\\{${key}\\}\\}`, "g");
|
|
3173
|
+
result = result.replace(regex, String(value));
|
|
3174
|
+
});
|
|
3175
|
+
}
|
|
3176
|
+
return result;
|
|
3177
|
+
},
|
|
3178
|
+
[props.routeParameters, dataitem, extractFieldNames]
|
|
3179
|
+
);
|
|
3129
3180
|
const getNestedValue7 = (0, import_react38.useCallback)((obj, path) => {
|
|
3130
3181
|
if (!obj || !path) return void 0;
|
|
3131
3182
|
if (obj[path] !== void 0) {
|
|
@@ -3143,7 +3194,10 @@ var init_LinkNodeButton = __esm({
|
|
|
3143
3194
|
}, []);
|
|
3144
3195
|
const onClick = (0, import_react38.useCallback)(async () => {
|
|
3145
3196
|
if (!node.postUrl) {
|
|
3146
|
-
return {
|
|
3197
|
+
return {
|
|
3198
|
+
isSuccessful: false,
|
|
3199
|
+
message: "No POST URL configured for this button"
|
|
3200
|
+
};
|
|
3147
3201
|
}
|
|
3148
3202
|
setIsLoading(true);
|
|
3149
3203
|
try {
|
|
@@ -3169,6 +3223,7 @@ var init_LinkNodeButton = __esm({
|
|
|
3169
3223
|
}
|
|
3170
3224
|
if (response?.message) {
|
|
3171
3225
|
ToastService_default.showSuccess(response.message);
|
|
3226
|
+
setSuccessMessage(response.message);
|
|
3172
3227
|
}
|
|
3173
3228
|
if (response && node.redirectUrl) {
|
|
3174
3229
|
const fieldNames = extractFieldNames(node.redirectUrl);
|
|
@@ -3191,7 +3246,9 @@ var init_LinkNodeButton = __esm({
|
|
|
3191
3246
|
}
|
|
3192
3247
|
});
|
|
3193
3248
|
console.log("Field value map:", fieldValueMap);
|
|
3194
|
-
const missingFields = fieldNames.filter(
|
|
3249
|
+
const missingFields = fieldNames.filter(
|
|
3250
|
+
(fieldName) => !fieldValueMap[fieldName]
|
|
3251
|
+
);
|
|
3195
3252
|
if (missingFields.length > 0) {
|
|
3196
3253
|
console.warn(`Missing field values for: ${missingFields.join(", ")}`);
|
|
3197
3254
|
}
|
|
@@ -3202,7 +3259,10 @@ var init_LinkNodeButton = __esm({
|
|
|
3202
3259
|
resolvedRedirectUrl = resolvedRedirectUrl.replace(regex1, value);
|
|
3203
3260
|
resolvedRedirectUrl = resolvedRedirectUrl.replace(regex2, value);
|
|
3204
3261
|
});
|
|
3205
|
-
resolvedRedirectUrl = replaceTemplateVariables(
|
|
3262
|
+
resolvedRedirectUrl = replaceTemplateVariables(
|
|
3263
|
+
resolvedRedirectUrl,
|
|
3264
|
+
response
|
|
3265
|
+
);
|
|
3206
3266
|
console.log("Final redirect URL:", resolvedRedirectUrl);
|
|
3207
3267
|
if (resolvedRedirectUrl && !resolvedRedirectUrl.includes("{")) {
|
|
3208
3268
|
window.location.href = resolvedRedirectUrl;
|
|
@@ -3213,14 +3273,27 @@ var init_LinkNodeButton = __esm({
|
|
|
3213
3273
|
return { isSuccessful: false, message: errorMessage };
|
|
3214
3274
|
}
|
|
3215
3275
|
setIsLoading(false);
|
|
3216
|
-
return {
|
|
3276
|
+
return {
|
|
3277
|
+
isSuccessful: true,
|
|
3278
|
+
message: response?.message,
|
|
3279
|
+
result: response
|
|
3280
|
+
};
|
|
3217
3281
|
} catch (err) {
|
|
3218
3282
|
console.error("Button API call failed:", err);
|
|
3219
3283
|
const errorMessage = err.message || "An unexpected error occurred";
|
|
3220
3284
|
setIsLoading(false);
|
|
3221
3285
|
return { isSuccessful: false, message: errorMessage };
|
|
3222
3286
|
}
|
|
3223
|
-
}, [
|
|
3287
|
+
}, [
|
|
3288
|
+
node.postUrl,
|
|
3289
|
+
node.payload,
|
|
3290
|
+
node.redirectUrl,
|
|
3291
|
+
replaceTemplateVariables,
|
|
3292
|
+
extractFieldNames,
|
|
3293
|
+
getNestedValue7,
|
|
3294
|
+
props.apiBaseUrl,
|
|
3295
|
+
props.session
|
|
3296
|
+
]);
|
|
3224
3297
|
const renderButtonContent = () => {
|
|
3225
3298
|
if (children) {
|
|
3226
3299
|
return children;
|
|
@@ -3230,14 +3303,41 @@ var init_LinkNodeButton = __esm({
|
|
|
3230
3303
|
}
|
|
3231
3304
|
return node.title || "Button";
|
|
3232
3305
|
};
|
|
3306
|
+
const fontSize = node.children?.[0]?.style?.match(/font-size:\s*([^;]+)/)?.[1];
|
|
3233
3307
|
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "link-button-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3234
3308
|
Button_default,
|
|
3235
3309
|
{
|
|
3236
3310
|
ButtonType: linkType,
|
|
3237
3311
|
onClick,
|
|
3238
|
-
disabled: isLoading,
|
|
3312
|
+
disabled: isLoading || !!successMessage,
|
|
3239
3313
|
className: "w-full",
|
|
3240
|
-
children:
|
|
3314
|
+
children: successMessage ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
3315
|
+
"span",
|
|
3316
|
+
{
|
|
3317
|
+
style: fontSize ? { fontSize } : void 0,
|
|
3318
|
+
className: "inline-flex items-center gap-2",
|
|
3319
|
+
children: [
|
|
3320
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3321
|
+
"svg",
|
|
3322
|
+
{
|
|
3323
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3324
|
+
viewBox: "0 0 20 20",
|
|
3325
|
+
fill: "currentColor",
|
|
3326
|
+
className: "w-5 h-5",
|
|
3327
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3328
|
+
"path",
|
|
3329
|
+
{
|
|
3330
|
+
fillRule: "evenodd",
|
|
3331
|
+
d: "M16.704 5.29a1 1 0 010 1.42l-7.25 7.25a1 1 0 01-1.415 0L3.29 9.21a1 1 0 111.415-1.414l4.042 4.042 6.543-6.543a1 1 0 011.414 0z",
|
|
3332
|
+
clipRule: "evenodd"
|
|
3333
|
+
}
|
|
3334
|
+
)
|
|
3335
|
+
}
|
|
3336
|
+
),
|
|
3337
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { children: successMessage })
|
|
3338
|
+
]
|
|
3339
|
+
}
|
|
3340
|
+
) : renderButtonContent()
|
|
3241
3341
|
}
|
|
3242
3342
|
) });
|
|
3243
3343
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
import {
|
|
4
2
|
OdataBuilder
|
|
5
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UFKPTMM7.mjs";
|
|
6
4
|
import {
|
|
7
5
|
AssetUtility_default,
|
|
8
6
|
BooleanSelect_default,
|
|
@@ -19,22 +17,22 @@ import {
|
|
|
19
17
|
PhoneInput_default,
|
|
20
18
|
SelectWithSearchInput_default,
|
|
21
19
|
TimeInput_default
|
|
22
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YG6FKKQJ.mjs";
|
|
23
21
|
import {
|
|
24
22
|
Constants,
|
|
25
23
|
Hyperlink,
|
|
26
24
|
Icon_default,
|
|
27
25
|
InputControlType_default
|
|
28
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DBHUCH4B.mjs";
|
|
29
27
|
import {
|
|
30
28
|
ServiceClient_default
|
|
31
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-3GWLDT7C.mjs";
|
|
32
30
|
import {
|
|
33
31
|
Button_default,
|
|
34
32
|
ClientButton_default,
|
|
35
33
|
ToastService_default
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-RHVNJMS4.mjs";
|
|
35
|
+
import "./chunk-56HSDML5.mjs";
|
|
38
36
|
|
|
39
37
|
// src/components/controls/view/ViewControl.tsx
|
|
40
38
|
import React13 from "react";
|
|
@@ -78,7 +76,7 @@ var NumberView_default = NumberView;
|
|
|
78
76
|
|
|
79
77
|
// src/components/controls/view/DateView.tsx
|
|
80
78
|
import dynamic from "next/dynamic";
|
|
81
|
-
var DateView = dynamic(() => import("./DateViewClient-
|
|
79
|
+
var DateView = dynamic(() => import("./DateViewClient-4CTEMOMJ.mjs"), {
|
|
82
80
|
ssr: false
|
|
83
81
|
});
|
|
84
82
|
var DateView_default = DateView;
|
|
@@ -133,7 +131,7 @@ import React3 from "react";
|
|
|
133
131
|
// src/components/DeviceAssetSelector.tsx
|
|
134
132
|
import dynamic2 from "next/dynamic";
|
|
135
133
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
136
|
-
var HlsPlayer = dynamic2(() => import("./HlsPlayer-
|
|
134
|
+
var HlsPlayer = dynamic2(() => import("./HlsPlayer-57543DTW.mjs"), { ssr: false });
|
|
137
135
|
var FORMAT_CLASSES = {
|
|
138
136
|
center: "justify-center",
|
|
139
137
|
left: "justify-start",
|
|
@@ -368,7 +366,7 @@ var AiGeneratedSummary_default = AiGeneratedSummary;
|
|
|
368
366
|
|
|
369
367
|
// src/components/controls/view/DateTimeVew.tsx
|
|
370
368
|
import dynamic3 from "next/dynamic";
|
|
371
|
-
var DateTimeView = dynamic3(() => import("./DateTimeViewClient-
|
|
369
|
+
var DateTimeView = dynamic3(() => import("./DateTimeViewClient-K5FE5VSN.mjs"), {
|
|
372
370
|
ssr: false
|
|
373
371
|
});
|
|
374
372
|
var DateTimeVew_default = DateTimeView;
|
|
@@ -409,7 +407,7 @@ var ViewControl_default = ViewControl;
|
|
|
409
407
|
|
|
410
408
|
// src/components/controls/edit/InputControl.tsx
|
|
411
409
|
import dynamic4 from "next/dynamic";
|
|
412
|
-
var InputControl = dynamic4(() => import("./InputControlClient-
|
|
410
|
+
var InputControl = dynamic4(() => import("./InputControlClient-BUOYZNWQ.mjs"), {
|
|
413
411
|
ssr: false
|
|
414
412
|
});
|
|
415
413
|
var InputControl_default = InputControl;
|
|
@@ -505,7 +503,7 @@ import React14 from "react";
|
|
|
505
503
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
506
504
|
import dynamic5 from "next/dynamic";
|
|
507
505
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
508
|
-
var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-
|
|
506
|
+
var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-57543DTW.mjs"), { ssr: false });
|
|
509
507
|
var getNestedValue = (obj, path) => {
|
|
510
508
|
if (!obj || !path) return void 0;
|
|
511
509
|
return path.split(".").reduce((current, key) => {
|
|
@@ -613,7 +611,7 @@ var ImageNode_default = ImageNode;
|
|
|
613
611
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
614
612
|
import dynamic6 from "next/dynamic";
|
|
615
613
|
import { Fragment, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
616
|
-
var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-
|
|
614
|
+
var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-BIZA2NPE.mjs"), {
|
|
617
615
|
ssr: false
|
|
618
616
|
});
|
|
619
617
|
function getNestedValue2(obj, path) {
|
|
@@ -1048,7 +1046,7 @@ var QuoteNode_default = QuoteNode;
|
|
|
1048
1046
|
import React20 from "react";
|
|
1049
1047
|
import dynamic7 from "next/dynamic";
|
|
1050
1048
|
import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1051
|
-
var CopyButton = dynamic7(() => import("./CopyButton-
|
|
1049
|
+
var CopyButton = dynamic7(() => import("./CopyButton-XONTQQW7.mjs"), {
|
|
1052
1050
|
ssr: false,
|
|
1053
1051
|
// optional: fallback UI while loading
|
|
1054
1052
|
loading: () => /* @__PURE__ */ jsx27("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
@@ -1191,7 +1189,7 @@ import React22 from "react";
|
|
|
1191
1189
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1192
1190
|
import dynamic8 from "next/dynamic";
|
|
1193
1191
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1194
|
-
var IframeClient = dynamic8(() => import("./IframeClient-
|
|
1192
|
+
var IframeClient = dynamic8(() => import("./IframeClient-J22NMEVY.mjs"), {
|
|
1195
1193
|
ssr: false
|
|
1196
1194
|
});
|
|
1197
1195
|
var EmbedNode = (props) => {
|
|
@@ -1427,7 +1425,7 @@ var NoDataFound_default = NoDataFound;
|
|
|
1427
1425
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1428
1426
|
import dynamic9 from "next/dynamic";
|
|
1429
1427
|
import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1430
|
-
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-
|
|
1428
|
+
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-57543DTW.mjs"), { ssr: false });
|
|
1431
1429
|
var deviceToMediaQuery = (device) => {
|
|
1432
1430
|
switch (device) {
|
|
1433
1431
|
case "lg":
|
|
@@ -2242,8 +2240,8 @@ var DocumentNode_default = DocumentNode;
|
|
|
2242
2240
|
|
|
2243
2241
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2244
2242
|
import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2245
|
-
var Pagination = dynamic10(() => import("./Pagination-
|
|
2246
|
-
var Slider = dynamic10(() => import("./Slider-
|
|
2243
|
+
var Pagination = dynamic10(() => import("./Pagination-NCJCOYHF.mjs"), { ssr: true });
|
|
2244
|
+
var Slider = dynamic10(() => import("./Slider-PEIVH6A5.mjs"), {
|
|
2247
2245
|
ssr: false
|
|
2248
2246
|
});
|
|
2249
2247
|
function toCamelCase(str) {
|
package/package.json
CHANGED