ts-glitter 13.8.7999 → 13.9.0
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 +5 -6
- package/lowcode/backend-manager/bg-guide.ts +0 -1
- package/lowcode/backend-manager/bg-mobile-guide.js +122 -0
- package/lowcode/backend-manager/bg-mobile-guide.ts +149 -0
- package/lowcode/backend-manager/bg-widget.js +888 -928
- package/lowcode/backend-manager/bg-widget.ts +1734 -1847
- package/lowcode/cms-plugin/POS-setting.js +1 -0
- package/lowcode/cms-plugin/POS-setting.ts +1 -0
- package/lowcode/cms-plugin/filter-options.js +39 -0
- package/lowcode/cms-plugin/filter-options.ts +40 -0
- package/lowcode/cms-plugin/member-setting.js +11 -0
- package/lowcode/cms-plugin/member-setting.ts +11 -11
- package/lowcode/cms-plugin/permission-setting.ts +2 -0
- package/lowcode/cms-plugin/pos-pages/products-page.js +18 -9
- package/lowcode/cms-plugin/pos-pages/products-page.ts +84 -76
- 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-discount-setting.js +32 -29
- package/lowcode/cms-plugin/shopping-discount-setting.ts +42 -39
- package/lowcode/cms-plugin/shopping-finance-setting.js +150 -193
- package/lowcode/cms-plugin/shopping-finance-setting.ts +779 -834
- 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 +10 -2
- package/lowcode/cms-plugin/shopping-order-manager.ts +14 -5
- package/lowcode/cms-plugin/shopping-product-setting.js +364 -158
- package/lowcode/cms-plugin/shopping-product-setting.ts +484 -205
- package/lowcode/cms-plugin/shopping-product-text.js +573 -405
- package/lowcode/cms-plugin/shopping-product-text.ts +735 -631
- package/lowcode/cms-plugin/shopping-rebate-setting.js +375 -360
- package/lowcode/cms-plugin/shopping-rebate-setting.ts +405 -388
- package/lowcode/css/editor.css +1 -1
- package/lowcode/glitter-base/route/shopping.js +97 -3
- package/lowcode/glitter-base/route/shopping.ts +109 -4
- package/lowcode/glitter-base/route/user.js +7 -0
- package/lowcode/glitter-base/route/user.ts +6 -0
- package/lowcode/glitterBundle/Glitter.js +12 -3
- package/lowcode/glitterBundle/Glitter.ts +12 -3
- package/lowcode/glitterBundle/GlitterInitial.js +22 -0
- package/lowcode/glitterBundle/GlitterInitial.ts +22 -0
- package/lowcode/glitterBundle/html-component/widget.js +1 -9
- package/lowcode/glitterBundle/html-component/widget.ts +1 -12
- package/lowcode/glitterBundle/plugins/editor-elem.js +223 -126
- package/lowcode/glitterBundle/plugins/editor-elem.ts +280 -155
- package/lowcode/jspage/function-page/main_editor.js +4 -4
- package/lowcode/jspage/function-page/main_editor.ts +4 -4
- package/lowcode/jspage/function-page/setting_editor.js +147 -84
- package/lowcode/jspage/function-page/setting_editor.ts +251 -199
- package/lowcode/jspage/main.js +27 -6
- package/lowcode/jspage/main.ts +30 -7
- package/lowcode/landing-page/about-src/team_work_2.png +0 -0
- package/lowcode/landing-page/about-src/team_work_3.png +0 -0
- package/lowcode/landing-page/about-us.js +2 -2
- package/lowcode/landing-page/about-us.ts +2 -2
- package/lowcode/modules/image-library-clone.js +1049 -0
- package/lowcode/modules/image-library-clone.ts +1187 -0
- package/lowcode/modules/image-library.js +508 -384
- package/lowcode/modules/image-library.ts +924 -749
- package/lowcode/public-components/checkout/index.js +2069 -2
- package/lowcode/public-components/checkout/index.ts +2291 -6
- package/lowcode/public-components/checkout/index_.js +1151 -0
- package/lowcode/public-components/checkout/index_.ts +1263 -0
- package/lowcode/public-components/footer/footer-01.js +95 -62
- package/lowcode/public-components/footer/footer-01.ts +136 -95
- package/lowcode/public-components/footer/footer-02.js +65 -24
- package/lowcode/public-components/footer/footer-02.ts +79 -27
- package/lowcode/public-components/footer/footer-03.js +66 -25
- package/lowcode/public-components/footer/footer-03.ts +80 -27
- package/lowcode/public-components/product/pd-card-01.js +14 -5
- package/lowcode/public-components/product/pd-card-01.ts +24 -15
- package/lowcode/public-components/product/pd-card-02.js +15 -5
- package/lowcode/public-components/product/pd-card-02.ts +25 -15
- package/lowcode/public-components/product/pd-card-03.js +15 -5
- package/lowcode/public-components/product/pd-card-03.ts +25 -15
- package/lowcode/public-components/product/product-detail.js +165 -68
- package/lowcode/public-components/product/product-detail.ts +227 -132
- package/lowcode/public-components/product/product-list.js +0 -1
- package/lowcode/public-components/product/product-list.ts +0 -1
- package/lowcode/public-components/user-manager/um-class.js +86 -79
- package/lowcode/public-components/user-manager/um-class.ts +164 -165
- package/lowcode/public-components/user-manager/um-info.js +38 -32
- package/lowcode/public-components/user-manager/um-info.ts +60 -52
- package/lowcode/public-components/user-manager/um-voucher.js +37 -32
- package/lowcode/public-components/user-manager/um-voucher.ts +61 -56
- package/lowcode/view-model/saas-view-model.js +89 -2
- package/lowcode/view-model/saas-view-model.ts +90 -2
- package/package.json +1 -1
- package/src/api-public/controllers/index.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/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/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/auto-send-email.js.map +1 -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/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/shopping.d.ts +25 -1
- package/src/api-public/services/shopping.js +109 -16
- package/src/api-public/services/shopping.js.map +5 -1
- package/src/api-public/services/shopping.ts +253 -112
- package/src/api-public/services/user.js +1 -1
- package/src/api-public/services/user.js.map +1 -1
- package/src/api-public/services/user.ts +1 -1
- package/src/helper/glitter-util.d.ts +0 -1
- package/src/helper/glitter-util.js.map +1 -1
- package/src/index.js +126 -57
- package/src/index.js.map +1 -1
- package/src/index.ts +267 -179
- package/src/services/app.js +26 -9
- package/src/services/app.js.map +1 -1
- package/src/services/app.ts +84 -66
- package/src/update-script.js.map +1 -1
- 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);
|