@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.js
CHANGED
|
@@ -23,13 +23,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
// file that has been converted to a CommonJS file using a Babel-
|
|
24
24
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
25
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
|
|
26
|
+
__defProp(target, "default", { value: mod, enumerable: true }) ,
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
|
|
30
30
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayReduce.js
|
|
31
31
|
var require_arrayReduce = __commonJS({
|
|
32
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayReduce.js"(exports, module) {
|
|
32
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayReduce.js"(exports$1, module) {
|
|
33
33
|
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
34
34
|
var index = -1, length = array == null ? 0 : array.length;
|
|
35
35
|
if (initAccum && length) {
|
|
@@ -46,7 +46,7 @@ var require_arrayReduce = __commonJS({
|
|
|
46
46
|
|
|
47
47
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyOf.js
|
|
48
48
|
var require_basePropertyOf = __commonJS({
|
|
49
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyOf.js"(exports, module) {
|
|
49
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyOf.js"(exports$1, module) {
|
|
50
50
|
function basePropertyOf(object) {
|
|
51
51
|
return function(key) {
|
|
52
52
|
return object == null ? void 0 : object[key];
|
|
@@ -58,7 +58,7 @@ var require_basePropertyOf = __commonJS({
|
|
|
58
58
|
|
|
59
59
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_deburrLetter.js
|
|
60
60
|
var require_deburrLetter = __commonJS({
|
|
61
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_deburrLetter.js"(exports, module) {
|
|
61
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_deburrLetter.js"(exports$1, module) {
|
|
62
62
|
var basePropertyOf = require_basePropertyOf();
|
|
63
63
|
var deburredLetters = {
|
|
64
64
|
// Latin-1 Supplement block.
|
|
@@ -261,7 +261,7 @@ var require_deburrLetter = __commonJS({
|
|
|
261
261
|
|
|
262
262
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js
|
|
263
263
|
var require_freeGlobal = __commonJS({
|
|
264
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js"(exports, module) {
|
|
264
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js"(exports$1, module) {
|
|
265
265
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
266
266
|
module.exports = freeGlobal;
|
|
267
267
|
}
|
|
@@ -269,7 +269,7 @@ var require_freeGlobal = __commonJS({
|
|
|
269
269
|
|
|
270
270
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js
|
|
271
271
|
var require_root = __commonJS({
|
|
272
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js"(exports, module) {
|
|
272
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js"(exports$1, module) {
|
|
273
273
|
var freeGlobal = require_freeGlobal();
|
|
274
274
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
275
275
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
@@ -279,7 +279,7 @@ var require_root = __commonJS({
|
|
|
279
279
|
|
|
280
280
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js
|
|
281
281
|
var require_Symbol = __commonJS({
|
|
282
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"(exports, module) {
|
|
282
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"(exports$1, module) {
|
|
283
283
|
var root = require_root();
|
|
284
284
|
var Symbol2 = root.Symbol;
|
|
285
285
|
module.exports = Symbol2;
|
|
@@ -288,7 +288,7 @@ var require_Symbol = __commonJS({
|
|
|
288
288
|
|
|
289
289
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js
|
|
290
290
|
var require_arrayMap = __commonJS({
|
|
291
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"(exports, module) {
|
|
291
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"(exports$1, module) {
|
|
292
292
|
function arrayMap(array, iteratee) {
|
|
293
293
|
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
294
294
|
while (++index < length) {
|
|
@@ -302,7 +302,7 @@ var require_arrayMap = __commonJS({
|
|
|
302
302
|
|
|
303
303
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js
|
|
304
304
|
var require_isArray = __commonJS({
|
|
305
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"(exports, module) {
|
|
305
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"(exports$1, module) {
|
|
306
306
|
var isArray2 = Array.isArray;
|
|
307
307
|
module.exports = isArray2;
|
|
308
308
|
}
|
|
@@ -310,7 +310,7 @@ var require_isArray = __commonJS({
|
|
|
310
310
|
|
|
311
311
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js
|
|
312
312
|
var require_getRawTag = __commonJS({
|
|
313
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js"(exports, module) {
|
|
313
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js"(exports$1, module) {
|
|
314
314
|
var Symbol2 = require_Symbol();
|
|
315
315
|
var objectProto = Object.prototype;
|
|
316
316
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
@@ -339,7 +339,7 @@ var require_getRawTag = __commonJS({
|
|
|
339
339
|
|
|
340
340
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js
|
|
341
341
|
var require_objectToString = __commonJS({
|
|
342
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js"(exports, module) {
|
|
342
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js"(exports$1, module) {
|
|
343
343
|
var objectProto = Object.prototype;
|
|
344
344
|
var nativeObjectToString = objectProto.toString;
|
|
345
345
|
function objectToString(value) {
|
|
@@ -351,7 +351,7 @@ var require_objectToString = __commonJS({
|
|
|
351
351
|
|
|
352
352
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js
|
|
353
353
|
var require_baseGetTag = __commonJS({
|
|
354
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"(exports, module) {
|
|
354
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"(exports$1, module) {
|
|
355
355
|
var Symbol2 = require_Symbol();
|
|
356
356
|
var getRawTag = require_getRawTag();
|
|
357
357
|
var objectToString = require_objectToString();
|
|
@@ -370,7 +370,7 @@ var require_baseGetTag = __commonJS({
|
|
|
370
370
|
|
|
371
371
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js
|
|
372
372
|
var require_isObjectLike = __commonJS({
|
|
373
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js"(exports, module) {
|
|
373
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js"(exports$1, module) {
|
|
374
374
|
function isObjectLike(value) {
|
|
375
375
|
return value != null && typeof value == "object";
|
|
376
376
|
}
|
|
@@ -380,7 +380,7 @@ var require_isObjectLike = __commonJS({
|
|
|
380
380
|
|
|
381
381
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js
|
|
382
382
|
var require_isSymbol = __commonJS({
|
|
383
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js"(exports, module) {
|
|
383
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js"(exports$1, module) {
|
|
384
384
|
var baseGetTag = require_baseGetTag();
|
|
385
385
|
var isObjectLike = require_isObjectLike();
|
|
386
386
|
var symbolTag = "[object Symbol]";
|
|
@@ -393,12 +393,11 @@ var require_isSymbol = __commonJS({
|
|
|
393
393
|
|
|
394
394
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js
|
|
395
395
|
var require_baseToString = __commonJS({
|
|
396
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js"(exports, module) {
|
|
396
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js"(exports$1, module) {
|
|
397
397
|
var Symbol2 = require_Symbol();
|
|
398
398
|
var arrayMap = require_arrayMap();
|
|
399
399
|
var isArray2 = require_isArray();
|
|
400
400
|
var isSymbol = require_isSymbol();
|
|
401
|
-
var INFINITY = 1 / 0;
|
|
402
401
|
var symbolProto = Symbol2 ? Symbol2.prototype : void 0;
|
|
403
402
|
var symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
404
403
|
function baseToString(value) {
|
|
@@ -412,7 +411,7 @@ var require_baseToString = __commonJS({
|
|
|
412
411
|
return symbolToString ? symbolToString.call(value) : "";
|
|
413
412
|
}
|
|
414
413
|
var result = value + "";
|
|
415
|
-
return result == "0" && 1 / value == -
|
|
414
|
+
return result == "0" && 1 / value == -Infinity ? "-0" : result;
|
|
416
415
|
}
|
|
417
416
|
module.exports = baseToString;
|
|
418
417
|
}
|
|
@@ -420,7 +419,7 @@ var require_baseToString = __commonJS({
|
|
|
420
419
|
|
|
421
420
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js
|
|
422
421
|
var require_toString = __commonJS({
|
|
423
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js"(exports, module) {
|
|
422
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js"(exports$1, module) {
|
|
424
423
|
var baseToString = require_baseToString();
|
|
425
424
|
function toString(value) {
|
|
426
425
|
return value == null ? "" : baseToString(value);
|
|
@@ -431,7 +430,7 @@ var require_toString = __commonJS({
|
|
|
431
430
|
|
|
432
431
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/deburr.js
|
|
433
432
|
var require_deburr = __commonJS({
|
|
434
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/deburr.js"(exports, module) {
|
|
433
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/deburr.js"(exports$1, module) {
|
|
435
434
|
var deburrLetter = require_deburrLetter();
|
|
436
435
|
var toString = require_toString();
|
|
437
436
|
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
|
@@ -451,7 +450,7 @@ var require_deburr = __commonJS({
|
|
|
451
450
|
|
|
452
451
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiWords.js
|
|
453
452
|
var require_asciiWords = __commonJS({
|
|
454
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiWords.js"(exports, module) {
|
|
453
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiWords.js"(exports$1, module) {
|
|
455
454
|
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
456
455
|
function asciiWords(string) {
|
|
457
456
|
return string.match(reAsciiWord) || [];
|
|
@@ -462,7 +461,7 @@ var require_asciiWords = __commonJS({
|
|
|
462
461
|
|
|
463
462
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicodeWord.js
|
|
464
463
|
var require_hasUnicodeWord = __commonJS({
|
|
465
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicodeWord.js"(exports, module) {
|
|
464
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicodeWord.js"(exports$1, module) {
|
|
466
465
|
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 ]/;
|
|
467
466
|
function hasUnicodeWord(string) {
|
|
468
467
|
return reHasUnicodeWord.test(string);
|
|
@@ -473,7 +472,7 @@ var require_hasUnicodeWord = __commonJS({
|
|
|
473
472
|
|
|
474
473
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeWords.js
|
|
475
474
|
var require_unicodeWords = __commonJS({
|
|
476
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeWords.js"(exports, module) {
|
|
475
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeWords.js"(exports$1, module) {
|
|
477
476
|
var rsAstralRange = "\\ud800-\\udfff";
|
|
478
477
|
var rsComboMarksRange = "\\u0300-\\u036f";
|
|
479
478
|
var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
|
|
@@ -532,7 +531,7 @@ var require_unicodeWords = __commonJS({
|
|
|
532
531
|
|
|
533
532
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/words.js
|
|
534
533
|
var require_words = __commonJS({
|
|
535
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/words.js"(exports, module) {
|
|
534
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/words.js"(exports$1, module) {
|
|
536
535
|
var asciiWords = require_asciiWords();
|
|
537
536
|
var hasUnicodeWord = require_hasUnicodeWord();
|
|
538
537
|
var toString = require_toString();
|
|
@@ -551,7 +550,7 @@ var require_words = __commonJS({
|
|
|
551
550
|
|
|
552
551
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCompounder.js
|
|
553
552
|
var require_createCompounder = __commonJS({
|
|
554
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCompounder.js"(exports, module) {
|
|
553
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCompounder.js"(exports$1, module) {
|
|
555
554
|
var arrayReduce = require_arrayReduce();
|
|
556
555
|
var deburr = require_deburr();
|
|
557
556
|
var words = require_words();
|
|
@@ -568,7 +567,7 @@ var require_createCompounder = __commonJS({
|
|
|
568
567
|
|
|
569
568
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/kebabCase.js
|
|
570
569
|
var require_kebabCase = __commonJS({
|
|
571
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/kebabCase.js"(exports, module) {
|
|
570
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/kebabCase.js"(exports$1, module) {
|
|
572
571
|
var createCompounder = require_createCompounder();
|
|
573
572
|
var kebabCase3 = createCompounder(function(result, word, index) {
|
|
574
573
|
return result + (index ? "-" : "") + word.toLowerCase();
|
|
@@ -579,7 +578,7 @@ var require_kebabCase = __commonJS({
|
|
|
579
578
|
|
|
580
579
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSlice.js
|
|
581
580
|
var require_baseSlice = __commonJS({
|
|
582
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSlice.js"(exports, module) {
|
|
581
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSlice.js"(exports$1, module) {
|
|
583
582
|
function baseSlice(array, start, end) {
|
|
584
583
|
var index = -1, length = array.length;
|
|
585
584
|
if (start < 0) {
|
|
@@ -603,7 +602,7 @@ var require_baseSlice = __commonJS({
|
|
|
603
602
|
|
|
604
603
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castSlice.js
|
|
605
604
|
var require_castSlice = __commonJS({
|
|
606
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castSlice.js"(exports, module) {
|
|
605
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castSlice.js"(exports$1, module) {
|
|
607
606
|
var baseSlice = require_baseSlice();
|
|
608
607
|
function castSlice(array, start, end) {
|
|
609
608
|
var length = array.length;
|
|
@@ -616,7 +615,7 @@ var require_castSlice = __commonJS({
|
|
|
616
615
|
|
|
617
616
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicode.js
|
|
618
617
|
var require_hasUnicode = __commonJS({
|
|
619
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicode.js"(exports, module) {
|
|
618
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicode.js"(exports$1, module) {
|
|
620
619
|
var rsAstralRange = "\\ud800-\\udfff";
|
|
621
620
|
var rsComboMarksRange = "\\u0300-\\u036f";
|
|
622
621
|
var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
|
|
@@ -634,7 +633,7 @@ var require_hasUnicode = __commonJS({
|
|
|
634
633
|
|
|
635
634
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiToArray.js
|
|
636
635
|
var require_asciiToArray = __commonJS({
|
|
637
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiToArray.js"(exports, module) {
|
|
636
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiToArray.js"(exports$1, module) {
|
|
638
637
|
function asciiToArray(string) {
|
|
639
638
|
return string.split("");
|
|
640
639
|
}
|
|
@@ -644,7 +643,7 @@ var require_asciiToArray = __commonJS({
|
|
|
644
643
|
|
|
645
644
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeToArray.js
|
|
646
645
|
var require_unicodeToArray = __commonJS({
|
|
647
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeToArray.js"(exports, module) {
|
|
646
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeToArray.js"(exports$1, module) {
|
|
648
647
|
var rsAstralRange = "\\ud800-\\udfff";
|
|
649
648
|
var rsComboMarksRange = "\\u0300-\\u036f";
|
|
650
649
|
var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
|
|
@@ -674,7 +673,7 @@ var require_unicodeToArray = __commonJS({
|
|
|
674
673
|
|
|
675
674
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToArray.js
|
|
676
675
|
var require_stringToArray = __commonJS({
|
|
677
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToArray.js"(exports, module) {
|
|
676
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToArray.js"(exports$1, module) {
|
|
678
677
|
var asciiToArray = require_asciiToArray();
|
|
679
678
|
var hasUnicode = require_hasUnicode();
|
|
680
679
|
var unicodeToArray = require_unicodeToArray();
|
|
@@ -687,7 +686,7 @@ var require_stringToArray = __commonJS({
|
|
|
687
686
|
|
|
688
687
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCaseFirst.js
|
|
689
688
|
var require_createCaseFirst = __commonJS({
|
|
690
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCaseFirst.js"(exports, module) {
|
|
689
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCaseFirst.js"(exports$1, module) {
|
|
691
690
|
var castSlice = require_castSlice();
|
|
692
691
|
var hasUnicode = require_hasUnicode();
|
|
693
692
|
var stringToArray = require_stringToArray();
|
|
@@ -707,7 +706,7 @@ var require_createCaseFirst = __commonJS({
|
|
|
707
706
|
|
|
708
707
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/upperFirst.js
|
|
709
708
|
var require_upperFirst = __commonJS({
|
|
710
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/upperFirst.js"(exports, module) {
|
|
709
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/upperFirst.js"(exports$1, module) {
|
|
711
710
|
var createCaseFirst = require_createCaseFirst();
|
|
712
711
|
var upperFirst = createCaseFirst("toUpperCase");
|
|
713
712
|
module.exports = upperFirst;
|
|
@@ -716,7 +715,7 @@ var require_upperFirst = __commonJS({
|
|
|
716
715
|
|
|
717
716
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/capitalize.js
|
|
718
717
|
var require_capitalize = __commonJS({
|
|
719
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/capitalize.js"(exports, module) {
|
|
718
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/capitalize.js"(exports$1, module) {
|
|
720
719
|
var toString = require_toString();
|
|
721
720
|
var upperFirst = require_upperFirst();
|
|
722
721
|
function capitalize(string) {
|
|
@@ -728,7 +727,7 @@ var require_capitalize = __commonJS({
|
|
|
728
727
|
|
|
729
728
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/camelCase.js
|
|
730
729
|
var require_camelCase = __commonJS({
|
|
731
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/camelCase.js"(exports, module) {
|
|
730
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/camelCase.js"(exports$1, module) {
|
|
732
731
|
var capitalize = require_capitalize();
|
|
733
732
|
var createCompounder = require_createCompounder();
|
|
734
733
|
var camelCase2 = createCompounder(function(result, word, index) {
|
|
@@ -741,7 +740,7 @@ var require_camelCase = __commonJS({
|
|
|
741
740
|
|
|
742
741
|
// ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/snakeCase.js
|
|
743
742
|
var require_snakeCase = __commonJS({
|
|
744
|
-
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/snakeCase.js"(exports, module) {
|
|
743
|
+
"../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/snakeCase.js"(exports$1, module) {
|
|
745
744
|
var createCompounder = require_createCompounder();
|
|
746
745
|
var snakeCase2 = createCompounder(function(result, word, index) {
|
|
747
746
|
return result + (index ? "_" : "") + word.toLowerCase();
|
|
@@ -1055,6 +1054,7 @@ var Widget = class _Widget extends Page {
|
|
|
1055
1054
|
* 如果为true,组件将不会添加到组件包中
|
|
1056
1055
|
*/
|
|
1057
1056
|
disabled;
|
|
1057
|
+
synchronizable;
|
|
1058
1058
|
/**
|
|
1059
1059
|
* 配置页面路径,没有则不能修改
|
|
1060
1060
|
*/
|
|
@@ -1073,6 +1073,7 @@ var Widget = class _Widget extends Page {
|
|
|
1073
1073
|
this.socialLinks = options.socialLinks;
|
|
1074
1074
|
this.disabled = options.disabled;
|
|
1075
1075
|
this.trayOptions = options.trayOptions;
|
|
1076
|
+
this.synchronizable = options.synchronizable;
|
|
1076
1077
|
this.requiredAppVersion = options.requiredAppVersion;
|
|
1077
1078
|
this.routes = options.routes ?? [];
|
|
1078
1079
|
}
|
|
@@ -1169,11 +1170,11 @@ var WebSocketEvent = class {
|
|
|
1169
1170
|
};
|
|
1170
1171
|
|
|
1171
1172
|
// src/model/WidgetData.ts
|
|
1172
|
-
var import_kebabCase2 = __toESM(require_kebabCase()
|
|
1173
|
+
var import_kebabCase2 = __toESM(require_kebabCase());
|
|
1173
1174
|
|
|
1174
1175
|
// src/model/WidgetTheme.ts
|
|
1175
|
-
var import_kebabCase = __toESM(require_kebabCase()
|
|
1176
|
-
var import_camelCase = __toESM(require_camelCase()
|
|
1176
|
+
var import_kebabCase = __toESM(require_kebabCase());
|
|
1177
|
+
var import_camelCase = __toESM(require_camelCase());
|
|
1177
1178
|
var WidgetTheme = class _WidgetTheme {
|
|
1178
1179
|
borderRadius;
|
|
1179
1180
|
backgroundColor;
|
|
@@ -1378,7 +1379,7 @@ var WidgetData = class {
|
|
|
1378
1379
|
};
|
|
1379
1380
|
|
|
1380
1381
|
// src/model/WidgetParams.ts
|
|
1381
|
-
var import_snakeCase = __toESM(require_snakeCase()
|
|
1382
|
+
var import_snakeCase = __toESM(require_snakeCase());
|
|
1382
1383
|
|
|
1383
1384
|
// src/router/encoding.ts
|
|
1384
1385
|
var HASH_RE = /#/g;
|
|
@@ -2309,6 +2310,12 @@ var WidgetApiEvent = /* @__PURE__ */ ((WidgetApiEvent2) => {
|
|
|
2309
2310
|
return WidgetApiEvent2;
|
|
2310
2311
|
})(WidgetApiEvent || {});
|
|
2311
2312
|
var WidgetApiImpl = class extends BaseApi {
|
|
2313
|
+
getSyncInfo(widgetName) {
|
|
2314
|
+
return this.invokeMethod("getSyncInfo", widgetName);
|
|
2315
|
+
}
|
|
2316
|
+
updateSyncInfo() {
|
|
2317
|
+
return this.invokeMethod("updateSyncInfo");
|
|
2318
|
+
}
|
|
2312
2319
|
reload(id) {
|
|
2313
2320
|
return this.invokeMethod("reload", id);
|
|
2314
2321
|
}
|
|
@@ -3301,6 +3308,15 @@ var TrayApiEvent = /* @__PURE__ */ ((TrayApiEvent2) => {
|
|
|
3301
3308
|
return TrayApiEvent2;
|
|
3302
3309
|
})(TrayApiEvent || {});
|
|
3303
3310
|
|
|
3311
|
+
// src/api/interface/IUserApi.ts
|
|
3312
|
+
var UserApiEvent = ((UserApiEvent2) => {
|
|
3313
|
+
UserApiEvent2["USER_UPDATED"] = `${"channel::cn.widgetjs.core.user" /* USER */}.updated`;
|
|
3314
|
+
UserApiEvent2["SIGNED_OUT"] = `${"channel::cn.widgetjs.core.user" /* USER */}.signed.out`;
|
|
3315
|
+
UserApiEvent2["SIGNED_IN"] = `${"channel::cn.widgetjs.core.user" /* USER */}.signed.in`;
|
|
3316
|
+
UserApiEvent2["TOKEN_REFRESHED"] = `${"channel::cn.widgetjs.core.user" /* USER */}.token.refreshed`;
|
|
3317
|
+
return UserApiEvent2;
|
|
3318
|
+
})(UserApiEvent || {});
|
|
3319
|
+
|
|
3304
3320
|
// src/api/WidgetPackageApi.ts
|
|
3305
3321
|
var WidgetPackageApiImpl = class extends BaseApi {
|
|
3306
3322
|
getChannel() {
|
|
@@ -3417,14 +3433,23 @@ var HttpApi = new HttpApiImpl();
|
|
|
3417
3433
|
|
|
3418
3434
|
// src/api/UserApi.ts
|
|
3419
3435
|
var UserApiImpl = class extends BaseApi {
|
|
3420
|
-
async
|
|
3421
|
-
await this.invokeMethod("
|
|
3436
|
+
async getSession() {
|
|
3437
|
+
return await this.invokeMethod("getSession");
|
|
3438
|
+
}
|
|
3439
|
+
async updateSession(session) {
|
|
3440
|
+
await this.invokeMethod("updateSession", session);
|
|
3441
|
+
}
|
|
3442
|
+
async updateUser(user) {
|
|
3443
|
+
await this.invokeMethod("updateUser", user);
|
|
3444
|
+
}
|
|
3445
|
+
async login(session) {
|
|
3446
|
+
await this.invokeMethod("login", session);
|
|
3422
3447
|
}
|
|
3423
3448
|
async logout() {
|
|
3424
3449
|
await this.invokeMethod("logout");
|
|
3425
3450
|
}
|
|
3426
|
-
async
|
|
3427
|
-
return await this.invokeMethod("
|
|
3451
|
+
async getUser() {
|
|
3452
|
+
return await this.invokeMethod("getUser");
|
|
3428
3453
|
}
|
|
3429
3454
|
getChannel() {
|
|
3430
3455
|
return "channel::cn.widgetjs.core.user" /* USER */;
|
|
@@ -3432,6 +3457,6 @@ var UserApiImpl = class extends BaseApi {
|
|
|
3432
3457
|
};
|
|
3433
3458
|
var UserApi = new UserApiImpl();
|
|
3434
3459
|
|
|
3435
|
-
export { ApiConstants, AppApi, AppApiConstants, AppApiEvent, AppConfig, AppEvent, AppNotification, AppReminderNotification, BackgroundWidget, BaseApi, BroadcastApi, BroadcastEvent, BrowserWindowApi, BrowserWindowApiEvent, Channel, ClipboardApi, ClipboardApiEvent, DefaultWidgetTheme, DeployMode, DeployedPage, DeployedWidget, DeployedWidgetApi, DeviceApi, DialogApi, ElectronApi, ElectronUtils, FileApi, Gravity, GridRect, GridSystem, HostedMode, HttpApi, LanguageMap, LanguageUtils, LogApi, MenuApi, MenuApiEvent, MouseApi, MouseApiEvent, NotificationApi, NotificationApiEvent, NotificationSize, Page, ProcessApi, ShortcutApi, ShortcutApiEvent, SocialInfo, StorageApi, StoreApi, SystemApi, SystemApiEvent, ThemeMode, TrayApiEvent, UserApi, WebSocketEvent, WebSocketEventType, Widget, WidgetApi, WidgetApiEvent, WidgetData, WidgetDataApi, WidgetKeyword, WidgetPackage, WidgetPackageApi, WidgetPackageApiEvent, WidgetPackageUtils, WidgetParams, WidgetTheme, WidgetUtils, delay, normalizeUrl, parseQuery, stringifyQuery };
|
|
3436
|
-
//# sourceMappingURL=
|
|
3460
|
+
export { ApiConstants, AppApi, AppApiConstants, AppApiEvent, AppConfig, AppEvent, AppNotification, AppReminderNotification, BackgroundWidget, BaseApi, BroadcastApi, BroadcastEvent, BrowserWindowApi, BrowserWindowApiEvent, Channel, ClipboardApi, ClipboardApiEvent, DefaultWidgetTheme, DeployMode, DeployedPage, DeployedWidget, DeployedWidgetApi, DeviceApi, DialogApi, ElectronApi, ElectronUtils, FileApi, Gravity, GridRect, GridSystem, HostedMode, HttpApi, LanguageMap, LanguageUtils, LogApi, MenuApi, MenuApiEvent, MouseApi, MouseApiEvent, NotificationApi, NotificationApiEvent, NotificationSize, Page, ProcessApi, ShortcutApi, ShortcutApiEvent, SocialInfo, StorageApi, StoreApi, SystemApi, SystemApiEvent, ThemeMode, TrayApiEvent, UserApi, UserApiEvent, WebSocketEvent, WebSocketEventType, Widget, WidgetApi, WidgetApiEvent, WidgetData, WidgetDataApi, WidgetKeyword, WidgetPackage, WidgetPackageApi, WidgetPackageApiEvent, WidgetPackageUtils, WidgetParams, WidgetTheme, WidgetUtils, delay, normalizeUrl, parseQuery, stringifyQuery };
|
|
3461
|
+
//# sourceMappingURL=index.js.map
|
|
3437
3462
|
//# sourceMappingURL=index.js.map
|