@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260722072620 → 0.8.1-dev.20260722073037
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/EnterAnimationClient-4OKXLKSA.mjs +45 -0
- package/dist/EnterAnimationClient-ZN3NLFNO.mjs +47 -0
- package/dist/InputControlClient-AZRPSTUZ.mjs +677 -0
- package/dist/InputControlClient-HIZOJLKW.mjs +677 -0
- package/dist/{InputControlClient-7FJWGZDN.mjs → InputControlClient-QAZKQLFO.mjs} +23 -23
- package/dist/{InputControlClient-5RK7QDZZ.mjs → InputControlClient-QQCQD4EG.mjs} +23 -23
- package/dist/{LinkNodeButton-AOEDCCL7.mjs → LinkNodeButton-LX3KKGZY.mjs} +38 -92
- package/dist/LinkNodeButton-U7T2NP22.mjs +374 -0
- package/dist/{LinkNodeButton-BIZA2NPE.mjs → LinkNodeButton-XA7Z5IDR.mjs} +38 -92
- package/dist/Pagination-6OFACRMQ.mjs +229 -0
- package/dist/Pagination-OQT7Q2XO.mjs +183 -0
- package/dist/chunk-3R4VVVNK.mjs +903 -0
- package/dist/chunk-FI2KJBK2.mjs +110 -0
- package/dist/{chunk-23WJE3YB.mjs → chunk-JKP4XOZB.mjs} +9 -48
- package/dist/chunk-OGGIS4AN.mjs +201 -0
- package/dist/chunk-TVL6KVD5.mjs +229 -0
- package/dist/{chunk-RHVNJMS4.mjs → chunk-YL6E76X2.mjs} +9 -48
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +100 -191
- package/dist/index.mjs +35 -31
- package/dist/server.d.mts +113 -0
- package/dist/server.d.ts +113 -0
- package/dist/server.js +5179 -0
- package/dist/server.mjs +2736 -0
- package/package.json +5 -8
- package/server.d.ts +0 -1
- package/server.js +0 -1
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-JKP4XOZB.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 ViewControl = (props) => {
|
|
379
|
+
const ControlComponents = {
|
|
380
|
+
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
381
|
+
[ViewControlTypes_default.emailText]: EmailTextView_default,
|
|
382
|
+
[ViewControlTypes_default.asset]: Asset_default,
|
|
383
|
+
[ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
|
|
384
|
+
[ViewControlTypes_default.boolean]: BooleanView_default,
|
|
385
|
+
[ViewControlTypes_default.checkboxInput]: BooleanView_default,
|
|
386
|
+
// [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
|
|
387
|
+
[ViewControlTypes_default.money]: MoneyView_default,
|
|
388
|
+
[ViewControlTypes_default.date]: DateView_default,
|
|
389
|
+
[ViewControlTypes_default.time]: DateView_default,
|
|
390
|
+
[ViewControlTypes_default.datetime]: DateTimeVew_default,
|
|
391
|
+
[ViewControlTypes_default.number]: NumberView_default,
|
|
392
|
+
[ViewControlTypes_default.multilineText]: MultilineTextView_default,
|
|
393
|
+
[ViewControlTypes_default.multilinetext]: MultilineTextView_default,
|
|
394
|
+
[ViewControlTypes_default.moneyText]: MoneyView_default,
|
|
395
|
+
[ViewControlTypes_default.percentage]: PercentageView_default,
|
|
396
|
+
[ViewControlTypes_default.status]: StatusView_default,
|
|
397
|
+
[ViewControlTypes_default.statusBg]: StatusBgView_default,
|
|
398
|
+
[ViewControlTypes_default.progressIndicator]: ProgressIndicator_default,
|
|
399
|
+
// [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
|
|
400
|
+
// [ViewControlTypes.timeUntilStartsStyled]: TimeUntilStartsStyled,
|
|
401
|
+
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default,
|
|
402
|
+
[ViewControlTypes_default.booleanView]: BooleanView_default,
|
|
403
|
+
[ViewControlTypes_default.text]: LineTextView_default
|
|
404
|
+
};
|
|
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-QAZKQLFO.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-LX3KKGZY.mjs"), {
|
|
617
617
|
ssr: false
|
|
618
618
|
});
|
|
619
619
|
function getNestedValue2(obj, path) {
|
|
@@ -3022,6 +3022,7 @@ var DataList = (props) => {
|
|
|
3022
3022
|
let orderBy = "";
|
|
3023
3023
|
let activePageNumber = 0;
|
|
3024
3024
|
let pages = 0;
|
|
3025
|
+
console.log(props.addLinkText);
|
|
3025
3026
|
const [isDataFound, setIsDataFound] = useState2(null);
|
|
3026
3027
|
const [searchTerm, setSearchTerm] = useState2(props.query?.searchTerm ?? "");
|
|
3027
3028
|
useEffect3(() => {
|
|
@@ -3072,6 +3073,7 @@ var DataList = (props) => {
|
|
|
3072
3073
|
name: updatedValues.name,
|
|
3073
3074
|
value: updatedValues.value
|
|
3074
3075
|
});
|
|
3076
|
+
console.log("ddddaaa", updatedValues.value);
|
|
3075
3077
|
let builder2 = new OdataBuilder(props.path);
|
|
3076
3078
|
builder2 = builder2.setQuery(props.query);
|
|
3077
3079
|
if (updatedValues.value != "" && updatedValues.value != null) {
|
|
@@ -3372,10 +3374,12 @@ var DataList = (props) => {
|
|
|
3372
3374
|
}) }) }),
|
|
3373
3375
|
/* @__PURE__ */ jsx40("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
|
|
3374
3376
|
let validityClass = "";
|
|
3377
|
+
console.log("dataitem", dataitem);
|
|
3375
3378
|
if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
|
|
3376
3379
|
validityClass = "bg-alert-200";
|
|
3377
3380
|
}
|
|
3378
3381
|
return /* @__PURE__ */ jsx40("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
|
|
3382
|
+
console.log("column", column);
|
|
3379
3383
|
return /* @__PURE__ */ jsx40(React27.Fragment, { children: /* @__PURE__ */ jsx40(
|
|
3380
3384
|
"td",
|
|
3381
3385
|
{
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface Session {
|
|
4
|
+
cid: string;
|
|
5
|
+
contactId?: number;
|
|
6
|
+
fullName?: string;
|
|
7
|
+
truncatedPhone?: string;
|
|
8
|
+
userCurrencyCode?: string;
|
|
9
|
+
marketCode?: string;
|
|
10
|
+
oAuthToken?: string;
|
|
11
|
+
refreshToken?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface ActionResponse<T> {
|
|
15
|
+
isSuccessful?: boolean;
|
|
16
|
+
message?: string;
|
|
17
|
+
errorNumber?: string;
|
|
18
|
+
result?: T;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface QueryResponse<T> {
|
|
22
|
+
isSuccessful?: boolean;
|
|
23
|
+
message?: string;
|
|
24
|
+
errorNumber?: string;
|
|
25
|
+
result?: T[];
|
|
26
|
+
parent?: T;
|
|
27
|
+
count?: number;
|
|
28
|
+
data?: T[];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface SingleResponse<T> {
|
|
32
|
+
isSuccessful?: boolean;
|
|
33
|
+
message?: string;
|
|
34
|
+
errorNumber?: string;
|
|
35
|
+
result?: T;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
interface ServiceClientInterface {
|
|
39
|
+
baseUrl: string;
|
|
40
|
+
session: any;
|
|
41
|
+
post(path: string, data: any): Promise<ActionResponse<any>>;
|
|
42
|
+
get(path: string, params?: {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
}): Promise<QueryResponse<any>>;
|
|
45
|
+
getSingle<T>(path: string, params?: {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
}): Promise<SingleResponse<T>>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface PageBodyRendererProps {
|
|
51
|
+
rawBody?: string;
|
|
52
|
+
routeParameters?: {
|
|
53
|
+
[key: string]: unknown;
|
|
54
|
+
};
|
|
55
|
+
query?: {
|
|
56
|
+
[key: string]: string;
|
|
57
|
+
};
|
|
58
|
+
session: Session;
|
|
59
|
+
host: string;
|
|
60
|
+
path: string;
|
|
61
|
+
apiBaseUrl: string;
|
|
62
|
+
breadcrumb?: string;
|
|
63
|
+
donotApplyContainerClass?: boolean;
|
|
64
|
+
donotApplyContainerLargeClass?: boolean;
|
|
65
|
+
serviceClient?: ServiceClientInterface;
|
|
66
|
+
assetBaseUrl?: string;
|
|
67
|
+
device?: string;
|
|
68
|
+
widgetRenderer?: any;
|
|
69
|
+
}
|
|
70
|
+
declare const PageBodyRenderer: (props: PageBodyRendererProps) => React.JSX.Element;
|
|
71
|
+
|
|
72
|
+
interface ViewControlProps {
|
|
73
|
+
value?: any;
|
|
74
|
+
controlType?: string;
|
|
75
|
+
format?: string;
|
|
76
|
+
unit?: string;
|
|
77
|
+
width?: string;
|
|
78
|
+
apiBaseUrl?: string;
|
|
79
|
+
assetBaseUrl?: string;
|
|
80
|
+
customProps?: Record<string, unknown>;
|
|
81
|
+
session?: any;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare const ViewControl: (props: ViewControlProps) => React.JSX.Element;
|
|
85
|
+
|
|
86
|
+
declare const ViewControlTypes: {
|
|
87
|
+
lineText: string;
|
|
88
|
+
emailText: string;
|
|
89
|
+
asset: string;
|
|
90
|
+
video: string;
|
|
91
|
+
multilineTextBullets: string;
|
|
92
|
+
boolean: string;
|
|
93
|
+
checkboxInput: string;
|
|
94
|
+
money: string;
|
|
95
|
+
date: string;
|
|
96
|
+
time: string;
|
|
97
|
+
datetime: string;
|
|
98
|
+
number: string;
|
|
99
|
+
multilineText: string;
|
|
100
|
+
multilinetext: string;
|
|
101
|
+
moneyText: string;
|
|
102
|
+
percentage: string;
|
|
103
|
+
status: string;
|
|
104
|
+
statusBg: string;
|
|
105
|
+
progressIndicator: string;
|
|
106
|
+
timeUntilStarts: string;
|
|
107
|
+
timeUntilStartsStyled: string;
|
|
108
|
+
aiGeneratedSummary: string;
|
|
109
|
+
booleanView: string;
|
|
110
|
+
text: string;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export { PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes };
|
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface Session {
|
|
4
|
+
cid: string;
|
|
5
|
+
contactId?: number;
|
|
6
|
+
fullName?: string;
|
|
7
|
+
truncatedPhone?: string;
|
|
8
|
+
userCurrencyCode?: string;
|
|
9
|
+
marketCode?: string;
|
|
10
|
+
oAuthToken?: string;
|
|
11
|
+
refreshToken?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface ActionResponse<T> {
|
|
15
|
+
isSuccessful?: boolean;
|
|
16
|
+
message?: string;
|
|
17
|
+
errorNumber?: string;
|
|
18
|
+
result?: T;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface QueryResponse<T> {
|
|
22
|
+
isSuccessful?: boolean;
|
|
23
|
+
message?: string;
|
|
24
|
+
errorNumber?: string;
|
|
25
|
+
result?: T[];
|
|
26
|
+
parent?: T;
|
|
27
|
+
count?: number;
|
|
28
|
+
data?: T[];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface SingleResponse<T> {
|
|
32
|
+
isSuccessful?: boolean;
|
|
33
|
+
message?: string;
|
|
34
|
+
errorNumber?: string;
|
|
35
|
+
result?: T;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
interface ServiceClientInterface {
|
|
39
|
+
baseUrl: string;
|
|
40
|
+
session: any;
|
|
41
|
+
post(path: string, data: any): Promise<ActionResponse<any>>;
|
|
42
|
+
get(path: string, params?: {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
}): Promise<QueryResponse<any>>;
|
|
45
|
+
getSingle<T>(path: string, params?: {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
}): Promise<SingleResponse<T>>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface PageBodyRendererProps {
|
|
51
|
+
rawBody?: string;
|
|
52
|
+
routeParameters?: {
|
|
53
|
+
[key: string]: unknown;
|
|
54
|
+
};
|
|
55
|
+
query?: {
|
|
56
|
+
[key: string]: string;
|
|
57
|
+
};
|
|
58
|
+
session: Session;
|
|
59
|
+
host: string;
|
|
60
|
+
path: string;
|
|
61
|
+
apiBaseUrl: string;
|
|
62
|
+
breadcrumb?: string;
|
|
63
|
+
donotApplyContainerClass?: boolean;
|
|
64
|
+
donotApplyContainerLargeClass?: boolean;
|
|
65
|
+
serviceClient?: ServiceClientInterface;
|
|
66
|
+
assetBaseUrl?: string;
|
|
67
|
+
device?: string;
|
|
68
|
+
widgetRenderer?: any;
|
|
69
|
+
}
|
|
70
|
+
declare const PageBodyRenderer: (props: PageBodyRendererProps) => React.JSX.Element;
|
|
71
|
+
|
|
72
|
+
interface ViewControlProps {
|
|
73
|
+
value?: any;
|
|
74
|
+
controlType?: string;
|
|
75
|
+
format?: string;
|
|
76
|
+
unit?: string;
|
|
77
|
+
width?: string;
|
|
78
|
+
apiBaseUrl?: string;
|
|
79
|
+
assetBaseUrl?: string;
|
|
80
|
+
customProps?: Record<string, unknown>;
|
|
81
|
+
session?: any;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare const ViewControl: (props: ViewControlProps) => React.JSX.Element;
|
|
85
|
+
|
|
86
|
+
declare const ViewControlTypes: {
|
|
87
|
+
lineText: string;
|
|
88
|
+
emailText: string;
|
|
89
|
+
asset: string;
|
|
90
|
+
video: string;
|
|
91
|
+
multilineTextBullets: string;
|
|
92
|
+
boolean: string;
|
|
93
|
+
checkboxInput: string;
|
|
94
|
+
money: string;
|
|
95
|
+
date: string;
|
|
96
|
+
time: string;
|
|
97
|
+
datetime: string;
|
|
98
|
+
number: string;
|
|
99
|
+
multilineText: string;
|
|
100
|
+
multilinetext: string;
|
|
101
|
+
moneyText: string;
|
|
102
|
+
percentage: string;
|
|
103
|
+
status: string;
|
|
104
|
+
statusBg: string;
|
|
105
|
+
progressIndicator: string;
|
|
106
|
+
timeUntilStarts: string;
|
|
107
|
+
timeUntilStartsStyled: string;
|
|
108
|
+
aiGeneratedSummary: string;
|
|
109
|
+
booleanView: string;
|
|
110
|
+
text: string;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export { PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes };
|