ts-glitter 14.8.2 → 14.8.3
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
CHANGED
|
@@ -80,7 +80,7 @@ export class Entry {
|
|
|
80
80
|
}
|
|
81
81
|
window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
|
|
82
82
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
83
|
-
glitter.share.editerVersion = 'V_14.8.
|
|
83
|
+
glitter.share.editerVersion = 'V_14.8.3';
|
|
84
84
|
glitter.share.start = new Date();
|
|
85
85
|
const vm = {
|
|
86
86
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -82,7 +82,7 @@ export class Entry {
|
|
|
82
82
|
|
|
83
83
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
84
84
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
85
|
-
glitter.share.editerVersion = 'V_14.8.
|
|
85
|
+
glitter.share.editerVersion = 'V_14.8.3';
|
|
86
86
|
glitter.share.start = new Date();
|
|
87
87
|
const vm: {
|
|
88
88
|
appConfig: any;
|
|
@@ -222,7 +222,7 @@ export class GVC {
|
|
|
222
222
|
return `s${style_check_sum}`;
|
|
223
223
|
}
|
|
224
224
|
bindView(map) {
|
|
225
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
225
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
226
226
|
const gvc = this;
|
|
227
227
|
if (typeof map === "function") {
|
|
228
228
|
map = map();
|
|
@@ -260,12 +260,12 @@ export class GVC {
|
|
|
260
260
|
});
|
|
261
261
|
gvc.glitter.elementCallback[bind_id].getView = map.view;
|
|
262
262
|
gvc.glitter.elementCallback[bind_id].updateAttribute = (() => {
|
|
263
|
-
var _a, _b;
|
|
263
|
+
var _a, _b, _c;
|
|
264
264
|
try {
|
|
265
265
|
const id = gvc.id(map.bind);
|
|
266
266
|
const divCreate2 = (typeof map.divCreate === "function") ? map.divCreate() : map.divCreate;
|
|
267
267
|
if (divCreate2) {
|
|
268
|
-
((_a = divCreate2.option) !== null && _a !== void 0 ? _a : []).concat({ key: 'class', value: ((_b = divCreate2.class) !== null && _b !== void 0 ? _b : '').split(' ').filter((dd) => { return dd; }).join(' ').replace(/\n/g, '')
|
|
268
|
+
((_a = divCreate2.option) !== null && _a !== void 0 ? _a : []).concat({ key: 'class', value: ((_b = divCreate2.class) !== null && _b !== void 0 ? _b : '').split(' ').filter((dd) => { return dd; }).join(' ').replace(/\n/g, '') }, { key: 'style', value: ((_c = divCreate2.style) !== null && _c !== void 0 ? _c : '').trim() }).map((dd) => {
|
|
269
269
|
try {
|
|
270
270
|
gvc.glitter.renderView.replaceAttributeValue(dd, document.querySelector(`[gvc-id="${id}"]`));
|
|
271
271
|
}
|
|
@@ -282,14 +282,15 @@ export class GVC {
|
|
|
282
282
|
if ((typeof gvc.glitter.elementCallback[bind_id].initial_view === 'string')) {
|
|
283
283
|
}
|
|
284
284
|
const divCreate = (_d = ((typeof map.divCreate === "function") ? map.divCreate() : map.divCreate)) !== null && _d !== void 0 ? _d : { elem: 'div' };
|
|
285
|
-
return `<${(_e = divCreate.elem) !== null && _e !== void 0 ? _e : 'div'} class="${((_f = divCreate.class) !== null && _f !== void 0 ? _f : "").split(' ').filter((dd) => { return dd; }).join(' ').replace(/\n/g, '')}
|
|
285
|
+
return `<${(_e = divCreate.elem) !== null && _e !== void 0 ? _e : 'div'} class="${((_f = divCreate.class) !== null && _f !== void 0 ? _f : "").split(' ').filter((dd) => { return dd; }).join(' ').replace(/\n/g, '')} "
|
|
286
|
+
style="${((_g = divCreate.style) !== null && _g !== void 0 ? _g : "").trim()}"
|
|
286
287
|
glem="bindView" gvc-id="${bind_id}"
|
|
287
|
-
${gvc.map(((
|
|
288
|
+
${gvc.map(((_h = divCreate.option) !== null && _h !== void 0 ? _h : []).map((dd) => {
|
|
288
289
|
return ` ${dd.key}="${dd.value}"`;
|
|
289
290
|
}))}
|
|
290
291
|
>
|
|
291
292
|
${(typeof gvc.glitter.elementCallback[bind_id].initial_view === 'string') ? gvc.glitter.elementCallback[bind_id].initial_view : ``}
|
|
292
|
-
</${(
|
|
293
|
+
</${(_j = divCreate.elem) !== null && _j !== void 0 ? _j : 'div'}>`;
|
|
293
294
|
}
|
|
294
295
|
event(fun, noCycle) {
|
|
295
296
|
const gvc = this;
|
|
@@ -281,8 +281,8 @@ export class GVC {
|
|
|
281
281
|
const divCreate2 = (typeof (map as any).divCreate === "function") ? (map as any).divCreate() : (map as any).divCreate;
|
|
282
282
|
if (divCreate2) {
|
|
283
283
|
(divCreate2.option ?? []).concat(
|
|
284
|
-
{key: 'class', value: (divCreate2.class ?? '').split(' ').filter((dd:any)=>{return dd}).join(' ').replace(/\n/g,'')
|
|
285
|
-
|
|
284
|
+
{key: 'class', value: (divCreate2.class ?? '').split(' ').filter((dd:any)=>{return dd}).join(' ').replace(/\n/g,'')},
|
|
285
|
+
{key: 'style', value: (divCreate2.style ?? '').trim()}
|
|
286
286
|
).map((dd: any) => {
|
|
287
287
|
try {
|
|
288
288
|
gvc.glitter.renderView.replaceAttributeValue(dd, document.querySelector(`[gvc-id="${id}"]`)!)
|
|
@@ -301,7 +301,8 @@ export class GVC {
|
|
|
301
301
|
// // console.log(`initial_view`,gvc.glitter.elementCallback[bind_id].initial_view)
|
|
302
302
|
}
|
|
303
303
|
const divCreate = ((typeof (map as any).divCreate === "function") ? (map as any).divCreate() : (map as any).divCreate) ?? {elem: 'div'};
|
|
304
|
-
return `<${divCreate.elem ?? 'div'} class="${(divCreate.class ?? "").split(' ').filter((dd:any)=>{return dd}).join(' ').replace(/\n/g,'')}
|
|
304
|
+
return `<${divCreate.elem ?? 'div'} class="${(divCreate.class ?? "").split(' ').filter((dd:any)=>{return dd}).join(' ').replace(/\n/g,'')} "
|
|
305
|
+
style="${(divCreate.style ?? "").trim()}"
|
|
305
306
|
glem="bindView" gvc-id="${bind_id}"
|
|
306
307
|
${gvc.map((divCreate.option ?? []).map((dd: any) => {
|
|
307
308
|
return ` ${dd.key}="${dd.value}"`
|