@pisell/materials 1.0.899 → 1.0.901
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 +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/Pagination/index.d.ts +1 -1
- package/es/components/colorPicker/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/filter/components/items/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/es/components/filter/components/items/text/index.d.ts +0 -1
- package/es/components/pisellWalletPassCard/index.d.ts +1 -1
- package/es/components/pisellWalletPassCard/index.js +9 -7
- package/es/components/table/Table/SelectField/index.d.ts +0 -1
- package/es/components/table/Table/fields/index.d.ts +2 -2
- package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/colorPicker/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/filter/components/items/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/index.d.ts +0 -1
- package/lib/components/pisellWalletPassCard/index.d.ts +1 -1
- package/lib/components/pisellWalletPassCard/index.js +9 -7
- package/lib/components/table/Table/SelectField/index.d.ts +0 -1
- package/lib/components/table/Table/fields/index.d.ts +2 -2
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ export declare const paginationConfig: {
|
|
|
5
5
|
className: string;
|
|
6
6
|
defaultCurrent: number;
|
|
7
7
|
showTotal: (total: number, range: [number, number]) => string;
|
|
8
|
-
itemRender: (page: number, type: "
|
|
8
|
+
itemRender: (page: number, type: "next" | "page" | "prev" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
|
|
9
9
|
responsive: boolean;
|
|
10
10
|
size: string;
|
|
11
11
|
};
|
|
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: number | boolean |
|
|
20
|
+
title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
21
21
|
pagination: {
|
|
22
22
|
total: number;
|
|
23
23
|
current: number;
|
|
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
26
26
|
showSizeChanger: boolean;
|
|
27
27
|
};
|
|
28
28
|
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: number | boolean |
|
|
29
|
+
subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
30
30
|
buttons: any[] | null;
|
|
31
31
|
filter: JSX.Element | null;
|
|
32
32
|
onRow: (record: any) => any;
|
|
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
|
|
|
15
15
|
metadata?: MediaMetadata;
|
|
16
16
|
}) => Record<string, any>;
|
|
17
17
|
export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
|
|
18
|
-
export declare const getBaseTime: (size: number) =>
|
|
18
|
+
export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
|
|
@@ -319,6 +319,7 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
319
319
|
var stop = function stop(e) {
|
|
320
320
|
e.stopPropagation();
|
|
321
321
|
};
|
|
322
|
+
console.log(cardStatus, 'cardStatus');
|
|
322
323
|
var renderActions = function renderActions() {
|
|
323
324
|
if ((disabled || disabledReason) && !showStatus) return null;
|
|
324
325
|
if ((!showActions || !actions) && !showStatus) return null;
|
|
@@ -381,7 +382,7 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
381
382
|
},
|
|
382
383
|
type: "pill_color",
|
|
383
384
|
color: cardStatusMap[cardStatus]
|
|
384
|
-
}, getText("pisell-wallet-pass-card-status-".concat(cardStatus)))), (actions === null || actions === void 0 ? void 0 : actions.detail) && (actions === null || actions === void 0 || (_actions$detail3 = actions.detail) === null || _actions$detail3 === void 0 ? void 0 : _actions$detail3.visible) && /*#__PURE__*/React.createElement("div", {
|
|
385
|
+
}, getText("pisell-wallet-pass-card-status-".concat('conflict' || cardStatus)))), (actions === null || actions === void 0 ? void 0 : actions.detail) && (actions === null || actions === void 0 || (_actions$detail3 = actions.detail) === null || _actions$detail3 === void 0 ? void 0 : _actions$detail3.visible) && /*#__PURE__*/React.createElement("div", {
|
|
385
386
|
className: "pisell-card-actions-detail-btn",
|
|
386
387
|
onClick: function onClick(e) {
|
|
387
388
|
stop(e);
|
|
@@ -407,10 +408,11 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
407
408
|
}
|
|
408
409
|
};
|
|
409
410
|
var renderNameInfo = function renderNameInfo() {
|
|
411
|
+
var shouldShowStoreName = typeof showStoreName === 'function' ? showStoreName(props) : showStoreName;
|
|
410
412
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
411
413
|
className: "pisell-card-name-wrap",
|
|
412
414
|
style: dynamicNameWrapStyle
|
|
413
|
-
}, showName && name),
|
|
415
|
+
}, showName && name), shouldShowStoreName && /*#__PURE__*/React.createElement("div", {
|
|
414
416
|
className: "pisell-card-store-name"
|
|
415
417
|
}, storeName));
|
|
416
418
|
};
|
|
@@ -419,7 +421,7 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
419
421
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
420
422
|
while (1) switch (_context2.prev = _context2.next) {
|
|
421
423
|
case 0:
|
|
422
|
-
if (active) {
|
|
424
|
+
if (active && enableEditAmount) {
|
|
423
425
|
e.stopPropagation();
|
|
424
426
|
}
|
|
425
427
|
if (active) {
|
|
@@ -440,10 +442,9 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
440
442
|
validDate: validDate,
|
|
441
443
|
originData: originData
|
|
442
444
|
});
|
|
445
|
+
setIsKeyboardOpen(true);
|
|
446
|
+
setTempAmount((redeem === null || redeem === void 0 ? void 0 : redeem.toString()) || '');
|
|
443
447
|
}
|
|
444
|
-
;
|
|
445
|
-
setIsKeyboardOpen(true);
|
|
446
|
-
setTempAmount((redeem === null || redeem === void 0 ? void 0 : redeem.toString()) || '');
|
|
447
448
|
}
|
|
448
449
|
case 4:
|
|
449
450
|
case "end":
|
|
@@ -493,7 +494,8 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
493
494
|
return /*#__PURE__*/React.createElement(Amount, {
|
|
494
495
|
className: "pisell-card-amount-item-value",
|
|
495
496
|
useThousandsSeparator: true,
|
|
496
|
-
value: redeem
|
|
497
|
+
value: redeem,
|
|
498
|
+
showCurrencySymbol: true
|
|
497
499
|
// onClick={handleEditAmount}
|
|
498
500
|
});
|
|
499
501
|
};
|
|
@@ -198,12 +198,12 @@ export declare const fieldList: ({
|
|
|
198
198
|
field_icon: string;
|
|
199
199
|
field_name: string;
|
|
200
200
|
field_type: string;
|
|
201
|
-
default_value:
|
|
201
|
+
default_value: boolean;
|
|
202
202
|
} | {
|
|
203
203
|
field_icon: string;
|
|
204
204
|
field_name: string;
|
|
205
205
|
field_type: string;
|
|
206
|
-
default_value:
|
|
206
|
+
default_value: string;
|
|
207
207
|
} | {
|
|
208
208
|
field_icon: string;
|
|
209
209
|
field_name: string;
|
|
@@ -167,7 +167,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
167
167
|
sort?: SortType | undefined;
|
|
168
168
|
mode: "" | "localStorage" | "remote";
|
|
169
169
|
currentViewMode: ModeType;
|
|
170
|
-
}) => ("
|
|
170
|
+
}) => ("order_by" | "group_by" | "column_setting" | "gallery_setting" | "filter_setting" | "view_mode")[];
|
|
171
171
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
172
172
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
173
173
|
export {};
|
|
@@ -5,7 +5,7 @@ export declare const paginationConfig: {
|
|
|
5
5
|
className: string;
|
|
6
6
|
defaultCurrent: number;
|
|
7
7
|
showTotal: (total: number, range: [number, number]) => string;
|
|
8
|
-
itemRender: (page: number, type: "
|
|
8
|
+
itemRender: (page: number, type: "next" | "page" | "prev" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
|
|
9
9
|
responsive: boolean;
|
|
10
10
|
size: string;
|
|
11
11
|
};
|
|
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: number | boolean |
|
|
20
|
+
title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
21
21
|
pagination: {
|
|
22
22
|
total: number;
|
|
23
23
|
current: number;
|
|
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
26
26
|
showSizeChanger: boolean;
|
|
27
27
|
};
|
|
28
28
|
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: number | boolean |
|
|
29
|
+
subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
30
30
|
buttons: any[] | null;
|
|
31
31
|
filter: JSX.Element | null;
|
|
32
32
|
onRow: (record: any) => any;
|
|
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
|
|
|
15
15
|
metadata?: MediaMetadata;
|
|
16
16
|
}) => Record<string, any>;
|
|
17
17
|
export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
|
|
18
|
-
export declare const getBaseTime: (size: number) =>
|
|
18
|
+
export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
|
|
@@ -257,6 +257,7 @@ var PisellWalletPassCard = (props) => {
|
|
|
257
257
|
const stop = (e) => {
|
|
258
258
|
e.stopPropagation();
|
|
259
259
|
};
|
|
260
|
+
console.log(cardStatus, "cardStatus");
|
|
260
261
|
const renderActions = () => {
|
|
261
262
|
var _a, _b, _c, _d;
|
|
262
263
|
if ((disabled || disabledReason) && !showStatus) return null;
|
|
@@ -314,7 +315,7 @@ var PisellWalletPassCard = (props) => {
|
|
|
314
315
|
type: "pill_color",
|
|
315
316
|
color: cardStatusMap[cardStatus]
|
|
316
317
|
},
|
|
317
|
-
(0, import_locales.getText)(`pisell-wallet-pass-card-status-${
|
|
318
|
+
(0, import_locales.getText)(`pisell-wallet-pass-card-status-${"conflict"}`)
|
|
318
319
|
)), (actions == null ? void 0 : actions.detail) && ((_c = actions == null ? void 0 : actions.detail) == null ? void 0 : _c.visible) && /* @__PURE__ */ import_react.default.createElement(
|
|
319
320
|
"div",
|
|
320
321
|
{
|
|
@@ -355,10 +356,11 @@ var PisellWalletPassCard = (props) => {
|
|
|
355
356
|
}
|
|
356
357
|
};
|
|
357
358
|
const renderNameInfo = () => {
|
|
358
|
-
|
|
359
|
+
const shouldShowStoreName = typeof showStoreName === "function" ? showStoreName(props) : showStoreName;
|
|
360
|
+
return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-name-wrap", style: dynamicNameWrapStyle }, showName && name), shouldShowStoreName && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-store-name" }, storeName));
|
|
359
361
|
};
|
|
360
362
|
const handleEditAmount = async (e) => {
|
|
361
|
-
if (active) {
|
|
363
|
+
if (active && enableEditAmount) {
|
|
362
364
|
e.stopPropagation();
|
|
363
365
|
}
|
|
364
366
|
if (!active) {
|
|
@@ -376,10 +378,9 @@ var PisellWalletPassCard = (props) => {
|
|
|
376
378
|
validDate,
|
|
377
379
|
originData
|
|
378
380
|
});
|
|
381
|
+
setIsKeyboardOpen(true);
|
|
382
|
+
setTempAmount((redeem == null ? void 0 : redeem.toString()) || "");
|
|
379
383
|
}
|
|
380
|
-
;
|
|
381
|
-
setIsKeyboardOpen(true);
|
|
382
|
-
setTempAmount((redeem == null ? void 0 : redeem.toString()) || "");
|
|
383
384
|
}
|
|
384
385
|
};
|
|
385
386
|
const createOriginalBalanceTitleDom = () => /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-label" }, formatBalanceTitle ? formatBalanceTitle(balanceTitle, {
|
|
@@ -406,7 +407,8 @@ var PisellWalletPassCard = (props) => {
|
|
|
406
407
|
{
|
|
407
408
|
className: "pisell-card-amount-item-value",
|
|
408
409
|
useThousandsSeparator: true,
|
|
409
|
-
value: redeem
|
|
410
|
+
value: redeem,
|
|
411
|
+
showCurrencySymbol: true
|
|
410
412
|
}
|
|
411
413
|
);
|
|
412
414
|
const renderBalanceInfo = () => {
|
|
@@ -198,12 +198,12 @@ export declare const fieldList: ({
|
|
|
198
198
|
field_icon: string;
|
|
199
199
|
field_name: string;
|
|
200
200
|
field_type: string;
|
|
201
|
-
default_value:
|
|
201
|
+
default_value: boolean;
|
|
202
202
|
} | {
|
|
203
203
|
field_icon: string;
|
|
204
204
|
field_name: string;
|
|
205
205
|
field_type: string;
|
|
206
|
-
default_value:
|
|
206
|
+
default_value: string;
|
|
207
207
|
} | {
|
|
208
208
|
field_icon: string;
|
|
209
209
|
field_name: string;
|
|
@@ -167,7 +167,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
167
167
|
sort?: SortType | undefined;
|
|
168
168
|
mode: "" | "localStorage" | "remote";
|
|
169
169
|
currentViewMode: ModeType;
|
|
170
|
-
}) => ("
|
|
170
|
+
}) => ("order_by" | "group_by" | "column_setting" | "gallery_setting" | "filter_setting" | "view_mode")[];
|
|
171
171
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
172
172
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
173
173
|
export {};
|