@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260722072521 → 0.8.1-dev.20260722072620
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/{InputControlClient-QQCQD4EG.mjs → InputControlClient-5RK7QDZZ.mjs} +23 -23
- package/dist/{InputControlClient-QAZKQLFO.mjs → InputControlClient-7FJWGZDN.mjs} +23 -23
- package/dist/{LinkNodeButton-LX3KKGZY.mjs → LinkNodeButton-AOEDCCL7.mjs} +92 -38
- package/dist/{LinkNodeButton-XA7Z5IDR.mjs → LinkNodeButton-BIZA2NPE.mjs} +92 -38
- package/dist/{chunk-JKP4XOZB.mjs → chunk-23WJE3YB.mjs} +48 -9
- package/dist/{chunk-YL6E76X2.mjs → chunk-RHVNJMS4.mjs} +48 -9
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +191 -100
- package/dist/index.mjs +31 -35
- package/package.json +8 -5
- package/server.d.ts +1 -0
- package/server.js +1 -0
- package/dist/EnterAnimationClient-4OKXLKSA.mjs +0 -45
- package/dist/EnterAnimationClient-ZN3NLFNO.mjs +0 -47
- package/dist/InputControlClient-AZRPSTUZ.mjs +0 -677
- package/dist/InputControlClient-HIZOJLKW.mjs +0 -677
- package/dist/LinkNodeButton-U7T2NP22.mjs +0 -374
- package/dist/Pagination-6OFACRMQ.mjs +0 -229
- package/dist/Pagination-OQT7Q2XO.mjs +0 -183
- package/dist/chunk-3R4VVVNK.mjs +0 -903
- package/dist/chunk-FI2KJBK2.mjs +0 -110
- package/dist/chunk-OGGIS4AN.mjs +0 -201
- package/dist/chunk-TVL6KVD5.mjs +0 -229
- package/dist/server.d.mts +0 -113
- package/dist/server.d.ts +0 -113
- package/dist/server.js +0 -5179
- package/dist/server.mjs +0 -2736
package/dist/index.mjs
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
Button_default,
|
|
34
34
|
ClientButton_default,
|
|
35
35
|
ToastService_default
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-23WJE3YB.mjs";
|
|
37
37
|
import "./chunk-IMNQO57B.mjs";
|
|
38
38
|
|
|
39
39
|
// src/components/controls/view/ViewControl.tsx
|
|
@@ -375,41 +375,41 @@ var DateTimeVew_default = DateTimeView;
|
|
|
375
375
|
|
|
376
376
|
// src/components/controls/view/ViewControl.tsx
|
|
377
377
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
378
|
-
var
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
378
|
+
var ControlComponents = {
|
|
379
|
+
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
380
|
+
[ViewControlTypes_default.emailText]: EmailTextView_default,
|
|
381
|
+
[ViewControlTypes_default.asset]: Asset_default,
|
|
382
|
+
[ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
|
|
383
|
+
[ViewControlTypes_default.boolean]: BooleanView_default,
|
|
384
|
+
[ViewControlTypes_default.checkboxInput]: BooleanView_default,
|
|
385
|
+
// [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
|
|
386
|
+
[ViewControlTypes_default.money]: MoneyView_default,
|
|
387
|
+
[ViewControlTypes_default.date]: DateView_default,
|
|
388
|
+
[ViewControlTypes_default.time]: DateView_default,
|
|
389
|
+
[ViewControlTypes_default.datetime]: DateTimeVew_default,
|
|
390
|
+
[ViewControlTypes_default.number]: NumberView_default,
|
|
391
|
+
[ViewControlTypes_default.multilineText]: MultilineTextView_default,
|
|
392
|
+
[ViewControlTypes_default.multilinetext]: MultilineTextView_default,
|
|
393
|
+
[ViewControlTypes_default.moneyText]: MoneyView_default,
|
|
394
|
+
[ViewControlTypes_default.percentage]: PercentageView_default,
|
|
395
|
+
[ViewControlTypes_default.status]: StatusView_default,
|
|
396
|
+
[ViewControlTypes_default.statusBg]: StatusBgView_default,
|
|
397
|
+
[ViewControlTypes_default.progressIndicator]: ProgressIndicator_default,
|
|
398
|
+
// [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
|
|
399
|
+
// [ViewControlTypes.timeUntilStartsStyled]: TimeUntilStartsStyled,
|
|
400
|
+
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default,
|
|
401
|
+
[ViewControlTypes_default.booleanView]: BooleanView_default,
|
|
402
|
+
[ViewControlTypes_default.text]: LineTextView_default
|
|
403
|
+
};
|
|
404
|
+
var ViewControl = React13.memo((props) => {
|
|
405
405
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
406
406
|
return /* @__PURE__ */ jsx14(React13.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx14(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
407
|
-
};
|
|
407
|
+
});
|
|
408
408
|
var ViewControl_default = ViewControl;
|
|
409
409
|
|
|
410
410
|
// src/components/controls/edit/InputControl.tsx
|
|
411
411
|
import dynamic4 from "next/dynamic";
|
|
412
|
-
var InputControl = dynamic4(() => import("./InputControlClient-
|
|
412
|
+
var InputControl = dynamic4(() => import("./InputControlClient-7FJWGZDN.mjs"), {
|
|
413
413
|
ssr: false
|
|
414
414
|
});
|
|
415
415
|
var InputControl_default = InputControl;
|
|
@@ -613,7 +613,7 @@ var ImageNode_default = ImageNode;
|
|
|
613
613
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
614
614
|
import dynamic6 from "next/dynamic";
|
|
615
615
|
import { Fragment, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
616
|
-
var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-
|
|
616
|
+
var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-AOEDCCL7.mjs"), {
|
|
617
617
|
ssr: false
|
|
618
618
|
});
|
|
619
619
|
function getNestedValue2(obj, path) {
|
|
@@ -3022,7 +3022,6 @@ var DataList = (props) => {
|
|
|
3022
3022
|
let orderBy = "";
|
|
3023
3023
|
let activePageNumber = 0;
|
|
3024
3024
|
let pages = 0;
|
|
3025
|
-
console.log(props.addLinkText);
|
|
3026
3025
|
const [isDataFound, setIsDataFound] = useState2(null);
|
|
3027
3026
|
const [searchTerm, setSearchTerm] = useState2(props.query?.searchTerm ?? "");
|
|
3028
3027
|
useEffect3(() => {
|
|
@@ -3073,7 +3072,6 @@ var DataList = (props) => {
|
|
|
3073
3072
|
name: updatedValues.name,
|
|
3074
3073
|
value: updatedValues.value
|
|
3075
3074
|
});
|
|
3076
|
-
console.log("ddddaaa", updatedValues.value);
|
|
3077
3075
|
let builder2 = new OdataBuilder(props.path);
|
|
3078
3076
|
builder2 = builder2.setQuery(props.query);
|
|
3079
3077
|
if (updatedValues.value != "" && updatedValues.value != null) {
|
|
@@ -3374,12 +3372,10 @@ var DataList = (props) => {
|
|
|
3374
3372
|
}) }) }),
|
|
3375
3373
|
/* @__PURE__ */ jsx40("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
|
|
3376
3374
|
let validityClass = "";
|
|
3377
|
-
console.log("dataitem", dataitem);
|
|
3378
3375
|
if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
|
|
3379
3376
|
validityClass = "bg-alert-200";
|
|
3380
3377
|
}
|
|
3381
3378
|
return /* @__PURE__ */ jsx40("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
|
|
3382
|
-
console.log("column", column);
|
|
3383
3379
|
return /* @__PURE__ */ jsx40(React27.Fragment, { children: /* @__PURE__ */ jsx40(
|
|
3384
3380
|
"td",
|
|
3385
3381
|
{
|
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.20260722072620",
|
|
4
4
|
"description": "Reusable React components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -9,16 +9,20 @@
|
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"import": "./dist/index.mjs",
|
|
12
|
-
"require": "./dist/index.js"
|
|
12
|
+
"require": "./dist/index.js",
|
|
13
|
+
"default": "./dist/index.js"
|
|
13
14
|
},
|
|
14
15
|
"./server": {
|
|
15
16
|
"types": "./dist/server.d.ts",
|
|
16
17
|
"import": "./dist/server.mjs",
|
|
17
|
-
"require": "./dist/server.js"
|
|
18
|
+
"require": "./dist/server.js",
|
|
19
|
+
"default": "./dist/server.js"
|
|
18
20
|
}
|
|
19
21
|
},
|
|
20
22
|
"files": [
|
|
21
|
-
"dist"
|
|
23
|
+
"dist",
|
|
24
|
+
"server.js",
|
|
25
|
+
"server.d.ts"
|
|
22
26
|
],
|
|
23
27
|
"scripts": {
|
|
24
28
|
"build": "tsup",
|
|
@@ -63,7 +67,6 @@
|
|
|
63
67
|
"load-tsconfig": "^0.2.5",
|
|
64
68
|
"magic-string": "^0.30.21",
|
|
65
69
|
"mlly": "^1.8.0",
|
|
66
|
-
"moment-timezone": "^0.6.3",
|
|
67
70
|
"ms": "^2.1.3",
|
|
68
71
|
"mz": "^2.7.0",
|
|
69
72
|
"next": "^15.5.21",
|
package/server.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./dist/server";
|
package/server.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("./dist/server.js");
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/components/pageRenderingEngine/nodes/EnterAnimationClient.tsx
|
|
4
|
-
import React, { useEffect, useRef } from "react";
|
|
5
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
6
|
-
function EnterAnimationClient({ hasEnterAnimation, children }) {
|
|
7
|
-
const ref = useRef(null);
|
|
8
|
-
console.log("render");
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
console.log("effect");
|
|
11
|
-
console.log("ref", ref.current);
|
|
12
|
-
if (!hasEnterAnimation) {
|
|
13
|
-
console.log("no animation");
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
if (!ref.current) {
|
|
17
|
-
console.log("no ref");
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
console.log("observer started");
|
|
21
|
-
}, []);
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
if (!hasEnterAnimation || !ref.current) return;
|
|
24
|
-
const observer = new IntersectionObserver(
|
|
25
|
-
(entries) => {
|
|
26
|
-
entries.forEach((entry) => {
|
|
27
|
-
if (entry.isIntersecting) {
|
|
28
|
-
entry.target.classList.add("visible");
|
|
29
|
-
observer.unobserve(entry.target);
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
},
|
|
33
|
-
{ threshold: 0.1 }
|
|
34
|
-
);
|
|
35
|
-
observer.observe(ref.current);
|
|
36
|
-
return () => observer.disconnect();
|
|
37
|
-
}, [hasEnterAnimation]);
|
|
38
|
-
if (!children) return null;
|
|
39
|
-
return /* @__PURE__ */ jsx(Fragment, { children: children && // enforce passing the ref to Wrapper
|
|
40
|
-
//@ts-ignore
|
|
41
|
-
React.cloneElement(children, { ref }) });
|
|
42
|
-
}
|
|
43
|
-
export {
|
|
44
|
-
EnterAnimationClient as default
|
|
45
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
"use client";
|
|
4
|
-
|
|
5
|
-
// src/components/pageRenderingEngine/nodes/EnterAnimationClient.tsx
|
|
6
|
-
import React, { useEffect, useRef } from "react";
|
|
7
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
8
|
-
function EnterAnimationClient({ hasEnterAnimation, children }) {
|
|
9
|
-
const ref = useRef(null);
|
|
10
|
-
console.log("render");
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
console.log("effect");
|
|
13
|
-
console.log("ref", ref.current);
|
|
14
|
-
if (!hasEnterAnimation) {
|
|
15
|
-
console.log("no animation");
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
if (!ref.current) {
|
|
19
|
-
console.log("no ref");
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
console.log("observer started");
|
|
23
|
-
}, []);
|
|
24
|
-
useEffect(() => {
|
|
25
|
-
if (!hasEnterAnimation || !ref.current) return;
|
|
26
|
-
const observer = new IntersectionObserver(
|
|
27
|
-
(entries) => {
|
|
28
|
-
entries.forEach((entry) => {
|
|
29
|
-
if (entry.isIntersecting) {
|
|
30
|
-
entry.target.classList.add("visible");
|
|
31
|
-
observer.unobserve(entry.target);
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
},
|
|
35
|
-
{ threshold: 0.1 }
|
|
36
|
-
);
|
|
37
|
-
observer.observe(ref.current);
|
|
38
|
-
return () => observer.disconnect();
|
|
39
|
-
}, [hasEnterAnimation]);
|
|
40
|
-
if (!children) return null;
|
|
41
|
-
return /* @__PURE__ */ jsx(Fragment, { children: children && // enforce passing the ref to Wrapper
|
|
42
|
-
//@ts-ignore
|
|
43
|
-
React.cloneElement(children, { ref }) });
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
EnterAnimationClient as default
|
|
47
|
-
};
|