ts-glitter 18.4.0 → 18.4.2
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/lowcode/Entry.js +14 -3
- package/lowcode/Entry.ts +18 -3
- package/lowcode/backend-manager/bg-widget.js +1223 -927
- package/lowcode/backend-manager/bg-widget.ts +2365 -1972
- package/lowcode/cms-plugin/pos-pages/imin-module.js +402 -15
- package/lowcode/cms-plugin/pos-pages/imin-module.ts +519 -101
- package/lowcode/cms-plugin/pos-pages/pay-config.js +1 -1
- package/lowcode/cms-plugin/pos-pages/pay-config.ts +6 -5
- package/lowcode/cms-plugin/shopping-order-manager.js +1169 -1073
- package/lowcode/cms-plugin/shopping-order-manager.ts +3198 -3098
- package/lowcode/cms-plugin/shopping-product-setting.js +500 -462
- package/lowcode/cms-plugin/shopping-product-setting.ts +1644 -1590
- package/lowcode/public-components/user-manager/um-class.js +79 -52
- package/lowcode/public-components/user-manager/um-class.ts +127 -86
- package/package.json +1 -1
package/lowcode/Entry.js
CHANGED
|
@@ -131,7 +131,7 @@ export class Entry {
|
|
|
131
131
|
}
|
|
132
132
|
window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : createClock();
|
|
133
133
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
134
|
-
glitter.share.editerVersion = 'V_18.4.
|
|
134
|
+
glitter.share.editerVersion = 'V_18.4.2';
|
|
135
135
|
glitter.share.start = new Date();
|
|
136
136
|
const vm = { appConfig: [] };
|
|
137
137
|
window.saasConfig = {
|
|
@@ -582,8 +582,10 @@ export class Entry {
|
|
|
582
582
|
static resourceInitial(glitter, vm, callback) {
|
|
583
583
|
glitter.share.PayConfig = PayConfig;
|
|
584
584
|
glitter.runJsInterFace('pos-device', {}, res => {
|
|
585
|
-
|
|
586
|
-
|
|
585
|
+
console.log(`res.deviceType=>`, res.deviceType);
|
|
586
|
+
PayConfig.deviceType = (['SUNMI', 'neostra'].includes(res.deviceType)) ? 'pos' : 'web';
|
|
587
|
+
PayConfig.posType = res.deviceType;
|
|
588
|
+
if (res.deviceType === 'neostra') {
|
|
587
589
|
const script = document.createElement('script');
|
|
588
590
|
script.type = 'text/javascript';
|
|
589
591
|
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/mui/3.7.1/js/mui.min.js';
|
|
@@ -595,6 +597,7 @@ export class Entry {
|
|
|
595
597
|
glitter.addMtScript([
|
|
596
598
|
'https://oss-sg.imin.sg/web/iMinPartner/js/imin-printer.min.js',
|
|
597
599
|
'https://cdn.jsdelivr.net/npm/jsbarcode@3.11.5/dist/JsBarcode.all.min.js',
|
|
600
|
+
glitter.root_path + 'jslib/qrcode.min.js',
|
|
598
601
|
], () => {
|
|
599
602
|
}, () => {
|
|
600
603
|
});
|
|
@@ -603,6 +606,14 @@ export class Entry {
|
|
|
603
606
|
window.IminPrintInstance.connect();
|
|
604
607
|
}, 3000);
|
|
605
608
|
}
|
|
609
|
+
if (res.deviceType === 'SUNMI') {
|
|
610
|
+
glitter.addMtScript([
|
|
611
|
+
'https://cdn.jsdelivr.net/npm/jsbarcode@3.11.5/dist/JsBarcode.all.min.js',
|
|
612
|
+
glitter.root_path + 'jslib/qrcode.min.js',
|
|
613
|
+
], () => {
|
|
614
|
+
}, () => {
|
|
615
|
+
});
|
|
616
|
+
}
|
|
606
617
|
});
|
|
607
618
|
glitter.runJsInterFace('getTopInset', {}, (response) => {
|
|
608
619
|
glitter.share.top_inset = response.data;
|
package/lowcode/Entry.ts
CHANGED
|
@@ -131,7 +131,7 @@ export class Entry {
|
|
|
131
131
|
}
|
|
132
132
|
(window as any).renderClock = (window as any).renderClock ?? createClock();
|
|
133
133
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
134
|
-
glitter.share.editerVersion = 'V_18.4.
|
|
134
|
+
glitter.share.editerVersion = 'V_18.4.2';
|
|
135
135
|
glitter.share.start = new Date();
|
|
136
136
|
const vm = { appConfig: [] };
|
|
137
137
|
(window as any).saasConfig = {
|
|
@@ -645,9 +645,11 @@ export class Entry {
|
|
|
645
645
|
glitter.share.PayConfig = PayConfig;
|
|
646
646
|
//判斷是否為POS裝置的Initial
|
|
647
647
|
glitter.runJsInterFace('pos-device', {}, res => {
|
|
648
|
-
|
|
648
|
+
console.log(`res.deviceType=>`, res.deviceType);
|
|
649
|
+
PayConfig.deviceType = (['SUNMI', 'neostra'].includes(res.deviceType)) ? 'pos' : 'web';
|
|
650
|
+
PayConfig.posType = res.deviceType;
|
|
649
651
|
//POS機台啟用列印功能
|
|
650
|
-
if (
|
|
652
|
+
if (res.deviceType === 'neostra') {
|
|
651
653
|
const script = document.createElement('script');
|
|
652
654
|
script.type = 'text/javascript';
|
|
653
655
|
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/mui/3.7.1/js/mui.min.js';
|
|
@@ -661,6 +663,7 @@ export class Entry {
|
|
|
661
663
|
[
|
|
662
664
|
'https://oss-sg.imin.sg/web/iMinPartner/js/imin-printer.min.js',
|
|
663
665
|
'https://cdn.jsdelivr.net/npm/jsbarcode@3.11.5/dist/JsBarcode.all.min.js',
|
|
666
|
+
glitter.root_path + 'jslib/qrcode.min.js',
|
|
664
667
|
],
|
|
665
668
|
() => {
|
|
666
669
|
},
|
|
@@ -674,6 +677,18 @@ export class Entry {
|
|
|
674
677
|
window.IminPrintInstance.connect();
|
|
675
678
|
}, 3000);
|
|
676
679
|
}
|
|
680
|
+
if (res.deviceType === 'SUNMI') {
|
|
681
|
+
glitter.addMtScript(
|
|
682
|
+
[
|
|
683
|
+
'https://cdn.jsdelivr.net/npm/jsbarcode@3.11.5/dist/JsBarcode.all.min.js',
|
|
684
|
+
glitter.root_path + 'jslib/qrcode.min.js',
|
|
685
|
+
],
|
|
686
|
+
() => {
|
|
687
|
+
},
|
|
688
|
+
() => {
|
|
689
|
+
},
|
|
690
|
+
);
|
|
691
|
+
}
|
|
677
692
|
});
|
|
678
693
|
//取得APP的上間隔距離
|
|
679
694
|
glitter.runJsInterFace(
|