@pisell/private-materials 6.6.40 → 6.6.42

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 (90) 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 +2 -2
  6. package/build/lowcode/preview.js +16 -16
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +13 -13
  11. package/es/components/booking/addons/model.d.ts +1 -10
  12. package/es/components/booking/forms/model.d.ts +1 -10
  13. package/es/components/booking/info/model.d.ts +1 -10
  14. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  15. package/es/components/booking/info/service2/utils.d.ts +1 -1
  16. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  17. package/es/components/booking/model.d.ts +1 -9
  18. package/es/components/booking/notes/model.d.ts +1 -10
  19. package/es/components/booking/payments/model.d.ts +1 -10
  20. package/es/components/booking/utils.d.ts +2 -2
  21. package/es/components/eftposPay/amount.d.ts +1 -1
  22. package/es/components/eftposPay/device.d.ts +1 -1
  23. package/es/components/eftposPay/hooks.d.ts +2 -2
  24. package/es/components/eftposPay/store/index.d.ts +5 -5
  25. package/es/components/pay/toC/model.d.ts +1 -9
  26. package/es/components/schedules/model.d.ts +1 -9
  27. package/es/components/ticketBooking/utils/index.d.ts +2 -1
  28. package/es/components/ticketBooking/utils/index.js +3 -2
  29. package/es/plus/clientCard/index.js +6 -4
  30. package/es/plus/clientCard/index.less +6 -2
  31. package/es/plus/clientCard/types.d.ts +1 -0
  32. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  33. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  34. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  35. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  36. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  37. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  38. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  39. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  40. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  41. package/es/plus/walletPassGallery/components/passDetail/index.js +85 -43
  42. package/es/plus/walletPassGallery/components/passList/index.js +12 -4
  43. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +3 -0
  44. package/es/plus/walletPassGallery/components/timelineSection/index.js +26 -3
  45. package/es/plus/walletPassGallery/index.d.ts +4 -0
  46. package/es/plus/walletPassGallery/index.js +95 -46
  47. package/es/plus/walletPassGallery/serve.d.ts +11 -1
  48. package/es/plus/walletPassGallery/serve.js +85 -59
  49. package/lib/components/booking/addons/model.d.ts +1 -10
  50. package/lib/components/booking/forms/model.d.ts +1 -10
  51. package/lib/components/booking/info/model.d.ts +1 -10
  52. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  53. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  54. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  55. package/lib/components/booking/model.d.ts +1 -9
  56. package/lib/components/booking/notes/model.d.ts +1 -10
  57. package/lib/components/booking/payments/model.d.ts +1 -10
  58. package/lib/components/booking/utils.d.ts +2 -2
  59. package/lib/components/eftposPay/amount.d.ts +1 -1
  60. package/lib/components/eftposPay/device.d.ts +1 -1
  61. package/lib/components/eftposPay/hooks.d.ts +2 -2
  62. package/lib/components/eftposPay/store/index.d.ts +5 -5
  63. package/lib/components/pay/toC/model.d.ts +1 -9
  64. package/lib/components/schedules/model.d.ts +1 -9
  65. package/lib/components/ticketBooking/utils/index.d.ts +2 -1
  66. package/lib/components/ticketBooking/utils/index.js +3 -2
  67. package/lib/plus/clientCard/index.js +5 -4
  68. package/lib/plus/clientCard/index.less +6 -2
  69. package/lib/plus/clientCard/types.d.ts +1 -0
  70. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  71. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  72. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  73. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  74. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  75. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  76. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  77. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  78. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  79. package/lib/plus/walletPassGallery/components/passDetail/index.js +65 -10
  80. package/lib/plus/walletPassGallery/components/passList/index.js +12 -5
  81. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +3 -0
  82. package/lib/plus/walletPassGallery/components/timelineSection/index.js +32 -10
  83. package/lib/plus/walletPassGallery/index.d.ts +4 -0
  84. package/lib/plus/walletPassGallery/index.js +116 -45
  85. package/lib/plus/walletPassGallery/serve.d.ts +11 -1
  86. package/lib/plus/walletPassGallery/serve.js +25 -12
  87. package/lowcode/client-card/meta.ts +9 -3
  88. package/lowcode/client-search/meta.ts +316 -0
  89. package/lowcode/wallet-pass-gallery/meta.ts +66 -1
  90. package/package.json +3 -3
@@ -0,0 +1,316 @@
1
+ const Meta = {
2
+ componentName: 'ClientSearch',
3
+ title: '客户搜索',
4
+ docUrl: '',
5
+ screenshot: '',
6
+ devMode: 'proCode',
7
+ npm: {
8
+ package: '@pisell/private-materials',
9
+ version: '1.0.0',
10
+ exportName: 'ClientSearch',
11
+ main: 'src/index.ts',
12
+ destructuring: true,
13
+ subName: '',
14
+ },
15
+ configure: {
16
+ props: [
17
+ {
18
+ title: { label: '容器配置' },
19
+ type: 'group',
20
+ display: 'block',
21
+ items: [
22
+ {
23
+ title: { label: '打开状态', tip: 'containerProps.open | 打开状态' },
24
+ name: 'containerProps.open',
25
+ setter: 'BoolSetter',
26
+ defaultValue: true,
27
+ },
28
+ {
29
+ title: { label: '关闭回调', tip: 'containerProps.onCancel | 关闭回调' },
30
+ name: 'containerProps.onCancel',
31
+ setter: 'FunctionSetter',
32
+ },
33
+ {
34
+ title: {
35
+ label: '关闭销毁',
36
+ tip: 'containerProps.destroyOnClose | 关闭销毁',
37
+ },
38
+ name: 'containerProps.destroyOnClose',
39
+ setter: 'BoolSetter',
40
+ defaultValue: true,
41
+ },
42
+ {
43
+ title: { label: '宽度', tip: 'containerProps.width | 宽度' },
44
+ name: 'containerProps.width',
45
+ setter: 'NumberSetter',
46
+ defaultValue: 680,
47
+ },
48
+ ],
49
+ },
50
+ {
51
+ title: { label: '数据与状态' },
52
+ type: 'group',
53
+ display: 'block',
54
+ items: [
55
+ {
56
+ title: { label: '数据源', tip: 'dataSource | 数据源' },
57
+ name: 'dataSource',
58
+ setter: ['JsonSetter'],
59
+ },
60
+ {
61
+ title: { label: '搜索关键字', tip: 'keyword | 搜索关键字' },
62
+ name: 'keyword',
63
+ setter: ['StringSetter'],
64
+ },
65
+ {
66
+ title: { label: '加载中', tip: 'loading | 加载状态' },
67
+ name: 'loading',
68
+ setter: 'BoolSetter',
69
+ },
70
+ {
71
+ title: { label: '外部状态', tip: 'state | 外部状态' },
72
+ name: 'state',
73
+ setter: ['JsonSetter'],
74
+ },
75
+ ],
76
+ },
77
+ {
78
+ title: { label: '新建按钮' },
79
+ type: 'group',
80
+ display: 'block',
81
+ items: [
82
+ {
83
+ title: {
84
+ label: '显示新建按钮',
85
+ tip: 'isShowNewButton | 显示新建按钮',
86
+ },
87
+ name: 'isShowNewButton',
88
+ setter: 'BoolSetter',
89
+ },
90
+ {
91
+ title: { label: '按钮对齐', tip: 'newButtonAlign | 按钮对齐' },
92
+ name: 'newButtonAlign',
93
+ setter: {
94
+ componentName: 'SelectSetter',
95
+ props: {
96
+ options: [
97
+ { title: '左对齐', value: 'left' },
98
+ { title: '居中', value: 'center' },
99
+ { title: '右对齐', value: 'right' },
100
+ ],
101
+ },
102
+ },
103
+ },
104
+ {
105
+ title: { label: '按钮文案', tip: 'newButtonText | 按钮文案' },
106
+ name: 'newButtonText',
107
+ setter: ['StringSetter'],
108
+ },
109
+ {
110
+ title: {
111
+ label: '新建弹窗数据',
112
+ tip: 'newDialogDataSource | 新建弹窗数据',
113
+ },
114
+ name: 'newDialogDataSource',
115
+ setter: ['JsonSetter'],
116
+ },
117
+ ],
118
+ },
119
+ {
120
+ title: { label: '搜索配置' },
121
+ type: 'group',
122
+ display: 'block',
123
+ items: [
124
+ {
125
+ title: { label: '显示搜索框', tip: 'isShowSearch | 显示搜索框' },
126
+ name: 'isShowSearch',
127
+ setter: 'BoolSetter',
128
+ },
129
+ {
130
+ title: {
131
+ label: '显示搜索相机',
132
+ tip: 'isShowSearchCamera | 显示搜索相机',
133
+ },
134
+ name: 'isShowSearchCamera',
135
+ setter: 'BoolSetter',
136
+ },
137
+ {
138
+ title: { label: '搜索图标', tip: 'searchIcon | 搜索图标' },
139
+ name: 'searchIcon',
140
+ setter: ['StringSetter'],
141
+ },
142
+ {
143
+ title: { label: '搜索占位', tip: 'placeholder | 搜索占位' },
144
+ name: 'placeholder',
145
+ setter: ['StringSetter'],
146
+ },
147
+ {
148
+ title: {
149
+ label: '显示搜索按钮',
150
+ tip: 'isShowSearchButton | 显示搜索按钮',
151
+ },
152
+ name: 'isShowSearchButton',
153
+ setter: 'BoolSetter',
154
+ },
155
+ ],
156
+ },
157
+ {
158
+ title: { label: '结果配置' },
159
+ type: 'group',
160
+ display: 'block',
161
+ items: [
162
+ {
163
+ title: { label: '排序方式', tip: 'resultSort | 排序方式' },
164
+ name: 'resultSort',
165
+ setter: {
166
+ componentName: 'RadioGroupSetter',
167
+ props: {
168
+ options: [
169
+ { title: '升序', value: 'asc' },
170
+ { title: '降序', value: 'desc' },
171
+ { title: '自定义', value: 'custom' },
172
+ ],
173
+ },
174
+ },
175
+ },
176
+ {
177
+ title: { label: '排序字段', tip: 'sortBy | 排序字段' },
178
+ name: 'sortBy',
179
+ setter: ['StringSetter'],
180
+ },
181
+ {
182
+ title: { label: '列表配置', tip: 'resultProps | 列表配置' },
183
+ name: 'resultProps',
184
+ setter: ['JsonSetter'],
185
+ },
186
+ ],
187
+ },
188
+ {
189
+ title: { label: '扩展能力' },
190
+ type: 'group',
191
+ display: 'block',
192
+ items: [
193
+ {
194
+ title: { label: '显示扫码枪', tip: 'isShowScanner | 显示扫码枪' },
195
+ name: 'isShowScanner',
196
+ setter: 'BoolSetter',
197
+ },
198
+ {
199
+ title: { label: '显示摄像头', tip: 'isShowCamera | 显示摄像头' },
200
+ name: 'isShowCamera',
201
+ setter: 'BoolSetter',
202
+ },
203
+ {
204
+ title: { label: '显示NFC', tip: 'isShowNFC | 显示NFC' },
205
+ name: 'isShowNFC',
206
+ setter: 'BoolSetter',
207
+ },
208
+ {
209
+ title: { label: '样式', tip: 'style | 样式' },
210
+ name: 'style',
211
+ setter: ['JsonSetter'],
212
+ },
213
+ ],
214
+ },
215
+ {
216
+ title: { label: '列表交互' },
217
+ type: 'group',
218
+ display: 'block',
219
+ items: [
220
+ {
221
+ title: { label: '点击行回调', tip: 'onRowClick | 点击行回调' },
222
+ name: 'onRowClick',
223
+ setter: 'FunctionSetter',
224
+ },
225
+ {
226
+ title: { label: '新增客户回调', tip: 'onAddClient | 新增客户回调' },
227
+ name: 'onAddClient',
228
+ setter: 'FunctionSetter',
229
+ },
230
+ {
231
+ title: { label: '触底加载', tip: 'onLoadMore | 触底加载回调' },
232
+ name: 'onLoadMore',
233
+ setter: 'FunctionSetter',
234
+ },
235
+ {
236
+ title: { label: '是否还有更多', tip: 'hasMore | 是否还有更多数据' },
237
+ name: 'hasMore',
238
+ setter: 'BoolSetter',
239
+ defaultValue: false,
240
+ },
241
+ ],
242
+ },
243
+ {
244
+ title: { label: '搜索事件' },
245
+ type: 'group',
246
+ display: 'block',
247
+ items: [
248
+ {
249
+ title: { label: '关键字变化', tip: 'onKeywordChange | 关键字变化' },
250
+ name: 'onKeywordChange',
251
+ setter: 'FunctionSetter',
252
+ },
253
+ {
254
+ title: { label: '搜索回调', tip: 'onSearch | 搜索回调' },
255
+ name: 'onSearch',
256
+ setter: 'FunctionSetter',
257
+ },
258
+ {
259
+ title: { label: '数据变化', tip: 'onDataChange | 数据变化' },
260
+ name: 'onDataChange',
261
+ setter: 'FunctionSetter',
262
+ },
263
+ ],
264
+ },
265
+ ],
266
+ component: {
267
+ isModal: true,
268
+ nestingRule: {
269
+ parentWhitelist: ['Page', 'Component'],
270
+ },
271
+ },
272
+ supports: {
273
+ events: [
274
+ {
275
+ name: 'onRowClick',
276
+ },
277
+ {
278
+ name: 'onAddClient',
279
+ },
280
+ {
281
+ name: 'onLoadMore',
282
+ },
283
+ {
284
+ name: 'onKeywordChange',
285
+ },
286
+ {
287
+ name: 'onSearch',
288
+ },
289
+ {
290
+ name: 'onDataChange',
291
+ },
292
+ ],
293
+ style: true,
294
+ },
295
+ },
296
+ };
297
+
298
+ const snippets = [
299
+ {
300
+ title: '客户搜索',
301
+ screenshot: '',
302
+ schema: {
303
+ componentName: 'ClientSearch',
304
+ props: {
305
+ isShowSearch: true,
306
+ isShowNewButton: true,
307
+ hasMore: false,
308
+ },
309
+ },
310
+ },
311
+ ];
312
+
313
+ export default {
314
+ snippets,
315
+ ...Meta,
316
+ };
@@ -13,7 +13,72 @@ const Meta = {
13
13
  subName: '',
14
14
  },
15
15
  configure: {
16
- props: [],
16
+ props: [
17
+ {
18
+ title: {
19
+ label: {
20
+ type: 'i18n',
21
+ 'en-US': 'Hide Title',
22
+ 'zh-CN': '隐藏标题',
23
+ 'zh-HK': '隱藏標題',
24
+ },
25
+ },
26
+ name: 'hideTitle',
27
+ propType: 'bool',
28
+ setter: 'BoolSetter',
29
+ defaultValue: false,
30
+ },
31
+ {
32
+ title: {
33
+ label: {
34
+ type: 'i18n',
35
+ 'en-US': 'Hide Add Button',
36
+ 'zh-CN': '隐藏添加按钮',
37
+ 'zh-HK': '隱藏添加按鈕',
38
+ },
39
+ },
40
+ name: 'hideAddButton',
41
+ propType: 'bool',
42
+ setter: 'BoolSetter',
43
+ defaultValue: false,
44
+ },
45
+ {
46
+ title: {
47
+ label: {
48
+ type: 'i18n',
49
+ 'en-US': 'Customer',
50
+ 'zh-CN': '当前客户',
51
+ 'zh-HK': '当前客户',
52
+ },
53
+ },
54
+ name: 'customer',
55
+ setter: 'JsonSetter',
56
+ },
57
+ {
58
+ title: {
59
+ label: {
60
+ type: 'i18n',
61
+ 'en-US': 'Platform',
62
+ 'zh-CN': '平台',
63
+ 'zh-HK': '平台',
64
+ },
65
+ },
66
+ name: 'platform',
67
+ propType: {
68
+ type: 'oneOf',
69
+ value: ['pc', 'h5'],
70
+ },
71
+ setter: {
72
+ componentName: 'RadioGroupSetter',
73
+ props: {
74
+ options: [
75
+ { title: 'PC', value: 'pc' },
76
+ { title: 'H5', value: 'h5' },
77
+ ],
78
+ },
79
+ },
80
+ },
81
+ ],
17
82
  supports: {},
18
83
  component: {},
19
84
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.6.40",
3
+ "version": "6.6.42",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -63,8 +63,8 @@
63
63
  "@use-gesture/react": "^10.3.1",
64
64
  "@pisell/utils": "3.0.2",
65
65
  "@pisell/icon": "0.0.11",
66
- "@pisell/date-picker": "3.0.7",
67
- "@pisell/materials": "6.6.13"
66
+ "@pisell/materials": "6.6.14",
67
+ "@pisell/date-picker": "3.0.7"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "react": "^18.0.0",