ts-glitter 21.1.8 → 21.1.9

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 (78) hide show
  1. package/lowcode/Entry.js +14 -1
  2. package/lowcode/Entry.ts +13 -1
  3. package/lowcode/backend-manager/bg-line.js +18 -10
  4. package/lowcode/backend-manager/bg-line.ts +19 -10
  5. package/lowcode/backend-manager/bg-list-component.js +1 -2
  6. package/lowcode/backend-manager/bg-list-component.ts +1 -1
  7. package/lowcode/backend-manager/bg-notify.js +17 -10
  8. package/lowcode/backend-manager/bg-notify.ts +19 -11
  9. package/lowcode/backend-manager/bg-recommend.js +15 -9
  10. package/lowcode/backend-manager/bg-recommend.ts +16 -9
  11. package/lowcode/backend-manager/bg-sns.js +16 -9
  12. package/lowcode/backend-manager/bg-sns.ts +18 -11
  13. package/lowcode/backend-manager/bg-widget.js +325 -261
  14. package/lowcode/backend-manager/bg-widget.ts +117 -45
  15. package/lowcode/cms-plugin/auto-fcm-history.js +15 -6
  16. package/lowcode/cms-plugin/auto-fcm-history.ts +18 -11
  17. package/lowcode/cms-plugin/auto-reply.js +17 -1
  18. package/lowcode/cms-plugin/auto-reply.ts +16 -1
  19. package/lowcode/cms-plugin/exhibition-list.js +11 -2
  20. package/lowcode/cms-plugin/exhibition-list.ts +12 -2
  21. package/lowcode/cms-plugin/live_capture.js +2 -2
  22. package/lowcode/cms-plugin/live_capture.ts +2 -2
  23. package/lowcode/cms-plugin/model/order.d.ts +1 -0
  24. package/lowcode/cms-plugin/module/order-excel.js +15 -1
  25. package/lowcode/cms-plugin/module/order-excel.ts +22 -2
  26. package/lowcode/cms-plugin/module/table-storage.js +11 -0
  27. package/lowcode/cms-plugin/module/table-storage.ts +12 -0
  28. package/lowcode/cms-plugin/permission-setting.js +16 -9
  29. package/lowcode/cms-plugin/permission-setting.ts +18 -10
  30. package/lowcode/cms-plugin/reconciliation-area.js +12 -3
  31. package/lowcode/cms-plugin/reconciliation-area.ts +13 -3
  32. package/lowcode/cms-plugin/shopping-allowance-manager.js +12 -3
  33. package/lowcode/cms-plugin/shopping-allowance-manager.ts +13 -3
  34. package/lowcode/cms-plugin/shopping-invoice-manager.js +12 -3
  35. package/lowcode/cms-plugin/shopping-invoice-manager.ts +13 -4
  36. package/lowcode/cms-plugin/shopping-order-manager.js +12 -3
  37. package/lowcode/cms-plugin/shopping-order-manager.ts +13 -4
  38. package/lowcode/cms-plugin/shopping-product-setting.js +16 -10
  39. package/lowcode/cms-plugin/shopping-product-setting.ts +17 -10
  40. package/lowcode/cms-plugin/shopping-product-stock.js +17 -11
  41. package/lowcode/cms-plugin/shopping-product-stock.ts +18 -11
  42. package/lowcode/cms-plugin/shopping-setting-basic.js +129 -38
  43. package/lowcode/cms-plugin/shopping-setting-basic.ts +134 -38
  44. package/lowcode/cms-plugin/stock-history.js +14 -7
  45. package/lowcode/cms-plugin/stock-history.ts +15 -7
  46. package/lowcode/cms-plugin/stock-stores.js +13 -6
  47. package/lowcode/cms-plugin/stock-stores.ts +14 -6
  48. package/lowcode/cms-plugin/stock-vendors.js +13 -6
  49. package/lowcode/cms-plugin/stock-vendors.ts +14 -6
  50. package/lowcode/cms-plugin/user-list.js +24 -7
  51. package/lowcode/cms-plugin/user-list.ts +25 -7
  52. package/lowcode/css/editor.css +9 -4
  53. package/lowcode/public-components/product/pd-class.js +11 -2
  54. package/lowcode/public-components/product/pd-class.ts +16 -3
  55. package/lowcode/public-components/public/ad.js +42 -10
  56. package/lowcode/public-components/public/ad.ts +28 -1
  57. package/lowcode/public-models/product.ts +1 -0
  58. package/lowcode/view-model/saas-view-model.js +394 -379
  59. package/lowcode/view-model/saas-view-model.ts +1451 -1405
  60. package/package.json +1 -1
  61. package/src/api-public/controllers/user.js +4 -4
  62. package/src/api-public/controllers/user.js.map +1 -1
  63. package/src/api-public/controllers/user.ts +4 -4
  64. package/src/api-public/services/checkout-event.js +7 -17
  65. package/src/api-public/services/checkout-event.js.map +1 -1
  66. package/src/api-public/services/fb-api.d.ts +4 -3
  67. package/src/api-public/services/fb-api.js +72 -27
  68. package/src/api-public/services/fb-api.js.map +1 -1
  69. package/src/api-public/services/fb-api.ts +183 -127
  70. package/src/api-public/services/user.d.ts +6 -5
  71. package/src/api-public/services/user.js +19 -27
  72. package/src/api-public/services/user.js.map +1 -1
  73. package/src/api-public/services/user.ts +14 -10
  74. package/src/seo-config.js +1 -0
  75. package/src/seo-config.js.map +1 -1
  76. package/src/seo-config.ts +1 -0
  77. package/src/services/app.js +7 -17
  78. package/src/services/app.js.map +1 -1
@@ -7,6 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
+ var _a;
10
11
  import { EditorElem } from '../glitterBundle/plugins/editor-elem.js';
11
12
  import { PageSplit } from './splitPage.js';
12
13
  import { Tool } from '../modules/tool.js';
@@ -14,10 +15,11 @@ import { ApiShop } from '../glitter-base/route/shopping.js';
14
15
  import { Article } from '../glitter-base/route/article.js';
15
16
  import { ApiUser } from '../glitter-base/route/user.js';
16
17
  import { ApiStock } from '../glitter-base/route/stock.js';
17
- import { FormModule } from '../cms-plugin/module/form-module.js';
18
18
  import { ShareDialog } from '../glitterBundle/dialog/ShareDialog.js';
19
- import { FormCheck } from '../cms-plugin/module/form-check.js';
20
19
  import { Language } from '../glitter-base/global/language.js';
20
+ import { FormModule } from '../cms-plugin/module/form-module.js';
21
+ import { FormCheck } from '../cms-plugin/module/form-check.js';
22
+ import { TableStorage } from '../cms-plugin/module/table-storage.js';
21
23
  import { ProductAi } from '../cms-plugin/ai-generator/product-ai.js';
22
24
  import { imageLibrary } from '../modules/image-library.js';
23
25
  import { Animation } from '../glitterBundle/module/Animation.js';
@@ -64,7 +66,7 @@ export class BgWidget {
64
66
  `;
65
67
  }
66
68
  static customButton(setValue) {
67
- var _a, _b, _c, _d;
69
+ var _b, _c, _d, _e;
68
70
  const button = setValue.button;
69
71
  const event = setValue.event;
70
72
  const text = setValue.text;
@@ -100,12 +102,12 @@ export class BgWidget {
100
102
  })();
101
103
  return html ` <button
102
104
  type="button"
103
- class="btn btn-${button.color} ${buttonSize} ${(_a = button.class) !== null && _a !== void 0 ? _a : ''}"
104
- style="${(_b = button.style) !== null && _b !== void 0 ? _b : ''}"
105
+ class="btn btn-${button.color} ${buttonSize} ${(_b = button.class) !== null && _b !== void 0 ? _b : ''}"
106
+ style="${(_c = button.style) !== null && _c !== void 0 ? _c : ''}"
105
107
  onclick="${event}"
106
108
  >
107
109
  <i class="${icon ? icon.name : 'd-none'}"></i>
108
- <span class="${textColor} ${(_c = text.class) !== null && _c !== void 0 ? _c : ''}" style="${textSize} ${(_d = text.style) !== null && _d !== void 0 ? _d : ''}">${text.name}</span>
110
+ <span class="${textColor} ${(_d = text.class) !== null && _d !== void 0 ? _d : ''}" style="${textSize} ${(_e = text.style) !== null && _e !== void 0 ? _e : ''}">${text.name}</span>
109
111
  </button>`;
110
112
  }
111
113
  static save(event, text = '儲存', customClass) {
@@ -141,36 +143,36 @@ export class BgWidget {
141
143
  `;
142
144
  }
143
145
  static disableButton(text, obj) {
144
- var _a;
146
+ var _b;
145
147
  return html ` <button class="btn btn-gray-disable" type="button">
146
148
  <i class="${obj && obj.icon && obj.icon.length > 0 ? obj.icon : 'd-none'}" style="color: #393939"></i>
147
- ${text.length > 0 ? html `<span class="tx_700" style="${(_a = obj === null || obj === void 0 ? void 0 : obj.textStyle) !== null && _a !== void 0 ? _a : ''}">${text}</span>` : ''}
149
+ ${text.length > 0 ? html `<span class="tx_700" style="${(_b = obj === null || obj === void 0 ? void 0 : obj.textStyle) !== null && _b !== void 0 ? _b : ''}">${text}</span>` : ''}
148
150
  </button>`;
149
151
  }
150
152
  static grayButton(text, event, obj) {
151
- var _a;
153
+ var _b;
152
154
  return html ` <button class="btn btn-gray ${(obj === null || obj === void 0 ? void 0 : obj.class) || ''}" type="button" onclick="${event}">
153
155
  <i class="${obj && obj.icon && obj.icon.length > 0 ? obj.icon : 'd-none'}" style="color: #393939"></i>
154
- ${text.length > 0 ? html `<span class="tx_700" style="${(_a = obj === null || obj === void 0 ? void 0 : obj.textStyle) !== null && _a !== void 0 ? _a : ''}">${text}</span>` : ''}
156
+ ${text.length > 0 ? html `<span class="tx_700" style="${(_b = obj === null || obj === void 0 ? void 0 : obj.textStyle) !== null && _b !== void 0 ? _b : ''}">${text}</span>` : ''}
155
157
  </button>`;
156
158
  }
157
159
  static darkButton(text, event, obj) {
158
- var _a, _b, _c;
160
+ var _b, _c, _d;
159
161
  return html ` <button
160
162
  type="button"
161
- class="btn btn-black ${(_a = obj === null || obj === void 0 ? void 0 : obj.class) !== null && _a !== void 0 ? _a : ''}"
162
- style="${(_b = obj === null || obj === void 0 ? void 0 : obj.style) !== null && _b !== void 0 ? _b : ''}"
163
+ class="btn btn-black ${(_b = obj === null || obj === void 0 ? void 0 : obj.class) !== null && _b !== void 0 ? _b : ''}"
164
+ style="${(_c = obj === null || obj === void 0 ? void 0 : obj.style) !== null && _c !== void 0 ? _c : ''}"
163
165
  onclick="${event}"
164
166
  >
165
167
  <i class="${obj && obj.icon && obj.icon.length > 0 ? obj.icon : 'd-none'}"></i>
166
- <span class="tx_700_white" style="${(_c = obj === null || obj === void 0 ? void 0 : obj.textStyle) !== null && _c !== void 0 ? _c : ''}">${text}</span>
168
+ <span class="tx_700_white" style="${(_d = obj === null || obj === void 0 ? void 0 : obj.textStyle) !== null && _d !== void 0 ? _d : ''}">${text}</span>
167
169
  </button>`;
168
170
  }
169
171
  static redButton(text, event, obj) {
170
- var _a;
172
+ var _b;
171
173
  return html ` <button class="btn btn-red" type="button" onclick="${event}">
172
174
  <i class="${obj && obj.icon && obj.icon.length > 0 ? obj.icon : 'd-none'}"></i>
173
- <span class="tx_700_white" style="${(_a = obj === null || obj === void 0 ? void 0 : obj.textStyle) !== null && _a !== void 0 ? _a : ''}">${text}</span>
175
+ <span class="tx_700_white" style="${(_b = obj === null || obj === void 0 ? void 0 : obj.textStyle) !== null && _b !== void 0 ? _b : ''}">${text}</span>
174
176
  </button>`;
175
177
  }
176
178
  static plusButton(obj) {
@@ -219,19 +221,19 @@ export class BgWidget {
219
221
  `;
220
222
  }
221
223
  static questionButton(event, obj) {
222
- var _a;
224
+ var _b;
223
225
  return html `<i
224
226
  class="fa-regular fa-circle-question cursor_pointer"
225
- style="font-size: ${(_a = obj === null || obj === void 0 ? void 0 : obj.size) !== null && _a !== void 0 ? _a : 18}px"
227
+ style="font-size: ${(_b = obj === null || obj === void 0 ? void 0 : obj.size) !== null && _b !== void 0 ? _b : 18}px"
226
228
  onclick="${event}"
227
229
  ></i>`;
228
230
  }
229
231
  static generateTooltipButton(gvc, innerHTML, obj) {
230
- var _a;
232
+ var _b;
231
233
  return html `<i
232
234
  class="fa-regular fa-circle-question cursor_pointer"
233
235
  data-check="false"
234
- style="font-size: ${(_a = obj === null || obj === void 0 ? void 0 : obj.size) !== null && _a !== void 0 ? _a : 18}px"
236
+ style="font-size: ${(_b = obj === null || obj === void 0 ? void 0 : obj.size) !== null && _b !== void 0 ? _b : 18}px"
235
237
  onclick="${gvc.event(e => {
236
238
  if (!e.parentElement.classList.contains('position-relative')) {
237
239
  e.parentElement.classList.add('position-relative');
@@ -252,7 +254,7 @@ export class BgWidget {
252
254
  </div> `;
253
255
  }
254
256
  static iconButton(obj) {
255
- var _a;
257
+ var _b;
256
258
  const iconClass = (() => {
257
259
  switch (obj.icon) {
258
260
  case 'info':
@@ -263,7 +265,7 @@ export class BgWidget {
263
265
  })();
264
266
  return html `<i
265
267
  class="${iconClass} cursor_pointer"
266
- style="font-size: ${(_a = obj === null || obj === void 0 ? void 0 : obj.size) !== null && _a !== void 0 ? _a : 18}px"
268
+ style="font-size: ${(_b = obj === null || obj === void 0 ? void 0 : obj.size) !== null && _b !== void 0 ? _b : 18}px"
267
269
  onclick="${obj.event}"
268
270
  ></i>`;
269
271
  }
@@ -280,9 +282,9 @@ export class BgWidget {
280
282
  </div>`;
281
283
  }
282
284
  static switchTextButton(gvc, def, text, callback) {
283
- var _a, _b;
285
+ var _b, _c;
284
286
  return html ` <div style="display: flex; align-items: center;">
285
- <div class="tx_normal me-2">${(_a = text.left) !== null && _a !== void 0 ? _a : ''}</div>
287
+ <div class="tx_normal me-2">${(_b = text.left) !== null && _b !== void 0 ? _b : ''}</div>
286
288
  <div
287
289
  class="form-check form-switch m-0 cursor_pointer"
288
290
  style="margin-top: 10px; display: flex; align-items: center;"
@@ -296,7 +298,7 @@ export class BgWidget {
296
298
  ${def ? `checked` : ``}
297
299
  />
298
300
  </div>
299
- <div class="tx_normal">${(_b = text.right) !== null && _b !== void 0 ? _b : ''}</div>
301
+ <div class="tx_normal">${(_c = text.right) !== null && _c !== void 0 ? _c : ''}</div>
300
302
  </div>`;
301
303
  }
302
304
  static goBack(event) {
@@ -312,8 +314,8 @@ export class BgWidget {
312
314
  </div>`;
313
315
  }
314
316
  static aiChatButton(obj) {
315
- var _a;
316
- const text = (_a = obj.title) !== null && _a !== void 0 ? _a : (() => {
317
+ var _b;
318
+ const text = (_b = obj.title) !== null && _b !== void 0 ? _b : (() => {
317
319
  switch (obj.select) {
318
320
  case 'writer':
319
321
  return 'AI助手';
@@ -344,7 +346,7 @@ export class BgWidget {
344
346
  </div>`;
345
347
  }
346
348
  static insignia(className, text, args) {
347
- var _a, _b;
349
+ var _b, _c;
348
350
  const typeMap = {
349
351
  border: `insignia-border insignia-${className}-border`,
350
352
  fill: `insignia-${className}`,
@@ -353,83 +355,83 @@ export class BgWidget {
353
355
  sm: 'insignia insignia-sm',
354
356
  md: 'insignia',
355
357
  };
356
- return html ` <div class="${(_a = sizeMap[args.size]) !== null && _a !== void 0 ? _a : sizeMap.md} ${(_b = typeMap[args.type]) !== null && _b !== void 0 ? _b : typeMap.fill}">${text}</div>`;
358
+ return html ` <div class="${(_b = sizeMap[args.size]) !== null && _b !== void 0 ? _b : sizeMap.md} ${(_c = typeMap[args.type]) !== null && _c !== void 0 ? _c : typeMap.fill}">${text}</div>`;
357
359
  }
358
360
  static primaryInsignia(text, args) {
359
- var _a, _b;
361
+ var _b, _c;
360
362
  return this.insignia('primary', text, {
361
- type: (_a = args === null || args === void 0 ? void 0 : args.type) !== null && _a !== void 0 ? _a : 'fill',
362
- size: (_b = args === null || args === void 0 ? void 0 : args.size) !== null && _b !== void 0 ? _b : 'md',
363
+ type: (_b = args === null || args === void 0 ? void 0 : args.type) !== null && _b !== void 0 ? _b : 'fill',
364
+ size: (_c = args === null || args === void 0 ? void 0 : args.size) !== null && _c !== void 0 ? _c : 'md',
363
365
  });
364
366
  }
365
367
  static successInsignia(text, args) {
366
- var _a, _b;
368
+ var _b, _c;
367
369
  return this.insignia('success', text, {
368
- type: (_a = args === null || args === void 0 ? void 0 : args.type) !== null && _a !== void 0 ? _a : 'fill',
369
- size: (_b = args === null || args === void 0 ? void 0 : args.size) !== null && _b !== void 0 ? _b : 'md',
370
+ type: (_b = args === null || args === void 0 ? void 0 : args.type) !== null && _b !== void 0 ? _b : 'fill',
371
+ size: (_c = args === null || args === void 0 ? void 0 : args.size) !== null && _c !== void 0 ? _c : 'md',
370
372
  });
371
373
  }
372
374
  static dangerInsignia(text, args) {
373
- var _a, _b;
375
+ var _b, _c;
374
376
  return this.insignia('danger', text, {
375
- type: (_a = args === null || args === void 0 ? void 0 : args.type) !== null && _a !== void 0 ? _a : 'fill',
376
- size: (_b = args === null || args === void 0 ? void 0 : args.size) !== null && _b !== void 0 ? _b : 'md',
377
+ type: (_b = args === null || args === void 0 ? void 0 : args.type) !== null && _b !== void 0 ? _b : 'fill',
378
+ size: (_c = args === null || args === void 0 ? void 0 : args.size) !== null && _c !== void 0 ? _c : 'md',
377
379
  });
378
380
  }
379
381
  static infoInsignia(text, args) {
380
- var _a, _b;
382
+ var _b, _c;
381
383
  return this.insignia('info', text, {
382
- type: (_a = args === null || args === void 0 ? void 0 : args.type) !== null && _a !== void 0 ? _a : 'fill',
383
- size: (_b = args === null || args === void 0 ? void 0 : args.size) !== null && _b !== void 0 ? _b : 'md',
384
+ type: (_b = args === null || args === void 0 ? void 0 : args.type) !== null && _b !== void 0 ? _b : 'fill',
385
+ size: (_c = args === null || args === void 0 ? void 0 : args.size) !== null && _c !== void 0 ? _c : 'md',
384
386
  });
385
387
  }
386
388
  static warningInsignia(text, args) {
387
- var _a, _b;
389
+ var _b, _c;
388
390
  return this.insignia('warning', text, {
389
- type: (_a = args === null || args === void 0 ? void 0 : args.type) !== null && _a !== void 0 ? _a : 'fill',
390
- size: (_b = args === null || args === void 0 ? void 0 : args.size) !== null && _b !== void 0 ? _b : 'md',
391
+ type: (_b = args === null || args === void 0 ? void 0 : args.type) !== null && _b !== void 0 ? _b : 'fill',
392
+ size: (_c = args === null || args === void 0 ? void 0 : args.size) !== null && _c !== void 0 ? _c : 'md',
391
393
  });
392
394
  }
393
395
  static watchingInsignia(text, args) {
394
- var _a, _b;
396
+ var _b, _c;
395
397
  return this.insignia('watching', text, {
396
- type: (_a = args === null || args === void 0 ? void 0 : args.type) !== null && _a !== void 0 ? _a : 'fill',
397
- size: (_b = args === null || args === void 0 ? void 0 : args.size) !== null && _b !== void 0 ? _b : 'md',
398
+ type: (_b = args === null || args === void 0 ? void 0 : args.type) !== null && _b !== void 0 ? _b : 'fill',
399
+ size: (_c = args === null || args === void 0 ? void 0 : args.size) !== null && _c !== void 0 ? _c : 'md',
398
400
  });
399
401
  }
400
402
  static normalInsignia(text, args) {
401
- var _a, _b;
403
+ var _b, _c;
402
404
  return this.insignia('normal', text, {
403
- type: (_a = args === null || args === void 0 ? void 0 : args.type) !== null && _a !== void 0 ? _a : 'fill',
404
- size: (_b = args === null || args === void 0 ? void 0 : args.size) !== null && _b !== void 0 ? _b : 'md',
405
+ type: (_b = args === null || args === void 0 ? void 0 : args.type) !== null && _b !== void 0 ? _b : 'fill',
406
+ size: (_c = args === null || args === void 0 ? void 0 : args.size) !== null && _c !== void 0 ? _c : 'md',
405
407
  });
406
408
  }
407
409
  static notifyInsignia(text, args) {
408
- var _a, _b;
410
+ var _b, _c;
409
411
  return this.insignia('notify', text, {
410
- type: (_a = args === null || args === void 0 ? void 0 : args.type) !== null && _a !== void 0 ? _a : 'fill',
411
- size: (_b = args === null || args === void 0 ? void 0 : args.size) !== null && _b !== void 0 ? _b : 'md',
412
+ type: (_b = args === null || args === void 0 ? void 0 : args.type) !== null && _b !== void 0 ? _b : 'fill',
413
+ size: (_c = args === null || args === void 0 ? void 0 : args.size) !== null && _c !== void 0 ? _c : 'md',
412
414
  });
413
415
  }
414
416
  static secondaryInsignia(text, args) {
415
- var _a, _b;
417
+ var _b, _c;
416
418
  return this.insignia('secondary', text, {
417
- type: (_a = args === null || args === void 0 ? void 0 : args.type) !== null && _a !== void 0 ? _a : 'fill',
418
- size: (_b = args === null || args === void 0 ? void 0 : args.size) !== null && _b !== void 0 ? _b : 'md',
419
+ type: (_b = args === null || args === void 0 ? void 0 : args.type) !== null && _b !== void 0 ? _b : 'fill',
420
+ size: (_c = args === null || args === void 0 ? void 0 : args.size) !== null && _c !== void 0 ? _c : 'md',
419
421
  });
420
422
  }
421
423
  static grayInsignia(text, args) {
422
- var _a, _b;
424
+ var _b, _c;
423
425
  return this.insignia('gray', text, {
424
- type: (_a = args === null || args === void 0 ? void 0 : args.type) !== null && _a !== void 0 ? _a : 'fill',
425
- size: (_b = args === null || args === void 0 ? void 0 : args.size) !== null && _b !== void 0 ? _b : 'md',
426
+ type: (_b = args === null || args === void 0 ? void 0 : args.type) !== null && _b !== void 0 ? _b : 'fill',
427
+ size: (_c = args === null || args === void 0 ? void 0 : args.size) !== null && _c !== void 0 ? _c : 'md',
426
428
  });
427
429
  }
428
430
  static darkInsignia(text, args) {
429
- var _a, _b;
431
+ var _b, _c;
430
432
  return this.insignia('dark', text, {
431
- type: (_a = args === null || args === void 0 ? void 0 : args.type) !== null && _a !== void 0 ? _a : 'fill',
432
- size: (_b = args === null || args === void 0 ? void 0 : args.size) !== null && _b !== void 0 ? _b : 'md',
433
+ type: (_b = args === null || args === void 0 ? void 0 : args.type) !== null && _b !== void 0 ? _b : 'fill',
434
+ size: (_c = args === null || args === void 0 ? void 0 : args.size) !== null && _c !== void 0 ? _c : 'md',
433
435
  });
434
436
  }
435
437
  static languageInsignia(language, style) {
@@ -708,18 +710,18 @@ export class BgWidget {
708
710
  });
709
711
  }
710
712
  static editeInput(obj) {
711
- var _a;
712
- obj.title = (_a = obj.title) !== null && _a !== void 0 ? _a : '';
713
+ var _b;
714
+ obj.title = (_b = obj.title) !== null && _b !== void 0 ? _b : '';
713
715
  return obj.gvc.bindView(() => {
714
- var _a;
716
+ var _b;
715
717
  const id = obj.gvc.glitter.getUUID();
716
718
  return {
717
719
  bind: id,
718
720
  view: () => {
719
- var _a, _b, _c, _d;
721
+ var _b, _c, _d, _e;
720
722
  return html `
721
723
  ${obj.title
722
- ? html ` <div class="tx_normal fw-normal" style="${(_a = obj.titleStyle) !== null && _a !== void 0 ? _a : ''}">${obj.title}</div>`
724
+ ? html ` <div class="tx_normal fw-normal" style="${(_b = obj.titleStyle) !== null && _b !== void 0 ? _b : ''}">${obj.title}</div>`
723
725
  : ``}
724
726
  <div
725
727
  class="d-flex w-100 align-items-center border rounded-3 ${obj.readonly ? `bgw-input-readonly` : ``}"
@@ -744,8 +746,8 @@ export class BgWidget {
744
746
  ${obj.startText ? html ` <div class="py-2 ps-3" style="white-space: nowrap">${obj.startText}</div>` : ''}
745
747
  <input
746
748
  class="bgw-input ${obj.readonly ? `bgw-input-readonly` : ``}"
747
- style="${(_b = obj.style) !== null && _b !== void 0 ? _b : ''}"
748
- type="${(_c = obj.type) !== null && _c !== void 0 ? _c : 'text'}"
749
+ style="${(_c = obj.style) !== null && _c !== void 0 ? _c : ''}"
750
+ type="${(_d = obj.type) !== null && _d !== void 0 ? _d : 'text'}"
749
751
  placeholder="${obj.placeHolder}"
750
752
  onchange="${obj.gvc.event(e => {
751
753
  obj.default = e.value;
@@ -763,7 +765,7 @@ export class BgWidget {
763
765
  obj.default = e.value;
764
766
  obj.oninput && obj.oninput(e.value);
765
767
  })}"
766
- value="${((_d = obj.default) !== null && _d !== void 0 ? _d : '').replace(/"/g, '&quot;')}"
768
+ value="${((_e = obj.default) !== null && _e !== void 0 ? _e : '').replace(/"/g, '&quot;')}"
767
769
  ${obj.readonly ? `readonly` : ``}
768
770
  />
769
771
  ${obj.endText ? html ` <div class="py-2 pe-3" style="white-space: nowrap">${obj.endText}</div>` : ''}
@@ -771,14 +773,14 @@ export class BgWidget {
771
773
  `;
772
774
  },
773
775
  divCreate: {
774
- style: (_a = obj.divStyle) !== null && _a !== void 0 ? _a : '',
776
+ style: (_b = obj.divStyle) !== null && _b !== void 0 ? _b : '',
775
777
  },
776
778
  };
777
779
  });
778
780
  }
779
781
  static textArea(obj) {
780
- var _a, _b, _c;
781
- obj.title = (_a = obj.title) !== null && _a !== void 0 ? _a : '';
782
+ var _b, _c, _d;
783
+ obj.title = (_b = obj.title) !== null && _b !== void 0 ? _b : '';
782
784
  return html `${obj.title ? html ` <div class="tx_normal fw-normal">${obj.title}</div>` : ''}
783
785
  <div class="w-100 px-1" style="margin-top:8px;">
784
786
  <textarea
@@ -788,10 +790,10 @@ export class BgWidget {
788
790
  onchange="${obj.gvc.event(e => {
789
791
  obj.callback(e.value);
790
792
  })}"
791
- placeholder="${(_b = obj.placeHolder) !== null && _b !== void 0 ? _b : ''}"
793
+ placeholder="${(_c = obj.placeHolder) !== null && _c !== void 0 ? _c : ''}"
792
794
  ${obj.readonly ? `readonly` : ``}
793
795
  >
794
- ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
796
+ ${(_d = obj.default) !== null && _d !== void 0 ? _d : ''}</textarea
795
797
  >
796
798
  </div>`;
797
799
  }
@@ -818,8 +820,8 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
818
820
  `;
819
821
  }
820
822
  static linkList(obj) {
821
- var _a, _b;
822
- obj.title = (_a = obj.title) !== null && _a !== void 0 ? _a : '';
823
+ var _b, _c;
824
+ obj.title = (_b = obj.title) !== null && _b !== void 0 ? _b : '';
823
825
  const vm = {
824
826
  id: obj.gvc.glitter.getUUID(),
825
827
  loading: true,
@@ -827,7 +829,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
827
829
  const linkComp = {
828
830
  id: obj.gvc.glitter.getUUID(),
829
831
  loading: true,
830
- text: (_b = obj.default) !== null && _b !== void 0 ? _b : '',
832
+ text: (_c = obj.default) !== null && _c !== void 0 ? _c : '',
831
833
  };
832
834
  const dropMenu = {
833
835
  id: obj.gvc.glitter.getUUID(),
@@ -945,13 +947,13 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
945
947
  ${obj.gvc.bindView({
946
948
  bind: linkComp.id,
947
949
  view: () => {
948
- var _a, _b;
950
+ var _b, _c;
949
951
  if (linkComp.loading) {
950
952
  return html ` <div
951
953
  class="bgw-input border rounded-3"
952
954
  style="${linkComp.text.length > 0
953
955
  ? 'padding: 8px 18px; height: 41.75px'
954
- : 'padding: 9.5px 12px;'} ${(_a = obj.style) !== null && _a !== void 0 ? _a : ''}"
956
+ : 'padding: 9.5px 12px;'} ${(_b = obj.style) !== null && _b !== void 0 ? _b : ''}"
955
957
  id="${dropMenu.elementClass}"
956
958
  onclick="${obj.gvc.event(() => {
957
959
  componentFresh();
@@ -967,7 +969,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
967
969
  <div class="d-flex align-items-center" style="margin-top: 8px;">
968
970
  <input
969
971
  class="form-control"
970
- style="${(_b = obj.style) !== null && _b !== void 0 ? _b : ''}"
972
+ style="${(_c = obj.style) !== null && _c !== void 0 ? _c : ''}"
971
973
  type="text"
972
974
  placeholder="${obj.placeHolder}"
973
975
  onchange="${obj.gvc.event(e => {
@@ -1351,11 +1353,11 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
1351
1353
  });
1352
1354
  }
1353
1355
  static select(obj) {
1354
- var _a;
1356
+ var _b;
1355
1357
  return html ` ${obj.title ? html ` <div class="tx_normal fw-normal mb-2">${obj.title}</div>` : ``}
1356
1358
  <select
1357
1359
  class="c_select c_select_w_100"
1358
- style="${(_a = obj.style) !== null && _a !== void 0 ? _a : ''}; ${obj.readonly ? 'background: #f7f7f7;' : ''}"
1360
+ style="${(_b = obj.style) !== null && _b !== void 0 ? _b : ''}; ${obj.readonly ? 'background: #f7f7f7;' : ''}"
1359
1361
  onchange="${obj.gvc.event(e => {
1360
1362
  obj.callback(e.value);
1361
1363
  })}"
@@ -1436,20 +1438,20 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
1436
1438
  </div>`;
1437
1439
  }
1438
1440
  static spinner(obj) {
1439
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
1441
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
1440
1442
  const container = {
1441
- class: `${(_b = (_a = obj === null || obj === void 0 ? void 0 : obj.container) === null || _a === void 0 ? void 0 : _a.class) !== null && _b !== void 0 ? _b : ''}`,
1442
- style: `margin-top: 2rem;${(_c = obj === null || obj === void 0 ? void 0 : obj.container) === null || _c === void 0 ? void 0 : _c.style}`,
1443
+ class: `${(_c = (_b = obj === null || obj === void 0 ? void 0 : obj.container) === null || _b === void 0 ? void 0 : _b.class) !== null && _c !== void 0 ? _c : ''}`,
1444
+ style: `margin-top: 2rem;${(_d = obj === null || obj === void 0 ? void 0 : obj.container) === null || _d === void 0 ? void 0 : _d.style}`,
1443
1445
  };
1444
1446
  const circleAttr = {
1445
- visible: ((_d = obj === null || obj === void 0 ? void 0 : obj.circle) === null || _d === void 0 ? void 0 : _d.visible) === false ? false : true,
1446
- width: (_f = (_e = obj === null || obj === void 0 ? void 0 : obj.circle) === null || _e === void 0 ? void 0 : _e.width) !== null && _f !== void 0 ? _f : 20,
1447
- borderSize: (_h = (_g = obj === null || obj === void 0 ? void 0 : obj.circle) === null || _g === void 0 ? void 0 : _g.borderSize) !== null && _h !== void 0 ? _h : 16,
1447
+ visible: ((_e = obj === null || obj === void 0 ? void 0 : obj.circle) === null || _e === void 0 ? void 0 : _e.visible) === false ? false : true,
1448
+ width: (_g = (_f = obj === null || obj === void 0 ? void 0 : obj.circle) === null || _f === void 0 ? void 0 : _f.width) !== null && _g !== void 0 ? _g : 20,
1449
+ borderSize: (_j = (_h = obj === null || obj === void 0 ? void 0 : obj.circle) === null || _h === void 0 ? void 0 : _h.borderSize) !== null && _j !== void 0 ? _j : 16,
1448
1450
  };
1449
1451
  const textAttr = {
1450
- value: (_k = (_j = obj === null || obj === void 0 ? void 0 : obj.text) === null || _j === void 0 ? void 0 : _j.value) !== null && _k !== void 0 ? _k : '載入中...',
1451
- visible: ((_l = obj === null || obj === void 0 ? void 0 : obj.text) === null || _l === void 0 ? void 0 : _l.visible) === false ? false : true,
1452
- fontSize: (_o = (_m = obj === null || obj === void 0 ? void 0 : obj.text) === null || _m === void 0 ? void 0 : _m.fontSize) !== null && _o !== void 0 ? _o : 16,
1452
+ value: (_l = (_k = obj === null || obj === void 0 ? void 0 : obj.text) === null || _k === void 0 ? void 0 : _k.value) !== null && _l !== void 0 ? _l : '載入中...',
1453
+ visible: ((_m = obj === null || obj === void 0 ? void 0 : obj.text) === null || _m === void 0 ? void 0 : _m.visible) === false ? false : true,
1454
+ fontSize: (_p = (_o = obj === null || obj === void 0 ? void 0 : obj.text) === null || _o === void 0 ? void 0 : _o.fontSize) !== null && _p !== void 0 ? _p : 16,
1453
1455
  };
1454
1456
  return html ` <div
1455
1457
  class="d-flex align-items-center justify-content-center flex-column w-100 mx-auto ${container.class}"
@@ -1489,7 +1491,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
1489
1491
  return {
1490
1492
  bind: id,
1491
1493
  view: () => {
1492
- var _a, _b;
1494
+ var _b, _c;
1493
1495
  if (vm.loading) {
1494
1496
  return html ` <div class="fs-2 text-center" style="padding:32px;">${vm.stateText}</div>`;
1495
1497
  }
@@ -1498,9 +1500,9 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
1498
1500
  <div style="overflow-x:scroll;">
1499
1501
  <table
1500
1502
  class="table table-centered table-nowrap text-center table-hover fw-500 fs-7"
1501
- style="overflow-x:scroll;margin-left: 32px;margin-right: 32px;width:calc(100% - 64px);${(_a = obj.table_style) !== null && _a !== void 0 ? _a : ''}"
1503
+ style="overflow-x:scroll;margin-left: 32px;margin-right: 32px;width:calc(100% - 64px);${(_b = obj.table_style) !== null && _b !== void 0 ? _b : ''}"
1502
1504
  >
1503
- <div style="padding: 16px 32px;">${(_b = obj.filter) !== null && _b !== void 0 ? _b : ''}</div>
1505
+ <div style="padding: 16px 32px;">${(_c = obj.filter) !== null && _c !== void 0 ? _c : ''}</div>
1504
1506
 
1505
1507
  <thead>
1506
1508
  ${vm.data.length === 0
@@ -1508,9 +1510,9 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
1508
1510
  : html ` <tr>
1509
1511
  ${vm.data[0]
1510
1512
  .map((dd, index) => {
1511
- var _a;
1513
+ var _b;
1512
1514
  return html ` <th
1513
- class="${(_a = dd.position) !== null && _a !== void 0 ? _a : 'text-start'} tx_normal fw-bold"
1515
+ class="${(_b = dd.position) !== null && _b !== void 0 ? _b : 'text-start'} tx_normal fw-bold"
1514
1516
  style="white-space:nowrap;border:none;padding-bottom: 30px;color:#393939 !important;${obj.style &&
1515
1517
  obj.style[index]
1516
1518
  ? obj.style[index]
@@ -1542,9 +1544,9 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
1542
1544
  >
1543
1545
  ${dd
1544
1546
  .map((d3, index) => {
1545
- var _a;
1547
+ var _b;
1546
1548
  return html ` <td
1547
- class="${(_a = d3.position) !== null && _a !== void 0 ? _a : 'text-start'} tx_normal"
1549
+ class="${(_b = d3.position) !== null && _b !== void 0 ? _b : 'text-start'} tx_normal"
1548
1550
  style="color:#393939 !important;border:none; ${obj.style && obj.style[index]
1549
1551
  ? obj.style[index]
1550
1552
  : ``}"
@@ -1619,12 +1621,12 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
1619
1621
  return {
1620
1622
  bind: id,
1621
1623
  view: () => {
1622
- var _a;
1624
+ var _b;
1623
1625
  if (vm.loading) {
1624
1626
  return html ` <div class="fs-2 text-center" style="padding: 32px;">${vm.stateText}</div>`;
1625
1627
  }
1626
1628
  else {
1627
- return html ` <div class="m-0 p-0" style="${(_a = obj.table_style) !== null && _a !== void 0 ? _a : ''}">
1629
+ return html ` <div class="m-0 p-0" style="${(_b = obj.table_style) !== null && _b !== void 0 ? _b : ''}">
1628
1630
  ${obj.filter ? html ` <div class="m-0">${obj.filter}</div>` : ''}
1629
1631
  <div style="margin-top: 4px; overflow-x: scroll; z-index: 1;">
1630
1632
  <table
@@ -1637,9 +1639,9 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
1637
1639
  : html ` <tr>
1638
1640
  ${vm.data[0]
1639
1641
  .map((dd, index) => {
1640
- var _a;
1642
+ var _b;
1641
1643
  return html ` <th
1642
- class="${(_a = dd.position) !== null && _a !== void 0 ? _a : 'text-start'} tx_700 px-1"
1644
+ class="${(_b = dd.position) !== null && _b !== void 0 ? _b : 'text-start'} tx_700 px-1"
1643
1645
  style="white-space:nowrap;border:none; color:#393939 !important; ${obj.style &&
1644
1646
  obj.style[index]
1645
1647
  ? obj.style[index]
@@ -1673,9 +1675,9 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
1673
1675
  >
1674
1676
  ${dd
1675
1677
  .map((d3, index) => {
1676
- var _a;
1678
+ var _b;
1677
1679
  return html ` <td
1678
- class="${(_a = d3.position) !== null && _a !== void 0 ? _a : 'text-start'} tx_normal px-1"
1680
+ class="${(_b = d3.position) !== null && _b !== void 0 ? _b : 'text-start'} tx_normal px-1"
1679
1681
  style="color:#393939 !important;border:none;vertical-align: middle;${obj.style &&
1680
1682
  obj.style[index]
1681
1683
  ? obj.style[index]
@@ -1783,10 +1785,10 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
1783
1785
  }
1784
1786
  `);
1785
1787
  return gvc.bindView(() => {
1786
- var _a;
1788
+ var _b;
1787
1789
  const vm = {
1788
1790
  loading: true,
1789
- page: (_a = obj.defPage) !== null && _a !== void 0 ? _a : 1,
1791
+ page: (_b = obj.defPage) !== null && _b !== void 0 ? _b : 1,
1790
1792
  pageSize: 0,
1791
1793
  tableData: [],
1792
1794
  originalData: [],
@@ -1808,7 +1810,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
1808
1810
  return html `<div class="system-info-text">暫無資料</div>`;
1809
1811
  }
1810
1812
  function renderRowCheckbox(result) {
1811
- var _a;
1813
+ var _b;
1812
1814
  const checkboxSelector = result ? 'i.fa-square' : 'i.fa-square-check';
1813
1815
  vm.originalData.forEach((item, index) => {
1814
1816
  const checkboxParent = gvc.glitter.document.querySelector(`[gvc-checkbox="checkbox${index}"]`);
@@ -1816,13 +1818,13 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
1816
1818
  checkboxIcon === null || checkboxIcon === void 0 ? void 0 : checkboxIcon.click();
1817
1819
  });
1818
1820
  gvc.notifyDataChange(ids.filter);
1819
- (_a = obj.itemSelect) === null || _a === void 0 ? void 0 : _a.call(obj);
1821
+ (_b = obj.itemSelect) === null || _b === void 0 ? void 0 : _b.call(obj);
1820
1822
  changeHeaderStyle();
1821
1823
  }
1822
1824
  function changeHeaderStyle() {
1823
- var _a;
1825
+ var _b;
1824
1826
  const key = `[gvc-id="${gvc.id(ids.header)}"]`;
1825
- const target = ((_a = obj.windowTarget) !== null && _a !== void 0 ? _a : window).document.querySelector(key);
1827
+ const target = ((_b = obj.windowTarget) !== null && _b !== void 0 ? _b : window).document.querySelector(key);
1826
1828
  if (!target)
1827
1829
  return;
1828
1830
  const checked = vm.originalData.some((dd) => dd.checked);
@@ -1847,7 +1849,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
1847
1849
  obj.itemSelect && obj.itemSelect();
1848
1850
  }
1849
1851
  vm.tableData.forEach((item, index) => {
1850
- var _a;
1852
+ var _b;
1851
1853
  Object.assign(item, [
1852
1854
  {
1853
1855
  key: EditorElem.checkBoxOnly({
@@ -1859,7 +1861,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
1859
1861
  }),
1860
1862
  value: EditorElem.checkBoxOnly({
1861
1863
  gvc: gvc,
1862
- def: (_a = checkedMap.get(`${vm.page}-${index}`)) === null || _a === void 0 ? void 0 : _a.checked,
1864
+ def: (_b = checkedMap.get(`${vm.page}-${index}`)) === null || _b === void 0 ? void 0 : _b.checked,
1863
1865
  callback: result => checkEvent(index, result),
1864
1866
  style: 'justify-content: end !important;',
1865
1867
  }),
@@ -2163,10 +2165,10 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
2163
2165
  });
2164
2166
  }
2165
2167
  static container(htmlString, obj) {
2166
- var _a;
2168
+ var _b;
2167
2169
  return html ` <div
2168
2170
  class="mb-0 ${document.body.clientWidth > 768 ? 'mx-auto mt-3' : 'w-100 mx-0'}"
2169
- style="max-width: 100%; width: ${this.getContainerWidth()}px; ${(_a = obj === null || obj === void 0 ? void 0 : obj.style) !== null && _a !== void 0 ? _a : ''}"
2171
+ style="max-width: 100%; width: ${this.getContainerWidth()}px; ${(_b = obj === null || obj === void 0 ? void 0 : obj.style) !== null && _b !== void 0 ? _b : ''}"
2170
2172
  >
2171
2173
  ${htmlString}
2172
2174
  </div>`;
@@ -2181,7 +2183,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
2181
2183
  </div>`;
2182
2184
  }
2183
2185
  static duringInputContainer(gvc, obj, def, callback) {
2184
- var _a, _b, _c, _d;
2186
+ var _b, _c, _d, _e;
2185
2187
  const defualt = (def && def.length) > 1 ? def : ['', ''];
2186
2188
  if (obj.list.length > 1) {
2187
2189
  const first = obj.list[0];
@@ -2190,9 +2192,9 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
2190
2192
  <div style="width: 100%; display: flex; flex-direction: column; gap: 6px;">
2191
2193
  <input
2192
2194
  class="form-control"
2193
- type="${(_a = first.type) !== null && _a !== void 0 ? _a : 'text'}"
2195
+ type="${(_b = first.type) !== null && _b !== void 0 ? _b : 'text'}"
2194
2196
  style="border-radius: 10px; border: 1px solid #DDD; padding-left: 18px;"
2195
- placeholder="${(_b = first.placeHolder) !== null && _b !== void 0 ? _b : ''}"
2197
+ placeholder="${(_c = first.placeHolder) !== null && _c !== void 0 ? _c : ''}"
2196
2198
  onchange="${gvc.event((e, ele) => {
2197
2199
  defualt[0] = e.value;
2198
2200
  callback(defualt);
@@ -2202,9 +2204,9 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
2202
2204
  <span>${obj.centerText}</span>
2203
2205
  <input
2204
2206
  class="form-control"
2205
- type="${(_c = second.type) !== null && _c !== void 0 ? _c : 'text'}"
2207
+ type="${(_d = second.type) !== null && _d !== void 0 ? _d : 'text'}"
2206
2208
  style="border-radius: 10px; border: 1px solid #DDD; padding-left: 18px;"
2207
- placeholder="${(_d = second.placeHolder) !== null && _d !== void 0 ? _d : ''}"
2209
+ placeholder="${(_e = second.placeHolder) !== null && _e !== void 0 ? _e : ''}"
2208
2210
  onchange="${gvc.event((e, ele) => {
2209
2211
  defualt[1] = e.value;
2210
2212
  callback(defualt);
@@ -2224,7 +2226,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
2224
2226
  view: () => {
2225
2227
  let radioInputHTML = '';
2226
2228
  data.map(item => {
2227
- var _a, _b;
2229
+ var _b, _c;
2228
2230
  radioInputHTML += html `
2229
2231
  <div class="m-1">
2230
2232
  <div class="form-check ps-0">
@@ -2246,9 +2248,9 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
2246
2248
  <div class="d-flex align-items-center border rounded-3">
2247
2249
  <input
2248
2250
  class="form-control border-0 bg-transparent shadow-none"
2249
- type="${(_a = item.type) !== null && _a !== void 0 ? _a : 'text'}"
2251
+ type="${(_b = item.type) !== null && _b !== void 0 ? _b : 'text'}"
2250
2252
  style="border-radius: 10px; border: 1px solid #DDD; padding-left: 18px;"
2251
- placeholder="${(_b = item.placeHolder) !== null && _b !== void 0 ? _b : ''}"
2253
+ placeholder="${(_c = item.placeHolder) !== null && _c !== void 0 ? _c : ''}"
2252
2254
  onchange="${gvc.event(e => {
2253
2255
  def.value = e.value;
2254
2256
  callback(def);
@@ -2310,7 +2312,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
2310
2312
  });
2311
2313
  }
2312
2314
  static multiCheckboxContainer(gvc, data, def, callback, obj) {
2313
- var _a;
2315
+ var _b;
2314
2316
  const id = gvc.glitter.getUUID();
2315
2317
  const inputColor = obj && obj.readonly ? '#808080' : undefined;
2316
2318
  const randomString = obj && obj.single ? this.getWhiteDotClass(gvc, inputColor) : this.getCheckedClass(gvc, inputColor);
@@ -2320,11 +2322,11 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
2320
2322
  view: () => {
2321
2323
  let checkboxHTML = '';
2322
2324
  data.map(item => {
2323
- var _a;
2325
+ var _b;
2324
2326
  checkboxHTML += html `
2325
2327
  <div>
2326
2328
  <div
2327
- class="form-check ${(_a = item === null || item === void 0 ? void 0 : item.customerClass) !== null && _a !== void 0 ? _a : ''}"
2329
+ class="form-check ${(_b = item === null || item === void 0 ? void 0 : item.customerClass) !== null && _b !== void 0 ? _b : ''}"
2328
2330
  onclick="${gvc.event((e, evt) => {
2329
2331
  if (obj && obj.readonly) {
2330
2332
  evt.preventDefault();
@@ -2372,7 +2374,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
2372
2374
  return html ` <div style="width: 100%; display: flex; flex-direction: column; gap: 6px;">${checkboxHTML}</div> `;
2373
2375
  },
2374
2376
  divCreate: {
2375
- style: (_a = obj === null || obj === void 0 ? void 0 : obj.containerStyle) !== null && _a !== void 0 ? _a : '',
2377
+ style: (_b = obj === null || obj === void 0 ? void 0 : obj.containerStyle) !== null && _b !== void 0 ? _b : '',
2376
2378
  },
2377
2379
  });
2378
2380
  }
@@ -2438,8 +2440,8 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
2438
2440
  });
2439
2441
  }
2440
2442
  static inlineCheckBox(obj) {
2441
- var _a;
2442
- obj.type = (_a = obj.type) !== null && _a !== void 0 ? _a : 'single';
2443
+ var _b;
2444
+ obj.type = (_b = obj.type) !== null && _b !== void 0 ? _b : 'single';
2443
2445
  const gvc = obj.gvc;
2444
2446
  const inputColor = undefined;
2445
2447
  const randomString = obj.type === 'single' ? this.getWhiteDotClass(gvc, inputColor) : this.getCheckedClass(gvc, inputColor);
@@ -2591,7 +2593,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
2591
2593
  </div>`;
2592
2594
  }
2593
2595
  static selNavbar(data) {
2594
- var _a;
2596
+ var _b;
2595
2597
  const navbarStyle = `
2596
2598
  display: flex;
2597
2599
  justify-content: space-between;
@@ -2610,19 +2612,19 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
2610
2612
  .trim()}"
2611
2613
  >
2612
2614
  <div style="display: flex; align-items: center; font-size: 14px; color: #393939;">
2613
- ${(_a = data.checkbox) !== null && _a !== void 0 ? _a : ''}
2615
+ ${(_b = data.checkbox) !== null && _b !== void 0 ? _b : ''}
2614
2616
  <span style="margin-left: 0.5rem; font-weight: 700;">已選取${data.count}項</span>
2615
2617
  ${data.allSelectCallback
2616
2618
  ? html `<span
2617
2619
  style="margin-left: 0.75rem; cursor: pointer; color: #4D86DB;"
2618
- onclick="${data.allSelectCallback.gvc.event(() => { var _a; return (_a = data.allSelectCallback) === null || _a === void 0 ? void 0 : _a.event(); })}"
2620
+ onclick="${data.allSelectCallback.gvc.event(() => { var _b; return (_b = data.allSelectCallback) === null || _b === void 0 ? void 0 : _b.event(); })}"
2619
2621
  >全選</span
2620
2622
  >`
2621
2623
  : ''}
2622
2624
  ${data.cancelCallback
2623
2625
  ? html `<span
2624
2626
  style="margin-left: 0.75rem; cursor: pointer; color: #4D86DB;"
2625
- onclick="${data.cancelCallback.gvc.event(() => { var _a; return (_a = data.cancelCallback) === null || _a === void 0 ? void 0 : _a.event(); })}"
2627
+ onclick="${data.cancelCallback.gvc.event(() => { var _b; return (_b = data.cancelCallback) === null || _b === void 0 ? void 0 : _b.event(); })}"
2626
2628
  >取消選取</span
2627
2629
  >`
2628
2630
  : ''}
@@ -2688,10 +2690,10 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
2688
2690
  .join(this.horizontalLine());
2689
2691
  }
2690
2692
  static openBoxContainer(obj) {
2691
- var _a;
2693
+ var _b;
2692
2694
  const bvid = Tool.randomString(5);
2693
2695
  const text = Tool.randomString(5);
2694
- const height = (_a = obj.height) !== null && _a !== void 0 ? _a : 500;
2696
+ const height = (_b = obj.height) !== null && _b !== void 0 ? _b : 500;
2695
2697
  const closeHeight = 56;
2696
2698
  obj.gvc.addStyle(`
2697
2699
  .box-container-${text} {
@@ -2749,10 +2751,10 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
2749
2751
  return obj.gvc.bindView({
2750
2752
  bind: bvid,
2751
2753
  view: () => {
2752
- var _a;
2754
+ var _b;
2753
2755
  return html ` <div class="box-tag-${obj.tag} box-container-${text}">
2754
2756
  <div
2755
- class="box-navbar-${text} ${(_a = obj.guideClass) !== null && _a !== void 0 ? _a : ''}"
2757
+ class="box-navbar-${text} ${(_b = obj.guideClass) !== null && _b !== void 0 ? _b : ''}"
2756
2758
  onclick="${obj.gvc.event(e => {
2757
2759
  if (!obj.autoClose) {
2758
2760
  const boxes = document.querySelectorAll(`.box-tag-${obj.tag}`);
@@ -2895,10 +2897,10 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
2895
2897
  </div>`;
2896
2898
  }
2897
2899
  static selectFilter(obj) {
2898
- var _a;
2900
+ var _b;
2899
2901
  return html `<select
2900
2902
  class="c_select"
2901
- style="${(_a = obj.style) !== null && _a !== void 0 ? _a : ''}"
2903
+ style="${(_b = obj.style) !== null && _b !== void 0 ? _b : ''}"
2902
2904
  onchange="${obj.gvc.event(e => {
2903
2905
  obj.callback(e.value);
2904
2906
  })}"
@@ -2925,71 +2927,126 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
2925
2927
  </div>`;
2926
2928
  }
2927
2929
  static columnFilter(obj) {
2930
+ const id = 'columnFilter';
2928
2931
  return html ` <div
2929
- class="c_funnel"
2932
+ class="c_filter_view"
2930
2933
  onclick="${obj.gvc.event(() => {
2931
- obj.callback('c_funnel');
2934
+ obj.callback();
2935
+ this.setActiveFilter(obj.gvc, this.activeFilter === id ? '' : id);
2932
2936
  })}"
2933
2937
  >
2934
2938
  <i class="fa-regular fa-columns-3"></i>
2935
2939
  </div>`;
2936
2940
  }
2937
2941
  static funnelFilter(obj) {
2942
+ const id = 'funnelFilter';
2938
2943
  return html ` <div
2939
- class="c_funnel"
2944
+ class="c_filter_view"
2940
2945
  onclick="${obj.gvc.event(() => {
2941
- obj.callback('c_funnel');
2946
+ obj.callback();
2947
+ this.setActiveFilter(obj.gvc, this.activeFilter === id ? '' : id);
2942
2948
  })}"
2943
2949
  >
2944
2950
  <i class="fa-regular fa-filter"></i>
2945
2951
  </div>`;
2946
2952
  }
2953
+ static countingFilter(obj) {
2954
+ const vm = {
2955
+ id: 'countingFilter',
2956
+ checkClass: this.getDarkDotClass(obj.gvc),
2957
+ show: false,
2958
+ };
2959
+ const countingList = TableStorage.limitList.map(n => {
2960
+ return { key: n, value: `顯示 ${n} 個` };
2961
+ });
2962
+ return html `<div
2963
+ class="d-flex"
2964
+ onclick="${obj.gvc.event(() => {
2965
+ setTimeout(() => {
2966
+ this.setActiveFilter(obj.gvc, this.activeFilter === vm.id ? '' : vm.id);
2967
+ }, 50);
2968
+ })}"
2969
+ >
2970
+ <div class="c_filter_view">
2971
+ <i class="fa-solid fa-list-ol"></i>
2972
+ </div>
2973
+ ${obj.gvc.bindView({
2974
+ bind: vm.id,
2975
+ view: () => {
2976
+ if (!(this.activeFilter === vm.id)) {
2977
+ return '';
2978
+ }
2979
+ return html ` <div class="c_absolute" style="top: 20px; right: 20px;">
2980
+ <div class="form-check d-flex flex-column" style="gap: 16px">
2981
+ ${obj.gvc.map(countingList.map(opt => {
2982
+ return html ` <div>
2983
+ <input
2984
+ class="form-check-input ${vm.checkClass}"
2985
+ type="radio"
2986
+ id="${opt.key}"
2987
+ name="radio_${vm.id}"
2988
+ onclick="${obj.gvc.event(() => {
2989
+ TableStorage.setLimit(opt.key);
2990
+ obj.callback(opt.key);
2991
+ this.setActiveFilter(obj.gvc, '');
2992
+ })}"
2993
+ ${obj.default === opt.key ? 'checked' : ''}
2994
+ />
2995
+ <label class="form-check-label c_updown_label" for="${opt.key}">${opt.value}</label>
2996
+ </div>`;
2997
+ }))}
2998
+ </div>
2999
+ </div>`;
3000
+ },
3001
+ divCreate: {
3002
+ style: 'position: relative;',
3003
+ },
3004
+ })}
3005
+ </div>`;
3006
+ }
2947
3007
  static updownFilter(obj) {
2948
3008
  const vm = {
2949
- id: obj.gvc.glitter.getUUID(),
3009
+ id: 'updownFilter',
2950
3010
  checkClass: this.getDarkDotClass(obj.gvc),
2951
3011
  show: false,
2952
3012
  };
2953
- return html `<div class="d-flex">
2954
- <div
2955
- class="c_updown"
2956
- onclick="${obj.gvc.event(() => {
2957
- vm.show = !vm.show;
2958
- obj.gvc.notifyDataChange(vm.id);
3013
+ return html `<div
3014
+ class="d-flex"
3015
+ onclick="${obj.gvc.event(() => {
3016
+ setTimeout(() => {
3017
+ this.setActiveFilter(obj.gvc, this.activeFilter === vm.id ? '' : vm.id);
3018
+ }, 50);
2959
3019
  })}"
2960
- >
3020
+ >
3021
+ <div class="c_filter_view">
2961
3022
  <i class="fa-regular fa-arrow-up-arrow-down"></i>
2962
3023
  </div>
2963
3024
  ${obj.gvc.bindView({
2964
3025
  bind: vm.id,
2965
3026
  view: () => {
2966
- if (vm.show) {
2967
- if (obj.options.length === 0) {
2968
- return '';
2969
- }
2970
- return html ` <div class="c_absolute" style="top: 20px; right: 20px;">
2971
- <div class="form-check d-flex flex-column" style="gap: 16px">
2972
- ${obj.gvc.map(obj.options.map(opt => {
2973
- return html ` <div>
2974
- <input
2975
- class="form-check-input ${vm.checkClass}"
2976
- type="radio"
2977
- id="${opt.key}"
2978
- name="radio_${vm.id}"
2979
- onclick="${obj.gvc.event(e => {
2980
- vm.show = !vm.show;
2981
- obj.callback(e.id);
2982
- obj.gvc.notifyDataChange(vm.id);
2983
- })}"
2984
- ${obj.default === opt.key ? 'checked' : ''}
2985
- />
2986
- <label class="form-check-label c_updown_label" for="${opt.key}">${opt.value}</label>
2987
- </div>`;
2988
- }))}
2989
- </div>
2990
- </div>`;
3027
+ if (!(this.activeFilter === vm.id) || obj.options.length === 0) {
3028
+ return '';
2991
3029
  }
2992
- return '';
3030
+ return html ` <div class="c_absolute" style="top: 20px; right: 20px;">
3031
+ <div class="form-check d-flex flex-column" style="gap: 16px">
3032
+ ${obj.gvc.map(obj.options.map(opt => {
3033
+ return html ` <div>
3034
+ <input
3035
+ class="form-check-input ${vm.checkClass}"
3036
+ type="radio"
3037
+ id="${opt.key}"
3038
+ name="radio_${vm.id}"
3039
+ onclick="${obj.gvc.event(e => {
3040
+ obj.callback(e.id);
3041
+ this.setActiveFilter(obj.gvc, '');
3042
+ })}"
3043
+ ${obj.default === opt.key ? 'checked' : ''}
3044
+ />
3045
+ <label class="form-check-label c_updown_label" for="${opt.key}">${opt.value}</label>
3046
+ </div>`;
3047
+ }))}
3048
+ </div>
3049
+ </div>`;
2993
3050
  },
2994
3051
  divCreate: {
2995
3052
  style: 'position: relative;',
@@ -3008,11 +3065,11 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3008
3065
  return obj.gvc.bindView({
3009
3066
  bind: vm.id,
3010
3067
  view: () => {
3011
- var _a, _b;
3068
+ var _b, _c;
3012
3069
  const defLine = obj.options.filter(item => {
3013
3070
  return obj.default.includes(item.key);
3014
3071
  });
3015
- return html ` <div class="c_select" style="position: relative; ${(_a = obj.style) !== null && _a !== void 0 ? _a : ''}">
3072
+ return html ` <div class="c_select" style="position: relative; ${(_b = obj.style) !== null && _b !== void 0 ? _b : ''}">
3016
3073
  <div
3017
3074
  class="w-100 h-100 d-flex align-items-center"
3018
3075
  onclick="${obj.gvc.event(() => {
@@ -3032,7 +3089,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3032
3089
  return item.value;
3033
3090
  })
3034
3091
  .join(' / ')
3035
- : BgWidget.grayNote((_b = obj.placeholder) !== null && _b !== void 0 ? _b : '(點擊選擇項目)', 'font-size: 16px;')}
3092
+ : BgWidget.grayNote((_c = obj.placeholder) !== null && _c !== void 0 ? _c : '(點擊選擇項目)', 'font-size: 16px;')}
3036
3093
  </div>
3037
3094
  </div>
3038
3095
  ${vm.show
@@ -3112,11 +3169,11 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3112
3169
  return obj.gvc.bindView({
3113
3170
  bind: vm.id,
3114
3171
  view: () => {
3115
- var _a, _b;
3172
+ var _b, _c;
3116
3173
  const defData = obj.options.find(item => {
3117
3174
  return obj.default === item.key;
3118
3175
  });
3119
- return html ` <div class="c_select" style="position: relative; ${(_a = obj.style) !== null && _a !== void 0 ? _a : ''}">
3176
+ return html ` <div class="c_select" style="position: relative; ${(_b = obj.style) !== null && _b !== void 0 ? _b : ''}">
3120
3177
  <div
3121
3178
  class="w-100 h-100 d-flex align-items-center"
3122
3179
  onclick="${obj.gvc.event(() => {
@@ -3130,7 +3187,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3130
3187
  <div style="font-size: 15px; cursor: pointer; color: #393939;">
3131
3188
  ${defData
3132
3189
  ? defData.value
3133
- : BgWidget.grayNote((_b = obj.placeholder) !== null && _b !== void 0 ? _b : '(點擊選擇項目)', 'font-size: 16px;')}
3190
+ : BgWidget.grayNote((_c = obj.placeholder) !== null && _c !== void 0 ? _c : '(點擊選擇項目)', 'font-size: 16px;')}
3134
3191
  </div>
3135
3192
  </div>
3136
3193
  ${vm.show
@@ -3160,10 +3217,10 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3160
3217
  class="w-100 d-flex align-items-center justify-content-center cursor_pointer"
3161
3218
  style="color: #36B; font-size: 16px; font-weight: 400;"
3162
3219
  onclick="${obj.gvc.event(() => {
3163
- var _a;
3220
+ var _b;
3164
3221
  vm.show = !vm.show;
3165
3222
  obj.gvc.notifyDataChange(vm.id);
3166
- (_a = obj.clickElement) === null || _a === void 0 ? void 0 : _a.event(obj.gvc);
3223
+ (_b = obj.clickElement) === null || _b === void 0 ? void 0 : _b.event(obj.gvc);
3167
3224
  })}"
3168
3225
  >
3169
3226
  ${obj.clickElement.html}
@@ -3374,13 +3431,13 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3374
3431
  ${obj.gvc.bindView({
3375
3432
  bind: vm.id,
3376
3433
  view: () => {
3377
- var _a, _b;
3434
+ var _b, _c;
3378
3435
  if (vm.loading) {
3379
3436
  return html ` <div class="my-4">${this.spinner()}</div>`;
3380
3437
  }
3381
3438
  return html ` <div class="bg-white shadow rounded-3" style="width: 100%; overflow-y: auto;">
3382
3439
  <div class="w-100 d-flex align-items-center p-3 border-bottom">
3383
- <div class="tx_700">${(_a = obj.title) !== null && _a !== void 0 ? _a : '產品列表'}</div>
3440
+ <div class="tx_700">${(_b = obj.title) !== null && _b !== void 0 ? _b : '產品列表'}</div>
3384
3441
  <div class="flex-fill"></div>
3385
3442
  <i
3386
3443
  class="fa-regular fa-circle-xmark fs-5 text-dark cursor_pointer"
@@ -3394,7 +3451,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3394
3451
  </div>
3395
3452
  <div class="c_dialog">
3396
3453
  <div class="c_dialog_body">
3397
- <div class="c_dialog_main" style="gap: 24px; max-height: 500px;">${(_b = obj.innerHTML) !== null && _b !== void 0 ? _b : ''}</div>
3454
+ <div class="c_dialog_main" style="gap: 24px; max-height: 500px;">${(_c = obj.innerHTML) !== null && _c !== void 0 ? _c : ''}</div>
3398
3455
  </div>
3399
3456
  </div>
3400
3457
  </div>`;
@@ -3416,11 +3473,11 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3416
3473
  })(),
3417
3474
  }).then(data => {
3418
3475
  vm.options = data.response.data.map((product) => {
3419
- var _a;
3476
+ var _b;
3420
3477
  return {
3421
3478
  key: product.content.id,
3422
3479
  value: product.content.title,
3423
- image: (_a = product.content.preview_image[0]) !== null && _a !== void 0 ? _a : BgWidget.noImageURL,
3480
+ image: (_b = product.content.preview_image[0]) !== null && _b !== void 0 ? _b : BgWidget.noImageURL,
3424
3481
  };
3425
3482
  });
3426
3483
  vm.loading = false;
@@ -3445,7 +3502,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3445
3502
  orderString: '',
3446
3503
  };
3447
3504
  function printOptionVa(opt) {
3448
- var _a;
3505
+ var _b;
3449
3506
  const id = Tool.randomString(7);
3450
3507
  opt.key = `${opt.key}`;
3451
3508
  function call() {
@@ -3475,7 +3532,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3475
3532
  })}
3476
3533
  ${BgWidget.validImageBox({
3477
3534
  gvc,
3478
- image: (_a = opt.image) !== null && _a !== void 0 ? _a : '',
3535
+ image: (_b = opt.image) !== null && _b !== void 0 ? _b : '',
3479
3536
  width: 40,
3480
3537
  height: 40,
3481
3538
  events: [
@@ -3499,13 +3556,13 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3499
3556
  ${obj.gvc.bindView({
3500
3557
  bind: vm.id,
3501
3558
  view: () => {
3502
- var _a;
3559
+ var _b;
3503
3560
  if (vm.loading) {
3504
3561
  return html ` <div class="my-4">${this.spinner()}</div>`;
3505
3562
  }
3506
3563
  return html ` <div class="bg-white shadow rounded-3" style="width: 100%; overflow-y: auto;">
3507
3564
  <div class="w-100 d-flex align-items-center p-3 border-bottom">
3508
- <div class="tx_700">${(_a = obj.title) !== null && _a !== void 0 ? _a : '產品列表'}</div>
3565
+ <div class="tx_700">${(_b = obj.title) !== null && _b !== void 0 ? _b : '產品列表'}</div>
3509
3566
  <div class="flex-fill"></div>
3510
3567
  <i
3511
3568
  class="fa-regular fa-circle-xmark fs-5 text-dark cursor_pointer"
@@ -3556,11 +3613,11 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3556
3613
  productType: 'all',
3557
3614
  }).then(data => {
3558
3615
  vm.options = data.response.data.map((v) => {
3559
- var _a;
3616
+ var _b;
3560
3617
  return {
3561
3618
  key: v.id,
3562
3619
  value: v.product_content.title,
3563
- image: (_a = v.variant_content.preview_image) !== null && _a !== void 0 ? _a : BgWidget.noImageURL,
3620
+ image: (_b = v.variant_content.preview_image) !== null && _b !== void 0 ? _b : BgWidget.noImageURL,
3564
3621
  note: v.variant_content.spec ? v.variant_content.spec.join('/') : '單一規格',
3565
3622
  };
3566
3623
  });
@@ -3616,7 +3673,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3616
3673
  orderString: '',
3617
3674
  };
3618
3675
  function printOptionSt(opt) {
3619
- var _a;
3676
+ var _b;
3620
3677
  const id = Tool.randomString(7);
3621
3678
  opt.key = `${opt.key}`;
3622
3679
  function call() {
@@ -3647,7 +3704,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3647
3704
  })}
3648
3705
  ${BgWidget.validImageBox({
3649
3706
  gvc,
3650
- image: (_a = opt.image) !== null && _a !== void 0 ? _a : '',
3707
+ image: (_b = opt.image) !== null && _b !== void 0 ? _b : '',
3651
3708
  width: 40,
3652
3709
  height: 40,
3653
3710
  })}
@@ -3671,13 +3728,13 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3671
3728
  ${obj.gvc.bindView({
3672
3729
  bind: vm.id,
3673
3730
  view: () => {
3674
- var _a;
3731
+ var _b;
3675
3732
  if (vm.loading) {
3676
3733
  return html ` <div class="my-4">${this.spinner()}</div>`;
3677
3734
  }
3678
3735
  return html ` <div class="bg-white shadow rounded-3" style="width: 100%; overflow-y: auto;">
3679
3736
  <div class="w-100 d-flex align-items-center p-3 border-bottom">
3680
- <div class="tx_700">${(_a = obj.title) !== null && _a !== void 0 ? _a : '產品列表'}</div>
3737
+ <div class="tx_700">${(_b = obj.title) !== null && _b !== void 0 ? _b : '產品列表'}</div>
3681
3738
  <div class="flex-fill"></div>
3682
3739
  <i
3683
3740
  class="fa-regular fa-circle-xmark fs-5 text-dark cursor_pointer"
@@ -3722,11 +3779,11 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3722
3779
  search: obj.store_id,
3723
3780
  }).then(r => {
3724
3781
  vm.options = r.response.data.map((v) => {
3725
- var _a;
3782
+ var _b;
3726
3783
  return {
3727
3784
  key: v.id,
3728
3785
  value: v.product_content.title,
3729
- image: (_a = v.content.preview_image) !== null && _a !== void 0 ? _a : BgWidget.noImageURL,
3786
+ image: (_b = v.content.preview_image) !== null && _b !== void 0 ? _b : BgWidget.noImageURL,
3730
3787
  note: v.content.spec ? v.content.spec.join('/') : '單一規格',
3731
3788
  stock: v.content.stockList[obj.store_id].count,
3732
3789
  };
@@ -3779,7 +3836,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3779
3836
  return glitter;
3780
3837
  })();
3781
3838
  return glitter.innerDialog((gvc) => {
3782
- var _a;
3839
+ var _b;
3783
3840
  const vm = {
3784
3841
  id: obj.gvc.glitter.getUUID(),
3785
3842
  loading: false,
@@ -3787,20 +3844,20 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3787
3844
  return html ` <div
3788
3845
  class="bg-white shadow rounded-3"
3789
3846
  style="overflow-y: auto; ${document.body.clientWidth > 768
3790
- ? `width: ${(_a = obj.width) !== null && _a !== void 0 ? _a : 600}px;max-width:calc(100vw - 20px);`
3847
+ ? `width: ${(_b = obj.width) !== null && _b !== void 0 ? _b : 600}px;max-width:calc(100vw - 20px);`
3791
3848
  : 'min-width: calc(100vw - 10px);; max-width: calc(100vw - 10px);'}"
3792
3849
  >
3793
3850
  ${gvc.bindView({
3794
3851
  bind: vm.id,
3795
3852
  view: () => {
3796
- var _a, _b, _c;
3797
- const footer = (_a = obj.footer_html(gvc)) !== null && _a !== void 0 ? _a : '';
3853
+ var _b, _c, _d;
3854
+ const footer = (_b = obj.footer_html(gvc)) !== null && _b !== void 0 ? _b : '';
3798
3855
  if (vm.loading) {
3799
3856
  return html ` <div class="my-4">${this.spinner()}</div>`;
3800
3857
  }
3801
3858
  return html ` <div class="bg-white shadow rounded-3" style="width: 100%; overflow-y: auto;">
3802
3859
  <div class="w-100 d-flex align-items-center p-3 border-bottom">
3803
- <div class="tx_700">${(_b = obj.title) !== null && _b !== void 0 ? _b : '產品列表'}</div>
3860
+ <div class="tx_700">${(_c = obj.title) !== null && _c !== void 0 ? _c : '產品列表'}</div>
3804
3861
  <div class="flex-fill"></div>
3805
3862
  <i
3806
3863
  class="fa-regular fa-circle-xmark fs-5 text-dark cursor_pointer"
@@ -3820,7 +3877,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3820
3877
  ? `height:${obj.height}px;max-height: 100vh;`
3821
3878
  : `height:auto;max-height: 500px;`} "
3822
3879
  >
3823
- ${(_c = obj.innerHTML(gvc)) !== null && _c !== void 0 ? _c : ''}
3880
+ ${(_d = obj.innerHTML(gvc)) !== null && _d !== void 0 ? _d : ''}
3824
3881
  </div>
3825
3882
  ${footer ? `<div class="c_dialog_bar">${footer}</div>` : ``}
3826
3883
  </div>
@@ -3838,11 +3895,11 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3838
3895
  obj.gvc = window.parent.glitter.pageConfig[0].gvc;
3839
3896
  }
3840
3897
  return obj.gvc.glitter.innerDialog((gvc) => {
3841
- var _a, _b, _c;
3898
+ var _b, _c, _d;
3842
3899
  return html ` <div
3843
3900
  class="bg-white shadow rounded-3"
3844
3901
  style="overflow-y: auto; ${document.body.clientWidth > 768
3845
- ? `min-width: 400px; width: ${(_a = obj.width) !== null && _a !== void 0 ? _a : 600}px;`
3902
+ ? `min-width: 400px; width: ${(_b = obj.width) !== null && _b !== void 0 ? _b : 600}px;`
3846
3903
  : 'min-width: 90vw; max-width: 92.5vw;'}"
3847
3904
  >
3848
3905
  <div class="bg-white shadow rounded-3" style="width: 100%; overflow-y: auto;">
@@ -3880,24 +3937,24 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3880
3937
  <div class="c_dialog_bar">
3881
3938
  ${obj.cancel
3882
3939
  ? BgWidget.cancel(gvc.event(() => {
3883
- var _a, _b;
3884
- if ((_a = obj.cancel) === null || _a === void 0 ? void 0 : _a.event) {
3885
- (_b = obj.cancel) === null || _b === void 0 ? void 0 : _b.event(gvc).then(response => {
3940
+ var _b, _c;
3941
+ if ((_b = obj.cancel) === null || _b === void 0 ? void 0 : _b.event) {
3942
+ (_c = obj.cancel) === null || _c === void 0 ? void 0 : _c.event(gvc).then(response => {
3886
3943
  response && gvc.closeDialog();
3887
3944
  });
3888
3945
  }
3889
3946
  else {
3890
3947
  gvc.closeDialog();
3891
3948
  }
3892
- }), (_b = obj.cancel.text) !== null && _b !== void 0 ? _b : '取消')
3949
+ }), (_c = obj.cancel.text) !== null && _c !== void 0 ? _c : '取消')
3893
3950
  : ''}
3894
3951
  ${obj.save
3895
3952
  ? BgWidget.save(gvc.event(() => {
3896
- var _a;
3897
- (_a = obj.save) === null || _a === void 0 ? void 0 : _a.event(gvc).then(response => {
3953
+ var _b;
3954
+ (_b = obj.save) === null || _b === void 0 ? void 0 : _b.event(gvc).then(response => {
3898
3955
  response && gvc.closeDialog();
3899
3956
  });
3900
- }), (_c = obj.save.text) !== null && _c !== void 0 ? _c : '確認')
3957
+ }), (_d = obj.save.text) !== null && _d !== void 0 ? _d : '確認')
3901
3958
  : ''}
3902
3959
  </div>
3903
3960
  `
@@ -3911,7 +3968,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3911
3968
  obj.gvc = window.parent.glitter.pageConfig[0].gvc;
3912
3969
  }
3913
3970
  return obj.gvc.glitter.innerDialog((gvc) => {
3914
- var _a, _b, _c;
3971
+ var _b, _c, _d;
3915
3972
  return html `
3916
3973
  <div
3917
3974
  style="height: 100vh;width: 100vw;"
@@ -3923,7 +3980,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3923
3980
  <div
3924
3981
  class="shadow rounded-3"
3925
3982
  style="background-color: #393939;overflow-y: auto; ${document.body.clientWidth > 768
3926
- ? `min-width: 400px; width: ${(_a = obj.width) !== null && _a !== void 0 ? _a : 600}px;`
3983
+ ? `min-width: 400px; width: ${(_b = obj.width) !== null && _b !== void 0 ? _b : 600}px;`
3927
3984
  : 'min-width: 90vw; max-width: 92.5vw;'}"
3928
3985
  >
3929
3986
  <div class=" shadow rounded-3" style="width: 100%; overflow-y: auto;">
@@ -3944,24 +4001,24 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3944
4001
  <div class="c_dialog_bar">
3945
4002
  ${obj.cancel
3946
4003
  ? BgWidget.cancel(gvc.event(() => {
3947
- var _a, _b;
3948
- if ((_a = obj.cancel) === null || _a === void 0 ? void 0 : _a.event) {
3949
- (_b = obj.cancel) === null || _b === void 0 ? void 0 : _b.event(gvc).then(response => {
4004
+ var _b, _c;
4005
+ if ((_b = obj.cancel) === null || _b === void 0 ? void 0 : _b.event) {
4006
+ (_c = obj.cancel) === null || _c === void 0 ? void 0 : _c.event(gvc).then(response => {
3950
4007
  response && gvc.closeDialog();
3951
4008
  });
3952
4009
  }
3953
4010
  else {
3954
4011
  gvc.closeDialog();
3955
4012
  }
3956
- }), (_b = obj.cancel.text) !== null && _b !== void 0 ? _b : '取消')
4013
+ }), (_c = obj.cancel.text) !== null && _c !== void 0 ? _c : '取消')
3957
4014
  : ''}
3958
4015
  ${obj.save
3959
4016
  ? BgWidget.save(gvc.event(() => {
3960
- var _a;
3961
- (_a = obj.save) === null || _a === void 0 ? void 0 : _a.event(gvc).then(response => {
4017
+ var _b;
4018
+ (_b = obj.save) === null || _b === void 0 ? void 0 : _b.event(gvc).then(response => {
3962
4019
  response && gvc.closeDialog();
3963
4020
  });
3964
- }), (_c = obj.save.text) !== null && _c !== void 0 ? _c : '確認')
4021
+ }), (_d = obj.save.text) !== null && _d !== void 0 ? _d : '確認')
3965
4022
  : ''}
3966
4023
  </div>
3967
4024
  `
@@ -3977,7 +4034,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3977
4034
  obj.gvc = window.parent.glitter.pageConfig[0].gvc;
3978
4035
  }
3979
4036
  return obj.gvc.glitter.innerDialog((gvc) => {
3980
- var _a, _b;
4037
+ var _b, _c;
3981
4038
  return html ` <div class="bg-white shadow rounded-3" style="overflow-y: auto;width:414px;">
3982
4039
  <div class="bg-white shadow rounded-3" style="width: 100%; overflow-y: auto;">
3983
4040
  <div class="w-100 d-flex align-items-center p-3 border-bottom">
@@ -3986,9 +4043,9 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3986
4043
  <i
3987
4044
  class="fa-regular fa-circle-xmark fs-5 text-dark cursor_pointer"
3988
4045
  onclick="${gvc.event(() => {
3989
- var _a, _b;
3990
- if ((_a = obj.cancel) === null || _a === void 0 ? void 0 : _a.event) {
3991
- (_b = obj.cancel) === null || _b === void 0 ? void 0 : _b.event(gvc).then(response => {
4046
+ var _b, _c;
4047
+ if ((_b = obj.cancel) === null || _b === void 0 ? void 0 : _b.event) {
4048
+ (_c = obj.cancel) === null || _c === void 0 ? void 0 : _c.event(gvc).then(response => {
3992
4049
  response && gvc.closeDialog();
3993
4050
  });
3994
4051
  }
@@ -4015,24 +4072,24 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4015
4072
  <div class="c_dialog_bar">
4016
4073
  ${obj.cancel
4017
4074
  ? BgWidget.cancel(gvc.event(() => {
4018
- var _a, _b;
4019
- if ((_a = obj.cancel) === null || _a === void 0 ? void 0 : _a.event) {
4020
- (_b = obj.cancel) === null || _b === void 0 ? void 0 : _b.event(gvc).then(response => {
4075
+ var _b, _c;
4076
+ if ((_b = obj.cancel) === null || _b === void 0 ? void 0 : _b.event) {
4077
+ (_c = obj.cancel) === null || _c === void 0 ? void 0 : _c.event(gvc).then(response => {
4021
4078
  response && gvc.closeDialog();
4022
4079
  });
4023
4080
  }
4024
4081
  else {
4025
4082
  gvc.closeDialog();
4026
4083
  }
4027
- }), (_a = obj.cancel.text) !== null && _a !== void 0 ? _a : '取消')
4084
+ }), (_b = obj.cancel.text) !== null && _b !== void 0 ? _b : '取消')
4028
4085
  : ''}
4029
4086
  ${obj.save
4030
4087
  ? BgWidget.save(gvc.event(() => {
4031
- var _a;
4032
- (_a = obj.save) === null || _a === void 0 ? void 0 : _a.event(gvc).then(response => {
4088
+ var _b;
4089
+ (_b = obj.save) === null || _b === void 0 ? void 0 : _b.event(gvc).then(response => {
4033
4090
  response && gvc.closeDialog();
4034
4091
  });
4035
- }), (_b = obj.save.text) !== null && _b !== void 0 ? _b : '確認')
4092
+ }), (_c = obj.save.text) !== null && _c !== void 0 ? _c : '確認')
4036
4093
  : ''}
4037
4094
  </div>
4038
4095
  `
@@ -4042,7 +4099,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4042
4099
  }, Tool.randomString(7));
4043
4100
  }
4044
4101
  static jumpAlert(obj) {
4045
- var _a, _b;
4102
+ var _b, _c;
4046
4103
  const className = 'bg-widget-class';
4047
4104
  const fixedStyle = (() => {
4048
4105
  let style = '';
@@ -4075,7 +4132,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4075
4132
  color: white;
4076
4133
  padding: 10px;
4077
4134
  border-radius: 8px;
4078
- width: ${(_a = obj.width) !== null && _a !== void 0 ? _a : 120}px;
4135
+ width: ${(_b = obj.width) !== null && _b !== void 0 ? _b : 120}px;
4079
4136
  text-align: center;
4080
4137
  z-index: 11;
4081
4138
  transform: translateX(${transX});
@@ -4097,7 +4154,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4097
4154
  if (element) {
4098
4155
  element.remove();
4099
4156
  }
4100
- }, (_b = obj.timeout) !== null && _b !== void 0 ? _b : 2000);
4157
+ }, (_c = obj.timeout) !== null && _c !== void 0 ? _c : 2000);
4101
4158
  }
4102
4159
  static fullDialog(obj) {
4103
4160
  const glitter = (() => {
@@ -4122,8 +4179,8 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4122
4179
  ${gvc.bindView({
4123
4180
  bind: vm.id,
4124
4181
  view: () => {
4125
- var _a, _b, _c;
4126
- const footer = (_a = obj.footer_html(gvc)) !== null && _a !== void 0 ? _a : '';
4182
+ var _b, _c, _d;
4183
+ const footer = (_b = obj.footer_html(gvc)) !== null && _b !== void 0 ? _b : '';
4127
4184
  if (vm.loading) {
4128
4185
  return html ` <div class="my-4">${this.spinner()}</div>`;
4129
4186
  }
@@ -4136,7 +4193,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4136
4193
  style="position: sticky; top: 0; z-index: 2; background: #fff;"
4137
4194
  >
4138
4195
  <div class="tx_700">
4139
- ${typeof obj.title === 'function' ? obj.title(gvc) : ((_b = obj.title) !== null && _b !== void 0 ? _b : '產品列表')}
4196
+ ${typeof obj.title === 'function' ? obj.title(gvc) : ((_c = obj.title) !== null && _c !== void 0 ? _c : '產品列表')}
4140
4197
  </div>
4141
4198
  <div class="flex-fill"></div>
4142
4199
  <i
@@ -4155,7 +4212,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4155
4212
  class="c_dialog_main h-100"
4156
4213
  style="max-height: 100%; padding: 0; gap: 24px; z-index: 1; position: relative;"
4157
4214
  >
4158
- ${(_c = obj.innerHTML(gvc)) !== null && _c !== void 0 ? _c : ''}
4215
+ ${(_d = obj.innerHTML(gvc)) !== null && _d !== void 0 ? _d : ''}
4159
4216
  </div>
4160
4217
  ${footer ? html ` <div class="c_dialog_bar" style="z-index: 2;">${footer}</div>` : ``}
4161
4218
  </div>
@@ -4270,7 +4327,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4270
4327
  });
4271
4328
  }
4272
4329
  static validImageBox(obj) {
4273
- var _a, _b;
4330
+ var _b, _c;
4274
4331
  const imageVM = {
4275
4332
  id: obj.gvc.glitter.getUUID(),
4276
4333
  loading: true,
@@ -4279,9 +4336,9 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4279
4336
  const wh = `
4280
4337
  display: flex;
4281
4338
  min-width: ${obj.width}px;
4282
- min-height: ${(_a = obj.height) !== null && _a !== void 0 ? _a : obj.width}px;
4339
+ min-height: ${(_b = obj.height) !== null && _b !== void 0 ? _b : obj.width}px;
4283
4340
  max-width: ${obj.width}px;
4284
- max-height: ${(_b = obj.height) !== null && _b !== void 0 ? _b : obj.width}px;
4341
+ max-height: ${(_c = obj.height) !== null && _c !== void 0 ? _c : obj.width}px;
4285
4342
  width: 100%;
4286
4343
  height: 100%;
4287
4344
  object-fit: cover;
@@ -4292,7 +4349,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4292
4349
  view: () => {
4293
4350
  if (imageVM.loading) {
4294
4351
  return obj.gvc.bindView(() => {
4295
- var _a, _b;
4352
+ var _b, _c;
4296
4353
  return {
4297
4354
  bind: obj.gvc.glitter.getUUID(),
4298
4355
  view: () => {
@@ -4303,8 +4360,8 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4303
4360
  });
4304
4361
  },
4305
4362
  divCreate: {
4306
- style: `${wh}${(_a = obj.style) !== null && _a !== void 0 ? _a : ''}`,
4307
- class: (_b = obj.class) !== null && _b !== void 0 ? _b : '',
4363
+ style: `${wh}${(_b = obj.style) !== null && _b !== void 0 ? _b : ''}`,
4364
+ class: (_c = obj.class) !== null && _c !== void 0 ? _c : '',
4308
4365
  },
4309
4366
  };
4310
4367
  });
@@ -4320,7 +4377,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4320
4377
  option.push(...obj.events);
4321
4378
  }
4322
4379
  return obj.gvc.bindView(() => {
4323
- var _a, _b;
4380
+ var _b, _c;
4324
4381
  return {
4325
4382
  bind: obj.gvc.glitter.getUUID(),
4326
4383
  view: () => {
@@ -4328,8 +4385,8 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4328
4385
  },
4329
4386
  divCreate: {
4330
4387
  elem: 'img',
4331
- style: `${wh}${(_a = obj.style) !== null && _a !== void 0 ? _a : ''}`,
4332
- class: (_b = obj.class) !== null && _b !== void 0 ? _b : '',
4388
+ style: `${wh}${(_b = obj.style) !== null && _b !== void 0 ? _b : ''}`,
4389
+ class: (_c = obj.class) !== null && _c !== void 0 ? _c : '',
4333
4390
  option,
4334
4391
  },
4335
4392
  };
@@ -4462,7 +4519,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4462
4519
  return obj.gvc.bindView({
4463
4520
  bind: imageVM.id,
4464
4521
  view: () => {
4465
- var _a;
4522
+ var _b;
4466
4523
  if (imageVM.loading) {
4467
4524
  return this.spinner({
4468
4525
  container: { class: 'mt-0' },
@@ -4472,7 +4529,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4472
4529
  else {
4473
4530
  return html ` <div
4474
4531
  class="d-flex align-items-center justify-content-center rounded-3 shadow"
4475
- style="min-width: ${obj.width}px; width: ${obj.width}px; height: ${(_a = obj.height) !== null && _a !== void 0 ? _a : obj.width}px; cursor:pointer; background: 50%/cover url('${imageVM.url}');"
4532
+ style="min-width: ${obj.width}px; width: ${obj.width}px; height: ${(_b = obj.height) !== null && _b !== void 0 ? _b : obj.width}px; cursor:pointer; background: 50%/cover url('${imageVM.url}');"
4476
4533
  >
4477
4534
  <div class="w-100 h-100 d-flex align-items-center justify-content-center rounded-3 p-hover-image">
4478
4535
  ${obj.create
@@ -4549,13 +4606,13 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4549
4606
  ${gvc.bindView({
4550
4607
  bind: vm.id,
4551
4608
  view: () => {
4552
- var _a, _b, _c;
4609
+ var _b, _c, _d;
4553
4610
  if (vm.loading) {
4554
4611
  return html ` <div class="my-4">${this.spinner()}</div>`;
4555
4612
  }
4556
4613
  return html ` <div class="bg-white shadow rounded-3 h-100 d-flex flex-column" style="width: 100%; ">
4557
4614
  <div class="w-100 d-flex align-items-center p-3 border-bottom" style="background: #F2F2F2;">
4558
- <div class="tx_700">${(_a = obj.title) !== null && _a !== void 0 ? _a : '產品列表'}</div>
4615
+ <div class="tx_700">${(_b = obj.title) !== null && _b !== void 0 ? _b : '產品列表'}</div>
4559
4616
  <div class="flex-fill"></div>
4560
4617
 
4561
4618
  <i
@@ -4571,9 +4628,9 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4571
4628
  <div class="c_dialog flex-fill">
4572
4629
  <div class="c_dialog_body d-flex flex-column h-100">
4573
4630
  <div class="c_dialog_main flex-fill" style="gap: 24px;max-height:100%; ">
4574
- ${(_b = obj.innerHTML(gvc)) !== null && _b !== void 0 ? _b : ''}
4631
+ ${(_c = obj.innerHTML(gvc)) !== null && _c !== void 0 ? _c : ''}
4575
4632
  </div>
4576
- <div class="c_dialog_bar">${(_c = obj.footer_html(gvc)) !== null && _c !== void 0 ? _c : ''}</div>
4633
+ <div class="c_dialog_bar">${(_d = obj.footer_html(gvc)) !== null && _d !== void 0 ? _d : ''}</div>
4577
4634
  </div>
4578
4635
  </div>
4579
4636
  </div>`;
@@ -4829,10 +4886,10 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4829
4886
  style: 'display: flex;gap: 8px;flex-direction: column;',
4830
4887
  },
4831
4888
  onCreate: () => {
4832
- var _a;
4889
+ var _b;
4833
4890
  let enterPass = true;
4834
4891
  const inputElement = document.getElementById(vm.enterId);
4835
- gvc.glitter.share.keyDownEvent = (_a = gvc.glitter.share.keyDownEvent) !== null && _a !== void 0 ? _a : {};
4892
+ gvc.glitter.share.keyDownEvent = (_b = gvc.glitter.share.keyDownEvent) !== null && _b !== void 0 ? _b : {};
4836
4893
  keyboard === 'Enter' && inputElement && inputElement.focus();
4837
4894
  inputElement.addEventListener('compositionupdate', function () {
4838
4895
  enterPass = false;
@@ -4859,6 +4916,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
4859
4916
  </div>`;
4860
4917
  }
4861
4918
  }
4919
+ _a = BgWidget;
4862
4920
  BgWidget.richTextQuickList = [
4863
4921
  {
4864
4922
  title: '商家名稱',
@@ -4913,5 +4971,11 @@ BgWidget.getContainerWidth = (obj) => {
4913
4971
  })();
4914
4972
  return Math.floor(width);
4915
4973
  };
4974
+ BgWidget.activeFilter = '';
4975
+ BgWidget.setActiveFilter = (gvc, key) => {
4976
+ const keyList = ['updownFilter', 'funnelFilter', 'countingFilter'];
4977
+ _a.activeFilter = key;
4978
+ gvc.notifyDataChange(keyList);
4979
+ };
4916
4980
  BgWidget.noImageURL = 'https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/1722936949034-default_image.jpg';
4917
4981
  window.glitter.setModule(import.meta.url, BgWidget);