ts-glitter 19.0.6 → 19.0.8
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/lowcode/Entry.js +1 -1
- package/lowcode/Entry.ts +1 -1
- package/lowcode/backend-manager/bg-widget.js +32 -25
- package/lowcode/backend-manager/bg-widget.ts +66 -55
- package/lowcode/cms-plugin/shopping-collections.js +286 -221
- package/lowcode/cms-plugin/shopping-collections.ts +1135 -1034
- package/lowcode/cms-plugin/shopping-finance-setting.js +877 -728
- package/lowcode/cms-plugin/shopping-finance-setting.ts +959 -877
- package/lowcode/cms-plugin/shopping-information.js +73 -13
- package/lowcode/cms-plugin/shopping-information.ts +81 -13
- package/lowcode/cms-plugin/shopping-order-manager.js +6 -8
- package/lowcode/cms-plugin/shopping-order-manager.ts +10 -12
- package/lowcode/css/front-end.css +61 -0
- package/lowcode/glitter-base/global/language.js +12 -0
- package/lowcode/glitter-base/global/language.ts +12 -0
- package/lowcode/glitter-base/global/payment-config.js +16 -12
- package/lowcode/glitter-base/global/payment-config.ts +17 -9
- package/lowcode/public-components/checkout/index.js +290 -288
- package/lowcode/public-components/checkout/index.ts +709 -719
- package/lowcode/public-components/product/product-list.js +254 -237
- package/lowcode/public-components/product/product-list.ts +840 -789
- package/package.json +1 -1
- package/src/api-public/config/shipment-config.js +21 -11
- package/src/api-public/config/shipment-config.js.map +1 -1
- package/src/api-public/config/shipment-config.ts +88 -78
- package/src/api-public/controllers/index.js.map +1 -1
- package/src/api-public/controllers/invoice.js +1 -0
- package/src/api-public/controllers/invoice.js.map +1 -1
- package/src/api-public/controllers/reconciliation.js.map +1 -1
- package/src/api-public/controllers/track.js.map +1 -1
- package/src/api-public/models/glitter-finance.d.ts +0 -52
- package/src/api-public/models/glitter-finance.js.map +1 -1
- package/src/api-public/models/glitter-finance.ts +8 -61
- package/src/api-public/services/public-table-check.js +2 -2
- package/src/api-public/services/public-table-check.ts +2 -2
- package/src/api-public/services/reconciliation.js.map +1 -1
- package/src/api-public/services/shopping.d.ts +2 -0
- package/src/api-public/services/shopping.js +96 -94
- package/src/api-public/services/shopping.js.map +1 -1
- package/src/api-public/services/shopping.ts +117 -89
- package/src/api-public/services/updated-table-checked.js +8 -0
- package/src/api-public/services/updated-table-checked.js.map +1 -1
- package/src/api-public/services/updated-table-checked.ts +10 -0
- package/src/services/private_config.d.ts +1 -1
- package/src/services/private_config.js +141 -107
- package/src/services/private_config.js.map +1 -1
- package/src/services/private_config.ts +225 -182
- package/src/services/template.js.map +1 -1
- package/cvhjbicydt.json +0 -1
- package/dc5tg766x4.json +0 -1
- package/fg7vh7x807.json +0 -1
- package/kem3hy0ds7.json +0 -1
- package/mlnsb7fduk.json +0 -1
- package/r1dig5cvt3.json +0 -1
package/lowcode/Entry.js
CHANGED
|
@@ -132,7 +132,7 @@ export class Entry {
|
|
|
132
132
|
}
|
|
133
133
|
window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : createClock();
|
|
134
134
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
135
|
-
glitter.share.editerVersion = 'V_19.0.
|
|
135
|
+
glitter.share.editerVersion = 'V_19.0.8';
|
|
136
136
|
glitter.share.start = new Date();
|
|
137
137
|
const vm = { appConfig: [] };
|
|
138
138
|
window.saasConfig = {
|
package/lowcode/Entry.ts
CHANGED
|
@@ -132,7 +132,7 @@ export class Entry {
|
|
|
132
132
|
}
|
|
133
133
|
(window as any).renderClock = (window as any).renderClock ?? createClock();
|
|
134
134
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
135
|
-
glitter.share.editerVersion = 'V_19.0.
|
|
135
|
+
glitter.share.editerVersion = 'V_19.0.8';
|
|
136
136
|
glitter.share.start = new Date();
|
|
137
137
|
const vm = { appConfig: [] };
|
|
138
138
|
(window as any).saasConfig = {
|
|
@@ -3477,12 +3477,12 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
|
|
|
3477
3477
|
loading: false,
|
|
3478
3478
|
};
|
|
3479
3479
|
return html ` <div
|
|
3480
|
-
|
|
3481
|
-
|
|
3480
|
+
class="bg-white shadow rounded-3"
|
|
3481
|
+
style="overflow-y: auto; ${document.body.clientWidth > 768
|
|
3482
3482
|
? `width: ${(_a = obj.width) !== null && _a !== void 0 ? _a : 600}px;max-width:calc(100vw - 20px);`
|
|
3483
3483
|
: 'min-width: calc(100vw - 10px);; max-width: calc(100vw - 10px);'}"
|
|
3484
|
-
|
|
3485
|
-
|
|
3484
|
+
>
|
|
3485
|
+
${gvc.bindView({
|
|
3486
3486
|
bind: vm.id,
|
|
3487
3487
|
view: () => {
|
|
3488
3488
|
var _a, _b, _c;
|
|
@@ -3491,39 +3491,39 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
|
|
|
3491
3491
|
return html ` <div class="my-4">${this.spinner()}</div>`;
|
|
3492
3492
|
}
|
|
3493
3493
|
return html ` <div class="bg-white shadow rounded-3" style="width: 100%; overflow-y: auto;">
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3494
|
+
<div class="w-100 d-flex align-items-center p-3 border-bottom">
|
|
3495
|
+
<div class="tx_700">${(_b = obj.title) !== null && _b !== void 0 ? _b : '產品列表'}</div>
|
|
3496
|
+
<div class="flex-fill"></div>
|
|
3497
|
+
<i
|
|
3498
|
+
class="fa-regular fa-circle-xmark fs-5 text-dark cursor_pointer"
|
|
3499
|
+
onclick="${gvc.event(() => {
|
|
3500
3500
|
if (obj.closeCallback) {
|
|
3501
3501
|
obj.closeCallback();
|
|
3502
3502
|
}
|
|
3503
3503
|
gvc.closeDialog();
|
|
3504
3504
|
})}"
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3505
|
+
></i>
|
|
3506
|
+
</div>
|
|
3507
|
+
<div class="c_dialog">
|
|
3508
|
+
<div class="c_dialog_body">
|
|
3509
|
+
<div
|
|
3510
|
+
class="c_dialog_main"
|
|
3511
|
+
style="${obj.d_main_style || ''};gap: 24px; ${obj.height
|
|
3512
3512
|
? `height:${obj.height}px;max-height: 100vh;`
|
|
3513
3513
|
: `height:auto;max-height: 500px;`} "
|
|
3514
|
-
|
|
3515
|
-
|
|
3514
|
+
>
|
|
3515
|
+
${(_c = obj.innerHTML(gvc)) !== null && _c !== void 0 ? _c : ''}
|
|
3516
|
+
</div>
|
|
3517
|
+
${footer ? `<div class="c_dialog_bar">${footer}</div>` : ``}
|
|
3516
3518
|
</div>
|
|
3517
|
-
${footer ? `<div class="c_dialog_bar">${footer}</div>` : ``}
|
|
3518
3519
|
</div>
|
|
3519
|
-
</div
|
|
3520
|
-
</div>`;
|
|
3520
|
+
</div>`;
|
|
3521
3521
|
},
|
|
3522
3522
|
onCreate: () => { },
|
|
3523
3523
|
})}
|
|
3524
|
-
|
|
3524
|
+
</div>`;
|
|
3525
3525
|
}, obj.gvc.glitter.getUUID(), {
|
|
3526
|
-
animation: Animation.fade
|
|
3526
|
+
animation: Animation.fade,
|
|
3527
3527
|
});
|
|
3528
3528
|
}
|
|
3529
3529
|
static dialog(obj) {
|
|
@@ -3858,7 +3858,14 @@ ${(_c = obj.default) !== null && _c !== void 0 ? _c : ''}</textarea
|
|
|
3858
3858
|
divCreate: {
|
|
3859
3859
|
class: 'h-100',
|
|
3860
3860
|
},
|
|
3861
|
-
onCreate: () => {
|
|
3861
|
+
onCreate: () => {
|
|
3862
|
+
if (vm.loading) {
|
|
3863
|
+
setTimeout(() => {
|
|
3864
|
+
vm.loading = false;
|
|
3865
|
+
gvc.notifyDataChange(vm.id);
|
|
3866
|
+
}, 300);
|
|
3867
|
+
}
|
|
3868
|
+
},
|
|
3862
3869
|
})}
|
|
3863
3870
|
</div>`;
|
|
3864
3871
|
}, obj.gvc.glitter.getUUID());
|
|
@@ -215,7 +215,7 @@ export class BgWidget {
|
|
|
215
215
|
</button>`;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
static grayButton(text: string, event: string, obj?: { icon?: string; textStyle?: string
|
|
218
|
+
static grayButton(text: string, event: string, obj?: { icon?: string; textStyle?: string; class?: string }) {
|
|
219
219
|
return html` <button class="btn btn-gray ${obj?.class || ''}" style="" type="button" onclick="${event}">
|
|
220
220
|
<i class="${obj && obj.icon && obj.icon.length > 0 ? obj.icon : 'd-none'}" style="color: #393939"></i>
|
|
221
221
|
${text.length > 0 ? html`<span class="tx_700" style="${obj?.textStyle ?? ''}">${text}</span>` : ''}
|
|
@@ -4128,59 +4128,63 @@ ${obj.default ?? ''}</textarea
|
|
|
4128
4128
|
}
|
|
4129
4129
|
return glitter;
|
|
4130
4130
|
})();
|
|
4131
|
-
return (glitter as any).innerDialog(
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
<div class="
|
|
4151
|
-
<div class="
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
obj.closeCallback
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
<div class="
|
|
4165
|
-
<div
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4131
|
+
return (glitter as any).innerDialog(
|
|
4132
|
+
(gvc: GVC) => {
|
|
4133
|
+
const vm = {
|
|
4134
|
+
id: obj.gvc.glitter.getUUID(),
|
|
4135
|
+
loading: false,
|
|
4136
|
+
};
|
|
4137
|
+
return html` <div
|
|
4138
|
+
class="bg-white shadow rounded-3"
|
|
4139
|
+
style="overflow-y: auto; ${document.body.clientWidth > 768
|
|
4140
|
+
? `width: ${obj.width ?? 600}px;max-width:calc(100vw - 20px);`
|
|
4141
|
+
: 'min-width: calc(100vw - 10px);; max-width: calc(100vw - 10px);'}"
|
|
4142
|
+
>
|
|
4143
|
+
${gvc.bindView({
|
|
4144
|
+
bind: vm.id,
|
|
4145
|
+
view: () => {
|
|
4146
|
+
const footer = obj.footer_html(gvc) ?? '';
|
|
4147
|
+
if (vm.loading) {
|
|
4148
|
+
return html` <div class="my-4">${this.spinner()}</div>`;
|
|
4149
|
+
}
|
|
4150
|
+
return html` <div class="bg-white shadow rounded-3" style="width: 100%; overflow-y: auto;">
|
|
4151
|
+
<div class="w-100 d-flex align-items-center p-3 border-bottom">
|
|
4152
|
+
<div class="tx_700">${obj.title ?? '產品列表'}</div>
|
|
4153
|
+
<div class="flex-fill"></div>
|
|
4154
|
+
<i
|
|
4155
|
+
class="fa-regular fa-circle-xmark fs-5 text-dark cursor_pointer"
|
|
4156
|
+
onclick="${gvc.event(() => {
|
|
4157
|
+
if (obj.closeCallback) {
|
|
4158
|
+
obj.closeCallback();
|
|
4159
|
+
}
|
|
4160
|
+
gvc.closeDialog();
|
|
4161
|
+
})}"
|
|
4162
|
+
></i>
|
|
4163
|
+
</div>
|
|
4164
|
+
<div class="c_dialog">
|
|
4165
|
+
<div class="c_dialog_body">
|
|
4166
|
+
<div
|
|
4167
|
+
class="c_dialog_main"
|
|
4168
|
+
style="${obj.d_main_style || ''};gap: 24px; ${obj.height
|
|
4169
|
+
? `height:${obj.height}px;max-height: 100vh;`
|
|
4170
|
+
: `height:auto;max-height: 500px;`} "
|
|
4171
|
+
>
|
|
4172
|
+
${obj.innerHTML(gvc) ?? ''}
|
|
4173
|
+
</div>
|
|
4174
|
+
${footer ? `<div class="c_dialog_bar">${footer}</div>` : ``}
|
|
4172
4175
|
</div>
|
|
4173
|
-
${footer ? `<div class="c_dialog_bar">${footer}</div>` : ``}
|
|
4174
4176
|
</div>
|
|
4175
|
-
</div
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4177
|
+
</div>`;
|
|
4178
|
+
},
|
|
4179
|
+
onCreate: () => {},
|
|
4180
|
+
})}
|
|
4181
|
+
</div>`;
|
|
4182
|
+
},
|
|
4183
|
+
obj.gvc.glitter.getUUID(),
|
|
4184
|
+
{
|
|
4185
|
+
animation: Animation.fade,
|
|
4186
|
+
}
|
|
4187
|
+
);
|
|
4184
4188
|
}
|
|
4185
4189
|
|
|
4186
4190
|
static dialog(obj: {
|
|
@@ -4581,7 +4585,14 @@ ${obj.default ?? ''}</textarea
|
|
|
4581
4585
|
divCreate: {
|
|
4582
4586
|
class: 'h-100',
|
|
4583
4587
|
},
|
|
4584
|
-
onCreate: () => {
|
|
4588
|
+
onCreate: () => {
|
|
4589
|
+
if (vm.loading) {
|
|
4590
|
+
setTimeout(() => {
|
|
4591
|
+
vm.loading = false;
|
|
4592
|
+
gvc.notifyDataChange(vm.id);
|
|
4593
|
+
}, 300);
|
|
4594
|
+
}
|
|
4595
|
+
},
|
|
4585
4596
|
})}
|
|
4586
4597
|
</div>`;
|
|
4587
4598
|
}, obj.gvc.glitter.getUUID());
|
|
@@ -5203,8 +5214,8 @@ ${obj.default ?? ''}</textarea
|
|
|
5203
5214
|
FormCheck.initialRecipientForm(form_formats[b.key].list);
|
|
5204
5215
|
} else if (b.key === 'customer_form_user_setting') {
|
|
5205
5216
|
FormCheck.initialUserForm(form_formats[b.key].list);
|
|
5206
|
-
}else if(b.key.includes('form_delivery_')){
|
|
5207
|
-
FormCheck.initial_shipment_form(form_formats[b.key].list)
|
|
5217
|
+
} else if (b.key.includes('form_delivery_')) {
|
|
5218
|
+
FormCheck.initial_shipment_form(form_formats[b.key].list);
|
|
5208
5219
|
}
|
|
5209
5220
|
form_formats[b.key].list.map((dd: any) => {
|
|
5210
5221
|
dd.toggle = false;
|