ts-glitter 21.5.9 → 21.6.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.
Files changed (204) hide show
  1. package/lib/glitterBundle/html-component/editor.ts +5 -5
  2. package/lib/glitterBundle/html-component/widget.ts +1 -1
  3. package/lib/glitterBundle/plugins/add_item_dia.ts +3 -3
  4. package/lib/glitterBundle/plugins/dialog-style-editor.ts +4 -4
  5. package/lib/glitterBundle/plugins/editor-elem.ts +8 -8
  6. package/lib/glitterBundle/plugins/editor.ts +3 -3
  7. package/lowcode/Entry.js +1 -1
  8. package/lowcode/Entry.ts +1 -1
  9. package/lowcode/backend-manager/bg-customer-message.js +4 -4
  10. package/lowcode/backend-manager/bg-customer-message.ts +4 -4
  11. package/lowcode/backend-manager/bg-global-event.js +1 -1
  12. package/lowcode/backend-manager/bg-global-event.ts +1 -1
  13. package/lowcode/backend-manager/bg-guide.js +21 -21
  14. package/lowcode/backend-manager/bg-guide.ts +22 -22
  15. package/lowcode/backend-manager/bg-mobile-guide.js +4 -4
  16. package/lowcode/backend-manager/bg-mobile-guide.ts +4 -4
  17. package/lowcode/backend-manager/bg-seo.js +1 -1
  18. package/lowcode/backend-manager/bg-seo.ts +1 -1
  19. package/lowcode/backend-manager/bg-shopping.js +6 -6
  20. package/lowcode/backend-manager/bg-shopping.ts +6 -6
  21. package/lowcode/backend-manager/bg-wallet.js +3 -3
  22. package/lowcode/backend-manager/bg-wallet.ts +3 -3
  23. package/lowcode/backend-manager/bg-widget.js +6 -0
  24. package/lowcode/backend-manager/bg-widget.ts +7 -0
  25. package/lowcode/cms-plugin/POS-setting.js +1 -1
  26. package/lowcode/cms-plugin/POS-setting.ts +1 -1
  27. package/lowcode/cms-plugin/ai-generator/member-ai.js +2 -2
  28. package/lowcode/cms-plugin/ai-generator/member-ai.ts +2 -2
  29. package/lowcode/cms-plugin/ai-generator/product-ai.js +2 -2
  30. package/lowcode/cms-plugin/ai-generator/product-ai.ts +2 -2
  31. package/lowcode/cms-plugin/ai-message.js +2 -2
  32. package/lowcode/cms-plugin/ai-message.ts +2 -2
  33. package/lowcode/cms-plugin/ai-points-list.js +2 -2
  34. package/lowcode/cms-plugin/ai-points-list.ts +2 -2
  35. package/lowcode/cms-plugin/app-design.js +3 -3
  36. package/lowcode/cms-plugin/app-design.ts +3 -3
  37. package/lowcode/cms-plugin/app-release.js +2 -2
  38. package/lowcode/cms-plugin/app-release.ts +2 -2
  39. package/lowcode/cms-plugin/customer-message-user.js +5 -5
  40. package/lowcode/cms-plugin/customer-message-user.ts +5 -5
  41. package/lowcode/cms-plugin/data-analyze-module.js +3 -3
  42. package/lowcode/cms-plugin/data-analyze-module.ts +3 -3
  43. package/lowcode/cms-plugin/domain-setting.js +2 -2
  44. package/lowcode/cms-plugin/domain-setting.ts +2 -2
  45. package/lowcode/cms-plugin/live_capture.js +17 -17
  46. package/lowcode/cms-plugin/live_capture.ts +17 -17
  47. package/lowcode/cms-plugin/member-type-list.js +4 -4
  48. package/lowcode/cms-plugin/member-type-list.ts +4 -4
  49. package/lowcode/cms-plugin/module/form-module.js +1 -1
  50. package/lowcode/cms-plugin/module/form-module.ts +1 -1
  51. package/lowcode/cms-plugin/permission-setting.js +5 -5
  52. package/lowcode/cms-plugin/permission-setting.ts +5 -5
  53. package/lowcode/cms-plugin/pos-basic-setting.js +1 -1
  54. package/lowcode/cms-plugin/pos-basic-setting.ts +2 -2
  55. package/lowcode/cms-plugin/pos-checkout-setting.js +3 -3
  56. package/lowcode/cms-plugin/pos-checkout-setting.ts +4 -4
  57. package/lowcode/cms-plugin/pos-pages/payment-page.js +449 -232
  58. package/lowcode/cms-plugin/pos-pages/payment-page.ts +501 -278
  59. package/lowcode/cms-plugin/pos-pages/pos-function.js +3 -2
  60. package/lowcode/cms-plugin/pos-pages/pos-function.ts +4 -3
  61. package/lowcode/cms-plugin/pos-pages/pos-home-page.js +9 -9
  62. package/lowcode/cms-plugin/pos-pages/pos-home-page.ts +9 -9
  63. package/lowcode/cms-plugin/pos-pages/pos-summary.js +2 -2
  64. package/lowcode/cms-plugin/pos-pages/pos-summary.ts +2 -2
  65. package/lowcode/cms-plugin/pos-pages/products-page.js +6 -180
  66. package/lowcode/cms-plugin/pos-pages/products-page.ts +6 -185
  67. package/lowcode/cms-plugin/product-service.js +4 -4
  68. package/lowcode/cms-plugin/product-service.ts +4 -5
  69. package/lowcode/cms-plugin/reconciliation-area.js +24 -24
  70. package/lowcode/cms-plugin/reconciliation-area.ts +24 -24
  71. package/lowcode/cms-plugin/seo-blog.js +2 -2
  72. package/lowcode/cms-plugin/seo-blog.ts +2 -2
  73. package/lowcode/cms-plugin/seo-setting-v2.js +5 -5
  74. package/lowcode/cms-plugin/seo-setting-v2.ts +5 -5
  75. package/lowcode/cms-plugin/shopping-allowance-manager.js +4 -4
  76. package/lowcode/cms-plugin/shopping-allowance-manager.ts +4 -4
  77. package/lowcode/cms-plugin/shopping-collections.js +6 -6
  78. package/lowcode/cms-plugin/shopping-collections.ts +6 -6
  79. package/lowcode/cms-plugin/shopping-invoice-manager.js +11 -11
  80. package/lowcode/cms-plugin/shopping-invoice-manager.ts +11 -11
  81. package/lowcode/cms-plugin/shopping-order-manager.js +21 -13
  82. package/lowcode/cms-plugin/shopping-order-manager.ts +21 -13
  83. package/lowcode/cms-plugin/shopping-product-setting.js +1 -1
  84. package/lowcode/cms-plugin/shopping-product-setting.ts +1 -1
  85. package/lowcode/cms-plugin/shopping-product-text.js +5 -5
  86. package/lowcode/cms-plugin/shopping-product-text.ts +5 -5
  87. package/lowcode/cms-plugin/shopping-setting-basic.js +5 -6
  88. package/lowcode/cms-plugin/shopping-setting-basic.ts +5 -6
  89. package/lowcode/cms-plugin/shopping-shipment-setting.js +2 -2
  90. package/lowcode/cms-plugin/shopping-shipment-setting.ts +2 -2
  91. package/lowcode/cms-plugin/stock-history.js +7 -7
  92. package/lowcode/cms-plugin/stock-history.ts +7 -7
  93. package/lowcode/cms-plugin/stock-stores.js +2 -2
  94. package/lowcode/cms-plugin/stock-stores.ts +2 -2
  95. package/lowcode/cms-plugin/stock-vendors.js +2 -2
  96. package/lowcode/cms-plugin/stock-vendors.ts +2 -2
  97. package/lowcode/cms-plugin/third-party-google.js +1 -1
  98. package/lowcode/cms-plugin/third-party-google.ts +1 -1
  99. package/lowcode/cms-plugin/user-list.js +6 -2
  100. package/lowcode/cms-plugin/user-list.ts +7 -2
  101. package/lowcode/cms-plugin/user-login-setting.js +1 -1
  102. package/lowcode/cms-plugin/user-login-setting.ts +1 -1
  103. package/lowcode/cms-plugin/wallet-list.js +3 -3
  104. package/lowcode/cms-plugin/wallet-list.ts +3 -3
  105. package/lowcode/dialog/addTemplate.js +9 -9
  106. package/lowcode/dialog/addTemplate.ts +9 -9
  107. package/lowcode/dialog/dialog.js +1 -1
  108. package/lowcode/dialog/dialog.ts +1 -1
  109. package/lowcode/dialog/dialog_setting.js +1 -1
  110. package/lowcode/dialog/dialog_setting.ts +1 -1
  111. package/lowcode/dialog/image-preview.js +2 -2
  112. package/lowcode/dialog/image-preview.ts +2 -2
  113. package/lowcode/editor/add-component.js +4 -4
  114. package/lowcode/editor/add-component.ts +9 -9
  115. package/lowcode/editor/add-page.js +1 -1
  116. package/lowcode/editor/add-page.ts +1 -1
  117. package/lowcode/editor/page-code-setting.js +1 -1
  118. package/lowcode/editor/page-code-setting.ts +1 -1
  119. package/lowcode/editor/page-editor.js +15 -15
  120. package/lowcode/editor/page-editor.ts +15 -15
  121. package/lowcode/editor/page-setting-view.js +6 -6
  122. package/lowcode/editor/page-setting-view.ts +6 -6
  123. package/lowcode/editor/preview-app.js +1 -1
  124. package/lowcode/editor/preview-app.ts +1 -1
  125. package/lowcode/editor/search-idea.js +2 -2
  126. package/lowcode/editor/search-idea.ts +2 -2
  127. package/lowcode/editor/set-global-value.js +9 -9
  128. package/lowcode/editor/set-global-value.ts +9 -9
  129. package/lowcode/editor-bridge/trigger-event.js +1 -1
  130. package/lowcode/editor-bridge/trigger-event.ts +1 -1
  131. package/lowcode/editor-components/global-widget/global-widget.js +1 -1
  132. package/lowcode/editor-components/global-widget/global-widget.ts +1 -1
  133. package/lowcode/editor-config.js +1 -1
  134. package/lowcode/editor-config.ts +1 -1
  135. package/lowcode/form-view/e-commerce/path-select.js +1 -1
  136. package/lowcode/form-view/e-commerce/path-select.ts +1 -1
  137. package/lowcode/form-view/e-commerce/product-select.js +1 -1
  138. package/lowcode/form-view/e-commerce/product-select.ts +1 -1
  139. package/lowcode/form-view/editor/color-theme-selector.js +2 -2
  140. package/lowcode/form-view/editor/color-theme-selector.ts +2 -2
  141. package/lowcode/form-view/editor/image-selector.js +5 -5
  142. package/lowcode/form-view/editor/image-selector.ts +5 -5
  143. package/lowcode/glitterBundle/html-component/custom-style.js +6 -6
  144. package/lowcode/glitterBundle/html-component/custom-style.ts +6 -6
  145. package/lowcode/glitterBundle/html-component/global-widget.js +2 -2
  146. package/lowcode/glitterBundle/html-component/global-widget.ts +2 -2
  147. package/lowcode/glitterBundle/html-component/widget.js +1 -1
  148. package/lowcode/glitterBundle/html-component/widget.ts +1 -1
  149. package/lowcode/glitterBundle/module/html-generate.js +2 -2
  150. package/lowcode/glitterBundle/module/html-generate.ts +2 -2
  151. package/lowcode/glitterBundle/plugins/add_item_dia.js +7 -7
  152. package/lowcode/glitterBundle/plugins/add_item_dia.ts +7 -7
  153. package/lowcode/glitterBundle/plugins/editor.js +3 -3
  154. package/lowcode/glitterBundle/plugins/editor.ts +3 -3
  155. package/lowcode/glitterBundle/plugins/style-editor.js +5 -5
  156. package/lowcode/glitterBundle/plugins/style-editor.ts +5 -5
  157. package/lowcode/jspage/editor.js +3 -3
  158. package/lowcode/jspage/editor.ts +3 -3
  159. package/lowcode/jspage/function-page/main_editor.js +6 -6
  160. package/lowcode/jspage/function-page/main_editor.ts +6 -6
  161. package/lowcode/jspage/function-page/page_editor.js +4 -4
  162. package/lowcode/jspage/function-page/page_editor.ts +4 -4
  163. package/lowcode/jspage/function-page/server-editor/router/domain-manager.js +3 -3
  164. package/lowcode/jspage/function-page/server-editor/router/domain-manager.ts +3 -3
  165. package/lowcode/jspage/function-page/tool-setting.js +2 -2
  166. package/lowcode/jspage/function-page/tool-setting.ts +2 -2
  167. package/lowcode/landing-page/about-us.js +5 -5
  168. package/lowcode/landing-page/about-us.ts +5 -5
  169. package/lowcode/modules/file-system.js +2 -2
  170. package/lowcode/modules/file-system.ts +2 -2
  171. package/lowcode/modules/image-library-clone.js +4 -4
  172. package/lowcode/modules/image-library-clone.ts +4 -4
  173. package/lowcode/modules/image-library.js +2 -2
  174. package/lowcode/modules/image-library.ts +2 -2
  175. package/lowcode/official_view_component/official/component.js +1 -1
  176. package/lowcode/official_view_component/official/component.ts +1 -1
  177. package/lowcode/official_view_component/official/widget.js +1 -1
  178. package/lowcode/official_view_component/official/widget.ts +1 -1
  179. package/lowcode/public-components/banner/first-banner.js +1 -1
  180. package/lowcode/public-components/banner/first-banner.ts +1 -1
  181. package/lowcode/public-components/blogs/list.js +1 -1
  182. package/lowcode/public-components/blogs/list.ts +1 -1
  183. package/lowcode/public-components/headers/sy-02.js +4 -4
  184. package/lowcode/public-components/headers/sy-02.ts +4 -4
  185. package/lowcode/public-components/headers/sy-03.js +1 -1
  186. package/lowcode/public-components/headers/sy-03.ts +1 -1
  187. package/lowcode/public-components/headers/sy-04.js +2 -2
  188. package/lowcode/public-components/headers/sy-04.ts +2 -2
  189. package/lowcode/public-components/headers/sy-05.js +1 -1
  190. package/lowcode/public-components/headers/sy-05.ts +1 -1
  191. package/lowcode/public-components/user-manager/um-order.js +2 -2
  192. package/lowcode/public-components/user-manager/um-order.ts +2 -2
  193. package/lowcode/setting/appSetting.js +4 -4
  194. package/lowcode/setting/appSetting.ts +4 -4
  195. package/lowcode/setting/initialStyle.js +2 -2
  196. package/lowcode/setting/initialStyle.ts +2 -2
  197. package/lowcode/setting/pageManager.js +6 -6
  198. package/lowcode/setting/pageManager.ts +6 -6
  199. package/lowcode/view-model/saas-view-model.js +2 -2
  200. package/lowcode/view-model/saas-view-model.ts +2 -2
  201. package/package.json +1 -1
  202. package/src/services/system-schedule.js +1 -1
  203. package/src/services/system-schedule.js.map +1 -1
  204. package/src/services/system-schedule.ts +1 -1
@@ -29,7 +29,7 @@ export class SetGlobalValue {
29
29
  view: () => {
30
30
  return [
31
31
  ` <div class="w-100 d-flex align-items-center p-3 border-bottom">
32
- <h5 class=" offcanvas-title " style="">
32
+ <h5 class=" offcanvas-title " >
33
33
  全域設定</h5>
34
34
  <div class="flex-fill"></div>
35
35
  <div class="fs-5 text-black" style="cursor: pointer;" onclick="${gvc.event(() => {
@@ -593,7 +593,7 @@ ${(() => {
593
593
  <div class="position-relative bgf6 d-flex align-items-center justify-content-between px-2 py-3 border-bottom shadow">
594
594
  <span class="fs-6 fw-bold " style="color:black;">網域設定</span>
595
595
  </div>
596
- <div class="d-flex " style="">
596
+ <div class="d-flex " >
597
597
  <div>
598
598
  ${gvc.bindView(() => {
599
599
  return {
@@ -613,7 +613,7 @@ ${(() => {
613
613
  gvc.notifyDataChange([contentVM.leftID, contentVM.rightID]);
614
614
  });
615
615
  return html ` <div class="d-flex">
616
- <div style="" class="border-end w-100">
616
+ <div class="border-end w-100">
617
617
  ${gvc.bindView(() => {
618
618
  return {
619
619
  bind: contentVM.leftID,
@@ -658,8 +658,8 @@ ${(() => {
658
658
  select: Storage.select_global_editor_tab,
659
659
  };
660
660
  return html `
661
- <div class="bg-white rounded" style="">
662
- <div class="d-flex " style="">
661
+ <div class="bg-white rounded" >
662
+ <div class="d-flex " >
663
663
  <div>
664
664
  ${gvc.bindView(() => {
665
665
  return {
@@ -728,7 +728,7 @@ ${(() => {
728
728
  bind: id,
729
729
  view: () => {
730
730
  return `<div class="fw-500 me-2 pb-1 " style="font-size:15px;color:#151515;">開發者模式</div>
731
- <div class="form-check form-switch mode-switch" style="" data-bs-toggle="mode"
731
+ <div class="form-check form-switch mode-switch" data-bs-toggle="mode"
732
732
  onchange="${gvc.event(() => {
733
733
  Storage.develop_mode = Storage.develop_mode === 'false' ? 'true' : 'false';
734
734
  gvc.notifyDataChange(['showView', id]);
@@ -899,7 +899,7 @@ ${EditorElem.arrayItem({
899
899
  if (!dd) {
900
900
  return html `
901
901
  <div class="d-flex ps-2 hi fw-bold d-flex align-items-center border-bottom py-2 bgf6" style="color:#151515;font-size:16px;gap:0px;height:48px;">插件說明</div>
902
- <div class="d-flex flex-column w-100 align-items-center justify-content-center" style="">
902
+ <div class="d-flex flex-column w-100 align-items-center justify-content-center" >
903
903
  <div class="alert alert-info m-2 p-2 fw-500" style="white-space: normal;word-break: break-all;font-size:14px;">
904
904
  頁面模塊決定您能夠在網站上使用哪些設計模塊。<br /><br />您可以從官方或第三方資源中獲取連結,或自行開發插件上傳以供使用。<br /><br />
905
905
  啟用開發者模式來切換路徑進行工程開發。<br />
@@ -1048,7 +1048,7 @@ ${EditorElem.arrayItem({
1048
1048
  插件說明
1049
1049
  <div class="flex-fill"></div>
1050
1050
  </div>
1051
- <div class="d-flex flex-column w-100 align-items-center justify-content-center" style="">
1051
+ <div class="d-flex flex-column w-100 align-items-center justify-content-center" >
1052
1052
  <div class="alert alert-info m-2 p-2 fw-500" style="white-space: normal;word-break: break-all;font-size:14px;">
1053
1053
  為您的元件添加各樣的觸發事件,包含連結跳轉/內容取得/資料儲存/頁面渲染/動畫事件/內容發布....等,都能透過事件來完成。<br /><br />您可以從官方或第三方資源中獲取連結,或自行開發插件上傳以供使用。<br /><br />
1054
1054
  啟用開發者模式來切換路徑進行工程開發。<br />
@@ -1194,7 +1194,7 @@ ${EditorElem.arrayItem({
1194
1194
  if (!dd) {
1195
1195
  return html `
1196
1196
  <div class="d-flex ps-2 hi fw-bold d-flex align-items-center border-bottom py-2 bgf6" style="color:#151515;font-size:16px;gap:0px;height:48px;">路徑説明</div>
1197
- <div class="d-flex flex-column w-100 align-items-center justify-content-center" style="">
1197
+ <div class="d-flex flex-column w-100 align-items-center justify-content-center" >
1198
1198
  <div class="alert alert-info m-2 p-2 fw-500" style="white-space: normal;word-break: break-all;font-size:14px;">
1199
1199
  設定資源相對路徑,來決定頁面與事件模塊所載入的路徑位置。<br /><br />
1200
1200
  使用$字符設定相對路徑。<br />範例 : $router/sample.js
@@ -34,7 +34,7 @@ export class SetGlobalValue {
34
34
  view: () => {
35
35
  return [
36
36
  ` <div class="w-100 d-flex align-items-center p-3 border-bottom">
37
- <h5 class=" offcanvas-title " style="">
37
+ <h5 class=" offcanvas-title " >
38
38
  全域設定</h5>
39
39
  <div class="flex-fill"></div>
40
40
  <div class="fs-5 text-black" style="cursor: pointer;" onclick="${gvc.event(() => {
@@ -609,7 +609,7 @@ ${(() => {
609
609
  <div class="position-relative bgf6 d-flex align-items-center justify-content-between px-2 py-3 border-bottom shadow">
610
610
  <span class="fs-6 fw-bold " style="color:black;">網域設定</span>
611
611
  </div>
612
- <div class="d-flex " style="">
612
+ <div class="d-flex " >
613
613
  <div>
614
614
  ${gvc.bindView(() => {
615
615
  return {
@@ -636,7 +636,7 @@ ${(() => {
636
636
  });
637
637
 
638
638
  return html` <div class="d-flex">
639
- <div style="" class="border-end w-100">
639
+ <div class="border-end w-100">
640
640
  ${gvc.bindView(() => {
641
641
  return {
642
642
  bind: contentVM.leftID,
@@ -684,8 +684,8 @@ ${(() => {
684
684
  select: Storage.select_global_editor_tab,
685
685
  };
686
686
  return html`
687
- <div class="bg-white rounded" style="">
688
- <div class="d-flex " style="">
687
+ <div class="bg-white rounded" >
688
+ <div class="d-flex " >
689
689
  <div>
690
690
  ${gvc.bindView(() => {
691
691
  return {
@@ -761,7 +761,7 @@ ${(() => {
761
761
  bind: id,
762
762
  view: () => {
763
763
  return `<div class="fw-500 me-2 pb-1 " style="font-size:15px;color:#151515;">開發者模式</div>
764
- <div class="form-check form-switch mode-switch" style="" data-bs-toggle="mode"
764
+ <div class="form-check form-switch mode-switch" data-bs-toggle="mode"
765
765
  onchange="${gvc.event(() => {
766
766
  Storage.develop_mode = Storage.develop_mode === 'false' ? 'true' : 'false';
767
767
  gvc.notifyDataChange(['showView', id]);
@@ -937,7 +937,7 @@ ${EditorElem.arrayItem({
937
937
  if (!dd) {
938
938
  return html`
939
939
  <div class="d-flex ps-2 hi fw-bold d-flex align-items-center border-bottom py-2 bgf6" style="color:#151515;font-size:16px;gap:0px;height:48px;">插件說明</div>
940
- <div class="d-flex flex-column w-100 align-items-center justify-content-center" style="">
940
+ <div class="d-flex flex-column w-100 align-items-center justify-content-center" >
941
941
  <div class="alert alert-info m-2 p-2 fw-500" style="white-space: normal;word-break: break-all;font-size:14px;">
942
942
  頁面模塊決定您能夠在網站上使用哪些設計模塊。<br /><br />您可以從官方或第三方資源中獲取連結,或自行開發插件上傳以供使用。<br /><br />
943
943
  啟用開發者模式來切換路徑進行工程開發。<br />
@@ -1086,7 +1086,7 @@ ${EditorElem.arrayItem({
1086
1086
  插件說明
1087
1087
  <div class="flex-fill"></div>
1088
1088
  </div>
1089
- <div class="d-flex flex-column w-100 align-items-center justify-content-center" style="">
1089
+ <div class="d-flex flex-column w-100 align-items-center justify-content-center" >
1090
1090
  <div class="alert alert-info m-2 p-2 fw-500" style="white-space: normal;word-break: break-all;font-size:14px;">
1091
1091
  為您的元件添加各樣的觸發事件,包含連結跳轉/內容取得/資料儲存/頁面渲染/動畫事件/內容發布....等,都能透過事件來完成。<br /><br />您可以從官方或第三方資源中獲取連結,或自行開發插件上傳以供使用。<br /><br />
1092
1092
  啟用開發者模式來切換路徑進行工程開發。<br />
@@ -1232,7 +1232,7 @@ ${EditorElem.arrayItem({
1232
1232
  if (!dd) {
1233
1233
  return html`
1234
1234
  <div class="d-flex ps-2 hi fw-bold d-flex align-items-center border-bottom py-2 bgf6" style="color:#151515;font-size:16px;gap:0px;height:48px;">路徑説明</div>
1235
- <div class="d-flex flex-column w-100 align-items-center justify-content-center" style="">
1235
+ <div class="d-flex flex-column w-100 align-items-center justify-content-center" >
1236
1236
  <div class="alert alert-info m-2 p-2 fw-500" style="white-space: normal;word-break: break-all;font-size:14px;">
1237
1237
  設定資源相對路徑,來決定頁面與事件模塊所載入的路徑位置。<br /><br />
1238
1238
  使用$字符設定相對路徑。<br />範例 : $router/sample.js
@@ -277,7 +277,7 @@ function questionText(title, data) {
277
277
  <h3 class="accordion-header">
278
278
  <button class="accordion-button shadow-none rounded-3 ${(index === 0) ? '' : 'collapsed'}" type="button" data-bs-toggle="collapse" data-bs-target="#q-${index}" aria-expanded="false" aria-controls="q-1">${dd.title}</button>
279
279
  </h3>
280
- <div class="accordion-collapse collapse ${(index === 0) ? 'show' : ''}" id="q-${index}" data-bs-parent="#faq" style="">
280
+ <div class="accordion-collapse collapse ${(index === 0) ? 'show' : ''}" id="q-${index}" data-bs-parent="#faq" >
281
281
  <div class="accordion-body fs-sm pt-0">
282
282
  ${dd.content}
283
283
  </div>
@@ -282,7 +282,7 @@ function questionText(title: string, data: { title: string, content: string }[])
282
282
  <h3 class="accordion-header">
283
283
  <button class="accordion-button shadow-none rounded-3 ${(index === 0) ? '' : 'collapsed'}" type="button" data-bs-toggle="collapse" data-bs-target="#q-${index}" aria-expanded="false" aria-controls="q-1">${dd.title}</button>
284
284
  </h3>
285
- <div class="accordion-collapse collapse ${(index === 0) ? 'show' : ''}" id="q-${index}" data-bs-parent="#faq" style="">
285
+ <div class="accordion-collapse collapse ${(index === 0) ? 'show' : ''}" id="q-${index}" data-bs-parent="#faq" >
286
286
  <div class="accordion-body fs-sm pt-0">
287
287
  ${dd.content}
288
288
  </div>
@@ -88,7 +88,7 @@ export class GlobalWidget {
88
88
  };
89
89
  })}
90
90
  </div>
91
- <div class="" style="${document.body.clientWidth < 768 ? `width: calc(100%)` : `width: calc(100% - 200px)`};">
91
+ <div style="${document.body.clientWidth < 768 ? `width: calc(100%)` : `width: calc(100% - 200px)`};">
92
92
  ${gvc.bindView(() => {
93
93
  return {
94
94
  bind: vm.right_id,
@@ -111,7 +111,7 @@ export class GlobalWidget {
111
111
  };
112
112
  })}
113
113
  </div>
114
- <div class="" style="${document.body.clientWidth < 768 ? `width: calc(100%)` : `width: calc(100% - 200px)`};">
114
+ <div style="${document.body.clientWidth < 768 ? `width: calc(100%)` : `width: calc(100% - 200px)`};">
115
115
  ${gvc.bindView(() => {
116
116
  return {
117
117
  bind: vm.right_id,
@@ -28,7 +28,7 @@ export class EditorConfig {
28
28
  bg_color = '#FEAD20';
29
29
  const plan = EditorConfig.getPaymentStatus();
30
30
  let text = '';
31
- let paymentBtn = `<span style="color: white; font-size: 16px; font-family: Noto Sans; font-weight: 700; text-decoration: underline; word-wrap: break-word;cursor: pointer;" class="" onclick="${gvc.event(() => {
31
+ let paymentBtn = `<span style="color: white; font-size: 16px; font-family: Noto Sans; font-weight: 700; text-decoration: underline; word-wrap: break-word;cursor: pointer;" onclick="${gvc.event(() => {
32
32
  gvc.glitter.setUrlParameter('tab', 'member_plan');
33
33
  gvc.recreateView();
34
34
  })}">前往續約</span>`;
@@ -105,7 +105,7 @@ export class EditorConfig {
105
105
  bg_color = '#FEAD20'
106
106
  const plan = EditorConfig.getPaymentStatus();
107
107
  let text = '';
108
- let paymentBtn = `<span style="color: white; font-size: 16px; font-family: Noto Sans; font-weight: 700; text-decoration: underline; word-wrap: break-word;cursor: pointer;" class="" onclick="${gvc.event(
108
+ let paymentBtn = `<span style="color: white; font-size: 16px; font-family: Noto Sans; font-weight: 700; text-decoration: underline; word-wrap: break-word;cursor: pointer;" onclick="${gvc.event(
109
109
  () => {
110
110
  gvc.glitter.setUrlParameter('tab', 'member_plan');
111
111
  gvc.recreateView();
@@ -181,7 +181,7 @@ export class PathSelect {
181
181
  bind: dropMenu.id,
182
182
  view: () => {
183
183
  if (dropMenu.loading) {
184
- return html ``;
184
+ return '';
185
185
  }
186
186
  else {
187
187
  let h1 = '';
@@ -218,7 +218,7 @@ export class PathSelect {
218
218
  bind: dropMenu.id,
219
219
  view: () => {
220
220
  if (dropMenu.loading) {
221
- return html``;
221
+ return '';
222
222
  } else {
223
223
  let h1 = '';
224
224
  if (dropMenu.prevList.length > 0) {
@@ -124,7 +124,7 @@ export class ProductSelect {
124
124
  return [];
125
125
  }
126
126
  }))();
127
- resolve(html ` <div class="d-flex flex-column py-2" style="">
127
+ resolve(html ` <div class="d-flex flex-column py-2" >
128
128
  <div class="mx-n3 border-top" ></div>
129
129
  <div
130
130
  class="d-flex align-items-center pb-2"
@@ -127,7 +127,7 @@ export class ProductSelect {
127
127
  }
128
128
  })();
129
129
  resolve(
130
- html` <div class="d-flex flex-column py-2" style="">
130
+ html` <div class="d-flex flex-column py-2" >
131
131
  <div class="mx-n3 border-top" ></div>
132
132
  <div
133
133
  class="d-flex align-items-center pb-2"
@@ -23,7 +23,7 @@ export class ColorThemeSelector {
23
23
  ${[
24
24
  {
25
25
  title: html `全站統一配色`,
26
- hint: ` <span class=""
26
+ hint: ` <span
27
27
  style="color:#8D8D8D;font-size: 13px;white-space: normal;word-break: break-all;line-height: 16px;">選擇一個配色,若是進行了修改,全站所有應用此配色的元件將自動更新,方便未來統一管理。</span>`,
28
28
  value: 'global',
29
29
  },
@@ -64,7 +64,7 @@ export class ColorThemeSelector {
64
64
  ${dd.title} ${(`${select.id}`.split('-')[0] === 'custom' ? `custom` : `global`) === dd.value ? dd.hint : ``}
65
65
  </div>
66
66
  </div>`,
67
- html ` <div class="d-flex position-relative mt-2" style="">
67
+ html ` <div class="d-flex position-relative mt-2" >
68
68
  <div class="ms-0 border-end position-absolute h-100" style="left: 5px;"></div>
69
69
  <div class="flex-fill " style="margin-left:20px;max-width: 100%;">
70
70
  ${(() => {
@@ -28,7 +28,7 @@ export class ColorThemeSelector {
28
28
  ${[
29
29
  {
30
30
  title: html`全站統一配色`,
31
- hint: ` <span class=""
31
+ hint: ` <span
32
32
  style="color:#8D8D8D;font-size: 13px;white-space: normal;word-break: break-all;line-height: 16px;">選擇一個配色,若是進行了修改,全站所有應用此配色的元件將自動更新,方便未來統一管理。</span>`,
33
33
  value: 'global',
34
34
  },
@@ -68,7 +68,7 @@ export class ColorThemeSelector {
68
68
  ${dd.title} ${(`${select.id}`.split('-')[0] === 'custom' ? `custom` : `global`) === dd.value ? dd.hint : ``}
69
69
  </div>
70
70
  </div>`,
71
- html` <div class="d-flex position-relative mt-2" style="">
71
+ html` <div class="d-flex position-relative mt-2" >
72
72
  <div class="ms-0 border-end position-absolute h-100" style="left: 5px;"></div>
73
73
  <div class="flex-fill " style="margin-left:20px;max-width: 100%;">
74
74
  ${(() => {
@@ -37,13 +37,13 @@ export class ImageSelector {
37
37
  ${widget.bundle.form_title}
38
38
  <button
39
39
  class="btn-size-sm btn-gray "
40
- style=""
40
+
41
41
  type="button"
42
42
  onclick="${gvc.event(() => {
43
43
  selectImage();
44
44
  })}"
45
45
  >
46
- <span class="tx_700" style="">替換</span>
46
+ <span class="tx_700" >替換</span>
47
47
  </button>
48
48
  </div>
49
49
  <div
@@ -106,7 +106,7 @@ background-image: url('${src ||
106
106
  }));
107
107
  })}"
108
108
  >
109
- <span class="tx_700" style="">ALT</span>
109
+ <span class="tx_700" >ALT</span>
110
110
  </button>
111
111
  <i
112
112
  class="fa-regular fa-eye"
@@ -125,13 +125,13 @@ background-image: url('${src ||
125
125
  : `
126
126
  <button
127
127
  class="btn-size-sm btn-gray "
128
- style=""
128
+
129
129
  type="button"
130
130
  onclick="${gvc.event(() => {
131
131
  selectImage();
132
132
  })}"
133
133
  >
134
- <span class="tx_700" style="">選擇圖片</span>
134
+ <span class="tx_700" >選擇圖片</span>
135
135
  </button>
136
136
  `}
137
137
  </div>
@@ -38,13 +38,13 @@ export class ImageSelector {
38
38
  ${widget.bundle.form_title}
39
39
  <button
40
40
  class="btn-size-sm btn-gray "
41
- style=""
41
+
42
42
  type="button"
43
43
  onclick="${gvc.event(() => {
44
44
  selectImage();
45
45
  })}"
46
46
  >
47
- <span class="tx_700" style="">替換</span>
47
+ <span class="tx_700" >替換</span>
48
48
  </button>
49
49
  </div>
50
50
  <div
@@ -114,7 +114,7 @@ background-image: url('${src ||
114
114
  );
115
115
  })}"
116
116
  >
117
- <span class="tx_700" style="">ALT</span>
117
+ <span class="tx_700" >ALT</span>
118
118
  </button>
119
119
  <i
120
120
  class="fa-regular fa-eye"
@@ -138,13 +138,13 @@ background-image: url('${src ||
138
138
  : `
139
139
  <button
140
140
  class="btn-size-sm btn-gray "
141
- style=""
141
+
142
142
  type="button"
143
143
  onclick="${gvc.event(() => {
144
144
  selectImage();
145
145
  })}"
146
146
  >
147
- <span class="tx_700" style="">選擇圖片</span>
147
+ <span class="tx_700" >選擇圖片</span>
148
148
  </button>
149
149
  `}
150
150
  </div>
@@ -6,7 +6,7 @@ const html = String.raw;
6
6
  export class CustomStyle {
7
7
  static renderThemeEditor(gvc, widget, callback) {
8
8
  RenderValue.custom_style.initialWidget(widget);
9
- return `<div class="" style="margin-top:-20px;">
9
+ return `<div style="margin-top:-20px;">
10
10
  ${[
11
11
  EditorElem.editeInput({
12
12
  gvc: gvc,
@@ -436,7 +436,7 @@ ${[
436
436
  return [
437
437
  {
438
438
  title: html `套用統一容器`,
439
- hint: `<span class=""
439
+ hint: `<span
440
440
  style="color:#8D8D8D;font-size: 13px;white-space: normal;word-break: break-all;line-height: 16px;">選擇一個全站容器,若是進行了修改,全站所有應用此容器的元件將自動更新,方便未來統一管理。</span>`,
441
441
  value: 'global',
442
442
  },
@@ -474,7 +474,7 @@ ${[
474
474
  ${dd.title} ${widget.data._style_refer === dd.value ? dd.hint : ``}
475
475
  </div>
476
476
  </div>`,
477
- html ` <div class="d-flex position-relative mt-2" style="">
477
+ html ` <div class="d-flex position-relative mt-2" >
478
478
  <div class="ms-0 border-end position-absolute h-100" style="left: 5px;"></div>
479
479
  <div class="flex-fill " style="margin-left:20px;max-width: 100%;">
480
480
  ${(() => {
@@ -538,7 +538,7 @@ ${[
538
538
  return [
539
539
  {
540
540
  title: html `預設背景`,
541
- hint: `<span class="" style="color:#8D8D8D;font-size: 13px;white-space: normal;word-break: break-all;line-height: 16px;">將依據父層的背景樣式,進行顯示。</span>`,
541
+ hint: `<span style="color:#8D8D8D;font-size: 13px;white-space: normal;word-break: break-all;line-height: 16px;">將依據父層的背景樣式,進行顯示。</span>`,
542
542
  value: 'none',
543
543
  },
544
544
  {
@@ -579,7 +579,7 @@ ${[
579
579
  ${dd.title} ${widget.data._background_setting.type === dd.value ? dd.hint : ``}
580
580
  </div>
581
581
  </div>`,
582
- html ` <div class="d-flex position-relative mt-2" style="">
582
+ html ` <div class="d-flex position-relative mt-2" >
583
583
  <div class="ms-0 border-end position-absolute h-100" style="left: 5px;"></div>
584
584
  <div class="flex-fill ${widget.data._background_setting.type !== dd.value ? `d-none` : ``} mt-n2" style="margin-left:20px;max-width: 100%;">
585
585
  ${(() => {
@@ -888,7 +888,7 @@ ${[
888
888
  const gvc = obj.gvc;
889
889
  const globalValue = gvc.glitter.share.editorViewModel.appConfig;
890
890
  return html `
891
- <div class="">
891
+ <div >
892
892
  <div
893
893
  class="${obj.hide_title ? `d-none` : ``} px-3 border-bottom pb-3 fw-bold mt-2 pt-2"
894
894
  style="cursor: pointer;color:#393939;"
@@ -10,7 +10,7 @@ const html = String.raw;
10
10
  export class CustomStyle {
11
11
  public static renderThemeEditor(gvc: GVC, widget: any, callback?: () => void) {
12
12
  RenderValue.custom_style.initialWidget(widget);
13
- return `<div class="" style="margin-top:-20px;">
13
+ return `<div style="margin-top:-20px;">
14
14
  ${[
15
15
  EditorElem.editeInput({
16
16
  gvc: gvc,
@@ -441,7 +441,7 @@ ${[
441
441
  return [
442
442
  {
443
443
  title: html`套用統一容器`,
444
- hint: `<span class=""
444
+ hint: `<span
445
445
  style="color:#8D8D8D;font-size: 13px;white-space: normal;word-break: break-all;line-height: 16px;">選擇一個全站容器,若是進行了修改,全站所有應用此容器的元件將自動更新,方便未來統一管理。</span>`,
446
446
  value: 'global',
447
447
  },
@@ -479,7 +479,7 @@ ${[
479
479
  ${dd.title} ${widget.data._style_refer === dd.value ? dd.hint : ``}
480
480
  </div>
481
481
  </div>`,
482
- html` <div class="d-flex position-relative mt-2" style="">
482
+ html` <div class="d-flex position-relative mt-2" >
483
483
  <div class="ms-0 border-end position-absolute h-100" style="left: 5px;"></div>
484
484
  <div class="flex-fill " style="margin-left:20px;max-width: 100%;">
485
485
  ${(() => {
@@ -549,7 +549,7 @@ ${[
549
549
  return [
550
550
  {
551
551
  title: html`預設背景`,
552
- hint: `<span class="" style="color:#8D8D8D;font-size: 13px;white-space: normal;word-break: break-all;line-height: 16px;">將依據父層的背景樣式,進行顯示。</span>`,
552
+ hint: `<span style="color:#8D8D8D;font-size: 13px;white-space: normal;word-break: break-all;line-height: 16px;">將依據父層的背景樣式,進行顯示。</span>`,
553
553
  value: 'none',
554
554
  },
555
555
  {
@@ -590,7 +590,7 @@ ${[
590
590
  ${dd.title} ${widget.data._background_setting.type === dd.value ? dd.hint : ``}
591
591
  </div>
592
592
  </div>`,
593
- html` <div class="d-flex position-relative mt-2" style="">
593
+ html` <div class="d-flex position-relative mt-2" >
594
594
  <div class="ms-0 border-end position-absolute h-100" style="left: 5px;"></div>
595
595
  <div class="flex-fill ${widget.data._background_setting.type !== dd.value ? `d-none` : ``} mt-n2" style="margin-left:20px;max-width: 100%;">
596
596
  ${(() => {
@@ -906,7 +906,7 @@ ${[
906
906
  const gvc = obj.gvc;
907
907
  const globalValue = gvc.glitter.share.editorViewModel.appConfig;
908
908
  return html`
909
- <div class="">
909
+ <div >
910
910
  <div
911
911
  class="${obj.hide_title ? `d-none` : ``} px-3 border-bottom pb-3 fw-bold mt-2 pt-2"
912
912
  style="cursor: pointer;color:#393939;"
@@ -365,7 +365,7 @@ export class GlobalWidget {
365
365
  return ``;
366
366
  }
367
367
  return `<div class="d-flex align-items-center shadow border-bottom mt-n2"
368
- style="">
368
+ >
369
369
  ${(() => {
370
370
  const list = [
371
371
  {
@@ -410,7 +410,7 @@ export class GlobalWidget {
410
410
  if (obj.hide_selector) {
411
411
  return ``;
412
412
  }
413
- return html ` <div class=" mx-n2" style="">
413
+ return html ` <div class=" mx-n2" >
414
414
  ${[
415
415
  ...(() => {
416
416
  if (obj.hide_ai) {
@@ -414,7 +414,7 @@ export class GlobalWidget {
414
414
  return ``;
415
415
  }
416
416
  return `<div class="d-flex align-items-center shadow border-bottom mt-n2"
417
- style="">
417
+ >
418
418
  ${(() => {
419
419
  const list = [
420
420
  {
@@ -461,7 +461,7 @@ export class GlobalWidget {
461
461
  if (obj.hide_selector) {
462
462
  return ``;
463
463
  }
464
- return html` <div class=" mx-n2" style="">
464
+ return html` <div class=" mx-n2" >
465
465
  ${[
466
466
  ...(() => {
467
467
  if (obj.hide_ai) {
@@ -436,7 +436,7 @@ export const widgetComponent = {
436
436
  if (dd.visible === 'invisible' && (dd.value !== formData[widget.data.key])) {
437
437
  return ``;
438
438
  }
439
- return glitter.html `<option class="" value="${dd.value}" ${`${dd.value}` === `${formData[widget.data.key]}` ? `selected` : ``}>
439
+ return glitter.html `<option value="${dd.value}" ${`${dd.value}` === `${formData[widget.data.key]}` ? `selected` : ``}>
440
440
  ${dd.key}
441
441
  </option>`;
442
442
  }).join('') + `<option value="" ${formData[widget.data.key] === '' ? `selected` : ``}>
@@ -443,7 +443,7 @@ export const widgetComponent = {
443
443
  if (dd.visible === 'invisible' && (dd.value !== formData[widget.data.key])) {
444
444
  return ``
445
445
  }
446
- return glitter.html`<option class="" value="${dd.value}" ${`${dd.value}` === `${formData[widget.data.key]}` ? `selected` : ``}>
446
+ return glitter.html`<option value="${dd.value}" ${`${dd.value}` === `${formData[widget.data.key]}` ? `selected` : ``}>
447
447
  ${dd.key}
448
448
  </option>`;
449
449
  }).join('') + `<option value="" ${formData[widget.data.key] === '' ? `selected` : ``}>
@@ -689,7 +689,7 @@ onclick="${gvc.event(() => {
689
689
  return {
690
690
  bind: selectID,
691
691
  view: () => {
692
- return html ` <div class="w-100 " style="">
692
+ return html ` <div class="w-100 " >
693
693
  <div class="d-flex align-items-center justify-content-around w-100 p-2">
694
694
  ${[
695
695
  {
@@ -1973,7 +1973,7 @@ background: white;
1973
1973
  const detID = cf.gvc.glitter.getUUID();
1974
1974
  const plusID = cf.gvc.glitter.getUUID();
1975
1975
  let block_close = false;
1976
- return html ` <div class="" style="z-index:9999;min-height: 20px;max-height: 20px;width: 100%;" onmouseout="${cf.gvc.event(() => { })}">
1976
+ return html ` <div style="z-index:9999;min-height: 20px;max-height: 20px;width: 100%;" onmouseout="${cf.gvc.event(() => { })}">
1977
1977
  <div
1978
1978
  id="${detID}"
1979
1979
  class="d-none"
@@ -1388,7 +1388,7 @@ onclick="${gvc.event(() => {
1388
1388
  return {
1389
1389
  bind: selectID,
1390
1390
  view: () => {
1391
- return html` <div class="w-100 " style="">
1391
+ return html` <div class="w-100 " >
1392
1392
  <div class="d-flex align-items-center justify-content-around w-100 p-2">
1393
1393
  ${[
1394
1394
  {
@@ -2452,7 +2452,7 @@ background: white;
2452
2452
  const detID = cf.gvc.glitter.getUUID();
2453
2453
  const plusID = cf.gvc.glitter.getUUID();
2454
2454
  let block_close = false;
2455
- return html` <div class="" style="z-index:9999;min-height: 20px;max-height: 20px;width: 100%;" onmouseout="${cf.gvc.event(() => {})}">
2455
+ return html` <div style="z-index:9999;min-height: 20px;max-height: 20px;width: 100%;" onmouseout="${cf.gvc.event(() => {})}">
2456
2456
  <div
2457
2457
  id="${detID}"
2458
2458
  class="d-none"