@widget-js/core 24.1.1-beta.76 → 24.1.1-beta.78
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/dist/index.cjs +71 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -16
- package/dist/index.d.ts +34 -16
- package/dist/index.js +71 -46
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -29,13 +29,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
// file that has been converted to a CommonJS file using a Babel-
|
|
30
30
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
31
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
|
-
|
|
32
|
+
__defProp(target, "default", { value: mod, enumerable: true }) ,
|
|
33
33
|
mod
|
|
34
34
|
));
|
|
35
35
|
|
|
36
36
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayReduce.js
|
|
37
37
|
var require_arrayReduce = __commonJS({
|
|
38
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayReduce.js"(exports, module) {
|
|
38
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayReduce.js"(exports$1, module) {
|
|
39
39
|
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
40
40
|
var index = -1, length = array == null ? 0 : array.length;
|
|
41
41
|
if (initAccum && length) {
|
|
@@ -52,7 +52,7 @@ var require_arrayReduce = __commonJS({
|
|
|
52
52
|
|
|
53
53
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyOf.js
|
|
54
54
|
var require_basePropertyOf = __commonJS({
|
|
55
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyOf.js"(exports, module) {
|
|
55
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyOf.js"(exports$1, module) {
|
|
56
56
|
function basePropertyOf(object) {
|
|
57
57
|
return function(key) {
|
|
58
58
|
return object == null ? void 0 : object[key];
|
|
@@ -64,7 +64,7 @@ var require_basePropertyOf = __commonJS({
|
|
|
64
64
|
|
|
65
65
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_deburrLetter.js
|
|
66
66
|
var require_deburrLetter = __commonJS({
|
|
67
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_deburrLetter.js"(exports, module) {
|
|
67
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_deburrLetter.js"(exports$1, module) {
|
|
68
68
|
var basePropertyOf = require_basePropertyOf();
|
|
69
69
|
var deburredLetters = {
|
|
70
70
|
// Latin-1 Supplement block.
|
|
@@ -267,7 +267,7 @@ var require_deburrLetter = __commonJS({
|
|
|
267
267
|
|
|
268
268
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js
|
|
269
269
|
var require_freeGlobal = __commonJS({
|
|
270
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js"(exports, module) {
|
|
270
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js"(exports$1, module) {
|
|
271
271
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
272
272
|
module.exports = freeGlobal;
|
|
273
273
|
}
|
|
@@ -275,7 +275,7 @@ var require_freeGlobal = __commonJS({
|
|
|
275
275
|
|
|
276
276
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js
|
|
277
277
|
var require_root = __commonJS({
|
|
278
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js"(exports, module) {
|
|
278
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js"(exports$1, module) {
|
|
279
279
|
var freeGlobal = require_freeGlobal();
|
|
280
280
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
281
281
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
@@ -285,7 +285,7 @@ var require_root = __commonJS({
|
|
|
285
285
|
|
|
286
286
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js
|
|
287
287
|
var require_Symbol = __commonJS({
|
|
288
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"(exports, module) {
|
|
288
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"(exports$1, module) {
|
|
289
289
|
var root = require_root();
|
|
290
290
|
var Symbol2 = root.Symbol;
|
|
291
291
|
module.exports = Symbol2;
|
|
@@ -294,7 +294,7 @@ var require_Symbol = __commonJS({
|
|
|
294
294
|
|
|
295
295
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js
|
|
296
296
|
var require_arrayMap = __commonJS({
|
|
297
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"(exports, module) {
|
|
297
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"(exports$1, module) {
|
|
298
298
|
function arrayMap(array, iteratee) {
|
|
299
299
|
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
300
300
|
while (++index < length) {
|
|
@@ -308,7 +308,7 @@ var require_arrayMap = __commonJS({
|
|
|
308
308
|
|
|
309
309
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js
|
|
310
310
|
var require_isArray = __commonJS({
|
|
311
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"(exports, module) {
|
|
311
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"(exports$1, module) {
|
|
312
312
|
var isArray2 = Array.isArray;
|
|
313
313
|
module.exports = isArray2;
|
|
314
314
|
}
|
|
@@ -316,7 +316,7 @@ var require_isArray = __commonJS({
|
|
|
316
316
|
|
|
317
317
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js
|
|
318
318
|
var require_getRawTag = __commonJS({
|
|
319
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js"(exports, module) {
|
|
319
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js"(exports$1, module) {
|
|
320
320
|
var Symbol2 = require_Symbol();
|
|
321
321
|
var objectProto = Object.prototype;
|
|
322
322
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
@@ -345,7 +345,7 @@ var require_getRawTag = __commonJS({
|
|
|
345
345
|
|
|
346
346
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js
|
|
347
347
|
var require_objectToString = __commonJS({
|
|
348
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js"(exports, module) {
|
|
348
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js"(exports$1, module) {
|
|
349
349
|
var objectProto = Object.prototype;
|
|
350
350
|
var nativeObjectToString = objectProto.toString;
|
|
351
351
|
function objectToString(value) {
|
|
@@ -357,7 +357,7 @@ var require_objectToString = __commonJS({
|
|
|
357
357
|
|
|
358
358
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js
|
|
359
359
|
var require_baseGetTag = __commonJS({
|
|
360
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"(exports, module) {
|
|
360
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"(exports$1, module) {
|
|
361
361
|
var Symbol2 = require_Symbol();
|
|
362
362
|
var getRawTag = require_getRawTag();
|
|
363
363
|
var objectToString = require_objectToString();
|
|
@@ -376,7 +376,7 @@ var require_baseGetTag = __commonJS({
|
|
|
376
376
|
|
|
377
377
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js
|
|
378
378
|
var require_isObjectLike = __commonJS({
|
|
379
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js"(exports, module) {
|
|
379
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js"(exports$1, module) {
|
|
380
380
|
function isObjectLike(value) {
|
|
381
381
|
return value != null && typeof value == "object";
|
|
382
382
|
}
|
|
@@ -386,7 +386,7 @@ var require_isObjectLike = __commonJS({
|
|
|
386
386
|
|
|
387
387
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js
|
|
388
388
|
var require_isSymbol = __commonJS({
|
|
389
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js"(exports, module) {
|
|
389
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js"(exports$1, module) {
|
|
390
390
|
var baseGetTag = require_baseGetTag();
|
|
391
391
|
var isObjectLike = require_isObjectLike();
|
|
392
392
|
var symbolTag = "[object Symbol]";
|
|
@@ -399,12 +399,11 @@ var require_isSymbol = __commonJS({
|
|
|
399
399
|
|
|
400
400
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js
|
|
401
401
|
var require_baseToString = __commonJS({
|
|
402
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js"(exports, module) {
|
|
402
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js"(exports$1, module) {
|
|
403
403
|
var Symbol2 = require_Symbol();
|
|
404
404
|
var arrayMap = require_arrayMap();
|
|
405
405
|
var isArray2 = require_isArray();
|
|
406
406
|
var isSymbol = require_isSymbol();
|
|
407
|
-
var INFINITY = 1 / 0;
|
|
408
407
|
var symbolProto = Symbol2 ? Symbol2.prototype : void 0;
|
|
409
408
|
var symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
410
409
|
function baseToString(value) {
|
|
@@ -418,7 +417,7 @@ var require_baseToString = __commonJS({
|
|
|
418
417
|
return symbolToString ? symbolToString.call(value) : "";
|
|
419
418
|
}
|
|
420
419
|
var result = value + "";
|
|
421
|
-
return result == "0" && 1 / value == -
|
|
420
|
+
return result == "0" && 1 / value == -Infinity ? "-0" : result;
|
|
422
421
|
}
|
|
423
422
|
module.exports = baseToString;
|
|
424
423
|
}
|
|
@@ -426,7 +425,7 @@ var require_baseToString = __commonJS({
|
|
|
426
425
|
|
|
427
426
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js
|
|
428
427
|
var require_toString = __commonJS({
|
|
429
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js"(exports, module) {
|
|
428
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js"(exports$1, module) {
|
|
430
429
|
var baseToString = require_baseToString();
|
|
431
430
|
function toString(value) {
|
|
432
431
|
return value == null ? "" : baseToString(value);
|
|
@@ -437,7 +436,7 @@ var require_toString = __commonJS({
|
|
|
437
436
|
|
|
438
437
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/deburr.js
|
|
439
438
|
var require_deburr = __commonJS({
|
|
440
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/deburr.js"(exports, module) {
|
|
439
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/deburr.js"(exports$1, module) {
|
|
441
440
|
var deburrLetter = require_deburrLetter();
|
|
442
441
|
var toString = require_toString();
|
|
443
442
|
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
|
@@ -457,7 +456,7 @@ var require_deburr = __commonJS({
|
|
|
457
456
|
|
|
458
457
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiWords.js
|
|
459
458
|
var require_asciiWords = __commonJS({
|
|
460
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiWords.js"(exports, module) {
|
|
459
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiWords.js"(exports$1, module) {
|
|
461
460
|
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
462
461
|
function asciiWords(string) {
|
|
463
462
|
return string.match(reAsciiWord) || [];
|
|
@@ -468,7 +467,7 @@ var require_asciiWords = __commonJS({
|
|
|
468
467
|
|
|
469
468
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicodeWord.js
|
|
470
469
|
var require_hasUnicodeWord = __commonJS({
|
|
471
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicodeWord.js"(exports, module) {
|
|
470
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicodeWord.js"(exports$1, module) {
|
|
472
471
|
var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
473
472
|
function hasUnicodeWord(string) {
|
|
474
473
|
return reHasUnicodeWord.test(string);
|
|
@@ -479,7 +478,7 @@ var require_hasUnicodeWord = __commonJS({
|
|
|
479
478
|
|
|
480
479
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeWords.js
|
|
481
480
|
var require_unicodeWords = __commonJS({
|
|
482
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeWords.js"(exports, module) {
|
|
481
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeWords.js"(exports$1, module) {
|
|
483
482
|
var rsAstralRange = "\\ud800-\\udfff";
|
|
484
483
|
var rsComboMarksRange = "\\u0300-\\u036f";
|
|
485
484
|
var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
|
|
@@ -538,7 +537,7 @@ var require_unicodeWords = __commonJS({
|
|
|
538
537
|
|
|
539
538
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/words.js
|
|
540
539
|
var require_words = __commonJS({
|
|
541
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/words.js"(exports, module) {
|
|
540
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/words.js"(exports$1, module) {
|
|
542
541
|
var asciiWords = require_asciiWords();
|
|
543
542
|
var hasUnicodeWord = require_hasUnicodeWord();
|
|
544
543
|
var toString = require_toString();
|
|
@@ -557,7 +556,7 @@ var require_words = __commonJS({
|
|
|
557
556
|
|
|
558
557
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCompounder.js
|
|
559
558
|
var require_createCompounder = __commonJS({
|
|
560
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCompounder.js"(exports, module) {
|
|
559
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCompounder.js"(exports$1, module) {
|
|
561
560
|
var arrayReduce = require_arrayReduce();
|
|
562
561
|
var deburr = require_deburr();
|
|
563
562
|
var words = require_words();
|
|
@@ -574,7 +573,7 @@ var require_createCompounder = __commonJS({
|
|
|
574
573
|
|
|
575
574
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/kebabCase.js
|
|
576
575
|
var require_kebabCase = __commonJS({
|
|
577
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/kebabCase.js"(exports, module) {
|
|
576
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/kebabCase.js"(exports$1, module) {
|
|
578
577
|
var createCompounder = require_createCompounder();
|
|
579
578
|
var kebabCase3 = createCompounder(function(result, word, index) {
|
|
580
579
|
return result + (index ? "-" : "") + word.toLowerCase();
|
|
@@ -585,7 +584,7 @@ var require_kebabCase = __commonJS({
|
|
|
585
584
|
|
|
586
585
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSlice.js
|
|
587
586
|
var require_baseSlice = __commonJS({
|
|
588
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSlice.js"(exports, module) {
|
|
587
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSlice.js"(exports$1, module) {
|
|
589
588
|
function baseSlice(array, start, end) {
|
|
590
589
|
var index = -1, length = array.length;
|
|
591
590
|
if (start < 0) {
|
|
@@ -609,7 +608,7 @@ var require_baseSlice = __commonJS({
|
|
|
609
608
|
|
|
610
609
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castSlice.js
|
|
611
610
|
var require_castSlice = __commonJS({
|
|
612
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castSlice.js"(exports, module) {
|
|
611
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castSlice.js"(exports$1, module) {
|
|
613
612
|
var baseSlice = require_baseSlice();
|
|
614
613
|
function castSlice(array, start, end) {
|
|
615
614
|
var length = array.length;
|
|
@@ -622,7 +621,7 @@ var require_castSlice = __commonJS({
|
|
|
622
621
|
|
|
623
622
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicode.js
|
|
624
623
|
var require_hasUnicode = __commonJS({
|
|
625
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicode.js"(exports, module) {
|
|
624
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicode.js"(exports$1, module) {
|
|
626
625
|
var rsAstralRange = "\\ud800-\\udfff";
|
|
627
626
|
var rsComboMarksRange = "\\u0300-\\u036f";
|
|
628
627
|
var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
|
|
@@ -640,7 +639,7 @@ var require_hasUnicode = __commonJS({
|
|
|
640
639
|
|
|
641
640
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiToArray.js
|
|
642
641
|
var require_asciiToArray = __commonJS({
|
|
643
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiToArray.js"(exports, module) {
|
|
642
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiToArray.js"(exports$1, module) {
|
|
644
643
|
function asciiToArray(string) {
|
|
645
644
|
return string.split("");
|
|
646
645
|
}
|
|
@@ -650,7 +649,7 @@ var require_asciiToArray = __commonJS({
|
|
|
650
649
|
|
|
651
650
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeToArray.js
|
|
652
651
|
var require_unicodeToArray = __commonJS({
|
|
653
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeToArray.js"(exports, module) {
|
|
652
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeToArray.js"(exports$1, module) {
|
|
654
653
|
var rsAstralRange = "\\ud800-\\udfff";
|
|
655
654
|
var rsComboMarksRange = "\\u0300-\\u036f";
|
|
656
655
|
var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
|
|
@@ -680,7 +679,7 @@ var require_unicodeToArray = __commonJS({
|
|
|
680
679
|
|
|
681
680
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToArray.js
|
|
682
681
|
var require_stringToArray = __commonJS({
|
|
683
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToArray.js"(exports, module) {
|
|
682
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToArray.js"(exports$1, module) {
|
|
684
683
|
var asciiToArray = require_asciiToArray();
|
|
685
684
|
var hasUnicode = require_hasUnicode();
|
|
686
685
|
var unicodeToArray = require_unicodeToArray();
|
|
@@ -693,7 +692,7 @@ var require_stringToArray = __commonJS({
|
|
|
693
692
|
|
|
694
693
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCaseFirst.js
|
|
695
694
|
var require_createCaseFirst = __commonJS({
|
|
696
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCaseFirst.js"(exports, module) {
|
|
695
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCaseFirst.js"(exports$1, module) {
|
|
697
696
|
var castSlice = require_castSlice();
|
|
698
697
|
var hasUnicode = require_hasUnicode();
|
|
699
698
|
var stringToArray = require_stringToArray();
|
|
@@ -713,7 +712,7 @@ var require_createCaseFirst = __commonJS({
|
|
|
713
712
|
|
|
714
713
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/upperFirst.js
|
|
715
714
|
var require_upperFirst = __commonJS({
|
|
716
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/upperFirst.js"(exports, module) {
|
|
715
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/upperFirst.js"(exports$1, module) {
|
|
717
716
|
var createCaseFirst = require_createCaseFirst();
|
|
718
717
|
var upperFirst = createCaseFirst("toUpperCase");
|
|
719
718
|
module.exports = upperFirst;
|
|
@@ -722,7 +721,7 @@ var require_upperFirst = __commonJS({
|
|
|
722
721
|
|
|
723
722
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/capitalize.js
|
|
724
723
|
var require_capitalize = __commonJS({
|
|
725
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/capitalize.js"(exports, module) {
|
|
724
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/capitalize.js"(exports$1, module) {
|
|
726
725
|
var toString = require_toString();
|
|
727
726
|
var upperFirst = require_upperFirst();
|
|
728
727
|
function capitalize(string) {
|
|
@@ -734,7 +733,7 @@ var require_capitalize = __commonJS({
|
|
|
734
733
|
|
|
735
734
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/camelCase.js
|
|
736
735
|
var require_camelCase = __commonJS({
|
|
737
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/camelCase.js"(exports, module) {
|
|
736
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/camelCase.js"(exports$1, module) {
|
|
738
737
|
var capitalize = require_capitalize();
|
|
739
738
|
var createCompounder = require_createCompounder();
|
|
740
739
|
var camelCase2 = createCompounder(function(result, word, index) {
|
|
@@ -747,7 +746,7 @@ var require_camelCase = __commonJS({
|
|
|
747
746
|
|
|
748
747
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/snakeCase.js
|
|
749
748
|
var require_snakeCase = __commonJS({
|
|
750
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/snakeCase.js"(exports, module) {
|
|
749
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/snakeCase.js"(exports$1, module) {
|
|
751
750
|
var createCompounder = require_createCompounder();
|
|
752
751
|
var snakeCase2 = createCompounder(function(result, word, index) {
|
|
753
752
|
return result + (index ? "_" : "") + word.toLowerCase();
|
|
@@ -1061,6 +1060,7 @@ var Widget = class _Widget extends Page {
|
|
|
1061
1060
|
* 如果为true,组件将不会添加到组件包中
|
|
1062
1061
|
*/
|
|
1063
1062
|
disabled;
|
|
1063
|
+
synchronizable;
|
|
1064
1064
|
/**
|
|
1065
1065
|
* 配置页面路径,没有则不能修改
|
|
1066
1066
|
*/
|
|
@@ -1079,6 +1079,7 @@ var Widget = class _Widget extends Page {
|
|
|
1079
1079
|
this.socialLinks = options.socialLinks;
|
|
1080
1080
|
this.disabled = options.disabled;
|
|
1081
1081
|
this.trayOptions = options.trayOptions;
|
|
1082
|
+
this.synchronizable = options.synchronizable;
|
|
1082
1083
|
this.requiredAppVersion = options.requiredAppVersion;
|
|
1083
1084
|
this.routes = options.routes ?? [];
|
|
1084
1085
|
}
|
|
@@ -1175,11 +1176,11 @@ var WebSocketEvent = class {
|
|
|
1175
1176
|
};
|
|
1176
1177
|
|
|
1177
1178
|
// src/model/WidgetData.ts
|
|
1178
|
-
var import_kebabCase2 = __toESM(require_kebabCase()
|
|
1179
|
+
var import_kebabCase2 = __toESM(require_kebabCase());
|
|
1179
1180
|
|
|
1180
1181
|
// src/model/WidgetTheme.ts
|
|
1181
|
-
var import_kebabCase = __toESM(require_kebabCase()
|
|
1182
|
-
var import_camelCase = __toESM(require_camelCase()
|
|
1182
|
+
var import_kebabCase = __toESM(require_kebabCase());
|
|
1183
|
+
var import_camelCase = __toESM(require_camelCase());
|
|
1183
1184
|
var WidgetTheme = class _WidgetTheme {
|
|
1184
1185
|
borderRadius;
|
|
1185
1186
|
backgroundColor;
|
|
@@ -1384,7 +1385,7 @@ var WidgetData = class {
|
|
|
1384
1385
|
};
|
|
1385
1386
|
|
|
1386
1387
|
// src/model/WidgetParams.ts
|
|
1387
|
-
var import_snakeCase = __toESM(require_snakeCase()
|
|
1388
|
+
var import_snakeCase = __toESM(require_snakeCase());
|
|
1388
1389
|
|
|
1389
1390
|
// src/router/encoding.ts
|
|
1390
1391
|
var HASH_RE = /#/g;
|
|
@@ -2315,6 +2316,12 @@ var WidgetApiEvent = /* @__PURE__ */ ((WidgetApiEvent2) => {
|
|
|
2315
2316
|
return WidgetApiEvent2;
|
|
2316
2317
|
})(WidgetApiEvent || {});
|
|
2317
2318
|
var WidgetApiImpl = class extends BaseApi {
|
|
2319
|
+
getSyncInfo(widgetName) {
|
|
2320
|
+
return this.invokeMethod("getSyncInfo", widgetName);
|
|
2321
|
+
}
|
|
2322
|
+
updateSyncInfo() {
|
|
2323
|
+
return this.invokeMethod("updateSyncInfo");
|
|
2324
|
+
}
|
|
2318
2325
|
reload(id) {
|
|
2319
2326
|
return this.invokeMethod("reload", id);
|
|
2320
2327
|
}
|
|
@@ -3307,6 +3314,15 @@ var TrayApiEvent = /* @__PURE__ */ ((TrayApiEvent2) => {
|
|
|
3307
3314
|
return TrayApiEvent2;
|
|
3308
3315
|
})(TrayApiEvent || {});
|
|
3309
3316
|
|
|
3317
|
+
// src/api/interface/IUserApi.ts
|
|
3318
|
+
var UserApiEvent = ((UserApiEvent2) => {
|
|
3319
|
+
UserApiEvent2["USER_UPDATED"] = `${"channel::cn.widgetjs.core.user" /* USER */}.updated`;
|
|
3320
|
+
UserApiEvent2["SIGNED_OUT"] = `${"channel::cn.widgetjs.core.user" /* USER */}.signed.out`;
|
|
3321
|
+
UserApiEvent2["SIGNED_IN"] = `${"channel::cn.widgetjs.core.user" /* USER */}.signed.in`;
|
|
3322
|
+
UserApiEvent2["TOKEN_REFRESHED"] = `${"channel::cn.widgetjs.core.user" /* USER */}.token.refreshed`;
|
|
3323
|
+
return UserApiEvent2;
|
|
3324
|
+
})(UserApiEvent || {});
|
|
3325
|
+
|
|
3310
3326
|
// src/api/WidgetPackageApi.ts
|
|
3311
3327
|
var WidgetPackageApiImpl = class extends BaseApi {
|
|
3312
3328
|
getChannel() {
|
|
@@ -3423,14 +3439,23 @@ var HttpApi = new HttpApiImpl();
|
|
|
3423
3439
|
|
|
3424
3440
|
// src/api/UserApi.ts
|
|
3425
3441
|
var UserApiImpl = class extends BaseApi {
|
|
3426
|
-
async
|
|
3427
|
-
await this.invokeMethod("
|
|
3442
|
+
async getSession() {
|
|
3443
|
+
return await this.invokeMethod("getSession");
|
|
3444
|
+
}
|
|
3445
|
+
async updateSession(session) {
|
|
3446
|
+
await this.invokeMethod("updateSession", session);
|
|
3447
|
+
}
|
|
3448
|
+
async updateUser(user) {
|
|
3449
|
+
await this.invokeMethod("updateUser", user);
|
|
3450
|
+
}
|
|
3451
|
+
async login(session) {
|
|
3452
|
+
await this.invokeMethod("login", session);
|
|
3428
3453
|
}
|
|
3429
3454
|
async logout() {
|
|
3430
3455
|
await this.invokeMethod("logout");
|
|
3431
3456
|
}
|
|
3432
|
-
async
|
|
3433
|
-
return await this.invokeMethod("
|
|
3457
|
+
async getUser() {
|
|
3458
|
+
return await this.invokeMethod("getUser");
|
|
3434
3459
|
}
|
|
3435
3460
|
getChannel() {
|
|
3436
3461
|
return "channel::cn.widgetjs.core.user" /* USER */;
|
|
@@ -3492,6 +3517,7 @@ exports.SystemApiEvent = SystemApiEvent;
|
|
|
3492
3517
|
exports.ThemeMode = ThemeMode;
|
|
3493
3518
|
exports.TrayApiEvent = TrayApiEvent;
|
|
3494
3519
|
exports.UserApi = UserApi;
|
|
3520
|
+
exports.UserApiEvent = UserApiEvent;
|
|
3495
3521
|
exports.WebSocketEvent = WebSocketEvent;
|
|
3496
3522
|
exports.WebSocketEventType = WebSocketEventType;
|
|
3497
3523
|
exports.Widget = Widget;
|
|
@@ -3511,5 +3537,5 @@ exports.delay = delay;
|
|
|
3511
3537
|
exports.normalizeUrl = normalizeUrl;
|
|
3512
3538
|
exports.parseQuery = parseQuery;
|
|
3513
3539
|
exports.stringifyQuery = stringifyQuery;
|
|
3514
|
-
//# sourceMappingURL=
|
|
3540
|
+
//# sourceMappingURL=index.cjs.map
|
|
3515
3541
|
//# sourceMappingURL=index.cjs.map
|