ts-glitter 13.7.5 → 13.7.7
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/cms-plugin/ai-points.js +4 -4
- package/lowcode/cms-plugin/ai-points.ts +4 -4
- package/lowcode/cms-plugin/sms-points.js +4 -4
- package/lowcode/cms-plugin/sms-points.ts +4 -4
- package/lowcode/glitterBundle/module/html-generate.js +28 -7
- package/lowcode/glitterBundle/module/html-generate.ts +32 -9
- package/lowcode/jspage/function-page/main_editor.js +1 -1
- package/lowcode/jspage/function-page/main_editor.ts +1 -1
- package/package.json +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.7.
|
|
62
|
+
glitter.share.editerVersion = "V_13.7.7";
|
|
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.7.
|
|
63
|
+
glitter.share.editerVersion = "V_13.7.7";
|
|
64
64
|
glitter.share.start = (new Date());
|
|
65
65
|
const vm: {
|
|
66
66
|
appConfig: any;
|
|
@@ -194,10 +194,10 @@ export class AiPoints {
|
|
|
194
194
|
gvc.recreateView();
|
|
195
195
|
},
|
|
196
196
|
options: [
|
|
197
|
-
{ key: '500', value: '5,000點
|
|
198
|
-
{ key: '1000', value: '10,000點
|
|
199
|
-
{ key: '1500', value: '15,000點
|
|
200
|
-
{ key: '2000', value: '20,000點
|
|
197
|
+
{ key: '500', value: '5,000點' },
|
|
198
|
+
{ key: '1000', value: '10,000點' },
|
|
199
|
+
{ key: '1500', value: '15,000點' },
|
|
200
|
+
{ key: '2000', value: '20,000點' },
|
|
201
201
|
],
|
|
202
202
|
default: `${vm.total}`,
|
|
203
203
|
}),
|
|
@@ -224,10 +224,10 @@ export class AiPoints {
|
|
|
224
224
|
gvc.recreateView();
|
|
225
225
|
},
|
|
226
226
|
options: [
|
|
227
|
-
{ key: '500', value: '5,000點
|
|
228
|
-
{ key: '1000', value: '10,000點
|
|
229
|
-
{ key: '1500', value: '15,000點
|
|
230
|
-
{ key: '2000', value: '20,000點
|
|
227
|
+
{ key: '500', value: '5,000點' },
|
|
228
|
+
{ key: '1000', value: '10,000點' },
|
|
229
|
+
{ key: '1500', value: '15,000點' },
|
|
230
|
+
{ key: '2000', value: '20,000點' },
|
|
231
231
|
],
|
|
232
232
|
default: `${vm.total}`,
|
|
233
233
|
}),
|
|
@@ -192,10 +192,10 @@ export class SmsPoints {
|
|
|
192
192
|
gvc.recreateView();
|
|
193
193
|
},
|
|
194
194
|
options: [
|
|
195
|
-
{ key: '500', value: '5,000點
|
|
196
|
-
{ key: '1000', value: '10,000點
|
|
197
|
-
{ key: '1500', value: '15,000點
|
|
198
|
-
{ key: '2000', value: '20,000點
|
|
195
|
+
{ key: '500', value: '5,000點' },
|
|
196
|
+
{ key: '1000', value: '10,000點' },
|
|
197
|
+
{ key: '1500', value: '15,000點' },
|
|
198
|
+
{ key: '2000', value: '20,000點' },
|
|
199
199
|
],
|
|
200
200
|
default: `${vm.total}`,
|
|
201
201
|
}),
|
|
@@ -222,10 +222,10 @@ export class SmsPoints {
|
|
|
222
222
|
gvc.recreateView();
|
|
223
223
|
},
|
|
224
224
|
options: [
|
|
225
|
-
{ key: '500', value: '5,000點
|
|
226
|
-
{ key: '1000', value: '10,000點
|
|
227
|
-
{ key: '1500', value: '15,000點
|
|
228
|
-
{ key: '2000', value: '20,000點
|
|
225
|
+
{ key: '500', value: '5,000點' },
|
|
226
|
+
{ key: '1000', value: '10,000點' },
|
|
227
|
+
{ key: '1500', value: '15,000點' },
|
|
228
|
+
{ key: '2000', value: '20,000點' },
|
|
229
229
|
],
|
|
230
230
|
default: `${vm.total}`,
|
|
231
231
|
}),
|
|
@@ -1691,11 +1691,11 @@ ${obj.gvc.bindView({
|
|
|
1691
1691
|
${widget.visible === false ? ` hide-elem` : ``}`,
|
|
1692
1692
|
option: option.concat((() => {
|
|
1693
1693
|
if (root && isEditMode()) {
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1694
|
+
if (window.parent.document.body.clientWidth < 800) {
|
|
1695
|
+
return [
|
|
1696
|
+
{
|
|
1697
|
+
key: 'onclick',
|
|
1698
|
+
value: gvc.event((e, event) => {
|
|
1699
1699
|
HtmlGenerate.selectWidget({
|
|
1700
1700
|
gvc: gvc,
|
|
1701
1701
|
widget: widget,
|
|
@@ -1703,8 +1703,29 @@ ${obj.gvc.bindView({
|
|
|
1703
1703
|
event: event,
|
|
1704
1704
|
glitter: window.parent.glitter,
|
|
1705
1705
|
});
|
|
1706
|
-
|
|
1707
|
-
|
|
1706
|
+
function loop(item) {
|
|
1707
|
+
if (item[0] && item[0].tagName.toLowerCase() === 'li') {
|
|
1708
|
+
if (item[0].children[0] && (!item[0].children[0].className.includes('active_F2F2F2'))) {
|
|
1709
|
+
item[0].children[0].style.background = '#F2F2F2';
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
if (!item[0] || (!item[0].className.includes('root-left-container'))) {
|
|
1713
|
+
loop(item.parent());
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
if (window.parent.document.querySelector(`.it-${widget.id}`)) {
|
|
1717
|
+
loop(window.parent.glitter.$(`.it-${widget.id}`).parent());
|
|
1718
|
+
window.parent.document.querySelector(`.it-${widget.id}`).style.background = '#F2F2F2';
|
|
1719
|
+
}
|
|
1720
|
+
$(e).children('.editorChild').get(0).style.background = 'linear-gradient(143deg, rgba(255, 180, 0, 0.2) -22.7%, rgba(255, 108, 2, 0.2) 114.57%)';
|
|
1721
|
+
})
|
|
1722
|
+
}
|
|
1723
|
+
];
|
|
1724
|
+
}
|
|
1725
|
+
return [
|
|
1726
|
+
{
|
|
1727
|
+
key: 'onmouseover',
|
|
1728
|
+
value: gvc.event((e, event) => {
|
|
1708
1729
|
$(e).children('.editorChild').children('.copy-btn').show();
|
|
1709
1730
|
$(e).children('.editorChild').children('.plus_bt').show();
|
|
1710
1731
|
function loop(item) {
|
|
@@ -2177,19 +2177,42 @@ ${e.line}
|
|
|
2177
2177
|
option: option.concat(
|
|
2178
2178
|
(() => {
|
|
2179
2179
|
if (root && isEditMode()) {
|
|
2180
|
+
if((window.parent as any).document.body.clientWidth<800){
|
|
2181
|
+
return [
|
|
2182
|
+
{
|
|
2183
|
+
key:'onclick',
|
|
2184
|
+
value:gvc.event((e,event)=>{
|
|
2185
|
+
HtmlGenerate.selectWidget({
|
|
2186
|
+
gvc: gvc,
|
|
2187
|
+
widget: widget,
|
|
2188
|
+
widgetComponentID: cf.widget.id,
|
|
2189
|
+
event: event,
|
|
2190
|
+
glitter: (window.parent as any).glitter,
|
|
2191
|
+
});
|
|
2192
|
+
function loop(item: any) {
|
|
2193
|
+
|
|
2194
|
+
if(item[0] && item[0].tagName.toLowerCase()==='li'){
|
|
2195
|
+
if(item[0].children[0] && (!item[0].children[0].className.includes('active_F2F2F2'))){
|
|
2196
|
+
item[0].children[0].style.background = '#F2F2F2';
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
if (!item[0] || (!item[0].className.includes('root-left-container'))) {
|
|
2200
|
+
loop(item.parent())
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
if( (window.parent as any).document.querySelector(`.it-${widget.id}`)){
|
|
2204
|
+
loop((window.parent as any).glitter.$(`.it-${widget.id}`).parent());
|
|
2205
|
+
(window.parent as any).document.querySelector(`.it-${widget.id}`).style.background = '#F2F2F2';
|
|
2206
|
+
}
|
|
2207
|
+
($(e).children('.editorChild').get(0) as any).style.background = 'linear-gradient(143deg, rgba(255, 180, 0, 0.2) -22.7%, rgba(255, 108, 2, 0.2) 114.57%)';
|
|
2208
|
+
})
|
|
2209
|
+
}
|
|
2210
|
+
]
|
|
2211
|
+
}
|
|
2180
2212
|
return [
|
|
2181
2213
|
{
|
|
2182
2214
|
key: 'onmouseover',
|
|
2183
2215
|
value: gvc.event((e, event) => {
|
|
2184
|
-
if((window.parent as any).document.body.clientWidth<800){
|
|
2185
|
-
HtmlGenerate.selectWidget({
|
|
2186
|
-
gvc: gvc,
|
|
2187
|
-
widget: widget,
|
|
2188
|
-
widgetComponentID: cf.widget.id,
|
|
2189
|
-
event: event,
|
|
2190
|
-
glitter: (window.parent as any).glitter,
|
|
2191
|
-
});
|
|
2192
|
-
};
|
|
2193
2216
|
($(e).children('.editorChild').children('.copy-btn') as any).show();
|
|
2194
2217
|
($(e).children('.editorChild').children('.plus_bt') as any).show();
|
|
2195
2218
|
function loop(item: any) {
|
|
@@ -1207,7 +1207,7 @@ export class Main_editor {
|
|
|
1207
1207
|
gvc.glitter.openDrawer();
|
|
1208
1208
|
})}">編輯
|
|
1209
1209
|
</div>
|
|
1210
|
-
<div class="rounded-1 border bg-white p-1 px-2 fw-500"
|
|
1210
|
+
<div class="rounded-1 border bg-white p-1 px-2 fw-500 ${(gvc.glitter.share.editorViewModel.selectItem.deletable === 'false') ? `d-none` : ``}"
|
|
1211
1211
|
style="font-size: 14px;color:black;"
|
|
1212
1212
|
onclick="${gvc.event(() => {
|
|
1213
1213
|
const dialog = new ShareDialog(gvc.glitter);
|
|
@@ -1280,7 +1280,7 @@ export class Main_editor {
|
|
|
1280
1280
|
gvc.glitter.openDrawer();
|
|
1281
1281
|
})}">編輯
|
|
1282
1282
|
</div>
|
|
1283
|
-
<div class="rounded-1 border bg-white p-1 px-2 fw-500"
|
|
1283
|
+
<div class="rounded-1 border bg-white p-1 px-2 fw-500 ${(gvc.glitter.share.editorViewModel.selectItem.deletable==='false') ? `d-none`:``}"
|
|
1284
1284
|
style="font-size: 14px;color:black;"
|
|
1285
1285
|
onclick="${gvc.event(() => {
|
|
1286
1286
|
const dialog = new ShareDialog(gvc.glitter)
|