@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260722101954

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.
Files changed (60) hide show
  1. package/dist/CopyButton-UPJPMJUB.mjs +57 -0
  2. package/dist/CopyButton-XONTQQW7.mjs +55 -0
  3. package/dist/DateTimeViewClient-22GW4AD7.mjs +14 -0
  4. package/dist/DateTimeViewClient-K5FE5VSN.mjs +14 -0
  5. package/dist/DateTimeViewClient-M7V35KUW.mjs +16 -0
  6. package/dist/DateTimeViewClient-R3M6ISVK.mjs +16 -0
  7. package/dist/DateViewClient-4CTEMOMJ.mjs +7 -0
  8. package/dist/DateViewClient-ELEHLGWS.mjs +7 -0
  9. package/dist/DateViewClient-JBS5UXMD.mjs +9 -0
  10. package/dist/DateViewClient-VLTRN47D.mjs +9 -0
  11. package/dist/EnterAnimationClient-4OKXLKSA.mjs +45 -0
  12. package/dist/EnterAnimationClient-ZN3NLFNO.mjs +47 -0
  13. package/dist/HlsPlayer-57543DTW.mjs +599 -0
  14. package/dist/HlsPlayer-5AWFZ2P6.mjs +601 -0
  15. package/dist/IframeClient-J22NMEVY.mjs +96 -0
  16. package/dist/IframeClient-RGJFZ5P2.mjs +98 -0
  17. package/dist/InputControlClient-7NS4QUWO.mjs +677 -0
  18. package/dist/InputControlClient-AZRPSTUZ.mjs +677 -0
  19. package/dist/InputControlClient-BUOYZNWQ.mjs +675 -0
  20. package/dist/InputControlClient-HIZOJLKW.mjs +677 -0
  21. package/dist/LinkNodeButton-AOEDCCL7.mjs +227 -0
  22. package/dist/LinkNodeButton-BIZA2NPE.mjs +225 -0
  23. package/dist/LinkNodeButton-LX3KKGZY.mjs +173 -0
  24. package/dist/LinkNodeButton-U7T2NP22.mjs +374 -0
  25. package/dist/Pagination-6OFACRMQ.mjs +229 -0
  26. package/dist/Pagination-NCJCOYHF.mjs +181 -0
  27. package/dist/Pagination-OQT7Q2XO.mjs +183 -0
  28. package/dist/Pagination-T7YN2OMV.mjs +183 -0
  29. package/dist/Slider-554BKC7N.mjs +322 -0
  30. package/dist/Slider-PEIVH6A5.mjs +320 -0
  31. package/dist/chunk-23WJE3YB.mjs +253 -0
  32. package/dist/chunk-3GWLDT7C.mjs +204 -0
  33. package/dist/chunk-3R4VVVNK.mjs +903 -0
  34. package/dist/chunk-56HSDML5.mjs +22 -0
  35. package/dist/chunk-5GHPW7SJ.mjs +111 -0
  36. package/dist/chunk-7ZFZLN56.mjs +903 -0
  37. package/dist/chunk-DBHUCH4B.mjs +109 -0
  38. package/dist/chunk-DKW4DXCU.mjs +120 -0
  39. package/dist/chunk-FI2KJBK2.mjs +110 -0
  40. package/dist/chunk-IMNQO57B.mjs +25 -0
  41. package/dist/chunk-JKP4XOZB.mjs +214 -0
  42. package/dist/chunk-OGGIS4AN.mjs +201 -0
  43. package/dist/chunk-RHVNJMS4.mjs +251 -0
  44. package/dist/chunk-SPRVN5IM.mjs +118 -0
  45. package/dist/chunk-TVL6KVD5.mjs +229 -0
  46. package/dist/chunk-UFKPTMM7.mjs +199 -0
  47. package/dist/chunk-WEV5U33G.mjs +207 -0
  48. package/dist/chunk-X3YSXTD2.mjs +201 -0
  49. package/dist/chunk-XG6SXZWP.mjs +115 -0
  50. package/dist/chunk-YBNWT4TV.mjs +123 -0
  51. package/dist/chunk-YG6FKKQJ.mjs +900 -0
  52. package/dist/index.d.mts +456 -0
  53. package/dist/index.d.ts +456 -0
  54. package/dist/index.js +8566 -0
  55. package/dist/index.mjs +4285 -0
  56. package/dist/server.d.mts +113 -0
  57. package/dist/server.d.ts +113 -0
  58. package/dist/server.js +5179 -0
  59. package/dist/server.mjs +2736 -0
  60. package/package.json +95 -0
@@ -0,0 +1,456 @@
1
+ import * as React from 'react';
2
+ import React__default from 'react';
3
+
4
+ interface ViewControlProps {
5
+ value?: any;
6
+ controlType?: string;
7
+ format?: string;
8
+ unit?: string;
9
+ width?: string;
10
+ apiBaseUrl?: string;
11
+ assetBaseUrl?: string;
12
+ customProps?: Record<string, unknown>;
13
+ session?: any;
14
+ }
15
+
16
+ declare const ViewControl: (props: ViewControlProps) => React__default.JSX.Element;
17
+
18
+ declare const ViewControlTypes: {
19
+ lineText: string;
20
+ emailText: string;
21
+ asset: string;
22
+ video: string;
23
+ multilineTextBullets: string;
24
+ boolean: string;
25
+ checkboxInput: string;
26
+ money: string;
27
+ date: string;
28
+ time: string;
29
+ datetime: string;
30
+ number: string;
31
+ multilineText: string;
32
+ multilinetext: string;
33
+ moneyText: string;
34
+ percentage: string;
35
+ status: string;
36
+ statusBg: string;
37
+ progressIndicator: string;
38
+ timeUntilStarts: string;
39
+ timeUntilStartsStyled: string;
40
+ aiGeneratedSummary: string;
41
+ booleanView: string;
42
+ text: string;
43
+ };
44
+
45
+ declare const InputControl: any;
46
+
47
+ declare const InputControlType: {
48
+ lineTextInput: string;
49
+ multilineTextInput: string;
50
+ emailInput: string;
51
+ moneyInput: string;
52
+ select: string;
53
+ percentageInput: string;
54
+ asset: string;
55
+ phoneInput: string;
56
+ numberInput: string;
57
+ checkboxInput: string;
58
+ otpInput: string;
59
+ datetimeInput: string;
60
+ timeInput: string;
61
+ colorInput: string;
62
+ selectWithSearchInput: string;
63
+ selectWithSearchPanel: string;
64
+ booleanSelect: string;
65
+ switchInput: string;
66
+ videoInput: string;
67
+ };
68
+
69
+ interface InputCallbackValues<T> {
70
+ name: keyof T;
71
+ value: T[keyof T];
72
+ index?: number;
73
+ groupKey?: string;
74
+ }
75
+ interface InputChangeCallback<T> {
76
+ (updatedValues: InputCallbackValues<T>): void;
77
+ }
78
+
79
+ interface ActionResponse$1<T> {
80
+ isSuccessful?: boolean;
81
+ message?: string;
82
+ errorNumber?: string;
83
+ result?: T;
84
+ }
85
+
86
+ interface QueryResponse<T> {
87
+ isSuccessful?: boolean;
88
+ message?: string;
89
+ errorNumber?: string;
90
+ result?: T[];
91
+ parent?: T;
92
+ count?: number;
93
+ data?: T[];
94
+ }
95
+
96
+ interface SingleResponse<T> {
97
+ isSuccessful?: boolean;
98
+ message?: string;
99
+ errorNumber?: string;
100
+ result?: T;
101
+ }
102
+
103
+ interface ServiceClientInterface {
104
+ baseUrl: string;
105
+ session: any;
106
+ post(path: string, data: any): Promise<ActionResponse$1<any>>;
107
+ get(path: string, params?: {
108
+ [key: string]: any;
109
+ }): Promise<QueryResponse<any>>;
110
+ getSingle<T>(path: string, params?: {
111
+ [key: string]: any;
112
+ }): Promise<SingleResponse<T>>;
113
+ }
114
+
115
+ interface InputControlProps {
116
+ name: string;
117
+ value?: string | null | number | boolean | undefined;
118
+ defaultValue?: string | number | readonly string[] | undefined;
119
+ index?: number;
120
+ groupKey?: string;
121
+ controlType: string;
122
+ callback?: InputChangeCallback<any>;
123
+ serviceClient?: ServiceClientInterface;
124
+ disable?: boolean;
125
+ dataSourceDependsOn?: string;
126
+ dependentValue?: string;
127
+ dataSource?: string | any;
128
+ dataKeyFieldName?: string;
129
+ dataTextFieldName?: string;
130
+ dataset?: any[];
131
+ assetsUploadPath?: string;
132
+ entityType?: string;
133
+ showAsLink?: boolean;
134
+ linkUrlSegment?: string;
135
+ uploadInSharedLocation?: boolean;
136
+ prefix?: string;
137
+ inputClasses?: string;
138
+ createFields?: any[];
139
+ isTenantColor?: boolean;
140
+ onChange?: (value: string | number | boolean | null) => void;
141
+ onBlur?: () => void;
142
+ attributes?: {
143
+ pattern?: string;
144
+ maxLength?: number;
145
+ minLength?: number;
146
+ maxValue?: number;
147
+ minValue?: number;
148
+ readOnly?: boolean;
149
+ disable?: boolean;
150
+ label?: string;
151
+ hintText?: string;
152
+ placeholder?: string;
153
+ required?: boolean;
154
+ errorMessage?: string;
155
+ helpText?: string;
156
+ autoFocus?: boolean;
157
+ heading?: string;
158
+ };
159
+ }
160
+
161
+ interface Session {
162
+ cid: string;
163
+ contactId?: number;
164
+ fullName?: string;
165
+ truncatedPhone?: string;
166
+ userCurrencyCode?: string;
167
+ marketCode?: string;
168
+ oAuthToken?: string;
169
+ refreshToken?: string;
170
+ }
171
+
172
+ interface PageBodyRendererProps {
173
+ rawBody?: string;
174
+ routeParameters?: {
175
+ [key: string]: unknown;
176
+ };
177
+ query?: {
178
+ [key: string]: string;
179
+ };
180
+ session: Session;
181
+ host: string;
182
+ path: string;
183
+ apiBaseUrl: string;
184
+ breadcrumb?: string;
185
+ donotApplyContainerClass?: boolean;
186
+ donotApplyContainerLargeClass?: boolean;
187
+ serviceClient?: ServiceClientInterface;
188
+ assetBaseUrl?: string;
189
+ device?: string;
190
+ widgetRenderer?: any;
191
+ }
192
+ declare const PageBodyRenderer: (props: PageBodyRendererProps) => React__default.JSX.Element;
193
+
194
+ declare function EnterAnimationHydrator(): null;
195
+
196
+ declare const Toast: () => React__default.JSX.Element;
197
+
198
+ declare class ToastService {
199
+ static initialize(showToast: (message: string, messageType: string) => void, closeToast: () => void): void;
200
+ static showError(message: string): void;
201
+ static showInfo(message: string): void;
202
+ static showWarning(message: string): void;
203
+ static showSuccess(message: string): void;
204
+ static close(): void;
205
+ }
206
+
207
+ declare const LineTextInput: React__default.FC<InputControlProps>;
208
+
209
+ declare const MultilineTextInput: React__default.FC<InputControlProps>;
210
+
211
+ declare enum StyleTypes {
212
+ Solid = "Primary",
213
+ Hollow = "PrimaryHollow",
214
+ Link = "Link"
215
+ }
216
+ interface ActionResponse<T> {
217
+ isSuccessful: boolean;
218
+ message?: string;
219
+ data?: T;
220
+ }
221
+
222
+ interface ButtonProps<T> {
223
+ oneTimeAction?: boolean;
224
+ onValidate?: () => Promise<boolean>;
225
+ onClick?: () => Promise<ActionResponse<T>>;
226
+ showToast?: boolean;
227
+ children: React__default.ReactNode;
228
+ ButtonType?: StyleTypes;
229
+ className?: string;
230
+ hideProgressIndicator?: boolean;
231
+ confirm?: boolean;
232
+ confirmationMessage?: string;
233
+ disabled?: boolean;
234
+ }
235
+ declare const Button: React__default.FC<ButtonProps<any>>;
236
+
237
+ declare const MoneyInput: React__default.FC<InputControlProps>;
238
+
239
+ declare const PercentageInput: React__default.FC<InputControlProps>;
240
+
241
+ declare const PhoneInput: React__default.FC<InputControlProps>;
242
+
243
+ declare const NumberInput: React__default.FC<InputControlProps>;
244
+
245
+ declare const CheckboxInput: React__default.FC<InputControlProps>;
246
+
247
+ declare const OtpInput: React__default.FC<InputControlProps>;
248
+
249
+ declare const DateTimeInput: React__default.FC<InputControlProps>;
250
+
251
+ declare const ColorInput: React__default.FC<InputControlProps>;
252
+
253
+ declare const BooleanSelect: React__default.FC<InputControlProps>;
254
+
255
+ declare const EmailInput: React__default.FC<InputControlProps>;
256
+
257
+ declare const TimeInput: React__default.FC<InputControlProps>;
258
+
259
+ interface TabItem {
260
+ tabTitle: string;
261
+ displayOrder: number;
262
+ landingPageUrl: string;
263
+ isActive: boolean;
264
+ }
265
+ interface NavigationTabsV2Props {
266
+ tabs: TabItem[];
267
+ params?: Record<string, any>;
268
+ }
269
+ declare const NavigationTabsV2: React__default.FC<NavigationTabsV2Props>;
270
+
271
+ interface DataListConfiguration<T> {
272
+ title?: string;
273
+ columns: DataListColumn[];
274
+ filters?: FilterColumn[];
275
+ path: string;
276
+ serviceClient?: ServiceClientInterface;
277
+ query?: {
278
+ [key: string]: string;
279
+ };
280
+ subTitle?: string;
281
+ dataset?: QueryResponse<any>;
282
+ addLinkHref?: string;
283
+ addLinkText?: string;
284
+ recordValidityColumnName?: string;
285
+ altLinkUrl?: string;
286
+ }
287
+ interface DataListColumn {
288
+ label: string;
289
+ name: string;
290
+ controlType: string;
291
+ enableSorting: boolean;
292
+ width: string;
293
+ format?: string;
294
+ showAsLink?: boolean;
295
+ linkUrlSegment?: string;
296
+ emptyValueLabel?: string;
297
+ addhref?: boolean;
298
+ customProps?: any;
299
+ isSearchable: boolean;
300
+ }
301
+ interface FilterColumn {
302
+ placeholder: string;
303
+ name: string;
304
+ servicePath: string;
305
+ dataTextFieldName: string;
306
+ dataKeyFieldName: string;
307
+ dataTypeCode: string;
308
+ }
309
+ declare const DataList: (props: DataListConfiguration<any>) => React__default.JSX.Element;
310
+
311
+ interface SiteFormData {
312
+ siteFormId: number;
313
+ siteId: number;
314
+ appId: number;
315
+ formTitle?: string;
316
+ siteFormTypeId: number;
317
+ siteFormType: SiteFormTypeData;
318
+ siteFormDataList: SiteFormDataListData;
319
+ siteFormDataForm: SiteFormDataFormData;
320
+ }
321
+ interface SiteFormTypeData {
322
+ siteFormTypeId: number;
323
+ siteFormTypeCode?: string;
324
+ siteFormTypeTitle?: string;
325
+ siteFormTypeThumbnail?: string;
326
+ siteFormTypeIcon?: string;
327
+ }
328
+ interface SiteFormDataListData {
329
+ siteFormDataListId: number;
330
+ siteFormId: number;
331
+ serviceRoute?: string;
332
+ addLinkHref?: string;
333
+ addLinkText?: string;
334
+ siteFormDataListColumns?: SiteFormDataListColumnData[];
335
+ siteFormDataListFilters?: SiteFormDataListFilterData[];
336
+ }
337
+ interface SiteFormDataListFilterData {
338
+ siteFormDataListFilterId: number;
339
+ siteFormDataListId: number;
340
+ placeholder?: string;
341
+ columnName?: string;
342
+ serviceRoute?: string;
343
+ dataTextFieldName?: string;
344
+ dataKeyFieldName?: string;
345
+ isKeyNumber: boolean;
346
+ }
347
+ interface SiteFormDataFormActionData {
348
+ siteFormDataFormActionId: number;
349
+ siteFormDataFormId: number;
350
+ actionCode?: string;
351
+ actionTitle?: string;
352
+ serviceRoute?: string;
353
+ httpMethod?: string;
354
+ returnRoute?: string;
355
+ }
356
+ interface SiteFormDataFormData {
357
+ entityIdParamName?: string;
358
+ actions?: SiteFormDataFormActionData[];
359
+ sections?: SiteFormDataFormSectionData[];
360
+ }
361
+ interface SiteFormDataFormSectionData {
362
+ siteFormDataFormSectionId: number;
363
+ siteFormDataFormId: number;
364
+ sectionTitle?: string;
365
+ sectionName?: string;
366
+ parentSectionName?: string;
367
+ isChildSection: boolean;
368
+ sectionRows?: SiteFormDataFormSectionRowData[];
369
+ }
370
+ interface SiteFormDataListColumnData {
371
+ siteFormDataListColumnId: number;
372
+ siteFormDataListId: number;
373
+ columnName?: string;
374
+ label?: string;
375
+ controlTypeCode?: string;
376
+ enableSorting: boolean;
377
+ format?: string;
378
+ showAsLink: boolean;
379
+ linkUrlSegment?: string;
380
+ emptyValueLabel?: string;
381
+ isSearchable: boolean;
382
+ }
383
+ interface SiteFormDataFormSectionRowData {
384
+ siteFormDataFormRowId: number;
385
+ siteFormDataFormSectionId: number;
386
+ grow?: boolean;
387
+ elements?: SiteFormDataFormSectionRowElementData[];
388
+ }
389
+ interface SiteFormDataFormSectionRowElementData {
390
+ siteFormDataFormRowElementId: number;
391
+ siteFormDataFormRowId: number;
392
+ name?: string;
393
+ label?: string;
394
+ controlTypeCode?: string;
395
+ required?: boolean;
396
+ readOnly?: boolean;
397
+ errorMessage?: string;
398
+ dataSource?: string;
399
+ dataTextFieldName?: string;
400
+ dataKeyFieldName?: string;
401
+ maxLength?: number;
402
+ minLength?: number;
403
+ maxValue?: number;
404
+ minValue?: number;
405
+ placeholder?: string;
406
+ hintText?: string;
407
+ helpText?: string;
408
+ autoFocus?: boolean;
409
+ }
410
+
411
+ interface DataListRendererProps {
412
+ formDefinition: SiteFormData;
413
+ apiBaseUrl: string;
414
+ session: any;
415
+ params: Record<string, any>;
416
+ tabs: any;
417
+ query: Record<string, any>;
418
+ path: string;
419
+ widgetProps?: any;
420
+ }
421
+ declare const DataListRenderer: ({ formDefinition, apiBaseUrl, session, params, tabs, query, path, widgetProps, }: DataListRendererProps) => React__default.JSX.Element;
422
+
423
+ interface FormState<T> {
424
+ inputValues: T;
425
+ lastPropertyChanged: string;
426
+ }
427
+
428
+ interface WidgetProps {
429
+ isPinned?: boolean;
430
+ widgetCode: string;
431
+ params: any;
432
+ query?: {
433
+ [key: string]: string;
434
+ };
435
+ session: Session;
436
+ host: string;
437
+ path: string;
438
+ apiBaseUrl: string;
439
+ }
440
+ interface DataFormRendererProps {
441
+ formDefinition: any;
442
+ dataItem: any;
443
+ tabs: any;
444
+ params: Record<string, any>;
445
+ apiBaseUrl: string;
446
+ session: any;
447
+ widgetProps: WidgetProps;
448
+ onSave: (formState: FormState<any>) => Promise<ActionResponse<any>>;
449
+ onDelete: (formState: FormState<any>) => Promise<ActionResponse<any>>;
450
+ onCancelAdd: (formState: FormState<any>) => Promise<ActionResponse<any>>;
451
+ isAddPage: boolean;
452
+ entityId?: string;
453
+ }
454
+ declare const DataFormRenderer: ({ formDefinition, dataItem, params, tabs, apiBaseUrl, session, widgetProps, onSave, onDelete, onCancelAdd, isAddPage, entityId, }: DataFormRendererProps) => React.JSX.Element | null;
455
+
456
+ export { type ActionResponse$1 as ActionResponse, BooleanSelect, Button, CheckboxInput, ColorInput, DataFormRenderer, DataList, DataListRenderer, DateTimeInput, EmailInput, EnterAnimationHydrator, InputControl, type InputControlProps, InputControlType, LineTextInput, MoneyInput, MultilineTextInput, NavigationTabsV2, NumberInput, OtpInput, PageBodyRenderer, PercentageInput, PhoneInput, StyleTypes, TimeInput, Toast, ToastService, ViewControl, type ViewControlProps, ViewControlTypes };