@pisell/materials 1.0.933 → 1.0.935

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.
Files changed (81) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +164 -148
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +30 -15
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +41 -26
  11. package/es/components/auto-resize-text/index.js +1 -1
  12. package/es/components/batch-editor/index.d.ts +0 -1
  13. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +1 -1
  16. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  17. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  18. package/es/components/dataSourceComponents/fields/index.d.ts +11 -12
  19. package/es/components/filter/types.d.ts +1 -0
  20. package/es/components/keyboard/index.less +1 -0
  21. package/es/components/list/index.d.ts +0 -1
  22. package/es/components/pisell-config-provider/index.js +0 -1
  23. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  24. package/es/components/pisellCardList/index.d.ts +4 -0
  25. package/es/components/pisellCardList/index.js +5 -1
  26. package/es/components/pisellWalletPassCard/index.d.ts +4 -0
  27. package/es/components/pisellWalletPassCard/index.js +17 -4
  28. package/es/components/pisellWalletPassCard/utils.d.ts +44 -0
  29. package/es/components/pisellWalletPassCard/utils.js +499 -0
  30. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  31. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  32. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  33. package/es/components/table/Table/fields/index.d.ts +2 -3
  34. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  35. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  36. package/es/components/table/Table/utils.d.ts +1 -1
  37. package/es/components/table/hooks/useTableSetting.js +1 -1
  38. package/es/components/virtual-keyboard/Number/index.d.ts +0 -1
  39. package/es/locales/en-US.d.ts +1 -0
  40. package/es/locales/en-US.js +1 -0
  41. package/es/locales/zh-CN.d.ts +1 -0
  42. package/es/locales/zh-CN.js +1 -0
  43. package/es/locales/zh-TW.d.ts +1 -0
  44. package/es/locales/zh-TW.js +16 -8
  45. package/es/utils/platform.d.ts +1 -1
  46. package/lib/components/auto-resize-text/index.js +1 -1
  47. package/lib/components/batch-editor/index.d.ts +0 -1
  48. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  49. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  50. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +1 -1
  51. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  52. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  53. package/lib/components/dataSourceComponents/fields/index.d.ts +11 -12
  54. package/lib/components/filter/types.d.ts +1 -0
  55. package/lib/components/keyboard/index.less +1 -0
  56. package/lib/components/list/index.d.ts +0 -1
  57. package/lib/components/pisell-config-provider/index.js +0 -1
  58. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  59. package/lib/components/pisellCardList/index.d.ts +4 -0
  60. package/lib/components/pisellCardList/index.js +5 -1
  61. package/lib/components/pisellWalletPassCard/index.d.ts +4 -0
  62. package/lib/components/pisellWalletPassCard/index.js +12 -2
  63. package/lib/components/pisellWalletPassCard/utils.d.ts +44 -0
  64. package/lib/components/pisellWalletPassCard/utils.js +349 -0
  65. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  66. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  67. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  68. package/lib/components/table/Table/fields/index.d.ts +2 -3
  69. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  70. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  71. package/lib/components/table/Table/utils.d.ts +1 -1
  72. package/lib/components/table/hooks/useTableSetting.js +1 -1
  73. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
  74. package/lib/locales/en-US.d.ts +1 -0
  75. package/lib/locales/en-US.js +1 -0
  76. package/lib/locales/zh-CN.d.ts +1 -0
  77. package/lib/locales/zh-CN.js +1 -0
  78. package/lib/locales/zh-TW.d.ts +1 -0
  79. package/lib/locales/zh-TW.js +1 -4
  80. package/lib/utils/platform.d.ts +1 -1
  81. package/package.json +3 -3
@@ -0,0 +1,349 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/pisellWalletPassCard/utils.ts
30
+ var utils_exports = {};
31
+ __export(utils_exports, {
32
+ getScheduleSummary: () => getScheduleSummary
33
+ });
34
+ module.exports = __toCommonJS(utils_exports);
35
+ var import_dayjs = __toESM(require("dayjs"));
36
+ var CONSTANTS = {
37
+ ALL_DAY_START: "00:00",
38
+ ALL_DAY_END: "23:59",
39
+ DEFAULT_FUTURE_YEARS: 10,
40
+ SECONDS_SUFFIX: ":59"
41
+ };
42
+ var textConfig = {
43
+ "zh-HK": {
44
+ weekdays: ["日", "一", "二", "三", "四", "五", "六"],
45
+ separator: "、",
46
+ timeSeparator: "–",
47
+ rangeSeparator: " 至 ",
48
+ periodSeparator: ";",
49
+ timeSlotSeparator: ",",
50
+ every: "每",
51
+ day: "天",
52
+ week: "周",
53
+ month: "月",
54
+ year: "年",
55
+ available: "可用",
56
+ unlimited: "无限期",
57
+ multipleRules: "多規則,點詳情",
58
+ multipleSlots: ",多時段",
59
+ until: "至",
60
+ daily: "每天",
61
+ days: "天",
62
+ weeks: "周",
63
+ everyPrefix: "每",
64
+ weekPrefix: "周",
65
+ dateFormat: "YYYY-MM-DD",
66
+ dateTimeFormat: "YYYY-MM-DD HH:mm",
67
+ longTermValidFrom: "自",
68
+ noExpiry: "起長期有效",
69
+ on: ""
70
+ },
71
+ "zh-CN": {
72
+ weekdays: ["日", "一", "二", "三", "四", "五", "六"],
73
+ separator: "、",
74
+ timeSeparator: "–",
75
+ rangeSeparator: " 至 ",
76
+ periodSeparator: ";",
77
+ timeSlotSeparator: ",",
78
+ every: "每",
79
+ day: "天",
80
+ week: "周",
81
+ month: "月",
82
+ year: "年",
83
+ available: "可用",
84
+ unlimited: "无限期",
85
+ multipleRules: "多规则,点详情",
86
+ multipleSlots: ",多时段",
87
+ until: "至",
88
+ daily: "每天",
89
+ days: "天",
90
+ weeks: "周",
91
+ everyPrefix: "每",
92
+ weekPrefix: "周",
93
+ dateFormat: "YYYY-MM-DD",
94
+ dateTimeFormat: "YYYY-MM-DD HH:mm",
95
+ longTermValidFrom: "自",
96
+ noExpiry: "起长期有效",
97
+ on: ""
98
+ },
99
+ "en": {
100
+ weekdays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
101
+ separator: ", ",
102
+ timeSeparator: "–",
103
+ rangeSeparator: " - ",
104
+ periodSeparator: "; ",
105
+ timeSlotSeparator: ", ",
106
+ every: "every ",
107
+ day: "day",
108
+ week: "week",
109
+ month: "month",
110
+ year: "year",
111
+ available: "available",
112
+ unlimited: "unlimited",
113
+ multipleRules: "Multiple rules, see details",
114
+ multipleSlots: ", multiple slots",
115
+ until: "Until ",
116
+ daily: "daily",
117
+ days: "days",
118
+ weeks: "weeks",
119
+ everyPrefix: "every ",
120
+ weekPrefix: "",
121
+ dateFormat: "DD MMM YYYY",
122
+ dateTimeFormat: "DD MMM YYYY h:mm A",
123
+ longTermValidFrom: "from ",
124
+ noExpiry: ", no expiry",
125
+ on: "on "
126
+ }
127
+ };
128
+ function getWeekdayText(dayNumbers, locale, separator) {
129
+ const config = textConfig[locale];
130
+ return dayNumbers.map((day) => config.weekdays[day]).join(separator || config.separator);
131
+ }
132
+ function getText(locale, key) {
133
+ return textConfig[locale][key];
134
+ }
135
+ function getConfig(locale) {
136
+ return textConfig[locale];
137
+ }
138
+ function getDailyFrequencyText(frequency, locale) {
139
+ if (frequency === 1) {
140
+ return getText(locale, "daily");
141
+ }
142
+ const config = textConfig[locale];
143
+ if (locale === "en") {
144
+ return `${config.everyPrefix}${frequency} ${config.days}`;
145
+ } else {
146
+ return `${config.everyPrefix}${frequency}${config.days}`;
147
+ }
148
+ }
149
+ function getWeeklyFrequencyPrefix(frequency, locale) {
150
+ if (frequency === 1) {
151
+ return "";
152
+ }
153
+ const config = textConfig[locale];
154
+ if (locale === "en") {
155
+ return `${config.everyPrefix}${frequency} ${config.weeks}, `;
156
+ } else {
157
+ return `${config.everyPrefix}${frequency}${config.weeks} `;
158
+ }
159
+ }
160
+ function formatDateTime(dateTime, isAll = false, locale = "zh-CN") {
161
+ const date = (0, import_dayjs.default)(dateTime);
162
+ const config = getConfig(locale);
163
+ if (isAll) {
164
+ return date.format(config.dateFormat);
165
+ }
166
+ return date.format(config.dateTimeFormat);
167
+ }
168
+ function isAllDaySchedule(startTime, endTime) {
169
+ return startTime === CONSTANTS.ALL_DAY_START && endTime === CONSTANTS.ALL_DAY_END;
170
+ }
171
+ function formatDateRange(startDate, endDate, isStarted, locale, isAllDay = false) {
172
+ const config = getConfig(locale);
173
+ if (isStarted) {
174
+ const endDateStr = formatDateTime(endDate, isAllDay, locale);
175
+ return `${config.until}${endDateStr}`;
176
+ } else {
177
+ const startDateStr = formatDateTime(startDate, isAllDay, locale);
178
+ const endDateStr = formatDateTime(endDate, isAllDay, locale);
179
+ return `${startDateStr}${config.rangeSeparator}${endDateStr}`;
180
+ }
181
+ }
182
+ function getScheduleSummary(scheduleList, locale = "zh-CN") {
183
+ try {
184
+ if (!scheduleList || !Array.isArray(scheduleList)) {
185
+ return "";
186
+ }
187
+ if (scheduleList.length > 1) {
188
+ return getText(locale, "multipleRules");
189
+ }
190
+ if (scheduleList.length === 0) {
191
+ return "";
192
+ }
193
+ const schedule = scheduleList[0];
194
+ if (!schedule) {
195
+ return "";
196
+ }
197
+ const now = (0, import_dayjs.default)();
198
+ let startTime = null;
199
+ if (schedule.start_time) {
200
+ startTime = (0, import_dayjs.default)(schedule.start_time);
201
+ } else if (schedule.designation && schedule.designation.length > 0) {
202
+ const firstDesignation = schedule.designation[0];
203
+ if (firstDesignation && firstDesignation.start_date && firstDesignation.start_time) {
204
+ startTime = (0, import_dayjs.default)(`${firstDesignation.start_date} ${firstDesignation.start_time}`);
205
+ }
206
+ }
207
+ const isStarted = startTime ? isTimeStarted(now, startTime) : false;
208
+ return generateSummaryText(schedule, isStarted, locale);
209
+ } catch (error) {
210
+ console.warn("Error in getScheduleSummary:", error);
211
+ return "";
212
+ }
213
+ }
214
+ function isTimeStarted(now, startTime) {
215
+ return startTime.isBefore(now);
216
+ }
217
+ function generateSummaryText(schedule, isStarted, locale) {
218
+ if (schedule.type === "designation" && schedule.designation && schedule.designation.length > 1) {
219
+ return getText(locale, "multipleRules");
220
+ }
221
+ if (schedule.type === "time-slots") {
222
+ const endDate = getScheduleEndDate(schedule);
223
+ if (!endDate) return "";
224
+ const endDateStr = formatDateTime(endDate, true, locale);
225
+ const prefix = "";
226
+ const suffix = getText(locale, "multipleSlots");
227
+ return `${prefix}${endDateStr}${suffix}`;
228
+ }
229
+ if (schedule.repeat_type !== "none" && schedule.repeat_rule) {
230
+ return generateRecurringSummary(schedule, isStarted, locale);
231
+ }
232
+ return generateSingleScheduleSummary(schedule, isStarted, locale);
233
+ }
234
+ function generateRecurringSummary(schedule, isStarted, locale) {
235
+ const { repeat_type, repeat_rule } = schedule;
236
+ if (!repeat_rule) return "";
237
+ const { frequency, frequency_date, end } = repeat_rule;
238
+ if (end.type === "never") {
239
+ return generateNeverEndingRecurringSummary(schedule, isStarted, locale, repeat_type, frequency, frequency_date);
240
+ }
241
+ const endDate = getScheduleEndDate(schedule);
242
+ if (!endDate) return "";
243
+ const endDateStr = formatDateTime(endDate, true, locale);
244
+ if (repeat_type === "daily") {
245
+ const frequencyText = getDailyFrequencyText(frequency, locale);
246
+ const dateRange = formatDateRange(schedule.start_time, endDate, isStarted, locale, true);
247
+ return `${dateRange},${frequencyText}`;
248
+ }
249
+ if (repeat_type === "weekly") {
250
+ const weekdaysText = getWeekdayText(frequency_date, locale, "/");
251
+ const frequencyPrefix = getWeeklyFrequencyPrefix(frequency, locale);
252
+ const config = getConfig(locale);
253
+ const dateRange = formatDateRange(schedule.start_time, endDate, isStarted, locale, true);
254
+ return `${dateRange},${frequencyPrefix}${config.weekPrefix}${weekdaysText}`;
255
+ }
256
+ return "";
257
+ }
258
+ function generateNeverEndingRecurringSummary(schedule, isStarted, locale, repeatType, frequency, frequencyDate) {
259
+ const config = getConfig(locale);
260
+ if (repeatType === "daily") {
261
+ if (frequency === 1) {
262
+ if (schedule.start_time) {
263
+ const startDateStr = formatDateTime(schedule.start_time, true, locale);
264
+ return `${config.longTermValidFrom}${startDateStr}${config.noExpiry}`;
265
+ }
266
+ return "";
267
+ } else {
268
+ const frequencyText = getDailyFrequencyText(frequency, locale);
269
+ if (locale === "en") {
270
+ return `${frequencyText}`;
271
+ } else {
272
+ return `${frequencyText}${config.available}`;
273
+ }
274
+ }
275
+ }
276
+ if (repeatType === "weekly") {
277
+ const weekdaysText = getWeekdayText(frequencyDate, locale, locale === "en" ? " & " : "/");
278
+ if (frequency === 1) {
279
+ if (locale === "en") {
280
+ return `${config.on}${weekdaysText}`;
281
+ } else {
282
+ return `${config.everyPrefix}${config.weekPrefix}${weekdaysText}${config.available}`;
283
+ }
284
+ } else {
285
+ const frequencyPrefix = getWeeklyFrequencyPrefix(frequency, locale);
286
+ if (locale === "en") {
287
+ return `${frequencyPrefix}${config.on}${weekdaysText}`;
288
+ } else {
289
+ return `${frequencyPrefix}${config.weekPrefix}${weekdaysText}`;
290
+ }
291
+ }
292
+ }
293
+ return "";
294
+ }
295
+ function generateSingleScheduleSummary(schedule, isStarted, locale) {
296
+ const isAllDay = schedule.is_all === 1;
297
+ if (schedule.type === "designation" && schedule.designation && schedule.designation.length === 1) {
298
+ const designation = schedule.designation[0];
299
+ const startDate = designation.start_date;
300
+ const endDate = designation.end_date;
301
+ const startTime = designation.start_time;
302
+ const endTime = designation.end_time;
303
+ const isDesignationAllDay = isAllDaySchedule(startTime, endTime);
304
+ if (isDesignationAllDay || isAllDay) {
305
+ return formatDateRange(startDate, endDate, isStarted, locale, true);
306
+ } else {
307
+ const startDateTime = `${startDate} ${startTime}${CONSTANTS.SECONDS_SUFFIX}`;
308
+ const endDateTime = `${endDate} ${endTime}${CONSTANTS.SECONDS_SUFFIX}`;
309
+ return formatDateRange(startDateTime, endDateTime, isStarted, locale, false);
310
+ }
311
+ }
312
+ if (isAllDay) {
313
+ const endDate = getScheduleEndDate(schedule);
314
+ if (!endDate) return "";
315
+ return formatDateRange(schedule.start_time, endDate, isStarted, locale, true);
316
+ } else {
317
+ return formatDateRange(schedule.start_time, schedule.end_time, isStarted, locale, false);
318
+ }
319
+ }
320
+ function getScheduleEndDate(schedule) {
321
+ try {
322
+ if (schedule.repeat_rule) {
323
+ if (schedule.repeat_rule.end.type === "never") {
324
+ const futureDate = (0, import_dayjs.default)().add(CONSTANTS.DEFAULT_FUTURE_YEARS, "year");
325
+ return `${futureDate.format("YYYY-MM-DD")} ${CONSTANTS.ALL_DAY_END}${CONSTANTS.SECONDS_SUFFIX}`;
326
+ } else if (schedule.repeat_rule.end.end_date) {
327
+ return `${schedule.repeat_rule.end.end_date} ${CONSTANTS.ALL_DAY_END}${CONSTANTS.SECONDS_SUFFIX}`;
328
+ }
329
+ }
330
+ if (schedule.designation && schedule.designation.length > 0) {
331
+ const lastDesignation = schedule.designation[schedule.designation.length - 1];
332
+ return `${lastDesignation.end_date} ${lastDesignation.end_time}${CONSTANTS.SECONDS_SUFFIX}`;
333
+ }
334
+ if (schedule.end_time) {
335
+ return schedule.end_time;
336
+ }
337
+ if (schedule.start_time) {
338
+ return schedule.start_time;
339
+ }
340
+ return null;
341
+ } catch (error) {
342
+ console.warn("Error in getScheduleEndDate:", error);
343
+ return null;
344
+ }
345
+ }
346
+ // Annotate the CommonJS export names for ESM import in node:
347
+ 0 && (module.exports = {
348
+ getScheduleSummary
349
+ });
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SelectField: () => JSX.Element;
3
2
  export default SelectField;
@@ -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: boolean;
200
+ default_value: string;
202
201
  } | {
203
202
  field_icon: string;
204
203
  field_name: string;
205
204
  field_type: string;
206
- default_value: string;
205
+ default_value: boolean;
207
206
  } | {
208
207
  field_icon: string;
209
208
  field_name: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  import "./index.less";
4
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -161,7 +161,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
161
161
  sort?: SortType | undefined;
162
162
  mode: "" | "localStorage" | "remote";
163
163
  currentViewMode: ModeType;
164
- }) => ("filters" | "order_by" | "group_by" | "column_setting" | "gallery_setting" | "filter_setting" | "view_mode")[];
164
+ }) => ("filters" | "filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
165
165
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
166
166
  export declare const stringify: (obj: Record<string, any>) => string;
167
167
  export {};
@@ -274,7 +274,7 @@ var useTableSetting = (params) => {
274
274
  let names = /* @__PURE__ */ new Set();
275
275
  if (import_react2.default.isValidElement(filter)) {
276
276
  names = new Set(
277
- ((filter == null ? void 0 : filter.items) || []).filter((item) => !item.isHidden).map((item) => {
277
+ ((filter == null ? void 0 : filter.__items) || []).filter((item) => !item.isHidden).map((item) => {
278
278
  const rawName = item == null ? void 0 : item.value;
279
279
  if (!rawName) return void 0;
280
280
  return Array.isArray(rawName) ? rawName.join(",") : String(rawName);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { NumberProps } from './types';
3
2
  import './index.less';
4
3
  export type { NumberProps };
@@ -124,6 +124,7 @@ declare const _default: {
124
124
  'pisell-wallet-pass-card-redeem': string;
125
125
  'pisell-wallet-pass-card-code': string;
126
126
  'pisell-wallet-pass-card-valid-to': string;
127
+ 'pisell-wallet-pass-card-valid': string;
127
128
  'pisell-wallet-pass-card-confirm': string;
128
129
  'pisell-wallet-pass-card-cancel': string;
129
130
  'pisell-wallet-pass-card-required': string;
@@ -156,6 +156,7 @@ var en_US_default = {
156
156
  "pisell-wallet-pass-card-redeem": "use",
157
157
  "pisell-wallet-pass-card-code": "Code",
158
158
  "pisell-wallet-pass-card-valid-to": "Valid to",
159
+ "pisell-wallet-pass-card-valid": "Valid",
159
160
  "pisell-wallet-pass-card-confirm": "Confirm",
160
161
  "pisell-wallet-pass-card-cancel": "Cancel",
161
162
  "pisell-wallet-pass-card-required": "This field is required",
@@ -124,6 +124,7 @@ declare const _default: {
124
124
  'pisell-wallet-pass-card-redeem': string;
125
125
  'pisell-wallet-pass-card-code': string;
126
126
  'pisell-wallet-pass-card-valid-to': string;
127
+ 'pisell-wallet-pass-card-valid': string;
127
128
  'pisell-wallet-pass-card-confirm': string;
128
129
  'pisell-wallet-pass-card-cancel': string;
129
130
  'pisell-wallet-pass-card-required': string;
@@ -156,6 +156,7 @@ var zh_CN_default = {
156
156
  "pisell-wallet-pass-card-redeem": "使用",
157
157
  "pisell-wallet-pass-card-code": "识别码编号",
158
158
  "pisell-wallet-pass-card-valid-to": "有效期至",
159
+ "pisell-wallet-pass-card-valid": "有效期",
159
160
  "pisell-wallet-pass-card-confirm": "确认",
160
161
  "pisell-wallet-pass-card-cancel": "取消",
161
162
  "pisell-wallet-pass-card-required": "此字段必填",
@@ -124,6 +124,7 @@ declare const _default: {
124
124
  'pisell-wallet-pass-card-redeem': string;
125
125
  'pisell-wallet-pass-card-code': string;
126
126
  'pisell-wallet-pass-card-valid-to': string;
127
+ 'pisell-wallet-pass-card-valid': string;
127
128
  'pisell-wallet-pass-card-confirm': string;
128
129
  'pisell-wallet-pass-card-cancel': string;
129
130
  'pisell-wallet-pass-card-required': string;
@@ -156,6 +156,7 @@ var zh_TW_default = {
156
156
  "pisell-wallet-pass-card-redeem": "使用",
157
157
  "pisell-wallet-pass-card-code": "識別碼編號",
158
158
  "pisell-wallet-pass-card-valid-to": "有效期至",
159
+ "pisell-wallet-pass-card-valid": "有效期",
159
160
  "pisell-wallet-pass-card-confirm": "確認",
160
161
  "pisell-wallet-pass-card-cancel": "取消",
161
162
  "pisell-wallet-pass-card-required": "此欄位為必填",
@@ -378,10 +379,6 @@ var zh_TW_default = {
378
379
  "pisell-list-pagination-page-of": (current, total) => `第 ${current} 頁 共 ${total} 頁`,
379
380
  "pisell-list-pagination-previous": "上一頁",
380
381
  "pisell-list-pagination-next": "下一頁",
381
- "pisell2.text.goodpass.product-vouchers": "優惠促銷",
382
- "pisell2.text.goodpass.last-settlement": "(上次結算)",
383
- "pisell2.text.goodpass.view-more": "查看更多",
384
- "pisell2.text.goodpass.save": "節省",
385
382
  // 相机组件
386
383
  "pisell-camera-no-camera-accessible": "沒有找到攝像頭",
387
384
  "pisell-camera-permission-denied": "沒有權限使用攝像頭",
@@ -1 +1 @@
1
- export declare const isMobile: () => any;
1
+ export declare const isMobile: () => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.933",
3
+ "version": "1.0.935",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -75,9 +75,9 @@
75
75
  "antd-mobile": "^5.38.1",
76
76
  "vod-js-sdk-v6": "^1.4.11",
77
77
  "react-camera-pro": "1.4.0",
78
- "@pisell/date-picker": "1.0.126",
78
+ "@pisell/icon": "0.0.10",
79
79
  "@pisell/utils": "1.0.54",
80
- "@pisell/icon": "0.0.10"
80
+ "@pisell/date-picker": "1.0.126"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "react": "^18.0.0",