nexus-admin 1.0.1

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.
@@ -0,0 +1,1010 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React$1, { JSX } from 'react';
3
+
4
+ declare enum ENexusModules {
5
+ None = 0,
6
+ Migrations = 1,// 1 | 1
7
+ Configuration = 2,// 2 | 2
8
+ Identity = 4,// 3 | 4
9
+ Enterprise = 8,// 4 | 8
10
+ Drive = 16,// 5 | 16
11
+ Message = 32,// 6 | 32
12
+ Accounting = 64,// 7 | 64
13
+ Report = 128,// 8 | 128
14
+ Portfolio = 256,// 9 | 256
15
+ Subscription = 512,// 10 | 512
16
+ Reservation = 1024
17
+ }
18
+ declare enum EPreferenceTargets {
19
+ Company = 1,// 1
20
+ Branch = 2,// 2
21
+ User = 4,// 4
22
+ Application = 8,// 8
23
+ Compiler = 16
24
+ }
25
+
26
+ declare const CreateUpdatePreference: (target: EPreferenceTargets, key: string, value: string | null) => Promise<void>;
27
+
28
+ declare const DEFAULT_ICON_ELEMENT_NAME = "ion-icon";
29
+ declare const DEFAULT_SMALL_ICON_BOX_SIZE: number;
30
+ declare enum EIconTypes {
31
+ OUTLINED = "-outline",
32
+ SHARP = "-sharp",
33
+ FILLED = ""
34
+ }
35
+ declare enum EIcons {
36
+ COPYRIGHT = "copyright",
37
+ WOMAN = "woman",
38
+ MAN = "man",
39
+ AT = "at",
40
+ BRIEFCASE = "briefcase",
41
+ LOCK_CLOSED = "lock-closed",
42
+ BOOKMARK = "bookmark",
43
+ CODE_WORKING = "code-working",
44
+ BOOKMARKS = "bookmarks",
45
+ READER = "reader",
46
+ SHARE_SOCIAL = "share-social",
47
+ ALERT_CIRCLE = "alert-circle",
48
+ SEND = "send",
49
+ FOOTBALL = "football",
50
+ BALLOON = "balloon",
51
+ SCHOOL = "school",
52
+ WALK = "walk",
53
+ GAME_CONTROLLER = "game-controller",
54
+ WATER = "water",
55
+ NOTIFICATIONS = "notifications",
56
+ LANGUAGE = "language",
57
+ CUBE = "cube",
58
+ FLAME = "flame",
59
+ BED = "bed",
60
+ DOCUMENT = "document",
61
+ START = "star",
62
+ CALENDAR = "calendar",
63
+ START_HALF = "star-half",
64
+ PEOPLE = "people",
65
+ MEGAPHONE = "megaphone",
66
+ SETTINGS = "settings",
67
+ PERSON_ADD = "person-add",
68
+ ANALYTICS = "analytics",
69
+ HOURGLASS = "hourglass",
70
+ STATS_CHART = "stats-chart",
71
+ GRID = "grid",
72
+ HEART = "heart",
73
+ CART = "cart",
74
+ REPEAT = "repeat",
75
+ HOME = "home",
76
+ WALLET = "wallet",
77
+ RELOAD = "reload",
78
+ CASH = "cash",
79
+ IMAGES = "images",
80
+ IMAGE = "image",
81
+ LOCK_OPEN = "lock-open",
82
+ CHATBOT_ELLIPSES = "chatbox-ellipses",
83
+ LOCATION = "location",
84
+ BUSINESS = "business",
85
+ CONSTRUCT = "construct",
86
+ CALENDER_NUMBER = "calendar-number",
87
+ HEART_CIRCLE = "heart-circle",
88
+ PERSON = "person",
89
+ CALL = "call",
90
+ FLAG = "flag",
91
+ TRANSGENDER = "transgender",
92
+ CARD = "card",
93
+ ID_CARD = "id-card",
94
+ MAIL = "mail",
95
+ MAIL_UNREAD = "mail-unread",
96
+ KEY = "key",
97
+ CREATE = "create",
98
+ MENU = "menu",
99
+ ARCHIVE = "archive",
100
+ ELLIPSIS_HORIZONTAL = "ellipsis-horizontal",
101
+ CHEVRON_DOWN = "chevron-down",
102
+ ARROW_FORWARD = "arrow-forward",
103
+ CHECKMARK_DOUBLE = "checkmark-done",
104
+ CLOSE = "close",
105
+ WARNING = "warning",
106
+ INFORMATION = "information",
107
+ HELP = "help",
108
+ HELP_CIRCLE = "help-circle",
109
+ TRASH_BIN = "trash-bin",
110
+ CLOUD_DOWNLOAD = "cloud-download",
111
+ CLOUD_UPLOAD = "cloud-upload",
112
+ EXIT = "exit",
113
+ CAMERA = "camera",
114
+ SUNNY = "sunny",
115
+ MOON = "moon",
116
+ COLOR_PALETTE = "color-palette",
117
+ RESIZE = "resize",
118
+ EXPAND = "expand",
119
+ REMOVE = "remove",
120
+ EYE = "eye",
121
+ OPTIONS = "options",
122
+ SEARCH = "search",
123
+ LIST = "list",
124
+ TRASH = "trash",
125
+ ADD = "add",
126
+ ADD_CIRCLE = "add-circle",
127
+ CARET_DOWN = "caret-down",
128
+ CARET_UP = "caret-up",
129
+ FUNNEL = "funnel",
130
+ BARBELL = "barbell",
131
+ DESKTOP = "desktop",
132
+ BUILD = "build",
133
+ BULB = "bulb",
134
+ NEWSPAPER = "newspaper",
135
+ CODE_SLASH = "code-slash",
136
+ GLOBE = "globe",
137
+ LEAF = "leaf",
138
+ REFRESH = "refresh",
139
+ LOGIN = "log-in",
140
+ SAVE = "save",
141
+ STOREFRONT = "storefront",
142
+ TEXT = "text",
143
+ LOGO_GOOGLE = "logo-google",
144
+ LOGO_FACEBOOK = "logo-facebook",
145
+ LOGO_INSTAGRAM = "logo-instagram",
146
+ LOGO_TIKTOK = "logo-tiktok",
147
+ LOGO_LINKEDIN = "logo-linkedin",
148
+ LOGO_GITHUB = "logo-github",
149
+ LOGO_TWITTER = "logo-twitter",
150
+ LOGO_WHATSAPP = "logo-whatsapp",
151
+ LOGO_YOUTUBE = "logo-youtube"
152
+ }
153
+
154
+ declare const UTILITIES_BUTTON_PREFIX = "btn-utility-";
155
+ declare const GetUtilityMenuCode: (utilityCode: string) => string;
156
+ declare enum EMenuTargets {
157
+ ClientModule = 1,// 1
158
+ PublicAdminModule = 2,// 2
159
+ AdminModule = 4
160
+ }
161
+ declare enum EMenuVisibility {
162
+ GuestOnly = 1,// 1
163
+ AuthenticatedOnly = 2
164
+ }
165
+ interface IMenuBase {
166
+ id?: string | number;
167
+ menuVisibilities: EMenuVisibility;
168
+ menuName: string;
169
+ menuCode: string;
170
+ menuIcon: EIcons;
171
+ menuTooltip?: string;
172
+ displayOrder: number;
173
+ }
174
+ type IUtilityMenu = IMenuBase;
175
+ interface IPanelMenu extends IMenuBase {
176
+ groupOrder: number;
177
+ menuUrl?: string;
178
+ defaultValue?: string;
179
+ }
180
+ interface IClientMenu extends IMenuBase {
181
+ menuUrl: string;
182
+ documentTitle: string;
183
+ pageTitle: string;
184
+ breadcrumbTitle?: string;
185
+ }
186
+
187
+ declare const GetClientMenus: () => Promise<IClientMenu[]>;
188
+ declare const GetUtilityMenus: () => Promise<IUtilityMenu[]>;
189
+ declare const GetUserPanels: () => Promise<IPanelMenu[]>;
190
+
191
+ declare enum EActionMethods {
192
+ Get = 1,
193
+ Post = 2,
194
+ Put = 3,
195
+ Delete = 4
196
+ }
197
+ interface IApiInformations {
198
+ api: string;
199
+ method: EActionMethods;
200
+ }
201
+ interface IGetApiInformations extends IApiInformations {
202
+ cacheCode?: string;
203
+ /** In Minutes */
204
+ cacheLifetime?: number;
205
+ }
206
+
207
+ interface IAccessAction {
208
+ controllerName: string;
209
+ actionName: string;
210
+ actionMethod: EActionMethods;
211
+ nexusModule: ENexusModules;
212
+ }
213
+
214
+ declare const DEFAULT_THEME_NAME = "light";
215
+ declare enum EBackgroundColors {
216
+ Background1 = "var(--B1)",
217
+ Background2 = "var(--B2)",
218
+ Background3 = "var(--B3)",
219
+ SuccessColor = "var(--B10)",
220
+ WarningColor = "var(--B11)",
221
+ InfoColor = "var(--B12)",
222
+ ErrorColor = "var(--B13)",
223
+ PrimaryColor = "var(--B20)",
224
+ BorderColor = "var(--B30)",
225
+ BoxShadowColor = "var(--B41)",
226
+ PopupBackgroundColor = "var(--B51)",
227
+ AlwaysDarkBackgroundColor = "var(--B52)",
228
+ ThemeColor100 = "var(--B100)",
229
+ ThemeColor200 = "var(--B200)",
230
+ ThemeColor400 = "var(--B400)",
231
+ ThemeColor600 = "var(--B600)",
232
+ ThemeColor800 = "var(--B800)",
233
+ ThemeColor950 = "var(--B950)"
234
+ }
235
+ declare enum EBackgrounds {
236
+ None = "no-background",
237
+ Background1 = "bg1",
238
+ Background2 = "bg2",
239
+ Background3 = "bg3",
240
+ SuccessColor = "bg10",
241
+ WarningColor = "bg11",
242
+ InfoColor = "bg12",
243
+ ErrorColor = "bg13",
244
+ PrimaryColor = "bg20",
245
+ BorderColor = "bg30",
246
+ BoxShadowColor = "bg41",
247
+ PopupBackgroundColor = "bg51",
248
+ AlwaysDarkBackgroundColor = "bg52",
249
+ ThemeColor100 = "bg100",
250
+ ThemeColor200 = "bg200",
251
+ ThemeColor400 = "bg400",
252
+ ThemeColor600 = "bg600",
253
+ ThemeColor800 = "bg800",
254
+ ThemeColor950 = "bg950"
255
+ }
256
+ /** Color divided into 4 parts: background, hover, focus, text */
257
+ interface IThemeColors {
258
+ C1: string;
259
+ C2: string;
260
+ C3: string;
261
+ C10: string;
262
+ C11: string;
263
+ C12: string;
264
+ C13: string;
265
+ C20: string;
266
+ /** Border Color 1 */
267
+ C30: string;
268
+ /** Box Shadow Color 1 */
269
+ C41: string;
270
+ /** Popup/Model Background Color 1 */
271
+ C51: string;
272
+ /** Always Dark Background Color 1 */
273
+ C52: string;
274
+ /** Theme Color 100 */
275
+ C100: string;
276
+ /** Theme Color 200 */
277
+ C200: string;
278
+ /** Theme Color 400 */
279
+ C400: string;
280
+ /** Theme Color 600 */
281
+ C600: string;
282
+ /** Theme Color 800 */
283
+ C800: string;
284
+ /** Theme Color 950 */
285
+ C950: string;
286
+ }
287
+ interface IThemeInformation {
288
+ displayName: string;
289
+ systemName: string;
290
+ displayOrder: number;
291
+ icon: EIcons;
292
+ themeColors: IThemeColors;
293
+ isSystemTheme: boolean;
294
+ }
295
+ declare const DEFAULT_THEME_INFORMATIONS: IThemeInformation[];
296
+
297
+ declare const ROOT_LOADER_IDENTITY = "root-loader";
298
+ declare const DEFAULT_FONT_WEIGHTS: string[];
299
+ declare const DEFAULT_ANIMATION_DURATION = 300;
300
+ declare const COLUMN_SIZE_ATTRIBUTE_KEY = "data-column-size";
301
+ declare enum EFontWeights {
302
+ /** Light:300 */
303
+ LIGHT = "300",
304
+ /** Regular:400 */
305
+ REGULAR = "400",
306
+ /** Medium:500 */
307
+ MEDIUM = "500",
308
+ /** Semi Bold:600 */
309
+ SEMI_BOLD = "600",
310
+ /** Bold:700 */
311
+ BOLD = "700",
312
+ /** Extra Bold:800 */
313
+ EXTRA_BOLD = "800"
314
+ }
315
+ interface IGlobalLayout {
316
+ /** Document Title */
317
+ defaultDocumentTitle: string;
318
+ /** Document Description */
319
+ defaultDocumentDescription: string;
320
+ /** Document Keywords LIKE: "nexus, solutions, software, development" */
321
+ defaultDocumentKeywords: string[];
322
+ /** Is admin or client layout? */
323
+ isAdminLayout: boolean;
324
+ /** Access actions */
325
+ accessActions?: IAccessAction[];
326
+ /** System themes */
327
+ systemThemes: IThemeInformation[];
328
+ /** Should menu be dark? */
329
+ shouldMenuDark: boolean;
330
+ }
331
+ declare const GetGlobalLayout: (defaultDocumentTitle: string, defaultDocumentDescription: string, defaultDocumentKeywords: string[]) => IGlobalLayout;
332
+ /** Keyframe / class string names for CSS `animation-name` or matching utility classes. */
333
+ declare enum EAnimations {
334
+ FADE_IN = "fadeIn",
335
+ FADE_OUT = "fadeOut",
336
+ FADE_IN_OUT = "fadeInOut",
337
+ /** Vertical motion loop only (no enter/exit variant). */
338
+ BOUNCE = "bounce",
339
+ PULSE_IN = "pulseIn",
340
+ PULSE_OUT = "pulseOut",
341
+ PULSE_IN_OUT = "pulseInOut",
342
+ /** Circular border loop; theme border-top tint cycles like a loader. */
343
+ SPIN = "spin",
344
+ /** Indeterminate track: segment sweeps left → right (e.g. form submitting). */
345
+ SLIDE_BAR = "slideBar",
346
+ /** Segment starts at 0, travels to the far wall, reverses back (two-wall bounce). */
347
+ BOUNCE_BAR = "bounceBar"
348
+ }
349
+ /** Short utility classes applied with `className`. */
350
+ declare enum EAnimationClasses {
351
+ FADE_IN = "an-fa",
352
+ FADE_OUT = "an-fo",
353
+ FADE_IN_OUT = "an-fio",
354
+ BOUNCE = "an-bounce",
355
+ PULSE_IN = "an-pi",
356
+ PULSE_OUT = "an-po",
357
+ PULSE_IN_OUT = "an-pio",
358
+ SPIN = "an-spin",
359
+ SLIDE_BAR = "an-sbar",
360
+ BOUNCE_BAR = "an-bbar"
361
+ }
362
+ declare enum ESizes {
363
+ VeryTiny = "xxs",
364
+ Tiny = "xs",
365
+ VerySmall = "ssm",
366
+ Small = "sm",
367
+ Normal = "nr",
368
+ Medium = "med",
369
+ Large = "lg",
370
+ ExtraLarge = "xl",
371
+ VeryExtraLarge = "xxl",
372
+ FullSize = "fs"
373
+ }
374
+ declare enum EBadgeTypes {
375
+ Dot = "dot",
376
+ Count = "count"
377
+ }
378
+ declare enum EOpacity {
379
+ O05 = "o05",
380
+ O06 = "o06",
381
+ O07 = "o07",
382
+ O08 = "o08",
383
+ O09 = "o09",
384
+ FULL = "o1",
385
+ NONE = "o0"
386
+ }
387
+ declare enum EPositions {
388
+ Left = "left",
389
+ Right = "right",
390
+ Top = "top",
391
+ Bottom = "bottom",
392
+ Center = "center"
393
+ }
394
+ declare enum ETextPositions {
395
+ Left = "tl",
396
+ Right = "tr",
397
+ Center = "tc"
398
+ }
399
+ declare enum EFlexPositions {
400
+ Left = "jl",
401
+ Right = "jr",
402
+ Center = "jc"
403
+ }
404
+
405
+ type UN = undefined | null;
406
+ type U = undefined;
407
+ type N = null;
408
+ type SUN = undefined | null | string;
409
+ type CallbackHandler<PARAM, RETURN> = (param?: PARAM) => RETURN;
410
+ type ClickHandler = (event: React.MouseEvent<HTMLElement> | Event | UN, element?: HTMLElement | UN, data?: any | UN, index?: number | UN) => void;
411
+ type EmptyClickHandler = () => void;
412
+ type StringCallbackHandler = CallbackHandler<string, string>;
413
+ type StringNullCallbackHandler = CallbackHandler<string | UN, string | UN>;
414
+ type NumberCallbackHandler = CallbackHandler<number, number>;
415
+ type NumberNullCallbackHandler = CallbackHandler<number | UN, number | UN>;
416
+ type BooleanCallbackHandler = CallbackHandler<boolean, boolean>;
417
+ type BooleanNullCallbackHandler = CallbackHandler<boolean | UN, boolean | UN>;
418
+ type ObjectCallbackHandler<T> = CallbackHandler<T, T>;
419
+ type ObjectNullCallbackHandler<T> = CallbackHandler<T | UN, T | UN>;
420
+ type ArrayCallbackHandler<T> = CallbackHandler<T[], T[]>;
421
+ type ArrayNullCallbackHandler<T> = CallbackHandler<T[] | UN, T[] | UN>;
422
+ type VoidCallbackHandler = CallbackHandler<void, void>;
423
+ interface IInterface {
424
+ }
425
+
426
+ declare const DEFAULT_BUTTON_CLASS: (column?: number | UN, padding?: number | UN, borderSize?: number | UN, background?: EBackgrounds | UN, defaultClass?: string | UN, needColumnSize?: boolean | UN) => string;
427
+ declare const DEFAULT_LINK_BUTTON_STYLE: React.CSSProperties;
428
+ declare enum ETargets {
429
+ Blank = "_blank",
430
+ Self = "_self",
431
+ Parent = "_parent",
432
+ Top = "_top"
433
+ }
434
+ declare enum EButtonTypes {
435
+ BUTTON = "button",
436
+ SUBMIT = "submit"
437
+ }
438
+ interface IButton {
439
+ label?: string | StringCallbackHandler | string | UN;
440
+ id?: string | UN;
441
+ icon?: EIcons | UN;
442
+ onClick?: ClickHandler | UN;
443
+ url?: string | UN;
444
+ background?: EBackgrounds | UN;
445
+ defaultClass?: string | UN;
446
+ displayOrder?: number | UN;
447
+ data?: any | Event | UN;
448
+ iconType?: EIconTypes | UN;
449
+ iconSize?: ESizes | UN;
450
+ columnSize?: number | UN;
451
+ borderSize?: number | UN;
452
+ target?: ETargets | UN;
453
+ }
454
+ declare const GetButton: (label?: string | StringCallbackHandler | string | UN, id?: string | UN, url?: string | UN, icon?: EIcons | UN, onClick?: ClickHandler | UN, data?: any | Event | UN, background?: EBackgrounds | UN, defaultClass?: string | UN, displayOrder?: number | UN, iconType?: EIconTypes | UN, iconSize?: ESizes | UN, columnSize?: number | UN, borderSize?: number | UN, target?: ETargets | UN) => IButton;
455
+
456
+ declare const SET_BUTTON_ACTIVE_CLASS: (isActive: boolean, element: HTMLElement, overrideColor?: EBackgroundColors | null, overrideActive?: string) => void;
457
+ declare const Button: ({ button, buttonType, styles, needColumnSize }: {
458
+ button: IButton;
459
+ buttonType?: EButtonTypes;
460
+ styles?: React$1.CSSProperties | UN;
461
+ needColumnSize?: boolean | UN;
462
+ }) => react_jsx_runtime.JSX.Element;
463
+ declare const CreateButton: (param: IButton, parent?: HTMLElement | UN, styles?: React$1.CSSProperties | UN, needColumnSize?: boolean | UN) => HTMLAnchorElement | HTMLButtonElement;
464
+ declare const Buttons: ({ buttons, buttonStyles, padding, border, maxHeight, boxDefaultClass, needColumnSize, pt }: {
465
+ buttons: IButton[];
466
+ padding?: number;
467
+ buttonStyles?: React$1.CSSProperties | UN;
468
+ border?: number;
469
+ maxHeight?: number;
470
+ boxDefaultClass?: string;
471
+ needColumnSize?: boolean;
472
+ pt?: number;
473
+ }) => react_jsx_runtime.JSX.Element;
474
+ declare const CreateButtons: (buttons: IButton[], parent?: HTMLElement | UN, buttonStyles?: React$1.CSSProperties | UN, columns?: number | UN, padding?: number | UN, border?: number | UN, maxHeight?: number | UN, boxDefaultClass?: string | UN, needColumnSize?: boolean | UN) => HTMLDivElement | undefined;
475
+ interface ILinkButtonProps {
476
+ url: string;
477
+ label: string;
478
+ defaultClass?: string | UN;
479
+ linkDefaultClass?: string | UN;
480
+ onClicked?: ClickHandler | UN;
481
+ borderBottom?: boolean | UN;
482
+ background?: EBackgrounds | UN;
483
+ target?: ETargets | UN;
484
+ position?: EFlexPositions | UN;
485
+ }
486
+ declare const LinkButton: ({ url, label, defaultClass, linkDefaultClass, onClicked, borderBottom, background, target, position }: Readonly<ILinkButtonProps>) => react_jsx_runtime.JSX.Element;
487
+ declare const CreateLinkButton: (parent: HTMLElement | UN, url: string, label: string, onClicked?: ClickHandler | UN, defaultClass?: string | UN, linkDefaultClass?: string | UN, borderBottom?: boolean | UN, background?: EBackgrounds | UN, target?: ETargets | UN, position?: EFlexPositions | UN) => HTMLParagraphElement;
488
+
489
+ interface IIconBoxProps {
490
+ icon: EIcons;
491
+ children?: React$1.ReactNode | UN;
492
+ id?: string | UN;
493
+ iconType?: EIconTypes | UN;
494
+ iconSize?: ESizes | UN;
495
+ boxSize?: ESizes | UN;
496
+ background?: EBackgrounds | UN;
497
+ defaultClass?: string | UN;
498
+ iconDefaultClass?: string | UN;
499
+ badgeType?: EBadgeTypes | UN;
500
+ badgeCount?: number | UN;
501
+ iconOpacity?: EOpacity;
502
+ title?: string | UN;
503
+ dataKeys?: {
504
+ key: string;
505
+ val: string;
506
+ }[] | UN;
507
+ makeRound?: boolean | UN;
508
+ boxStyle?: React$1.CSSProperties | UN;
509
+ onClicked?: ClickHandler | UN;
510
+ onMouseEnter?: ClickHandler | UN;
511
+ disabledHoverEffect?: boolean | UN;
512
+ }
513
+ interface IIconProps {
514
+ icon: EIcons;
515
+ type?: EIconTypes | UN;
516
+ size?: ESizes | UN;
517
+ defaultClass?: string | UN;
518
+ opacity?: EOpacity | UN;
519
+ style?: React$1.CSSProperties | UN;
520
+ }
521
+ declare const Icon: ({ icon, type, size, style, defaultClass, opacity }: IIconProps) => JSX.Element;
522
+ declare const CreateIcon: (icon: EIcons, parent?: HTMLElement | UN, type?: EIconTypes | UN, size?: ESizes | UN, defaultClass?: string | UN, opacity?: EOpacity | UN, style?: React$1.CSSProperties | UN) => HTMLElement;
523
+ declare const Iconbox: ({ children, id, icon, iconType, iconSize, boxSize, background, defaultClass, iconDefaultClass, badgeType, badgeCount, iconOpacity, title, dataKeys, makeRound, boxStyle, onClicked, onMouseEnter, disabledHoverEffect }: Readonly<IIconBoxProps>) => JSX.Element;
524
+ declare const CreateIconBox: (icon: EIcons, parent?: HTMLElement | UN, children?: HTMLElement | UN, id?: string | UN, iconType?: EIconTypes | UN, background?: EBackgrounds | UN, boxSize?: ESizes | UN, iconSize?: ESizes | UN, defaultClass?: string | UN, iconDefaultClass?: string | UN, badgeType?: EBadgeTypes | UN, badgeCount?: number | UN, iconOpacity?: EOpacity | UN, title?: string | UN, dataKeys?: {
525
+ key: string;
526
+ val: string;
527
+ }[] | UN, makeRound?: boolean | UN, boxStyle?: React$1.CSSProperties | UN, onClicked?: ClickHandler | UN, onMouseEnter?: ClickHandler | UN, disabledHoverEffect?: boolean | UN) => HTMLElement;
528
+ declare const CreateToggleButton: (parentElement?: HTMLElement | null, children?: HTMLElement | UN, id?: string, boxSize?: ESizes | null, iconSize?: ESizes | null, opacity?: EOpacity | UN, iconType?: EIconTypes | null, boxBackground?: EBackgrounds) => HTMLElement;
529
+
530
+ declare const GLOBAL_PAGE_TITLE_CLASS: (defaultClass?: string, borderBottom?: number, marginBottom?: number, paddingBottom?: number) => string;
531
+ declare const PageTitle: ({ title, defaultClass, borderBottom, marginBottom }: {
532
+ title: string;
533
+ defaultClass?: string;
534
+ borderBottom?: number;
535
+ marginBottom?: number;
536
+ }) => react_jsx_runtime.JSX.Element;
537
+
538
+ declare const THEME_MENU_ELIPSE_BTN_ID = "theme-menu-ellipse-btn";
539
+ declare function CreateTabButtons<T>(buttons: IButton[], parent: HTMLElement | null, activeButton?: IButton | null, onClicked?: ClickHandler): HTMLElement | null;
540
+ declare const TabButtons: ({ buttons, activeButton, onClicked }: {
541
+ buttons: IButton[];
542
+ activeButton?: string | null | Function;
543
+ onClicked?: ClickHandler;
544
+ }) => react_jsx_runtime.JSX.Element;
545
+
546
+ type DatasourceTypes = any[] | IApiInformations | IJoining | IGetApiInformations;
547
+ interface IJoiningKey {
548
+ /** someting we do not need from just need only TOs
549
+ * LIKE: City case,
550
+ * City have , Cityname, Countryname, CountryCode so, we do not need FROMs, we need only TOs
551
+ */
552
+ from?: string;
553
+ to: string;
554
+ status?: string;
555
+ }
556
+ interface IJoining {
557
+ /** Root Client side ID KEY */
558
+ rootFrom: string;
559
+ /** Root Servier side ID KEY */
560
+ rootTo: string;
561
+ joinings: IJoiningKey[];
562
+ /** Comes From Server */
563
+ apiInformation: IGetApiInformations;
564
+ }
565
+
566
+ type OnRenderTableData = (data: any, object: any, index: number, tr: HTMLElement | null, td: HTMLElement | null, isDatatable?: boolean) => any;
567
+ interface IColumn {
568
+ systemName: string;
569
+ displayName: string;
570
+ displayOrder: number;
571
+ isVisible: boolean;
572
+ isSearchable: boolean;
573
+ isSortable: boolean;
574
+ render?: OnRenderTableData;
575
+ defaultWidth?: number | string;
576
+ minWidth?: string | number;
577
+ maxWidth?: string | number;
578
+ joining?: IJoining;
579
+ defaultClass?: string;
580
+ childColumns?: IColumn[];
581
+ rowSpan?: number;
582
+ colSpan: number;
583
+ columnSize?: number;
584
+ isSerialNumber: boolean;
585
+ allowResize: boolean;
586
+ }
587
+
588
+ type OnInputChangeHandler<T> = (currentValue: T, isInitilizing: boolean, isForcedChanged: boolean, isDisposed: boolean, inputKey: string, dataSource?: any | any[]) => void;
589
+ type OnElementLoad = (inputBox: HTMLElement | null, inputWrapper: HTMLElement | null, isInitilizing: boolean, isForcedChanged: boolean, isDisposed: boolean, currentKey: string, index: number) => void;
590
+ type AutoCompletes = "on" | "off";
591
+ type ForceChangeDefaultValue<T> = (defaultValue: T, type?: EValueChangeTypes, invokeOnChanged?: boolean | UN) => boolean;
592
+ type OnFormChangeHandler = (currentValue: any, isInitilizing: boolean, isForcedChanged: boolean, isDisposed: boolean, currentKey: string, index: number, type?: EValueChangeTypes, dataSource?: any | any[]) => void;
593
+ declare const DEFAULT_INPUT_BACKGROUND = EBackgrounds.Background1;
594
+ declare const MAX_INPUT_TYPE = 1900;
595
+ declare const DEFAULT_INPUT_BORDER_SIZE = 1;
596
+ declare const DEFAULT_TEXTAREA_ROWS = 3;
597
+ declare const REQUIRED_TEXT1 = "\u2732";
598
+ declare enum EValueChangeTypes {
599
+ Default = 0,
600
+ ForceChanged = 1,
601
+ FormCleared = 2,
602
+ FormReset = 3,
603
+ Disposed = 4
604
+ }
605
+ declare enum ERegexs {
606
+ Fullname = "^[A-Za-z]+(?: [A-Za-z]+)*[0-9]?$",
607
+ Username = "^[A-Za-z0-9]{7,30}$",
608
+ ContactNumber = "^[0-9]{10}$",
609
+ /** Allow Null */
610
+ ContactNumber_NULL = "^$|^[0-9]{10}$",
611
+ Email = "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$",
612
+ /** Allow Null */
613
+ Email_NULL = "^$|^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$",
614
+ EmailUsername = "^(?=.*[a-zA-Z0-9])[a-zA-Z0-9]+@[a-zA-Z0-9]+\\.[a-zA-Z]{2,}$|[a-zA-Z0-9]{8,100}$",
615
+ Password = "^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*()_+{}|:,.<>?/~]).{8,30}$",
616
+ EmailUsernameContact = "^(?:[A-Za-z]+[A-Za-z0-9]{2,30}|[0-9]{10}|[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,})$",
617
+ Hexadecimal = "^[0-9A-Fa-f]{8}$",
618
+ ContactEmail = "^(?:[0-9]{10}|[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,})$"
619
+ }
620
+ declare enum EInputTypes {
621
+ Textbox = 1,
622
+ Textarea = 5,
623
+ Texteditor = 10,
624
+ Timepicker = 15,
625
+ Datepicker = 20,
626
+ Datetimepicker = 25,
627
+ DateRangepicker = 30,
628
+ DatetimeRangepicker = 35,
629
+ SingleSelection = 40,
630
+ MultiSelection = 45,
631
+ Checkbox = 50,
632
+ Radiobox = 55,
633
+ Radiogroup = 60,
634
+ Number = 65,
635
+ TabularForm = 70,
636
+ InputForm = 75,
637
+ Range = 80,
638
+ Slider = 85,
639
+ LinkButton = 2000,
640
+ HtmlElement = 3000,
641
+ FormTitle = 4000,
642
+ SubmitButton = 5000
643
+ }
644
+ interface IInputIcon {
645
+ icon: EIcons;
646
+ iconSize?: ESizes | UN;
647
+ boxSize?: ESizes | UN;
648
+ opacity?: EOpacity | UN;
649
+ type?: EIconTypes | UN;
650
+ background?: EBackgrounds | UN;
651
+ onClicked?: ClickHandler | UN;
652
+ onMouseEnter?: ClickHandler | UN;
653
+ }
654
+ interface IInputRootParameters<T> extends IInterface {
655
+ id: string;
656
+ inputType: EInputTypes;
657
+ columnSize: number;
658
+ displayOrder: number;
659
+ borderSize: number;
660
+ background?: EBackgrounds | UN;
661
+ inputSize?: ESizes | UN;
662
+ defaultClass?: string | UN;
663
+ autoAdjustColumn?: boolean | UN;
664
+ icon?: IInputIcon | UN;
665
+ parentKey?: string;
666
+ defaultValue?: T | UN;
667
+ onChanged?: OnInputChangeHandler<T> | UN;
668
+ placeholder?: string | UN;
669
+ label?: string | UN;
670
+ }
671
+ interface IInputBaseParameters<T> extends IInputRootParameters<T> {
672
+ validatorKey?: string | UN;
673
+ isRequired: boolean;
674
+ autoComplete?: AutoCompletes | UN;
675
+ isReadonly?: boolean | UN;
676
+ }
677
+ interface IElement extends IInputRootParameters<void> {
678
+ onLoad?: OnElementLoad | UN;
679
+ }
680
+ interface IInputParameters<T> extends IInputBaseParameters<T> {
681
+ minLength?: number | UN;
682
+ maxLength?: number | UN;
683
+ }
684
+ interface ILinkbutton extends IElement {
685
+ href: string;
686
+ onClicked?: ClickHandler | UN;
687
+ borderBottom?: boolean | UN;
688
+ opacity?: EOpacity | UN;
689
+ position?: EFlexPositions | UN;
690
+ target?: ETargets | UN;
691
+ }
692
+ interface ISubmitbutton extends IElement {
693
+ onClicked?: ClickHandler | UN;
694
+ type?: EButtonTypes | UN;
695
+ }
696
+ interface ITextbox extends IInputParameters<string | null> {
697
+ isPassword?: boolean | UN;
698
+ regexKey?: ERegexs | UN;
699
+ }
700
+ interface ISlider extends IInputParameters<number | null> {
701
+ step?: number | UN;
702
+ showTitleOnTop?: boolean | UN;
703
+ }
704
+ interface ICheckbox extends IInputBaseParameters<boolean | any> {
705
+ checkedValue?: any | UN;
706
+ groupId?: string | UN;
707
+ }
708
+ interface IRadiobox extends ICheckbox {
709
+ }
710
+ interface ITextarea extends IInputParameters<string | null> {
711
+ isShowPreview?: boolean | UN;
712
+ rows?: number | UN;
713
+ regexKey?: ERegexs | UN;
714
+ }
715
+ interface INumber extends IInputParameters<number | null> {
716
+ floatingPoint?: number | UN;
717
+ isAutoAdjust?: boolean | UN;
718
+ step?: number | string | UN;
719
+ }
720
+ interface IDate extends IInputBaseParameters<string | Date | null> {
721
+ minDate?: Date | string | UN;
722
+ maxDate?: Date | string | UN;
723
+ }
724
+ interface ISelection extends IInputBaseParameters<any | any[] | null> {
725
+ isSearchable: boolean | UN;
726
+ valueKey: string | UN;
727
+ labelKey: string | UN;
728
+ selectedLabel?: string | UN;
729
+ columnName?: string | UN;
730
+ dataSource: DatasourceTypes | UN;
731
+ onSelectionChanged?: OnInputChangeHandler<any | any[] | null> | UN;
732
+ columns?: IColumn[] | UN;
733
+ minDialogWidth?: number | UN;
734
+ bitwiseEnum?: any | UN;
735
+ }
736
+ interface ITablularForm extends IInputParameters<any[]> {
737
+ inputs: IInputRootParameters<any>[];
738
+ disabledAdd?: boolean | UN;
739
+ disabledRemove?: boolean | UN;
740
+ }
741
+ interface IInputCreateResults {
742
+ input: IInputRootParameters<any>;
743
+ /** This is input element like: textbox, textarea, checkbox */
744
+ inputElement: HTMLElement;
745
+ /** input element base parent like: formGroup/formWrapper */
746
+ rootElement: HTMLElement;
747
+ forceChangeDefaultValue: ForceChangeDefaultValue<any> | null;
748
+ dispose: (invokeOnChanged?: boolean | UN) => void;
749
+ onParentChanged?: OnFormChangeHandler | UN;
750
+ }
751
+ interface IForm {
752
+ inputs: IInputRootParameters<any>[];
753
+ onChanged: OnFormChangeHandler;
754
+ index: number;
755
+ isTabularForm: boolean;
756
+ parentIdentifier: HTMLElement | UN | string;
757
+ defaultValue?: any | UN;
758
+ }
759
+ interface IFormCreateResults {
760
+ inputResults: IInputCreateResults[];
761
+ formElement: HTMLElement;
762
+ dispose: (invokeOnChanged?: boolean) => void;
763
+ forceChangeDefaultValue: ForceChangeDefaultValue<any> | null;
764
+ }
765
+ declare const GetForms: {
766
+ FORM: (inputs: IInputRootParameters<any>[], parentIdentifier: HTMLElement | string | UN, onChanged: OnFormChangeHandler, defaultValue?: any, index?: number, isTabularForm?: boolean) => IForm;
767
+ };
768
+ declare const GetInputs: {
769
+ ICON: (icon: EIcons, iconSize?: ESizes | UN, boxSize?: ESizes | UN, opacity?: EOpacity | UN, type?: EIconTypes | UN, background?: EBackgrounds | UN, onClicked?: ClickHandler | UN, onMouseEnter?: ClickHandler | UN) => IInputIcon;
770
+ TEXTBOX: (id: string, columnSize: number, displayOrder: number, label?: string | UN, placeholder?: string | UN, validatorKey?: string | UN, minLength?: number | UN, maxLength?: number | UN, regexKey?: ERegexs | UN, isPassword?: boolean | UN, isReadonly?: boolean | UN, isAutoComplete?: boolean | UN, defaultValue?: string | UN, background?: EBackgrounds | UN, borderSize?: number | UN, inputSize?: ESizes | UN, icon?: IInputIcon | UN, defaultClass?: string | UN, onChanged?: OnInputChangeHandler<string | null> | UN) => ITextbox;
771
+ TEXTAREA: (id: string, columnSize: number, displayOrder: number, label?: string | UN, placeholder?: string | UN, validatorKey?: string | UN, minLength?: number | UN, maxLength?: number | UN, rows?: number | UN, isShowPreview?: boolean | UN, defaultValue?: string | UN, regexKey?: ERegexs | UN, isReadonly?: boolean | UN, isAutoComplete?: boolean | UN, background?: EBackgrounds | UN, borderSize?: number | UN, inputSize?: ESizes | UN, icon?: IInputIcon | UN, defaultClass?: string | UN, onChanged?: OnInputChangeHandler<string | null> | UN) => ITextarea;
772
+ NUMBER: (id: string, columnSize: number, displayOrder: number, label?: string | UN, placeholder?: string | UN, validatorKey?: string | UN, floatingPoint?: number | UN, isAutoAdjust?: boolean | UN, step?: number | string | UN, minLength?: number | UN, maxLength?: number | UN, defaultValue?: number | UN, isAutoComplete?: boolean | UN, background?: EBackgrounds | UN, borderSize?: number | UN, inputSize?: ESizes | UN, icon?: IInputIcon | UN, isReadonly?: boolean | UN, defaultClass?: string | UN, onChanged?: OnInputChangeHandler<number | null> | UN) => INumber;
773
+ CHECKBOX: (id: string, columnSize: number, displayOrder: number, label?: string | UN, defaultValue?: boolean | UN, groupId?: string | UN, checkedValue?: any | UN, isAutoComplete?: boolean | UN, background?: EBackgrounds | UN, borderSize?: number | UN, inputSize?: ESizes | UN, icon?: IInputIcon | UN, isRequired?: boolean | UN, isReadonly?: boolean | UN, defaultClass?: string | UN, onChanged?: OnInputChangeHandler<boolean | any | null> | UN) => ICheckbox;
774
+ RADIOBOX: (id: string, columnSize: number, displayOrder: number, label?: string | UN, defaultValue?: boolean | UN, groupId?: string | UN, checkedValue?: any | UN, isAutoComplete?: boolean | UN, background?: EBackgrounds | UN, borderSize?: number | UN, inputSize?: ESizes | UN, icon?: IInputIcon | UN, isRequired?: boolean | UN, isReadonly?: boolean | UN, defaultClass?: string | UN, onChanged?: OnInputChangeHandler<boolean | any | null> | UN) => ICheckbox;
775
+ LINKBUTTON: (id: string, columnSize: number, displayOrder: number, href: string, label?: string | UN, onClicked?: ClickHandler | UN, onLoad?: OnElementLoad | UN, borderBottom?: boolean | UN, opacity?: EOpacity | UN, position?: EFlexPositions | UN, target?: ETargets | UN, background?: EBackgrounds | UN, borderSize?: number | UN, inputSize?: ESizes | UN, defaultClass?: string | UN) => ILinkbutton;
776
+ BUTTON: (id: string, columnSize: number, displayOrder: number, label?: string | UN, onClicked?: ClickHandler | UN, type?: EButtonTypes | UN, onLoad?: OnElementLoad | UN, background?: EBackgrounds | UN, borderSize?: number | UN, inputSize?: ESizes | UN, defaultClass?: string | UN, icon?: IInputIcon | UN) => ISubmitbutton;
777
+ };
778
+
779
+ declare const CreateCheckbox: (param: ICheckbox, parentElement: HTMLElement | null, isTabular: boolean) => IInputCreateResults;
780
+
781
+ declare function CreateInput(param: ITextbox | ISlider | ICheckbox | ITextarea | INumber): HTMLTextAreaElement | HTMLInputElement;
782
+ declare const CreateInputs: (inputs: IInputRootParameters<any>[], onChanged: OnFormChangeHandler, index: number, isTabularForm: boolean, parentElement: HTMLElement | null, defaultValue?: any) => IInputCreateResults[];
783
+ declare const DisposeInputs: (inputs: IInputCreateResults[] | UN, invokeOnChanged?: boolean) => void;
784
+
785
+ declare const CreateInputBox: (param: IInputRootParameters<any>, child: HTMLElement | null, parent: HTMLElement | null, isTabular: boolean) => HTMLDivElement;
786
+ declare const CreateInputWrapper: (param: IInputRootParameters<any>, child: HTMLElement | null, parent: HTMLElement | null) => HTMLDivElement;
787
+
788
+ declare const CreateElement: (param: IElement, parentElement: HTMLElement | null, isTabular: boolean) => IInputCreateResults;
789
+ declare const CreateInputLink: (param: ILinkbutton, parentElement: HTMLElement | null, isTabular: boolean) => IInputCreateResults;
790
+ declare const CreateInputButton: (param: ISubmitbutton, parentElement: HTMLElement | null, isTabular: boolean) => IInputCreateResults;
791
+
792
+ declare const CreateForm: (param: IForm, rowGap?: number) => IFormCreateResults | null;
793
+ declare const Form: ({ param, rowGap }: {
794
+ param: IForm;
795
+ rowGap?: number;
796
+ }) => React$1.ReactNode;
797
+
798
+ declare const CreateNumber: (param: INumber, parentElement: HTMLElement | null, isTabular?: boolean) => IInputCreateResults;
799
+
800
+ declare const CreateRadiobox: (param: IRadiobox, parentElement: HTMLElement | null, isTabular: boolean, isCheckbox?: boolean) => IInputCreateResults;
801
+
802
+ declare const CreateTextarea: (param: ITextarea, parentElement: HTMLElement | null, isTabular?: boolean) => IInputCreateResults;
803
+
804
+ declare const CreateTextbox: (param: ITextbox, parentElement: HTMLElement | null, isTabular?: boolean) => IInputCreateResults;
805
+
806
+ interface IDialogboxResults {
807
+ visibility: (isVisible: boolean, isInitial?: boolean) => void;
808
+ isValid: () => boolean;
809
+ destroy: () => void;
810
+ }
811
+
812
+ declare const DEFAULT_DIALOGBOX_HOVER_EFFECT_DELAY = 500;
813
+ /**
814
+ *
815
+ * @param children
816
+ * @param position
817
+ * @param buttonIdentity
818
+ * @param background
819
+ * @param defaultWidth The default width of the dialog box (in REM units).
820
+ * @param defaultPadding
821
+ * @param iggnoreChildClick
822
+ * @param isFixedHeight
823
+ * @param defaultClass
824
+ * @param preferTopWhenEnoughSpace
825
+ *
826
+ * @returns
827
+ */
828
+ interface IDialogboxProps {
829
+ children: React$1.ReactNode;
830
+ hoverEffectDelay?: number | boolean;
831
+ position?: EPositions;
832
+ buttonIdentity: string;
833
+ background?: EBackgrounds;
834
+ defaultWidth?: number;
835
+ defaultPadding?: number;
836
+ autoAdjuctPosition?: boolean;
837
+ iggnoreChildClick?: boolean;
838
+ isFixedHeight?: boolean;
839
+ preferTopWhenEnoughSpace?: boolean;
840
+ defaultClass?: string;
841
+ }
842
+ declare const GlobalDialogbox: ({ children, hoverEffectDelay, position, buttonIdentity, background, defaultWidth, defaultPadding, iggnoreChildClick, isFixedHeight, defaultClass, preferTopWhenEnoughSpace }: Readonly<IDialogboxProps>) => react_jsx_runtime.JSX.Element;
843
+ declare const InitializeDialogbox: (triggerElement: HTMLElement, affectedElement: HTMLElement, hoverEffectDelay?: number | boolean, defaultHeight?: string, defaultPadding?: number, defaultWidth?: number, background?: EBackgrounds, onVisibilityChanged?: (isVisible: boolean) => void, onDisposed?: () => void, iggnoreChildClick?: boolean, position?: EPositions, defaultClass?: string, preferTopWhenEnoughSpace?: boolean, targetInput?: HTMLTextAreaElement | HTMLInputElement | UN, isAutoHideInInitialization?: boolean) => IDialogboxResults | null;
844
+
845
+ declare const GlobalLayout: ({ children, globalLayout }: Readonly<{
846
+ children: React$1.ReactNode;
847
+ globalLayout: IGlobalLayout;
848
+ }>) => Promise<react_jsx_runtime.JSX.Element>;
849
+
850
+ declare const LayoutHelpers: ({ globalLayout }: Readonly<{
851
+ globalLayout: IGlobalLayout;
852
+ }>) => react_jsx_runtime.JSX.Element;
853
+
854
+ declare const BUTTON_IDENTITY: (isneedPrefix: boolean) => {
855
+ PROFILE_BOX: string;
856
+ SEARCH_BOX: string;
857
+ FAVORITE_BOX: string;
858
+ CARD_BOX: string;
859
+ THEME_BOX: string;
860
+ MEGA_BOX: string;
861
+ SIGN_IN_BUTTON: string;
862
+ SIGN_OUT_BUTTON: string;
863
+ };
864
+ declare const UtilityMenu: ({ utilityMenus, userPanels, column, paddingRight, globalLayout, iconBoxBackground }: Readonly<{
865
+ utilityMenus: IUtilityMenu[];
866
+ userPanels: IPanelMenu[];
867
+ column?: number;
868
+ paddingRight?: number;
869
+ globalLayout: IGlobalLayout;
870
+ iconBoxBackground: EBackgrounds;
871
+ }>) => react_jsx_runtime.JSX.Element;
872
+ declare const ProfilePanel: ({ globalLayout, userPanels, boxBackground }: Readonly<{
873
+ globalLayout: IGlobalLayout;
874
+ userPanels: IPanelMenu[];
875
+ boxBackground?: EBackgrounds;
876
+ }>) => JSX.Element;
877
+
878
+ declare const ThemePanel: () => react_jsx_runtime.JSX.Element;
879
+
880
+ declare function HasFlag(state: number, flag: number): boolean;
881
+ declare function BitwiseToList<T>(enumType: any, bitwiseValue: number): T[];
882
+ declare function ListToBitwise(values: number[]): number;
883
+
884
+ type DebouncedFunction<T extends (...args: any[]) => void> = ((...args: Parameters<T>) => void) & {
885
+ cancel: () => void;
886
+ executeImmediately: (...args: Parameters<T>) => void;
887
+ };
888
+ declare function Debounce<T extends (...args: any[]) => void>(func: T, delay?: number): DebouncedFunction<T>;
889
+
890
+ declare enum EKeys {
891
+ TAB = "Tab",
892
+ DELETE = "Delete",
893
+ ENTER = "Enter",
894
+ ESCAPE = "Escape",
895
+ SPACE = " ",
896
+ BACKSPACE = "Backspace",
897
+ ARROW_UP = "ArrowUp",
898
+ ARROW_DOWN = "ArrowDown",
899
+ ARROW_LEFT = "ArrowLeft",
900
+ ARROW_RIGHT = "ArrowRight",
901
+ A = "a",
902
+ B = "b",
903
+ C = "c",
904
+ D = "d",
905
+ DOT = "."
906
+ }
907
+ declare enum EKeyModifier {
908
+ None = 0,
909
+ Shift = 1,// 1
910
+ Ctrl = 2,// 2
911
+ Alt = 4
912
+ }
913
+
914
+ declare const IsBrowser: () => boolean;
915
+ declare const RemoveElement: (elementIdentity: string | HTMLElement, timeout?: number, animation?: EAnimationClasses) => Promise<boolean>;
916
+ declare const SetDocumentTitleDebounce: DebouncedFunction<(title?: string) => string | false>;
917
+ declare const ConvertRemToPixels: (rem: number) => number;
918
+ declare const ConvertPixelsToRem: (px: number) => number;
919
+ declare const IsKeyPressed: (event: any, key: EKeys | string, modifier?: EKeyModifier) => boolean;
920
+ declare const IsValidURL: (url?: string | null) => boolean;
921
+ declare const FindChildElement: (parent: HTMLElement, childSelector: string, shouldScanAllChildren?: boolean) => Element | null;
922
+ declare const FindChildElements: (parent: HTMLElement, childSelector: string, shouldScanAllChildren?: boolean) => NodeListOf<Element> | Element[];
923
+
924
+ declare function GetVisibleAndHiddenItems<T>(allItems: T[], visibleRef: T[], hiddenRef: T[], activeItem: T | undefined, maxVisibleCount: number): {
925
+ visibleItems: T[];
926
+ hiddenItems: T[];
927
+ };
928
+ declare function DynamicSorting<T>(data: T[], key: keyof T, isAsc: boolean): T[];
929
+ declare function CreateClone<T>(data: T | T[], index?: number, object?: T): T | T[];
930
+ declare const SearchDatasourceUsingColumns: (dataSource: any[], searchText: string | null, columns: IColumn[]) => any[];
931
+
932
+ declare function RenderChildren<T>(parentContainer: HTMLElement, elementList: HTMLElement[], toggleButton: HTMLElement, activeItem: T | UN, visibleItems: T[], hiddenItems: T[], createItem: (item: T) => HTMLElement, refreshElementClass: (element: HTMLElement, activeItem: T | UN) => void, isInit: boolean, isHiddenItemClicked: boolean, dataUniqueKey: string, dataAttributeKey: string): void;
933
+ declare const SetElementStyles: (element: HTMLElement, styles: React.CSSProperties | UN) => void;
934
+
935
+ declare const GetParentKey: (parentKey?: string | null) => string | undefined;
936
+ declare const GetInputId: (param: IInputRootParameters<any>) => string;
937
+ declare const GetInputClasses: (size?: ESizes | UN, cls?: string | UN) => string;
938
+ declare const SetHaveValueClass: (input: HTMLElement, isHaveValue: boolean) => void;
939
+ declare const ForceSetValues: (inputs: IInputCreateResults[] | UN, keys: string[] | UN, value: any | null, timeout?: number | UN, invokeOnChanged?: boolean | UN) => void;
940
+ declare const ForceSetValue: (input?: IInputCreateResults | null, value?: any | null, timeout?: number | UN, invokeOnChanged?: boolean | UN) => void;
941
+
942
+ declare const ConvertToCode: (text: string | UN) => string | null;
943
+ declare const IsNullOrEmpty: (value?: string | null) => boolean;
944
+ declare function MakeFirstLetterUpperCase(str?: string): string | undefined;
945
+ declare const GetRandomNumber: (min?: number, max?: number) => number;
946
+ declare const GetRandomString: (length?: number, includeNumbers?: boolean, includeSpecialChars?: boolean) => string;
947
+ declare function PadStart(value: string | number | null | undefined, targetLength: number, padString?: string): string;
948
+
949
+ declare const LOCAL_STORAGE_KEYS: {
950
+ ACTIVE_THEME: string;
951
+ };
952
+
953
+ declare const ShowLoader: (parent?: String | HTMLElement | UN, type?: EAnimationClasses | UN, disabledInputs?: boolean | UN, size?: ESizes | UN, delay?: number | UN, showLogo?: boolean | UN, background?: EBackgrounds | UN) => Promise<HTMLElement | null>;
954
+ /**
955
+ * Hide loader if it is visible
956
+ * @param parent - Parent element to hide loader from
957
+ * @param type - Animation type to use for hiding loader
958
+ * @param force - This will dispose all loader elements
959
+ * @param delay - Delay in milliseconds
960
+ */
961
+ declare const HideLoader: (parent?: String | HTMLElement | UN, force?: boolean | UN, delay?: number | UN) => Promise<boolean>;
962
+
963
+ declare const SetLocalStorage: (key: string, value: string, isSyncWithServer?: boolean, target?: EPreferenceTargets) => void;
964
+ declare const RemoveLocalStorage: (key: string, isSyncWithServer?: boolean, target?: EPreferenceTargets) => void;
965
+ declare function GetLocalStorage(key: string): string | null;
966
+ declare const SetCurrentTheme: (themeCode: string) => void;
967
+ declare const GetCurrentTheme: () => IThemeInformation;
968
+ declare const GetCurrentThemeName: () => string;
969
+
970
+ declare const InitializeStyles: () => void;
971
+ declare const SwitchTheme: (themeCode: string) => boolean;
972
+
973
+ interface IGlobalObject {
974
+ systemThemes?: IThemeInformation[];
975
+ accessActions?: IAccessAction[];
976
+ isAdminModule?: boolean;
977
+ }
978
+ declare const NEXUS_OBJECT: (systemThemes: IThemeInformation[], access?: IAccessAction[], isAdminModule?: boolean) => IGlobalObject;
979
+ declare const O: IGlobalObject;
980
+
981
+ declare const APIS: {
982
+ DRIVE: string;
983
+ };
984
+ declare const FILES: {
985
+ LOGO: {
986
+ ICON: string;
987
+ FULL: string;
988
+ FULL_TEXT: string;
989
+ };
990
+ };
991
+ declare const NEXUS_INFO: {
992
+ CURRENT_MODULE: ENexusModules | undefined;
993
+ CURRENT_MODULE_NAME: string | undefined;
994
+ CURRENT_MODULE_SHORT_NAME: string | undefined;
995
+ IS_PRODUCTION: boolean;
996
+ SOFTWARE_COMPANY_SHORT_NAME: string;
997
+ SOFTWARE_COMPANY_FULL_NAME: string;
998
+ SOFTWARE_VERSION: string | undefined;
999
+ SOFTWARE_LAST_UPDATE_DATE: string | undefined;
1000
+ SOFTWARE_COMPANY_WEBSITE: string;
1001
+ };
1002
+ declare const NEXUS_CONFIG: {
1003
+ /** Default revalidate time for static generation (in minutes) */
1004
+ DEFAULT_REVALIDATE_TIME: number;
1005
+ /** Default timeout for HTTP requests (in milliseconds) */
1006
+ DEFAULT_HTTP_REQUEST_TIMEOUT: number;
1007
+ DEFAULT_BACKGROUND: EBackgrounds;
1008
+ };
1009
+
1010
+ export { APIS, type ArrayCallbackHandler, type ArrayNullCallbackHandler, type AutoCompletes, BUTTON_IDENTITY, BitwiseToList, type BooleanCallbackHandler, type BooleanNullCallbackHandler, Button, Buttons, COLUMN_SIZE_ATTRIBUTE_KEY, type CallbackHandler, type ClickHandler, ConvertPixelsToRem, ConvertRemToPixels, ConvertToCode, CreateButton, CreateButtons, CreateCheckbox, CreateClone, CreateElement, CreateForm, CreateIcon, CreateIconBox, CreateInput, CreateInputBox, CreateInputButton, CreateInputLink, CreateInputWrapper, CreateInputs, CreateLinkButton, CreateNumber, CreateRadiobox, CreateTabButtons, CreateTextarea, CreateTextbox, CreateToggleButton, CreateUpdatePreference, DEFAULT_ANIMATION_DURATION, DEFAULT_BUTTON_CLASS, DEFAULT_DIALOGBOX_HOVER_EFFECT_DELAY, DEFAULT_FONT_WEIGHTS, DEFAULT_ICON_ELEMENT_NAME, DEFAULT_INPUT_BACKGROUND, DEFAULT_INPUT_BORDER_SIZE, DEFAULT_LINK_BUTTON_STYLE, DEFAULT_SMALL_ICON_BOX_SIZE, DEFAULT_TEXTAREA_ROWS, DEFAULT_THEME_INFORMATIONS, DEFAULT_THEME_NAME, type DatasourceTypes, Debounce, type DebouncedFunction, DisposeInputs, DynamicSorting, EActionMethods, EAnimationClasses, EAnimations, EBackgroundColors, EBackgrounds, EBadgeTypes, EButtonTypes, EFlexPositions, EFontWeights, EIconTypes, EIcons, EInputTypes, EKeyModifier, EKeys, EMenuTargets, EMenuVisibility, ENexusModules, EOpacity, EPositions, EPreferenceTargets, ERegexs, ESizes, ETargets, ETextPositions, EValueChangeTypes, type EmptyClickHandler, FILES, FindChildElement, FindChildElements, type ForceChangeDefaultValue, ForceSetValue, ForceSetValues, Form, GLOBAL_PAGE_TITLE_CLASS, GetButton, GetClientMenus, GetCurrentTheme, GetCurrentThemeName, GetForms, GetGlobalLayout, GetInputClasses, GetInputId, GetInputs, GetLocalStorage, GetParentKey, GetRandomNumber, GetRandomString, GetUserPanels, GetUtilityMenuCode, GetUtilityMenus, GetVisibleAndHiddenItems, GlobalDialogbox, GlobalLayout, HasFlag, HideLoader, type IAccessAction, type IApiInformations, type IButton, type ICheckbox, type IClientMenu, type IColumn, type IDate, type IDialogboxResults, type IElement, type IForm, type IFormCreateResults, type IGetApiInformations, type IGlobalLayout, type IGlobalObject, type IInputBaseParameters, type IInputCreateResults, type IInputIcon, type IInputParameters, type IInputRootParameters, type IInterface, type IJoining, type IJoiningKey, type ILinkbutton, type IMenuBase, type INumber, type IPanelMenu, type IRadiobox, type ISelection, type ISlider, type ISubmitbutton, type ITablularForm, type ITextarea, type ITextbox, type IThemeColors, type IThemeInformation, type IUtilityMenu, Icon, Iconbox, InitializeDialogbox, InitializeStyles, IsBrowser, IsKeyPressed, IsNullOrEmpty, IsValidURL, LOCAL_STORAGE_KEYS, LayoutHelpers, LinkButton, ListToBitwise, MAX_INPUT_TYPE, MakeFirstLetterUpperCase, type N, NEXUS_CONFIG, NEXUS_INFO, NEXUS_OBJECT, type NumberCallbackHandler, type NumberNullCallbackHandler, O, type ObjectCallbackHandler, type ObjectNullCallbackHandler, type OnElementLoad, type OnFormChangeHandler, type OnInputChangeHandler, type OnRenderTableData, PadStart, PageTitle, ProfilePanel, REQUIRED_TEXT1, ROOT_LOADER_IDENTITY, RemoveElement, RemoveLocalStorage, RenderChildren, SET_BUTTON_ACTIVE_CLASS, type SUN, SearchDatasourceUsingColumns, SetCurrentTheme, SetDocumentTitleDebounce, SetElementStyles, SetHaveValueClass, SetLocalStorage, ShowLoader, type StringCallbackHandler, type StringNullCallbackHandler, SwitchTheme, THEME_MENU_ELIPSE_BTN_ID, TabButtons, ThemePanel, type U, type UN, UTILITIES_BUTTON_PREFIX, UtilityMenu, type VoidCallbackHandler };