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
@@ -262,7 +262,8 @@ export class ShoppingSettingBasic {
262
262
  BgWidget.mainCard(html`
263
263
  <div class="d-flex flex-column guide5-4">
264
264
  <div style="font-weight: 700;">
265
- ${cat_title}名稱 ${BgWidget.languageInsignia(vm.language, 'margin-left:5px;')}
265
+ ${cat_title}名稱 ${BgWidget.requiredStar()}
266
+ ${BgWidget.languageInsignia(vm.language, 'margin-left:5px;')}
266
267
  </div>
267
268
  ${BgWidget.editeInput({
268
269
  gvc: gvc,
@@ -1013,7 +1014,6 @@ export class ShoppingSettingBasic {
1013
1014
  data: language_data.preview_image,
1014
1015
  event: {
1015
1016
  delete: (index: number) => {
1016
- console.log('language_data -- ', language_data);
1017
1017
  postMD.variants.forEach((variant: any) => {
1018
1018
  if (variant.preview_image === language_data.preview_image[index]) {
1019
1019
  variant.preview_image = language_data.preview_image[0] ?? BgWidget.noImageURL;
@@ -1023,7 +1023,6 @@ export class ShoppingSettingBasic {
1023
1023
  language_data.preview_image[0] ?? BgWidget.noImageURL;
1024
1024
  }
1025
1025
  });
1026
- console.log('language_data -- ', postMD.variants);
1027
1026
  ShoppingSettingBasic.updateVariants(gvc, postMD, shipment_config, variantsViewID, obj);
1028
1027
  },
1029
1028
  },
@@ -1514,7 +1513,7 @@ export class ShoppingSettingBasic {
1514
1513
  BgWidget.mainCard(html`
1515
1514
  <div class="d-flex flex-column" style="gap:18px;">
1516
1515
  <div class="d-flex flex-column guide5-7" style="gap:18px;">
1517
- <div style="font-weight: 700;">商品材積</div>
1516
+ <div style="font-weight: 700;"></div>
1518
1517
  <div class="row">
1519
1518
  ${[
1520
1519
  {
@@ -3195,8 +3194,8 @@ export class ShoppingSettingBasic {
3195
3194
  搜尋引擎列表 ${BgWidget.languageInsignia(sel_lan(), 'margin-left:5px;')}
3196
3195
  </div>
3197
3196
  ${[
3198
- html` <div class="tx_normal fw-normal mb-2">${cat_title}網址</div>`,
3199
- html` <div
3197
+ html`<div class="tx_normal fw-normal mb-2">${cat_title}網址 ${BgWidget.requiredStar()}</div> `,
3198
+ html`<div
3200
3199
  style="justify-content: flex-start; align-items: center; display: inline-flex;border:1px solid #EAEAEA;border-radius: 10px;overflow: hidden; ${document
3201
3200
  .body.clientWidth > 768
3202
3201
  ? 'gap: 18px; '
@@ -527,7 +527,7 @@ export class ShoppingShipmentSetting {
527
527
  let returnHTML = ``;
528
528
  shipmentArray.volume.map((data) => {
529
529
  returnHTML += html `
530
- <div class="">
530
+ <div >
531
531
  <span style="font-size: 24px;">${data.key}</span>
532
532
  立方公分(含)以上,運費
533
533
  <span style="font-size: 24px;">${data.value}</span>
@@ -550,7 +550,7 @@ export class ShoppingShipmentSetting {
550
550
  let returnHTML = ``;
551
551
  shipmentArray.weight.map((data) => {
552
552
  returnHTML += html `
553
- <div class="">
553
+ <div >
554
554
  <span style="font-size: 24px;">${data.key}</span>
555
555
  公斤(含)以上,運費
556
556
  <span style="font-size: 24px;">${data.value}</span>
@@ -544,7 +544,7 @@ export class ShoppingShipmentSetting {
544
544
  let returnHTML = ``;
545
545
  shipmentArray.volume.map((data: any) => {
546
546
  returnHTML += html`
547
- <div class="">
547
+ <div >
548
548
  <span style="font-size: 24px;">${data.key}</span>
549
549
  立方公分(含)以上,運費
550
550
  <span style="font-size: 24px;">${data.value}</span>
@@ -567,7 +567,7 @@ export class ShoppingShipmentSetting {
567
567
  let returnHTML = ``;
568
568
  shipmentArray.weight.map((data: any) => {
569
569
  returnHTML += html`
570
- <div class="">
570
+ <div >
571
571
  <span style="font-size: 24px;">${data.key}</span>
572
572
  公斤(含)以上,運費
573
573
  <span style="font-size: 24px;">${data.value}</span>
@@ -1006,7 +1006,7 @@ export class StockHistory {
1006
1006
  </div>
1007
1007
  ${document.body.clientWidth > 768 ? '' : BgWidget.mbContainer(18)}
1008
1008
  <div class="col-12 col-md-6">
1009
- <div class="tx_normal">${typeData.name}日期</div>
1009
+ <div class="tx_normal">${typeData.name}日期 ${BgWidget.requiredStar()}</div>
1010
1010
  ${BgWidget.mbContainer(8)}
1011
1011
  ${BgWidget.editeInput({
1012
1012
  gvc: gvc,
@@ -1034,7 +1034,7 @@ export class StockHistory {
1034
1034
  ].join(BgWidget.mbContainer(18))),
1035
1035
  BgWidget.mainCard([
1036
1036
  html `
1037
- <div class="tx_700">${typeData.name}商品</div>
1037
+ <div class="tx_700">${typeData.name}商品 ${BgWidget.requiredStar()}</div>
1038
1038
  ${BgWidget.mbContainer(18)}
1039
1039
  ${gvc.bindView({
1040
1040
  bind: dvm.tableId,
@@ -1772,7 +1772,7 @@ export class StockHistory {
1772
1772
  html `
1773
1773
  <div class="row">
1774
1774
  <div class="col-12 col-md-6">
1775
- <div class="tx_normal">供應商</div>
1775
+ <div class="tx_normal">供應商 ${BgWidget.requiredStar()}</div>
1776
1776
  ${BgWidget.mbContainer(8)}
1777
1777
  ${gvc.bindView((() => {
1778
1778
  const id = glitter.getUUID();
@@ -1863,7 +1863,7 @@ export class StockHistory {
1863
1863
  })())}
1864
1864
  </div>
1865
1865
  <div class="col-12 col-md-6">
1866
- <div class="tx_normal">庫存點</div>
1866
+ <div class="tx_normal">庫存點 ${BgWidget.requiredStar()}</div>
1867
1867
  ${BgWidget.mbContainer(8)}
1868
1868
  ${gvc.bindView((() => {
1869
1869
  const id = glitter.getUUID();
@@ -1960,7 +1960,7 @@ export class StockHistory {
1960
1960
  html `
1961
1961
  <div class="row">
1962
1962
  <div class="col-12 col-md-6">
1963
- <div class="tx_normal">調出庫存點</div>
1963
+ <div class="tx_normal">調出庫存點 ${BgWidget.requiredStar()}</div>
1964
1964
  ${BgWidget.mbContainer(8)}
1965
1965
  ${gvc.bindView((() => {
1966
1966
  const id = glitter.getUUID();
@@ -2017,7 +2017,7 @@ export class StockHistory {
2017
2017
  })())}
2018
2018
  </div>
2019
2019
  <div class="col-12 col-md-6">
2020
- <div class="tx_normal">調入庫存點</div>
2020
+ <div class="tx_normal">調入庫存點 ${BgWidget.requiredStar()}</div>
2021
2021
  ${BgWidget.mbContainer(8)}
2022
2022
  ${gvc.bindView((() => {
2023
2023
  const id = glitter.getUUID();
@@ -2081,7 +2081,7 @@ export class StockHistory {
2081
2081
  html `
2082
2082
  <div class="row">
2083
2083
  <div class="col-12 col-md-6">
2084
- <div class="tx_normal">盤點庫存點</div>
2084
+ <div class="tx_normal">盤點庫存點 ${BgWidget.requiredStar()}</div>
2085
2085
  ${BgWidget.mbContainer(8)}
2086
2086
  ${gvc.bindView((() => {
2087
2087
  const id = glitter.getUUID();
@@ -1096,7 +1096,7 @@ export class StockHistory {
1096
1096
  </div>
1097
1097
  ${document.body.clientWidth > 768 ? '' : BgWidget.mbContainer(18)}
1098
1098
  <div class="col-12 col-md-6">
1099
- <div class="tx_normal">${typeData.name}日期</div>
1099
+ <div class="tx_normal">${typeData.name}日期 ${BgWidget.requiredStar()}</div>
1100
1100
  ${BgWidget.mbContainer(8)}
1101
1101
  ${BgWidget.editeInput({
1102
1102
  gvc: gvc,
@@ -1126,7 +1126,7 @@ export class StockHistory {
1126
1126
  BgWidget.mainCard(
1127
1127
  [
1128
1128
  html`
1129
- <div class="tx_700">${typeData.name}商品</div>
1129
+ <div class="tx_700">${typeData.name}商品 ${BgWidget.requiredStar()}</div>
1130
1130
  ${BgWidget.mbContainer(18)}
1131
1131
  ${gvc.bindView({
1132
1132
  bind: dvm.tableId,
@@ -1941,7 +1941,7 @@ export class StockHistory {
1941
1941
  html`
1942
1942
  <div class="row">
1943
1943
  <div class="col-12 col-md-6">
1944
- <div class="tx_normal">供應商</div>
1944
+ <div class="tx_normal">供應商 ${BgWidget.requiredStar()}</div>
1945
1945
  ${BgWidget.mbContainer(8)}
1946
1946
  ${gvc.bindView(
1947
1947
  (() => {
@@ -2040,7 +2040,7 @@ export class StockHistory {
2040
2040
  )}
2041
2041
  </div>
2042
2042
  <div class="col-12 col-md-6">
2043
- <div class="tx_normal">庫存點</div>
2043
+ <div class="tx_normal">庫存點 ${BgWidget.requiredStar()}</div>
2044
2044
  ${BgWidget.mbContainer(8)}
2045
2045
  ${gvc.bindView(
2046
2046
  (() => {
@@ -2146,7 +2146,7 @@ export class StockHistory {
2146
2146
  html`
2147
2147
  <div class="row">
2148
2148
  <div class="col-12 col-md-6">
2149
- <div class="tx_normal">調出庫存點</div>
2149
+ <div class="tx_normal">調出庫存點 ${BgWidget.requiredStar()}</div>
2150
2150
  ${BgWidget.mbContainer(8)}
2151
2151
  ${gvc.bindView(
2152
2152
  (() => {
@@ -2206,7 +2206,7 @@ export class StockHistory {
2206
2206
  )}
2207
2207
  </div>
2208
2208
  <div class="col-12 col-md-6">
2209
- <div class="tx_normal">調入庫存點</div>
2209
+ <div class="tx_normal">調入庫存點 ${BgWidget.requiredStar()}</div>
2210
2210
  ${BgWidget.mbContainer(8)}
2211
2211
  ${gvc.bindView(
2212
2212
  (() => {
@@ -2273,7 +2273,7 @@ export class StockHistory {
2273
2273
  html`
2274
2274
  <div class="row">
2275
2275
  <div class="col-12 col-md-6">
2276
- <div class="tx_normal">盤點庫存點</div>
2276
+ <div class="tx_normal">盤點庫存點 ${BgWidget.requiredStar()}</div>
2277
2277
  ${BgWidget.mbContainer(8)}
2278
2278
  ${gvc.bindView(
2279
2279
  (() => {
@@ -235,7 +235,7 @@ export class StockStores {
235
235
  html ` <div class="tx_700">${st_name}資訊</div>`,
236
236
  html ` <div class="row">
237
237
  <div class="col-12 col-md-6">
238
- <div class="tx_normal">${st_name}名稱</div>
238
+ <div class="tx_normal">${st_name}名稱 ${BgWidget.requiredStar()}</div>
239
239
  ${BgWidget.mbContainer(8)}
240
240
  ${BgWidget.editeInput({
241
241
  gvc: gvc,
@@ -249,7 +249,7 @@ export class StockStores {
249
249
  </div>
250
250
  ${document.body.clientWidth > 768 ? '' : BgWidget.mbContainer(18)}
251
251
  <div class="col-12 col-md-6">
252
- <div class="tx_normal">${st_name}地址</div>
252
+ <div class="tx_normal">${st_name}地址 ${BgWidget.requiredStar()}</div>
253
253
  ${BgWidget.mbContainer(8)}
254
254
  ${BgWidget.editeInput({
255
255
  gvc: gvc,
@@ -292,7 +292,7 @@ export class StockStores {
292
292
  html` <div class="tx_700">${st_name}資訊</div>`,
293
293
  html` <div class="row">
294
294
  <div class="col-12 col-md-6">
295
- <div class="tx_normal">${st_name}名稱</div>
295
+ <div class="tx_normal">${st_name}名稱 ${BgWidget.requiredStar()}</div>
296
296
  ${BgWidget.mbContainer(8)}
297
297
  ${BgWidget.editeInput({
298
298
  gvc: gvc,
@@ -306,7 +306,7 @@ export class StockStores {
306
306
  </div>
307
307
  ${document.body.clientWidth > 768 ? '' : BgWidget.mbContainer(18)}
308
308
  <div class="col-12 col-md-6">
309
- <div class="tx_normal">${st_name}地址</div>
309
+ <div class="tx_normal">${st_name}地址 ${BgWidget.requiredStar()}</div>
310
310
  ${BgWidget.mbContainer(8)}
311
311
  ${BgWidget.editeInput({
312
312
  gvc: gvc,
@@ -172,7 +172,7 @@ export class StockVendors {
172
172
  html ` <div class="tx_700">供應商資訊</div>`,
173
173
  html ` <div class="row">
174
174
  <div class="col-12 col-md-6">
175
- <div class="tx_normal">供應商名稱</div>
175
+ <div class="tx_normal">供應商名稱 ${BgWidget.requiredStar()}</div>
176
176
  ${BgWidget.mbContainer(8)}
177
177
  ${BgWidget.editeInput({
178
178
  gvc: gvc,
@@ -186,7 +186,7 @@ export class StockVendors {
186
186
  </div>
187
187
  ${document.body.clientWidth > 768 ? '' : BgWidget.mbContainer(18)}
188
188
  <div class="col-12 col-md-6">
189
- <div class="tx_normal">供應商地址</div>
189
+ <div class="tx_normal">供應商地址 ${BgWidget.requiredStar()}</div>
190
190
  ${BgWidget.mbContainer(8)}
191
191
  ${BgWidget.editeInput({
192
192
  gvc: gvc,
@@ -244,7 +244,7 @@ export class StockVendors {
244
244
  html` <div class="tx_700">供應商資訊</div>`,
245
245
  html` <div class="row">
246
246
  <div class="col-12 col-md-6">
247
- <div class="tx_normal">供應商名稱</div>
247
+ <div class="tx_normal">供應商名稱 ${BgWidget.requiredStar()}</div>
248
248
  ${BgWidget.mbContainer(8)}
249
249
  ${BgWidget.editeInput({
250
250
  gvc: gvc,
@@ -258,7 +258,7 @@ export class StockVendors {
258
258
  </div>
259
259
  ${document.body.clientWidth > 768 ? '' : BgWidget.mbContainer(18)}
260
260
  <div class="col-12 col-md-6">
261
- <div class="tx_normal">供應商地址</div>
261
+ <div class="tx_normal">供應商地址 ${BgWidget.requiredStar()}</div>
262
262
  ${BgWidget.mbContainer(8)}
263
263
  ${BgWidget.editeInput({
264
264
  gvc: gvc,
@@ -104,7 +104,7 @@ export class ThirdPartyGoggle {
104
104
  });
105
105
  })}"
106
106
  >
107
- <div class="" style=""><i class="fa-regular fa-trash-can" aria-hidden="true"></i></div>
107
+ <div ><i class="fa-regular fa-trash-can" aria-hidden="true"></i></div>
108
108
  </div>
109
109
  </div>`;
110
110
  })
@@ -116,7 +116,7 @@ export class ThirdPartyGoggle {
116
116
  });
117
117
  })}"
118
118
  >
119
- <div class="" style=""><i class="fa-regular fa-trash-can" aria-hidden="true"></i></div>
119
+ <div ><i class="fa-regular fa-trash-can" aria-hidden="true"></i></div>
120
120
  </div>
121
121
  </div>`;
122
122
  })
@@ -1844,17 +1844,21 @@ export class UserList {
1844
1844
  ...(Array.isArray(defaultForm) ? defaultForm : []),
1845
1845
  ...customerForm.list,
1846
1846
  ];
1847
+ const requireKeys = ['name', 'email', 'phone', 'birth'];
1847
1848
  function loopForm(dataArray, refer_obj) {
1848
1849
  return dataArray
1849
1850
  .map(item => {
1850
1851
  const { title, key, page } = item;
1851
1852
  const value = refer_obj[key] || '';
1852
1853
  const isReadonly = vmi.mode !== 'edit';
1854
+ const addRequiredStar = requireKeys.includes(key)
1855
+ ? BgWidget.requiredStar()
1856
+ : '';
1853
1857
  switch (page) {
1854
1858
  case 'input':
1855
1859
  return html `
1856
1860
  <div>
1857
- <div class="tx_normal">${title}</div>
1861
+ <div class="tx_normal">${title} ${addRequiredStar}</div>
1858
1862
  <div>
1859
1863
  ${BgWidget.editeInput({
1860
1864
  gvc,
@@ -1870,7 +1874,7 @@ export class UserList {
1870
1874
  case 'multiple_line_text':
1871
1875
  return html `
1872
1876
  <div>
1873
- <div class="tx_normal">${title}</div>
1877
+ <div class="tx_normal">${title} ${addRequiredStar}</div>
1874
1878
  ${BgWidget.textArea({
1875
1879
  gvc,
1876
1880
  title: '',
@@ -2122,18 +2122,23 @@ export class UserList {
2122
2122
  ...customerForm.list,
2123
2123
  ];
2124
2124
 
2125
+ const requireKeys = ['name', 'email', 'phone', 'birth'];
2126
+
2125
2127
  function loopForm(dataArray: any[], refer_obj: any): string {
2126
2128
  return dataArray
2127
2129
  .map(item => {
2128
2130
  const { title, key, page } = item;
2129
2131
  const value = refer_obj[key] || '';
2130
2132
  const isReadonly = vmi.mode !== 'edit';
2133
+ const addRequiredStar = requireKeys.includes(key)
2134
+ ? BgWidget.requiredStar()
2135
+ : '';
2131
2136
 
2132
2137
  switch (page) {
2133
2138
  case 'input':
2134
2139
  return html`
2135
2140
  <div>
2136
- <div class="tx_normal">${title}</div>
2141
+ <div class="tx_normal">${title} ${addRequiredStar}</div>
2137
2142
  <div>
2138
2143
  ${BgWidget.editeInput({
2139
2144
  gvc,
@@ -2149,7 +2154,7 @@ export class UserList {
2149
2154
  case 'multiple_line_text':
2150
2155
  return html`
2151
2156
  <div>
2152
- <div class="tx_normal">${title}</div>
2157
+ <div class="tx_normal">${title} ${addRequiredStar}</div>
2153
2158
  ${BgWidget.textArea({
2154
2159
  gvc,
2155
2160
  title: '',
@@ -103,7 +103,7 @@ export class UserLoginSetting {
103
103
  <div class="ms-auto" style="right: 0px;top: 0px;">
104
104
  <div
105
105
  class="btn-sm bt_primary bt_c39 fs-sm fw-500"
106
- style=""
106
+
107
107
  onclick="${gvc.event(() => {
108
108
  EditorElem.openEditorDialog(gvc, (gvc) => {
109
109
  return gvc.bindView(() => {
@@ -111,7 +111,7 @@ export class UserLoginSetting {
111
111
  <div class="ms-auto" style="right: 0px;top: 0px;">
112
112
  <div
113
113
  class="btn-sm bt_primary bt_c39 fs-sm fw-500"
114
- style=""
114
+
115
115
  onclick="${gvc.event(() => {
116
116
  EditorElem.openEditorDialog(
117
117
  gvc,
@@ -49,7 +49,7 @@ export class WalletList {
49
49
  note: '',
50
50
  };
51
51
  return html `<div class="modal-content bg-white rounded-3 p-2" style="max-width:90%;width:400px;">
52
- <div class="">
52
+ <div >
53
53
  ${gvc.bindView(() => {
54
54
  const id = gvc.glitter.getUUID();
55
55
  return {
@@ -466,7 +466,7 @@ export class WalletList {
466
466
  vm.data = vm.dataList[index];
467
467
  gvc.glitter.innerDialog((gvc2) => {
468
468
  return html `<div class="modal-content bg-white rounded-3 p-2" style="max-width:90%;width:400px;">
469
- <div class="">
469
+ <div >
470
470
  ${gvc.bindView(() => {
471
471
  const id = gvc.glitter.getUUID();
472
472
  return {
@@ -749,7 +749,7 @@ export class WalletList {
749
749
  note: '',
750
750
  };
751
751
  return `<div class="modal-content bg-white rounded-3 p-2" style="max-width:90%;width:400px;">
752
- <div class="">
752
+ <div >
753
753
  ${gvc.bindView(() => {
754
754
  const id = gvc.glitter.getUUID();
755
755
  return {
@@ -51,7 +51,7 @@ export class WalletList {
51
51
  note: '',
52
52
  };
53
53
  return html`<div class="modal-content bg-white rounded-3 p-2" style="max-width:90%;width:400px;">
54
- <div class="">
54
+ <div >
55
55
  ${gvc.bindView(() => {
56
56
  const id = gvc.glitter.getUUID();
57
57
  return {
@@ -490,7 +490,7 @@ export class WalletList {
490
490
  vm.data = vm.dataList[index];
491
491
  gvc.glitter.innerDialog((gvc2) => {
492
492
  return html`<div class="modal-content bg-white rounded-3 p-2" style="max-width:90%;width:400px;">
493
- <div class="">
493
+ <div >
494
494
  ${gvc.bindView(() => {
495
495
  const id = gvc.glitter.getUUID();
496
496
  return {
@@ -790,7 +790,7 @@ export class WalletList {
790
790
  note: '',
791
791
  };
792
792
  return `<div class="modal-content bg-white rounded-3 p-2" style="max-width:90%;width:400px;">
793
- <div class="">
793
+ <div >
794
794
  ${gvc.bindView(() => {
795
795
  const id = gvc.glitter.getUUID();
796
796
  return {
@@ -30,7 +30,7 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
30
30
  style="background-color: rgba(0,0,0,0.5);">
31
31
  <div class="bg-white rounded-3">
32
32
  <div class="w-100 d-flex align-items-center border-bottom justify-content-center position-relative py-3"
33
- style="">
33
+ >
34
34
  <h3 class="modal-title fs-5">選擇添加項目類型</h3>
35
35
  <i class="fa-solid fa-xmark text-dark position-absolute "
36
36
  style="font-size:20px;transform: translateY(-50%);right: 20px;top: 50%;cursor: pointer;"
@@ -69,7 +69,7 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
69
69
  background-clip: text;
70
70
  -webkit-background-clip: text;
71
71
  color: transparent;" aria-hidden="true"></i>
72
- <h3 class=" h5 mb-1 " style="">${dd.title}</h3>
72
+ <h3 class=" h5 mb-1 " >${dd.title}</h3>
73
73
  <div class="mb-1 w-100 px-2 mb-2" style="font-size:13px;white-space: normal;">${dd.desc}</div>
74
74
  <button class=" btn btn-primary-c " style="height: 30px;width: 60px;" onclick="${gvc.event(() => {
75
75
  vm.type = 'select';
@@ -114,7 +114,7 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
114
114
  ><i class="fa-sharp fa-regular fa-circle-xmark"></i>
115
115
  </div>
116
116
  </div>
117
- <div class="d-flex " style="">
117
+ <div class="d-flex " >
118
118
  <div>
119
119
  ${userMode(gvc, gvc.glitter.getUUID(), vm.searchText, vm.addType)}
120
120
  </div>
@@ -133,7 +133,7 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
133
133
  return `
134
134
  <div class="w-100 h-100 d-flex flex-column align-items-center justify-content-center" style="background-color: rgba(0,0,0,0.5);" >
135
135
  <div class="m-auto rounded shadow bg-white" style="max-width: 100%;max-height: 100%;width: 360px;">
136
- <div class="w-100 d-flex align-items-center border-bottom justify-content-center position-relative py-3" style="">
136
+ <div class="w-100 d-flex align-items-center border-bottom justify-content-center position-relative py-3" >
137
137
  <h3 class="modal-title fs-5" >添加頁面</h3>
138
138
  <i class="fa-solid fa-xmark text-dark position-absolute " style="font-size:20px;transform: translateY(-50%);right: 20px;top: 50%;cursor: pointer;"
139
139
  onclick="${gvc.event(() => {
@@ -456,11 +456,11 @@ function userMode(gvc, id, searchText, type) {
456
456
  <div class="modal-content bg-white rounded-3 p-3 "
457
457
  style="max-width:90%;width:400px;;">
458
458
  <div class=" "
459
- style="">
459
+ >
460
460
  <div class="ps-1 pe-1 "
461
- style="">
461
+ >
462
462
  <div class="mb-3 "
463
- style="">
463
+ >
464
464
  <label class="form-label mb-3 "
465
465
  style="color: black;"
466
466
  for="username">${title}標籤</label>
@@ -511,7 +511,7 @@ function userMode(gvc, id, searchText, type) {
511
511
  style="justify-content: end;"
512
512
  >
513
513
  <button class="btn btn-outline-dark me-2 "
514
- style=""
514
+
515
515
  type="button"
516
516
  onclick="${gvc.event(() => {
517
517
  gvc.closeDialog();
@@ -519,7 +519,7 @@ function userMode(gvc, id, searchText, type) {
519
519
  取消
520
520
  </button>
521
521
  <button class="btn btn-primary-c "
522
- style=""
522
+
523
523
  type="button"
524
524
  onclick="${gvc.event(() => {
525
525
  const dialog = new ShareDialog(gvc.glitter);
@@ -29,7 +29,7 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
29
29
  style="background-color: rgba(0,0,0,0.5);">
30
30
  <div class="bg-white rounded-3">
31
31
  <div class="w-100 d-flex align-items-center border-bottom justify-content-center position-relative py-3"
32
- style="">
32
+ >
33
33
  <h3 class="modal-title fs-5">選擇添加項目類型</h3>
34
34
  <i class="fa-solid fa-xmark text-dark position-absolute "
35
35
  style="font-size:20px;transform: translateY(-50%);right: 20px;top: 50%;cursor: pointer;"
@@ -68,7 +68,7 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
68
68
  background-clip: text;
69
69
  -webkit-background-clip: text;
70
70
  color: transparent;" aria-hidden="true"></i>
71
- <h3 class=" h5 mb-1 " style="">${dd.title}</h3>
71
+ <h3 class=" h5 mb-1 " >${dd.title}</h3>
72
72
  <div class="mb-1 w-100 px-2 mb-2" style="font-size:13px;white-space: normal;">${dd.desc}</div>
73
73
  <button class=" btn btn-primary-c " style="height: 30px;width: 60px;" onclick="${gvc.event(() => {
74
74
  vm.type = 'select'
@@ -112,7 +112,7 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
112
112
  ><i class="fa-sharp fa-regular fa-circle-xmark"></i>
113
113
  </div>
114
114
  </div>
115
- <div class="d-flex " style="">
115
+ <div class="d-flex " >
116
116
  <div>
117
117
  ${userMode(
118
118
  gvc, gvc.glitter.getUUID(), vm.searchText, vm.addType
@@ -141,7 +141,7 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
141
141
  return `
142
142
  <div class="w-100 h-100 d-flex flex-column align-items-center justify-content-center" style="background-color: rgba(0,0,0,0.5);" >
143
143
  <div class="m-auto rounded shadow bg-white" style="max-width: 100%;max-height: 100%;width: 360px;">
144
- <div class="w-100 d-flex align-items-center border-bottom justify-content-center position-relative py-3" style="">
144
+ <div class="w-100 d-flex align-items-center border-bottom justify-content-center position-relative py-3" >
145
145
  <h3 class="modal-title fs-5" >添加頁面</h3>
146
146
  <i class="fa-solid fa-xmark text-dark position-absolute " style="font-size:20px;transform: translateY(-50%);right: 20px;top: 50%;cursor: pointer;"
147
147
  onclick="${gvc.event(() => {
@@ -484,11 +484,11 @@ function userMode(gvc: GVC, id: string, searchText: string, type: "page" | 'modu
484
484
  <div class="modal-content bg-white rounded-3 p-3 "
485
485
  style="max-width:90%;width:400px;;">
486
486
  <div class=" "
487
- style="">
487
+ >
488
488
  <div class="ps-1 pe-1 "
489
- style="">
489
+ >
490
490
  <div class="mb-3 "
491
- style="">
491
+ >
492
492
  <label class="form-label mb-3 "
493
493
  style="color: black;"
494
494
  for="username">${title}標籤</label>
@@ -539,7 +539,7 @@ function userMode(gvc: GVC, id: string, searchText: string, type: "page" | 'modu
539
539
  style="justify-content: end;"
540
540
  >
541
541
  <button class="btn btn-outline-dark me-2 "
542
- style=""
542
+
543
543
  type="button"
544
544
  onclick="${gvc.event(() => {
545
545
  gvc.closeDialog()
@@ -547,7 +547,7 @@ function userMode(gvc: GVC, id: string, searchText: string, type: "page" | 'modu
547
547
  取消
548
548
  </button>
549
549
  <button class="btn btn-primary-c "
550
- style=""
550
+
551
551
  type="button"
552
552
  onclick="${gvc.event(() => {
553
553
  const dialog = new ShareDialog(gvc.glitter)
@@ -7,7 +7,7 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
7
7
  var _a, _b;
8
8
  switch (gBundle.type) {
9
9
  case 'dataLoading':
10
- return `<div class="vw-100 vh-100 d-flex align-items-center justify-content-center" style="" ><div class=" m-auto rounded-3 shadow" style=" width: 200px;background: white;padding: 24px;display: flex;align-items: center;justify-content: center;flex-direction: column; " ><div class=" spinner-border" style=" font-size: 50px;color: #393939; " ></div><div class=" mt-3 fs-6 fw-500" style=" color: #393939; " >載入中...</div></div></div>`;
10
+ return `<div class="vw-100 vh-100 d-flex align-items-center justify-content-center" ><div class=" m-auto rounded-3 shadow" style=" width: 200px;background: white;padding: 24px;display: flex;align-items: center;justify-content: center;flex-direction: column; " ><div class=" spinner-border" style=" font-size: 50px;color: #393939; " ></div><div class=" mt-3 fs-6 fw-500" style=" color: #393939; " >載入中...</div></div></div>`;
11
11
  case 'errorMessage':
12
12
  return `<div class="vw-100 vh-100 position-fixed top-0 left-0" style="background-color: rgba(0,0,0,0.5);z-index: 10000;">
13
13
  <div class="bg-white rounded" style="width: 150px;position: absolute;z-index: 999;transform: translate(-50%,-50%);left: 50%;top:50%;">
@@ -7,7 +7,7 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
7
7
  onCreateView: () => {
8
8
  switch (gBundle.type) {
9
9
  case 'dataLoading':
10
- return `<div class="vw-100 vh-100 d-flex align-items-center justify-content-center" style="" ><div class=" m-auto rounded-3 shadow" style=" width: 200px;background: white;padding: 24px;display: flex;align-items: center;justify-content: center;flex-direction: column; " ><div class=" spinner-border" style=" font-size: 50px;color: #393939; " ></div><div class=" mt-3 fs-6 fw-500" style=" color: #393939; " >載入中...</div></div></div>`;
10
+ return `<div class="vw-100 vh-100 d-flex align-items-center justify-content-center" ><div class=" m-auto rounded-3 shadow" style=" width: 200px;background: white;padding: 24px;display: flex;align-items: center;justify-content: center;flex-direction: column; " ><div class=" spinner-border" style=" font-size: 50px;color: #393939; " ></div><div class=" mt-3 fs-6 fw-500" style=" color: #393939; " >載入中...</div></div></div>`;
11
11
 
12
12
  case 'errorMessage':
13
13
  return `<div class="vw-100 vh-100 position-fixed top-0 left-0" style="background-color: rgba(0,0,0,0.5);z-index: 10000;">