ts-glitter 22.4.7 → 22.4.9

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 (98) hide show
  1. package/lib/glitterBundle/Glitter.css +74 -62
  2. package/lowcode/Entry.js +1 -1
  3. package/lowcode/Entry.ts +1 -1
  4. package/lowcode/backend-manager/bg-product.js +49 -32
  5. package/lowcode/backend-manager/bg-product.ts +57 -39
  6. package/lowcode/backend-manager/bg-widget.js +17 -0
  7. package/lowcode/backend-manager/bg-widget.ts +18 -0
  8. package/lowcode/cms-plugin/information/information-module.js +5 -5
  9. package/lowcode/cms-plugin/information/information-module.ts +9 -5
  10. package/lowcode/cms-plugin/menus-setting.js +69 -55
  11. package/lowcode/cms-plugin/menus-setting.ts +77 -61
  12. package/lowcode/cms-plugin/module/form-module.js +109 -89
  13. package/lowcode/cms-plugin/module/form-module.ts +680 -650
  14. package/lowcode/cms-plugin/module/product-excel.js +1 -0
  15. package/lowcode/cms-plugin/module/product-excel.ts +2 -0
  16. package/lowcode/cms-plugin/pos-pages/payment-page.js +28 -10
  17. package/lowcode/cms-plugin/pos-pages/payment-page.ts +29 -10
  18. package/lowcode/cms-plugin/shopping-allowance-manager.js +0 -1
  19. package/lowcode/cms-plugin/shopping-allowance-manager.ts +0 -1
  20. package/lowcode/cms-plugin/shopping-collections.js +367 -193
  21. package/lowcode/cms-plugin/shopping-collections.ts +664 -243
  22. package/lowcode/cms-plugin/shopping-information.js +392 -38
  23. package/lowcode/cms-plugin/shopping-information.ts +479 -87
  24. package/lowcode/cms-plugin/shopping-product-setting.js +2 -2
  25. package/lowcode/cms-plugin/shopping-product-setting.ts +2 -2
  26. package/lowcode/cms-plugin/shopping-setting-advance.js +906 -766
  27. package/lowcode/cms-plugin/shopping-setting-advance.ts +977 -841
  28. package/lowcode/cms-plugin/shopping-setting-basic.js +1547 -1285
  29. package/lowcode/cms-plugin/shopping-setting-basic.ts +1742 -1466
  30. package/lowcode/cms-plugin/stock-stores.js +1 -0
  31. package/lowcode/cms-plugin/stock-stores.ts +1 -0
  32. package/lowcode/cms-plugin/user-list.js +47 -12
  33. package/lowcode/cms-plugin/user-list.ts +52 -14
  34. package/lowcode/css/editor.css +6 -0
  35. package/lowcode/glitterBundle/Glitter.css +74 -62
  36. package/lowcode/jslib/nestable/index.html +317 -0
  37. package/lowcode/jslib/nestable/jquery.nestable.js +484 -0
  38. package/lowcode/official_view_component/form-widget/input-custom.js +98 -6
  39. package/lowcode/official_view_component/form-widget/input-custom.ts +121 -16
  40. package/lowcode/public-components/headers/header-class.js +63 -0
  41. package/lowcode/public-components/headers/header-class.ts +65 -0
  42. package/lowcode/public-components/headers/sy-02.js +386 -400
  43. package/lowcode/public-components/headers/sy-02.ts +482 -492
  44. package/lowcode/public-components/headers/sy-03.js +42 -43
  45. package/lowcode/public-components/headers/sy-03.ts +46 -43
  46. package/lowcode/public-components/headers/sy-04.js +43 -41
  47. package/lowcode/public-components/headers/sy-04.ts +48 -41
  48. package/lowcode/public-components/headers/sy-05.js +30 -27
  49. package/lowcode/public-components/headers/sy-05.ts +33 -27
  50. package/lowcode/public-components/product/product-list.js +160 -148
  51. package/lowcode/public-components/product/product-list.ts +186 -165
  52. package/lowcode/public-models/product.ts +26 -1
  53. package/lowcode/src/glitterBundle/Glitter.css +74 -62
  54. package/package.json +1 -1
  55. package/rxmnt81tnk.json +1 -0
  56. package/src/api-public/controllers/shop.js +10 -4
  57. package/src/api-public/controllers/shop.js.map +1 -1
  58. package/src/api-public/controllers/shop.ts +14 -9
  59. package/src/api-public/services/ezpay/tool.d.ts +1 -0
  60. package/src/api-public/services/mail.js +1 -1
  61. package/src/api-public/services/mail.js.map +1 -1
  62. package/src/api-public/services/mail.ts +1 -1
  63. package/src/api-public/services/schedule.d.ts +0 -1
  64. package/src/api-public/services/schedule.js +12 -35
  65. package/src/api-public/services/schedule.js.map +1 -1
  66. package/src/api-public/services/schedule.ts +15 -39
  67. package/src/api-public/services/shopee.js +7 -17
  68. package/src/api-public/services/shopping.d.ts +27 -6
  69. package/src/api-public/services/shopping.js +364 -85
  70. package/src/api-public/services/shopping.js.map +1 -1
  71. package/src/api-public/services/shopping.ts +510 -101
  72. package/src/api-public/services/updated-table-checked.js +58 -1
  73. package/src/api-public/services/updated-table-checked.js.map +1 -1
  74. package/src/api-public/services/updated-table-checked.ts +62 -1
  75. package/src/api-public/services/user-update.js +14 -0
  76. package/src/api-public/services/user-update.js.map +1 -1
  77. package/src/api-public/services/user-update.ts +15 -0
  78. package/src/api-public/services/user.js +1 -1
  79. package/src/api-public/services/user.js.map +1 -1
  80. package/src/api-public/services/user.ts +1 -1
  81. package/src/app-project/serverless/src/modules/database.d.ts +1 -1
  82. package/src/app-project/serverless/src/modules/redis.d.ts +1 -1
  83. package/src/helper/glitter-util.d.ts +1 -0
  84. package/src/index.js +7 -5
  85. package/src/index.js.map +1 -1
  86. package/src/index.ts +45 -38
  87. package/src/modules/firebase.js +1 -0
  88. package/src/modules/firebase.js.map +1 -1
  89. package/src/modules/firebase.ts +1 -0
  90. package/src/seo-config.d.ts +1 -1
  91. package/src/seo-config.js +1 -2
  92. package/src/seo-config.js.map +1 -1
  93. package/src/seo-config.ts +1 -2
  94. package/src/services/saas-table-check.js.map +1 -1
  95. package/src/services/ses.js +4 -3
  96. package/src/services/ses.js.map +1 -1
  97. package/src/services/system-schedule.js.map +1 -1
  98. package/src/services/system-schedule.ts +1 -0
@@ -503,6 +503,7 @@ export class ProductExcel {
503
503
  static getSupportProductCategory() {
504
504
  var _a, _b;
505
505
  const productCategories = [
506
+ { key: 'reserve', value: '預約系統', compare: 'reserve' },
506
507
  { key: 'course', value: '課程販售', compare: 'teaching' },
507
508
  { key: 'commodity', value: '零售商品', compare: 'shop' },
508
509
  { key: 'kitchen', value: '餐飲組合', compare: 'kitchen' },
@@ -616,6 +616,8 @@ export class ProductExcel {
616
616
 
617
617
  static getSupportProductCategory() {
618
618
  const productCategories = [
619
+
620
+ { key: 'reserve', value: '預約系統', compare: 'reserve' },
619
621
  { key: 'course', value: '課程販售', compare: 'teaching' },
620
622
  { key: 'commodity', value: '零售商品', compare: 'shop' },
621
623
  { key: 'kitchen', value: '餐飲組合', compare: 'kitchen' },
@@ -29,6 +29,7 @@ import { UmClass } from '../../public-components/user-manager/um-class.js';
29
29
  import { FormCheck } from '../module/form-check.js';
30
30
  import { ShipmentConfig } from '../../glitter-base/global/shipment-config.js';
31
31
  import { Tool } from '../../modules/tool.js';
32
+ import InputCustom from '../../official_view_component/form-widget/input-custom.js';
32
33
  const html = String.raw;
33
34
  export class PaymentPage {
34
35
  static checkout(params) {
@@ -826,21 +827,38 @@ export class PaymentPage {
826
827
  }
827
828
  switch (item.page) {
828
829
  case 'input':
829
- h += html ` <div>
830
+ if (item.form_config && item.form_config.type === 'date') {
831
+ h += InputCustom.globalUse({
832
+ gvc: gvc,
833
+ title: item.title,
834
+ title_class: `tx_normal`,
835
+ input_class: `form-control`,
836
+ input_style: `background:white !important;`,
837
+ value: refer_obj[item.key] || '',
838
+ callback: (text) => {
839
+ refer_obj[item.key] = text;
840
+ },
841
+ place_holder: `請輸入${item.title}`,
842
+ type: 'date'
843
+ });
844
+ }
845
+ else {
846
+ h += html ` <div>
830
847
  <div class="tx_normal">${item.title}</div>
831
848
  <div>
832
849
  ${BgWidget.editeInput({
833
- gvc: gvc,
834
- title: '',
835
- default: refer_obj[item.key] || '',
836
- placeHolder: `請輸入${item.title}`,
837
- callback: text => {
838
- refer_obj[item.key] = text;
839
- },
840
- readonly: false,
841
- })}
850
+ gvc: gvc,
851
+ title: '',
852
+ default: refer_obj[item.key] || '',
853
+ placeHolder: `請輸入${item.title}`,
854
+ callback: text => {
855
+ refer_obj[item.key] = text;
856
+ },
857
+ readonly: false,
858
+ })}
842
859
  </div>
843
860
  </div>`;
861
+ }
844
862
  break;
845
863
  case 'multiple_line_text':
846
864
  h += html ` <div>
@@ -21,6 +21,7 @@ import { UmClass } from '../../public-components/user-manager/um-class.js';
21
21
  import { FormCheck } from '../module/form-check.js';
22
22
  import { ShipmentConfig } from '../../glitter-base/global/shipment-config.js';
23
23
  import { Tool } from '../../modules/tool.js';
24
+ import InputCustom from '../../official_view_component/form-widget/input-custom.js';
24
25
 
25
26
  const html = String.raw;
26
27
 
@@ -910,21 +911,39 @@ export class PaymentPage {
910
911
  }
911
912
  switch (item.page) {
912
913
  case 'input':
913
- h += html` <div>
914
+ if(item.form_config && item.form_config.type==='date'){
915
+ h+= InputCustom.globalUse({
916
+ gvc:gvc,
917
+ title:item.title,
918
+ title_class:`tx_normal`,
919
+ input_class:`form-control`,
920
+ input_style:`background:white !important;`,
921
+ value:refer_obj[item.key] || '',
922
+ callback:(text)=>{
923
+ refer_obj[item.key] = text;
924
+ // gvc.notifyDataChange(id);
925
+ },
926
+ place_holder:`請輸入${item.title}`,
927
+ type:'date'
928
+ })
929
+ }else {
930
+ h += html` <div>
914
931
  <div class="tx_normal">${item.title}</div>
915
932
  <div>
916
933
  ${BgWidget.editeInput({
917
- gvc: gvc,
918
- title: '',
919
- default: refer_obj[item.key] || '',
920
- placeHolder: `請輸入${item.title}`,
921
- callback: text => {
922
- refer_obj[item.key] = text;
923
- },
924
- readonly: false,
925
- })}
934
+ gvc: gvc,
935
+ title: '',
936
+ default: refer_obj[item.key] || '',
937
+ placeHolder: `請輸入${item.title}`,
938
+ callback: text => {
939
+ refer_obj[item.key] = text;
940
+ },
941
+ readonly: false,
942
+ })}
926
943
  </div>
927
944
  </div>`;
945
+ }
946
+
928
947
  break;
929
948
  case 'multiple_line_text':
930
949
  h += html` <div>
@@ -327,7 +327,6 @@ export class ShoppingAllowanceManager {
327
327
  });
328
328
  });
329
329
  }
330
- console.log(data.response);
331
330
  vm.dataList = data.response.data;
332
331
  vmi.pageSize = Math.ceil(data.response.total / vm.listLimit);
333
332
  vmi.originalData = vm.dataList;
@@ -385,7 +385,6 @@ export class ShoppingAllowanceManager {
385
385
  });
386
386
  }
387
387
 
388
- console.log(data.response);
389
388
  vm.dataList = data.response.data;
390
389
  vmi.pageSize = Math.ceil(data.response.total / vm.listLimit);
391
390
  vmi.originalData = vm.dataList;