ts-glitter 13.8.828 → 13.8.830
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.
- package/lib/glitterBundle/Glitter.js +1 -1
- package/lib/glitterBundle/module/Html_generate.js +6 -2
- package/lib/glitterBundle/module/PageManager.js +4 -5
- package/lib/glitterBundle/plugins/editor-elem.js +253 -224
- package/lowcode/Entry.js +1 -1
- package/lowcode/Entry.ts +1 -1
- package/lowcode/backend-manager/bg-MobileGuide.ts +198 -0
- package/lowcode/backend-manager/bg-guide.ts +0 -1
- package/lowcode/backend-manager/bg-mobileGuide.js +169 -0
- package/lowcode/cms-plugin/filter-options.js +39 -0
- package/lowcode/cms-plugin/filter-options.ts +40 -0
- package/lowcode/cms-plugin/shopping-allowance-manager.js +1225 -0
- package/lowcode/cms-plugin/shopping-allowance-manager.ts +1426 -0
- package/lowcode/cms-plugin/shopping-invoice-manager.js +1150 -886
- package/lowcode/cms-plugin/shopping-invoice-manager.ts +1521 -1298
- package/lowcode/cms-plugin/shopping-order-manager.js +1 -1
- package/lowcode/cms-plugin/shopping-order-manager.ts +4 -4
- package/lowcode/glitter-base/route/shopping.js +97 -3
- package/lowcode/glitter-base/route/shopping.ts +109 -4
- package/lowcode/jspage/function-page/setting_editor.js +9 -1
- package/lowcode/jspage/function-page/setting_editor.ts +9 -1
- package/lowcode/jspage/main.js +5 -0
- package/lowcode/jspage/main.ts +5 -0
- package/package.json +1 -1
- package/src/api-public/controllers/ai-chat.js.map +1 -1
- package/src/api-public/controllers/ai-points.js.map +1 -1
- package/src/api-public/controllers/app-release.js.map +1 -1
- package/src/api-public/controllers/article.js.map +1 -1
- package/src/api-public/controllers/graph-api.js.map +1 -1
- package/src/api-public/controllers/invoice.js +21 -0
- package/src/api-public/controllers/invoice.js.map +1 -1
- package/src/api-public/controllers/invoice.ts +20 -1
- package/src/api-public/controllers/post.js.map +1 -1
- package/src/api-public/controllers/shop.js +54 -0
- package/src/api-public/controllers/shop.js.map +1 -1
- package/src/api-public/controllers/shop.ts +66 -0
- package/src/api-public/controllers/sms-points.js.map +1 -1
- package/src/api-public/controllers/user.js.map +1 -1
- package/src/api-public/services/EcInvoice.d.ts +26 -0
- package/src/api-public/services/EcInvoice.js +142 -1
- package/src/api-public/services/EcInvoice.js.map +1 -1
- package/src/api-public/services/EcInvoice.ts +205 -22
- package/src/api-public/services/ai-robot.d.ts +0 -1
- package/src/api-public/services/ai-robot.js.map +1 -1
- package/src/api-public/services/fb-message.d.ts +0 -1
- package/src/api-public/services/invoice.d.ts +19 -0
- package/src/api-public/services/invoice.js +89 -7
- package/src/api-public/services/invoice.js.map +1 -1
- package/src/api-public/services/invoice.ts +115 -12
- package/src/api-public/services/line-message.d.ts +0 -1
- package/src/api-public/services/post.js.map +1 -1
- package/src/api-public/services/public-table-check.js +18 -0
- package/src/api-public/services/public-table-check.js.map +1 -1
- package/src/api-public/services/public-table-check.ts +18 -0
- package/src/api-public/services/schedule.js.map +1 -1
- package/src/api-public/services/shopping.d.ts +25 -1
- package/src/api-public/services/shopping.js +104 -13
- package/src/api-public/services/shopping.js.map +1 -1
- package/src/api-public/services/shopping.ts +248 -109
- package/src/controllers/global-event.js.map +1 -1
- package/src/index.js.map +1 -5
- package/tc08a782k1.json +1 -0
|
@@ -553,7 +553,7 @@ ${(!error.message) ? `` : `錯誤訊息:${error.message}`}${(!error.lineNumber)
|
|
|
553
553
|
var search = (value !== undefined) ? this.setSearchParam(this.removeSearchParam(window.location.search, tag), tag, value) :
|
|
554
554
|
this.removeSearchParam(window.location.search, tag);
|
|
555
555
|
try {
|
|
556
|
-
window.history.
|
|
556
|
+
window.history.replaceState({}, document.title, search);
|
|
557
557
|
}
|
|
558
558
|
catch (e) {
|
|
559
559
|
}
|
|
@@ -80,7 +80,7 @@ export class HtmlGenerate {
|
|
|
80
80
|
let waitAdd = [];
|
|
81
81
|
for (const a of set) {
|
|
82
82
|
if (['code'].indexOf(a.type) === -1) {
|
|
83
|
-
if ((a.type !== 'widget') && (a.type !== 'container') && !gvc.glitter.share.htmlExtension[gvc.glitter.htmlGenerate.configureCDN(gvc.glitter.htmlGenerate.
|
|
83
|
+
if ((a.type !== 'widget') && (a.type !== 'container') && !gvc.glitter.share.htmlExtension[gvc.glitter.htmlGenerate.configureCDN(gvc.glitter.htmlGenerate.resourceHook(a.js))]) {
|
|
84
84
|
waitAdd.push({
|
|
85
85
|
src: `${gvc.glitter.htmlGenerate.configureCDN(gvc.glitter.htmlGenerate.resourceHook(a.js))}`,
|
|
86
86
|
type: 'module'
|
|
@@ -169,6 +169,7 @@ export class HtmlGenerate {
|
|
|
169
169
|
return ``;
|
|
170
170
|
}
|
|
171
171
|
if (['code'].indexOf(dd.type) === -1) {
|
|
172
|
+
console.log(`setonResumeEvent`);
|
|
172
173
|
if ((dd.type === 'widget') || (dd.type === 'container')) {
|
|
173
174
|
dd.refreshComponentParameter.view1 = () => {
|
|
174
175
|
gvc.notifyDataChange(container);
|
|
@@ -247,6 +248,9 @@ export class HtmlGenerate {
|
|
|
247
248
|
option: option
|
|
248
249
|
},
|
|
249
250
|
onCreate: () => {
|
|
251
|
+
gvc.glitter.document.querySelector(`[gvc-id="${component}"]`).onResumeEvent = () => {
|
|
252
|
+
alert('ss');
|
|
253
|
+
};
|
|
250
254
|
},
|
|
251
255
|
};
|
|
252
256
|
});
|
|
@@ -614,7 +618,7 @@ ${e.line}
|
|
|
614
618
|
return `
|
|
615
619
|
<div type="button" class="btn w-100 " style="background:white;width:calc(100%);border-radius:8px;
|
|
616
620
|
min-height:45px;border:1px solid black;color:#151515;" onclick="${gvc.event(() => {
|
|
617
|
-
glitter.openDiaLog("glitterBundle/plugins/
|
|
621
|
+
glitter.openDiaLog("glitterBundle/plugins/style-editor.js", "dialog-style-editor", {
|
|
618
622
|
callback: () => {
|
|
619
623
|
if (typeof widget === 'function') {
|
|
620
624
|
widget();
|
|
@@ -73,7 +73,6 @@ export class PageManager {
|
|
|
73
73
|
top: glitter.pageConfig[index].scrollTop,
|
|
74
74
|
behavior: 'auto'
|
|
75
75
|
});
|
|
76
|
-
console.log(`scroll----`, glitter.pageConfig[index].scrollTop);
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
catch (e) {
|
|
@@ -138,7 +137,7 @@ background: ${config.backGroundColor};display: none;z-index: 9999;overflow: hidd
|
|
|
138
137
|
module.create(glitter);
|
|
139
138
|
const search = glitter.setSearchParam(glitter.removeSearchParam(glitter.window.location.search, 'page'), 'page', tag);
|
|
140
139
|
try {
|
|
141
|
-
|
|
140
|
+
window.history.replaceState({}, glitter.document.title, search);
|
|
142
141
|
}
|
|
143
142
|
catch (e) {
|
|
144
143
|
}
|
|
@@ -154,7 +153,7 @@ background: ${config.backGroundColor};display: none;z-index: 9999;overflow: hidd
|
|
|
154
153
|
}], () => {
|
|
155
154
|
const search = glitter.setSearchParam(glitter.removeSearchParam(glitter.window.location.search, 'page'), 'page', tag);
|
|
156
155
|
try {
|
|
157
|
-
|
|
156
|
+
window.history.replaceState({}, glitter.document.title, search);
|
|
158
157
|
}
|
|
159
158
|
catch (e) {
|
|
160
159
|
}
|
|
@@ -263,7 +262,7 @@ background: transparent;background: ${config.backGroundColor};display: none;posi
|
|
|
263
262
|
});
|
|
264
263
|
if (module) {
|
|
265
264
|
const search = glitter.setSearchParam(glitter.removeSearchParam(glitter.window.location.search, 'page'), 'page', tag);
|
|
266
|
-
|
|
265
|
+
window.history.replaceState({}, glitter.document.title, search);
|
|
267
266
|
glitter.pageConfig.push(config);
|
|
268
267
|
glitter.setUrlParameter('page', tag);
|
|
269
268
|
module.create(glitter);
|
|
@@ -275,7 +274,7 @@ background: transparent;background: ${config.backGroundColor};display: none;posi
|
|
|
275
274
|
id: config.id
|
|
276
275
|
}], () => {
|
|
277
276
|
const search = glitter.setSearchParam(glitter.removeSearchParam(glitter.window.location.search, 'page'), 'page', tag);
|
|
278
|
-
|
|
277
|
+
window.history.replaceState({}, glitter.document.title, search);
|
|
279
278
|
glitter.pageConfig.push(config);
|
|
280
279
|
}, () => {
|
|
281
280
|
console.log('can\'t find script src:' + url);
|