ts-glitter 17.2.3 → 17.2.5
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-blog.js +3 -3
- package/lowcode/backend-manager/bg-blog.ts +4 -4
- package/lowcode/backend-manager/bg-customer-message.js +2 -1
- package/lowcode/backend-manager/bg-customer-message.ts +3 -2
- package/lowcode/jspage/editor.js +1 -1
- package/lowcode/jspage/editor.ts +1 -1
- package/lowcode/public-components/headers/sy-03.js +2 -2
- package/lowcode/public-components/headers/sy-03.ts +2 -2
- package/lowcode/public-components/product/product-detail.js +4 -21
- package/lowcode/public-components/product/product-detail.ts +11 -31
- package/lowcode/public-components/terms-related/index.js +2 -2
- package/lowcode/public-components/terms-related/index.ts +2 -2
- package/package.json +1 -1
package/lowcode/Entry.js
CHANGED
|
@@ -89,7 +89,7 @@ export class Entry {
|
|
|
89
89
|
}
|
|
90
90
|
window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : clockF();
|
|
91
91
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
92
|
-
glitter.share.editerVersion = 'V_17.2.
|
|
92
|
+
glitter.share.editerVersion = 'V_17.2.5';
|
|
93
93
|
glitter.share.start = new Date();
|
|
94
94
|
const vm = {
|
|
95
95
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -90,7 +90,7 @@ export class Entry {
|
|
|
90
90
|
}
|
|
91
91
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
92
92
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
93
|
-
glitter.share.editerVersion = 'V_17.2.
|
|
93
|
+
glitter.share.editerVersion = 'V_17.2.5';
|
|
94
94
|
glitter.share.start = new Date();
|
|
95
95
|
const vm: {
|
|
96
96
|
appConfig: any;
|
|
@@ -1639,7 +1639,7 @@ function detail(gvc, cf, vm, cVm, page_tab) {
|
|
|
1639
1639
|
};
|
|
1640
1640
|
});
|
|
1641
1641
|
}
|
|
1642
|
-
function saveData(gvc, cf, vm, cVm, silence) {
|
|
1642
|
+
function saveData(gvc, cf, vm, cVm, silence, pass_check = false) {
|
|
1643
1643
|
return new Promise((res_, reject) => __awaiter(this, void 0, void 0, function* () {
|
|
1644
1644
|
if (!vm.data.content.tag) {
|
|
1645
1645
|
yield cf.widget.event('error', {
|
|
@@ -1649,7 +1649,7 @@ function saveData(gvc, cf, vm, cVm, silence) {
|
|
|
1649
1649
|
}
|
|
1650
1650
|
else if (window.parent.store_info.language_setting.support.find((d1) => {
|
|
1651
1651
|
return !(vm.data.content.language_data[d1].name);
|
|
1652
|
-
})) {
|
|
1652
|
+
}) && !pass_check) {
|
|
1653
1653
|
language = window.parent.store_info.language_setting.support.find((d1) => {
|
|
1654
1654
|
return !(vm.data.content.language_data[d1].name);
|
|
1655
1655
|
});
|
|
@@ -2165,7 +2165,7 @@ function template_select(gvc, cf, vm, cVm, page_type) {
|
|
|
2165
2165
|
vm.data.content.config = c2;
|
|
2166
2166
|
vm.data.content.name = c2.name;
|
|
2167
2167
|
initialData(vm.data.content);
|
|
2168
|
-
saveData(gvc, cf, vm, cVm, false).then(() => {
|
|
2168
|
+
saveData(gvc, cf, vm, cVm, false, true).then(() => {
|
|
2169
2169
|
cVm.type = 'detail';
|
|
2170
2170
|
});
|
|
2171
2171
|
}
|
|
@@ -1797,18 +1797,18 @@ function detail(gvc: GVC, cf: any, vm: any, cVm: any, page_tab: 'page' | 'hidden
|
|
|
1797
1797
|
});
|
|
1798
1798
|
}
|
|
1799
1799
|
|
|
1800
|
-
function saveData(gvc: GVC, cf: any, vm: any, cVm: any, silence: boolean) {
|
|
1800
|
+
function saveData(gvc: GVC, cf: any, vm: any, cVm: any, silence: boolean,pass_check:boolean=false) {
|
|
1801
1801
|
return new Promise(async (res_, reject) => {
|
|
1802
1802
|
|
|
1803
1803
|
|
|
1804
|
-
if (!vm.data.content.tag) {
|
|
1804
|
+
if (!vm.data.content.tag ) {
|
|
1805
1805
|
await cf.widget.event('error', {
|
|
1806
1806
|
title: '請設定連結',
|
|
1807
1807
|
});
|
|
1808
1808
|
res_(false)
|
|
1809
1809
|
} else if ((window.parent as any).store_info.language_setting.support.find((d1: any) => {
|
|
1810
1810
|
return !(vm.data.content.language_data[d1].name)
|
|
1811
|
-
})) {
|
|
1811
|
+
}) && !pass_check) {
|
|
1812
1812
|
language=(window.parent as any).store_info.language_setting.support.find((d1: any) => {
|
|
1813
1813
|
return !(vm.data.content.language_data[d1].name)
|
|
1814
1814
|
})
|
|
@@ -2378,7 +2378,7 @@ function template_select(gvc: GVC, cf: any, vm: any, cVm: any, page_type: any) {
|
|
|
2378
2378
|
vm.data.content.config = c2;
|
|
2379
2379
|
vm.data.content.name = c2.name;
|
|
2380
2380
|
initialData(vm.data.content)
|
|
2381
|
-
saveData(gvc, cf, vm, cVm, false).then(() => {
|
|
2381
|
+
saveData(gvc, cf, vm, cVm, false,true).then(() => {
|
|
2382
2382
|
cVm.type = 'detail';
|
|
2383
2383
|
});
|
|
2384
2384
|
} else if (!vm.data.id) {
|
|
@@ -32,6 +32,7 @@ export class BgCustomerMessage {
|
|
|
32
32
|
const html = String.raw;
|
|
33
33
|
const vm = BgCustomerMessage.vm;
|
|
34
34
|
gvc.addStyle(`
|
|
35
|
+
|
|
35
36
|
.btn-white-primary {
|
|
36
37
|
border: 2px solid #ffb400;;
|
|
37
38
|
justify-content: space-between;
|
|
@@ -75,7 +76,7 @@ export class BgCustomerMessage {
|
|
|
75
76
|
if (!BgCustomerMessage.visible) {
|
|
76
77
|
return html `
|
|
77
78
|
<div class="d-flex align-items-center justify-content-center w-100 flex-column pt-3">
|
|
78
|
-
<div class="spinner-border" role="status">
|
|
79
|
+
<div class="spinner-border" role="status" >
|
|
79
80
|
<span class="sr-only"></span>
|
|
80
81
|
</div>
|
|
81
82
|
<span class="mt-2">載入中...</span>
|
|
@@ -47,6 +47,7 @@ export class BgCustomerMessage {
|
|
|
47
47
|
const html = String.raw;
|
|
48
48
|
const vm = BgCustomerMessage.vm;
|
|
49
49
|
gvc.addStyle(`
|
|
50
|
+
|
|
50
51
|
.btn-white-primary {
|
|
51
52
|
border: 2px solid #ffb400;;
|
|
52
53
|
justify-content: space-between;
|
|
@@ -88,11 +89,11 @@ export class BgCustomerMessage {
|
|
|
88
89
|
bind: BgCustomerMessage.id,
|
|
89
90
|
view: () => {
|
|
90
91
|
|
|
91
|
-
|
|
92
92
|
if (!BgCustomerMessage.visible) {
|
|
93
|
+
|
|
93
94
|
return html`
|
|
94
95
|
<div class="d-flex align-items-center justify-content-center w-100 flex-column pt-3">
|
|
95
|
-
<div class="spinner-border" role="status">
|
|
96
|
+
<div class="spinner-border" role="status" >
|
|
96
97
|
<span class="sr-only"></span>
|
|
97
98
|
</div>
|
|
98
99
|
<span class="mt-2">載入中...</span>
|
package/lowcode/jspage/editor.js
CHANGED
package/lowcode/jspage/editor.ts
CHANGED
|
@@ -196,7 +196,7 @@ background: ${(_a = colors.bgr) !== null && _a !== void 0 ? _a : '#000'};overflo
|
|
|
196
196
|
changePage('index', 'home', {});
|
|
197
197
|
})}"
|
|
198
198
|
>
|
|
199
|
-
<img src="${widget.formData.logo}" style="${document.body.clientWidth < 800 ? `max-height:
|
|
199
|
+
<img src="${widget.formData.logo}" style="${document.body.clientWidth < 800 ? `max-height: 76px;max-width:200px;` : `height: 150px;`}" />
|
|
200
200
|
</div>
|
|
201
201
|
</div>
|
|
202
202
|
<!--選單列表顯示區塊-->
|
|
@@ -248,7 +248,7 @@ background: ${(_a = colors.bgr) !== null && _a !== void 0 ? _a : '#000'};overflo
|
|
|
248
248
|
})}
|
|
249
249
|
</ul>
|
|
250
250
|
</div>
|
|
251
|
-
<div class="d-flex align-items-center
|
|
251
|
+
<div class="d-flex align-items-center ${document.body.clientWidth >= 800 ? `position-lg-absolute` : `position-relative`} " style="${document.body.clientWidth > 800 ? `top:10px;right:30px;` : ``}">
|
|
252
252
|
<!--固定按鈕顯示區塊-->
|
|
253
253
|
<ul class="navbar-nav flex-row ms-auto">
|
|
254
254
|
${gvc.bindView(() => {
|
|
@@ -200,7 +200,7 @@ background: ${colors.bgr ?? '#000'};overflow-x: hidden;`,
|
|
|
200
200
|
changePage('index', 'home', {});
|
|
201
201
|
})}"
|
|
202
202
|
>
|
|
203
|
-
<img src="${widget.formData.logo}" style="${document.body.clientWidth < 800 ? `max-height:
|
|
203
|
+
<img src="${widget.formData.logo}" style="${document.body.clientWidth < 800 ? `max-height: 76px;max-width:200px;` : `height: 150px;`}" />
|
|
204
204
|
</div>
|
|
205
205
|
</div>
|
|
206
206
|
<!--選單列表顯示區塊-->
|
|
@@ -252,7 +252,7 @@ background: ${colors.bgr ?? '#000'};overflow-x: hidden;`,
|
|
|
252
252
|
})}
|
|
253
253
|
</ul>
|
|
254
254
|
</div>
|
|
255
|
-
<div class="d-flex align-items-center
|
|
255
|
+
<div class="d-flex align-items-center ${document.body.clientWidth>=800 ? `position-lg-absolute`:`position-relative`} " style="${document.body.clientWidth > 800 ? `top:10px;right:30px;` : ``}">
|
|
256
256
|
<!--固定按鈕顯示區塊-->
|
|
257
257
|
<ul class="navbar-nav flex-row ms-auto">
|
|
258
258
|
${gvc.bindView(() => {
|
|
@@ -300,34 +300,17 @@ export class ProductDetail {
|
|
|
300
300
|
<div style="align-self: stretch; height: 0px; border: 1px ${ProductDetail.titleFontColor} solid"></div>
|
|
301
301
|
</div>
|
|
302
302
|
</div>
|
|
303
|
-
<div class="w-100
|
|
304
|
-
|
|
305
|
-
class=""
|
|
306
|
-
style="${product.length <
|
|
307
|
-
glitter.ut.frSize({
|
|
308
|
-
sm: 4,
|
|
309
|
-
lg: 6,
|
|
310
|
-
}, 2)
|
|
311
|
-
? `width:${200 * product.length}px;`
|
|
312
|
-
: `width:100%;`}"
|
|
313
|
-
>
|
|
314
|
-
<div class="swiper w-100" id="${swipID}">
|
|
315
|
-
<div class="swiper-wrapper">
|
|
316
|
-
${product
|
|
303
|
+
<div class="w-100 row p-0 align-items-center justify-content-center mt-4 mt-lg-4 mx-0">
|
|
304
|
+
${product
|
|
317
305
|
.map((dd, index) => {
|
|
318
|
-
return
|
|
319
|
-
${glitter.htmlGenerate.renderComponent({
|
|
306
|
+
return `<div class="col-6 col-sm-4 col-lg-3">${glitter.htmlGenerate.renderComponent({
|
|
320
307
|
appName: window.appName,
|
|
321
308
|
tag: 'product_widget',
|
|
322
309
|
gvc: gvc,
|
|
323
310
|
subData: dd,
|
|
324
|
-
})}
|
|
325
|
-
</div>`;
|
|
311
|
+
})}</div>`;
|
|
326
312
|
})
|
|
327
313
|
.join('')}
|
|
328
|
-
</div>
|
|
329
|
-
</div>
|
|
330
|
-
</div>
|
|
331
314
|
</div>
|
|
332
315
|
`);
|
|
333
316
|
}));
|
|
@@ -337,37 +337,17 @@ export class ProductDetail {
|
|
|
337
337
|
<div style="align-self: stretch; height: 0px; border: 1px ${ProductDetail.titleFontColor} solid"></div>
|
|
338
338
|
</div>
|
|
339
339
|
</div>
|
|
340
|
-
<div class="w-100
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
? `width:${200 * product.length}px;`
|
|
352
|
-
: `width:100%;`}"
|
|
353
|
-
>
|
|
354
|
-
<div class="swiper w-100" id="${swipID}">
|
|
355
|
-
<div class="swiper-wrapper">
|
|
356
|
-
${product
|
|
357
|
-
.map((dd: any, index: number) => {
|
|
358
|
-
return html` <div class="swiper-slide" style="width:100%;height: 350px;">
|
|
359
|
-
${glitter.htmlGenerate.renderComponent({
|
|
360
|
-
appName: (window as any).appName,
|
|
361
|
-
tag: 'product_widget',
|
|
362
|
-
gvc: gvc,
|
|
363
|
-
subData: dd,
|
|
364
|
-
})}
|
|
365
|
-
</div>`;
|
|
366
|
-
})
|
|
367
|
-
.join('')}
|
|
368
|
-
</div>
|
|
369
|
-
</div>
|
|
370
|
-
</div>
|
|
340
|
+
<div class="w-100 row p-0 align-items-center justify-content-center mt-4 mt-lg-4 mx-0">
|
|
341
|
+
${product
|
|
342
|
+
.map((dd: any, index: number) => {
|
|
343
|
+
return `<div class="col-6 col-sm-4 col-lg-3">${glitter.htmlGenerate.renderComponent({
|
|
344
|
+
appName: (window as any).appName,
|
|
345
|
+
tag: 'product_widget',
|
|
346
|
+
gvc: gvc,
|
|
347
|
+
subData: dd,
|
|
348
|
+
})}</div>`
|
|
349
|
+
})
|
|
350
|
+
.join('')}
|
|
371
351
|
</div>
|
|
372
352
|
`);
|
|
373
353
|
});
|
|
@@ -33,8 +33,8 @@ export class TermsRelated {
|
|
|
33
33
|
if (!lan_d) {
|
|
34
34
|
lan_d = (yield ApiUser.getPublicConfig(`terms-related-${page}-${window.store_info.language_setting.def}`, 'manager')).response.value.text;
|
|
35
35
|
}
|
|
36
|
-
return html
|
|
37
|
-
<div class="mb-5" style="min-height: calc(100vh - 200px);">
|
|
36
|
+
return html `
|
|
37
|
+
<div class="mb-5 mt-3" style="min-height: calc(100vh - 200px);">
|
|
38
38
|
${lan_d || ''}
|
|
39
39
|
</div>`;
|
|
40
40
|
}
|
|
@@ -33,8 +33,8 @@ export class TermsRelated {
|
|
|
33
33
|
if (!lan_d) {
|
|
34
34
|
lan_d = (await ApiUser.getPublicConfig(`terms-related-${page}-${(window as any).store_info.language_setting.def}`, 'manager')).response.value.text
|
|
35
35
|
}
|
|
36
|
-
return html
|
|
37
|
-
<div class="mb-5" style="min-height: calc(100vh - 200px);">
|
|
36
|
+
return html`
|
|
37
|
+
<div class="mb-5 mt-3" style="min-height: calc(100vh - 200px);">
|
|
38
38
|
${lan_d || ''}
|
|
39
39
|
</div>`
|
|
40
40
|
}
|