@pisell/materials 6.4.15 → 6.4.16
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/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +22 -22
- package/build/lowcode/view.js +23 -23
- package/es/components/Pagination/index.d.ts +1 -1
- package/es/components/cardPro/index.js +10 -3
- package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.js +158 -22
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +17 -18
- package/es/components/filter/index.d.ts +0 -1
- package/es/components/iconfont/index.js +1 -1
- package/es/components/list/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -1
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/Group/index.d.ts +0 -1
- package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
- package/es/components/table/Actions/index.d.ts +0 -1
- package/es/components/table/BasicTable/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/es/components/table/Table/SelectField/index.d.ts +0 -1
- package/es/components/table/Table/fields/index.d.ts +2 -3
- package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/index.d.ts +0 -1
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/View/index.d.ts +0 -1
- package/es/locales/en-US.js +16 -1
- package/es/locales/zh-CN.js +16 -1
- package/es/locales/zh-TW.js +16 -1
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/cardPro/index.js +3 -2
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.js +182 -18
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +17 -18
- package/lib/components/filter/index.d.ts +0 -1
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/list/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -1
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
- package/lib/components/table/Actions/index.d.ts +0 -1
- package/lib/components/table/BasicTable/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/lib/components/table/Table/SelectField/index.d.ts +0 -1
- package/lib/components/table/Table/fields/index.d.ts +2 -3
- package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/index.d.ts +0 -1
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/View/index.d.ts +0 -1
- package/lib/locales/en-US.js +12 -1
- package/lib/locales/zh-CN.js +12 -1
- package/lib/locales/zh-TW.js +12 -1
- package/package.json +1 -1
- package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
- package/es/components/auto-resize-text/index.d.ts +0 -6
- package/es/components/cardPro/index.d.ts +0 -4
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/keyboard/index.d.ts +0 -22
- package/es/components/pisell-config-provider/context.d.ts +0 -22
- package/es/components/pisell-config-provider/index.d.ts +0 -13
- package/es/components/pisellAdjustPrice/index.d.ts +0 -4
- package/es/components/pisellAdjustPrice/status.d.ts +0 -32
- package/es/components/pisellAdjustPrice/type.d.ts +0 -22
- package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/es/components/pisellQRScanner/index.d.ts +0 -24
- package/es/components/pisellText/components/Amount/index.d.ts +0 -20
- package/es/components/pisellToast/index.d.ts +0 -17
- package/es/components/pisellToast/squareToast/index.d.ts +0 -15
- package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
- package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
- package/es/components/productCard/components/Action/index.d.ts +0 -3
- package/es/components/productCard/components/Header/index.d.ts +0 -3
- package/es/components/productCard/components/Sales/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/es/components/productCard/locales.d.ts +0 -84
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -6
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/es/components/virtual-keyboard/index.d.ts +0 -25
- package/es/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
- package/es/components/virtualInput/index.d.ts +0 -24
- package/es/locales/en-US.d.ts +0 -297
- package/es/locales/zh-CN.d.ts +0 -292
- package/es/locales/zh-TW.d.ts +0 -292
- package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
- package/lib/components/auto-resize-text/index.d.ts +0 -6
- package/lib/components/cardPro/index.d.ts +0 -4
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/keyboard/index.d.ts +0 -22
- package/lib/components/pisell-config-provider/context.d.ts +0 -22
- package/lib/components/pisell-config-provider/index.d.ts +0 -13
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
- package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
- package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
- package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/lib/components/pisellQRScanner/index.d.ts +0 -24
- package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
- package/lib/components/pisellToast/index.d.ts +0 -17
- package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
- package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
- package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
- package/lib/components/productCard/components/Action/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/index.d.ts +0 -3
- package/lib/components/productCard/components/Sales/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/lib/components/productCard/locales.d.ts +0 -84
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -6
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/lib/components/virtual-keyboard/index.d.ts +0 -25
- package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
- package/lib/components/virtualInput/index.d.ts +0 -24
- package/lib/locales/en-US.d.ts +0 -297
- package/lib/locales/zh-CN.d.ts +0 -292
- package/lib/locales/zh-TW.d.ts +0 -292
|
@@ -51,13 +51,14 @@ var CardPro = (props) => {
|
|
|
51
51
|
isShowHead,
|
|
52
52
|
className,
|
|
53
53
|
coverHeight,
|
|
54
|
-
badge
|
|
54
|
+
badge,
|
|
55
|
+
style
|
|
55
56
|
} = props;
|
|
56
57
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
57
58
|
import_antd.Card,
|
|
58
59
|
{
|
|
59
60
|
title: null,
|
|
60
|
-
style: { padding: 0 },
|
|
61
|
+
style: { padding: 0, ...style },
|
|
61
62
|
className: (0, import_classnames.default)(
|
|
62
63
|
"pisell-cardPro-wrap",
|
|
63
64
|
className,
|
|
@@ -19,7 +19,7 @@ interface UseTablePropsProps {
|
|
|
19
19
|
*/
|
|
20
20
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
21
21
|
currentComponentId: any;
|
|
22
|
-
title: number | boolean |
|
|
22
|
+
title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
23
23
|
pagination: {
|
|
24
24
|
total: number;
|
|
25
25
|
current: number;
|
|
@@ -28,7 +28,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
28
28
|
showSizeChanger: boolean;
|
|
29
29
|
};
|
|
30
30
|
columns: import("./useColumns").Column[];
|
|
31
|
-
subTitle: number | boolean |
|
|
31
|
+
subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
32
32
|
buttons: any[] | null;
|
|
33
33
|
filter: {
|
|
34
34
|
dom: any;
|
|
@@ -54,7 +54,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
54
54
|
width: number;
|
|
55
55
|
align: "center" | "left" | "right";
|
|
56
56
|
fixed: false | "left" | "right";
|
|
57
|
-
type: "
|
|
57
|
+
type: "button" | "link";
|
|
58
58
|
items: OperationItem[];
|
|
59
59
|
} | undefined;
|
|
60
60
|
operationContent?: {
|
|
@@ -72,7 +72,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
72
72
|
useCustomAction: boolean;
|
|
73
73
|
actionType: string;
|
|
74
74
|
openMode: "modal" | "drawer";
|
|
75
|
-
openContentSize: "
|
|
75
|
+
openContentSize: "large" | "small" | "middle";
|
|
76
76
|
openTitle: string;
|
|
77
77
|
key: string;
|
|
78
78
|
} | undefined;
|
|
@@ -97,32 +97,196 @@ var useCountries = () => {
|
|
|
97
97
|
}, [isShop]);
|
|
98
98
|
const currentData = (0, import_react.useMemo)(() => {
|
|
99
99
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
100
|
+
let codeList = null;
|
|
100
101
|
if (isShop) {
|
|
101
|
-
|
|
102
|
+
codeList = ((_d = (_c = (_b = (_a = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _a.store) == null ? void 0 : _b.getState()) == null ? void 0 : _c.global) == null ? void 0 : _d.codeList) || shopData;
|
|
103
|
+
} else if (isPc) {
|
|
104
|
+
codeList = (_h = (_g = (_f = (_e = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _e.store) == null ? void 0 : _f.getState()) == null ? void 0 : _g.country) == null ? void 0 : _h.country;
|
|
105
|
+
} else if (isH5) {
|
|
106
|
+
codeList = (_l = (_k = (_j = (_i = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _i.getStore()) == null ? void 0 : _j.getState()) == null ? void 0 : _k.country) == null ? void 0 : _l.country;
|
|
107
|
+
}
|
|
108
|
+
if (isShop || isPc || isH5) {
|
|
109
|
+
codeList = (codeList == null ? void 0 : codeList.length) > 0 ? codeList : defaultData;
|
|
110
|
+
console.log("codeList", codeList);
|
|
111
|
+
return codeList.map((item) => ({
|
|
102
112
|
...item,
|
|
103
113
|
prefix: `+${item.calling_code}`
|
|
104
114
|
}));
|
|
105
|
-
} else if (isPc) {
|
|
106
|
-
const codeList = (_h = (_g = (_f = (_e = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _e.store) == null ? void 0 : _f.getState()) == null ? void 0 : _g.country) == null ? void 0 : _h.country;
|
|
107
|
-
if (codeList) {
|
|
108
|
-
return codeList.map((item) => ({
|
|
109
|
-
...item,
|
|
110
|
-
prefix: `+${item.calling_code}`
|
|
111
|
-
}));
|
|
112
|
-
}
|
|
113
|
-
} else if (isH5) {
|
|
114
|
-
const codeList = (_l = (_k = (_j = (_i = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _i.getStore()) == null ? void 0 : _j.getState()) == null ? void 0 : _k.country) == null ? void 0 : _l.country;
|
|
115
|
-
if (codeList) {
|
|
116
|
-
return codeList.map((item) => ({
|
|
117
|
-
...item,
|
|
118
|
-
prefix: `+${item.calling_code}`
|
|
119
|
-
}));
|
|
120
|
-
}
|
|
121
115
|
}
|
|
122
116
|
return data;
|
|
123
|
-
}, [isShop, data, shopData]);
|
|
117
|
+
}, [isShop, isPc, isH5, data, shopData]);
|
|
124
118
|
return { data: currentData };
|
|
125
119
|
};
|
|
120
|
+
var defaultData = [
|
|
121
|
+
{
|
|
122
|
+
name: "Mexico",
|
|
123
|
+
code: "MX",
|
|
124
|
+
calling_code: "52",
|
|
125
|
+
currency_code: "MXN"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "美国",
|
|
129
|
+
code: "US",
|
|
130
|
+
calling_code: "1",
|
|
131
|
+
currency_code: "USD"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: "加拿大",
|
|
135
|
+
code: "CA",
|
|
136
|
+
calling_code: "1",
|
|
137
|
+
currency_code: "CAD"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: "澳大利亚",
|
|
141
|
+
code: "AU",
|
|
142
|
+
calling_code: "61",
|
|
143
|
+
currency_code: "AUD"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: "新西兰",
|
|
147
|
+
code: "NZ",
|
|
148
|
+
calling_code: "64",
|
|
149
|
+
currency_code: "NZD"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: "新加坡",
|
|
153
|
+
code: "SG",
|
|
154
|
+
calling_code: "65",
|
|
155
|
+
currency_code: "SGD"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: "香港特别行政区",
|
|
159
|
+
code: "HK",
|
|
160
|
+
calling_code: "852",
|
|
161
|
+
currency_code: "HKD"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: "台湾",
|
|
165
|
+
code: "TW",
|
|
166
|
+
calling_code: "886",
|
|
167
|
+
currency_code: "TWD"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: "中国",
|
|
171
|
+
code: "CN",
|
|
172
|
+
calling_code: "86",
|
|
173
|
+
currency_code: "AUD"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: "日本",
|
|
177
|
+
code: "JP",
|
|
178
|
+
calling_code: "81",
|
|
179
|
+
currency_code: "JPY"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: "韩国",
|
|
183
|
+
code: "KR",
|
|
184
|
+
calling_code: "82",
|
|
185
|
+
currency_code: "KRW"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: "马来西亚",
|
|
189
|
+
code: "MY",
|
|
190
|
+
calling_code: "60",
|
|
191
|
+
currency_code: "USD"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: "英国",
|
|
195
|
+
code: "GB",
|
|
196
|
+
calling_code: "44",
|
|
197
|
+
currency_code: "GBP"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
name: "法国",
|
|
201
|
+
code: "FR",
|
|
202
|
+
calling_code: "33",
|
|
203
|
+
currency_code: "EUR"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
name: "意大利",
|
|
207
|
+
code: "IT",
|
|
208
|
+
calling_code: "39",
|
|
209
|
+
currency_code: "EUR"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: "Ireland",
|
|
213
|
+
code: "IE",
|
|
214
|
+
calling_code: "353",
|
|
215
|
+
currency_code: "EUR"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
name: "Netherlands",
|
|
219
|
+
code: "NL",
|
|
220
|
+
calling_code: "31",
|
|
221
|
+
currency_code: "EUR"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: "Germany",
|
|
225
|
+
code: "DE",
|
|
226
|
+
calling_code: "49",
|
|
227
|
+
currency_code: "EUR"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: "Spain",
|
|
231
|
+
code: "ES",
|
|
232
|
+
calling_code: "34",
|
|
233
|
+
currency_code: "EUR"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
name: "Finland",
|
|
237
|
+
code: "FI",
|
|
238
|
+
calling_code: "358",
|
|
239
|
+
currency_code: "EUR"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
name: "Hungary",
|
|
243
|
+
code: "HU",
|
|
244
|
+
calling_code: "36",
|
|
245
|
+
currency_code: "HUF"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
name: "Indonesia",
|
|
249
|
+
code: "ID",
|
|
250
|
+
calling_code: "62",
|
|
251
|
+
currency_code: "IDR"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
name: "India",
|
|
255
|
+
code: "IND",
|
|
256
|
+
calling_code: "91",
|
|
257
|
+
currency_code: "INR"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
name: "Nigeria",
|
|
261
|
+
code: "NG",
|
|
262
|
+
calling_code: "234",
|
|
263
|
+
currency_code: "NGN"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
name: "Islamic Republic of Pakistan",
|
|
267
|
+
code: "PAK",
|
|
268
|
+
calling_code: "92",
|
|
269
|
+
currency_code: "PRK"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
name: "Philippines",
|
|
273
|
+
code: "PH",
|
|
274
|
+
calling_code: "63",
|
|
275
|
+
currency_code: "PHP"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
name: "Thailand",
|
|
279
|
+
code: "TH",
|
|
280
|
+
calling_code: "66",
|
|
281
|
+
currency_code: "THB"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
name: "South Africa",
|
|
285
|
+
code: "ZA",
|
|
286
|
+
calling_code: "27",
|
|
287
|
+
currency_code: "ZAR"
|
|
288
|
+
}
|
|
289
|
+
];
|
|
126
290
|
// Annotate the CommonJS export names for ESM import in node:
|
|
127
291
|
0 && (module.exports = {
|
|
128
292
|
getCountryDataList,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
|
|
3
2
|
options?: any;
|
|
4
3
|
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const formFieldMap: {
|
|
3
2
|
FormItemCheckbox: import("react").FC<{}> & {
|
|
4
3
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -60,21 +59,7 @@ declare const formFieldMap: {
|
|
|
60
59
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
60
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
62
61
|
};
|
|
63
|
-
declare const getFieldComponent: (fieldComponent: string) =>
|
|
64
|
-
options?: any;
|
|
65
|
-
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
66
|
-
labelField: string;
|
|
67
|
-
valueField: string;
|
|
68
|
-
extraParams?: Record<string, any> | undefined;
|
|
69
|
-
} & {
|
|
70
|
-
dataSource?: any;
|
|
71
|
-
}) => JSX.Element) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
|
|
72
|
-
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
73
|
-
} & {
|
|
74
|
-
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
75
|
-
}) | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
76
|
-
onChange: (value: string) => void;
|
|
77
|
-
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
62
|
+
declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<import("./Input/type").InputProps> & {
|
|
78
63
|
JSON: import("react").FC<any>;
|
|
79
64
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
80
65
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -94,9 +79,23 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
94
79
|
name?: string | undefined;
|
|
95
80
|
fieldKey?: string | undefined;
|
|
96
81
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
97
|
-
}) |
|
|
82
|
+
}) | (import("react").FC<{}> & {
|
|
98
83
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
99
84
|
} & {
|
|
100
85
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
101
|
-
})
|
|
86
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
87
|
+
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
88
|
+
} & {
|
|
89
|
+
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
90
|
+
}) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
91
|
+
options?: any;
|
|
92
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
93
|
+
labelField: string;
|
|
94
|
+
valueField: string;
|
|
95
|
+
extraParams?: Record<string, any> | undefined;
|
|
96
|
+
} & {
|
|
97
|
+
dataSource?: any;
|
|
98
|
+
}) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
99
|
+
onChange: (value: string) => void;
|
|
100
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
102
101
|
export { getFieldComponent, formFieldMap };
|
|
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(iconfont_exports);
|
|
|
35
35
|
var import_icons = require("@ant-design/icons");
|
|
36
36
|
var import_react = __toESM(require("react"));
|
|
37
37
|
var MyIcon = (0, import_icons.createFromIconfontCN)({
|
|
38
|
-
scriptUrl: "https://static.pisellcdn.com/pisell2iconfont1.
|
|
38
|
+
scriptUrl: "https://static.pisellcdn.com/pisell2iconfont1.16.js"
|
|
39
39
|
// 在 iconfont.cn 上生成
|
|
40
40
|
});
|
|
41
41
|
var IconFont = (props) => {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const fieldMaps: {
|
|
3
2
|
text: {
|
|
4
3
|
field: {
|
|
@@ -198,12 +197,12 @@ export declare const fieldList: ({
|
|
|
198
197
|
field_icon: string;
|
|
199
198
|
field_name: string;
|
|
200
199
|
field_type: string;
|
|
201
|
-
default_value:
|
|
200
|
+
default_value: boolean;
|
|
202
201
|
} | {
|
|
203
202
|
field_icon: string;
|
|
204
203
|
field_name: string;
|
|
205
204
|
field_type: string;
|
|
206
|
-
default_value:
|
|
205
|
+
default_value: string;
|
|
207
206
|
} | {
|
|
208
207
|
field_icon: string;
|
|
209
208
|
field_name: string;
|
|
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
155
155
|
sort?: SortType | undefined;
|
|
156
156
|
mode: "" | "localStorage" | "remote";
|
|
157
157
|
currentViewMode: ModeType;
|
|
158
|
-
}) => ("filters" | "filter_setting" | "
|
|
158
|
+
}) => ("filters" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "view_mode" | "gallery_setting")[];
|
|
159
159
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
160
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
161
|
export {};
|
package/lib/locales/en-US.js
CHANGED
|
@@ -348,5 +348,16 @@ var en_US_default = {
|
|
|
348
348
|
"pisell-upload-camera-local-files": "Local Files",
|
|
349
349
|
"pisell-upload-camera-capture": "Capture",
|
|
350
350
|
"pisell-upload-camera-retake": "Retake",
|
|
351
|
-
"pisell-upload-camera-use": "Use photo"
|
|
351
|
+
"pisell-upload-camera-use": "Use photo",
|
|
352
|
+
// 列表组件
|
|
353
|
+
"pisell-list-tab-group-default": "Field",
|
|
354
|
+
"pisell-list-empty-text-default": "No data available",
|
|
355
|
+
"pisell-list-load-more": "Load More",
|
|
356
|
+
"pisell-list-view-less": "View Less",
|
|
357
|
+
"pisell-list-pagination-total": (start, end, total) => `Showing ${start}-${end} of ${total} items`,
|
|
358
|
+
"pisell-list-scroll-down": "Scroll Down",
|
|
359
|
+
"pisell-list-scroll-right": "Scroll Right",
|
|
360
|
+
"pisell-list-pagination-page-of": (current, total) => `Page ${current} of ${total}`,
|
|
361
|
+
"pisell-list-pagination-previous": "Previous",
|
|
362
|
+
"pisell-list-pagination-next": "Next"
|
|
352
363
|
};
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -339,5 +339,16 @@ var zh_CN_default = {
|
|
|
339
339
|
"pisell-upload-camera-local-files": "本地文件",
|
|
340
340
|
"pisell-upload-camera-capture": "拍摄/拍照",
|
|
341
341
|
"pisell-upload-camera-retake": "重拍",
|
|
342
|
-
"pisell-upload-camera-use": "使用照片"
|
|
342
|
+
"pisell-upload-camera-use": "使用照片",
|
|
343
|
+
// 列表组件
|
|
344
|
+
"pisell-list-tab-group-default": "字段",
|
|
345
|
+
"pisell-list-empty-text-default": "暂无数据",
|
|
346
|
+
"pisell-list-load-more": "查看更多",
|
|
347
|
+
"pisell-list-view-less": "查看更少",
|
|
348
|
+
"pisell-list-pagination-total": (start, end, total) => `显示第 ${start}-${end} 条,共 ${total} 条`,
|
|
349
|
+
"pisell-list-scroll-down": "向下滚动",
|
|
350
|
+
"pisell-list-scroll-right": "向右滚动",
|
|
351
|
+
"pisell-list-pagination-page-of": (current, total) => `第 ${current} 页 共 ${total} 页`,
|
|
352
|
+
"pisell-list-pagination-previous": "上一页",
|
|
353
|
+
"pisell-list-pagination-next": "下一页"
|
|
343
354
|
};
|
package/lib/locales/zh-TW.js
CHANGED
|
@@ -340,5 +340,16 @@ var zh_TW_default = {
|
|
|
340
340
|
"pisell-upload-camera-local-files": "本地文件",
|
|
341
341
|
"pisell-upload-camera-capture": "拍攝/拍照",
|
|
342
342
|
"pisell-upload-camera-retake": "重拍",
|
|
343
|
-
"pisell-upload-camera-use": "使用照片"
|
|
343
|
+
"pisell-upload-camera-use": "使用照片",
|
|
344
|
+
// 列表組件
|
|
345
|
+
"pisell-list-tab-group-default": "字段",
|
|
346
|
+
"pisell-list-empty-text-default": "暫無數據",
|
|
347
|
+
"pisell-list-load-more": "查看更多",
|
|
348
|
+
"pisell-list-view-less": "查看更少",
|
|
349
|
+
"pisell-list-pagination-total": (start, end, total) => `顯示第 ${start}-${end} 條,共 ${total} 條`,
|
|
350
|
+
"pisell-list-scroll-down": "向下滾動",
|
|
351
|
+
"pisell-list-scroll-right": "向右滾動",
|
|
352
|
+
"pisell-list-pagination-page-of": (current, total) => `第 ${current} 頁 共 ${total} 頁`,
|
|
353
|
+
"pisell-list-pagination-previous": "上一頁",
|
|
354
|
+
"pisell-list-pagination-next": "下一頁"
|
|
344
355
|
};
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare type Options = {
|
|
2
|
-
mode?: 'oneline' | 'multiline' | 'box' | 'boxoneline' | undefined;
|
|
3
|
-
minFontSizePx?: number | undefined;
|
|
4
|
-
maxFontSizePx?: number | undefined;
|
|
5
|
-
fontSizePrecisionPx?: number | undefined;
|
|
6
|
-
scrollToEnd?: boolean | undefined;
|
|
7
|
-
};
|
|
8
|
-
export declare function updateTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
|
|
9
|
-
innerEl: HTMLElement;
|
|
10
|
-
containerEl: HTMLElement;
|
|
11
|
-
}): void;
|
|
12
|
-
declare type DisconnectableFunction = {
|
|
13
|
-
(): void;
|
|
14
|
-
disconnect: () => void;
|
|
15
|
-
};
|
|
16
|
-
export declare function autoTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
|
|
17
|
-
innerEl: HTMLElement;
|
|
18
|
-
containerEl: HTMLElement;
|
|
19
|
-
}): DisconnectableFunction;
|
|
20
|
-
export {};
|