ts-glitter 19.6.8 → 19.7.0

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 (29) hide show
  1. package/lowcode/Entry.js +1 -1
  2. package/lowcode/Entry.ts +1 -1
  3. package/lowcode/backend-manager/bg-widget.js +27 -27
  4. package/lowcode/backend-manager/bg-widget.ts +27 -27
  5. package/lowcode/cms-plugin/POS-setting.js +656 -637
  6. package/lowcode/cms-plugin/POS-setting.ts +1181 -1213
  7. package/lowcode/cms-plugin/module/product-excel.js +1 -0
  8. package/lowcode/cms-plugin/module/product-excel.ts +1 -0
  9. package/lowcode/cms-plugin/module/product-setting.js +377 -392
  10. package/lowcode/cms-plugin/module/product-setting.ts +601 -649
  11. package/lowcode/cms-plugin/product-service.js +38 -19
  12. package/lowcode/cms-plugin/product-service.ts +120 -94
  13. package/lowcode/cms-plugin/shopping-information.js +5 -6
  14. package/lowcode/cms-plugin/shopping-information.ts +21 -19
  15. package/lowcode/cms-plugin/shopping-order-manager.js +44 -38
  16. package/lowcode/cms-plugin/shopping-order-manager.ts +31 -20
  17. package/lowcode/cms-plugin/shopping-product-setting.js +176 -213
  18. package/lowcode/cms-plugin/shopping-product-setting.ts +222 -236
  19. package/lowcode/cms-plugin/shopping-setting-basic.js +48 -41
  20. package/lowcode/cms-plugin/shopping-setting-basic.ts +64 -46
  21. package/lowcode/glitter-base/global/language.js +1 -0
  22. package/lowcode/glitter-base/global/language.ts +1 -0
  23. package/lowcode/public-components/user-manager/um-order.js +8 -2
  24. package/lowcode/public-components/user-manager/um-order.ts +7 -2
  25. package/lowcode/public-models/product.ts +2 -2
  26. package/package.json +1 -1
  27. package/src/api-public/services/shopping.js +24 -6
  28. package/src/api-public/services/shopping.js.map +1 -1
  29. package/src/api-public/services/shopping.ts +41 -9
package/lowcode/Entry.js CHANGED
@@ -141,7 +141,7 @@ export class Entry {
141
141
  }
142
142
  window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : createClock();
143
143
  console.log(`Entry-time:`, window.renderClock.stop());
144
- glitter.share.editerVersion = 'V_19.6.8';
144
+ glitter.share.editerVersion = 'V_19.7.0';
145
145
  glitter.share.start = new Date();
146
146
  const vm = { appConfig: [] };
147
147
  window.saasConfig = {
package/lowcode/Entry.ts CHANGED
@@ -140,7 +140,7 @@ export class Entry {
140
140
  }
141
141
  (window as any).renderClock = (window as any).renderClock ?? createClock();
142
142
  console.log(`Entry-time:`, (window as any).renderClock.stop());
143
- glitter.share.editerVersion = 'V_19.6.8';
143
+ glitter.share.editerVersion = 'V_19.7.0';
144
144
  glitter.share.start = new Date();
145
145
  const vm = { appConfig: [] };
146
146
  (window as any).saasConfig = {
@@ -3946,7 +3946,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3946
3946
  return `"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='16' height='16' rx='8' fill='${color}'/%3e%3crect x='4' y='4' width='8' height='8' rx='4' fill='white'/%3e%3c/svg%3e"`;
3947
3947
  }
3948
3948
  static getCheckedClass(gvc, color) {
3949
- const className = 'checked-image';
3949
+ const className = color ? 'checked-image' : 'checked-image-readonly';
3950
3950
  gvc.addStyle(`
3951
3951
  .${className} {
3952
3952
  min-width: 1.25rem;
@@ -3962,7 +3962,7 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3962
3962
  return className;
3963
3963
  }
3964
3964
  static getSquareClass(gvc, color) {
3965
- const className = 'square-image';
3965
+ const className = color ? 'square-image' : 'square-image-readonly';
3966
3966
  gvc.addStyle(`
3967
3967
  .${className} {
3968
3968
  min-width: 1.25rem;
@@ -3978,35 +3978,35 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
3978
3978
  static getDarkDotClass(gvc) {
3979
3979
  const className = 'dark-dot-image';
3980
3980
  gvc.addStyle(`
3981
- .${className} {
3982
- min-width: 1.15rem;
3983
- min-height: 1.15rem;
3984
- margin-right: 4px;
3985
- }
3986
- .${className}:checked[type='radio'] {
3987
- border: 2px solid #000;
3988
- background-color: #fff;
3989
- background-image: url(${this.darkDotDataImage('#000')});
3990
- background-position: center center;
3991
- }
3992
- `);
3981
+ .${className} {
3982
+ min-width: 1.15rem;
3983
+ min-height: 1.15rem;
3984
+ margin-right: 4px;
3985
+ }
3986
+ .${className}:checked[type='radio'] {
3987
+ border: 2px solid #000;
3988
+ background-color: #fff;
3989
+ background-image: url(${this.darkDotDataImage('#000')});
3990
+ background-position: center center;
3991
+ }
3992
+ `);
3993
3993
  return className;
3994
3994
  }
3995
3995
  static getWhiteDotClass(gvc, color) {
3996
- const className = 'white-dot-image';
3996
+ const className = color ? 'white-dot-image' : 'white-dot-image-readonly';
3997
3997
  gvc.addStyle(`
3998
- .${className} {
3999
- min-width: 1.15rem;
4000
- min-height: 1.15rem;
4001
- margin-right: 4px;
4002
- }
4003
- .${className}:checked[type='radio'] {
4004
- border: 0px solid #000;
4005
- background-color: #fff;
4006
- background-image: url(${this.whiteDotDataImage(color !== null && color !== void 0 ? color : '#000')});
4007
- background-position: center center;
4008
- }
4009
- `);
3998
+ .${className} {
3999
+ min-width: 1.15rem;
4000
+ min-height: 1.15rem;
4001
+ margin-right: 4px;
4002
+ }
4003
+ .${className}:checked[type='radio'] {
4004
+ border: 0px solid #000;
4005
+ background-color: #fff;
4006
+ background-image: url(${this.whiteDotDataImage(color !== null && color !== void 0 ? color : '#000')});
4007
+ background-position: center center;
4008
+ }
4009
+ `);
4010
4010
  return className;
4011
4011
  }
4012
4012
  static isImageUrlValid(url) {
@@ -4676,7 +4676,7 @@ ${obj.default ?? ''}</textarea
4676
4676
  }
4677
4677
 
4678
4678
  static getCheckedClass(gvc: GVC, color?: string) {
4679
- const className = 'checked-image';
4679
+ const className = color ? 'checked-image' : 'checked-image-readonly';
4680
4680
  gvc.addStyle(`
4681
4681
  .${className} {
4682
4682
  min-width: 1.25rem;
@@ -4693,7 +4693,7 @@ ${obj.default ?? ''}</textarea
4693
4693
  }
4694
4694
 
4695
4695
  static getSquareClass(gvc: GVC, color?: string) {
4696
- const className = 'square-image';
4696
+ const className = color ? 'square-image' : 'square-image-readonly';
4697
4697
  gvc.addStyle(`
4698
4698
  .${className} {
4699
4699
  min-width: 1.25rem;
@@ -4710,36 +4710,36 @@ ${obj.default ?? ''}</textarea
4710
4710
  static getDarkDotClass(gvc: GVC) {
4711
4711
  const className = 'dark-dot-image';
4712
4712
  gvc.addStyle(`
4713
- .${className} {
4714
- min-width: 1.15rem;
4715
- min-height: 1.15rem;
4716
- margin-right: 4px;
4717
- }
4718
- .${className}:checked[type='radio'] {
4719
- border: 2px solid #000;
4720
- background-color: #fff;
4721
- background-image: url(${this.darkDotDataImage('#000')});
4722
- background-position: center center;
4723
- }
4724
- `);
4713
+ .${className} {
4714
+ min-width: 1.15rem;
4715
+ min-height: 1.15rem;
4716
+ margin-right: 4px;
4717
+ }
4718
+ .${className}:checked[type='radio'] {
4719
+ border: 2px solid #000;
4720
+ background-color: #fff;
4721
+ background-image: url(${this.darkDotDataImage('#000')});
4722
+ background-position: center center;
4723
+ }
4724
+ `);
4725
4725
  return className;
4726
4726
  }
4727
4727
 
4728
4728
  static getWhiteDotClass(gvc: GVC, color?: string) {
4729
- const className = 'white-dot-image';
4729
+ const className = color ? 'white-dot-image' : 'white-dot-image-readonly';
4730
4730
  gvc.addStyle(`
4731
- .${className} {
4732
- min-width: 1.15rem;
4733
- min-height: 1.15rem;
4734
- margin-right: 4px;
4735
- }
4736
- .${className}:checked[type='radio'] {
4737
- border: 0px solid #000;
4738
- background-color: #fff;
4739
- background-image: url(${this.whiteDotDataImage(color ?? '#000')});
4740
- background-position: center center;
4741
- }
4742
- `);
4731
+ .${className} {
4732
+ min-width: 1.15rem;
4733
+ min-height: 1.15rem;
4734
+ margin-right: 4px;
4735
+ }
4736
+ .${className}:checked[type='radio'] {
4737
+ border: 0px solid #000;
4738
+ background-color: #fff;
4739
+ background-image: url(${this.whiteDotDataImage(color ?? '#000')});
4740
+ background-position: center center;
4741
+ }
4742
+ `);
4743
4743
  return className;
4744
4744
  }
4745
4745