@symbo.ls/uikit 2.11.269 → 2.11.271
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 +189 -152
- package/dist/index.cjs.js.map +3 -3
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -208,7 +208,7 @@ var require_types = __commonJS({
|
|
|
208
208
|
isArray: () => isArray3,
|
|
209
209
|
isBoolean: () => isBoolean,
|
|
210
210
|
isDate: () => isDate,
|
|
211
|
-
isDefined: () =>
|
|
211
|
+
isDefined: () => isDefined3,
|
|
212
212
|
isFunction: () => isFunction3,
|
|
213
213
|
isNot: () => isNot2,
|
|
214
214
|
isNull: () => isNull,
|
|
@@ -237,7 +237,7 @@ var require_types = __commonJS({
|
|
|
237
237
|
return false;
|
|
238
238
|
return typeof arg === "object";
|
|
239
239
|
};
|
|
240
|
-
var
|
|
240
|
+
var isDefined3 = (arg) => {
|
|
241
241
|
return isObject4(arg) || isObjectLike2(arg) || isString7(arg) || isNumber(arg) || isFunction3(arg) || isArray3(arg) || isObjectLike2(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
|
|
242
242
|
};
|
|
243
243
|
var isUndefined4 = (arg) => {
|
|
@@ -255,7 +255,7 @@ var require_types = __commonJS({
|
|
|
255
255
|
objectLike: isObjectLike2,
|
|
256
256
|
node: import_node.isNode,
|
|
257
257
|
htmlElement: import_node.isHtmlElement,
|
|
258
|
-
defined:
|
|
258
|
+
defined: isDefined3
|
|
259
259
|
};
|
|
260
260
|
var is = (arg) => {
|
|
261
261
|
return (...args) => {
|
|
@@ -1570,7 +1570,7 @@ var require_cjs2 = __commonJS({
|
|
|
1570
1570
|
isArray: () => isArray9,
|
|
1571
1571
|
isBoolean: () => isBoolean,
|
|
1572
1572
|
isDate: () => isDate,
|
|
1573
|
-
isDefined: () =>
|
|
1573
|
+
isDefined: () => isDefined22,
|
|
1574
1574
|
isFunction: () => isFunction22,
|
|
1575
1575
|
isNot: () => isNot2,
|
|
1576
1576
|
isNull: () => isNull2,
|
|
@@ -1599,7 +1599,7 @@ var require_cjs2 = __commonJS({
|
|
|
1599
1599
|
return false;
|
|
1600
1600
|
return typeof arg === "object";
|
|
1601
1601
|
};
|
|
1602
|
-
var
|
|
1602
|
+
var isDefined22 = (arg) => {
|
|
1603
1603
|
return isObject8(arg) || isObjectLike3(arg) || isString10(arg) || isNumber3(arg) || isFunction22(arg) || isArray9(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull2(arg);
|
|
1604
1604
|
};
|
|
1605
1605
|
var isUndefined22 = (arg) => {
|
|
@@ -1617,7 +1617,7 @@ var require_cjs2 = __commonJS({
|
|
|
1617
1617
|
objectLike: isObjectLike3,
|
|
1618
1618
|
node: import_node.isNode,
|
|
1619
1619
|
htmlElement: import_node.isHtmlElement,
|
|
1620
|
-
defined:
|
|
1620
|
+
defined: isDefined22
|
|
1621
1621
|
};
|
|
1622
1622
|
var is = (arg) => {
|
|
1623
1623
|
return (...args) => {
|
|
@@ -2852,7 +2852,7 @@ var require_cjs2 = __commonJS({
|
|
|
2852
2852
|
return unit === "em" || unit === "rem" || unit === "vw" || unit === "vh" || unit === "vmax" || unit === "vmin";
|
|
2853
2853
|
};
|
|
2854
2854
|
var import_globals = __toESM2(require_cjs7(), 1);
|
|
2855
|
-
var
|
|
2855
|
+
var import_utils17 = __toESM2(require_cjs22(), 1);
|
|
2856
2856
|
var ENV = "development";
|
|
2857
2857
|
var colorStringToRgbaArray = (color) => {
|
|
2858
2858
|
if (color === "")
|
|
@@ -2980,11 +2980,11 @@ var require_cjs2 = __commonJS({
|
|
|
2980
2980
|
return `rgba(${arr})`;
|
|
2981
2981
|
};
|
|
2982
2982
|
var getRgbTone = (rgb, tone) => {
|
|
2983
|
-
if ((0,
|
|
2983
|
+
if ((0, import_utils17.isString)(rgb) && rgb.includes("rgb"))
|
|
2984
2984
|
rgb = colorStringToRgbaArray(rgb).join(", ");
|
|
2985
|
-
if ((0,
|
|
2985
|
+
if ((0, import_utils17.isString)(rgb))
|
|
2986
2986
|
rgb = rgb.split(",").map((v) => parseFloat(v.trim()));
|
|
2987
|
-
if ((0,
|
|
2987
|
+
if ((0, import_utils17.isNumber)(tone))
|
|
2988
2988
|
tone += "";
|
|
2989
2989
|
const toHex = rgbArrayToHex(rgb);
|
|
2990
2990
|
const abs2 = tone.slice(0, 1);
|
|
@@ -4742,12 +4742,12 @@ var require_on = __commonJS({
|
|
|
4742
4742
|
triggerEventOnUpdate: () => triggerEventOnUpdate
|
|
4743
4743
|
});
|
|
4744
4744
|
module2.exports = __toCommonJS2(on_exports);
|
|
4745
|
-
var
|
|
4745
|
+
var import_utils17 = require_cjs();
|
|
4746
4746
|
var applyEvent = (param, element, state, context, options) => {
|
|
4747
4747
|
return param(element, state || element.state, context || element.context, options);
|
|
4748
4748
|
};
|
|
4749
4749
|
var triggerEventOn = (param, element, options) => {
|
|
4750
|
-
if (element.on && (0,
|
|
4750
|
+
if (element.on && (0, import_utils17.isFunction)(element.on[param])) {
|
|
4751
4751
|
const { state, context } = element;
|
|
4752
4752
|
return applyEvent(element.on[param], element, state, context, options);
|
|
4753
4753
|
}
|
|
@@ -4756,7 +4756,7 @@ var require_on = __commonJS({
|
|
|
4756
4756
|
return param(updatedObj, element, state || element.state, context || element.context, options);
|
|
4757
4757
|
};
|
|
4758
4758
|
var triggerEventOnUpdate = (param, updatedObj, element, options) => {
|
|
4759
|
-
if (element.on && (0,
|
|
4759
|
+
if (element.on && (0, import_utils17.isFunction)(element.on[param])) {
|
|
4760
4760
|
const { state, context } = element;
|
|
4761
4761
|
return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
|
|
4762
4762
|
}
|
|
@@ -4767,7 +4767,7 @@ var require_on = __commonJS({
|
|
|
4767
4767
|
if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdated" || param === "stateUpdated" || param === "initUpdate" || param === "update")
|
|
4768
4768
|
continue;
|
|
4769
4769
|
const appliedFunction = element.on[param];
|
|
4770
|
-
if ((0,
|
|
4770
|
+
if ((0, import_utils17.isFunction)(appliedFunction)) {
|
|
4771
4771
|
node2.addEventListener(param, (event) => {
|
|
4772
4772
|
const { state, context } = element;
|
|
4773
4773
|
appliedFunction(event, element, state, context, options);
|
|
@@ -4902,10 +4902,10 @@ var require_can = __commonJS({
|
|
|
4902
4902
|
});
|
|
4903
4903
|
module2.exports = __toCommonJS2(can_exports);
|
|
4904
4904
|
var import_report = require_cjs3();
|
|
4905
|
-
var
|
|
4905
|
+
var import_utils17 = require_cjs();
|
|
4906
4906
|
var canRender = (element) => {
|
|
4907
4907
|
const tag = element.tag || "div";
|
|
4908
|
-
return (0,
|
|
4908
|
+
return (0, import_utils17.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
|
|
4909
4909
|
};
|
|
4910
4910
|
}
|
|
4911
4911
|
});
|
|
@@ -4971,11 +4971,11 @@ var require_methods = __commonJS({
|
|
|
4971
4971
|
toggle: () => toggle
|
|
4972
4972
|
});
|
|
4973
4973
|
module2.exports = __toCommonJS2(methods_exports);
|
|
4974
|
-
var
|
|
4974
|
+
var import_utils17 = require_cjs();
|
|
4975
4975
|
var import_ignore = require_ignore();
|
|
4976
4976
|
var parse2 = function() {
|
|
4977
4977
|
const state = this;
|
|
4978
|
-
if ((0,
|
|
4978
|
+
if ((0, import_utils17.isObject)(state)) {
|
|
4979
4979
|
const obj = {};
|
|
4980
4980
|
for (const param in state) {
|
|
4981
4981
|
if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
|
|
@@ -4983,7 +4983,7 @@ var require_methods = __commonJS({
|
|
|
4983
4983
|
}
|
|
4984
4984
|
}
|
|
4985
4985
|
return obj;
|
|
4986
|
-
} else if ((0,
|
|
4986
|
+
} else if ((0, import_utils17.isArray)(state)) {
|
|
4987
4987
|
return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
|
|
4988
4988
|
}
|
|
4989
4989
|
};
|
|
@@ -5003,7 +5003,7 @@ var require_methods = __commonJS({
|
|
|
5003
5003
|
const state = this;
|
|
5004
5004
|
const element = state.__element;
|
|
5005
5005
|
const stateKey = element.__ref.__state;
|
|
5006
|
-
if ((0,
|
|
5006
|
+
if ((0, import_utils17.isString)(stateKey)) {
|
|
5007
5007
|
element.parent.state.remove(stateKey, { isHoisted: true, ...options });
|
|
5008
5008
|
return element.state;
|
|
5009
5009
|
}
|
|
@@ -5016,7 +5016,7 @@ var require_methods = __commonJS({
|
|
|
5016
5016
|
for (const key in state.__children) {
|
|
5017
5017
|
const child = state.__children[key];
|
|
5018
5018
|
if (child.state) {
|
|
5019
|
-
if ((0,
|
|
5019
|
+
if ((0, import_utils17.isArray)(child.state)) {
|
|
5020
5020
|
Object.defineProperty(child.state, "parent", {
|
|
5021
5021
|
value: state.parent,
|
|
5022
5022
|
enumerable: false,
|
|
@@ -5050,10 +5050,10 @@ var require_methods = __commonJS({
|
|
|
5050
5050
|
};
|
|
5051
5051
|
var add = function(value, options = {}) {
|
|
5052
5052
|
const state = this;
|
|
5053
|
-
if ((0,
|
|
5053
|
+
if ((0, import_utils17.isArray)(state)) {
|
|
5054
5054
|
state.push(value);
|
|
5055
5055
|
state.update(state.parse(), { overwrite: "replace", ...options });
|
|
5056
|
-
} else if ((0,
|
|
5056
|
+
} else if ((0, import_utils17.isObject)(state)) {
|
|
5057
5057
|
const key = Object.keys(state).length;
|
|
5058
5058
|
state.update({ [key]: value }, options);
|
|
5059
5059
|
}
|
|
@@ -5064,25 +5064,25 @@ var require_methods = __commonJS({
|
|
|
5064
5064
|
};
|
|
5065
5065
|
var remove = function(key, options = {}) {
|
|
5066
5066
|
const state = this;
|
|
5067
|
-
if ((0,
|
|
5068
|
-
(0,
|
|
5069
|
-
if ((0,
|
|
5070
|
-
(0,
|
|
5067
|
+
if ((0, import_utils17.isArray)(state))
|
|
5068
|
+
(0, import_utils17.removeFromArray)(state, key);
|
|
5069
|
+
if ((0, import_utils17.isObject)(state))
|
|
5070
|
+
(0, import_utils17.removeFromObject)(state, key);
|
|
5071
5071
|
return state.set(state.parse(), { replace: true, ...options });
|
|
5072
5072
|
};
|
|
5073
5073
|
var set3 = function(val, options = {}) {
|
|
5074
5074
|
const state = this;
|
|
5075
|
-
const value = (0,
|
|
5075
|
+
const value = (0, import_utils17.deepCloneWithExtnd)(val);
|
|
5076
5076
|
return state.clean({ preventStateUpdate: true, ...options }).update(value, { replace: true, ...options });
|
|
5077
5077
|
};
|
|
5078
5078
|
var reset = function(options = {}) {
|
|
5079
5079
|
const state = this;
|
|
5080
|
-
const value = (0,
|
|
5080
|
+
const value = (0, import_utils17.deepCloneWithExtnd)(state.parse());
|
|
5081
5081
|
return state.set(value, { replace: true, ...options });
|
|
5082
5082
|
};
|
|
5083
5083
|
var apply = function(func, options = {}) {
|
|
5084
5084
|
const state = this;
|
|
5085
|
-
if ((0,
|
|
5085
|
+
if ((0, import_utils17.isFunction)(func)) {
|
|
5086
5086
|
func(state);
|
|
5087
5087
|
return state.update(state.parse(), { replace: true, ...options });
|
|
5088
5088
|
}
|
|
@@ -5122,7 +5122,7 @@ var require_inherit = __commonJS({
|
|
|
5122
5122
|
isState: () => isState2
|
|
5123
5123
|
});
|
|
5124
5124
|
module2.exports = __toCommonJS2(inherit_exports);
|
|
5125
|
-
var
|
|
5125
|
+
var import_utils17 = require_cjs();
|
|
5126
5126
|
var import_ignore = require_ignore();
|
|
5127
5127
|
var getParentStateInKey = (stateKey, parentState) => {
|
|
5128
5128
|
if (!stateKey.includes("../"))
|
|
@@ -5174,11 +5174,11 @@ var require_inherit = __commonJS({
|
|
|
5174
5174
|
var createInheritedState = (element, parent) => {
|
|
5175
5175
|
const ref = element.__ref;
|
|
5176
5176
|
const inheritedState = findInheritedState(element, parent);
|
|
5177
|
-
if ((0,
|
|
5177
|
+
if ((0, import_utils17.isUndefined)(inheritedState))
|
|
5178
5178
|
return element.state;
|
|
5179
|
-
if ((0,
|
|
5180
|
-
return (0,
|
|
5181
|
-
} else if ((0,
|
|
5179
|
+
if ((0, import_utils17.is)(inheritedState)("object", "array")) {
|
|
5180
|
+
return (0, import_utils17.deepCloneWithExtnd)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
|
|
5181
|
+
} else if ((0, import_utils17.is)(inheritedState)("string", "number", "boolean")) {
|
|
5182
5182
|
ref.__stateType = typeof inheritedState;
|
|
5183
5183
|
return { value: inheritedState };
|
|
5184
5184
|
}
|
|
@@ -5187,12 +5187,12 @@ var require_inherit = __commonJS({
|
|
|
5187
5187
|
var checkIfInherits = (element) => {
|
|
5188
5188
|
const ref = element.__ref;
|
|
5189
5189
|
const stateKey = ref.__state;
|
|
5190
|
-
if (stateKey && (0,
|
|
5190
|
+
if (stateKey && (0, import_utils17.is)(stateKey)("number", "string", "boolean"))
|
|
5191
5191
|
return true;
|
|
5192
5192
|
return false;
|
|
5193
5193
|
};
|
|
5194
5194
|
var isState2 = function(state) {
|
|
5195
|
-
if (!(0,
|
|
5195
|
+
if (!(0, import_utils17.isObjectLike)(state))
|
|
5196
5196
|
return false;
|
|
5197
5197
|
return state.update && state.parse && state.clean && state.create && state.parent && state.destroy && state.rootUpdate && state.parentUpdate && state.toggle && state.add && state.apply && state.__element && state.__children;
|
|
5198
5198
|
};
|
|
@@ -5241,7 +5241,7 @@ var require_updateState = __commonJS({
|
|
|
5241
5241
|
var import_report = require_cjs3();
|
|
5242
5242
|
var import_event = require_cjs4();
|
|
5243
5243
|
var import_ignore = require_ignore();
|
|
5244
|
-
var
|
|
5244
|
+
var import_utils17 = require_cjs();
|
|
5245
5245
|
var import_inherit = require_inherit();
|
|
5246
5246
|
var STATE_UPDATE_OPTIONS = {
|
|
5247
5247
|
overwrite: true,
|
|
@@ -5254,7 +5254,7 @@ var require_updateState = __commonJS({
|
|
|
5254
5254
|
const state = this;
|
|
5255
5255
|
const element = state.__element;
|
|
5256
5256
|
if (!options.updateByState)
|
|
5257
|
-
(0,
|
|
5257
|
+
(0, import_utils17.merge)(options, STATE_UPDATE_OPTIONS);
|
|
5258
5258
|
if (!state.__element)
|
|
5259
5259
|
(0, import_report.report)("ElementOnStateIsNotDefined");
|
|
5260
5260
|
if (options.preventInheritAtCurrentState === true) {
|
|
@@ -5284,10 +5284,10 @@ var require_updateState = __commonJS({
|
|
|
5284
5284
|
const shallow = overwrite === "shallow";
|
|
5285
5285
|
const merge22 = overwrite === "merge";
|
|
5286
5286
|
if (merge22) {
|
|
5287
|
-
(0,
|
|
5287
|
+
(0, import_utils17.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
5288
5288
|
return;
|
|
5289
5289
|
}
|
|
5290
|
-
const overwriteFunc = shallow ?
|
|
5290
|
+
const overwriteFunc = shallow ? import_utils17.overwriteShallow : import_utils17.overwriteDeep;
|
|
5291
5291
|
overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
5292
5292
|
};
|
|
5293
5293
|
var hoistStateUpdate = (state, obj, options) => {
|
|
@@ -5309,7 +5309,7 @@ var require_updateState = __commonJS({
|
|
|
5309
5309
|
const changesValue = (0, import_inherit.createChangesByKey)(stateKey, passedValue);
|
|
5310
5310
|
const targetParent = findGrandParentState || parent.state;
|
|
5311
5311
|
if (options.replace)
|
|
5312
|
-
(0,
|
|
5312
|
+
(0, import_utils17.overwriteDeep)(targetParent, changesValue || value);
|
|
5313
5313
|
targetParent.update(changesValue, {
|
|
5314
5314
|
execStateFunction: false,
|
|
5315
5315
|
isHoisted: true,
|
|
@@ -5378,7 +5378,7 @@ var require_create = __commonJS({
|
|
|
5378
5378
|
});
|
|
5379
5379
|
module2.exports = __toCommonJS2(create_exports);
|
|
5380
5380
|
var import_event = require_cjs4();
|
|
5381
|
-
var
|
|
5381
|
+
var import_utils17 = require_cjs();
|
|
5382
5382
|
var import_ignore = require_ignore();
|
|
5383
5383
|
var import_methods = require_methods();
|
|
5384
5384
|
var import_updateState = require_updateState();
|
|
@@ -5392,13 +5392,13 @@ var require_create = __commonJS({
|
|
|
5392
5392
|
if (objectizeState === false)
|
|
5393
5393
|
return parent.state || {};
|
|
5394
5394
|
else
|
|
5395
|
-
element.state = (0,
|
|
5395
|
+
element.state = (0, import_utils17.deepCloneWithExtnd)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
|
|
5396
5396
|
const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
|
|
5397
5397
|
if (whatInitReturns === false)
|
|
5398
5398
|
return element.state;
|
|
5399
5399
|
if ((0, import_inherit.checkIfInherits)(element)) {
|
|
5400
5400
|
const inheritedState = (0, import_inherit.createInheritedState)(element, parent);
|
|
5401
|
-
element.state = (0,
|
|
5401
|
+
element.state = (0, import_utils17.isUndefined)(inheritedState) ? {} : inheritedState;
|
|
5402
5402
|
}
|
|
5403
5403
|
const dependentState = applyDependentState(element, element.state);
|
|
5404
5404
|
if (dependentState)
|
|
@@ -5411,17 +5411,17 @@ var require_create = __commonJS({
|
|
|
5411
5411
|
const { __ref: ref } = state;
|
|
5412
5412
|
if (!ref)
|
|
5413
5413
|
return;
|
|
5414
|
-
const dependentState = (0,
|
|
5414
|
+
const dependentState = (0, import_utils17.deepCloneWithExtnd)(ref, import_ignore.IGNORE_STATE_PARAMS);
|
|
5415
5415
|
const newDepends = { [element.key]: dependentState };
|
|
5416
|
-
ref.__depends = (0,
|
|
5416
|
+
ref.__depends = (0, import_utils17.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
|
|
5417
5417
|
return dependentState;
|
|
5418
5418
|
};
|
|
5419
5419
|
var checkForTypes = (element) => {
|
|
5420
5420
|
const { state, __ref: ref } = element;
|
|
5421
|
-
if ((0,
|
|
5421
|
+
if ((0, import_utils17.isFunction)(state)) {
|
|
5422
5422
|
ref.__state = state;
|
|
5423
|
-
return (0,
|
|
5424
|
-
} else if ((0,
|
|
5423
|
+
return (0, import_utils17.exec)(state, element);
|
|
5424
|
+
} else if ((0, import_utils17.is)(state)("string", "number")) {
|
|
5425
5425
|
ref.__state = state;
|
|
5426
5426
|
return {};
|
|
5427
5427
|
} else if (state === true) {
|
|
@@ -5469,7 +5469,7 @@ var require_create = __commonJS({
|
|
|
5469
5469
|
__children: {},
|
|
5470
5470
|
__root: ref.__root ? ref.__root.state : state
|
|
5471
5471
|
};
|
|
5472
|
-
if ((0,
|
|
5472
|
+
if ((0, import_utils17.isArray)(state)) {
|
|
5473
5473
|
addProtoToArray(state, proto);
|
|
5474
5474
|
} else {
|
|
5475
5475
|
Object.setPrototypeOf(state, proto);
|
|
@@ -5539,8 +5539,8 @@ var require_cjs6 = __commonJS({
|
|
|
5539
5539
|
router: () => router
|
|
5540
5540
|
});
|
|
5541
5541
|
module2.exports = __toCommonJS2(router_exports);
|
|
5542
|
-
var
|
|
5543
|
-
var getActiveRoute = (level = 0, route =
|
|
5542
|
+
var import_utils17 = require_cjs();
|
|
5543
|
+
var getActiveRoute = (level = 0, route = import_utils17.window.location.pathname) => {
|
|
5544
5544
|
const routeArray = route.split("/");
|
|
5545
5545
|
const activeRoute = routeArray[level + 1];
|
|
5546
5546
|
if (activeRoute)
|
|
@@ -5554,7 +5554,7 @@ var require_cjs6 = __commonJS({
|
|
|
5554
5554
|
initialRender: false,
|
|
5555
5555
|
scrollToTop: true,
|
|
5556
5556
|
scrollToNode: false,
|
|
5557
|
-
scrollNode:
|
|
5557
|
+
scrollNode: import_utils17.document && import_utils17.document.documentElement,
|
|
5558
5558
|
scrollBody: false,
|
|
5559
5559
|
useFragment: false,
|
|
5560
5560
|
updateState: true,
|
|
@@ -5570,13 +5570,13 @@ var require_cjs6 = __commonJS({
|
|
|
5570
5570
|
const route = getActiveRoute(options.level, pathname);
|
|
5571
5571
|
const content = element.routes[route || "/"] || element.routes["/*"];
|
|
5572
5572
|
const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
|
|
5573
|
-
const hashChanged = hash2 && hash2 !==
|
|
5573
|
+
const hashChanged = hash2 && hash2 !== import_utils17.window.location.hash.slice(1);
|
|
5574
5574
|
const pathChanged = pathname !== lastPathname;
|
|
5575
5575
|
lastPathname = pathname;
|
|
5576
5576
|
if (!content)
|
|
5577
5577
|
return;
|
|
5578
5578
|
if (options.pushState) {
|
|
5579
|
-
|
|
5579
|
+
import_utils17.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
|
|
5580
5580
|
}
|
|
5581
5581
|
if (pathChanged || !hashChanged) {
|
|
5582
5582
|
if (options.updateState) {
|
|
@@ -5605,7 +5605,7 @@ var require_cjs6 = __commonJS({
|
|
|
5605
5605
|
});
|
|
5606
5606
|
}
|
|
5607
5607
|
if (hash2) {
|
|
5608
|
-
const activeNode =
|
|
5608
|
+
const activeNode = import_utils17.document.getElementById(hash2);
|
|
5609
5609
|
if (activeNode) {
|
|
5610
5610
|
const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
|
|
5611
5611
|
scrollNode.scrollTo({
|
|
@@ -8461,6 +8461,12 @@ var Svg = {
|
|
|
8461
8461
|
return useSVGSymbol(SVGKey);
|
|
8462
8462
|
SVGKey = SVG[symbolId] = Math.random();
|
|
8463
8463
|
if (props4.src) {
|
|
8464
|
+
deps.init({
|
|
8465
|
+
svg: { [SVGKey]: props4.src }
|
|
8466
|
+
}, {
|
|
8467
|
+
document: context.document,
|
|
8468
|
+
emotion: context.emotion
|
|
8469
|
+
});
|
|
8464
8470
|
}
|
|
8465
8471
|
return useSVGSymbol(SVGKey);
|
|
8466
8472
|
}
|
|
@@ -8856,36 +8862,35 @@ var SuccessIndicator = {
|
|
|
8856
8862
|
var Hgroup = {
|
|
8857
8863
|
extend: Flex,
|
|
8858
8864
|
tag: "hgroup",
|
|
8859
|
-
props: {
|
|
8860
|
-
|
|
8861
|
-
|
|
8862
|
-
|
|
8865
|
+
props: {
|
|
8866
|
+
flow: "column",
|
|
8867
|
+
gap: "Y",
|
|
8868
|
+
Title: {
|
|
8863
8869
|
fontWeight: "700",
|
|
8864
8870
|
alignItems: "center"
|
|
8865
|
-
}
|
|
8866
|
-
|
|
8867
|
-
Paragraph: {
|
|
8868
|
-
extend: Flex,
|
|
8869
|
-
props: {
|
|
8871
|
+
},
|
|
8872
|
+
Paragraph: {
|
|
8870
8873
|
margin: "0",
|
|
8871
8874
|
color: "caption",
|
|
8872
8875
|
"> p": { margin: "0" }
|
|
8873
8876
|
}
|
|
8877
|
+
},
|
|
8878
|
+
Title: {
|
|
8879
|
+
extend: Flex,
|
|
8880
|
+
if: ({ parent }) => parent.props.title,
|
|
8881
|
+
props: ({ scope, parent }) => ({
|
|
8882
|
+
text: parent.props.title,
|
|
8883
|
+
lineHeight: "1em"
|
|
8884
|
+
})
|
|
8885
|
+
},
|
|
8886
|
+
Paragraph: {
|
|
8887
|
+
extend: Flex,
|
|
8888
|
+
if: ({ parent }) => parent.props.paragraph,
|
|
8889
|
+
props: ({ scope, parent }) => ({
|
|
8890
|
+
text: parent.props.paragraph,
|
|
8891
|
+
margin: "0"
|
|
8892
|
+
})
|
|
8874
8893
|
}
|
|
8875
|
-
// Title: {
|
|
8876
|
-
// extend: Flex,
|
|
8877
|
-
// props: ({ scope, parent }) => ({
|
|
8878
|
-
// text: parent.props.title,
|
|
8879
|
-
// lineHeight: '1em'
|
|
8880
|
-
// })
|
|
8881
|
-
// },
|
|
8882
|
-
// Paragraph: {
|
|
8883
|
-
// extend: Flex,
|
|
8884
|
-
// props: ({ scope, parent }) => ({
|
|
8885
|
-
// text: parent.props.paragraph,
|
|
8886
|
-
// margin: '0'
|
|
8887
|
-
// })
|
|
8888
|
-
// }
|
|
8889
8894
|
};
|
|
8890
8895
|
var HgroupRows = {
|
|
8891
8896
|
extend: Hgroup,
|
|
@@ -9249,8 +9254,8 @@ var CommonFieldTemplate = {
|
|
|
9249
9254
|
|
|
9250
9255
|
// Field/Field.js
|
|
9251
9256
|
var Field = {
|
|
9257
|
+
extend: "Flex",
|
|
9252
9258
|
tag: "label",
|
|
9253
|
-
extend: [Focusable, IconText],
|
|
9254
9259
|
props: {
|
|
9255
9260
|
minWidth: "F2+Z2",
|
|
9256
9261
|
maxWidth: "F2+Z2",
|
|
@@ -9258,14 +9263,10 @@ var Field = {
|
|
|
9258
9263
|
align: "center flex-start",
|
|
9259
9264
|
gap: "Y",
|
|
9260
9265
|
boxSizing: "border-box",
|
|
9261
|
-
padding: "- A - Z2",
|
|
9262
|
-
round: "Z1",
|
|
9263
|
-
border: "solid, gray .45 +80",
|
|
9264
|
-
borderWidth: ".8px",
|
|
9265
9266
|
position: "relative",
|
|
9266
|
-
|
|
9267
|
-
|
|
9268
|
-
|
|
9267
|
+
Input: {
|
|
9268
|
+
padding: "Z2 B2 Z2 B",
|
|
9269
|
+
flex: "1"
|
|
9269
9270
|
},
|
|
9270
9271
|
Button: {
|
|
9271
9272
|
padding: "0",
|
|
@@ -9275,19 +9276,15 @@ var Field = {
|
|
|
9275
9276
|
}
|
|
9276
9277
|
},
|
|
9277
9278
|
Input: {
|
|
9278
|
-
|
|
9279
|
-
|
|
9280
|
-
|
|
9281
|
-
|
|
9282
|
-
|
|
9283
|
-
|
|
9284
|
-
|
|
9285
|
-
|
|
9286
|
-
|
|
9287
|
-
minHeight: "100%",
|
|
9288
|
-
outline: "none !important",
|
|
9289
|
-
"::placeholder": { color: "gray 1 +64" }
|
|
9290
|
-
}
|
|
9279
|
+
placeholder: "Placeholder"
|
|
9280
|
+
},
|
|
9281
|
+
Icon: {
|
|
9282
|
+
props: ({ parent }) => ({
|
|
9283
|
+
name: parent.props.icon,
|
|
9284
|
+
minWidth: "A",
|
|
9285
|
+
margin: "- Z1 - -C",
|
|
9286
|
+
position: "relative"
|
|
9287
|
+
})
|
|
9291
9288
|
}
|
|
9292
9289
|
};
|
|
9293
9290
|
var FieldTemplate = {
|
|
@@ -9343,25 +9340,35 @@ var FieldWithTitleTemplate = {
|
|
|
9343
9340
|
|
|
9344
9341
|
// Field/Search.js
|
|
9345
9342
|
var Search = {
|
|
9346
|
-
extend: Field,
|
|
9347
9343
|
tag: "search",
|
|
9348
9344
|
props: {
|
|
9349
9345
|
maxWidth: "G3",
|
|
9350
9346
|
gap: "Z",
|
|
9351
|
-
|
|
9352
|
-
|
|
9347
|
+
onSubmit: (ev, el, s) => {
|
|
9348
|
+
}
|
|
9353
9349
|
},
|
|
9354
9350
|
Form: {
|
|
9355
|
-
|
|
9356
|
-
|
|
9357
|
-
|
|
9358
|
-
|
|
9351
|
+
extend: "Field",
|
|
9352
|
+
props: {
|
|
9353
|
+
flow: "row-reverse",
|
|
9354
|
+
Input: {
|
|
9355
|
+
padding: "Z2 B Z2 C"
|
|
9356
|
+
},
|
|
9357
|
+
Icon: {
|
|
9358
|
+
margin: "- -C - Z1",
|
|
9359
|
+
name: "search"
|
|
9360
|
+
}
|
|
9359
9361
|
},
|
|
9360
9362
|
Input: {
|
|
9361
9363
|
props: {
|
|
9362
|
-
|
|
9364
|
+
type: "search",
|
|
9365
|
+
placeholder: "Search",
|
|
9363
9366
|
"::placeholder": { color: "paragraph" }
|
|
9364
9367
|
}
|
|
9368
|
+
},
|
|
9369
|
+
Icon: {},
|
|
9370
|
+
on: {
|
|
9371
|
+
submit: (ev, el, s) => el.parent.props.onSubmit(ev, el, s)
|
|
9365
9372
|
}
|
|
9366
9373
|
}
|
|
9367
9374
|
};
|
|
@@ -9702,6 +9709,7 @@ var UnitValueWithTitle = {
|
|
|
9702
9709
|
|
|
9703
9710
|
// Link/index.js
|
|
9704
9711
|
var import_router = __toESM(require_cjs6());
|
|
9712
|
+
var import_utils12 = __toESM(require_cjs());
|
|
9705
9713
|
var Link = {
|
|
9706
9714
|
extend: Focusable,
|
|
9707
9715
|
tag: "a",
|
|
@@ -9727,17 +9735,19 @@ var RouterLink = {
|
|
|
9727
9735
|
on: {
|
|
9728
9736
|
click: (event, el) => {
|
|
9729
9737
|
const { props: props4, context: ctx } = el;
|
|
9730
|
-
const { href } = props4;
|
|
9738
|
+
const { href, scrollToTop } = props4;
|
|
9731
9739
|
if (!href)
|
|
9732
9740
|
return;
|
|
9733
9741
|
const { utils, snippets, routerOptions } = ctx;
|
|
9734
9742
|
const root = el.__ref.__root;
|
|
9735
9743
|
const linkIsExternal = href.includes("http://") || href.includes("https://") || href.includes("mailto:") || href.includes("tel:");
|
|
9736
|
-
const options = props4.routerOptions || routerOptions || {
|
|
9737
|
-
scrollToOptions: { behaviour: "instant" }
|
|
9738
|
-
};
|
|
9739
9744
|
if (href && !linkIsExternal) {
|
|
9740
|
-
(snippets.router || utils.router || import_router.router)(href, root, {},
|
|
9745
|
+
(snippets.router || utils.router || import_router.router)(href, root, {}, {
|
|
9746
|
+
scrollToOptions: { behaviour: "instant" },
|
|
9747
|
+
scrollToTop: (0, import_utils12.isDefined)(scrollToTop) ? scrollToTop : true,
|
|
9748
|
+
...routerOptions,
|
|
9749
|
+
...props4.routerOptions
|
|
9750
|
+
});
|
|
9741
9751
|
event.preventDefault();
|
|
9742
9752
|
}
|
|
9743
9753
|
}
|
|
@@ -9796,20 +9806,19 @@ var DoubleHr = {
|
|
|
9796
9806
|
};
|
|
9797
9807
|
|
|
9798
9808
|
// Input/Input.js
|
|
9799
|
-
var
|
|
9809
|
+
var import_utils13 = __toESM(require_cjs());
|
|
9800
9810
|
var Input = {
|
|
9801
9811
|
extend: ["Focusable"],
|
|
9802
9812
|
tag: "input",
|
|
9803
|
-
deps: { isString:
|
|
9813
|
+
deps: { isString: import_utils13.isString, replaceLiteralsWithObjectFields: import_utils13.replaceLiteralsWithObjectFields },
|
|
9804
9814
|
props: {
|
|
9805
9815
|
border: "none",
|
|
9806
9816
|
type: "input",
|
|
9807
9817
|
theme: "field",
|
|
9808
9818
|
fontSize: "A",
|
|
9809
9819
|
round: "C",
|
|
9810
|
-
lineHeight: 1,
|
|
9811
|
-
|
|
9812
|
-
padding: "Z A"
|
|
9820
|
+
lineHeight: "1",
|
|
9821
|
+
padding: "Z2 B"
|
|
9813
9822
|
},
|
|
9814
9823
|
attr: {
|
|
9815
9824
|
pattern: ({ props: props4 }) => props4.pattern,
|
|
@@ -9992,12 +10001,13 @@ var Textarea = {
|
|
|
9992
10001
|
round: "Z1",
|
|
9993
10002
|
placeholder: "Leave us a message...",
|
|
9994
10003
|
padding: "A",
|
|
9995
|
-
theme: "
|
|
10004
|
+
theme: "field",
|
|
9996
10005
|
border: "none",
|
|
9997
10006
|
maxWidth: "G1_default",
|
|
9998
10007
|
minHeight: "E_default",
|
|
9999
10008
|
width: "100%",
|
|
10000
10009
|
height: "E1_default",
|
|
10010
|
+
fontFamily: "inherit",
|
|
10001
10011
|
style: { resize: "none" }
|
|
10002
10012
|
},
|
|
10003
10013
|
".simple": {
|
|
@@ -10009,10 +10019,11 @@ var Textarea = {
|
|
|
10009
10019
|
},
|
|
10010
10020
|
".outlined": {
|
|
10011
10021
|
props: {
|
|
10012
|
-
|
|
10022
|
+
theme: "field",
|
|
10023
|
+
borderWidth: "1px",
|
|
10024
|
+
borderStyle: "solid",
|
|
10013
10025
|
lineHeight: 1.4,
|
|
10014
10026
|
placeholder: "Leave us a message...",
|
|
10015
|
-
outline: "none !important",
|
|
10016
10027
|
resize: "none"
|
|
10017
10028
|
}
|
|
10018
10029
|
}
|
|
@@ -10079,7 +10090,8 @@ var Button = {
|
|
|
10079
10090
|
textDecoration: "none",
|
|
10080
10091
|
lineHeight: "1",
|
|
10081
10092
|
whiteSpace: "nowrap",
|
|
10082
|
-
padding: "Z
|
|
10093
|
+
padding: "Z B2",
|
|
10094
|
+
fontWeight: "500",
|
|
10083
10095
|
fontFamily: "inherit",
|
|
10084
10096
|
round: "C2"
|
|
10085
10097
|
},
|
|
@@ -10115,12 +10127,11 @@ var FlexButton = {
|
|
|
10115
10127
|
boxSize: "fit-content",
|
|
10116
10128
|
padding: "Z2 A2",
|
|
10117
10129
|
round: "Z1",
|
|
10118
|
-
gap: "
|
|
10119
|
-
position: "relative"
|
|
10120
|
-
|
|
10121
|
-
Icon: {
|
|
10122
|
-
props: { fontSize: "B1" }
|
|
10130
|
+
gap: "Z",
|
|
10131
|
+
position: "relative",
|
|
10132
|
+
Icon: { fontSize: "B1" }
|
|
10123
10133
|
},
|
|
10134
|
+
Icon: {},
|
|
10124
10135
|
Text: { text: "Button" }
|
|
10125
10136
|
};
|
|
10126
10137
|
var ButtonSet = {
|
|
@@ -10323,7 +10334,7 @@ var ProgressCircleWithSideUnitValue = {
|
|
|
10323
10334
|
};
|
|
10324
10335
|
|
|
10325
10336
|
// Range/index.js
|
|
10326
|
-
var
|
|
10337
|
+
var import_utils14 = __toESM(require_cjs());
|
|
10327
10338
|
var import_scratch11 = __toESM(require_cjs2());
|
|
10328
10339
|
var props = {
|
|
10329
10340
|
appearance: "none",
|
|
@@ -10384,16 +10395,40 @@ var props = {
|
|
|
10384
10395
|
}
|
|
10385
10396
|
}
|
|
10386
10397
|
};
|
|
10387
|
-
var Range = {
|
|
10388
|
-
props,
|
|
10389
|
-
tag: "input",
|
|
10390
|
-
attr: { type: "range" }
|
|
10391
|
-
};
|
|
10392
10398
|
var returnPropertyValue = (el, property, def) => {
|
|
10393
10399
|
const val = el.props && el.props[property];
|
|
10394
|
-
const r = (0,
|
|
10400
|
+
const r = (0, import_utils14.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 0;
|
|
10395
10401
|
return r + "";
|
|
10396
10402
|
};
|
|
10403
|
+
var Range = {
|
|
10404
|
+
props,
|
|
10405
|
+
tag: "input",
|
|
10406
|
+
attr: {
|
|
10407
|
+
type: "range",
|
|
10408
|
+
value: (el, s) => parseFloat(el.state.value || el.props.value || el.props.defaultValue),
|
|
10409
|
+
min: (el, s) => returnPropertyValue(el, "min", 0),
|
|
10410
|
+
max: (el, s) => returnPropertyValue(el, "max", 100),
|
|
10411
|
+
step: (el, s) => returnPropertyValue(el, "step", 1)
|
|
10412
|
+
},
|
|
10413
|
+
on: {
|
|
10414
|
+
input: (ev, el, s) => {
|
|
10415
|
+
const props4 = el.props;
|
|
10416
|
+
if ((0, import_utils14.isFunction)(props4.onInput)) {
|
|
10417
|
+
props4.onInput(ev, el, s);
|
|
10418
|
+
} else {
|
|
10419
|
+
s.update({ value: parseFloat(el.node.value) });
|
|
10420
|
+
}
|
|
10421
|
+
},
|
|
10422
|
+
change: (ev, el, s) => {
|
|
10423
|
+
const props4 = el.props;
|
|
10424
|
+
if ((0, import_utils14.isFunction)(props4.onChange)) {
|
|
10425
|
+
props4.onChange(ev, el, s);
|
|
10426
|
+
} else {
|
|
10427
|
+
s.update({ value: parseFloat(el.node.value) });
|
|
10428
|
+
}
|
|
10429
|
+
}
|
|
10430
|
+
}
|
|
10431
|
+
};
|
|
10397
10432
|
var RangeWithButtons = {
|
|
10398
10433
|
minus: {
|
|
10399
10434
|
extend: SquareButton,
|
|
@@ -10401,7 +10436,7 @@ var RangeWithButtons = {
|
|
|
10401
10436
|
on: {
|
|
10402
10437
|
click: (ev, el, s) => {
|
|
10403
10438
|
const parentProps = el.parent.props;
|
|
10404
|
-
if ((0,
|
|
10439
|
+
if ((0, import_utils14.isFunction)(parentProps.onDecrease)) {
|
|
10405
10440
|
parentProps.onDecrease(ev, el.parent, s);
|
|
10406
10441
|
} else {
|
|
10407
10442
|
const value = parseFloat(s.value);
|
|
@@ -10419,13 +10454,13 @@ var RangeWithButtons = {
|
|
|
10419
10454
|
tag: "span",
|
|
10420
10455
|
text: ({ state, parent }) => {
|
|
10421
10456
|
const unit = returnPropertyValue(parent, "unit", "");
|
|
10422
|
-
return "" + (state.value ||
|
|
10457
|
+
return "" + (state.value || state.defaultValue || 0) + unit;
|
|
10423
10458
|
}
|
|
10424
10459
|
},
|
|
10425
10460
|
input: {
|
|
10426
10461
|
extend: Range,
|
|
10427
10462
|
attr: {
|
|
10428
|
-
value: (el, s) => parseFloat(
|
|
10463
|
+
value: (el, s) => parseFloat(s.value || s.defaultValue),
|
|
10429
10464
|
min: (el, s) => returnPropertyValue(el.parent, "min", 0),
|
|
10430
10465
|
max: (el, s) => returnPropertyValue(el.parent, "max", 100),
|
|
10431
10466
|
step: (el, s) => returnPropertyValue(el.parent, "step", 1)
|
|
@@ -10433,7 +10468,7 @@ var RangeWithButtons = {
|
|
|
10433
10468
|
on: {
|
|
10434
10469
|
input: (ev, el, s) => {
|
|
10435
10470
|
const parentProps = el.parent.props;
|
|
10436
|
-
if ((0,
|
|
10471
|
+
if ((0, import_utils14.isFunction)(parentProps.onInput)) {
|
|
10437
10472
|
parentProps.onInput(ev, el, s);
|
|
10438
10473
|
} else {
|
|
10439
10474
|
s.update({ value: parseFloat(el.node.value) });
|
|
@@ -10441,7 +10476,7 @@ var RangeWithButtons = {
|
|
|
10441
10476
|
},
|
|
10442
10477
|
change: (ev, el, s) => {
|
|
10443
10478
|
const parentProps = el.parent.props;
|
|
10444
|
-
if ((0,
|
|
10479
|
+
if ((0, import_utils14.isFunction)(parentProps.onChange)) {
|
|
10445
10480
|
parentProps.onChange(ev, el, s);
|
|
10446
10481
|
} else {
|
|
10447
10482
|
s.update({ value: parseFloat(el.node.value) });
|
|
@@ -10455,7 +10490,7 @@ var RangeWithButtons = {
|
|
|
10455
10490
|
on: {
|
|
10456
10491
|
click: (ev, el, s) => {
|
|
10457
10492
|
const parentProps = el.parent.props;
|
|
10458
|
-
if ((0,
|
|
10493
|
+
if ((0, import_utils14.isFunction)(parentProps.onIncrease)) {
|
|
10459
10494
|
parentProps.onIncrease(ev, el.parent, s);
|
|
10460
10495
|
} else {
|
|
10461
10496
|
const value = parseFloat(s.value);
|
|
@@ -10491,7 +10526,7 @@ var style_default = {
|
|
|
10491
10526
|
|
|
10492
10527
|
// Slider/index.js
|
|
10493
10528
|
var import_scratch12 = __toESM(require_cjs2());
|
|
10494
|
-
var
|
|
10529
|
+
var import_utils15 = __toESM(require_cjs());
|
|
10495
10530
|
var RangeSlider = {
|
|
10496
10531
|
style: style_default,
|
|
10497
10532
|
props: {
|
|
@@ -10502,7 +10537,7 @@ var RangeSlider = {
|
|
|
10502
10537
|
};
|
|
10503
10538
|
var listenProp = (el, prop, def) => {
|
|
10504
10539
|
const val = el && el.props && el.props[prop];
|
|
10505
|
-
const r = ((0,
|
|
10540
|
+
const r = ((0, import_utils15.isFunction)(val) ? val() : val) || (def !== void 0 ? def : 50);
|
|
10506
10541
|
return r;
|
|
10507
10542
|
};
|
|
10508
10543
|
var Slider = {
|
|
@@ -10513,10 +10548,10 @@ var Slider = {
|
|
|
10513
10548
|
},
|
|
10514
10549
|
on: {
|
|
10515
10550
|
click: (ev, el, s) => {
|
|
10516
|
-
el.props && (0,
|
|
10551
|
+
el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
10517
10552
|
const input = el.parent.input;
|
|
10518
10553
|
const props4 = input.props;
|
|
10519
|
-
const value = (0,
|
|
10554
|
+
const value = (0, import_utils15.isFunction)(props4.value) ? props4.value() : props4.value;
|
|
10520
10555
|
input.node.value = value;
|
|
10521
10556
|
}
|
|
10522
10557
|
}
|
|
@@ -10539,8 +10574,8 @@ var Slider = {
|
|
|
10539
10574
|
step: (el, s) => listenProp(el, "step", 1)
|
|
10540
10575
|
},
|
|
10541
10576
|
on: {
|
|
10542
|
-
input: (ev, el, s) => el.props && (0,
|
|
10543
|
-
change: (ev, el, s) => el.props && (0,
|
|
10577
|
+
input: (ev, el, s) => el.props && (0, import_utils15.isFunction)(el.props.input) && el.props.input(ev, el, s),
|
|
10578
|
+
change: (ev, el, s) => el.props && (0, import_utils15.isFunction)(el.props.change) && el.props.change(ev, el, s)
|
|
10544
10579
|
}
|
|
10545
10580
|
},
|
|
10546
10581
|
button1: {
|
|
@@ -10550,10 +10585,10 @@ var Slider = {
|
|
|
10550
10585
|
},
|
|
10551
10586
|
on: {
|
|
10552
10587
|
click: (ev, el, s) => {
|
|
10553
|
-
el.props && (0,
|
|
10588
|
+
el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
10554
10589
|
const input = el.parent.input;
|
|
10555
10590
|
const props4 = input.props;
|
|
10556
|
-
const value = (0,
|
|
10591
|
+
const value = (0, import_utils15.isFunction)(props4.value) ? props4.value() : props4.value;
|
|
10557
10592
|
input.node.value = value;
|
|
10558
10593
|
}
|
|
10559
10594
|
}
|
|
@@ -10769,7 +10804,7 @@ var NotificationIndicator = {
|
|
|
10769
10804
|
};
|
|
10770
10805
|
|
|
10771
10806
|
// Tooltip/index.js
|
|
10772
|
-
var
|
|
10807
|
+
var import_utils16 = __toESM(require_cjs());
|
|
10773
10808
|
var Tooltip = {
|
|
10774
10809
|
extend: Flex,
|
|
10775
10810
|
props: {
|
|
@@ -10788,7 +10823,7 @@ var Tooltip = {
|
|
|
10788
10823
|
},
|
|
10789
10824
|
attr: { tooltip: true },
|
|
10790
10825
|
Title: {
|
|
10791
|
-
if: ({ parent, props: props4 }) => (0,
|
|
10826
|
+
if: ({ parent, props: props4 }) => (0, import_utils16.isDefined)(parent.props.title) || props4.text,
|
|
10792
10827
|
props: ({ parent }) => ({
|
|
10793
10828
|
width: "fit-content",
|
|
10794
10829
|
fontWeight: 500,
|
|
@@ -10797,7 +10832,7 @@ var Tooltip = {
|
|
|
10797
10832
|
})
|
|
10798
10833
|
},
|
|
10799
10834
|
P: {
|
|
10800
|
-
if: ({ parent, props: props4 }) => (0,
|
|
10835
|
+
if: ({ parent, props: props4 }) => (0, import_utils16.isDefined)(parent.props.description) || props4.text,
|
|
10801
10836
|
props: ({ parent }) => ({
|
|
10802
10837
|
width: "fit-content",
|
|
10803
10838
|
fontSize: "Z2",
|
|
@@ -10909,6 +10944,8 @@ var Tab = {
|
|
|
10909
10944
|
align: "center flex-start",
|
|
10910
10945
|
position: "relative",
|
|
10911
10946
|
padding: "Z Z1",
|
|
10947
|
+
theme: "field",
|
|
10948
|
+
borderRadius: "A A X2 X2",
|
|
10912
10949
|
icon: "smile"
|
|
10913
10950
|
},
|
|
10914
10951
|
Icon: {},
|