ts-glitter 22.5.2 → 22.5.4

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 (33) hide show
  1. package/collection.json +398 -0
  2. package/lowcode/Entry.js +1 -1
  3. package/lowcode/Entry.ts +1 -1
  4. package/lowcode/backend-manager/bg-product.js +3 -0
  5. package/lowcode/backend-manager/bg-product.ts +3 -0
  6. package/lowcode/cms-plugin/shopping-collections.js +851 -831
  7. package/lowcode/cms-plugin/shopping-collections.ts +909 -1156
  8. package/lowcode/cms-plugin/shopping-setting-basic.js +1 -0
  9. package/lowcode/cms-plugin/shopping-setting-basic.ts +1 -0
  10. package/lowcode/glitter-base/route/public-config.js +1 -1
  11. package/lowcode/glitter-base/route/public-config.ts +1 -1
  12. package/lowcode/public-components/product/pd-card-03.ts +1 -0
  13. package/lowcode/public-components/product/product-list.js +8 -4
  14. package/lowcode/public-components/product/product-list.ts +6 -5
  15. package/package.json +1 -1
  16. package/src/api-public/services/collection.d.ts +3 -0
  17. package/src/api-public/services/collection.js +100 -0
  18. package/src/api-public/services/collection.js.map +1 -0
  19. package/src/api-public/services/collection.ts +98 -0
  20. package/src/api-public/services/data-analyze.d.ts +1 -1
  21. package/src/api-public/services/manager.d.ts +2 -1
  22. package/src/api-public/services/manager.js +67 -13
  23. package/src/api-public/services/manager.js.map +1 -1
  24. package/src/api-public/services/manager.ts +86 -14
  25. package/src/api-public/services/public-table-check.js +14 -1
  26. package/src/api-public/services/public-table-check.js.map +1 -1
  27. package/src/api-public/services/public-table-check.ts +14 -1
  28. package/src/api-public/services/shopping.js +16 -8
  29. package/src/api-public/services/shopping.js.map +1 -1
  30. package/src/api-public/services/shopping.ts +19 -10
  31. package/src/api-public/services/updated-table-checked.js +43 -0
  32. package/src/api-public/services/updated-table-checked.js.map +1 -1
  33. package/src/api-public/services/updated-table-checked.ts +49 -0
@@ -0,0 +1,398 @@
1
+ [
2
+ {
3
+ "code": "333",
4
+ "array": [
5
+ {
6
+ "title": "毛孩玩具",
7
+ "array": [
8
+ {
9
+ "title": "寵物食品",
10
+ "array": [],
11
+ "product_id": [
12
+ 298,
13
+ 298
14
+ ],
15
+ "parentTitles": [],
16
+ "subCollections": [],
17
+ "checked": false,
18
+ "seo_title": "",
19
+ "seo_content": "",
20
+ "language_data": {
21
+ "zh-CN": {
22
+ "title": "寵物食品",
23
+ "seo": {
24
+ "domain": "",
25
+ "title": "寵物食品",
26
+ "content": ""
27
+ }
28
+ },
29
+ "zh-TW": {
30
+ "title": "寵物食品",
31
+ "seo": {
32
+ "domain": "",
33
+ "title": "寵物食品",
34
+ "content": ""
35
+ }
36
+ },
37
+ "en-US": {
38
+ "title": "寵物食品",
39
+ "seo": {
40
+ "domain": "",
41
+ "title": "寵物食品",
42
+ "content": ""
43
+ }
44
+ }
45
+ },
46
+ "seo_image": "",
47
+ "code": "寵物食品"
48
+ }
49
+ ],
50
+ "product_id": [
51
+ 298
52
+ ],
53
+ "parentTitles": [],
54
+ "subCollections": [],
55
+ "checked": false,
56
+ "seo_title": "",
57
+ "seo_content": "",
58
+ "language_data": {
59
+ "zh-CN": {
60
+ "title": "毛孩玩具",
61
+ "seo": {
62
+ "domain": "",
63
+ "title": "毛孩玩具",
64
+ "content": ""
65
+ }
66
+ },
67
+ "zh-TW": {
68
+ "title": "毛孩玩具",
69
+ "seo": {
70
+ "domain": "",
71
+ "title": "毛孩玩具",
72
+ "content": ""
73
+ }
74
+ },
75
+ "en-US": {
76
+ "title": "毛孩玩具",
77
+ "seo": {
78
+ "domain": "",
79
+ "title": "毛孩玩具",
80
+ "content": ""
81
+ }
82
+ }
83
+ },
84
+ "seo_image": "",
85
+ "code": "毛孩玩具"
86
+ }
87
+ ],
88
+ "title": "熱門商品",
89
+ "hidden": false,
90
+ "og_path": "熱門商品",
91
+ "new_path": "熱門商品",
92
+ "product_id": [
93
+ 1082,
94
+ 298
95
+ ],
96
+ "language_data": {
97
+ "en-US": {
98
+ "seo": {
99
+ "title": "",
100
+ "domain": "熱門商品2",
101
+ "content": ""
102
+ },
103
+ "title": ""
104
+ },
105
+ "zh-CN": {
106
+ "seo": {
107
+ "title": "",
108
+ "domain": "",
109
+ "content": ""
110
+ },
111
+ "title": ""
112
+ },
113
+ "zh-TW": {
114
+ "seo": {
115
+ "domain": "333"
116
+ },
117
+ "title": "熱門商品"
118
+ }
119
+ },
120
+ "product_count": 7
121
+ },
122
+ {
123
+ "code": "褲子",
124
+ "title": "褲子",
125
+ "hidden": false,
126
+ "og_path": "褲子",
127
+ "new_path": "褲子",
128
+ "seo_image": "",
129
+ "seo_title": "",
130
+ "product_id": [
131
+ 1532,
132
+ 1519
133
+ ],
134
+ "seo_content": "",
135
+ "language_data": {
136
+ "en-US": {
137
+ "seo": {
138
+ "title": "",
139
+ "domain": "褲子",
140
+ "content": ""
141
+ },
142
+ "title": "褲子"
143
+ },
144
+ "zh-CN": {
145
+ "seo": {
146
+ "title": "",
147
+ "domain": "",
148
+ "content": ""
149
+ },
150
+ "title": ""
151
+ },
152
+ "zh-TW": {
153
+ "seo": {
154
+ "title": "",
155
+ "domain": "褲子",
156
+ "content": ""
157
+ },
158
+ "title": "褲子"
159
+ }
160
+ },
161
+ "product_count": 0
162
+ },
163
+ {
164
+ "code": "T恤",
165
+ "title": "T恤",
166
+ "hidden": false,
167
+ "og_path": "T恤",
168
+ "new_path": "T恤",
169
+ "seo_image": "",
170
+ "seo_title": "",
171
+ "product_id": [],
172
+ "seo_content": "",
173
+ "language_data": {
174
+ "en-US": {
175
+ "seo": {
176
+ "title": "",
177
+ "domain": "T恤",
178
+ "content": ""
179
+ },
180
+ "title": "T恤"
181
+ },
182
+ "zh-CN": {
183
+ "seo": {
184
+ "title": "",
185
+ "domain": "",
186
+ "content": ""
187
+ },
188
+ "title": ""
189
+ },
190
+ "zh-TW": {
191
+ "seo": {
192
+ "title": "",
193
+ "domain": "T恤",
194
+ "content": ""
195
+ },
196
+ "title": "T恤"
197
+ }
198
+ },
199
+ "product_count": 0
200
+ },
201
+ {
202
+ "code": "襯衫",
203
+ "title": "襯衫",
204
+ "hidden": false,
205
+ "og_path": "襯衫",
206
+ "new_path": "襯衫",
207
+ "seo_image": "",
208
+ "seo_title": "",
209
+ "product_id": [],
210
+ "seo_content": "",
211
+ "language_data": {
212
+ "en-US": {
213
+ "seo": {
214
+ "title": "",
215
+ "domain": "襯衫",
216
+ "content": ""
217
+ },
218
+ "title": "襯衫"
219
+ },
220
+ "zh-CN": {
221
+ "seo": {
222
+ "title": "",
223
+ "domain": "",
224
+ "content": ""
225
+ },
226
+ "title": ""
227
+ },
228
+ "zh-TW": {
229
+ "seo": {
230
+ "title": "",
231
+ "domain": "襯衫",
232
+ "content": ""
233
+ },
234
+ "title": "襯衫"
235
+ }
236
+ },
237
+ "product_count": 0
238
+ },
239
+ {
240
+ "code": "牛仔褲",
241
+ "title": "牛仔褲",
242
+ "hidden": false,
243
+ "og_path": "牛仔褲",
244
+ "new_path": "牛仔褲",
245
+ "seo_image": "",
246
+ "seo_title": "",
247
+ "product_id": [],
248
+ "seo_content": "",
249
+ "language_data": {
250
+ "en-US": {
251
+ "seo": {
252
+ "title": "",
253
+ "domain": "牛仔褲",
254
+ "content": ""
255
+ },
256
+ "title": "牛仔褲"
257
+ },
258
+ "zh-CN": {
259
+ "seo": {
260
+ "title": "",
261
+ "domain": "",
262
+ "content": ""
263
+ },
264
+ "title": ""
265
+ },
266
+ "zh-TW": {
267
+ "seo": {
268
+ "title": "",
269
+ "domain": "牛仔褲",
270
+ "content": ""
271
+ },
272
+ "title": "牛仔褲"
273
+ }
274
+ },
275
+ "product_count": 0
276
+ },
277
+ {
278
+ "code": "",
279
+ "title": "毛孩玩具",
280
+ "checked": false,
281
+ "og_path": "毛孩玩具",
282
+ "new_path": "毛孩玩具",
283
+ "seo_image": "",
284
+ "seo_title": "",
285
+ "product_id": [],
286
+ "seo_content": "",
287
+ "parentTitles": [],
288
+ "language_data": {
289
+ "en-US": {
290
+ "seo": {
291
+ "title": "",
292
+ "domain": "",
293
+ "content": ""
294
+ },
295
+ "title": ""
296
+ },
297
+ "zh-CN": {
298
+ "seo": {
299
+ "title": "",
300
+ "domain": "",
301
+ "content": ""
302
+ },
303
+ "title": ""
304
+ },
305
+ "zh-TW": {
306
+ "seo": {
307
+ "title": "",
308
+ "domain": "",
309
+ "content": ""
310
+ },
311
+ "title": ""
312
+ }
313
+ },
314
+ "product_count": 0,
315
+ "allCollections": [],
316
+ "subCollections": []
317
+ },
318
+ {
319
+ "code": "測試分類",
320
+ "title": "測試分類",
321
+ "checked": false,
322
+ "og_path": "測試分類",
323
+ "new_path": "測試分類",
324
+ "seo_image": "",
325
+ "seo_title": "測試分類",
326
+ "product_id": [],
327
+ "seo_content": "",
328
+ "parentTitles": [],
329
+ "language_data": {
330
+ "en-US": {
331
+ "seo": {
332
+ "title": "測試分類",
333
+ "domain": "",
334
+ "content": ""
335
+ },
336
+ "title": "測試分類"
337
+ },
338
+ "zh-CN": {
339
+ "seo": {
340
+ "title": "測試分類",
341
+ "domain": "",
342
+ "content": ""
343
+ },
344
+ "title": "測試分類"
345
+ },
346
+ "zh-TW": {
347
+ "seo": {
348
+ "title": "測試分類",
349
+ "domain": "",
350
+ "content": ""
351
+ },
352
+ "title": "測試分類"
353
+ }
354
+ },
355
+ "subCollections": []
356
+ },
357
+ {
358
+ "code": "衣服",
359
+ "title": "衣服",
360
+ "checked": false,
361
+ "og_path": "衣服",
362
+ "new_path": "衣服",
363
+ "seo_image": "",
364
+ "seo_title": "衣服",
365
+ "product_id": [
366
+ 1532
367
+ ],
368
+ "seo_content": "",
369
+ "parentTitles": [],
370
+ "language_data": {
371
+ "en-US": {
372
+ "seo": {
373
+ "title": "衣服",
374
+ "domain": "",
375
+ "content": ""
376
+ },
377
+ "title": "衣服"
378
+ },
379
+ "zh-CN": {
380
+ "seo": {
381
+ "title": "衣服",
382
+ "domain": "",
383
+ "content": ""
384
+ },
385
+ "title": "衣服"
386
+ },
387
+ "zh-TW": {
388
+ "seo": {
389
+ "title": "衣服",
390
+ "domain": "",
391
+ "content": ""
392
+ },
393
+ "title": "衣服"
394
+ }
395
+ },
396
+ "subCollections": []
397
+ }
398
+ ]
package/lowcode/Entry.js CHANGED
@@ -154,7 +154,7 @@ export class Entry {
154
154
  }
155
155
  window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : createClock();
156
156
  console.log(`Entry-time:`, window.renderClock.stop());
157
- glitter.share.editerVersion = 'V_22.5.2';
157
+ glitter.share.editerVersion = 'V_22.5.4';
158
158
  glitter.share.start = new Date();
159
159
  const vm = { appConfig: [] };
160
160
  window.saasConfig = {
package/lowcode/Entry.ts CHANGED
@@ -159,7 +159,7 @@ export class Entry {
159
159
  }
160
160
  (window as any).renderClock = (window as any).renderClock ?? createClock();
161
161
  console.log(`Entry-time:`, (window as any).renderClock.stop());
162
- glitter.share.editerVersion = 'V_22.5.2';
162
+ glitter.share.editerVersion = 'V_22.5.4';
163
163
  glitter.share.start = new Date();
164
164
  const vm = { appConfig: [] };
165
165
  (window as any).saasConfig = {
@@ -42,6 +42,7 @@ export class BgProduct {
42
42
  }, 'variantsSelector');
43
43
  }
44
44
  static productsDialog(obj) {
45
+ console.log(obj.default);
45
46
  const glitter = window.parent.glitter;
46
47
  return window.parent.glitter.innerDialog((gvc) => {
47
48
  const vm = {
@@ -193,6 +194,7 @@ export class BgProduct {
193
194
  }
194
195
  gvc.notifyDataChange(id);
195
196
  }
197
+ console.log(`opt.key==>`, opt.key);
196
198
  return (gvc.bindView({
197
199
  bind: id,
198
200
  view: () => {
@@ -438,6 +440,7 @@ export class BgProduct {
438
440
  return gvc.bindView({
439
441
  bind: id,
440
442
  view: () => {
443
+ console.log(`opt.key===>`, opt.key);
441
444
  return html `<input
442
445
  class="form-check-input mt-0 ${vm.checkClass}"
443
446
  type="checkbox"
@@ -80,6 +80,7 @@ export class BgProduct {
80
80
  show_product_type?: boolean;
81
81
  right_element_type?: 'price' | 'stock';
82
82
  }) {
83
+ console.log(obj.default)
83
84
  const glitter = (window.parent as any).glitter;
84
85
  return (window.parent as any).glitter.innerDialog((gvc: GVC) => {
85
86
  const vm = {
@@ -245,6 +246,7 @@ export class BgProduct {
245
246
  gvc.notifyDataChange(id);
246
247
  }
247
248
 
249
+ console.log(`opt.key==>`,opt.key)
248
250
  return (
249
251
  gvc.bindView({
250
252
  bind: id,
@@ -563,6 +565,7 @@ export class BgProduct {
563
565
  return gvc.bindView({
564
566
  bind: id,
565
567
  view: () => {
568
+ console.log(`opt.key===>`,opt.key)
566
569
  return html`<input
567
570
  class="form-check-input mt-0 ${vm.checkClass}"
568
571
  type="checkbox"