ts-glitter 13.5.8 → 13.6.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.
- package/lowcode/Entry.js +1 -1
- package/lowcode/Entry.ts +1 -1
- package/lowcode/backend-manager/bg-blog.js +146 -143
- package/lowcode/backend-manager/bg-blog.ts +1008 -1005
- package/lowcode/backend-manager/bg-graph-api.js +1 -1
- package/lowcode/backend-manager/bg-graph-api.ts +1 -1
- package/lowcode/backend-manager/bg-line.js +42 -17
- package/lowcode/backend-manager/bg-line.ts +41 -20
- package/lowcode/backend-manager/bg-notify.js +69 -18
- package/lowcode/backend-manager/bg-notify.ts +68 -25
- package/lowcode/backend-manager/bg-project.js +7 -7
- package/lowcode/backend-manager/bg-project.ts +7 -7
- package/lowcode/backend-manager/bg-shopping.js +9 -9
- package/lowcode/backend-manager/bg-shopping.ts +9 -9
- package/lowcode/backend-manager/bg-sns.js +46 -26
- package/lowcode/backend-manager/bg-sns.ts +48 -34
- package/lowcode/backend-manager/bg-wallet.js +2 -2
- package/lowcode/backend-manager/bg-wallet.ts +2 -2
- package/lowcode/backend-manager/bg-widget.js +17 -6
- package/lowcode/backend-manager/bg-widget.ts +20 -7
- package/lowcode/cms-plugin/ai-points-list.js +2 -2
- package/lowcode/cms-plugin/ai-points-list.ts +2 -2
- package/lowcode/cms-plugin/ai-points.js +1 -4
- package/lowcode/cms-plugin/ai-points.ts +1 -4
- package/lowcode/cms-plugin/app-release.js +73 -89
- package/lowcode/cms-plugin/app-release.ts +120 -130
- package/lowcode/cms-plugin/auto-reply.js +10 -4
- package/lowcode/cms-plugin/auto-reply.ts +10 -4
- package/lowcode/cms-plugin/data-analyze.js +186 -129
- package/lowcode/cms-plugin/data-analyze.ts +411 -347
- package/lowcode/cms-plugin/form-setting.js +2 -2
- package/lowcode/cms-plugin/form-setting.ts +2 -2
- package/lowcode/cms-plugin/line-auto-reply.js +5 -5
- package/lowcode/cms-plugin/line-auto-reply.ts +5 -5
- package/lowcode/cms-plugin/menus-setting.js +1 -1
- package/lowcode/cms-plugin/menus-setting.ts +1 -1
- package/lowcode/cms-plugin/module/form-module.ts +1 -0
- package/lowcode/cms-plugin/pos-checkout-setting.js +1 -1
- package/lowcode/cms-plugin/pos-checkout-setting.ts +1 -1
- package/lowcode/cms-plugin/shopping-collections.js +0 -1
- package/lowcode/cms-plugin/shopping-collections.ts +0 -1
- package/lowcode/cms-plugin/shopping-discount-setting.js +2 -2
- package/lowcode/cms-plugin/shopping-discount-setting.ts +2 -2
- package/lowcode/cms-plugin/shopping-finance-setting.js +39 -14
- package/lowcode/cms-plugin/shopping-finance-setting.ts +37 -14
- package/lowcode/cms-plugin/shopping-product-setting.js +2 -3
- package/lowcode/cms-plugin/shopping-product-setting.ts +2 -3
- package/lowcode/cms-plugin/shopping-product-text.js +5 -1
- package/lowcode/cms-plugin/shopping-product-text.ts +5 -1
- package/lowcode/cms-plugin/sms-points.js +2 -7
- package/lowcode/cms-plugin/sms-points.ts +2 -6
- package/lowcode/cms-plugin/sns-auto-reply.js +4 -4
- package/lowcode/cms-plugin/sns-auto-reply.ts +4 -4
- package/lowcode/cms-plugin/third-party-apple.js +118 -111
- package/lowcode/cms-plugin/third-party-apple.ts +116 -112
- package/lowcode/cms-plugin/third-party-facebook.js +170 -160
- package/lowcode/cms-plugin/third-party-facebook.ts +137 -128
- package/lowcode/cms-plugin/third-party-google.js +144 -118
- package/lowcode/cms-plugin/third-party-google.ts +164 -140
- package/lowcode/cms-plugin/third-party-line.js +117 -106
- package/lowcode/cms-plugin/third-party-line.ts +123 -115
- package/lowcode/cms-plugin/user-list.js +3 -3
- package/lowcode/cms-plugin/user-list.ts +3 -3
- package/lowcode/cms-plugin/user-login-setting.js +2 -2
- package/lowcode/cms-plugin/user-login-setting.ts +2 -2
- package/lowcode/cms-plugin/wallet-list.js +2 -2
- package/lowcode/cms-plugin/wallet-list.ts +2 -2
- package/lowcode/cms-plugin/web-config-setting.js +1 -1
- package/lowcode/cms-plugin/web-config-setting.ts +1 -1
- package/lowcode/css/editor.css +13 -7
- package/lowcode/glitterBundle/html-component/global-widget.js +54 -29
- package/lowcode/glitterBundle/html-component/global-widget.ts +95 -72
- package/lowcode/glitterBundle/html-component/widget.js +44 -38
- package/lowcode/glitterBundle/html-component/widget.ts +166 -157
- package/lowcode/glitterBundle/module/html-generate.js +3 -3
- package/lowcode/glitterBundle/module/html-generate.ts +3 -3
- package/lowcode/index.html +2 -2
- package/lowcode/jspage/editor.js +201 -220
- package/lowcode/jspage/editor.ts +317 -329
- package/lowcode/jspage/function-page/main_editor.js +71 -10
- package/lowcode/jspage/function-page/main_editor.ts +67 -10
- package/lowcode/jspage/function-page/server-editor/router/api-manager.js +1 -1
- package/lowcode/jspage/function-page/server-editor/router/api-manager.ts +1 -1
- package/lowcode/jspage/function-page/server-editor/router/domain-manager.js +1 -1
- package/lowcode/jspage/function-page/server-editor/router/domain-manager.ts +1 -1
- package/lowcode/jspage/function-page/tool-setting.js +340 -320
- package/lowcode/jspage/function-page/tool-setting.ts +351 -331
- package/lowcode/official_view_component/official/component.js +132 -98
- package/lowcode/official_view_component/official/component.ts +151 -114
- package/package.json +1 -1
- package/src/api-public/services/ai-robot.js.map +1 -1
- package/src/api-public/services/fake-data-model/fake-order.js.map +1 -1
- package/src/api-public/services/line-message.d.ts +1 -1
- package/src/api-public/services/line-message.js +8 -2
- package/src/api-public/services/line-message.js.map +1 -1
- package/src/api-public/services/line-message.ts +10 -3
- package/src/api-public/services/schedule.js +5 -1
- package/src/api-public/services/schedule.js.map +1 -1
- package/src/api-public/services/schedule.ts +5 -1
- package/src/api-public/services/shopping.d.ts +1 -1
- package/src/modules/database.d.ts +2 -1
- package/src/modules/database.js.map +1 -1
- package/src/update-script.js.map +1 -1
package/lowcode/Entry.js
CHANGED
|
@@ -59,7 +59,7 @@ export class Entry {
|
|
|
59
59
|
}
|
|
60
60
|
window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
|
|
61
61
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
62
|
-
glitter.share.editerVersion = "V_13.
|
|
62
|
+
glitter.share.editerVersion = "V_13.6.0";
|
|
63
63
|
glitter.share.start = (new Date());
|
|
64
64
|
const vm = {
|
|
65
65
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -60,7 +60,7 @@ export class Entry {
|
|
|
60
60
|
}
|
|
61
61
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
62
62
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
63
|
-
glitter.share.editerVersion = "V_13.
|
|
63
|
+
glitter.share.editerVersion = "V_13.6.0";
|
|
64
64
|
glitter.share.start = (new Date());
|
|
65
65
|
const vm: {
|
|
66
66
|
appConfig: any;
|
|
@@ -49,9 +49,9 @@ export class BgBlog {
|
|
|
49
49
|
key: '預覽',
|
|
50
50
|
value: html `
|
|
51
51
|
<div
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
class="d-flex align-items-center justify-content-center hoverBtn me-2 border"
|
|
53
|
+
style="height:28px;width:28px;border-radius:5px;cursor:pointer;color:#151515;"
|
|
54
|
+
onclick="${gvc.event((e, event) => {
|
|
55
55
|
const href = (() => {
|
|
56
56
|
return `https://${window.parent.glitter.share.editorViewModel.domain}/${is_page
|
|
57
57
|
? (() => {
|
|
@@ -81,7 +81,7 @@ export class BgBlog {
|
|
|
81
81
|
Article.get({
|
|
82
82
|
page: 0,
|
|
83
83
|
limit: 1,
|
|
84
|
-
id: window.parent.glitter.getUrlParameter('page-id')
|
|
84
|
+
id: window.parent.glitter.getUrlParameter('page-id'),
|
|
85
85
|
}).then((data) => __awaiter(this, void 0, void 0, function* () {
|
|
86
86
|
vm.data = data.response.data[0];
|
|
87
87
|
vm.type = 'replace';
|
|
@@ -271,7 +271,7 @@ export class BgBlog {
|
|
|
271
271
|
</div>
|
|
272
272
|
${[
|
|
273
273
|
html `<div class="my-3"></div>`,
|
|
274
|
-
BgWidget.
|
|
274
|
+
BgWidget.mainCard(gvc.bindView(() => {
|
|
275
275
|
return {
|
|
276
276
|
bind: containerID,
|
|
277
277
|
view: () => {
|
|
@@ -395,26 +395,26 @@ export class BgBlog {
|
|
|
395
395
|
if (data.response.result.data.length === 0) {
|
|
396
396
|
if (!vm.search) {
|
|
397
397
|
return html `
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
398
|
+
<div class="d-flex align-items-center justify-content-center flex-column w-100 py-4" style="width:700px;gap:10px;">
|
|
399
|
+
<img src="./img/box-open-solid.svg" />
|
|
400
|
+
<span class="color39 text-center">尚未自製任何模塊<br />請前往開發者模式自製專屬模塊</span>
|
|
401
|
+
</div>
|
|
402
|
+
`;
|
|
403
403
|
}
|
|
404
404
|
else {
|
|
405
405
|
return html `
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
406
|
+
<div class="d-flex align-items-center justify-content-center flex-column w-100 py-4" style="width:700px;gap:10px;">
|
|
407
|
+
<img src="./img/box-open-solid.svg" />
|
|
408
|
+
<span class="color39 text-center">查無相關模塊</span>
|
|
409
|
+
</div>
|
|
410
|
+
`;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
else {
|
|
414
414
|
return html `
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
415
|
+
<div class="w-100" style="overflow-y: auto;">
|
|
416
|
+
<div class="row m-0 pt-2 w-100">
|
|
417
|
+
${data.response.result.data
|
|
418
418
|
.sort((a, b) => {
|
|
419
419
|
if (a.tag === 'empty' || b.tag === 'empty') {
|
|
420
420
|
return b.tag === 'empty' ? 1 : -1;
|
|
@@ -426,29 +426,29 @@ export class BgBlog {
|
|
|
426
426
|
.map((dd, index) => {
|
|
427
427
|
var _a;
|
|
428
428
|
return html `<div class="col-6 col-sm-3 mb-3 rounded-3">
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
429
|
+
<div class="d-flex flex-column justify-content-center w-100 " style="gap:5px;cursor:pointer;">
|
|
430
|
+
<div
|
|
431
|
+
class="card w-100 position-relative rounded hoverHidden bgf6 rounded-3"
|
|
432
|
+
style="padding-bottom: ${(800 / 600) * 100}%;"
|
|
433
|
+
>
|
|
434
|
+
<div
|
|
435
|
+
class="position-absolute w-100 h-100 d-flex align-items-center justify-content-center rounded-3"
|
|
436
|
+
style="overflow: hidden;"
|
|
437
|
+
>
|
|
438
|
+
<img
|
|
439
|
+
class="w-100 "
|
|
440
|
+
src="${(_a = dd.template_config.image[0]) !== null && _a !== void 0 ? _a : 'https://d3jnmi1tfjgtti.cloudfront.net/file/252530754/1713445383494-未命名(1080x1080像素).jpg'}"
|
|
441
|
+
/>
|
|
442
|
+
</div>
|
|
443
443
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
444
|
+
<div
|
|
445
|
+
class="position-absolute w-100 h-100 align-items-center justify-content-center rounded fs-6 flex-column"
|
|
446
|
+
style="background: rgba(0,0,0,0.5);gap:5px;"
|
|
447
|
+
>
|
|
448
|
+
<button
|
|
449
|
+
class="btn btn-secondary d-flex align-items-center "
|
|
450
|
+
style="height: 28px;width: 75px;gap:5px;"
|
|
451
|
+
onclick="${gvc.event(() => {
|
|
452
452
|
if (dd.tag === 'empty') {
|
|
453
453
|
const a = [];
|
|
454
454
|
a.name = '空白頁面';
|
|
@@ -470,36 +470,36 @@ export class BgBlog {
|
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
})}"
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
473
|
+
>
|
|
474
|
+
選擇
|
|
475
|
+
</button>
|
|
476
|
+
</div>
|
|
477
|
+
</div>
|
|
478
|
+
<h3 class="fs-6 mb-0 d-flex justify-content-between align-items-center fw-500 mt-1">
|
|
479
|
+
${dd.template_config.name}
|
|
480
|
+
<i
|
|
481
|
+
class="fa-solid fa-eye ${dd.tag === 'empty' ? `d-none` : ``}"
|
|
482
|
+
style="cursor:pointer;"
|
|
483
|
+
onclick="${gvc.event(() => {
|
|
484
484
|
window.parent.glitter.openNewTab(`${gvc.glitter.root_path}pages/${dd.tag}?appName=${dd.appName}`);
|
|
485
485
|
})}"
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
486
|
+
></i>
|
|
487
|
+
</h3>
|
|
488
|
+
</div>
|
|
489
|
+
</div>`;
|
|
490
490
|
})
|
|
491
491
|
.join('')}
|
|
492
|
-
</div>
|
|
493
492
|
</div>
|
|
494
|
-
|
|
493
|
+
</div>
|
|
494
|
+
`;
|
|
495
495
|
}
|
|
496
496
|
})();
|
|
497
497
|
}
|
|
498
498
|
else {
|
|
499
499
|
return html ` <div class="w-100 p-3 d-flex align-items-center justify-content-center flex-column" style="gap: 10px;">
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
500
|
+
<div class="spinner-border fs-5"></div>
|
|
501
|
+
<div class="fs-6 fw-500">載入中...</div>
|
|
502
|
+
</div>`;
|
|
503
503
|
}
|
|
504
504
|
},
|
|
505
505
|
divCreate: {
|
|
@@ -746,7 +746,10 @@ function detail(gvc, cf, vm, cVm, page_tab) {
|
|
|
746
746
|
if (`${vm.data.content.for_index}` === 'true') {
|
|
747
747
|
return [
|
|
748
748
|
[
|
|
749
|
-
html `<div class="
|
|
749
|
+
html `<div class="d-flex w-100 align-items-center justify-content-between p-0 my-2">
|
|
750
|
+
<div class="tx_normal fw-normal">網誌內文</div>
|
|
751
|
+
${BgWidget.aiChatButton({ gvc, select: 'writer' })}
|
|
752
|
+
</div>`,
|
|
750
753
|
EditorElem.richText({
|
|
751
754
|
gvc: gvc,
|
|
752
755
|
def: (_a = vm.data.content.text) !== null && _a !== void 0 ? _a : '',
|
|
@@ -1313,44 +1316,44 @@ function setCollection(cf) {
|
|
|
1313
1316
|
bind: vm.id,
|
|
1314
1317
|
view: () => {
|
|
1315
1318
|
return html ` <div class="title-container">
|
|
1316
|
-
|
|
1319
|
+
${BgWidget.goBack(cf.gvc.event(() => {
|
|
1317
1320
|
cf.goBack();
|
|
1318
1321
|
}))}${BgWidget.title('分類設定')}
|
|
1319
|
-
|
|
1320
|
-
|
|
1322
|
+
</div>
|
|
1323
|
+
${BgWidget.container(html `<div
|
|
1321
1324
|
style="max-width:100%;width: 856px; padding: 20px; background: white; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.08); border-radius: 10px; overflow: hidden; justify-content: center; align-items: center; display: inline-flex"
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1325
|
+
>
|
|
1326
|
+
<div style="width: 100%; position: relative">
|
|
1327
|
+
<div style="width: 100%; left: 0px; top: 0px; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 20px; display: inline-flex">
|
|
1328
|
+
<div
|
|
1326
1329
|
class="w-100 ${getSelectCount({
|
|
1327
1330
|
items: vm.link,
|
|
1328
1331
|
}) > 0
|
|
1329
1332
|
? ``
|
|
1330
1333
|
: `d-none`}"
|
|
1331
1334
|
style="height: 40px; padding: 12px 18px;background: #F7F7F7; border-radius: 10px; justify-content: flex-end; align-items: center; gap: 8px; display: inline-flex"
|
|
1332
|
-
|
|
1333
|
-
|
|
1335
|
+
>
|
|
1336
|
+
<div style="flex: 1 1 0; color: #393939; font-size: 14px; font-family: Noto Sans; font-weight: 700; word-wrap: break-word">
|
|
1334
1337
|
已選取${getSelectCount({
|
|
1335
1338
|
items: vm.link,
|
|
1336
1339
|
})}項
|
|
1337
|
-
|
|
1338
|
-
<div
|
|
1339
|
-
style="cursor:pointer;padding: 4px 14px;background: white; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.10); border-radius: 20px; border: 1px #DDDDDD solid; justify-content: flex-start; align-items: flex-start; gap: 10px; display: flex"
|
|
1340
|
-
>
|
|
1340
|
+
</div>
|
|
1341
1341
|
<div
|
|
1342
|
+
style="cursor:pointer;padding: 4px 14px;background: white; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.10); border-radius: 20px; border: 1px #DDDDDD solid; justify-content: flex-start; align-items: flex-start; gap: 10px; display: flex"
|
|
1343
|
+
>
|
|
1344
|
+
<div
|
|
1342
1345
|
style="color: #393939; font-size: 14px; font-family: Noto Sans; font-weight: 400; word-wrap: break-word"
|
|
1343
1346
|
onclick="${gvc.event(() => {
|
|
1344
1347
|
vm.link = deleteSelect(vm.link);
|
|
1345
1348
|
gvc.notifyDataChange(vm.id);
|
|
1346
1349
|
})}"
|
|
1347
|
-
|
|
1348
|
-
|
|
1350
|
+
>
|
|
1351
|
+
刪除
|
|
1352
|
+
</div>
|
|
1349
1353
|
</div>
|
|
1350
1354
|
</div>
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
<div
|
|
1355
|
+
<div class="d-flex align-items-center" style="width: 100%; height: 22px; position: relative;gap:29px;">
|
|
1356
|
+
<div
|
|
1354
1357
|
class="${allSelect({
|
|
1355
1358
|
items: vm.link,
|
|
1356
1359
|
selected: !vm.link.find((dd) => {
|
|
@@ -1376,11 +1379,11 @@ function setCollection(cf) {
|
|
|
1376
1379
|
}
|
|
1377
1380
|
gvc.notifyDataChange(vm.id);
|
|
1378
1381
|
})}"
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1382
|
+
></div>
|
|
1383
|
+
<div style="left: 61px; top: 0px; color: #393939; font-size: 16px; font-family: Noto Sans; font-weight: 700; word-wrap: break-word">選單名稱</div>
|
|
1384
|
+
</div>
|
|
1385
|
+
<div style="align-self: stretch; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 18px; display: flex">
|
|
1386
|
+
${(() => {
|
|
1384
1387
|
function renderItems(array) {
|
|
1385
1388
|
const id = gvc.glitter.getUUID();
|
|
1386
1389
|
return (gvc.bindView(() => {
|
|
@@ -1391,20 +1394,20 @@ function setCollection(cf) {
|
|
|
1391
1394
|
.map((dd, index) => {
|
|
1392
1395
|
dd.items;
|
|
1393
1396
|
const list = html `
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1397
|
+
<div
|
|
1398
|
+
class=" w-100 "
|
|
1399
|
+
style="width: 100%; justify-content: flex-start; align-items: center; gap: 5px; display: inline-flex;cursor: pointer;"
|
|
1400
|
+
onclick="${cf.gvc.event(() => {
|
|
1398
1401
|
if (dd.items && dd.items.length > 0) {
|
|
1399
1402
|
dd.toggle = !dd.toggle;
|
|
1400
1403
|
gvc.notifyDataChange(vm.id);
|
|
1401
1404
|
}
|
|
1402
1405
|
})}"
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1406
|
+
>
|
|
1407
|
+
<div
|
|
1408
|
+
class="${allSelect(dd) ? `fa-solid fa-square-check` : `fa-regular fa-square`}"
|
|
1409
|
+
style="color:#393939;width: 16px; height: 16px;"
|
|
1410
|
+
onclick="${cf.gvc.event((e, event) => {
|
|
1408
1411
|
event.stopPropagation();
|
|
1409
1412
|
dd.selected = !dd.selected;
|
|
1410
1413
|
if (dd.selected) {
|
|
@@ -1415,38 +1418,38 @@ function setCollection(cf) {
|
|
|
1415
1418
|
}
|
|
1416
1419
|
gvc.notifyDataChange(vm.id);
|
|
1417
1420
|
})}"
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1421
|
+
></div>
|
|
1422
|
+
<div class="hoverF2 pe-2" style="width: 100%; justify-content: flex-start; align-items: center; gap: 8px; display: flex">
|
|
1423
|
+
<i
|
|
1424
|
+
class="ms-2 fa-solid fa-grip-dots-vertical color39 dragItem hoverBtn d-flex align-items-center justify-content-center"
|
|
1425
|
+
style="cursor: pointer;width:25px;height: 25px;"
|
|
1426
|
+
></i>
|
|
1427
|
+
<div style="flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; display: inline-flex">
|
|
1428
|
+
<div style="justify-content: flex-start; align-items: center; gap: 8px; display: inline-flex">
|
|
1429
|
+
<div style="color: #393939; font-size: 16px; font-family: Noto Sans; font-weight: 400; word-wrap: break-word">
|
|
1430
|
+
${dd.title}
|
|
1431
|
+
</div>
|
|
1432
|
+
${dd.items && dd.items.length > 0
|
|
1430
1433
|
? !dd.toggle
|
|
1431
1434
|
? `<i class="fa-solid fa-angle-down color39"></i>`
|
|
1432
1435
|
: `<i class="fa-solid fa-angle-up color39"></i>`
|
|
1433
1436
|
: ``}
|
|
1437
|
+
</div>
|
|
1438
|
+
<div style="justify-content: flex-start; align-items: center; gap: 8px; display: inline-flex">
|
|
1439
|
+
<div
|
|
1440
|
+
style="color: #3366BB; font-size: 14px; font-family: Noto Sans; font-weight: 400; line-height: 14px; word-wrap: break-word"
|
|
1441
|
+
>
|
|
1442
|
+
${dd.title}
|
|
1434
1443
|
</div>
|
|
1435
|
-
<div style="
|
|
1436
|
-
|
|
1437
|
-
style="color: #3366BB; font-size: 14px; font-family: Noto Sans; font-weight: 400; line-height: 14px; word-wrap: break-word"
|
|
1438
|
-
>
|
|
1439
|
-
${dd.title}
|
|
1440
|
-
</div>
|
|
1441
|
-
<div style="color: #159240; font-size: 14px; font-family: Noto Sans; font-weight: 400; word-wrap: break-word">
|
|
1442
|
-
${dd.link}
|
|
1443
|
-
</div>
|
|
1444
|
+
<div style="color: #159240; font-size: 14px; font-family: Noto Sans; font-weight: 400; word-wrap: break-word">
|
|
1445
|
+
${dd.link}
|
|
1444
1446
|
</div>
|
|
1445
1447
|
</div>
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1448
|
+
</div>
|
|
1449
|
+
<div class="flex-fill"></div>
|
|
1450
|
+
<div
|
|
1451
|
+
class="child me-2"
|
|
1452
|
+
onclick="${cf.gvc.event((e, event) => {
|
|
1450
1453
|
event.stopPropagation();
|
|
1451
1454
|
MenusSetting.collectionEvent({
|
|
1452
1455
|
link: '',
|
|
@@ -1465,12 +1468,12 @@ function setCollection(cf) {
|
|
|
1465
1468
|
}
|
|
1466
1469
|
});
|
|
1467
1470
|
})}"
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1471
|
+
>
|
|
1472
|
+
<i class="fa-solid fa-plus" style="color:#393939;"></i>
|
|
1473
|
+
</div>
|
|
1474
|
+
<div
|
|
1475
|
+
class="child"
|
|
1476
|
+
onclick="${cf.gvc.event((e, event) => {
|
|
1474
1477
|
event.stopPropagation();
|
|
1475
1478
|
const og = JSON.parse(JSON.stringify(dd));
|
|
1476
1479
|
MenusSetting.collectionEvent(dd, (data) => {
|
|
@@ -1486,19 +1489,19 @@ function setCollection(cf) {
|
|
|
1486
1489
|
}
|
|
1487
1490
|
});
|
|
1488
1491
|
})}"
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
</div>
|
|
1492
|
+
>
|
|
1493
|
+
<i class="fa-solid fa-pencil" style="color:#393939;"></i>
|
|
1492
1494
|
</div>
|
|
1493
1495
|
</div>
|
|
1494
|
-
|
|
1496
|
+
</div>
|
|
1497
|
+
${dd.items && dd.items.length > 0
|
|
1495
1498
|
? html `
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1499
|
+
<div class=" w-100 ${dd.toggle ? `` : `d-none`}" style="padding-left: 35px;">
|
|
1500
|
+
${renderItems(dd.items)}
|
|
1501
|
+
</div>
|
|
1502
|
+
`
|
|
1500
1503
|
: ``}
|
|
1501
|
-
|
|
1504
|
+
`;
|
|
1502
1505
|
return html ` <li class="w-100 ">${list}</li>`;
|
|
1503
1506
|
})
|
|
1504
1507
|
.join('');
|
|
@@ -1551,9 +1554,9 @@ function setCollection(cf) {
|
|
|
1551
1554
|
};
|
|
1552
1555
|
}) +
|
|
1553
1556
|
html ` <div
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
+
class=""
|
|
1558
|
+
style="cursor:pointer;align-self: stretch; height: 50px; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 10px; display: flex"
|
|
1559
|
+
onclick="${cf.gvc.event(() => {
|
|
1557
1560
|
MenusSetting.collectionEvent({
|
|
1558
1561
|
link: '',
|
|
1559
1562
|
title: '',
|
|
@@ -1572,7 +1575,7 @@ function setCollection(cf) {
|
|
|
1572
1575
|
})}"
|
|
1573
1576
|
>
|
|
1574
1577
|
<div
|
|
1575
|
-
|
|
1578
|
+
style="align-self: stretch; height: 54px; border-radius: 10px; border: 1px #DDDDDD solid; justify-content: center; align-items: center; gap: 6px; display: inline-flex"
|
|
1576
1579
|
>
|
|
1577
1580
|
<i class="fa-solid fa-plus" style="color: #3366BB;font-size: 16px; "></i>
|
|
1578
1581
|
<div style="color: #3366BB; font-size: 16px; font-family: Noto Sans; font-weight: 400; word-wrap: break-word">新增選單</div>
|
|
@@ -1581,18 +1584,18 @@ function setCollection(cf) {
|
|
|
1581
1584
|
}
|
|
1582
1585
|
return renderItems(vm.link);
|
|
1583
1586
|
})()}
|
|
1587
|
+
</div>
|
|
1584
1588
|
</div>
|
|
1585
1589
|
</div>
|
|
1586
|
-
</div
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
${BgWidget.cancel(gvc.event(() => {
|
|
1590
|
+
</div>`)}
|
|
1591
|
+
<div class="update-bar-container">
|
|
1592
|
+
${BgWidget.cancel(gvc.event(() => {
|
|
1590
1593
|
cf.goBack();
|
|
1591
1594
|
}))}
|
|
1592
|
-
|
|
1595
|
+
${BgWidget.save(gvc.event(() => {
|
|
1593
1596
|
save();
|
|
1594
1597
|
}), '確認')}
|
|
1595
|
-
|
|
1598
|
+
</div>`;
|
|
1596
1599
|
},
|
|
1597
1600
|
divCreate: {
|
|
1598
1601
|
style: `padding-bottom:60px;`,
|