@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260722071904 → 0.8.1-dev.20260722072521

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.mjs CHANGED
@@ -1,6 +1,8 @@
1
+ "use client";
2
+
1
3
  import {
2
4
  OdataBuilder
3
- } from "./chunk-UFKPTMM7.mjs";
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-YG6FKKQJ.mjs";
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-DBHUCH4B.mjs";
28
+ } from "./chunk-5GHPW7SJ.mjs";
27
29
  import {
28
30
  ServiceClient_default
29
- } from "./chunk-3GWLDT7C.mjs";
31
+ } from "./chunk-WEV5U33G.mjs";
30
32
  import {
31
33
  Button_default,
32
34
  ClientButton_default,
33
35
  ToastService_default
34
- } from "./chunk-RHVNJMS4.mjs";
35
- import "./chunk-56HSDML5.mjs";
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-ELEHLGWS.mjs"), {
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-57543DTW.mjs"), { ssr: false });
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,48 +368,48 @@ 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-22GW4AD7.mjs"), {
371
+ var DateTimeView = dynamic3(() => import("./DateTimeViewClient-R3M6ISVK.mjs"), {
370
372
  ssr: false
371
373
  });
372
374
  var DateTimeVew_default = DateTimeView;
373
375
 
374
376
  // src/components/controls/view/ViewControl.tsx
375
377
  import { jsx as jsx14 } from "react/jsx-runtime";
376
- var ControlComponents = {
377
- [ViewControlTypes_default.lineText]: LineTextView_default,
378
- [ViewControlTypes_default.emailText]: EmailTextView_default,
379
- [ViewControlTypes_default.asset]: Asset_default,
380
- [ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
381
- [ViewControlTypes_default.boolean]: BooleanView_default,
382
- [ViewControlTypes_default.checkboxInput]: BooleanView_default,
383
- // [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
384
- [ViewControlTypes_default.money]: MoneyView_default,
385
- [ViewControlTypes_default.date]: DateView_default,
386
- [ViewControlTypes_default.time]: DateView_default,
387
- [ViewControlTypes_default.datetime]: DateTimeVew_default,
388
- [ViewControlTypes_default.number]: NumberView_default,
389
- [ViewControlTypes_default.multilineText]: MultilineTextView_default,
390
- [ViewControlTypes_default.multilinetext]: MultilineTextView_default,
391
- [ViewControlTypes_default.moneyText]: MoneyView_default,
392
- [ViewControlTypes_default.percentage]: PercentageView_default,
393
- [ViewControlTypes_default.status]: StatusView_default,
394
- [ViewControlTypes_default.statusBg]: StatusBgView_default,
395
- [ViewControlTypes_default.progressIndicator]: ProgressIndicator_default,
396
- // [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
397
- // [ViewControlTypes.timeUntilStartsStyled]: TimeUntilStartsStyled,
398
- [ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default,
399
- [ViewControlTypes_default.booleanView]: BooleanView_default,
400
- [ViewControlTypes_default.text]: LineTextView_default
401
- };
402
- var ViewControl = React13.memo((props) => {
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
+ };
403
405
  const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
404
406
  return /* @__PURE__ */ jsx14(React13.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx14(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
405
- });
407
+ };
406
408
  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-5RK7QDZZ.mjs"), {
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-57543DTW.mjs"), { ssr: false });
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-BIZA2NPE.mjs"), {
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-XONTQQW7.mjs"), {
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-J22NMEVY.mjs"), {
1194
+ var IframeClient = dynamic8(() => import("./IframeClient-RGJFZ5P2.mjs"), {
1193
1195
  ssr: false
1194
1196
  });
1195
1197
  var EmbedNode = (props) => {
@@ -1425,7 +1427,7 @@ var NoDataFound_default = NoDataFound;
1425
1427
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
1426
1428
  import dynamic9 from "next/dynamic";
1427
1429
  import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
1428
- var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-57543DTW.mjs"), { ssr: false });
1430
+ var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
1429
1431
  var deviceToMediaQuery = (device) => {
1430
1432
  switch (device) {
1431
1433
  case "lg":
@@ -2240,8 +2242,8 @@ var DocumentNode_default = DocumentNode;
2240
2242
 
2241
2243
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
2242
2244
  import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
2243
- var Pagination = dynamic10(() => import("./Pagination-NCJCOYHF.mjs"), { ssr: true });
2244
- var Slider = dynamic10(() => import("./Slider-PEIVH6A5.mjs"), {
2245
+ var Pagination = dynamic10(() => import("./Pagination-T7YN2OMV.mjs"), { ssr: true });
2246
+ var Slider = dynamic10(() => import("./Slider-554BKC7N.mjs"), {
2245
2247
  ssr: false
2246
2248
  });
2247
2249
  function toCamelCase(str) {
@@ -3020,6 +3022,7 @@ var DataList = (props) => {
3020
3022
  let orderBy = "";
3021
3023
  let activePageNumber = 0;
3022
3024
  let pages = 0;
3025
+ console.log(props.addLinkText);
3023
3026
  const [isDataFound, setIsDataFound] = useState2(null);
3024
3027
  const [searchTerm, setSearchTerm] = useState2(props.query?.searchTerm ?? "");
3025
3028
  useEffect3(() => {
@@ -3070,6 +3073,7 @@ var DataList = (props) => {
3070
3073
  name: updatedValues.name,
3071
3074
  value: updatedValues.value
3072
3075
  });
3076
+ console.log("ddddaaa", updatedValues.value);
3073
3077
  let builder2 = new OdataBuilder(props.path);
3074
3078
  builder2 = builder2.setQuery(props.query);
3075
3079
  if (updatedValues.value != "" && updatedValues.value != null) {
@@ -3370,10 +3374,12 @@ var DataList = (props) => {
3370
3374
  }) }) }),
3371
3375
  /* @__PURE__ */ jsx40("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
3372
3376
  let validityClass = "";
3377
+ console.log("dataitem", dataitem);
3373
3378
  if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
3374
3379
  validityClass = "bg-alert-200";
3375
3380
  }
3376
3381
  return /* @__PURE__ */ jsx40("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
3382
+ console.log("column", column);
3377
3383
  return /* @__PURE__ */ jsx40(React27.Fragment, { children: /* @__PURE__ */ jsx40(
3378
3384
  "td",
3379
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 };
@@ -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 };