ts-glitter 13.8.757 → 13.8.758

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 CHANGED
@@ -68,7 +68,7 @@ export class Entry {
68
68
  }
69
69
  window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
70
70
  console.log(`Entry-time:`, window.renderClock.stop());
71
- glitter.share.editerVersion = 'V_13.8.757';
71
+ glitter.share.editerVersion = 'V_13.8.758';
72
72
  glitter.share.start = new Date();
73
73
  const vm = {
74
74
  appConfig: [],
package/lowcode/Entry.ts CHANGED
@@ -68,7 +68,7 @@ export class Entry {
68
68
  }
69
69
  (window as any).renderClock = (window as any).renderClock ?? clockF();
70
70
  console.log(`Entry-time:`, (window as any).renderClock.stop());
71
- glitter.share.editerVersion = 'V_13.8.757';
71
+ glitter.share.editerVersion = 'V_13.8.758';
72
72
  glitter.share.start = new Date();
73
73
  const vm: {
74
74
  appConfig: any;
@@ -577,23 +577,24 @@ cursor: pointer;
577
577
  </div>
578
578
  <div class="dropdown-menu position-absolute"
579
579
  style="top:50px; right: 0;">
580
- ${(() => {
581
- const view = member_auth.filter((dd) => {
582
- return dd.config.member_id !== POSSetting.config.who;
583
- }).map((dd) => {
584
- const memberDD = dd;
585
- return `
580
+ ${[
581
+ ...(() => {
582
+ const view = member_auth.filter((dd) => {
583
+ return dd.config.member_id !== POSSetting.config.who;
584
+ }).map((dd) => {
585
+ const memberDD = dd;
586
+ return `
586
587
  <a class="dropdown-item cursor_pointer d-flex flex-column" onclick="${gvc.event(() => {
587
- gvc.glitter.innerDialog((gvc) => {
588
- const c_vm = {
589
- text: '',
590
- id: gvc.glitter.getUUID()
591
- };
592
- return gvc.bindView(() => {
593
- return {
594
- bind: c_vm.id,
595
- view: () => {
596
- return `<div style="flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 42px; display: inline-flex">
588
+ gvc.glitter.innerDialog((gvc) => {
589
+ const c_vm = {
590
+ text: '',
591
+ id: gvc.glitter.getUUID()
592
+ };
593
+ return gvc.bindView(() => {
594
+ return {
595
+ bind: c_vm.id,
596
+ view: () => {
597
+ return `<div style="flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 42px; display: inline-flex">
597
598
  <div style="align-self: stretch; height: 100px; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 18px; display: flex">
598
599
  <div style="align-self: stretch; justify-content: center; align-items: flex-start; gap: 16px; display: inline-flex">
599
600
  <div style="text-align: center"><span style="color: #FFB400; font-size: 42px; font-family: Lilita One; font-weight: 400; word-wrap: break-word">SHOPNE</span><span style="color: #FFB400; font-size: 42px; font-family: Lilita One; font-weight: 400; letter-spacing: 2.52px; word-wrap: break-word">X</span></div>
@@ -603,123 +604,123 @@ cursor: pointer;
603
604
  </div>
604
605
  <div style="align-self: stretch; justify-content: center; align-items: center; gap: 20px; display: inline-flex">
605
606
  ${(() => {
606
- let view = [];
607
- for (let a = 0; a < 6; a++) {
608
- if (c_vm.text.length > a) {
609
- view.push(`<div style="width: 18px; height: 18px; position: relative; background: #FFB400; border-radius: 30px"></div>`);
610
- }
611
- else {
612
- view.push(` <div style="width: 18px; height: 18px; position: relative; background: #B0B0B0; border-radius: 30px"></div>`);
607
+ let view = [];
608
+ for (let a = 0; a < 6; a++) {
609
+ if (c_vm.text.length > a) {
610
+ view.push(`<div style="width: 18px; height: 18px; position: relative; background: #FFB400; border-radius: 30px"></div>`);
611
+ }
612
+ else {
613
+ view.push(` <div style="width: 18px; height: 18px; position: relative; background: #B0B0B0; border-radius: 30px"></div>`);
614
+ }
613
615
  }
614
- }
615
- return view.join('');
616
- })()}
616
+ return view.join('');
617
+ })()}
617
618
  </div>
618
619
  <div style="background: white; flex-direction: column; justify-content: flex-start; align-items: center; gap: 32px; display: flex">
619
620
  <div style="align-self: stretch; border-radius: 10px; flex-direction: column; justify-content: flex-start; align-items: center; display: flex;border: 1px solid #DDD;">
620
621
  ${[[1, 2, 3], [4, 5, 6], [7, 8, 9], ['取消', 0, '<i class="fa-regular fa-delete-left"></i>']].map((dd) => {
621
- return ` <div style="justify-content: flex-start; align-items: center; display: inline-flex">
622
+ return ` <div style="justify-content: flex-start; align-items: center; display: inline-flex">
622
623
  ${dd.map((dd) => {
623
- return `<div style="height:56px;width:95px;flex-direction: column; justify-content: center; align-items: center; gap: 10px; display: inline-flex">
624
+ return `<div style="height:56px;width:95px;flex-direction: column; justify-content: center; align-items: center; gap: 10px; display: inline-flex">
624
625
  <div style="align-self: stretch; text-align: center; color: #393939; font-size: 20px; font-weight: 700; line-height: 28px; word-wrap: break-word" onclick="${gvc.event(() => {
625
- if (dd === '取消') {
626
- gvc.closeDialog();
627
- return;
628
- }
629
- else if (`${dd}`.includes(`fa-regular`)) {
630
- c_vm.text = c_vm.text.substring(0, c_vm.text.length - 1);
631
- gvc.notifyDataChange(c_vm.id);
632
- return;
633
- }
634
- c_vm.text += dd;
635
- const dialog = new ShareDialog(gvc.glitter);
636
- if (c_vm.text.length === 6) {
637
- if (memberDD.config.pin === c_vm.text) {
638
- POSSetting.config.who = memberDD.config.member_id;
626
+ if (dd === '取消') {
639
627
  gvc.closeDialog();
640
- refreshUserBar();
628
+ return;
641
629
  }
642
- else {
643
- dialog.errorMessage({ text: '輸入錯誤' });
644
- c_vm.text = '';
630
+ else if (`${dd}`.includes(`fa-regular`)) {
631
+ c_vm.text = c_vm.text.substring(0, c_vm.text.length - 1);
632
+ gvc.notifyDataChange(c_vm.id);
633
+ return;
645
634
  }
646
- }
647
- gvc.notifyDataChange(c_vm.id);
648
- })}">${dd}</div>
635
+ c_vm.text += dd;
636
+ const dialog = new ShareDialog(gvc.glitter);
637
+ if (c_vm.text.length === 6) {
638
+ if (memberDD.config.pin === c_vm.text) {
639
+ POSSetting.config.who = memberDD.config.member_id;
640
+ gvc.closeDialog();
641
+ refreshUserBar();
642
+ }
643
+ else {
644
+ dialog.errorMessage({ text: '輸入錯誤' });
645
+ c_vm.text = '';
646
+ }
647
+ }
648
+ gvc.notifyDataChange(c_vm.id);
649
+ })}">${dd}</div>
649
650
  </div>`;
650
- }).join('<div class="" style="border-right: 1px #DDDDDD solid;height:56px;"></div>')}
651
+ }).join('<div class="" style="border-right: 1px #DDDDDD solid;height:56px;"></div>')}
651
652
  </div>`;
652
- }).join('<div class="" style="border-top: 1px #DDDDDD solid;height:1px; width: 100%;"></div>')}
653
+ }).join('<div class="" style="border-top: 1px #DDDDDD solid;height:1px; width: 100%;"></div>')}
653
654
 
654
655
  </div>
655
656
  </div>
656
657
  </div>`;
657
- },
658
- divCreate: {
659
- class: ``,
660
- style: `width: 338px; padding-left: 20px; padding-right: 20px; padding-top: 25px; padding-bottom: 25px; background: white; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15); border-radius: 20px; overflow: hidden; justify-content: center; align-items: center; gap: 10px; display: inline-flex`
661
- }
662
- };
663
- });
664
- }, '');
665
- })}">
658
+ },
659
+ divCreate: {
660
+ class: ``,
661
+ style: `width: 338px; padding-left: 20px; padding-right: 20px; padding-top: 25px; padding-bottom: 25px; background: white; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15); border-radius: 20px; overflow: hidden; justify-content: center; align-items: center; gap: 10px; display: inline-flex`
662
+ }
663
+ };
664
+ });
665
+ }, '');
666
+ })}">
666
667
  ${dd.config.title} / ${dd.config.name} / ${dd.config.member_id}
667
668
  </a>
668
669
  `;
669
- });
670
- if (POSSetting.config.who !== 'manager') {
671
- view.push(html `<a
670
+ });
671
+ if (POSSetting.config.who !== 'manager') {
672
+ view.push(html `<a
672
673
  class="dropdown-item cursor_pointer d-flex flex-column ${POSSetting.config.who === 'manager' ? `d-none` : ``}"
673
674
  onclick="${gvc.event(() => {
674
- gvc.glitter.innerDialog((gvc) => {
675
- return POSSetting.loginManager(gvc, 'switch', () => {
676
- refreshUserBar();
677
- gvc.closeDialog();
678
- });
679
- }, '');
680
- })}">
675
+ gvc.glitter.innerDialog((gvc) => {
676
+ return POSSetting.loginManager(gvc, 'switch', () => {
677
+ refreshUserBar();
678
+ gvc.closeDialog();
679
+ });
680
+ }, '');
681
+ })}">
681
682
  切換至管理員
682
683
  </a>`);
683
- }
684
- return view;
685
- })().join('<div class="dropdown-divider"></div>')}
686
- <div class="dropdown-divider"></div>
687
- ${[
688
- ...((PayConfig.deviceType === 'pos') ? [
689
- html `
684
+ }
685
+ return view;
686
+ })(),
687
+ ...[
688
+ ...((PayConfig.deviceType === 'pos') ? [
689
+ html `
690
690
  <a class="dropdown-item cursor_pointer d-flex align-items-center"
691
691
  style="gap:10px;"
692
692
  onclick="${gvc.event(() => {
693
- ConnectionMode.main(gvc);
694
- })}"><i class="fa-solid fa-plug d-flex align-items-center justify-content-center" style="width:20px;" ></i>連線模式</a>`,
695
- ] : []),
696
- ...((ConnectionMode.on_connected_device) ? [
697
- `<a class="dropdown-item cursor_pointer d-flex align-items-center"
693
+ ConnectionMode.main(gvc);
694
+ })}"><i class="fa-solid fa-plug d-flex align-items-center justify-content-center" style="width:20px;" ></i>連線模式</a>`,
695
+ ] : []),
696
+ ...((ConnectionMode.on_connected_device) ? [
697
+ `<a class="dropdown-item cursor_pointer d-flex align-items-center"
698
698
  style="gap:10px;"
699
699
  onclick="${gvc.event(() => {
700
- const dialog = new ShareDialog(gvc.glitter);
701
- dialog.checkYesOrNot({
702
- text: '是否斷開與 IMIN 裝置的連線?',
703
- callback: (response) => {
704
- if (response) {
705
- dialog.infoMessage({ text: '已斷開連線' });
706
- ConnectionMode.last_connect_id = '';
707
- ConnectionMode.on_connected_device = '';
708
- ConnectionMode.socket.close();
700
+ const dialog = new ShareDialog(gvc.glitter);
701
+ dialog.checkYesOrNot({
702
+ text: '是否斷開與 IMIN 裝置的連線?',
703
+ callback: (response) => {
704
+ if (response) {
705
+ dialog.infoMessage({ text: '已斷開連線' });
706
+ ConnectionMode.last_connect_id = '';
707
+ ConnectionMode.on_connected_device = '';
708
+ ConnectionMode.socket.close();
709
+ }
709
710
  }
710
- }
711
- });
712
- })}"><i class="fa-solid fa-power-off d-flex align-items-center justify-content-center" style="width:20px;"></i>斷開裝置連線</a>`
713
- ] : [])
714
- ].concat(PayConfig.deviceType === 'pos' ? [] : ConnectionMode.device_list.map((dd) => {
715
- return html `<a
711
+ });
712
+ })}"><i class="fa-solid fa-power-off d-flex align-items-center justify-content-center" style="width:20px;"></i>斷開裝置連線</a>`
713
+ ] : [])
714
+ ].concat(PayConfig.deviceType === 'pos' ? [] : ConnectionMode.device_list.map((dd) => {
715
+ return html `<a
716
716
  class="dropdown-item cursor_pointer d-flex align-items-center"
717
717
  style="gap:10px;"
718
718
  onclick="${gvc.event(() => {
719
- ConnectionMode.connect(dd);
720
- })}"><i
719
+ ConnectionMode.connect(dd);
720
+ })}"><i
721
721
  class="fa-solid fa-plug d-flex align-items-center justify-content-center" style="width:20px;"></i>連線至『 ${dd} 』</a>`;
722
- })).join(' <div class="dropdown-divider"></div>')}
722
+ }))
723
+ ].join('<div class="dropdown-divider"></div>')}
723
724
  ${(POSSetting.config.who === 'manager') ? html `
724
725
  <div class="dropdown-divider"></div>
725
726
  <a class="dropdown-item cursor_pointer d-flex align-items-center"
@@ -634,23 +634,24 @@ cursor: pointer;
634
634
  </div>
635
635
  <div class="dropdown-menu position-absolute"
636
636
  style="top:50px; right: 0;">
637
- ${(() => {
638
- const view = member_auth.filter((dd: any) => {
639
- return dd.config.member_id !== POSSetting.config.who
640
- }).map((dd: any) => {
641
- const memberDD = dd
642
- return `
637
+ ${[
638
+ ...(() => {
639
+ const view = member_auth.filter((dd: any) => {
640
+ return dd.config.member_id !== POSSetting.config.who
641
+ }).map((dd: any) => {
642
+ const memberDD = dd
643
+ return `
643
644
  <a class="dropdown-item cursor_pointer d-flex flex-column" onclick="${gvc.event(() => {
644
- gvc.glitter.innerDialog((gvc) => {
645
- const c_vm = {
646
- text: '',
647
- id: gvc.glitter.getUUID()
648
- }
649
- return gvc.bindView(() => {
650
- return {
651
- bind: c_vm.id,
652
- view: () => {
653
- return `<div style="flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 42px; display: inline-flex">
645
+ gvc.glitter.innerDialog((gvc) => {
646
+ const c_vm = {
647
+ text: '',
648
+ id: gvc.glitter.getUUID()
649
+ }
650
+ return gvc.bindView(() => {
651
+ return {
652
+ bind: c_vm.id,
653
+ view: () => {
654
+ return `<div style="flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 42px; display: inline-flex">
654
655
  <div style="align-self: stretch; height: 100px; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 18px; display: flex">
655
656
  <div style="align-self: stretch; justify-content: center; align-items: flex-start; gap: 16px; display: inline-flex">
656
657
  <div style="text-align: center"><span style="color: #FFB400; font-size: 42px; font-family: Lilita One; font-weight: 400; word-wrap: break-word">SHOPNE</span><span style="color: #FFB400; font-size: 42px; font-family: Lilita One; font-weight: 400; letter-spacing: 2.52px; word-wrap: break-word">X</span></div>
@@ -660,73 +661,73 @@ cursor: pointer;
660
661
  </div>
661
662
  <div style="align-self: stretch; justify-content: center; align-items: center; gap: 20px; display: inline-flex">
662
663
  ${(() => {
663
- let view: any = []
664
- for (let a = 0; a < 6; a++) {
665
- if (c_vm.text.length > a) {
666
- view.push(`<div style="width: 18px; height: 18px; position: relative; background: #FFB400; border-radius: 30px"></div>`)
667
- } else {
668
- view.push(` <div style="width: 18px; height: 18px; position: relative; background: #B0B0B0; border-radius: 30px"></div>`)
669
- }
670
- }
671
- return view.join('')
672
- })()}
664
+ let view: any = []
665
+ for (let a = 0; a < 6; a++) {
666
+ if (c_vm.text.length > a) {
667
+ view.push(`<div style="width: 18px; height: 18px; position: relative; background: #FFB400; border-radius: 30px"></div>`)
668
+ } else {
669
+ view.push(` <div style="width: 18px; height: 18px; position: relative; background: #B0B0B0; border-radius: 30px"></div>`)
670
+ }
671
+ }
672
+ return view.join('')
673
+ })()}
673
674
  </div>
674
675
  <div style="background: white; flex-direction: column; justify-content: flex-start; align-items: center; gap: 32px; display: flex">
675
676
  <div style="align-self: stretch; border-radius: 10px; flex-direction: column; justify-content: flex-start; align-items: center; display: flex;border: 1px solid #DDD;">
676
677
  ${[[1, 2, 3], [4, 5, 6], [7, 8, 9], ['取消', 0, '<i class="fa-regular fa-delete-left"></i>']].map((dd) => {
677
678
 
678
- return ` <div style="justify-content: flex-start; align-items: center; display: inline-flex">
679
+ return ` <div style="justify-content: flex-start; align-items: center; display: inline-flex">
679
680
  ${dd.map((dd) => {
680
- return `<div style="height:56px;width:95px;flex-direction: column; justify-content: center; align-items: center; gap: 10px; display: inline-flex">
681
+ return `<div style="height:56px;width:95px;flex-direction: column; justify-content: center; align-items: center; gap: 10px; display: inline-flex">
681
682
  <div style="align-self: stretch; text-align: center; color: #393939; font-size: 20px; font-weight: 700; line-height: 28px; word-wrap: break-word" onclick="${
682
- gvc.event(() => {
683
- if (dd === '取消') {
684
- gvc.closeDialog()
685
- return
686
- } else if (`${dd}`.includes(`fa-regular`)) {
687
- c_vm.text = c_vm.text.substring(0, c_vm.text.length - 1)
688
- gvc.notifyDataChange(c_vm.id)
689
- return
690
- }
691
- c_vm.text += dd
692
- const dialog = new ShareDialog(gvc.glitter)
693
- if (c_vm.text.length === 6) {
694
- if (memberDD.config.pin === c_vm.text) {
695
- POSSetting.config.who = memberDD.config.member_id
696
- gvc.closeDialog()
697
- refreshUserBar()
698
- } else {
699
- dialog.errorMessage({text: '輸入錯誤'})
700
- c_vm.text = ''
701
- }
702
- }
703
- gvc.notifyDataChange(c_vm.id)
704
- })
705
- }">${dd}</div>
683
+ gvc.event(() => {
684
+ if (dd === '取消') {
685
+ gvc.closeDialog()
686
+ return
687
+ } else if (`${dd}`.includes(`fa-regular`)) {
688
+ c_vm.text = c_vm.text.substring(0, c_vm.text.length - 1)
689
+ gvc.notifyDataChange(c_vm.id)
690
+ return
691
+ }
692
+ c_vm.text += dd
693
+ const dialog = new ShareDialog(gvc.glitter)
694
+ if (c_vm.text.length === 6) {
695
+ if (memberDD.config.pin === c_vm.text) {
696
+ POSSetting.config.who = memberDD.config.member_id
697
+ gvc.closeDialog()
698
+ refreshUserBar()
699
+ } else {
700
+ dialog.errorMessage({text: '輸入錯誤'})
701
+ c_vm.text = ''
702
+ }
703
+ }
704
+ gvc.notifyDataChange(c_vm.id)
705
+ })
706
+ }">${dd}</div>
706
707
  </div>`
707
- }).join('<div class="" style="border-right: 1px #DDDDDD solid;height:56px;"></div>')}
708
+ }).join('<div class="" style="border-right: 1px #DDDDDD solid;height:56px;"></div>')}
708
709
  </div>`
709
- }).join('<div class="" style="border-top: 1px #DDDDDD solid;height:1px; width: 100%;"></div>')}
710
+ }).join('<div class="" style="border-top: 1px #DDDDDD solid;height:1px; width: 100%;"></div>')}
710
711
 
711
712
  </div>
712
713
  </div>
713
714
  </div>`
714
715
 
715
- },
716
- divCreate: {
717
- class: ``,
718
- style: `width: 338px; padding-left: 20px; padding-right: 20px; padding-top: 25px; padding-bottom: 25px; background: white; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15); border-radius: 20px; overflow: hidden; justify-content: center; align-items: center; gap: 10px; display: inline-flex`
719
- }
720
- }
721
- })
722
- }, '')
723
- })}">
716
+ },
717
+ divCreate: {
718
+ class: ``,
719
+ style: `width: 338px; padding-left: 20px; padding-right: 20px; padding-top: 25px; padding-bottom: 25px; background: white; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15); border-radius: 20px; overflow: hidden; justify-content: center; align-items: center; gap: 10px; display: inline-flex`
720
+ }
721
+ }
722
+ })
723
+ }, '')
724
+ })}">
724
725
  ${dd.config.title} / ${dd.config.name} / ${dd.config.member_id}
725
726
  </a>
726
727
  `
727
- })
728
- if (POSSetting.config.who !== 'manager') {
729
- view.push(html`<a
728
+ })
729
+ if (POSSetting.config.who !== 'manager') {
730
+ view.push(html`<a
730
731
  class="dropdown-item cursor_pointer d-flex flex-column ${POSSetting.config.who === 'manager' ? `d-none` : ``}"
731
732
  onclick="${gvc.event(() => {
732
733
  gvc.glitter.innerDialog((gvc) => {
@@ -739,47 +740,47 @@ cursor: pointer;
739
740
  })}">
740
741
  切換至管理員
741
742
  </a>`)
742
- }
743
- return view
744
- })().join('<div class="dropdown-divider"></div>')}
745
- <div class="dropdown-divider"></div>
746
- ${[
747
- ...((PayConfig.deviceType==='pos') ? [
748
- html`
743
+ }
744
+ return view
745
+ })(),
746
+ ...[
747
+ ...((PayConfig.deviceType==='pos') ? [
748
+ html`
749
749
  <a class="dropdown-item cursor_pointer d-flex align-items-center"
750
750
  style="gap:10px;"
751
751
  onclick="${gvc.event(() => {
752
- ConnectionMode.main(gvc)
753
- })}"><i class="fa-solid fa-plug d-flex align-items-center justify-content-center" style="width:20px;" ></i>連線模式</a>`,
754
- ]:[]),
755
- ...((ConnectionMode.on_connected_device) ? [
756
- `<a class="dropdown-item cursor_pointer d-flex align-items-center"
752
+ ConnectionMode.main(gvc)
753
+ })}"><i class="fa-solid fa-plug d-flex align-items-center justify-content-center" style="width:20px;" ></i>連線模式</a>`,
754
+ ]:[]),
755
+ ...((ConnectionMode.on_connected_device) ? [
756
+ `<a class="dropdown-item cursor_pointer d-flex align-items-center"
757
757
  style="gap:10px;"
758
758
  onclick="${gvc.event(() => {
759
- const dialog=new ShareDialog(gvc.glitter)
760
- dialog.checkYesOrNot({
761
- text:'是否斷開與 IMIN 裝置的連線?',
762
- callback:(response)=>{
763
- if(response){
764
- dialog.infoMessage({text:'已斷開連線'})
765
- ConnectionMode.last_connect_id='';
766
- ConnectionMode.on_connected_device=''
767
- ConnectionMode.socket.close()
768
- }
769
- }
770
- })
771
-
772
- })}"><i class="fa-solid fa-power-off d-flex align-items-center justify-content-center" style="width:20px;"></i>斷開裝置連線</a>`
773
- ]:[])
774
- ].concat(PayConfig.deviceType==='pos' ? []:ConnectionMode.device_list.map((dd) => {
775
- return html`<a
759
+ const dialog=new ShareDialog(gvc.glitter)
760
+ dialog.checkYesOrNot({
761
+ text:'是否斷開與 IMIN 裝置的連線?',
762
+ callback:(response)=>{
763
+ if(response){
764
+ dialog.infoMessage({text:'已斷開連線'})
765
+ ConnectionMode.last_connect_id='';
766
+ ConnectionMode.on_connected_device=''
767
+ ConnectionMode.socket.close()
768
+ }
769
+ }
770
+ })
771
+
772
+ })}"><i class="fa-solid fa-power-off d-flex align-items-center justify-content-center" style="width:20px;"></i>斷開裝置連線</a>`
773
+ ]:[])
774
+ ].concat(PayConfig.deviceType==='pos' ? []:ConnectionMode.device_list.map((dd) => {
775
+ return html`<a
776
776
  class="dropdown-item cursor_pointer d-flex align-items-center"
777
777
  style="gap:10px;"
778
778
  onclick="${gvc.event(() => {
779
779
  ConnectionMode.connect(dd)
780
780
  })}"><i
781
781
  class="fa-solid fa-plug d-flex align-items-center justify-content-center" style="width:20px;"></i>連線至『 ${dd} 』</a>`
782
- })).join(' <div class="dropdown-divider"></div>')}
782
+ }))
783
+ ].join('<div class="dropdown-divider"></div>')}
783
784
  ${(POSSetting.config.who === 'manager') ? html`
784
785
  <div class="dropdown-divider"></div>
785
786
  <a class="dropdown-item cursor_pointer d-flex align-items-center"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "13.8.757",
3
+ "version": "13.8.758",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {