ts-glitter 22.4.6 → 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.
- package/lib/glitterBundle/Glitter.css +74 -62
- package/lowcode/Entry.js +1 -1
- package/lowcode/Entry.ts +1 -1
- package/lowcode/backend-manager/bg-product.js +49 -32
- package/lowcode/backend-manager/bg-product.ts +57 -39
- package/lowcode/backend-manager/bg-widget.js +17 -0
- package/lowcode/backend-manager/bg-widget.ts +18 -0
- package/lowcode/cms-plugin/information/information-module.js +5 -5
- package/lowcode/cms-plugin/information/information-module.ts +9 -5
- package/lowcode/cms-plugin/menus-setting.js +69 -55
- package/lowcode/cms-plugin/menus-setting.ts +77 -61
- package/lowcode/cms-plugin/module/form-module.js +109 -89
- package/lowcode/cms-plugin/module/form-module.ts +680 -650
- package/lowcode/cms-plugin/module/product-excel.js +1 -0
- package/lowcode/cms-plugin/module/product-excel.ts +2 -0
- package/lowcode/cms-plugin/pos-pages/payment-page.js +28 -10
- package/lowcode/cms-plugin/pos-pages/payment-page.ts +29 -10
- package/lowcode/cms-plugin/shopping-allowance-manager.js +0 -1
- package/lowcode/cms-plugin/shopping-allowance-manager.ts +0 -1
- package/lowcode/cms-plugin/shopping-collections.js +367 -193
- package/lowcode/cms-plugin/shopping-collections.ts +664 -243
- package/lowcode/cms-plugin/shopping-information.js +392 -38
- package/lowcode/cms-plugin/shopping-information.ts +479 -87
- package/lowcode/cms-plugin/shopping-product-setting.js +2 -2
- package/lowcode/cms-plugin/shopping-product-setting.ts +2 -2
- package/lowcode/cms-plugin/shopping-setting-advance.js +906 -766
- package/lowcode/cms-plugin/shopping-setting-advance.ts +977 -841
- package/lowcode/cms-plugin/shopping-setting-basic.js +1547 -1285
- package/lowcode/cms-plugin/shopping-setting-basic.ts +1742 -1466
- package/lowcode/cms-plugin/stock-stores.js +1 -0
- package/lowcode/cms-plugin/stock-stores.ts +1 -0
- package/lowcode/cms-plugin/user-list.js +47 -12
- package/lowcode/cms-plugin/user-list.ts +52 -14
- package/lowcode/css/editor.css +6 -0
- package/lowcode/glitterBundle/Glitter.css +74 -62
- package/lowcode/jslib/nestable/index.html +317 -0
- package/lowcode/jslib/nestable/jquery.nestable.js +484 -0
- package/lowcode/official_view_component/form-widget/input-custom.js +98 -6
- package/lowcode/official_view_component/form-widget/input-custom.ts +121 -16
- package/lowcode/public-components/headers/header-class.js +63 -0
- package/lowcode/public-components/headers/header-class.ts +65 -0
- package/lowcode/public-components/headers/sy-02.js +386 -400
- package/lowcode/public-components/headers/sy-02.ts +482 -492
- package/lowcode/public-components/headers/sy-03.js +42 -43
- package/lowcode/public-components/headers/sy-03.ts +46 -43
- package/lowcode/public-components/headers/sy-04.js +43 -41
- package/lowcode/public-components/headers/sy-04.ts +48 -41
- package/lowcode/public-components/headers/sy-05.js +30 -27
- package/lowcode/public-components/headers/sy-05.ts +33 -27
- package/lowcode/public-components/product/product-list.js +160 -148
- package/lowcode/public-components/product/product-list.ts +186 -165
- package/lowcode/public-models/product.ts +26 -1
- package/lowcode/src/glitterBundle/Glitter.css +74 -62
- package/package.json +1 -1
- package/rxmnt81tnk.json +1 -0
- package/src/api-public/controllers/shop.js +10 -4
- package/src/api-public/controllers/shop.js.map +1 -1
- package/src/api-public/controllers/shop.ts +14 -9
- package/src/api-public/services/ezpay/tool.d.ts +1 -0
- package/src/api-public/services/mail.js +1 -1
- package/src/api-public/services/mail.js.map +1 -1
- package/src/api-public/services/mail.ts +1 -1
- package/src/api-public/services/monitor.js.map +1 -1
- package/src/api-public/services/monitor.ts +2 -0
- package/src/api-public/services/schedule.d.ts +0 -1
- package/src/api-public/services/schedule.js +12 -35
- package/src/api-public/services/schedule.js.map +1 -1
- package/src/api-public/services/schedule.ts +15 -39
- package/src/api-public/services/shopee.js +7 -17
- package/src/api-public/services/shopping.d.ts +27 -6
- package/src/api-public/services/shopping.js +364 -85
- package/src/api-public/services/shopping.js.map +1 -1
- package/src/api-public/services/shopping.ts +510 -101
- package/src/api-public/services/updated-table-checked.js +58 -1
- package/src/api-public/services/updated-table-checked.js.map +1 -1
- package/src/api-public/services/updated-table-checked.ts +62 -1
- package/src/api-public/services/user-update.js +14 -0
- package/src/api-public/services/user-update.js.map +1 -1
- package/src/api-public/services/user-update.ts +15 -0
- package/src/api-public/services/user.js +1 -1
- package/src/api-public/services/user.js.map +1 -1
- package/src/api-public/services/user.ts +1 -1
- package/src/app-project/serverless/src/modules/database.d.ts +1 -1
- package/src/app-project/serverless/src/modules/redis.d.ts +1 -1
- package/src/helper/glitter-util.d.ts +1 -0
- package/src/index.js +7 -4
- package/src/index.js.map +1 -1
- package/src/index.ts +45 -36
- package/src/modules/firebase.js +1 -0
- package/src/modules/firebase.js.map +1 -1
- package/src/modules/firebase.ts +1 -0
- package/src/seo-config.d.ts +2 -1
- package/src/seo-config.js +28 -22
- package/src/seo-config.js.map +1 -1
- package/src/seo-config.ts +33 -26
- package/src/services/saas-table-check.js.map +1 -1
- package/src/services/ses.js +4 -3
- package/src/services/ses.js.map +1 -1
- package/src/services/system-schedule.js.map +1 -1
- 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
|
-
|
|
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
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
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
|
-
|
|
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
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
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>
|