@capillarytech/blaze-ui 1.0.3-alpha.15 → 1.0.3-alpha.2
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/package.json +91 -91
- package/CapAlert/CapAlert.d.ts +0 -12
- package/CapAlert/CapAlert.d.ts.map +0 -1
- package/CapAlert/CapAlert.test.d.ts +0 -2
- package/CapAlert/CapAlert.test.d.ts.map +0 -1
- package/CapAlert/index.d.ts +0 -3
- package/CapAlert/index.d.ts.map +0 -1
- package/CapAlert/index.js +0 -696
- package/CapAlert/index.js.map +0 -1
- package/CapButton/CapButton.d.ts +0 -11
- package/CapButton/CapButton.d.ts.map +0 -1
- package/CapButton/CapButton.test.d.ts +0 -2
- package/CapButton/CapButton.test.d.ts.map +0 -1
- package/CapButton/index.d.ts +0 -3
- package/CapButton/index.d.ts.map +0 -1
- package/CapButton/index.js +0 -998
- package/CapButton/index.js.map +0 -1
- package/CapCard/CapCard.d.ts +0 -9
- package/CapCard/CapCard.d.ts.map +0 -1
- package/CapCard/CapCard.test.d.ts +0 -2
- package/CapCard/CapCard.test.d.ts.map +0 -1
- package/CapCard/index.d.ts +0 -3
- package/CapCard/index.d.ts.map +0 -1
- package/CapCard/index.js +0 -697
- package/CapCard/index.js.map +0 -1
- package/CapCheckbox/CapCheckbox.d.ts +0 -17
- package/CapCheckbox/CapCheckbox.d.ts.map +0 -1
- package/CapCheckbox/CapCheckbox.test.d.ts +0 -2
- package/CapCheckbox/CapCheckbox.test.d.ts.map +0 -1
- package/CapCheckbox/index.d.ts +0 -3
- package/CapCheckbox/index.d.ts.map +0 -1
- package/CapCheckbox/index.js +0 -917
- package/CapCheckbox/index.js.map +0 -1
- package/CapColumn/CapColumn.d.ts +0 -9
- package/CapColumn/CapColumn.d.ts.map +0 -1
- package/CapColumn/CapColumn.test.d.ts +0 -2
- package/CapColumn/CapColumn.test.d.ts.map +0 -1
- package/CapColumn/index.d.ts +0 -3
- package/CapColumn/index.d.ts.map +0 -1
- package/CapColumn/index.js +0 -694
- package/CapColumn/index.js.map +0 -1
- package/CapDivider/CapDivider.d.ts +0 -9
- package/CapDivider/CapDivider.d.ts.map +0 -1
- package/CapDivider/CapDivider.test.d.ts +0 -2
- package/CapDivider/CapDivider.test.d.ts.map +0 -1
- package/CapDivider/index.d.ts +0 -3
- package/CapDivider/index.d.ts.map +0 -1
- package/CapDivider/index.js +0 -696
- package/CapDivider/index.js.map +0 -1
- package/CapDropdown/CapDropdown.d.ts +0 -20
- package/CapDropdown/CapDropdown.d.ts.map +0 -1
- package/CapDropdown/CapDropdown.test.d.ts +0 -2
- package/CapDropdown/CapDropdown.test.d.ts.map +0 -1
- package/CapDropdown/index.d.ts +0 -3
- package/CapDropdown/index.d.ts.map +0 -1
- package/CapDropdown/index.js +0 -715
- package/CapDropdown/index.js.map +0 -1
- package/CapForm/CapForm.d.ts +0 -10
- package/CapForm/CapForm.d.ts.map +0 -1
- package/CapForm/CapForm.test.d.ts +0 -2
- package/CapForm/CapForm.test.d.ts.map +0 -1
- package/CapForm/index.d.ts +0 -3
- package/CapForm/index.d.ts.map +0 -1
- package/CapForm/index.js +0 -696
- package/CapForm/index.js.map +0 -1
- package/CapFormItem/CapFormItem.d.ts +0 -13
- package/CapFormItem/CapFormItem.d.ts.map +0 -1
- package/CapFormItem/CapFormItem.test.d.ts +0 -2
- package/CapFormItem/CapFormItem.test.d.ts.map +0 -1
- package/CapFormItem/index.d.ts +0 -3
- package/CapFormItem/index.d.ts.map +0 -1
- package/CapFormItem/index.js +0 -697
- package/CapFormItem/index.js.map +0 -1
- package/CapIcon/CapIcon.d.ts +0 -31
- package/CapIcon/CapIcon.d.ts.map +0 -1
- package/CapIcon/CapIcon.test.d.ts +0 -2
- package/CapIcon/CapIcon.test.d.ts.map +0 -1
- package/CapIcon/index.d.ts +0 -3
- package/CapIcon/index.d.ts.map +0 -1
- package/CapIcon/index.js +0 -853
- package/CapIcon/index.js.map +0 -1
- package/CapInput/CapInput.d.ts +0 -11
- package/CapInput/CapInput.d.ts.map +0 -1
- package/CapInput/CapInput.test.d.ts +0 -2
- package/CapInput/CapInput.test.d.ts.map +0 -1
- package/CapInput/Number.d.ts +0 -9
- package/CapInput/Number.d.ts.map +0 -1
- package/CapInput/Number.test.d.ts +0 -2
- package/CapInput/Number.test.d.ts.map +0 -1
- package/CapInput/Search.d.ts +0 -9
- package/CapInput/Search.d.ts.map +0 -1
- package/CapInput/Search.test.d.ts +0 -2
- package/CapInput/Search.test.d.ts.map +0 -1
- package/CapInput/TextArea.d.ts +0 -9
- package/CapInput/TextArea.d.ts.map +0 -1
- package/CapInput/TextArea.test.d.ts +0 -2
- package/CapInput/TextArea.test.d.ts.map +0 -1
- package/CapInput/index.d.ts +0 -9
- package/CapInput/index.d.ts.map +0 -1
- package/CapInput/index.js +0 -744
- package/CapInput/index.js.map +0 -1
- package/CapLabel/CapLabel.d.ts +0 -23
- package/CapLabel/CapLabel.d.ts.map +0 -1
- package/CapLabel/CapLabel.test.d.ts +0 -2
- package/CapLabel/CapLabel.test.d.ts.map +0 -1
- package/CapLabel/index.d.ts +0 -3
- package/CapLabel/index.d.ts.map +0 -1
- package/CapLabel/index.js +0 -760
- package/CapLabel/index.js.map +0 -1
- package/CapMenu/CapMenu.d.ts +0 -27
- package/CapMenu/CapMenu.d.ts.map +0 -1
- package/CapMenu/CapMenu.test.d.ts +0 -2
- package/CapMenu/CapMenu.test.d.ts.map +0 -1
- package/CapMenu/index.d.ts +0 -3
- package/CapMenu/index.d.ts.map +0 -1
- package/CapMenu/index.js +0 -716
- package/CapMenu/index.js.map +0 -1
- package/CapRadio/CapRadio.d.ts +0 -18
- package/CapRadio/CapRadio.d.ts.map +0 -1
- package/CapRadio/CapRadio.test.d.ts +0 -2
- package/CapRadio/CapRadio.test.d.ts.map +0 -1
- package/CapRadio/index.d.ts +0 -3
- package/CapRadio/index.d.ts.map +0 -1
- package/CapRadio/index.js +0 -918
- package/CapRadio/index.js.map +0 -1
- package/CapRow/CapRow.d.ts +0 -27
- package/CapRow/CapRow.d.ts.map +0 -1
- package/CapRow/CapRow.test.d.ts +0 -2
- package/CapRow/CapRow.test.d.ts.map +0 -1
- package/CapRow/index.d.ts +0 -3
- package/CapRow/index.d.ts.map +0 -1
- package/CapRow/index.js +0 -751
- package/CapRow/index.js.map +0 -1
- package/CapSkeleton/CapSkeleton.d.ts +0 -8
- package/CapSkeleton/CapSkeleton.d.ts.map +0 -1
- package/CapSkeleton/CapSkeleton.test.d.ts +0 -2
- package/CapSkeleton/CapSkeleton.test.d.ts.map +0 -1
- package/CapSkeleton/index.d.ts +0 -3
- package/CapSkeleton/index.d.ts.map +0 -1
- package/CapSkeleton/index.js +0 -124
- package/CapSkeleton/index.js.map +0 -1
- package/CapSpin/CapSpin.d.ts +0 -8
- package/CapSpin/CapSpin.d.ts.map +0 -1
- package/CapSpin/CapSpin.test.d.ts +0 -2
- package/CapSpin/CapSpin.test.d.ts.map +0 -1
- package/CapSpin/index.d.ts +0 -3
- package/CapSpin/index.d.ts.map +0 -1
- package/CapSpin/index.js +0 -123
- package/CapSpin/index.js.map +0 -1
- package/CapSwitch/CapSwitch.d.ts +0 -12
- package/CapSwitch/CapSwitch.d.ts.map +0 -1
- package/CapSwitch/CapSwitch.test.d.ts +0 -2
- package/CapSwitch/CapSwitch.test.d.ts.map +0 -1
- package/CapSwitch/index.d.ts +0 -3
- package/CapSwitch/index.d.ts.map +0 -1
- package/CapSwitch/index.js +0 -700
- package/CapSwitch/index.js.map +0 -1
- package/CapTab/CapTab.d.ts +0 -21
- package/CapTab/CapTab.d.ts.map +0 -1
- package/CapTab/CapTab.test.d.ts +0 -2
- package/CapTab/CapTab.test.d.ts.map +0 -1
- package/CapTab/index.d.ts +0 -3
- package/CapTab/index.d.ts.map +0 -1
- package/CapTab/index.js +0 -729
- package/CapTab/index.js.map +0 -1
- package/CapTable/CapTable.d.ts +0 -27
- package/CapTable/CapTable.d.ts.map +0 -1
- package/CapTable/CapTable.test.d.ts +0 -2
- package/CapTable/CapTable.test.d.ts.map +0 -1
- package/CapTable/index.d.ts +0 -3
- package/CapTable/index.d.ts.map +0 -1
- package/CapTable/index.js +0 -18315
- package/CapTable/index.js.map +0 -1
- package/CapTable/loadable.d.ts +0 -5
- package/CapTable/loadable.d.ts.map +0 -1
- package/CapTable/loadable.test.d.ts +0 -2
- package/CapTable/loadable.test.d.ts.map +0 -1
- package/CapTestSelect/CapTestSelect.d.ts +0 -24
- package/CapTestSelect/CapTestSelect.d.ts.map +0 -1
- package/CapTestSelect/CapTestSelect.test.d.ts +0 -2
- package/CapTestSelect/CapTestSelect.test.d.ts.map +0 -1
- package/CapTestSelect/index.d.ts +0 -3
- package/CapTestSelect/index.d.ts.map +0 -1
- package/CapTestSelect/index.js +0 -130
- package/CapTestSelect/index.js.map +0 -1
- package/CapTooltip/CapTooltip.d.ts +0 -10
- package/CapTooltip/CapTooltip.d.ts.map +0 -1
- package/CapTooltip/CapTooltip.test.d.ts +0 -2
- package/CapTooltip/CapTooltip.test.d.ts.map +0 -1
- package/CapTooltip/index.d.ts +0 -3
- package/CapTooltip/index.d.ts.map +0 -1
- package/CapTooltip/index.js +0 -730
- package/CapTooltip/index.js.map +0 -1
- package/CapTooltipWithInfo/CapTooltipWithInfo.d.ts +0 -18
- package/CapTooltipWithInfo/CapTooltipWithInfo.d.ts.map +0 -1
- package/CapTooltipWithInfo/CapTooltipWithInfo.test.d.ts +0 -2
- package/CapTooltipWithInfo/CapTooltipWithInfo.test.d.ts.map +0 -1
- package/CapTooltipWithInfo/index.d.ts +0 -3
- package/CapTooltipWithInfo/index.d.ts.map +0 -1
- package/CapTooltipWithInfo/index.js +0 -1156
- package/CapTooltipWithInfo/index.js.map +0 -1
- package/CapUnifiedSelect/CapUnifiedSelect.d.ts +0 -133
- package/CapUnifiedSelect/CapUnifiedSelect.d.ts.map +0 -1
- package/CapUnifiedSelect/CapUnifiedSelect.test.d.ts +0 -2
- package/CapUnifiedSelect/CapUnifiedSelect.test.d.ts.map +0 -1
- package/CapUnifiedSelect/components.d.ts +0 -9
- package/CapUnifiedSelect/components.d.ts.map +0 -1
- package/CapUnifiedSelect/constants.d.ts +0 -31
- package/CapUnifiedSelect/constants.d.ts.map +0 -1
- package/CapUnifiedSelect/index.d.ts +0 -3
- package/CapUnifiedSelect/index.d.ts.map +0 -1
- package/CapUnifiedSelect/index.js +0 -3145
- package/CapUnifiedSelect/index.js.map +0 -1
- package/CapUnifiedSelect/messages.d.ts +0 -24
- package/CapUnifiedSelect/messages.d.ts.map +0 -1
- package/CapUnifiedSelect/testData.d.ts +0 -75
- package/CapUnifiedSelect/testData.d.ts.map +0 -1
- package/CapUnifiedSelect/types.d.ts +0 -45
- package/CapUnifiedSelect/types.d.ts.map +0 -1
- package/CapUnifiedSelect/utils.d.ts +0 -34
- package/CapUnifiedSelect/utils.d.ts.map +0 -1
- package/LocaleHoc/index.d.ts +0 -9
- package/LocaleHoc/index.d.ts.map +0 -1
- package/LocaleHoc/index.js +0 -465
- package/LocaleHoc/index.js.map +0 -1
- package/LocaleHoc/index.test.d.ts +0 -2
- package/LocaleHoc/index.test.d.ts.map +0 -1
- package/assets/upload.svg +0 -3
- package/index.d.ts +0 -54
- package/index.d.ts.map +0 -1
- package/index.js +0 -24030
- package/index.js.map +0 -1
- package/styled/variables.d.ts +0 -150
- package/styled/variables.d.ts.map +0 -1
- package/styled/variables.scss +0 -194
- package/utils/fonts.d.ts +0 -49
- package/utils/fonts.d.ts.map +0 -1
- package/utils/fonts.test.d.ts +0 -2
- package/utils/fonts.test.d.ts.map +0 -1
- package/utils/index.d.ts +0 -44
- package/utils/index.d.ts.map +0 -1
- package/utils/index.js +0 -1147
- package/utils/index.js.map +0 -1
- package/utils/styles.d.ts +0 -19
- package/utils/styles.d.ts.map +0 -1
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const mockOptions: {
|
|
3
|
-
label: string;
|
|
4
|
-
value: string;
|
|
5
|
-
}[];
|
|
6
|
-
export declare const mockTreeOptions: {
|
|
7
|
-
label: string;
|
|
8
|
-
value: string;
|
|
9
|
-
children: {
|
|
10
|
-
label: string;
|
|
11
|
-
value: string;
|
|
12
|
-
}[];
|
|
13
|
-
}[];
|
|
14
|
-
export declare const mockTreeOptionsWithMixed: {
|
|
15
|
-
label: string;
|
|
16
|
-
value: string;
|
|
17
|
-
children: {
|
|
18
|
-
label: string;
|
|
19
|
-
value: string;
|
|
20
|
-
}[];
|
|
21
|
-
}[];
|
|
22
|
-
export declare const mockAsyncResults: {
|
|
23
|
-
label: string;
|
|
24
|
-
value: string;
|
|
25
|
-
}[];
|
|
26
|
-
export declare const mockAsyncResultsForCache: {
|
|
27
|
-
label: string;
|
|
28
|
-
value: string;
|
|
29
|
-
}[];
|
|
30
|
-
export declare const mockAsyncResultsForResetSearch: {
|
|
31
|
-
label: string;
|
|
32
|
-
value: string;
|
|
33
|
-
}[];
|
|
34
|
-
export declare const mockAsyncResultsForScroll: {
|
|
35
|
-
label: string;
|
|
36
|
-
value: string;
|
|
37
|
-
}[];
|
|
38
|
-
export declare const mockSimpleAsyncResult: {
|
|
39
|
-
label: string;
|
|
40
|
-
value: string;
|
|
41
|
-
}[];
|
|
42
|
-
export declare const mockInitialOptions: {
|
|
43
|
-
label: string;
|
|
44
|
-
value: string;
|
|
45
|
-
}[];
|
|
46
|
-
export declare const mockUpdatedOptions: {
|
|
47
|
-
label: string;
|
|
48
|
-
value: string;
|
|
49
|
-
}[];
|
|
50
|
-
export declare const mockNewOptions: {
|
|
51
|
-
label: string;
|
|
52
|
-
value: string;
|
|
53
|
-
}[];
|
|
54
|
-
export declare const getMockOptionsWithReactTitle: () => {
|
|
55
|
-
label: string;
|
|
56
|
-
value: string;
|
|
57
|
-
title: React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
58
|
-
}[];
|
|
59
|
-
export declare const mockEmptyOptions: Array<{
|
|
60
|
-
label: string;
|
|
61
|
-
value: string;
|
|
62
|
-
}>;
|
|
63
|
-
export declare const simpleOptions: {
|
|
64
|
-
label: string;
|
|
65
|
-
value: string;
|
|
66
|
-
}[];
|
|
67
|
-
export declare const treeOptions: {
|
|
68
|
-
label: string;
|
|
69
|
-
value: string;
|
|
70
|
-
children: {
|
|
71
|
-
label: string;
|
|
72
|
-
value: string;
|
|
73
|
-
}[];
|
|
74
|
-
}[];
|
|
75
|
-
//# sourceMappingURL=testData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testData.d.ts","sourceRoot":"","sources":["../../components/CapUnifiedSelect/testData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,WAAW;;;GAIvB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;GAc3B,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;GASpC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;GAG5B,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;GAGpC,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;GAG1C,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;GAGrC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;GAAyC,CAAC;AAE5E,eAAO,MAAM,kBAAkB;;;GAG9B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;GAG9B,CAAC;AAEF,eAAO,MAAM,cAAc;;;GAG1B,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;GAWxC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAM,CAAC;AAE5E,eAAO,MAAM,aAAa;;;GAMzB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;GA4BvB,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Represents a single option in the unified select component
|
|
4
|
-
*/
|
|
5
|
-
export interface OptionData {
|
|
6
|
-
label?: React.ReactNode;
|
|
7
|
-
value?: string | number;
|
|
8
|
-
key?: string | number;
|
|
9
|
-
title?: React.ReactNode;
|
|
10
|
-
children?: OptionData[];
|
|
11
|
-
optionSuffix?: React.ReactNode;
|
|
12
|
-
optionSuffixInfo?: React.ReactNode;
|
|
13
|
-
optionTooltipInfo?: React.ReactNode;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Tree data structure maps for efficient tree operations
|
|
19
|
-
*/
|
|
20
|
-
export interface TreeMaps {
|
|
21
|
-
leafValues: (string | number)[];
|
|
22
|
-
parentChildMap: Record<string | number, (string | number)[]>;
|
|
23
|
-
nodeMap: Record<string | number, OptionData>;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Props for the NoResult component
|
|
27
|
-
*/
|
|
28
|
-
export interface NoResultProps {
|
|
29
|
-
noResultCustomText?: string;
|
|
30
|
-
className?: string;
|
|
31
|
-
showUpload?: boolean;
|
|
32
|
-
options?: OptionData[];
|
|
33
|
-
noResultCustomIcon?: string;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Props for the SelectAllCheckbox component
|
|
37
|
-
*/
|
|
38
|
-
export interface SelectAllCheckboxProps {
|
|
39
|
-
currentItems: OptionData[];
|
|
40
|
-
tempValue: (string | number)[] | undefined;
|
|
41
|
-
setTempValue: (value: (string | number)[]) => void;
|
|
42
|
-
processTreeData: (nodes: OptionData[]) => TreeMaps;
|
|
43
|
-
disabled?: boolean;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../components/CapUnifiedSelect/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAChC,cAAc,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;IAC7D,OAAO,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,UAAU,CAAC,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,UAAU,EAAE,CAAC;IAC3B,SAAS,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC;IAC3C,YAAY,EAAE,CAAC,KAAK,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KAAK,IAAI,CAAC;IACnD,eAAe,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,QAAQ,CAAC;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { OptionData, TreeMaps } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Builds tree maps for efficient tree operations
|
|
4
|
-
* Creates maps for leaf values, parent-child relationships, and node lookups
|
|
5
|
-
*/
|
|
6
|
-
export declare const buildTreeMaps: (nodes?: OptionData[]) => TreeMaps;
|
|
7
|
-
/**
|
|
8
|
-
* Counts the number of selected leaf nodes in a tree structure
|
|
9
|
-
* Handles parent-child relationships by expanding selected parent nodes
|
|
10
|
-
*/
|
|
11
|
-
export declare const countSelectedLeaves: (treeMaps: TreeMaps, selectedValues?: (string | number)[]) => number;
|
|
12
|
-
/**
|
|
13
|
-
* Filters tree data based on search query
|
|
14
|
-
* Includes nodes that match search OR are selected OR have matching children
|
|
15
|
-
* Supports searching by label, value, or key
|
|
16
|
-
*/
|
|
17
|
-
export declare const filterTreeData: (data: OptionData[], search?: string, searchBasedOn?: "label" | "value" | "key", selectedValues?: (string | number)[]) => OptionData[];
|
|
18
|
-
/**
|
|
19
|
-
* Checks if a value exists in options (recursive for tree structures)
|
|
20
|
-
*/
|
|
21
|
-
export declare const findValueInOptions: (opts: OptionData[], targetValue: string | number) => boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Finds selected values that don't exist in the current options
|
|
24
|
-
*/
|
|
25
|
-
export declare const findMissingValues: (selectedValues: (string | number)[], currentOptions: OptionData[]) => (string | number)[];
|
|
26
|
-
/**
|
|
27
|
-
* Reorders options based on selection order
|
|
28
|
-
* Selected items are moved to top in the order they were selected
|
|
29
|
-
* For tree structures, maintains parent-child relationships
|
|
30
|
-
* For flat lists, directly reorders items
|
|
31
|
-
* Works for all data types: flat lists, tree structures, nested trees
|
|
32
|
-
*/
|
|
33
|
-
export declare const reorderOptionsBySelection: (opts: OptionData[], selectedOrder: (string | number)[]) => OptionData[];
|
|
34
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../components/CapUnifiedSelect/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,QAAQ,UAAU,EAAE,KAAG,QAyBpD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAC9B,UAAU,QAAQ,EAClB,iBAAiB,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KACnC,MAkBF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GACzB,MAAM,UAAU,EAAE,EAClB,SAAS,MAAM,EACf,gBAAe,OAAO,GAAG,OAAO,GAAG,KAAe,EAClD,iBAAiB,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KACnC,UAAU,EA8BZ,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAM,UAAU,EAAE,EAAE,aAAa,MAAM,GAAG,MAAM,KAAG,OAYrF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAC5B,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EACnC,gBAAgB,UAAU,EAAE,KAC3B,CAAC,MAAM,GAAG,MAAM,CAAC,EAMnB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,GACpC,MAAM,UAAU,EAAE,EAClB,eAAe,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KACjC,UAAU,EAiGZ,CAAC"}
|
package/LocaleHoc/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { WrappedComponentProps } from 'react-intl';
|
|
3
|
-
declare const LocaleHoc: <P extends {}>(WrapperComponent: React.ComponentType<P>, customProps: {
|
|
4
|
-
key: string;
|
|
5
|
-
}) => React.FC<import("react-intl").WithIntlProps<P & WrappedComponentProps>> & {
|
|
6
|
-
WrappedComponent: React.ComponentType<P & WrappedComponentProps>;
|
|
7
|
-
};
|
|
8
|
-
export default LocaleHoc;
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
package/LocaleHoc/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/LocaleHoc/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAc,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAM/D,QAAA,MAAM,SAAS,GAAI,CAAC,SAAS,EAAE,EAC7B,kBAAkB,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EACxC,aAAa;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE;;CA4B7B,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/LocaleHoc/index.js
DELETED
|
@@ -1,465 +0,0 @@
|
|
|
1
|
-
/******/ (() => { // webpackBootstrap
|
|
2
|
-
/******/ "use strict";
|
|
3
|
-
/******/ var __webpack_modules__ = ({
|
|
4
|
-
|
|
5
|
-
/***/ 26:
|
|
6
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.__esModule = true;
|
|
11
|
-
exports["default"] = void 0;
|
|
12
|
-
var _default = exports["default"] = {
|
|
13
|
-
CapMultiSelect: {
|
|
14
|
-
noResultsFoundText: "No results found",
|
|
15
|
-
selectText: "Select",
|
|
16
|
-
closeText: "Close",
|
|
17
|
-
searchPlaceholder: "Search",
|
|
18
|
-
selectedText: "selected",
|
|
19
|
-
selectAllText: "Select all",
|
|
20
|
-
selectAllSearchResultsText: "Select all searched results",
|
|
21
|
-
moreText: "more"
|
|
22
|
-
},
|
|
23
|
-
CapModal: {
|
|
24
|
-
okText: 'Yes',
|
|
25
|
-
closeText: 'No'
|
|
26
|
-
},
|
|
27
|
-
CapMultiSelectWithTree: {
|
|
28
|
-
noResultsFoundText: "No results found",
|
|
29
|
-
selectText: "Select",
|
|
30
|
-
closeText: "Close",
|
|
31
|
-
searchPlaceholder: "Search",
|
|
32
|
-
selectedText: "selected",
|
|
33
|
-
selectAllText: "Select all",
|
|
34
|
-
selectAllSearchResultsText: "Select all searched results",
|
|
35
|
-
moreText: "more",
|
|
36
|
-
storeUploadsText: "Store IDs are uploaded already"
|
|
37
|
-
},
|
|
38
|
-
CapCustomSelect: {
|
|
39
|
-
searchPlaceholder: 'Search',
|
|
40
|
-
selectPlaceholder: 'Select Option'
|
|
41
|
-
},
|
|
42
|
-
CapMultiSelectDatePicker: {
|
|
43
|
-
lastDayText: 'Last day of month'
|
|
44
|
-
},
|
|
45
|
-
CapTable: {
|
|
46
|
-
loadMoreData: 'Loading more data...'
|
|
47
|
-
},
|
|
48
|
-
CapIllustration: {
|
|
49
|
-
accessForbiddenMsg: 'Action cannot be performed due to insufficient permission'
|
|
50
|
-
},
|
|
51
|
-
CapNavigation: {
|
|
52
|
-
businessProcesses: 'Workbench',
|
|
53
|
-
wecrm: 'Wecrm',
|
|
54
|
-
loyaltyProgram: 'Loyalty+',
|
|
55
|
-
storePerformance: 'Store Performance',
|
|
56
|
-
memberCare: 'Member Care',
|
|
57
|
-
storeCare: 'Store Care',
|
|
58
|
-
insights: 'Insights+',
|
|
59
|
-
connectPlus: 'Connect+',
|
|
60
|
-
settingsLabel: 'Settings',
|
|
61
|
-
campaign: 'Engage+',
|
|
62
|
-
selectOrganization: 'Select Organization',
|
|
63
|
-
organization: 'Organization',
|
|
64
|
-
noResultText: 'No results found',
|
|
65
|
-
selectProduct: 'Select Product'
|
|
66
|
-
},
|
|
67
|
-
InfoNote: {
|
|
68
|
-
noteText: 'Note'
|
|
69
|
-
},
|
|
70
|
-
SomethingWentWrong: {
|
|
71
|
-
title: 'Sorry, something went wrong.',
|
|
72
|
-
description: 'Please try again. If this issue occurs again, please reach out to Capillary support team.',
|
|
73
|
-
reloadText: 'Try refreshing again'
|
|
74
|
-
},
|
|
75
|
-
CapBlock: {
|
|
76
|
-
deleteBlockMsg: 'Delete',
|
|
77
|
-
expandBlockMsg: 'Expand',
|
|
78
|
-
collapseBlockMsg: 'Collapse'
|
|
79
|
-
},
|
|
80
|
-
CapMultiplePath: {
|
|
81
|
-
notUniqueMsg: 'Not Unique',
|
|
82
|
-
deleteConfirmationTitleMsg: 'Confirm delete path',
|
|
83
|
-
deleteConfirmationTextMsg: 'Are you sure you wish to delete path',
|
|
84
|
-
deleteConfirmationWarningMsg: 'This action cannot be undone.',
|
|
85
|
-
deleteButtonTextMsg: 'Yes, Delete',
|
|
86
|
-
yesMsg: 'Yes',
|
|
87
|
-
noMsg: 'No',
|
|
88
|
-
pathMsg: 'Path',
|
|
89
|
-
addPathMessage: 'Add Path'
|
|
90
|
-
},
|
|
91
|
-
CapCondition: {
|
|
92
|
-
includeMsg: 'include',
|
|
93
|
-
excludeMsg: 'exclude',
|
|
94
|
-
equalMsg: 'equal to',
|
|
95
|
-
greaterThanMsg: 'greater than',
|
|
96
|
-
lessThanMsg: 'less than',
|
|
97
|
-
greaterThanOrEqualMsg: 'greater than or equal to',
|
|
98
|
-
lessThanorEqualMsg: 'less than or equal',
|
|
99
|
-
inRangeMsg: 'in range',
|
|
100
|
-
notEqualMsg: 'not equal to',
|
|
101
|
-
whoseMsg: 'Whose',
|
|
102
|
-
isMsg: 'is',
|
|
103
|
-
andMsg: 'and',
|
|
104
|
-
ANDMsg: 'AND',
|
|
105
|
-
containsMsg: 'contains',
|
|
106
|
-
startsWithMsg: 'starts with',
|
|
107
|
-
endsWithMsg: 'ends with',
|
|
108
|
-
exactMsg: 'exact',
|
|
109
|
-
conditionStringInputPlaceholderMsg: 'Enter min. 3 characters',
|
|
110
|
-
lineItemMsg: 'only for lineitems with',
|
|
111
|
-
withMsg: 'with',
|
|
112
|
-
additionalFieldsMsg: 'Additional condition',
|
|
113
|
-
plusMinus: '+/-',
|
|
114
|
-
inMsg: 'in',
|
|
115
|
-
notInMsg: 'not in',
|
|
116
|
-
uploadFailedError: 'Upload failed',
|
|
117
|
-
uploadLimitExceeded: 'Please do not upload more than 1000 store codes',
|
|
118
|
-
uploadReqLoader: 'Uploading stores',
|
|
119
|
-
or: 'OR',
|
|
120
|
-
search: 'Search',
|
|
121
|
-
searchWithExact: 'Search with exact keyword',
|
|
122
|
-
customFieldsTag: 'custom fields',
|
|
123
|
-
storeSearchMsg: 'Enter min. 3 characters to search',
|
|
124
|
-
uploadInProgressMsg: 'Upload in progress',
|
|
125
|
-
unsupportedCsvHeaderMsg: "The CSV header must be 'Store code' or 'Store id'",
|
|
126
|
-
csvFileNoEntryTxt: "Please upload a file with atleast one entry",
|
|
127
|
-
downloadedMsg: "downloaded",
|
|
128
|
-
reuploadFileMsg: 'Reupload file',
|
|
129
|
-
storeIdsMsg: 'Store IDs',
|
|
130
|
-
downloadStoreIdMsg: 'Download Store ID',
|
|
131
|
-
downloadStoreIdCodeNameMsg: 'Download Store ID, code & name',
|
|
132
|
-
downloadInProgressMsg: 'Download in progress, might take a while'
|
|
133
|
-
},
|
|
134
|
-
CapConditionPreview: {
|
|
135
|
-
includeMsg: 'Include',
|
|
136
|
-
excludeMsg: 'Exclude',
|
|
137
|
-
equalMsg: 'equal to',
|
|
138
|
-
greaterThanMsg: 'greater than',
|
|
139
|
-
lessThanMsg: 'less than',
|
|
140
|
-
greaterThanOrEqualMsg: 'greater than or equal to',
|
|
141
|
-
lessThanorEqualMsg: 'less than or equal',
|
|
142
|
-
inRangeMsg: 'in range',
|
|
143
|
-
notEqualMsg: 'not equal to',
|
|
144
|
-
whoseMsg: 'whose',
|
|
145
|
-
isMsg: 'is',
|
|
146
|
-
andMsg: 'and',
|
|
147
|
-
ANDMsg: 'AND',
|
|
148
|
-
lineItemMsg: 'only for lineitems with',
|
|
149
|
-
withMsg: 'with',
|
|
150
|
-
addedSKUsMsg: 'Added SKUs',
|
|
151
|
-
skuFileName: 'SKU.csv',
|
|
152
|
-
uploadedMsg: 'uploaded',
|
|
153
|
-
inMsg: 'in',
|
|
154
|
-
notInMsg: 'not in',
|
|
155
|
-
storesMsg: 'Stores',
|
|
156
|
-
viewMoreMsg: 'View more',
|
|
157
|
-
uploadInProgressMsg: 'Upload in progress',
|
|
158
|
-
uploadFailedErrorMsg: 'Upload failed',
|
|
159
|
-
uploadInvalidErrorMsg: 'Invalid file uploaded'
|
|
160
|
-
},
|
|
161
|
-
CapPopoverTree: {
|
|
162
|
-
emptyDataMessage: 'No data found',
|
|
163
|
-
searchPlaceholder: 'Search'
|
|
164
|
-
},
|
|
165
|
-
CapGraphBlockNode: {
|
|
166
|
-
configureText: 'Configure',
|
|
167
|
-
replaceEngagementBlockMsg: 'Replace engagement block'
|
|
168
|
-
},
|
|
169
|
-
CapStaticTemplates: {
|
|
170
|
-
strategyTitleMsg: 'Select the strategy',
|
|
171
|
-
strategyDescriptionMsg: 'Use strategy driven pre-defined marketing use-cases or build your own strategy',
|
|
172
|
-
comingSoonMsg: 'Coming soon',
|
|
173
|
-
blankCategoryLabel: 'Custom',
|
|
174
|
-
blankTemplateLabel: 'Build from scratch',
|
|
175
|
-
blankTemplateDescription: 'Create your own journey from scratch',
|
|
176
|
-
searchPlaceholderMsg: 'Search strategy'
|
|
177
|
-
},
|
|
178
|
-
CapProductSelection: {
|
|
179
|
-
lineItem: 'Line items',
|
|
180
|
-
selectAttribute: 'Select Attribute',
|
|
181
|
-
brand: 'Brand',
|
|
182
|
-
brandInfo: 'Brand',
|
|
183
|
-
category: 'Category',
|
|
184
|
-
categoryInfo: 'Category',
|
|
185
|
-
product: 'Product',
|
|
186
|
-
productInfo: 'Product',
|
|
187
|
-
SKU: 'SKU',
|
|
188
|
-
uploadSKU: 'Upload SKU',
|
|
189
|
-
uploadSKUInfo: 'Upload SKU',
|
|
190
|
-
changeSelection: 'Change the selection',
|
|
191
|
-
description: 'Changing the attribute of additional condition will result in lose of previously defined additional condition',
|
|
192
|
-
okText: 'Yes, change',
|
|
193
|
-
cancelText: 'Cancel',
|
|
194
|
-
comingSoon: 'Coming soon',
|
|
195
|
-
selectValues: 'Select value(s)',
|
|
196
|
-
atleast1Attribute: 'At least 1 attribute is required'
|
|
197
|
-
},
|
|
198
|
-
CapTruncateList: {
|
|
199
|
-
more: 'more'
|
|
200
|
-
},
|
|
201
|
-
CapSKUUploader: {
|
|
202
|
-
validatingSKUs: 'Validating SKUs',
|
|
203
|
-
invalid: 'invalid',
|
|
204
|
-
invalidSKUs: 'Invalid SKUs',
|
|
205
|
-
valid: 'valid',
|
|
206
|
-
addedSKUsMsg: 'Added SKUs',
|
|
207
|
-
skuFileName: 'SKU.csv',
|
|
208
|
-
invalidSKUFilename: 'invalidSKU.csv',
|
|
209
|
-
uploadedMsg: 'uploaded'
|
|
210
|
-
},
|
|
211
|
-
CapDndGraph: {
|
|
212
|
-
deleteBlockModalHeaderText: 'Delete block',
|
|
213
|
-
deleteBlockModalDescriptionText: 'Are you sure you want to delete this block?',
|
|
214
|
-
yesDeleteButtonText: 'Yes, delete',
|
|
215
|
-
noButtonText: 'No',
|
|
216
|
-
joinDropErrorText: "Join block can only be added at the end of the path",
|
|
217
|
-
jumpDropErrorText: "Jump block can only be added at the end of the path",
|
|
218
|
-
theText: 'The',
|
|
219
|
-
endText: 'End',
|
|
220
|
-
blockIsLinkedText: 'block is linked to the',
|
|
221
|
-
blockText: 'block.',
|
|
222
|
-
disconnectText: 'Deleting this block will disconnect the join.',
|
|
223
|
-
areYouSureText: 'Are you sure?'
|
|
224
|
-
},
|
|
225
|
-
CapDragAndDrop: {
|
|
226
|
-
dropboxtext: 'Drop here!',
|
|
227
|
-
selectFilesText: 'Select files from your computer',
|
|
228
|
-
invalidFileSelectionText: 'Invalid file selection!',
|
|
229
|
-
or: 'OR',
|
|
230
|
-
droptext: 'Drag and drop files'
|
|
231
|
-
},
|
|
232
|
-
CapRoadMap: {
|
|
233
|
-
defaultRoadMapDisabledMessage: "Not configured yet"
|
|
234
|
-
},
|
|
235
|
-
CapTimelineCard: {
|
|
236
|
-
defaultConfiguringMessage: 'Configuring...',
|
|
237
|
-
defaultNotConfiguredMessage: 'Not configured yet...',
|
|
238
|
-
toConfigure: 'To configure ',
|
|
239
|
-
completePrevSteps: ' complete the previous steps.'
|
|
240
|
-
},
|
|
241
|
-
CapTimelineNestedCard: {
|
|
242
|
-
defaultConfiguringMessage: 'Configuring...',
|
|
243
|
-
defaultNotConfiguredMessage: 'Not configured yet...',
|
|
244
|
-
toConfigure: 'To configure ',
|
|
245
|
-
completePrevSteps: ' complete the previous steps.'
|
|
246
|
-
},
|
|
247
|
-
NestedCardParent: {
|
|
248
|
-
defaultNestedTitle: 'Triggers',
|
|
249
|
-
toConfigure: 'To configure ',
|
|
250
|
-
completePrevSteps: ' complete the previous steps.'
|
|
251
|
-
},
|
|
252
|
-
'CapAskAira.DocumentationBot': {
|
|
253
|
-
textAskYourQuestion: "Ask your question here",
|
|
254
|
-
textVisitDocs: "Visit Capillary Documentation",
|
|
255
|
-
textNeedHelp: "Need more help?",
|
|
256
|
-
textHowMayIHelp: "How may AI help you?",
|
|
257
|
-
textAira: "AiRA Documentation Bot",
|
|
258
|
-
textLinks: "Links",
|
|
259
|
-
textWasHelpful: "Was this response helpful?",
|
|
260
|
-
textConfidence: "confidence",
|
|
261
|
-
textTooltip: "Need help? Ask Aira",
|
|
262
|
-
textCantConnect: "Can't connect to the server."
|
|
263
|
-
},
|
|
264
|
-
'CapAskAira.RuleGenerationBot': {
|
|
265
|
-
textTypeAMessage: 'Type a message above and ask AiRA to recommend the best content',
|
|
266
|
-
textError: "An error occurred while generating rule. Try again.",
|
|
267
|
-
textAiraTitle: "AiRA Rule Generation",
|
|
268
|
-
textAiraTooltip: "AiRA, our proprietary AI tool, generates rule expressions based on text query.",
|
|
269
|
-
textCopy: "Copy",
|
|
270
|
-
textCopied: "Copied",
|
|
271
|
-
textRulePlaceholder: "Enter query...",
|
|
272
|
-
textRuleLoading: "Rule is loading... Hang tight!",
|
|
273
|
-
textThank: 'Thank you for your response!',
|
|
274
|
-
textWarn: 'Aira responses may be inaccurate or misleading. Help us to improve!',
|
|
275
|
-
textAddCommentPlaceholder: 'Add comment'
|
|
276
|
-
},
|
|
277
|
-
'CapAskAira.ContentGenerationBot': {
|
|
278
|
-
textTypeAMessage: 'Type a message above and ask AiRA to recommend the best content',
|
|
279
|
-
textRecommendationsLoading: "Recommendations loading... Hang tight!",
|
|
280
|
-
textError: "An error occurred while loading recommendations. Try again.",
|
|
281
|
-
textAiraTitle: "AiRA Content Recommendations",
|
|
282
|
-
textAiraTooltip: "AiRA, our proprietary AI tool, recommends tailored language to effectively engage customers and prompt desired actions.",
|
|
283
|
-
textLoading: "loading...",
|
|
284
|
-
textCharacters: "characters",
|
|
285
|
-
textReplaceWithThis: "Replace with this",
|
|
286
|
-
textReplaced: 'Replaced',
|
|
287
|
-
textResetToDefault: "Reset to default",
|
|
288
|
-
textMoreLikeThis: "More like this",
|
|
289
|
-
textGenerateMore: "Generate more"
|
|
290
|
-
},
|
|
291
|
-
'CapAskAira.ConfigurationBot': {
|
|
292
|
-
textAiraTitle: 'Aira Configuration Bot',
|
|
293
|
-
textAiraTooltip: "Aira, our proprietary AI tool, helps you configure promotions, campaigns, and more.",
|
|
294
|
-
textTypeAMessage: 'Type a message above and ask AiRA to recommend the best content',
|
|
295
|
-
textUser: 'Hello!',
|
|
296
|
-
textPilot: "I'm your Copilot. I can create all type of promotions (milestones, streaks, etc.) on your behalf. Meanwhile, you can sit back, relax, and enjoy a cup of chai.",
|
|
297
|
-
textCouponTile: 'Milestone on GS',
|
|
298
|
-
textCouponDescription: 'Customer has to do 1000/- gross sales in a month, and can get 100 points.',
|
|
299
|
-
textPromotionTitle: 'Milestone on count',
|
|
300
|
-
textPromotionDescription: 'Eligible customers get points on every 5 transactions.',
|
|
301
|
-
textStreakTitle: 'Reward on referral',
|
|
302
|
-
textStreakDescription: 'Award customer 150 points if they refer 3 users in a month. Promotion starts on July 1 and runs for 5 months.',
|
|
303
|
-
textPromptHere: 'Enter a prompt here...',
|
|
304
|
-
textCouponPrompt: 'If customer does 1000 gross sales in a month, award them 100 points that expire in 20 days. Promotion runs from 1 July to 1 December.',
|
|
305
|
-
textPromotionPrompt: 'After every 5 transactions I want to award customer with 200 points. Only customers with more than 2000 lifetime points are eligible. Promotion runs from 1 July to 1 December',
|
|
306
|
-
textStreakPrompt: 'Award customer 150 points if they refer 3 users in a month. Promotion starts on July 1 and runs for 5 months. ',
|
|
307
|
-
textCantConnect: "Can't connect to the server.",
|
|
308
|
-
textCreate: 'Create',
|
|
309
|
-
textCancel: 'Cancel',
|
|
310
|
-
textGeneratingResponse: 'Generating response'
|
|
311
|
-
},
|
|
312
|
-
'CapAskAira.DocumentationChatBot': {
|
|
313
|
-
textBotPlaceholder: 'Ask Aira about anything on our CRM platform',
|
|
314
|
-
textChatBotLoader: 'Hang tight, analyzing your query...',
|
|
315
|
-
textChatBotDesc: 'Ask any doubts about our CRM platform and Aira will do its best to find answers',
|
|
316
|
-
textChatBot: 'Documentation Chat Bot'
|
|
317
|
-
},
|
|
318
|
-
'CapAskAira.CapAiMediaGeneration': {
|
|
319
|
-
textImageBotPlaceholder: 'Ask Aira to generate an image',
|
|
320
|
-
textChatBotLoader: 'Hang tight, analyzing your query...',
|
|
321
|
-
textImageBotDesc: 'Enter a prompt that describes your image.',
|
|
322
|
-
textImageBot: 'Aira Media Generator',
|
|
323
|
-
textImageFooter: 'Dragging and dropping generated images is only supported in the basic email builder.',
|
|
324
|
-
textTipsGenerate: 'Tips to generate better images:',
|
|
325
|
-
textCopy: 'Copy image',
|
|
326
|
-
textCopied: 'Copied',
|
|
327
|
-
textDownload: 'Download',
|
|
328
|
-
textImageDownload: 'Image downloaded successfully!',
|
|
329
|
-
textComingSoon: 'Coming soon',
|
|
330
|
-
textGenerateMore: 'Generate more'
|
|
331
|
-
},
|
|
332
|
-
'CapAskAira.RuleSummarizationBot': {
|
|
333
|
-
textRuleBotPlaceholder: 'Ask Aira to write an expression',
|
|
334
|
-
textSummarizeBotPlaceholder: 'Ask Aira to explain an expression',
|
|
335
|
-
textRuleChatBotLoader: 'Hang tight, analyzing your query...',
|
|
336
|
-
textRuleChatBotDesc: 'Write your detailed rule in simple english and Aira will write the expression for you',
|
|
337
|
-
textSummarizeChatBotDesc: 'Enter the expression and Aira will generate a summary in plain english',
|
|
338
|
-
textRuleChatBot: 'Aira Expression Translator'
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
|
|
342
|
-
/***/ }),
|
|
343
|
-
|
|
344
|
-
/***/ 1020:
|
|
345
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* @license React
|
|
349
|
-
* react-jsx-runtime.production.min.js
|
|
350
|
-
*
|
|
351
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
352
|
-
*
|
|
353
|
-
* This source code is licensed under the MIT license found in the
|
|
354
|
-
* LICENSE file in the root directory of this source tree.
|
|
355
|
-
*/
|
|
356
|
-
var f=__webpack_require__(9206),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
|
|
357
|
-
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
/***/ }),
|
|
361
|
-
|
|
362
|
-
/***/ 4848:
|
|
363
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
if (true) {
|
|
368
|
-
module.exports = __webpack_require__(1020);
|
|
369
|
-
} else // removed by dead control flow
|
|
370
|
-
{}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
/***/ }),
|
|
374
|
-
|
|
375
|
-
/***/ 6407:
|
|
376
|
-
/***/ ((module) => {
|
|
377
|
-
|
|
378
|
-
module.exports = require("react-intl");
|
|
379
|
-
|
|
380
|
-
/***/ }),
|
|
381
|
-
|
|
382
|
-
/***/ 9206:
|
|
383
|
-
/***/ ((module) => {
|
|
384
|
-
|
|
385
|
-
module.exports = require("react");
|
|
386
|
-
|
|
387
|
-
/***/ })
|
|
388
|
-
|
|
389
|
-
/******/ });
|
|
390
|
-
/************************************************************************/
|
|
391
|
-
/******/ // The module cache
|
|
392
|
-
/******/ var __webpack_module_cache__ = {};
|
|
393
|
-
/******/
|
|
394
|
-
/******/ // The require function
|
|
395
|
-
/******/ function __webpack_require__(moduleId) {
|
|
396
|
-
/******/ // Check if module is in cache
|
|
397
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
398
|
-
/******/ if (cachedModule !== undefined) {
|
|
399
|
-
/******/ return cachedModule.exports;
|
|
400
|
-
/******/ }
|
|
401
|
-
/******/ // Create a new module (and put it into the cache)
|
|
402
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
403
|
-
/******/ // no module.id needed
|
|
404
|
-
/******/ // no module.loaded needed
|
|
405
|
-
/******/ exports: {}
|
|
406
|
-
/******/ };
|
|
407
|
-
/******/
|
|
408
|
-
/******/ // Execute the module function
|
|
409
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
410
|
-
/******/
|
|
411
|
-
/******/ // Return the exports of the module
|
|
412
|
-
/******/ return module.exports;
|
|
413
|
-
/******/ }
|
|
414
|
-
/******/
|
|
415
|
-
/************************************************************************/
|
|
416
|
-
var __webpack_exports__ = {};
|
|
417
|
-
// This entry needs to be wrapped in an IIFE because it uses a non-standard name for the exports (exports).
|
|
418
|
-
(() => {
|
|
419
|
-
var exports = __webpack_exports__;
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
exports.__esModule = true;
|
|
423
|
-
exports["default"] = void 0;
|
|
424
|
-
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
425
|
-
var _reactIntl = __webpack_require__(6407);
|
|
426
|
-
var _en = _interopRequireDefault(__webpack_require__(26));
|
|
427
|
-
var _jsxRuntime = __webpack_require__(4848);
|
|
428
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
429
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
430
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
431
|
-
const prefix = "blaze.components";
|
|
432
|
-
const LocaleHoc = (WrapperComponent, customProps) => {
|
|
433
|
-
const Wrapper = props => {
|
|
434
|
-
const componentName = customProps.key;
|
|
435
|
-
const translatedDefaults = _en.default[componentName];
|
|
436
|
-
const {
|
|
437
|
-
intl
|
|
438
|
-
} = props;
|
|
439
|
-
const translatedProps = (0, _react.useMemo)(() => {
|
|
440
|
-
if (!translatedDefaults) return {};
|
|
441
|
-
return Object.keys(translatedDefaults).reduce((acc, key) => {
|
|
442
|
-
const id = prefix + "." + componentName + "." + key;
|
|
443
|
-
const defaultMessage = translatedDefaults[key];
|
|
444
|
-
try {
|
|
445
|
-
acc[key] = intl.formatMessage({
|
|
446
|
-
id,
|
|
447
|
-
defaultMessage
|
|
448
|
-
});
|
|
449
|
-
} catch (_err) {
|
|
450
|
-
acc[key] = defaultMessage;
|
|
451
|
-
}
|
|
452
|
-
return acc;
|
|
453
|
-
}, {});
|
|
454
|
-
}, [translatedDefaults, intl]);
|
|
455
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(WrapperComponent, _extends({}, translatedProps, props));
|
|
456
|
-
};
|
|
457
|
-
return (0, _reactIntl.injectIntl)(Wrapper);
|
|
458
|
-
};
|
|
459
|
-
var _default = exports["default"] = LocaleHoc;
|
|
460
|
-
})();
|
|
461
|
-
|
|
462
|
-
module.exports = __webpack_exports__;
|
|
463
|
-
/******/ })()
|
|
464
|
-
;
|
|
465
|
-
//# sourceMappingURL=index.js.map
|