@multivendorx/zyra 1.0.63 → 1.0.65
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/build/index.d.ts +1 -0
- package/build/index.js +7317 -6627
- package/build/index.js.map +1 -1
- package/build/index.mjs +7317 -6627
- package/build/index.mjs.map +1 -1
- package/build/types/builderform/src/EmailBuilder.d.ts +29 -0
- package/build/types/builderform/src/EmailTemplateEditorPopup.d.ts +16 -0
- package/build/types/builderform/src/FormBuilder/Builder.d.ts +11 -0
- package/build/types/builderform/src/FormBuilder/Canvas.d.ts +23 -0
- package/build/types/builderform/src/FormBuilder/FormBuilder.d.ts +13 -0
- package/build/types/builderform/src/FormBuilder/FormSettings.d.ts +19 -0
- package/build/types/builderform/src/FormBuilder/Inspector.d.ts +14 -0
- package/build/types/builderform/src/FormBuilder/Share.d.ts +10 -0
- package/build/types/builderform/src/FormBuilder/When.d.ts +20 -0
- package/build/types/builderform/src/FormBuilder/extensions.d.ts +97 -0
- package/build/types/builderform/src/FormBuilder/fields.d.ts +36 -0
- package/build/types/builderform/src/FormBuilder/index.d.ts +5 -0
- package/build/types/builderform/src/FormBuilder/route.d.ts +10 -0
- package/build/types/builderform/src/FormBuilder/runtime.d.ts +87 -0
- package/build/types/builderform/src/FormBuilder/types.d.ts +151 -0
- package/build/types/builderform/src/Switch.d.ts +9 -0
- package/build/types/builderform/src/emailBlockTypes.d.ts +89 -0
- package/build/types/builderform/src/index.d.ts +9 -0
- package/build/types/builderform/src/legacyEmailAdapter.d.ts +40 -0
- package/build/types/bundle/src/fieldRegistry.d.ts +1 -0
- package/build/types/bundle/src/index.d.ts +6 -0
- package/build/types/components/src/ActivityListComponent.d.ts +39 -0
- package/build/types/components/src/AnalyticsComponent.d.ts +56 -0
- package/build/types/components/src/AppShellComponent.d.ts +64 -0
- package/build/types/components/src/AuthLayoutComponent.d.ts +26 -0
- package/build/types/components/src/AvatarComponent.d.ts +13 -0
- package/build/types/components/src/BadgeComponent.d.ts +30 -0
- package/build/types/components/src/BrandComponent.d.ts +18 -0
- package/build/types/components/src/CardComponent.d.ts +25 -0
- package/build/types/components/src/ChartComponent.d.ts +58 -0
- package/build/types/components/src/ChoiceCardComponent.d.ts +41 -0
- package/build/types/components/src/ClipboardComponent.d.ts +13 -0
- package/build/types/components/src/ColumnComponent.d.ts +11 -0
- package/build/types/components/src/ContainerComponent.d.ts +11 -0
- package/build/types/components/src/CustomRecaptchaComponent.d.ts +2 -0
- package/build/types/components/src/EntityCellComponent.d.ts +30 -0
- package/build/types/components/src/FilterComponent.d.ts +20 -0
- package/build/types/components/src/FormGroupComponent.d.ts +19 -0
- package/build/types/components/src/FormGroupWrapperComponent.d.ts +10 -0
- package/build/types/components/src/FullPageLoadingComponent.d.ts +14 -0
- package/build/types/components/src/HeaderComponent.d.ts +93 -0
- package/build/types/components/src/HeaderSearchComponent.d.ts +32 -0
- package/build/types/components/src/IconComponent.d.ts +12 -0
- package/build/types/components/src/InformationItemComponent.d.ts +38 -0
- package/build/types/components/src/LegendComponent.d.ts +52 -0
- package/build/types/components/src/ListComponent.d.ts +47 -0
- package/build/types/components/src/ListToolbarComponent.d.ts +53 -0
- package/build/types/components/src/MapComponent.d.ts +33 -0
- package/build/types/components/src/MetricTileComponent.d.ts +174 -0
- package/build/types/components/src/ModuleGridComponent.d.ts +74 -0
- package/build/types/components/src/ModuleGuardComponent.d.ts +17 -0
- package/build/types/components/src/NavigatorComponent.d.ts +111 -0
- package/build/types/components/src/NoticeComponent.d.ts +48 -0
- package/build/types/components/src/PopupComponent.d.ts +28 -0
- package/build/types/components/src/RecaptchaComponent.d.ts +11 -0
- package/build/types/components/src/SaveStatusComponent.d.ts +18 -0
- package/build/types/components/src/ScoreRingComponent.d.ts +16 -0
- package/build/types/components/src/SectionComponent.d.ts +18 -0
- package/build/types/components/src/SettingRowComponent.d.ts +134 -0
- package/build/types/components/src/SettingsSectionComponent.d.ts +24 -0
- package/build/types/components/src/SetupWizardComponent.d.ts +75 -0
- package/build/types/components/src/SkeletonComponent.d.ts +11 -0
- package/build/types/components/src/SystemInfoComponent.d.ts +11 -0
- package/build/types/components/src/TabsComponent.d.ts +34 -0
- package/build/types/components/src/ThemeChoiceComponent.d.ts +19 -0
- package/build/types/components/src/TooltipComponent.d.ts +12 -0
- package/build/types/components/src/TourComponent.d.ts +26 -0
- package/build/types/components/src/TrendIndicatorComponent.d.ts +21 -0
- package/build/types/components/src/TrendStatComponent.d.ts +34 -0
- package/build/types/components/src/TypographyComponent.d.ts +58 -0
- package/build/types/components/src/index.d.ts +84 -0
- package/build/types/components/src/paletteClass.d.ts +3 -0
- package/build/types/core/src/ModuleContext.d.ts +8 -0
- package/build/types/core/src/SettingContext.d.ts +17 -0
- package/build/types/core/src/ThemeContext.d.ts +20 -0
- package/build/types/core/src/apiService.d.ts +38 -0
- package/build/types/core/src/blockStyle.d.ts +63 -0
- package/build/types/core/src/colorPalette.d.ts +41 -0
- package/build/types/core/src/index.d.ts +14 -0
- package/build/types/core/src/utils.d.ts +1165 -0
- package/build/types/inputs/src/AddressInput.d.ts +24 -0
- package/build/types/inputs/src/ButtonInput.d.ts +53 -0
- package/build/types/inputs/src/CalendarInput.d.ts +46 -0
- package/build/types/inputs/src/DecoratedInput.d.ts +11 -0
- package/build/types/inputs/src/DynamicRowInput.d.ts +42 -0
- package/build/types/inputs/src/EmailInput.d.ts +15 -0
- package/build/types/inputs/src/EndpointInput.d.ts +4 -0
- package/build/types/inputs/src/EventCalendarInput.d.ts +25 -0
- package/build/types/inputs/src/ExpandablePanelInput.d.ts +116 -0
- package/build/types/inputs/src/FileInput.d.ts +39 -0
- package/build/types/inputs/src/InputRenderer.d.ts +94 -0
- package/build/types/inputs/src/LogViewerInput.d.ts +13 -0
- package/build/types/inputs/src/MultiCheckboxInput.d.ts +48 -0
- package/build/types/inputs/src/NestedInput.d.ts +54 -0
- package/build/types/inputs/src/PhoneInput.d.ts +29 -0
- package/build/types/inputs/src/PickerInput.d.ts +77 -0
- package/build/types/inputs/src/RandomkeyInput.d.ts +14 -0
- package/build/types/inputs/src/RichTextInput.d.ts +30 -0
- package/build/types/inputs/src/SelectInput.d.ts +40 -0
- package/build/types/inputs/src/SetupWizardInput.d.ts +50 -0
- package/build/types/inputs/src/ShortcodeTableInput.d.ts +23 -0
- package/build/types/inputs/src/TableInput.d.ts +72 -0
- package/build/types/inputs/src/TaskExecutorInput.d.ts +30 -0
- package/build/types/inputs/src/TextAreaInput.d.ts +27 -0
- package/build/types/inputs/src/TextInput.d.ts +33 -0
- package/build/types/inputs/src/ToggleInput.d.ts +37 -0
- package/build/types/inputs/src/index.d.ts +53 -0
- package/build/types/table/src/Table.d.ts +4 -0
- package/build/types/table/src/TableActionButtons.d.ts +16 -0
- package/build/types/table/src/TableBulkActions.d.ts +19 -0
- package/build/types/table/src/TableCard.d.ts +10 -0
- package/build/types/table/src/TableEditable.d.ts +18 -0
- package/build/types/table/src/TableFilter.d.ts +19 -0
- package/build/types/table/src/TablePagination.d.ts +17 -0
- package/build/types/table/src/TableRowActions.d.ts +17 -0
- package/build/types/table/src/TableUtils.d.ts +3 -0
- package/build/types/table/src/index.d.ts +5 -0
- package/build/types/table/src/tableLabels.d.ts +14 -0
- package/build/types/table/src/types.d.ts +166 -0
- package/package.json +4 -5
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './PickerInput.scss';
|
|
3
|
+
import type { FieldComponent } from '../../core/src/index';
|
|
4
|
+
interface CustomColors {
|
|
5
|
+
colorPrimary: string;
|
|
6
|
+
colorSecondary: string;
|
|
7
|
+
colorAccent: string;
|
|
8
|
+
colorSupport: string;
|
|
9
|
+
}
|
|
10
|
+
interface ColorSettingValue {
|
|
11
|
+
selectedPalette: string;
|
|
12
|
+
colors: Partial<CustomColors>;
|
|
13
|
+
}
|
|
14
|
+
interface PaletteOption {
|
|
15
|
+
key?: string;
|
|
16
|
+
value?: string;
|
|
17
|
+
label?: string;
|
|
18
|
+
colors?: Partial<CustomColors>;
|
|
19
|
+
image?: string;
|
|
20
|
+
}
|
|
21
|
+
interface ImagePaletteOption {
|
|
22
|
+
key?: string;
|
|
23
|
+
value?: string;
|
|
24
|
+
label?: string;
|
|
25
|
+
img?: string;
|
|
26
|
+
}
|
|
27
|
+
interface TemplateComponentProps {
|
|
28
|
+
colors: CustomColors;
|
|
29
|
+
isPreview?: boolean;
|
|
30
|
+
}
|
|
31
|
+
interface Template {
|
|
32
|
+
key: string;
|
|
33
|
+
label: string;
|
|
34
|
+
preview?: React.ComponentType<TemplateComponentProps>;
|
|
35
|
+
component: React.ComponentType<TemplateComponentProps>;
|
|
36
|
+
pdf?: React.FC<{
|
|
37
|
+
colors: CustomColors;
|
|
38
|
+
}>;
|
|
39
|
+
}
|
|
40
|
+
interface ColorSettingProps {
|
|
41
|
+
filedKey: string;
|
|
42
|
+
wrapperClass?: string;
|
|
43
|
+
inputClass?: string;
|
|
44
|
+
predefinedOptions: PaletteOption[];
|
|
45
|
+
images: ImagePaletteOption[];
|
|
46
|
+
value?: {
|
|
47
|
+
selectedPalette: string;
|
|
48
|
+
colors: Partial<CustomColors>;
|
|
49
|
+
templateKey?: string;
|
|
50
|
+
};
|
|
51
|
+
templateSelector?: boolean;
|
|
52
|
+
onChange?: (e: {
|
|
53
|
+
target: {
|
|
54
|
+
name: string;
|
|
55
|
+
value: ColorSettingValue | {
|
|
56
|
+
templateKey: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}) => void;
|
|
60
|
+
idPrefix?: string;
|
|
61
|
+
templates?: Template[];
|
|
62
|
+
showPdfButton?: boolean;
|
|
63
|
+
pdfFileName?: string;
|
|
64
|
+
/** Texts; English defaults, pass translated strings to override. */
|
|
65
|
+
labels?: {
|
|
66
|
+
selectTemplate?: string;
|
|
67
|
+
colorPalette?: string;
|
|
68
|
+
predefined?: string;
|
|
69
|
+
custom?: string;
|
|
70
|
+
selectedTemplate?: string;
|
|
71
|
+
generatingPdf?: string;
|
|
72
|
+
downloadPdf?: string;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export declare const PickerInput: React.FC<ColorSettingProps>;
|
|
76
|
+
declare const PickerInputFieldComponent: FieldComponent;
|
|
77
|
+
export default PickerInputFieldComponent;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FieldComponent } from '../../core/src/index';
|
|
3
|
+
interface RandomInputKeyGeneratorProps {
|
|
4
|
+
value?: string;
|
|
5
|
+
length?: number;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
/** Button and tooltip texts; English defaults. */
|
|
8
|
+
generateText?: string;
|
|
9
|
+
copyText?: string;
|
|
10
|
+
copiedText?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const RandomkeyInput: React.FC<RandomInputKeyGeneratorProps>;
|
|
13
|
+
declare const InputKeyGeneratorFieldComponent: FieldComponent;
|
|
14
|
+
export default InputKeyGeneratorFieldComponent;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FieldComponent } from '../../core/src/index';
|
|
3
|
+
import type { BlockStyle } from '../../core/src/index';
|
|
4
|
+
export interface TextContentBlockData {
|
|
5
|
+
id: number;
|
|
6
|
+
type: 'richtext' | 'heading' | 'title';
|
|
7
|
+
html?: string;
|
|
8
|
+
text?: string;
|
|
9
|
+
level?: 1 | 2 | 3;
|
|
10
|
+
style?: BlockStyle;
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
context?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const RichTextInputView: React.FC<{
|
|
16
|
+
field: TextContentBlockData;
|
|
17
|
+
onChange: (updates: Partial<TextContentBlockData>) => void;
|
|
18
|
+
editable?: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
export declare const RichTextInput: React.FC<{
|
|
21
|
+
field: TextContentBlockData;
|
|
22
|
+
value?: Partial<TextContentBlockData>;
|
|
23
|
+
onChange: (value: Partial<TextContentBlockData>) => void;
|
|
24
|
+
canAccess?: boolean;
|
|
25
|
+
modules?: string[];
|
|
26
|
+
settings?: Record<string, string | number | boolean | null>;
|
|
27
|
+
onBlocked?: (type: 'pro' | 'module', payload?: string) => void;
|
|
28
|
+
}>;
|
|
29
|
+
declare const RichTextInputFieldComponent: FieldComponent;
|
|
30
|
+
export default RichTextInputFieldComponent;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FieldComponent } from '../../core/src/index';
|
|
3
|
+
export interface SelectOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
index?: number;
|
|
7
|
+
}
|
|
8
|
+
export type SelectType = 'single-select' | 'multi-select' | 'creatable' | 'creatable-multi';
|
|
9
|
+
export interface SelectProps {
|
|
10
|
+
type: SelectType;
|
|
11
|
+
options: SelectOption[];
|
|
12
|
+
value?: string | string[];
|
|
13
|
+
onChange: (value: string | string[]) => void;
|
|
14
|
+
maxVisibleItems?: number;
|
|
15
|
+
/** Tooltip of the "+N" badge when chips overflow, e.g. `(n) => \`${n} more selected\``; defaults to English. */
|
|
16
|
+
overflowText?: (count: number) => string;
|
|
17
|
+
onOverflowClick?: () => void;
|
|
18
|
+
isClearable?: boolean;
|
|
19
|
+
name?: string;
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
inputClass?: string;
|
|
22
|
+
wrapperClass?: string;
|
|
23
|
+
size?: number | string;
|
|
24
|
+
menuContent?: React.ReactNode;
|
|
25
|
+
keepMenuOpenOnMenuContentClick?: boolean;
|
|
26
|
+
noOptionsText?: string;
|
|
27
|
+
selectDeselect?: boolean;
|
|
28
|
+
selectDeselectLabel?: string;
|
|
29
|
+
onSelectDeselectAll?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
30
|
+
formatCreateLabel?: (inputValue: string) => string;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
enableOverflowPopup?: boolean;
|
|
33
|
+
popupTitle?: string;
|
|
34
|
+
popupWidth?: number;
|
|
35
|
+
background?: string;
|
|
36
|
+
color?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare const SelectInput: React.FC<SelectProps>;
|
|
39
|
+
declare const SelectInputFieldComponent: FieldComponent;
|
|
40
|
+
export default SelectInputFieldComponent;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type WizardValue = Record<string, Record<string, unknown>>;
|
|
3
|
+
interface WizardButton {
|
|
4
|
+
label: string;
|
|
5
|
+
action?: 'back' | 'next' | 'skip';
|
|
6
|
+
color?: string;
|
|
7
|
+
redirect?: string;
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
interface WizardField {
|
|
11
|
+
key: string;
|
|
12
|
+
type: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
desc?: string;
|
|
16
|
+
settingDescription?: string;
|
|
17
|
+
options?: WizardButton[] | unknown[];
|
|
18
|
+
dependent?: WizardDependent | WizardDependent[];
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
}
|
|
21
|
+
type WizardDependent = {
|
|
22
|
+
key: string;
|
|
23
|
+
set?: boolean;
|
|
24
|
+
value?: string | number | boolean;
|
|
25
|
+
};
|
|
26
|
+
export interface SetupWizardStepConfig {
|
|
27
|
+
id: string;
|
|
28
|
+
label: string;
|
|
29
|
+
desc?: string;
|
|
30
|
+
/** Small grey line under the step in the rail, e.g. "Optional". */
|
|
31
|
+
hint?: string;
|
|
32
|
+
formFields?: WizardField[];
|
|
33
|
+
[key: string]: unknown;
|
|
34
|
+
}
|
|
35
|
+
export interface SetupWizardInputProps {
|
|
36
|
+
methods: SetupWizardStepConfig[];
|
|
37
|
+
value: WizardValue;
|
|
38
|
+
onChange: (value: WizardValue) => void;
|
|
39
|
+
apilink?: string;
|
|
40
|
+
onWizardSave?: (value: WizardValue) => void;
|
|
41
|
+
canAccess?: boolean;
|
|
42
|
+
brandName: string;
|
|
43
|
+
brandMark?: React.ReactNode;
|
|
44
|
+
railTitle?: string;
|
|
45
|
+
railFooter?: React.ReactNode;
|
|
46
|
+
intro?: React.ReactNode;
|
|
47
|
+
className?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const SetupWizardInput: React.FC<SetupWizardInputProps>;
|
|
50
|
+
export default SetupWizardInput;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './ShortcodeTableInput.scss';
|
|
3
|
+
import type { FieldComponent } from '../../core/src/index';
|
|
4
|
+
interface ArgumentRow {
|
|
5
|
+
attribute: string;
|
|
6
|
+
description: string;
|
|
7
|
+
accepted: string;
|
|
8
|
+
default: string;
|
|
9
|
+
}
|
|
10
|
+
interface Option {
|
|
11
|
+
label?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
desc?: string;
|
|
14
|
+
arguments?: ArgumentRow[];
|
|
15
|
+
}
|
|
16
|
+
interface ShortCodeTableProps {
|
|
17
|
+
options: Option[];
|
|
18
|
+
optionLabel?: string[];
|
|
19
|
+
icon?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const ShortcodeTableInput: React.FC<ShortCodeTableProps>;
|
|
22
|
+
declare const ShortcodeTableInputFieldComponent: FieldComponent;
|
|
23
|
+
export default ShortcodeTableInputFieldComponent;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './TableInput.scss';
|
|
3
|
+
import { FieldComponent } from '../../core/src/index';
|
|
4
|
+
export type SettingValue = string[] | boolean;
|
|
5
|
+
export type RowChanges = Record<string, SettingValue>;
|
|
6
|
+
type FieldSetting = Record<string, SettingValue>;
|
|
7
|
+
interface Row {
|
|
8
|
+
key: string;
|
|
9
|
+
label: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
enabledKey?: string;
|
|
12
|
+
inactiveMessage?: string;
|
|
13
|
+
fields?: {
|
|
14
|
+
key: string;
|
|
15
|
+
type: string;
|
|
16
|
+
}[];
|
|
17
|
+
}
|
|
18
|
+
interface Column {
|
|
19
|
+
key: string;
|
|
20
|
+
label: string;
|
|
21
|
+
type?: string;
|
|
22
|
+
moduleEnabled?: string;
|
|
23
|
+
proSetting?: string;
|
|
24
|
+
visibleWhen?: {
|
|
25
|
+
key: string;
|
|
26
|
+
value: string | boolean;
|
|
27
|
+
};
|
|
28
|
+
fields?: {
|
|
29
|
+
key: string;
|
|
30
|
+
type: string;
|
|
31
|
+
}[];
|
|
32
|
+
}
|
|
33
|
+
interface CapabilityGroup {
|
|
34
|
+
label: string;
|
|
35
|
+
desc: string;
|
|
36
|
+
capability: Record<string, string>;
|
|
37
|
+
}
|
|
38
|
+
type GroupedRows = Record<string, CapabilityGroup>;
|
|
39
|
+
export interface MultiInputTableUIProps {
|
|
40
|
+
rows: Row[] | GroupedRows;
|
|
41
|
+
columns: Column[];
|
|
42
|
+
setting: FieldSetting;
|
|
43
|
+
/** Global settings used for `visibleWhen` column lookups — keys like
|
|
44
|
+
* `enable_store_time` live here, NOT inside the field's own value. */
|
|
45
|
+
visibilityContext?: FieldSetting;
|
|
46
|
+
onChange: (subKeyOrBatch: string | RowChanges, value?: SettingValue) => void;
|
|
47
|
+
proSetting?: boolean;
|
|
48
|
+
modules: string[];
|
|
49
|
+
storeTabSetting: Record<string, string[]>;
|
|
50
|
+
khali_dabba: boolean;
|
|
51
|
+
onBlocked?: (type: 'pro' | 'module', payload?: string) => void;
|
|
52
|
+
}
|
|
53
|
+
interface TableCellProps {
|
|
54
|
+
type: string;
|
|
55
|
+
fieldKey: string;
|
|
56
|
+
rowKey: string;
|
|
57
|
+
column: Column;
|
|
58
|
+
rowLabel: string;
|
|
59
|
+
value: SettingValue;
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
onChange: (key: string, value: SettingValue) => void;
|
|
62
|
+
modules: string[];
|
|
63
|
+
onBlocked?: (type: 'pro' | 'module', payload?: string) => void;
|
|
64
|
+
field: {
|
|
65
|
+
key: string;
|
|
66
|
+
type: string;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export declare const TableCell: React.FC<TableCellProps>;
|
|
70
|
+
export declare const TableInput: React.FC<MultiInputTableUIProps>;
|
|
71
|
+
declare const TableInputFieldComponent: FieldComponent;
|
|
72
|
+
export default TableInputFieldComponent;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FieldComponent } from '../../core/src/index';
|
|
3
|
+
import './TaskExecutorInput.scss';
|
|
4
|
+
interface Task {
|
|
5
|
+
action: string;
|
|
6
|
+
message: string;
|
|
7
|
+
successMessage?: string;
|
|
8
|
+
failureMessage?: string;
|
|
9
|
+
previousResponseData?: string[];
|
|
10
|
+
}
|
|
11
|
+
interface SequentialTaskExecutorProps {
|
|
12
|
+
buttonText: string;
|
|
13
|
+
buttonIcon: string;
|
|
14
|
+
apilink: string;
|
|
15
|
+
variant?: string;
|
|
16
|
+
parameter?: string;
|
|
17
|
+
action: string;
|
|
18
|
+
interval: number;
|
|
19
|
+
successMessage?: string;
|
|
20
|
+
failureMessage?: string;
|
|
21
|
+
tasks: Task[];
|
|
22
|
+
onComplete?: () => void;
|
|
23
|
+
onError?: (error: unknown) => void;
|
|
24
|
+
onTaskComplete?: (task: Task, response: unknown) => void;
|
|
25
|
+
value?: {};
|
|
26
|
+
onChange?: (value: string) => void;
|
|
27
|
+
}
|
|
28
|
+
export declare const TaskExecutorInput: React.FC<SequentialTaskExecutorProps>;
|
|
29
|
+
declare const TaskExecutorInputFieldComponent: FieldComponent;
|
|
30
|
+
export default TaskExecutorInputFieldComponent;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { MouseEvent, FocusEvent, KeyboardEvent } from 'react';
|
|
2
|
+
import type { FieldComponent } from '../../core/src/index';
|
|
3
|
+
interface TextAreaProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
value?: string | number;
|
|
7
|
+
maxLength?: number;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
inputClass?: string;
|
|
10
|
+
rowNumber?: number;
|
|
11
|
+
colNumber?: number;
|
|
12
|
+
proSetting?: boolean;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
tinymceApiKey?: string;
|
|
16
|
+
usePlainText?: boolean;
|
|
17
|
+
onChange?: (value: string) => void;
|
|
18
|
+
onClick?: (e: MouseEvent<HTMLTextAreaElement>) => void;
|
|
19
|
+
onMouseOver?: (e: MouseEvent<HTMLTextAreaElement>) => void;
|
|
20
|
+
onMouseOut?: (e: MouseEvent<HTMLTextAreaElement>) => void;
|
|
21
|
+
onFocus?: (e: FocusEvent<HTMLTextAreaElement>) => void;
|
|
22
|
+
onBlur?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
23
|
+
onKeyDown?: (e: KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare const TextAreaInput: React.FC<TextAreaProps>;
|
|
26
|
+
declare const TextAreaInputFieldComponent: FieldComponent;
|
|
27
|
+
export default TextAreaInputFieldComponent;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React, { MouseEvent, FocusEvent } from 'react';
|
|
2
|
+
import type { FieldComponent } from '../../core/src/index';
|
|
3
|
+
type InputValue = string | number | FileList;
|
|
4
|
+
interface BasicInputProps {
|
|
5
|
+
id?: string;
|
|
6
|
+
type?: 'text' | 'number' | 'color' | 'password' | 'email' | 'file' | 'datetime-local' | 'range';
|
|
7
|
+
name?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
value: InputValue;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
inputClass?: string;
|
|
12
|
+
inputLabel?: string;
|
|
13
|
+
wrapperClass?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
size?: number | string;
|
|
17
|
+
minNumber?: number;
|
|
18
|
+
maxNumber?: number;
|
|
19
|
+
onChange: (value: InputValue) => void;
|
|
20
|
+
onClick?: (e: MouseEvent<HTMLInputElement>) => void;
|
|
21
|
+
onMouseOver?: (e: MouseEvent<HTMLInputElement>) => void;
|
|
22
|
+
onMouseOut?: (e: MouseEvent<HTMLInputElement>) => void;
|
|
23
|
+
onFocus?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
24
|
+
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
25
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
26
|
+
rangeUnit?: string;
|
|
27
|
+
preText?: string;
|
|
28
|
+
postText?: string;
|
|
29
|
+
multiple?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare const TextInput: React.ForwardRefExoticComponent<BasicInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
32
|
+
declare const TextInputFieldComponent: FieldComponent;
|
|
33
|
+
export default TextInputFieldComponent;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './ToggleInput.scss';
|
|
3
|
+
import type { FieldComponent } from '../../core/src/index';
|
|
4
|
+
interface Option {
|
|
5
|
+
key?: string;
|
|
6
|
+
value: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
desc?: string;
|
|
9
|
+
img?: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
customHtml?: string;
|
|
12
|
+
rightCustomHtml?: string;
|
|
13
|
+
proSetting?: boolean;
|
|
14
|
+
requiredPlugin?: string;
|
|
15
|
+
moduleEnabled?: string;
|
|
16
|
+
badgeColor?: string;
|
|
17
|
+
badgeText?: string;
|
|
18
|
+
count?: number | string;
|
|
19
|
+
}
|
|
20
|
+
interface ToggleInputProps {
|
|
21
|
+
options?: Option[];
|
|
22
|
+
wrapperClass?: string;
|
|
23
|
+
value: string | string[];
|
|
24
|
+
onChange: (value: string | string[]) => void;
|
|
25
|
+
proSetting?: boolean;
|
|
26
|
+
iconEnable?: boolean;
|
|
27
|
+
fieldkey?: string;
|
|
28
|
+
multiSelect?: boolean;
|
|
29
|
+
variant?: 'custom' | 'compact' | 'chips';
|
|
30
|
+
width?: string;
|
|
31
|
+
canAccess?: boolean;
|
|
32
|
+
modules?: string[];
|
|
33
|
+
onBlocked?: (type: 'pro' | 'plugin' | 'module', payload?: Option) => void;
|
|
34
|
+
}
|
|
35
|
+
export declare const ToggleInput: React.FC<ToggleInputProps>;
|
|
36
|
+
declare const ToggleInputFieldComponent: FieldComponent;
|
|
37
|
+
export default ToggleInputFieldComponent;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export { default as TextInputFieldComponent } from './TextInput';
|
|
2
|
+
export { TextInput } from './TextInput';
|
|
3
|
+
export { default as CalendarInputFieldComponent } from './CalendarInput';
|
|
4
|
+
export { CalendarInput } from './CalendarInput';
|
|
5
|
+
export type { CalendarRange } from './CalendarInput';
|
|
6
|
+
export { default as FileInputFieldComponent } from './FileInput';
|
|
7
|
+
export { FileInput } from './FileInput';
|
|
8
|
+
export { default as MultiCheckboxInputFieldComponent } from './MultiCheckboxInput';
|
|
9
|
+
export { MultiCheckboxInput } from './MultiCheckboxInput';
|
|
10
|
+
export { default as SelectInputFieldComponent } from './SelectInput';
|
|
11
|
+
export { SelectInput } from './SelectInput';
|
|
12
|
+
export { RandomkeyInput } from './RandomkeyInput';
|
|
13
|
+
export { default as InputKeyGeneratorFieldComponent } from './RandomkeyInput';
|
|
14
|
+
export { default as TextAreaInputFieldComponent } from './TextAreaInput';
|
|
15
|
+
export { TextAreaInput } from './TextAreaInput';
|
|
16
|
+
export { default as ToggleInputFieldComponent } from './ToggleInput';
|
|
17
|
+
export { ToggleInput } from './ToggleInput';
|
|
18
|
+
export { EmailInput } from './EmailInput';
|
|
19
|
+
export { default as EmailListInputFieldComponent } from './EmailInput';
|
|
20
|
+
export { default as ButtonInputFieldComponent } from './ButtonInput';
|
|
21
|
+
export { ButtonInput, type ButtonConfig } from './ButtonInput';
|
|
22
|
+
export { default as PickerInputFieldComponent } from './PickerInput';
|
|
23
|
+
export { PickerInput } from './PickerInput';
|
|
24
|
+
export { default as AffixTextInputFieldComponent } from './DecoratedInput';
|
|
25
|
+
export { DecoratedInput } from './DecoratedInput';
|
|
26
|
+
export { default as PhoneInputFieldComponent } from './PhoneInput';
|
|
27
|
+
export { PhoneInput, type PhoneValue } from './PhoneInput';
|
|
28
|
+
export { default as AddressInput } from './AddressInput';
|
|
29
|
+
export { default as RichTextInputFieldComponent } from './RichTextInput';
|
|
30
|
+
export { RichTextInput } from './RichTextInput';
|
|
31
|
+
export { default as EndpointInput } from './EndpointInput';
|
|
32
|
+
export { default as EventCalendarInputFieldComponent } from './EventCalendarInput';
|
|
33
|
+
export { EventCalendarInput } from './EventCalendarInput';
|
|
34
|
+
export type { CalendarEvent, EventsData } from './EventCalendarInput';
|
|
35
|
+
export { default as LogViewerInputFieldComponent } from './LogViewerInput';
|
|
36
|
+
export { LogViewerInput } from './LogViewerInput';
|
|
37
|
+
export { default as TaskExecutorInputFieldComponent } from './TaskExecutorInput';
|
|
38
|
+
export { TaskExecutorInput } from './TaskExecutorInput';
|
|
39
|
+
export { default as ShortcodeTableInputFieldComponent } from './ShortcodeTableInput';
|
|
40
|
+
export { ShortcodeTableInput } from './ShortcodeTableInput';
|
|
41
|
+
export { default as DynamicRowInput, DynamicRowInputFieldComponent } from './DynamicRowInput';
|
|
42
|
+
export type { DynamicRowSettingProps } from './DynamicRowInput';
|
|
43
|
+
export { default as TableInputFieldComponent } from './TableInput';
|
|
44
|
+
export { TableInput } from './TableInput';
|
|
45
|
+
export type { MultiInputTableUIProps } from './TableInput';
|
|
46
|
+
export { default as NestedInputFieldComponent } from './NestedInput';
|
|
47
|
+
export { NestedInput } from './NestedInput';
|
|
48
|
+
export { default as ExpandablePanelInputFieldComponent } from './ExpandablePanelInput';
|
|
49
|
+
export { ExpandablePanelInput } from './ExpandablePanelInput';
|
|
50
|
+
export { SetupWizardInput } from './SetupWizardInput';
|
|
51
|
+
export type { SetupWizardInputProps, SetupWizardStepConfig } from './SetupWizardInput';
|
|
52
|
+
export { default as InputRenderer } from './InputRenderer';
|
|
53
|
+
export type { MultiSelectOption, SettingObject, SettingValue } from './InputRenderer';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QueryProps } from './types';
|
|
3
|
+
export type ButtonAction = {
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
onClickWithQuery?: (query: QueryProps) => void;
|
|
9
|
+
color?: string;
|
|
10
|
+
};
|
|
11
|
+
type ButtonActionsProps = {
|
|
12
|
+
actions?: ButtonAction[];
|
|
13
|
+
query?: QueryProps;
|
|
14
|
+
};
|
|
15
|
+
declare const TableActionButtons: React.FC<ButtonActionsProps>;
|
|
16
|
+
export default TableActionButtons;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type TableLabels } from './tableLabels';
|
|
3
|
+
export type BulkAction = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
7
|
+
interface BulkActionDropdownProps {
|
|
8
|
+
actions?: BulkAction[];
|
|
9
|
+
selectedIds: number[];
|
|
10
|
+
totalIds: number[];
|
|
11
|
+
onApply?: (action: string) => void;
|
|
12
|
+
onClearSelection: () => void;
|
|
13
|
+
onSelectCsvDownloadApply?: (selectedIds: number[]) => void;
|
|
14
|
+
onToggleSelectAll: (select: boolean) => void;
|
|
15
|
+
showDropdown?: boolean;
|
|
16
|
+
labels?: TableLabels;
|
|
17
|
+
}
|
|
18
|
+
declare const TableBulkActions: React.FC<BulkActionDropdownProps>;
|
|
19
|
+
export default TableBulkActions;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableCardProps } from './types';
|
|
3
|
+
import './Table.scss';
|
|
4
|
+
export interface CategoryItem {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
count: number;
|
|
8
|
+
}
|
|
9
|
+
declare const TableCard: React.FC<TableCardProps>;
|
|
10
|
+
export default TableCard;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TableRow } from './types';
|
|
2
|
+
type EditType = 'toggle' | 'select' | 'text';
|
|
3
|
+
type SelectOption = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
};
|
|
7
|
+
type TableHeader = {
|
|
8
|
+
editType?: EditType;
|
|
9
|
+
options?: SelectOption[];
|
|
10
|
+
};
|
|
11
|
+
type Props = {
|
|
12
|
+
header: TableHeader;
|
|
13
|
+
cell: TableRow;
|
|
14
|
+
isEditing: boolean;
|
|
15
|
+
onSave: (value: string | number | boolean) => void;
|
|
16
|
+
};
|
|
17
|
+
export declare const TableEditable: React.FC<Props>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type TableLabels } from './tableLabels';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { RealtimeFilterConfig, TableRow } from './types';
|
|
4
|
+
export type FilterValue = string | string[] | {
|
|
5
|
+
startDate: Date;
|
|
6
|
+
endDate: Date;
|
|
7
|
+
};
|
|
8
|
+
interface RealtimeFiltersProps {
|
|
9
|
+
filters: RealtimeFilterConfig[];
|
|
10
|
+
query: Record<string, FilterValue | undefined>;
|
|
11
|
+
onFilterChange: (key: string, value: FilterValue) => void;
|
|
12
|
+
rows: TableRow[][];
|
|
13
|
+
onResetFilters: () => void;
|
|
14
|
+
format?: string;
|
|
15
|
+
compact?: boolean;
|
|
16
|
+
labels?: TableLabels;
|
|
17
|
+
}
|
|
18
|
+
declare const TableFilter: React.FC<RealtimeFiltersProps>;
|
|
19
|
+
export default TableFilter;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type TableLabels } from './tableLabels';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const DEFAULT_PER_PAGE_OPTIONS: number[];
|
|
4
|
+
export type PaginationProps = {
|
|
5
|
+
page: number;
|
|
6
|
+
perPage: number;
|
|
7
|
+
total: number;
|
|
8
|
+
onPageChange?: (page: number, action?: 'previous' | 'next' | 'goto' | 'first' | 'last') => void;
|
|
9
|
+
onPerPageChange?: (perPage: number) => void;
|
|
10
|
+
showPagePicker?: boolean;
|
|
11
|
+
showPerPagePicker?: boolean;
|
|
12
|
+
showPageArrowsLabel?: boolean;
|
|
13
|
+
perPageOptions?: number[];
|
|
14
|
+
labels?: TableLabels;
|
|
15
|
+
};
|
|
16
|
+
declare const TablePagination: React.FC<PaginationProps>;
|
|
17
|
+
export default TablePagination;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ActionItem {
|
|
3
|
+
label?: string | ((row?: Record<string, unknown>) => string);
|
|
4
|
+
icon?: string | React.ReactNode | ((row?: Record<string, unknown>) => string);
|
|
5
|
+
onClick: (row?: Record<string, unknown>) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
type?: 'badge' | 'button' | string;
|
|
8
|
+
color?: string | ((row?: Record<string, unknown>) => string);
|
|
9
|
+
hidden?: (row?: Record<string, unknown>) => boolean;
|
|
10
|
+
}
|
|
11
|
+
interface TableRowActionsProps {
|
|
12
|
+
row: Record<string, unknown>;
|
|
13
|
+
rowActions: ActionItem[];
|
|
14
|
+
type?: 'badge';
|
|
15
|
+
}
|
|
16
|
+
declare const TableRowActions: React.FC<TableRowActionsProps>;
|
|
17
|
+
export default TableRowActions;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableRow, TableHeaderConfig } from './types';
|
|
3
|
+
export declare const renderCell: (row?: TableRow, header?: TableHeaderConfig, format?: string, currency?: {}) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | TableRow[] | null;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as TableCard } from './TableCard';
|
|
2
|
+
export { default as TableRowActions } from './TableRowActions';
|
|
3
|
+
export type { QueryProps, TableRow, CategoryCount, TableHeaderConfig, } from './types';
|
|
4
|
+
export type { ActionItem } from './TableRowActions';
|
|
5
|
+
export type { TableLabels } from './tableLabels';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface TableLabels {
|
|
2
|
+
rowsSelected?: (count: number) => string;
|
|
3
|
+
selectAll?: string;
|
|
4
|
+
deselectAll?: string;
|
|
5
|
+
bulkActions?: string;
|
|
6
|
+
csv?: string;
|
|
7
|
+
filter?: string;
|
|
8
|
+
reset?: string;
|
|
9
|
+
showing?: (start: number, end: number, total: number) => string;
|
|
10
|
+
previousPage?: string;
|
|
11
|
+
nextPage?: string;
|
|
12
|
+
manageDisplay?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const DEFAULT_TABLE_LABELS: Required<TableLabels>;
|