@symbo.ls/uikit 2.11.271 → 2.11.276
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.js +19 -13
- package/dist/index.cjs.js.map +2 -2
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -406,6 +406,7 @@ var require_string = __commonJS({
|
|
|
406
406
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
407
407
|
var string_exports = {};
|
|
408
408
|
__export2(string_exports, {
|
|
409
|
+
lowercaseFirstLetter: () => lowercaseFirstLetter,
|
|
409
410
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields2,
|
|
410
411
|
stringIncludesAny: () => stringIncludesAny,
|
|
411
412
|
trimStringFromSymbols: () => trimStringFromSymbols
|
|
@@ -445,6 +446,9 @@ var require_string = __commonJS({
|
|
|
445
446
|
}
|
|
446
447
|
});
|
|
447
448
|
};
|
|
449
|
+
var lowercaseFirstLetter = (inputString) => {
|
|
450
|
+
return `${inputString.charAt(0).toLowerCase()}${inputString.slice(1)}`;
|
|
451
|
+
};
|
|
448
452
|
}
|
|
449
453
|
});
|
|
450
454
|
|
|
@@ -4764,7 +4768,7 @@ var require_on = __commonJS({
|
|
|
4764
4768
|
var applyEventsOnNode = (element, options) => {
|
|
4765
4769
|
const { node: node2, on } = element;
|
|
4766
4770
|
for (const param in on) {
|
|
4767
|
-
if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "
|
|
4771
|
+
if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdate" || param === "stateUpdate" || param === "initUpdate" || param === "update")
|
|
4768
4772
|
continue;
|
|
4769
4773
|
const appliedFunction = element.on[param];
|
|
4770
4774
|
if ((0, import_utils17.isFunction)(appliedFunction)) {
|
|
@@ -5262,7 +5266,7 @@ var require_updateState = __commonJS({
|
|
|
5262
5266
|
} else if (options.preventInheritAtCurrentState)
|
|
5263
5267
|
return;
|
|
5264
5268
|
if (!options.preventInitStateUpdateListener) {
|
|
5265
|
-
const initStateUpdateReturns = (0, import_event.triggerEventOnUpdate)("
|
|
5269
|
+
const initStateUpdateReturns = (0, import_event.triggerEventOnUpdate)("initStateUpdate", obj, element, options);
|
|
5266
5270
|
if (initStateUpdateReturns === false)
|
|
5267
5271
|
return element;
|
|
5268
5272
|
}
|
|
@@ -5273,7 +5277,7 @@ var require_updateState = __commonJS({
|
|
|
5273
5277
|
updateDependentState(state, obj, options);
|
|
5274
5278
|
applyElementUpdate(state, obj, options);
|
|
5275
5279
|
if (!options.preventStateUpdateListener) {
|
|
5276
|
-
(0, import_event.triggerEventOnUpdate)("
|
|
5280
|
+
(0, import_event.triggerEventOnUpdate)("stateUpdate", obj, element, options);
|
|
5277
5281
|
}
|
|
5278
5282
|
return state;
|
|
5279
5283
|
};
|
|
@@ -5281,13 +5285,15 @@ var require_updateState = __commonJS({
|
|
|
5281
5285
|
const { overwrite } = options;
|
|
5282
5286
|
if (!overwrite)
|
|
5283
5287
|
return;
|
|
5284
|
-
const shallow = overwrite === "shallow";
|
|
5288
|
+
const shallow = overwrite === "shallow" || overwrite === "shallow-once";
|
|
5285
5289
|
const merge22 = overwrite === "merge";
|
|
5286
5290
|
if (merge22) {
|
|
5287
5291
|
(0, import_utils17.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
5288
5292
|
return;
|
|
5289
5293
|
}
|
|
5290
5294
|
const overwriteFunc = shallow ? import_utils17.overwriteShallow : import_utils17.overwriteDeep;
|
|
5295
|
+
if (options.overwrite === "shallow-once")
|
|
5296
|
+
options.overwrite = true;
|
|
5291
5297
|
overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
5292
5298
|
};
|
|
5293
5299
|
var hoistStateUpdate = (state, obj, options) => {
|
|
@@ -5313,13 +5319,13 @@ var require_updateState = __commonJS({
|
|
|
5313
5319
|
targetParent.update(changesValue, {
|
|
5314
5320
|
execStateFunction: false,
|
|
5315
5321
|
isHoisted: true,
|
|
5316
|
-
...options,
|
|
5317
5322
|
preventUpdate: options.preventHoistElementUpdate,
|
|
5318
|
-
overwrite: !options.replace
|
|
5323
|
+
overwrite: !options.replace,
|
|
5324
|
+
...options
|
|
5319
5325
|
});
|
|
5320
5326
|
const hasNotUpdated = options.preventUpdate !== true || !options.preventHoistElementUpdate;
|
|
5321
5327
|
if (!options.preventStateUpdateListener && hasNotUpdated) {
|
|
5322
|
-
(0, import_event.triggerEventOnUpdate)("
|
|
5328
|
+
(0, import_event.triggerEventOnUpdate)("stateUpdate", obj, element, options);
|
|
5323
5329
|
}
|
|
5324
5330
|
return true;
|
|
5325
5331
|
};
|
|
@@ -6889,7 +6895,7 @@ var Collection = {
|
|
|
6889
6895
|
}
|
|
6890
6896
|
return data;
|
|
6891
6897
|
},
|
|
6892
|
-
$
|
|
6898
|
+
$stateCollection: (param, el, state) => {
|
|
6893
6899
|
if (!param)
|
|
6894
6900
|
return;
|
|
6895
6901
|
if ((0, import_utils4.isString)(param)) {
|
|
@@ -6929,7 +6935,7 @@ var Collection = {
|
|
|
6929
6935
|
el.content = obj;
|
|
6930
6936
|
return obj;
|
|
6931
6937
|
},
|
|
6932
|
-
$
|
|
6938
|
+
$propsCollection: (param, el, state) => {
|
|
6933
6939
|
if (!param)
|
|
6934
6940
|
return;
|
|
6935
6941
|
if ((0, import_utils4.isString)(param)) {
|
|
@@ -10681,7 +10687,7 @@ var AvatarBundle = {
|
|
|
10681
10687
|
}
|
|
10682
10688
|
},
|
|
10683
10689
|
childExtend: Avatar,
|
|
10684
|
-
$
|
|
10690
|
+
$propsCollection: ({ props: props4 }) => props4.options
|
|
10685
10691
|
};
|
|
10686
10692
|
|
|
10687
10693
|
// Avatar/AvatarChooser.js
|
|
@@ -10722,7 +10728,7 @@ var AvatarChooser = {
|
|
|
10722
10728
|
}
|
|
10723
10729
|
},
|
|
10724
10730
|
childExtend: { tag: "option" },
|
|
10725
|
-
$
|
|
10731
|
+
$propsCollection: ({ parent, state }) => {
|
|
10726
10732
|
if (!parent.props.options)
|
|
10727
10733
|
return [];
|
|
10728
10734
|
return parent.props.options.map((v) => {
|
|
@@ -10933,7 +10939,7 @@ var Pills = {
|
|
|
10933
10939
|
}
|
|
10934
10940
|
}
|
|
10935
10941
|
},
|
|
10936
|
-
$
|
|
10942
|
+
$propsCollection: ({ props: props4, state }) => new Array(props4.qty).fill({})
|
|
10937
10943
|
};
|
|
10938
10944
|
|
|
10939
10945
|
// Tab/index.js
|
|
@@ -11570,7 +11576,7 @@ var DropdownList = {
|
|
|
11570
11576
|
}
|
|
11571
11577
|
})
|
|
11572
11578
|
},
|
|
11573
|
-
$
|
|
11579
|
+
$propsCollection: ({ props: props4 }) => props4.options
|
|
11574
11580
|
};
|
|
11575
11581
|
var DropdownParent = {
|
|
11576
11582
|
props: {
|