ts-glitter 13.3.5 → 13.3.8

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 (99) hide show
  1. package/lowcode/Entry.js +1 -1
  2. package/lowcode/Entry.ts +1 -1
  3. package/lowcode/backend-manager/bg-blog.js +2 -7
  4. package/lowcode/backend-manager/bg-blog.ts +8 -13
  5. package/lowcode/backend-manager/bg-graph-api.js +6 -11
  6. package/lowcode/backend-manager/bg-graph-api.ts +14 -20
  7. package/lowcode/backend-manager/bg-line.js +526 -1002
  8. package/lowcode/backend-manager/bg-line.ts +1815 -2354
  9. package/lowcode/backend-manager/bg-notify.js +392 -746
  10. package/lowcode/backend-manager/bg-notify.ts +436 -835
  11. package/lowcode/backend-manager/bg-project.js +176 -293
  12. package/lowcode/backend-manager/bg-project.ts +214 -344
  13. package/lowcode/backend-manager/bg-recommend.js +39 -148
  14. package/lowcode/backend-manager/bg-recommend.ts +43 -162
  15. package/lowcode/backend-manager/bg-sns.js +489 -814
  16. package/lowcode/backend-manager/bg-sns.ts +1876 -2238
  17. package/lowcode/backend-manager/bg-widget.js +301 -171
  18. package/lowcode/backend-manager/bg-widget.ts +324 -193
  19. package/lowcode/cms-plugin/ai-points.js +84 -67
  20. package/lowcode/cms-plugin/ai-points.ts +280 -247
  21. package/lowcode/cms-plugin/auto-reply.js +6 -7
  22. package/lowcode/cms-plugin/auto-reply.ts +6 -7
  23. package/lowcode/cms-plugin/data-analyze.js +5 -6
  24. package/lowcode/cms-plugin/data-analyze.ts +5 -6
  25. package/lowcode/cms-plugin/form-setting.js +122 -220
  26. package/lowcode/cms-plugin/form-setting.ts +124 -240
  27. package/lowcode/cms-plugin/line-auto-reply.js +17 -18
  28. package/lowcode/cms-plugin/line-auto-reply.ts +29 -36
  29. package/lowcode/cms-plugin/member-group-list.js +5 -2
  30. package/lowcode/cms-plugin/member-group-list.ts +5 -2
  31. package/lowcode/cms-plugin/member-type-list.js +36 -84
  32. package/lowcode/cms-plugin/member-type-list.ts +39 -92
  33. package/lowcode/cms-plugin/menus-setting.js +8 -73
  34. package/lowcode/cms-plugin/menus-setting.ts +8 -78
  35. package/lowcode/cms-plugin/permission-setting.js +73 -106
  36. package/lowcode/cms-plugin/permission-setting.ts +236 -278
  37. package/lowcode/cms-plugin/shopping-collections.js +95 -137
  38. package/lowcode/cms-plugin/shopping-collections.ts +103 -147
  39. package/lowcode/cms-plugin/shopping-discount-setting.js +310 -416
  40. package/lowcode/cms-plugin/shopping-discount-setting.ts +1269 -1386
  41. package/lowcode/cms-plugin/shopping-finance-setting.js +1 -0
  42. package/lowcode/cms-plugin/shopping-finance-setting.ts +1 -0
  43. package/lowcode/cms-plugin/shopping-order-manager.js +742 -973
  44. package/lowcode/cms-plugin/shopping-order-manager.ts +1928 -2164
  45. package/lowcode/cms-plugin/shopping-order-return.js +147 -267
  46. package/lowcode/cms-plugin/shopping-order-return.ts +154 -292
  47. package/lowcode/cms-plugin/shopping-product-setting.js +6 -2
  48. package/lowcode/cms-plugin/shopping-product-setting.ts +8 -4
  49. package/lowcode/cms-plugin/shopping-product-stock.js +12 -92
  50. package/lowcode/cms-plugin/shopping-product-stock.ts +14 -94
  51. package/lowcode/cms-plugin/shopping-product-text.js +0 -3
  52. package/lowcode/cms-plugin/shopping-product-text.ts +0 -3
  53. package/lowcode/cms-plugin/shopping-rebate.js +95 -151
  54. package/lowcode/cms-plugin/shopping-rebate.ts +101 -159
  55. package/lowcode/cms-plugin/sms-points.js +83 -67
  56. package/lowcode/cms-plugin/sms-points.ts +281 -241
  57. package/lowcode/cms-plugin/sns-auto-reply.js +18 -18
  58. package/lowcode/cms-plugin/sns-auto-reply.ts +34 -40
  59. package/lowcode/cms-plugin/user-list.js +71 -90
  60. package/lowcode/cms-plugin/user-list.ts +76 -95
  61. package/lowcode/cms-plugin/web-config-setting.js +61 -111
  62. package/lowcode/cms-plugin/web-config-setting.ts +65 -124
  63. package/lowcode/css/editor.css +5 -2
  64. package/lowcode/glitter-base/route/shopping.js +1 -1
  65. package/lowcode/glitter-base/route/shopping.ts +19 -19
  66. package/lowcode/jspage/editor.js +1 -1
  67. package/lowcode/jspage/editor.ts +1 -1
  68. package/lowcode/jspage/main.js +4 -0
  69. package/lowcode/jspage/main.ts +4 -0
  70. package/package.json +1 -2
  71. package/src/api-public/controllers/ai-chat.js.map +5 -1
  72. package/src/api-public/controllers/article.js.map +1 -1
  73. package/src/api-public/controllers/chat.js.map +1 -1
  74. package/src/api-public/controllers/fb-message.js.map +1 -1
  75. package/src/api-public/controllers/index.js.map +1 -1
  76. package/src/api-public/controllers/line-message.js.map +1 -1
  77. package/src/api-public/controllers/rebate.js.map +1 -1
  78. package/src/api-public/controllers/shop.js.map +1 -1
  79. package/src/api-public/controllers/user.js.map +1 -1
  80. package/src/api-public/services/auto-send-email.js.map +1 -1
  81. package/src/api-public/services/chat.js +3 -3
  82. package/src/api-public/services/chat.js.map +1 -1
  83. package/src/api-public/services/chat.ts +2 -3
  84. package/src/api-public/services/fb-message.js.map +5 -1
  85. package/src/api-public/services/filter-protect-data.js.map +1 -1
  86. package/src/api-public/services/line-message.js.map +1 -1
  87. package/src/api-public/services/monitor.js.map +1 -1
  88. package/src/api-public/services/notify.js.map +1 -1
  89. package/src/api-public/services/rebate.js.map +1 -1
  90. package/src/api-public/services/schedule.js.map +1 -1
  91. package/src/api-public/services/share-permission.js.map +1 -1
  92. package/src/api-public/services/shopping.js.map +1 -1
  93. package/src/api-public/services/user.js +67 -66
  94. package/src/api-public/services/user.js.map +1 -1
  95. package/src/api-public/services/user.ts +212 -182
  96. package/src/helper/glitter-util.js.map +1 -1
  97. package/src/modules/firebase.d.ts +1 -0
  98. package/src/modules/firebase.js +1 -1
  99. package/src/modules/firebase.js.map +1 -1
package/lowcode/Entry.js CHANGED
@@ -56,7 +56,7 @@ export class Entry {
56
56
  }
57
57
  window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
58
58
  console.log(`Entry-time:`, window.renderClock.stop());
59
- glitter.share.editerVersion = "V_13.3.5";
59
+ glitter.share.editerVersion = "V_13.3.8";
60
60
  glitter.share.start = (new Date());
61
61
  const vm = {
62
62
  appConfig: [],
package/lowcode/Entry.ts CHANGED
@@ -56,7 +56,7 @@ export class Entry {
56
56
  }
57
57
  (window as any).renderClock = (window as any).renderClock ?? clockF();
58
58
  console.log(`Entry-time:`, (window as any).renderClock.stop());
59
- glitter.share.editerVersion = "V_13.3.5";
59
+ glitter.share.editerVersion = "V_13.3.8";
60
60
  glitter.share.start = (new Date());
61
61
  const vm: {
62
62
  appConfig: any;
@@ -40,7 +40,6 @@ export class BgBlog {
40
40
  {
41
41
  key: `${is_page ? `頁面` : `網誌`}標題`,
42
42
  value: html `<span class="fs-7">${((_a = dd.content.name) !== null && _a !== void 0 ? _a : '尚未設定標題').substring(0, 15)}</span>`,
43
- width: 40,
44
43
  },
45
44
  {
46
45
  key: '發布時間',
@@ -74,7 +73,6 @@ export class BgBlog {
74
73
  <i class="fa-regular fa-eye" aria-hidden="true"></i>
75
74
  </div>
76
75
  `,
77
- width: 10,
78
76
  },
79
77
  ];
80
78
  });
@@ -129,12 +127,10 @@ export class BgBlog {
129
127
  </div>
130
128
  </div>
131
129
  ${BgWidget.mainCard([
132
- html `<div class="mb-3 px-2">
133
- ${BgWidget.searchPlace(gvc.event((e) => {
130
+ BgWidget.searchPlace(gvc.event((e) => {
134
131
  vm.query = e.value;
135
132
  gvc.notifyDataChange(id);
136
- }), vm.query || '', '搜尋所有文章')}
137
- </div>`,
133
+ }), vm.query || '', '搜尋所有文章'),
138
134
  BgWidget.tableV3({
139
135
  gvc: gvc,
140
136
  getData: (vd) => {
@@ -200,7 +196,6 @@ export class BgBlog {
200
196
  },
201
197
  });
202
198
  },
203
- option: false,
204
199
  },
205
200
  ],
206
201
  }),
@@ -52,7 +52,6 @@ export class BgBlog {
52
52
  {
53
53
  key: `${is_page ? `頁面` : `網誌`}標題`,
54
54
  value: html`<span class="fs-7">${(dd.content.name ?? '尚未設定標題').substring(0, 15)}</span>`,
55
- width: 40,
56
55
  },
57
56
  {
58
57
  key: '發布時間',
@@ -88,7 +87,6 @@ export class BgBlog {
88
87
  <i class="fa-regular fa-eye" aria-hidden="true"></i>
89
88
  </div>
90
89
  `,
91
- width: 10,
92
90
  },
93
91
  ];
94
92
  });
@@ -156,16 +154,14 @@ export class BgBlog {
156
154
  </div>
157
155
  ${BgWidget.mainCard(
158
156
  [
159
- html`<div class="mb-3 px-2">
160
- ${BgWidget.searchPlace(
161
- gvc.event((e) => {
162
- vm.query = e.value;
163
- gvc.notifyDataChange(id);
164
- }),
165
- vm.query || '',
166
- '搜尋所有文章'
167
- )}
168
- </div>`,
157
+ BgWidget.searchPlace(
158
+ gvc.event((e) => {
159
+ vm.query = e.value;
160
+ gvc.notifyDataChange(id);
161
+ }),
162
+ vm.query || '',
163
+ '搜尋所有文章'
164
+ ),
169
165
  BgWidget.tableV3({
170
166
  gvc: gvc,
171
167
  getData: (vd) => {
@@ -231,7 +227,6 @@ export class BgBlog {
231
227
  },
232
228
  });
233
229
  },
234
- option: false,
235
230
  },
236
231
  ],
237
232
  }),
@@ -41,12 +41,12 @@ export class BgGraphApi {
41
41
  vm.status = 'add';
42
42
  }))}
43
43
  </div>
44
- ${BgWidget.container([
45
- BgWidget.searchPlace(gvc.event((e, event) => {
44
+ ${BgWidget.container(BgWidget.mainCard([
45
+ BgWidget.searchPlace(gvc.event((e) => {
46
46
  vm.query = e.value;
47
47
  gvc.notifyDataChange(id);
48
48
  }), vm.query || '', '搜尋所有訂單'),
49
- BgWidget.mainCard(BgWidget.tableV3({
49
+ BgWidget.tableV3({
50
50
  gvc: gvc,
51
51
  getData: (vmi) => {
52
52
  const limit = 20;
@@ -103,11 +103,7 @@ export class BgGraphApi {
103
103
  if (response) {
104
104
  dialog.dataLoading({ visible: true });
105
105
  GraphApi.delete({
106
- id: checkedData
107
- .map((dd) => {
108
- return dd.id;
109
- })
110
- .join(`,`),
106
+ id: checkedData.map((dd) => dd.id).join(`,`),
111
107
  }).then((res) => {
112
108
  dialog.dataLoading({ visible: false });
113
109
  if (res.result) {
@@ -122,11 +118,10 @@ export class BgGraphApi {
122
118
  },
123
119
  });
124
120
  },
125
- option: false,
126
121
  },
127
122
  ],
128
- })),
129
- ].join(''))}
123
+ }),
124
+ ].join('')))}
130
125
  `, BgWidget.getContainerWidth());
131
126
  case 'replace':
132
127
  return BgGraphApi.editor({
@@ -54,16 +54,16 @@ export class BgGraphApi {
54
54
  )}
55
55
  </div>
56
56
  ${BgWidget.container(
57
- [
58
- BgWidget.searchPlace(
59
- gvc.event((e, event) => {
60
- vm.query = e.value;
61
- gvc.notifyDataChange(id);
62
- }),
63
- vm.query || '',
64
- '搜尋所有訂單'
65
- ),
66
- BgWidget.mainCard(
57
+ BgWidget.mainCard(
58
+ [
59
+ BgWidget.searchPlace(
60
+ gvc.event((e) => {
61
+ vm.query = e.value;
62
+ gvc.notifyDataChange(id);
63
+ }),
64
+ vm.query || '',
65
+ '搜尋所有訂單'
66
+ ),
67
67
  BgWidget.tableV3({
68
68
  gvc: gvc,
69
69
  getData: (vmi) => {
@@ -98,7 +98,6 @@ export class BgGraphApi {
98
98
  });
99
99
  });
100
100
  }
101
-
102
101
  vm.dataList = data.response.data;
103
102
  vmi.pageSize = Math.ceil(data.response.total / limit);
104
103
  vmi.originalData = vm.dataList;
@@ -122,11 +121,7 @@ export class BgGraphApi {
122
121
  if (response) {
123
122
  dialog.dataLoading({ visible: true });
124
123
  GraphApi.delete({
125
- id: checkedData
126
- .map((dd: any) => {
127
- return dd.id;
128
- })
129
- .join(`,`),
124
+ id: checkedData.map((dd: any) => dd.id).join(`,`),
130
125
  }).then((res) => {
131
126
  dialog.dataLoading({ visible: false });
132
127
  if (res.result) {
@@ -140,12 +135,11 @@ export class BgGraphApi {
140
135
  },
141
136
  });
142
137
  },
143
- option: false,
144
138
  },
145
139
  ],
146
- })
147
- ),
148
- ].join('')
140
+ }),
141
+ ].join('')
142
+ )
149
143
  )}
150
144
  `,
151
145
  BgWidget.getContainerWidth()