@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260714124630 → 0.8.1-dev.20260715103126
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 +27 -21
- package/dist/index.mjs +44 -38
- 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;
|
|
@@ -5340,6 +5342,17 @@ init_AssetUtility();
|
|
|
5340
5342
|
init_ServiceClient();
|
|
5341
5343
|
|
|
5342
5344
|
// src/components/utilities/AnimationUtility.tsx
|
|
5345
|
+
var normalizeSelector = (guid) => {
|
|
5346
|
+
const trimmedGuid = guid?.trim();
|
|
5347
|
+
if (!trimmedGuid) {
|
|
5348
|
+
return ".animation-fallback";
|
|
5349
|
+
}
|
|
5350
|
+
const baseValue = trimmedGuid.replace(/^#/, "").replace(/^\./, "");
|
|
5351
|
+
if (typeof CSS !== "undefined" && typeof CSS.escape === "function") {
|
|
5352
|
+
return `#${CSS.escape(baseValue)}`;
|
|
5353
|
+
}
|
|
5354
|
+
return `#${baseValue}`;
|
|
5355
|
+
};
|
|
5343
5356
|
var AnimationUtility = class {
|
|
5344
5357
|
static generateAnimationCSS(config, guid) {
|
|
5345
5358
|
const {
|
|
@@ -5359,6 +5372,7 @@ var AnimationUtility = class {
|
|
|
5359
5372
|
borderColor
|
|
5360
5373
|
} = config;
|
|
5361
5374
|
let base = "", visible = "", keyframes = "";
|
|
5375
|
+
const selector = normalizeSelector(guid);
|
|
5362
5376
|
switch (config.animation) {
|
|
5363
5377
|
case "Fade":
|
|
5364
5378
|
base = `opacity:0; transition:opacity ${duration}ms ${easing} ${delay}ms;`;
|
|
@@ -5392,28 +5406,19 @@ var AnimationUtility = class {
|
|
|
5392
5406
|
`;
|
|
5393
5407
|
if (mode === "enter") {
|
|
5394
5408
|
base = `opacity:0;`;
|
|
5395
|
-
visible = `opacity:1; animation:bounce ${duration}ms ${easing} ${delay}ms ${repeat};`;
|
|
5409
|
+
visible = `opacity:1; animation: bounce ${duration}ms ${easing} ${delay}ms ${repeat};`;
|
|
5396
5410
|
} else {
|
|
5397
5411
|
base = ``;
|
|
5398
|
-
visible = `animation:bounce ${duration / 1e3}s ${easing} ${delay / 1e3}s ${repeat};`;
|
|
5412
|
+
visible = `animation: bounce ${duration / 1e3}s ${easing} ${delay / 1e3}s ${repeat};`;
|
|
5399
5413
|
}
|
|
5400
5414
|
break;
|
|
5401
5415
|
case "Background":
|
|
5402
|
-
base = `
|
|
5403
|
-
|
|
5404
|
-
`;
|
|
5405
|
-
visible = `
|
|
5406
|
-
background-color: ${backgroundColor};
|
|
5407
|
-
`;
|
|
5416
|
+
base = `transition: background-color ${duration}ms ${easing} ${delay}ms;`;
|
|
5417
|
+
visible = `background-color: ${backgroundColor};`;
|
|
5408
5418
|
break;
|
|
5409
5419
|
case "Border":
|
|
5410
|
-
base = `
|
|
5411
|
-
|
|
5412
|
-
border-color ${duration}ms ${easing} ${delay}ms;
|
|
5413
|
-
`;
|
|
5414
|
-
visible = `
|
|
5415
|
-
border-color:${borderColor};
|
|
5416
|
-
`;
|
|
5420
|
+
base = `transition: border-color ${duration}ms ${easing} ${delay}ms;`;
|
|
5421
|
+
visible = `border-color: ${borderColor};`;
|
|
5417
5422
|
break;
|
|
5418
5423
|
case "Typewriter":
|
|
5419
5424
|
keyframes = `
|
|
@@ -5436,14 +5441,14 @@ background-color: ${backgroundColor};
|
|
|
5436
5441
|
if (mode === "hover") {
|
|
5437
5442
|
return `
|
|
5438
5443
|
${keyframes}
|
|
5439
|
-
${
|
|
5440
|
-
${
|
|
5444
|
+
${selector} { ${base} }
|
|
5445
|
+
${selector}:hover { ${visible} }
|
|
5441
5446
|
`;
|
|
5442
5447
|
} else {
|
|
5443
5448
|
return `
|
|
5444
5449
|
${keyframes}
|
|
5445
|
-
${
|
|
5446
|
-
${
|
|
5450
|
+
${selector} { ${base} }
|
|
5451
|
+
${selector}.visible { ${visible} }
|
|
5447
5452
|
`;
|
|
5448
5453
|
}
|
|
5449
5454
|
}
|
|
@@ -6575,6 +6580,7 @@ var DivContainer = async (props) => {
|
|
|
6575
6580
|
}
|
|
6576
6581
|
const updatedStyle = { ...updatedStyles };
|
|
6577
6582
|
const guid = "css" + crypto.randomUUID().toLocaleLowerCase();
|
|
6583
|
+
const animationSelector = `#${guid}`;
|
|
6578
6584
|
const { enterAnimation, exitAnimation, hoverAnimation } = props.node;
|
|
6579
6585
|
let animationCSS = "";
|
|
6580
6586
|
if (enterAnimation?.name) {
|
|
@@ -6584,7 +6590,7 @@ var DivContainer = async (props) => {
|
|
|
6584
6590
|
mode: "enter",
|
|
6585
6591
|
...enterAnimation.properties
|
|
6586
6592
|
},
|
|
6587
|
-
|
|
6593
|
+
animationSelector
|
|
6588
6594
|
);
|
|
6589
6595
|
}
|
|
6590
6596
|
if (hoverAnimation?.name) {
|
|
@@ -6594,7 +6600,7 @@ var DivContainer = async (props) => {
|
|
|
6594
6600
|
mode: "hover",
|
|
6595
6601
|
...hoverAnimation.properties
|
|
6596
6602
|
},
|
|
6597
|
-
|
|
6603
|
+
animationSelector
|
|
6598
6604
|
);
|
|
6599
6605
|
}
|
|
6600
6606
|
const isHidden = !shouldRenderContainer(
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
1
3
|
import {
|
|
2
4
|
OdataBuilder
|
|
3
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-X3YSXTD2.mjs";
|
|
4
6
|
import {
|
|
5
7
|
AssetUtility_default,
|
|
6
8
|
BooleanSelect_default,
|
|
@@ -17,22 +19,22 @@ import {
|
|
|
17
19
|
PhoneInput_default,
|
|
18
20
|
SelectWithSearchInput_default,
|
|
19
21
|
TimeInput_default
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7ZFZLN56.mjs";
|
|
21
23
|
import {
|
|
22
24
|
Constants,
|
|
23
25
|
Hyperlink,
|
|
24
26
|
Icon_default,
|
|
25
27
|
InputControlType_default
|
|
26
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-5GHPW7SJ.mjs";
|
|
27
29
|
import {
|
|
28
30
|
ServiceClient_default
|
|
29
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-WEV5U33G.mjs";
|
|
30
32
|
import {
|
|
31
33
|
Button_default,
|
|
32
34
|
ClientButton_default,
|
|
33
35
|
ToastService_default
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-JKP4XOZB.mjs";
|
|
37
|
+
import "./chunk-IMNQO57B.mjs";
|
|
36
38
|
|
|
37
39
|
// src/components/controls/view/ViewControl.tsx
|
|
38
40
|
import React13 from "react";
|
|
@@ -76,7 +78,7 @@ var NumberView_default = NumberView;
|
|
|
76
78
|
|
|
77
79
|
// src/components/controls/view/DateView.tsx
|
|
78
80
|
import dynamic from "next/dynamic";
|
|
79
|
-
var DateView = dynamic(() => import("./DateViewClient-
|
|
81
|
+
var DateView = dynamic(() => import("./DateViewClient-VLTRN47D.mjs"), {
|
|
80
82
|
ssr: false
|
|
81
83
|
});
|
|
82
84
|
var DateView_default = DateView;
|
|
@@ -131,7 +133,7 @@ import React3 from "react";
|
|
|
131
133
|
// src/components/DeviceAssetSelector.tsx
|
|
132
134
|
import dynamic2 from "next/dynamic";
|
|
133
135
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
134
|
-
var HlsPlayer = dynamic2(() => import("./HlsPlayer-
|
|
136
|
+
var HlsPlayer = dynamic2(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
|
|
135
137
|
var FORMAT_CLASSES = {
|
|
136
138
|
center: "justify-center",
|
|
137
139
|
left: "justify-start",
|
|
@@ -366,7 +368,7 @@ var AiGeneratedSummary_default = AiGeneratedSummary;
|
|
|
366
368
|
|
|
367
369
|
// src/components/controls/view/DateTimeVew.tsx
|
|
368
370
|
import dynamic3 from "next/dynamic";
|
|
369
|
-
var DateTimeView = dynamic3(() => import("./DateTimeViewClient-
|
|
371
|
+
var DateTimeView = dynamic3(() => import("./DateTimeViewClient-R3M6ISVK.mjs"), {
|
|
370
372
|
ssr: false
|
|
371
373
|
});
|
|
372
374
|
var DateTimeVew_default = DateTimeView;
|
|
@@ -407,7 +409,7 @@ var ViewControl_default = ViewControl;
|
|
|
407
409
|
|
|
408
410
|
// src/components/controls/edit/InputControl.tsx
|
|
409
411
|
import dynamic4 from "next/dynamic";
|
|
410
|
-
var InputControl = dynamic4(() => import("./InputControlClient-
|
|
412
|
+
var InputControl = dynamic4(() => import("./InputControlClient-QAZKQLFO.mjs"), {
|
|
411
413
|
ssr: false
|
|
412
414
|
});
|
|
413
415
|
var InputControl_default = InputControl;
|
|
@@ -503,7 +505,7 @@ import React14 from "react";
|
|
|
503
505
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
504
506
|
import dynamic5 from "next/dynamic";
|
|
505
507
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
506
|
-
var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-
|
|
508
|
+
var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
|
|
507
509
|
var getNestedValue = (obj, path) => {
|
|
508
510
|
if (!obj || !path) return void 0;
|
|
509
511
|
return path.split(".").reduce((current, key) => {
|
|
@@ -611,7 +613,7 @@ var ImageNode_default = ImageNode;
|
|
|
611
613
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
612
614
|
import dynamic6 from "next/dynamic";
|
|
613
615
|
import { Fragment, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
614
|
-
var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-
|
|
616
|
+
var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-LX3KKGZY.mjs"), {
|
|
615
617
|
ssr: false
|
|
616
618
|
});
|
|
617
619
|
function getNestedValue2(obj, path) {
|
|
@@ -1046,7 +1048,7 @@ var QuoteNode_default = QuoteNode;
|
|
|
1046
1048
|
import React20 from "react";
|
|
1047
1049
|
import dynamic7 from "next/dynamic";
|
|
1048
1050
|
import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1049
|
-
var CopyButton = dynamic7(() => import("./CopyButton-
|
|
1051
|
+
var CopyButton = dynamic7(() => import("./CopyButton-UPJPMJUB.mjs"), {
|
|
1050
1052
|
ssr: false,
|
|
1051
1053
|
// optional: fallback UI while loading
|
|
1052
1054
|
loading: () => /* @__PURE__ */ jsx27("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
@@ -1189,7 +1191,7 @@ import React22 from "react";
|
|
|
1189
1191
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1190
1192
|
import dynamic8 from "next/dynamic";
|
|
1191
1193
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1192
|
-
var IframeClient = dynamic8(() => import("./IframeClient-
|
|
1194
|
+
var IframeClient = dynamic8(() => import("./IframeClient-RGJFZ5P2.mjs"), {
|
|
1193
1195
|
ssr: false
|
|
1194
1196
|
});
|
|
1195
1197
|
var EmbedNode = (props) => {
|
|
@@ -1206,6 +1208,17 @@ var EmbedNode = (props) => {
|
|
|
1206
1208
|
var EmbedNode_default = EmbedNode;
|
|
1207
1209
|
|
|
1208
1210
|
// src/components/utilities/AnimationUtility.tsx
|
|
1211
|
+
var normalizeSelector = (guid) => {
|
|
1212
|
+
const trimmedGuid = guid?.trim();
|
|
1213
|
+
if (!trimmedGuid) {
|
|
1214
|
+
return ".animation-fallback";
|
|
1215
|
+
}
|
|
1216
|
+
const baseValue = trimmedGuid.replace(/^#/, "").replace(/^\./, "");
|
|
1217
|
+
if (typeof CSS !== "undefined" && typeof CSS.escape === "function") {
|
|
1218
|
+
return `#${CSS.escape(baseValue)}`;
|
|
1219
|
+
}
|
|
1220
|
+
return `#${baseValue}`;
|
|
1221
|
+
};
|
|
1209
1222
|
var AnimationUtility = class {
|
|
1210
1223
|
static generateAnimationCSS(config, guid) {
|
|
1211
1224
|
const {
|
|
@@ -1225,6 +1238,7 @@ var AnimationUtility = class {
|
|
|
1225
1238
|
borderColor
|
|
1226
1239
|
} = config;
|
|
1227
1240
|
let base = "", visible = "", keyframes = "";
|
|
1241
|
+
const selector = normalizeSelector(guid);
|
|
1228
1242
|
switch (config.animation) {
|
|
1229
1243
|
case "Fade":
|
|
1230
1244
|
base = `opacity:0; transition:opacity ${duration}ms ${easing} ${delay}ms;`;
|
|
@@ -1258,28 +1272,19 @@ var AnimationUtility = class {
|
|
|
1258
1272
|
`;
|
|
1259
1273
|
if (mode === "enter") {
|
|
1260
1274
|
base = `opacity:0;`;
|
|
1261
|
-
visible = `opacity:1; animation:bounce ${duration}ms ${easing} ${delay}ms ${repeat};`;
|
|
1275
|
+
visible = `opacity:1; animation: bounce ${duration}ms ${easing} ${delay}ms ${repeat};`;
|
|
1262
1276
|
} else {
|
|
1263
1277
|
base = ``;
|
|
1264
|
-
visible = `animation:bounce ${duration / 1e3}s ${easing} ${delay / 1e3}s ${repeat};`;
|
|
1278
|
+
visible = `animation: bounce ${duration / 1e3}s ${easing} ${delay / 1e3}s ${repeat};`;
|
|
1265
1279
|
}
|
|
1266
1280
|
break;
|
|
1267
1281
|
case "Background":
|
|
1268
|
-
base = `
|
|
1269
|
-
|
|
1270
|
-
`;
|
|
1271
|
-
visible = `
|
|
1272
|
-
background-color: ${backgroundColor};
|
|
1273
|
-
`;
|
|
1282
|
+
base = `transition: background-color ${duration}ms ${easing} ${delay}ms;`;
|
|
1283
|
+
visible = `background-color: ${backgroundColor};`;
|
|
1274
1284
|
break;
|
|
1275
1285
|
case "Border":
|
|
1276
|
-
base = `
|
|
1277
|
-
|
|
1278
|
-
border-color ${duration}ms ${easing} ${delay}ms;
|
|
1279
|
-
`;
|
|
1280
|
-
visible = `
|
|
1281
|
-
border-color:${borderColor};
|
|
1282
|
-
`;
|
|
1286
|
+
base = `transition: border-color ${duration}ms ${easing} ${delay}ms;`;
|
|
1287
|
+
visible = `border-color: ${borderColor};`;
|
|
1283
1288
|
break;
|
|
1284
1289
|
case "Typewriter":
|
|
1285
1290
|
keyframes = `
|
|
@@ -1302,14 +1307,14 @@ background-color: ${backgroundColor};
|
|
|
1302
1307
|
if (mode === "hover") {
|
|
1303
1308
|
return `
|
|
1304
1309
|
${keyframes}
|
|
1305
|
-
${
|
|
1306
|
-
${
|
|
1310
|
+
${selector} { ${base} }
|
|
1311
|
+
${selector}:hover { ${visible} }
|
|
1307
1312
|
`;
|
|
1308
1313
|
} else {
|
|
1309
1314
|
return `
|
|
1310
1315
|
${keyframes}
|
|
1311
|
-
${
|
|
1312
|
-
${
|
|
1316
|
+
${selector} { ${base} }
|
|
1317
|
+
${selector}.visible { ${visible} }
|
|
1313
1318
|
`;
|
|
1314
1319
|
}
|
|
1315
1320
|
}
|
|
@@ -1422,7 +1427,7 @@ var NoDataFound_default = NoDataFound;
|
|
|
1422
1427
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1423
1428
|
import dynamic9 from "next/dynamic";
|
|
1424
1429
|
import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1425
|
-
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-
|
|
1430
|
+
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
|
|
1426
1431
|
var deviceToMediaQuery = (device) => {
|
|
1427
1432
|
switch (device) {
|
|
1428
1433
|
case "lg":
|
|
@@ -2237,8 +2242,8 @@ var DocumentNode_default = DocumentNode;
|
|
|
2237
2242
|
|
|
2238
2243
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2239
2244
|
import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2240
|
-
var Pagination = dynamic10(() => import("./Pagination-
|
|
2241
|
-
var Slider = dynamic10(() => import("./Slider-
|
|
2245
|
+
var Pagination = dynamic10(() => import("./Pagination-T7YN2OMV.mjs"), { ssr: true });
|
|
2246
|
+
var Slider = dynamic10(() => import("./Slider-554BKC7N.mjs"), {
|
|
2242
2247
|
ssr: false
|
|
2243
2248
|
});
|
|
2244
2249
|
function toCamelCase(str) {
|
|
@@ -2436,6 +2441,7 @@ var DivContainer = async (props) => {
|
|
|
2436
2441
|
}
|
|
2437
2442
|
const updatedStyle = { ...updatedStyles };
|
|
2438
2443
|
const guid = "css" + crypto.randomUUID().toLocaleLowerCase();
|
|
2444
|
+
const animationSelector = `#${guid}`;
|
|
2439
2445
|
const { enterAnimation, exitAnimation, hoverAnimation } = props.node;
|
|
2440
2446
|
let animationCSS = "";
|
|
2441
2447
|
if (enterAnimation?.name) {
|
|
@@ -2445,7 +2451,7 @@ var DivContainer = async (props) => {
|
|
|
2445
2451
|
mode: "enter",
|
|
2446
2452
|
...enterAnimation.properties
|
|
2447
2453
|
},
|
|
2448
|
-
|
|
2454
|
+
animationSelector
|
|
2449
2455
|
);
|
|
2450
2456
|
}
|
|
2451
2457
|
if (hoverAnimation?.name) {
|
|
@@ -2455,7 +2461,7 @@ var DivContainer = async (props) => {
|
|
|
2455
2461
|
mode: "hover",
|
|
2456
2462
|
...hoverAnimation.properties
|
|
2457
2463
|
},
|
|
2458
|
-
|
|
2464
|
+
animationSelector
|
|
2459
2465
|
);
|
|
2460
2466
|
}
|
|
2461
2467
|
const isHidden = !shouldRenderContainer(
|
package/package.json
CHANGED