@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260722072620 → 0.8.1-dev.20260722074927
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-7FJWGZDN.mjs → InputControlClient-7NS4QUWO.mjs} +22 -22
- package/dist/InputControlClient-AZRPSTUZ.mjs +677 -0
- package/dist/{InputControlClient-5RK7QDZZ.mjs → InputControlClient-BUOYZNWQ.mjs} +22 -22
- package/dist/InputControlClient-HIZOJLKW.mjs +677 -0
- package/dist/LinkNodeButton-LX3KKGZY.mjs +173 -0
- package/dist/LinkNodeButton-U7T2NP22.mjs +374 -0
- 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-JKP4XOZB.mjs +214 -0
- package/dist/chunk-OGGIS4AN.mjs +201 -0
- package/dist/chunk-TVL6KVD5.mjs +229 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +56 -54
- package/dist/index.mjs +49 -47
- 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
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buttonClasses
|
|
3
|
+
} from "./chunk-56HSDML5.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/dataForm/Hyperlink.tsx
|
|
6
|
+
import Link from "next/link";
|
|
7
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
8
|
+
function Hyperlink(props) {
|
|
9
|
+
let linkClass = props.linkType ? buttonClasses.get(props.linkType) : buttonClasses.get("Link" /* Link */);
|
|
10
|
+
const target = props?.href?.startsWith("http") ? "_blank" : "_self";
|
|
11
|
+
const additionalProps = {};
|
|
12
|
+
if (target == "_blank") {
|
|
13
|
+
additionalProps.rel = "noopener noreferrer";
|
|
14
|
+
}
|
|
15
|
+
return /* @__PURE__ */ jsx(Fragment, { children: props.href ? /* @__PURE__ */ jsx(
|
|
16
|
+
Link,
|
|
17
|
+
{
|
|
18
|
+
href: props.href,
|
|
19
|
+
prefetch: false,
|
|
20
|
+
className: [linkClass, props.className].filter(Boolean).join(" "),
|
|
21
|
+
...additionalProps,
|
|
22
|
+
target,
|
|
23
|
+
children: props.children
|
|
24
|
+
}
|
|
25
|
+
) : props.isHeading ? /* @__PURE__ */ jsx("h5", { className: props.className + "inline-block", children: props.children }) : /* @__PURE__ */ jsx("span", { className: props.className, children: props.children }) });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// src/components/controls/edit/InputControlType.tsx
|
|
29
|
+
var Constants = {
|
|
30
|
+
pagesize: 10
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// src/clients/OdataBuilder.tsx
|
|
34
|
+
var OdataBuilder = class {
|
|
35
|
+
constructor(url) {
|
|
36
|
+
this.baseUrl = url;
|
|
37
|
+
this.top = Constants.pagesize.toString();
|
|
38
|
+
this.skip = "0";
|
|
39
|
+
this.keyword = "";
|
|
40
|
+
this.filterBy = "";
|
|
41
|
+
this.orderBy = "";
|
|
42
|
+
}
|
|
43
|
+
// parseSearchParams(ReadonlyUrlSearchParams): DataQuery {
|
|
44
|
+
// this.top = top;
|
|
45
|
+
// return this;
|
|
46
|
+
// }
|
|
47
|
+
setQuery(odata) {
|
|
48
|
+
if (odata) {
|
|
49
|
+
for (const key in odata) {
|
|
50
|
+
if (odata[key] != null && odata[key] != "") {
|
|
51
|
+
if (key == "$skip") {
|
|
52
|
+
this.setSkip(odata[key]);
|
|
53
|
+
}
|
|
54
|
+
if (key == "$filter") {
|
|
55
|
+
this.setFilter(odata[key]);
|
|
56
|
+
}
|
|
57
|
+
if (key == "$top") {
|
|
58
|
+
this.setTop(odata[key]);
|
|
59
|
+
}
|
|
60
|
+
if (key == "$orderby") {
|
|
61
|
+
this.setOrderBy(odata[key]);
|
|
62
|
+
}
|
|
63
|
+
if (key == "searchTerm") {
|
|
64
|
+
this.searchTerm = odata[key];
|
|
65
|
+
}
|
|
66
|
+
if (key == "searchCols") {
|
|
67
|
+
this.searchCols = odata[key];
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return this;
|
|
73
|
+
}
|
|
74
|
+
// parseKeyValuePairs(inputString: string): { [key: string]: string } {
|
|
75
|
+
// return inputString.split('$')
|
|
76
|
+
// .map((pair) => pair.split('='))
|
|
77
|
+
// .reduce((result: { [key: string]: string }, [key, value]) => {
|
|
78
|
+
// if (key && value) {
|
|
79
|
+
// result[key.trim()] = value.trim();
|
|
80
|
+
// }
|
|
81
|
+
// return result;
|
|
82
|
+
// }, {});
|
|
83
|
+
// }
|
|
84
|
+
static getOdataQueryString(obj, defaultOrder) {
|
|
85
|
+
let queryString = "";
|
|
86
|
+
let skip = (obj && obj["$skip"]) ?? "0";
|
|
87
|
+
let top = (obj && obj["$top"]) ?? Constants.pagesize.toString();
|
|
88
|
+
queryString = `$skip=${skip}&$top=${top}&$count=true`;
|
|
89
|
+
if (obj?.["searchTerm"] && obj["searchTerm"].trim() !== "") {
|
|
90
|
+
queryString += `&searchTerm=${encodeURIComponent(obj["searchTerm"])}`;
|
|
91
|
+
}
|
|
92
|
+
if (obj?.["searchCols"] && obj["searchCols"].trim() !== "") {
|
|
93
|
+
queryString += `&searchCols=${encodeURIComponent(obj["searchCols"])}`;
|
|
94
|
+
}
|
|
95
|
+
if (obj) {
|
|
96
|
+
if (obj["$filter"] && obj["$filter"] !== null && obj["$filter"] !== "") {
|
|
97
|
+
queryString = queryString + `&$filter=${encodeURIComponent(obj["$filter"])}`;
|
|
98
|
+
}
|
|
99
|
+
if (obj["$orderby"] && obj["$orderby"] !== null && obj["$orderby"] !== "") {
|
|
100
|
+
queryString = queryString + `&$orderby=${encodeURIComponent(obj["$orderby"])}`;
|
|
101
|
+
} else if (defaultOrder) {
|
|
102
|
+
queryString = queryString + `&$orderby=${encodeURIComponent(defaultOrder)}`;
|
|
103
|
+
}
|
|
104
|
+
} else {
|
|
105
|
+
if (defaultOrder) {
|
|
106
|
+
queryString = queryString + `&$orderby=${encodeURIComponent(defaultOrder)}`;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return queryString;
|
|
110
|
+
}
|
|
111
|
+
setTop(top) {
|
|
112
|
+
this.top = top;
|
|
113
|
+
return this;
|
|
114
|
+
}
|
|
115
|
+
setSkip(skip) {
|
|
116
|
+
this.skip = skip;
|
|
117
|
+
return this;
|
|
118
|
+
}
|
|
119
|
+
setKeyword(keyword) {
|
|
120
|
+
this.keyword = keyword;
|
|
121
|
+
return this;
|
|
122
|
+
}
|
|
123
|
+
setFilter(filterBy) {
|
|
124
|
+
this.filterBy = filterBy;
|
|
125
|
+
return this;
|
|
126
|
+
}
|
|
127
|
+
setOrderBy(orderBy) {
|
|
128
|
+
this.orderBy = orderBy;
|
|
129
|
+
return this;
|
|
130
|
+
}
|
|
131
|
+
getPageNumber(pageSize) {
|
|
132
|
+
let pageNumber = 1;
|
|
133
|
+
if (this.skip && this.top) {
|
|
134
|
+
const skip = parseInt(this.skip);
|
|
135
|
+
const top = parseInt(this.top);
|
|
136
|
+
if (!isNaN(skip) && !isNaN(top)) {
|
|
137
|
+
pageNumber = skip / pageSize + 1;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return pageNumber;
|
|
141
|
+
}
|
|
142
|
+
getUrl() {
|
|
143
|
+
let url = `${this.baseUrl}?$skip=${this.skip}&$top=${this.top}&$count=true`;
|
|
144
|
+
if (this.filterBy !== null && this.filterBy !== "") {
|
|
145
|
+
url = url + `&$filter=${encodeURIComponent(this.filterBy)}`;
|
|
146
|
+
}
|
|
147
|
+
if (this.orderBy !== null && this.orderBy !== "") {
|
|
148
|
+
url = url + `&$orderby=${encodeURIComponent(this.orderBy)}`;
|
|
149
|
+
}
|
|
150
|
+
if (this.searchTerm) {
|
|
151
|
+
url += `&searchTerm=${encodeURIComponent(this.searchTerm)}`;
|
|
152
|
+
}
|
|
153
|
+
if (this.searchCols) {
|
|
154
|
+
url += `&searchCols=${encodeURIComponent(this.searchCols)}`;
|
|
155
|
+
}
|
|
156
|
+
console.log(url);
|
|
157
|
+
return url;
|
|
158
|
+
}
|
|
159
|
+
getNewOrderByUrl(orderBy) {
|
|
160
|
+
let url = `${this.baseUrl}?$skip=${0}&$top=${this.top}&$count=true`;
|
|
161
|
+
if (this.filterBy !== null && this.filterBy !== "") {
|
|
162
|
+
url = url + `&$filter=${encodeURIComponent(this.filterBy)}`;
|
|
163
|
+
}
|
|
164
|
+
if (this.searchTerm) {
|
|
165
|
+
url += `&searchTerm=${encodeURIComponent(this.searchTerm)}`;
|
|
166
|
+
}
|
|
167
|
+
if (this.searchCols) {
|
|
168
|
+
url += `&searchCols=${encodeURIComponent(this.searchCols)}`;
|
|
169
|
+
}
|
|
170
|
+
url = url + `&$orderby=${encodeURIComponent(orderBy)}`;
|
|
171
|
+
return url;
|
|
172
|
+
}
|
|
173
|
+
getNewFilterUrl(filterBy) {
|
|
174
|
+
let url = `${this.baseUrl}?$skip=${0}&$top=${this.top}&$count=true`;
|
|
175
|
+
if (filterBy !== null && filterBy !== "") {
|
|
176
|
+
url = url + `&$filter=${encodeURIComponent(filterBy)}`;
|
|
177
|
+
}
|
|
178
|
+
if (this.orderBy !== null && this.orderBy !== "") {
|
|
179
|
+
url = url + `&$orderby=${encodeURIComponent(this.orderBy)}`;
|
|
180
|
+
}
|
|
181
|
+
if (this.searchTerm) {
|
|
182
|
+
url += `&searchTerm=${encodeURIComponent(this.searchTerm)}`;
|
|
183
|
+
}
|
|
184
|
+
if (this.searchCols) {
|
|
185
|
+
url += `&searchCols=${encodeURIComponent(this.searchCols)}`;
|
|
186
|
+
}
|
|
187
|
+
return url;
|
|
188
|
+
}
|
|
189
|
+
getNewPageUrl(page) {
|
|
190
|
+
let skip = page * Constants.pagesize - Constants.pagesize;
|
|
191
|
+
let url = `${this.baseUrl}?$skip=${skip}&$top=${this.top}&$count=true`;
|
|
192
|
+
if (this.filterBy !== null && this.filterBy !== "") {
|
|
193
|
+
url = url + `&$filter=${encodeURIComponent(this.filterBy)}`;
|
|
194
|
+
}
|
|
195
|
+
if (this.orderBy !== null && this.orderBy !== "") {
|
|
196
|
+
url = url + `&$orderby=${encodeURIComponent(this.orderBy)}`;
|
|
197
|
+
}
|
|
198
|
+
if (this.searchTerm) {
|
|
199
|
+
url += `&searchTerm=${encodeURIComponent(this.searchTerm)}`;
|
|
200
|
+
}
|
|
201
|
+
if (this.searchCols) {
|
|
202
|
+
url += `&searchCols=${encodeURIComponent(this.searchCols)}`;
|
|
203
|
+
}
|
|
204
|
+
return url;
|
|
205
|
+
}
|
|
206
|
+
getNewPageSizeUrl(pageSize) {
|
|
207
|
+
const currentPage = this.getPageNumber(
|
|
208
|
+
parseInt(this.top || Constants.pagesize.toString())
|
|
209
|
+
);
|
|
210
|
+
const skip = (currentPage - 1) * pageSize;
|
|
211
|
+
let url = `${this.baseUrl}?$skip=${skip}&$top=${pageSize}&$count=true`;
|
|
212
|
+
if (this.filterBy !== null && this.filterBy !== "") {
|
|
213
|
+
url = url + `&$filter=${encodeURIComponent(this.filterBy)}`;
|
|
214
|
+
}
|
|
215
|
+
if (this.orderBy !== null && this.orderBy !== "") {
|
|
216
|
+
url = url + `&$orderby=${encodeURIComponent(this.orderBy)}`;
|
|
217
|
+
}
|
|
218
|
+
return url;
|
|
219
|
+
}
|
|
220
|
+
getOrderBy() {
|
|
221
|
+
return this.orderBy;
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
export {
|
|
226
|
+
Hyperlink,
|
|
227
|
+
Constants,
|
|
228
|
+
OdataBuilder
|
|
229
|
+
};
|
package/dist/index.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ interface ViewControlProps {
|
|
|
13
13
|
session?: any;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
declare const ViewControl:
|
|
16
|
+
declare const ViewControl: (props: ViewControlProps) => React__default.JSX.Element;
|
|
17
17
|
|
|
18
18
|
declare const ViewControlTypes: {
|
|
19
19
|
lineText: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ interface ViewControlProps {
|
|
|
13
13
|
session?: any;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
declare const ViewControl:
|
|
16
|
+
declare const ViewControl: (props: ViewControlProps) => React__default.JSX.Element;
|
|
17
17
|
|
|
18
18
|
declare const ViewControlTypes: {
|
|
19
19
|
lineText: string;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
"use strict";
|
|
4
2
|
var __create = Object.create;
|
|
5
3
|
var __defProp = Object.defineProperty;
|
|
@@ -2842,7 +2840,7 @@ var InputControlClient_exports = {};
|
|
|
2842
2840
|
__export(InputControlClient_exports, {
|
|
2843
2841
|
default: () => InputControlClient_default
|
|
2844
2842
|
});
|
|
2845
|
-
var import_react37, import_jsx_runtime46,
|
|
2843
|
+
var import_react37, import_jsx_runtime46, InputControl, InputControlClient_default;
|
|
2846
2844
|
var init_InputControlClient = __esm({
|
|
2847
2845
|
"src/components/controls/edit/InputControlClient.tsx"() {
|
|
2848
2846
|
"use strict";
|
|
@@ -2868,32 +2866,32 @@ var init_InputControlClient = __esm({
|
|
|
2868
2866
|
init_AssetUpload();
|
|
2869
2867
|
init_SwitchInput();
|
|
2870
2868
|
import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2871
|
-
|
|
2872
|
-
[InputControlType_default.lineTextInput]: LineTextInput_default,
|
|
2873
|
-
[InputControlType_default.emailInput]: EmailInput_default,
|
|
2874
|
-
[InputControlType_default.multilineTextInput]: MultilineTextInput_default,
|
|
2875
|
-
[InputControlType_default.moneyInput]: MoneyInput_default,
|
|
2876
|
-
[InputControlType_default.select]: Select_default,
|
|
2877
|
-
[InputControlType_default.percentageInput]: PercentageInput_default,
|
|
2878
|
-
[InputControlType_default.phoneInput]: PhoneInput_default,
|
|
2879
|
-
[InputControlType_default.numberInput]: NumberInput_default,
|
|
2880
|
-
[InputControlType_default.checkboxInput]: CheckboxInput_default,
|
|
2881
|
-
[InputControlType_default.otpInput]: OtpInput_default,
|
|
2882
|
-
[InputControlType_default.datetimeInput]: DateTimeInput_default,
|
|
2883
|
-
[InputControlType_default.colorInput]: ColorInput_default,
|
|
2884
|
-
[InputControlType_default.selectWithSearchInput]: SelectWithSearchInput_default,
|
|
2885
|
-
[InputControlType_default.selectWithSearchPanel]: SelectWithSearchPanel_default,
|
|
2886
|
-
[InputControlType_default.booleanSelect]: BooleanSelect_default,
|
|
2887
|
-
[InputControlType_default.timeInput]: TimeInput_default,
|
|
2888
|
-
[InputControlType_default.asset]: AssetUpload_default,
|
|
2889
|
-
[InputControlType_default.switchInput]: SwitchInput_default
|
|
2890
|
-
};
|
|
2891
|
-
InputControl = import_react37.default.memo(import_react37.default.forwardRef(
|
|
2869
|
+
InputControl = import_react37.default.forwardRef(
|
|
2892
2870
|
(props, ref) => {
|
|
2893
|
-
const
|
|
2871
|
+
const ControlComponents = {
|
|
2872
|
+
[InputControlType_default.lineTextInput]: LineTextInput_default,
|
|
2873
|
+
[InputControlType_default.emailInput]: EmailInput_default,
|
|
2874
|
+
[InputControlType_default.multilineTextInput]: MultilineTextInput_default,
|
|
2875
|
+
[InputControlType_default.moneyInput]: MoneyInput_default,
|
|
2876
|
+
[InputControlType_default.select]: Select_default,
|
|
2877
|
+
[InputControlType_default.percentageInput]: PercentageInput_default,
|
|
2878
|
+
[InputControlType_default.phoneInput]: PhoneInput_default,
|
|
2879
|
+
[InputControlType_default.numberInput]: NumberInput_default,
|
|
2880
|
+
[InputControlType_default.checkboxInput]: CheckboxInput_default,
|
|
2881
|
+
[InputControlType_default.otpInput]: OtpInput_default,
|
|
2882
|
+
[InputControlType_default.datetimeInput]: DateTimeInput_default,
|
|
2883
|
+
[InputControlType_default.colorInput]: ColorInput_default,
|
|
2884
|
+
[InputControlType_default.selectWithSearchInput]: SelectWithSearchInput_default,
|
|
2885
|
+
[InputControlType_default.selectWithSearchPanel]: SelectWithSearchPanel_default,
|
|
2886
|
+
[InputControlType_default.booleanSelect]: BooleanSelect_default,
|
|
2887
|
+
[InputControlType_default.timeInput]: TimeInput_default,
|
|
2888
|
+
[InputControlType_default.asset]: AssetUpload_default,
|
|
2889
|
+
[InputControlType_default.switchInput]: SwitchInput_default
|
|
2890
|
+
};
|
|
2891
|
+
const SelectedControlComponent = ControlComponents[props.controlType];
|
|
2894
2892
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react37.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SelectedControlComponent, { ...props }) : "Control not found" });
|
|
2895
2893
|
}
|
|
2896
|
-
)
|
|
2894
|
+
);
|
|
2897
2895
|
InputControl.displayName = "InputControl";
|
|
2898
2896
|
InputControlClient_default = InputControl;
|
|
2899
2897
|
}
|
|
@@ -4592,36 +4590,36 @@ var DateTimeVew_default = DateTimeView;
|
|
|
4592
4590
|
|
|
4593
4591
|
// src/components/controls/view/ViewControl.tsx
|
|
4594
4592
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
4595
|
-
var
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4593
|
+
var ViewControl = (props) => {
|
|
4594
|
+
const ControlComponents = {
|
|
4595
|
+
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
4596
|
+
[ViewControlTypes_default.emailText]: EmailTextView_default,
|
|
4597
|
+
[ViewControlTypes_default.asset]: Asset_default,
|
|
4598
|
+
[ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
|
|
4599
|
+
[ViewControlTypes_default.boolean]: BooleanView_default,
|
|
4600
|
+
[ViewControlTypes_default.checkboxInput]: BooleanView_default,
|
|
4601
|
+
// [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
|
|
4602
|
+
[ViewControlTypes_default.money]: MoneyView_default,
|
|
4603
|
+
[ViewControlTypes_default.date]: DateView_default,
|
|
4604
|
+
[ViewControlTypes_default.time]: DateView_default,
|
|
4605
|
+
[ViewControlTypes_default.datetime]: DateTimeVew_default,
|
|
4606
|
+
[ViewControlTypes_default.number]: NumberView_default,
|
|
4607
|
+
[ViewControlTypes_default.multilineText]: MultilineTextView_default,
|
|
4608
|
+
[ViewControlTypes_default.multilinetext]: MultilineTextView_default,
|
|
4609
|
+
[ViewControlTypes_default.moneyText]: MoneyView_default,
|
|
4610
|
+
[ViewControlTypes_default.percentage]: PercentageView_default,
|
|
4611
|
+
[ViewControlTypes_default.status]: StatusView_default,
|
|
4612
|
+
[ViewControlTypes_default.statusBg]: StatusBgView_default,
|
|
4613
|
+
[ViewControlTypes_default.progressIndicator]: ProgressIndicator_default,
|
|
4614
|
+
// [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
|
|
4615
|
+
// [ViewControlTypes.timeUntilStartsStyled]: TimeUntilStartsStyled,
|
|
4616
|
+
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default,
|
|
4617
|
+
[ViewControlTypes_default.booleanView]: BooleanView_default,
|
|
4618
|
+
[ViewControlTypes_default.text]: LineTextView_default
|
|
4619
|
+
};
|
|
4622
4620
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
4623
4621
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react15.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
4624
|
-
}
|
|
4622
|
+
};
|
|
4625
4623
|
var ViewControl_default = ViewControl;
|
|
4626
4624
|
|
|
4627
4625
|
// src/components/controls/edit/InputControl.tsx
|
|
@@ -7281,6 +7279,7 @@ var DataList = (props) => {
|
|
|
7281
7279
|
let orderBy = "";
|
|
7282
7280
|
let activePageNumber = 0;
|
|
7283
7281
|
let pages = 0;
|
|
7282
|
+
console.log(props.addLinkText);
|
|
7284
7283
|
const [isDataFound, setIsDataFound] = (0, import_react58.useState)(null);
|
|
7285
7284
|
const [searchTerm, setSearchTerm] = (0, import_react58.useState)(props.query?.searchTerm ?? "");
|
|
7286
7285
|
(0, import_react58.useEffect)(() => {
|
|
@@ -7331,6 +7330,7 @@ var DataList = (props) => {
|
|
|
7331
7330
|
name: updatedValues.name,
|
|
7332
7331
|
value: updatedValues.value
|
|
7333
7332
|
});
|
|
7333
|
+
console.log("ddddaaa", updatedValues.value);
|
|
7334
7334
|
let builder2 = new OdataBuilder(props.path);
|
|
7335
7335
|
builder2 = builder2.setQuery(props.query);
|
|
7336
7336
|
if (updatedValues.value != "" && updatedValues.value != null) {
|
|
@@ -7631,10 +7631,12 @@ var DataList = (props) => {
|
|
|
7631
7631
|
}) }) }),
|
|
7632
7632
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
|
|
7633
7633
|
let validityClass = "";
|
|
7634
|
+
console.log("dataitem", dataitem);
|
|
7634
7635
|
if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
|
|
7635
7636
|
validityClass = "bg-alert-200";
|
|
7636
7637
|
}
|
|
7637
7638
|
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
|
|
7639
|
+
console.log("column", column);
|
|
7638
7640
|
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react58.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
7639
7641
|
"td",
|
|
7640
7642
|
{
|
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-ELEHLGWS.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,48 +366,48 @@ 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-22GW4AD7.mjs"), {
|
|
372
370
|
ssr: false
|
|
373
371
|
});
|
|
374
372
|
var DateTimeVew_default = DateTimeView;
|
|
375
373
|
|
|
376
374
|
// src/components/controls/view/ViewControl.tsx
|
|
377
375
|
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
|
-
|
|
376
|
+
var ViewControl = (props) => {
|
|
377
|
+
const ControlComponents = {
|
|
378
|
+
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
379
|
+
[ViewControlTypes_default.emailText]: EmailTextView_default,
|
|
380
|
+
[ViewControlTypes_default.asset]: Asset_default,
|
|
381
|
+
[ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
|
|
382
|
+
[ViewControlTypes_default.boolean]: BooleanView_default,
|
|
383
|
+
[ViewControlTypes_default.checkboxInput]: BooleanView_default,
|
|
384
|
+
// [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
|
|
385
|
+
[ViewControlTypes_default.money]: MoneyView_default,
|
|
386
|
+
[ViewControlTypes_default.date]: DateView_default,
|
|
387
|
+
[ViewControlTypes_default.time]: DateView_default,
|
|
388
|
+
[ViewControlTypes_default.datetime]: DateTimeVew_default,
|
|
389
|
+
[ViewControlTypes_default.number]: NumberView_default,
|
|
390
|
+
[ViewControlTypes_default.multilineText]: MultilineTextView_default,
|
|
391
|
+
[ViewControlTypes_default.multilinetext]: MultilineTextView_default,
|
|
392
|
+
[ViewControlTypes_default.moneyText]: MoneyView_default,
|
|
393
|
+
[ViewControlTypes_default.percentage]: PercentageView_default,
|
|
394
|
+
[ViewControlTypes_default.status]: StatusView_default,
|
|
395
|
+
[ViewControlTypes_default.statusBg]: StatusBgView_default,
|
|
396
|
+
[ViewControlTypes_default.progressIndicator]: ProgressIndicator_default,
|
|
397
|
+
// [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
|
|
398
|
+
// [ViewControlTypes.timeUntilStartsStyled]: TimeUntilStartsStyled,
|
|
399
|
+
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default,
|
|
400
|
+
[ViewControlTypes_default.booleanView]: BooleanView_default,
|
|
401
|
+
[ViewControlTypes_default.text]: LineTextView_default
|
|
402
|
+
};
|
|
405
403
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
406
404
|
return /* @__PURE__ */ jsx14(React13.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx14(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
407
|
-
}
|
|
405
|
+
};
|
|
408
406
|
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) {
|
|
@@ -3022,6 +3020,7 @@ var DataList = (props) => {
|
|
|
3022
3020
|
let orderBy = "";
|
|
3023
3021
|
let activePageNumber = 0;
|
|
3024
3022
|
let pages = 0;
|
|
3023
|
+
console.log(props.addLinkText);
|
|
3025
3024
|
const [isDataFound, setIsDataFound] = useState2(null);
|
|
3026
3025
|
const [searchTerm, setSearchTerm] = useState2(props.query?.searchTerm ?? "");
|
|
3027
3026
|
useEffect3(() => {
|
|
@@ -3072,6 +3071,7 @@ var DataList = (props) => {
|
|
|
3072
3071
|
name: updatedValues.name,
|
|
3073
3072
|
value: updatedValues.value
|
|
3074
3073
|
});
|
|
3074
|
+
console.log("ddddaaa", updatedValues.value);
|
|
3075
3075
|
let builder2 = new OdataBuilder(props.path);
|
|
3076
3076
|
builder2 = builder2.setQuery(props.query);
|
|
3077
3077
|
if (updatedValues.value != "" && updatedValues.value != null) {
|
|
@@ -3372,10 +3372,12 @@ var DataList = (props) => {
|
|
|
3372
3372
|
}) }) }),
|
|
3373
3373
|
/* @__PURE__ */ jsx40("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
|
|
3374
3374
|
let validityClass = "";
|
|
3375
|
+
console.log("dataitem", dataitem);
|
|
3375
3376
|
if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
|
|
3376
3377
|
validityClass = "bg-alert-200";
|
|
3377
3378
|
}
|
|
3378
3379
|
return /* @__PURE__ */ jsx40("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
|
|
3380
|
+
console.log("column", column);
|
|
3379
3381
|
return /* @__PURE__ */ jsx40(React27.Fragment, { children: /* @__PURE__ */ jsx40(
|
|
3380
3382
|
"td",
|
|
3381
3383
|
{
|