@public-ui/hydrate 1.7.3 → 2.0.0-rc.1
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.js +204 -1073
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
/*!
|
|
9
|
-
Stencil Mock Doc v4.
|
|
9
|
+
Stencil Mock Doc v4.5.0 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
const CONTENT_REF_ID = 'r';
|
|
12
12
|
const ORG_LOCATION_ID = 'o';
|
|
@@ -1626,6 +1626,14 @@ class MockNodeList {
|
|
|
1626
1626
|
}
|
|
1627
1627
|
}
|
|
1628
1628
|
class MockElement extends MockNode {
|
|
1629
|
+
attachInternals() {
|
|
1630
|
+
return new Proxy({}, {
|
|
1631
|
+
get: function (_target, prop, _receiver) {
|
|
1632
|
+
console.error(`NOTE: Property ${String(prop)} was accessed on ElementInternals, but this property is not implemented.
|
|
1633
|
+
Testing components with ElementInternals is fully supported in e2e tests.`);
|
|
1634
|
+
},
|
|
1635
|
+
});
|
|
1636
|
+
}
|
|
1629
1637
|
constructor(ownerDocument, nodeName) {
|
|
1630
1638
|
super(ownerDocument, 1 /* NODE_TYPES.ELEMENT_NODE */, typeof nodeName === 'string' ? nodeName : null, null);
|
|
1631
1639
|
this.namespaceURI = null;
|
|
@@ -4953,7 +4961,7 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
4953
4961
|
|
|
4954
4962
|
|
|
4955
4963
|
const NAMESPACE = 'kolibri';
|
|
4956
|
-
const BUILD = /* kolibri */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: true, observeAttribute: true, patchPseudoShadowDom: false, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
4964
|
+
const BUILD = /* kolibri */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: true, observeAttribute: true, patchPseudoShadowDom: false, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
4957
4965
|
|
|
4958
4966
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4959
4967
|
|
|
@@ -5756,7 +5764,8 @@ class Translator extends EventEmitter {
|
|
|
5756
5764
|
usedKey: key,
|
|
5757
5765
|
exactUsedKey: key,
|
|
5758
5766
|
usedLng: lng,
|
|
5759
|
-
usedNS: namespace
|
|
5767
|
+
usedNS: namespace,
|
|
5768
|
+
usedParams: this.getUsedParamsDetails(options)
|
|
5760
5769
|
};
|
|
5761
5770
|
}
|
|
5762
5771
|
return `${namespace}${nsSeparator}${key}`;
|
|
@@ -5767,7 +5776,8 @@ class Translator extends EventEmitter {
|
|
|
5767
5776
|
usedKey: key,
|
|
5768
5777
|
exactUsedKey: key,
|
|
5769
5778
|
usedLng: lng,
|
|
5770
|
-
usedNS: namespace
|
|
5779
|
+
usedNS: namespace,
|
|
5780
|
+
usedParams: this.getUsedParamsDetails(options)
|
|
5771
5781
|
};
|
|
5772
5782
|
}
|
|
5773
5783
|
return key;
|
|
@@ -5792,6 +5802,7 @@ class Translator extends EventEmitter {
|
|
|
5792
5802
|
}) : `key '${key} (${this.language})' returned an object instead of string.`;
|
|
5793
5803
|
if (returnDetails) {
|
|
5794
5804
|
resolved.res = r;
|
|
5805
|
+
resolved.usedParams = this.getUsedParamsDetails(options);
|
|
5795
5806
|
return resolved;
|
|
5796
5807
|
}
|
|
5797
5808
|
return r;
|
|
@@ -5892,6 +5903,7 @@ class Translator extends EventEmitter {
|
|
|
5892
5903
|
}
|
|
5893
5904
|
if (returnDetails) {
|
|
5894
5905
|
resolved.res = res;
|
|
5906
|
+
resolved.usedParams = this.getUsedParamsDetails(options);
|
|
5895
5907
|
return resolved;
|
|
5896
5908
|
}
|
|
5897
5909
|
return res;
|
|
@@ -6041,6 +6053,30 @@ class Translator extends EventEmitter {
|
|
|
6041
6053
|
if (this.i18nFormat && this.i18nFormat.getResource) return this.i18nFormat.getResource(code, ns, key, options);
|
|
6042
6054
|
return this.resourceStore.getResource(code, ns, key, options);
|
|
6043
6055
|
}
|
|
6056
|
+
getUsedParamsDetails() {
|
|
6057
|
+
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
6058
|
+
const optionsKeys = ['defaultValue', 'ordinal', 'context', 'replace', 'lng', 'lngs', 'fallbackLng', 'ns', 'keySeparator', 'nsSeparator', 'returnObjects', 'returnDetails', 'joinArrays', 'postProcess', 'interpolation'];
|
|
6059
|
+
const useOptionsReplaceForData = options.replace && typeof options.replace !== 'string';
|
|
6060
|
+
let data = useOptionsReplaceForData ? options.replace : options;
|
|
6061
|
+
if (useOptionsReplaceForData && typeof options.count !== 'undefined') {
|
|
6062
|
+
data.count = options.count;
|
|
6063
|
+
}
|
|
6064
|
+
if (this.options.interpolation.defaultVariables) {
|
|
6065
|
+
data = {
|
|
6066
|
+
...this.options.interpolation.defaultVariables,
|
|
6067
|
+
...data
|
|
6068
|
+
};
|
|
6069
|
+
}
|
|
6070
|
+
if (!useOptionsReplaceForData) {
|
|
6071
|
+
data = {
|
|
6072
|
+
...data
|
|
6073
|
+
};
|
|
6074
|
+
for (const key of optionsKeys) {
|
|
6075
|
+
delete data[key];
|
|
6076
|
+
}
|
|
6077
|
+
}
|
|
6078
|
+
return data;
|
|
6079
|
+
}
|
|
6044
6080
|
static hasDefaultValue(options) {
|
|
6045
6081
|
const prefix = 'defaultValue';
|
|
6046
6082
|
for (const option in options) {
|
|
@@ -7810,7 +7846,7 @@ const initKoliBri = () => {
|
|
|
7810
7846
|
| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.
|
|
7811
7847
|
| |\\ \\ | '-' | | | | | | '--' / | | | |
|
|
7812
7848
|
\`--' \`--´ \`---´ \`--' \`--' \`------´ \`--' \`--'
|
|
7813
|
-
🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io |
|
|
7849
|
+
🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | 2.0.0-rc.1
|
|
7814
7850
|
`, {
|
|
7815
7851
|
forceLog: true,
|
|
7816
7852
|
});
|
|
@@ -8279,36 +8315,42 @@ const createElm = (e, t, o, n) => {
|
|
|
8279
8315
|
isSvgMode && "svg" === l && (isSvgMode = !1));
|
|
8280
8316
|
}, updateFallbackSlotVisibility = e => {
|
|
8281
8317
|
const t = e.childNodes;
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
o.
|
|
8318
|
+
for (const e of t) if (1 === e.nodeType) {
|
|
8319
|
+
if (e["s-sr"]) {
|
|
8320
|
+
const o = e["s-sn"];
|
|
8321
|
+
e.hidden = !1;
|
|
8322
|
+
for (const n of t) if (n["s-hn"] !== e["s-hn"] || "" !== o) {
|
|
8323
|
+
if (1 === n.nodeType && o === n.getAttribute("slot")) {
|
|
8324
|
+
e.hidden = !0;
|
|
8325
|
+
break;
|
|
8326
|
+
}
|
|
8327
|
+
} else if (1 === n.nodeType || 3 === n.nodeType && "" !== n.textContent.trim()) {
|
|
8328
|
+
e.hidden = !0;
|
|
8288
8329
|
break;
|
|
8289
8330
|
}
|
|
8290
|
-
} else if (1 === r || 3 === r && "" !== t[l].textContent.trim()) {
|
|
8291
|
-
o.hidden = !0;
|
|
8292
|
-
break;
|
|
8293
8331
|
}
|
|
8294
|
-
updateFallbackSlotVisibility(
|
|
8332
|
+
updateFallbackSlotVisibility(e);
|
|
8295
8333
|
}
|
|
8296
|
-
}, relocateNodes = [],
|
|
8297
|
-
let t, o, n
|
|
8298
|
-
const
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8334
|
+
}, relocateNodes = [], markSlotContentForRelocation = e => {
|
|
8335
|
+
let t, o, n;
|
|
8336
|
+
for (const s of e.childNodes) {
|
|
8337
|
+
if (s["s-sr"] && (t = s["s-cr"]) && t.parentNode) {
|
|
8338
|
+
o = t.parentNode.childNodes;
|
|
8339
|
+
const e = s["s-sn"];
|
|
8340
|
+
for (n = o.length - 1; n >= 0; n--) if (t = o[n], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== s["s-hn"]) if (isNodeLocatedInSlot(t, e)) {
|
|
8341
|
+
let o = relocateNodes.find((e => e.$nodeToRelocate$ === t));
|
|
8342
|
+
checkSlotFallbackVisibility = !0, t["s-sn"] = t["s-sn"] || e, o ? o.$slotRefNode$ = s : relocateNodes.push({
|
|
8343
|
+
$slotRefNode$: s,
|
|
8344
|
+
$nodeToRelocate$: t
|
|
8345
|
+
}), t["s-sr"] && relocateNodes.map((e => {
|
|
8346
|
+
isNodeLocatedInSlot(e.$nodeToRelocate$, t["s-sn"]) && (o = relocateNodes.find((e => e.$nodeToRelocate$ === t)),
|
|
8347
|
+
o && !e.$slotRefNode$ && (e.$slotRefNode$ = o.$slotRefNode$));
|
|
8348
|
+
}));
|
|
8349
|
+
} else relocateNodes.some((e => e.$nodeToRelocate$ === t)) || relocateNodes.push({
|
|
8350
|
+
$nodeToRelocate$: t
|
|
8351
|
+
});
|
|
8352
|
+
}
|
|
8353
|
+
1 === s.nodeType && markSlotContentForRelocation(s);
|
|
8312
8354
|
}
|
|
8313
8355
|
}, isNodeLocatedInSlot = (e, t) => 1 === e.nodeType ? null === e.getAttribute("slot") && "" === t || e.getAttribute("slot") === t : e["s-sn"] === t || "" === t, nullifyVNodeRefs = e => {
|
|
8314
8356
|
(e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(nullifyVNodeRefs));
|
|
@@ -8323,7 +8365,7 @@ const createElm = (e, t, o, n) => {
|
|
|
8323
8365
|
BUILD.slotRelocation) {
|
|
8324
8366
|
if (plt.$flags$ |= 1, checkSlotRelocate) {
|
|
8325
8367
|
let e, t, o, n, s, l;
|
|
8326
|
-
|
|
8368
|
+
markSlotContentForRelocation(a.$elm$);
|
|
8327
8369
|
let r = 0;
|
|
8328
8370
|
for (;r < relocateNodes.length; r++) e = relocateNodes[r], t = e.$nodeToRelocate$,
|
|
8329
8371
|
t["s-ol"] || (o = originalLocationDebugNode(t) ,
|
|
@@ -8387,9 +8429,9 @@ const callRender = (e, t, o, n) => {
|
|
|
8387
8429
|
(safeCall(s, "componentDidRender"),
|
|
8388
8430
|
BUILD.isDev ), 64 & e.$flags$ ? (n()) : (e.$flags$ |= 64, addHydratedFlag(o),
|
|
8389
8431
|
(safeCall(s, "componentDidLoad"),
|
|
8390
|
-
BUILD.isDev ), n(), (e.$onReadyResolve$(o), l || appDidLoad())), e.$onInstanceResolve$(o),
|
|
8391
|
-
e.$onRenderResolve$
|
|
8392
|
-
e.$flags$ &= -517);
|
|
8432
|
+
BUILD.isDev ), n(), (e.$onReadyResolve$(o), l || appDidLoad())), e.$onInstanceResolve$(o),
|
|
8433
|
+
(e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0),
|
|
8434
|
+
512 & e.$flags$ && nextTick((() => scheduleUpdate(e, !1))), e.$flags$ &= -517);
|
|
8393
8435
|
}, appDidLoad = e => {
|
|
8394
8436
|
addHydratedFlag(doc.documentElement), nextTick((() => emitEvent(win, "appload", {
|
|
8395
8437
|
detail: {
|
|
@@ -8477,10 +8519,11 @@ const callRender = (e, t, o, n) => {
|
|
|
8477
8519
|
}
|
|
8478
8520
|
}
|
|
8479
8521
|
return e;
|
|
8480
|
-
}, initializeComponent = async (e, t, o, n
|
|
8522
|
+
}, initializeComponent = async (e, t, o, n) => {
|
|
8523
|
+
let s;
|
|
8481
8524
|
if (0 == (32 & t.$flags$)) {
|
|
8482
8525
|
if (t.$flags$ |= 32, BUILD.lazyLoad ) {
|
|
8483
|
-
if (
|
|
8526
|
+
if (s = loadModule(o), s.then) {
|
|
8484
8527
|
const e = (() => {});
|
|
8485
8528
|
s = await s, e();
|
|
8486
8529
|
}
|
|
@@ -8690,16 +8733,6 @@ const a11yHint = (msg, options) => {
|
|
|
8690
8733
|
});
|
|
8691
8734
|
}
|
|
8692
8735
|
};
|
|
8693
|
-
const deprecatedCache = new Set();
|
|
8694
|
-
const deprecatedHint = (msg, options) => {
|
|
8695
|
-
if (deprecatedCache.has(msg) === false || !!(options === null || options === void 0 ? void 0 : options.force)) {
|
|
8696
|
-
deprecatedCache.add(msg);
|
|
8697
|
-
Log.warn([msg].concat((options === null || options === void 0 ? void 0 : options.details) || []), {
|
|
8698
|
-
classifier: `🔥 deprecated`,
|
|
8699
|
-
overwriteStyle: '; background-color: #f00',
|
|
8700
|
-
});
|
|
8701
|
-
}
|
|
8702
|
-
};
|
|
8703
8736
|
const devCache = new Set();
|
|
8704
8737
|
const devHint = (msg, options) => {
|
|
8705
8738
|
if (devCache.has(msg) === false || !!(options === null || options === void 0 ? void 0 : options.force)) {
|
|
@@ -9913,39 +9946,6 @@ const koliBriQuerySelectorColors = (selector, a11yColorContrast = getDefaultColo
|
|
|
9913
9946
|
return koliBriA11yColorContrast(selectedNode, a11yColorContrast);
|
|
9914
9947
|
}
|
|
9915
9948
|
};
|
|
9916
|
-
const scrollByHTMLElement = (element, parentElement = window) => {
|
|
9917
|
-
if (element instanceof HTMLElement) {
|
|
9918
|
-
parentElement.scrollTo({
|
|
9919
|
-
behavior: 'smooth',
|
|
9920
|
-
top: element.getBoundingClientRect().top + getWindow$1().pageYOffset - 50,
|
|
9921
|
-
});
|
|
9922
|
-
element.focus();
|
|
9923
|
-
}
|
|
9924
|
-
else {
|
|
9925
|
-
devHint(`Das HTMLElement ist nicht valide, zu dem gescrollt werden soll.`);
|
|
9926
|
-
}
|
|
9927
|
-
};
|
|
9928
|
-
const scrollBySelector = (selector, document) => {
|
|
9929
|
-
if ((selector instanceof Document || selector instanceof HTMLElement || selector instanceof ShadowRoot) &&
|
|
9930
|
-
typeof document === 'string') {
|
|
9931
|
-
devHint(`Bei der Methode querySelectorAll wurden die Parameter document, selector in selector, document getauscht, da der Parameter selector nicht, allerdings der Parameter document optional sein kann.`);
|
|
9932
|
-
const temp = `${document}`;
|
|
9933
|
-
document = selector;
|
|
9934
|
-
selector = temp;
|
|
9935
|
-
}
|
|
9936
|
-
if (typeof selector === 'string') {
|
|
9937
|
-
const element = koliBriQuerySelector(selector, document);
|
|
9938
|
-
if (element instanceof HTMLElement) {
|
|
9939
|
-
scrollByHTMLElement(element);
|
|
9940
|
-
}
|
|
9941
|
-
else {
|
|
9942
|
-
devHint(`Es konnte kein HTMLElement mit dem Selector (${selector}) gefunden werden, zu dem gescrollt werden soll.`);
|
|
9943
|
-
}
|
|
9944
|
-
}
|
|
9945
|
-
else {
|
|
9946
|
-
devHint(`Der Selector ist nicht valide, zu dem gescrollt werden soll.`);
|
|
9947
|
-
}
|
|
9948
|
-
};
|
|
9949
9949
|
class KoliBriUtils {
|
|
9950
9950
|
static queryHtmlElementColors(targetNode, a11yColorContrast, recursion = false, log = true) {
|
|
9951
9951
|
let returnValue = null;
|
|
@@ -10015,13 +10015,9 @@ KoliBriUtils.cache = new Map();
|
|
|
10015
10015
|
const ariaCurrentSubject = new Subject();
|
|
10016
10016
|
class KoliBriDevHelper {
|
|
10017
10017
|
}
|
|
10018
|
-
KoliBriDevHelper.ariaCurrentSubject = ariaCurrentSubject;
|
|
10019
10018
|
KoliBriDevHelper.patchTheme = patchTheme;
|
|
10020
|
-
KoliBriDevHelper.patchThemeTag = patchThemeTag;
|
|
10021
10019
|
KoliBriDevHelper.querySelector = koliBriQuerySelector;
|
|
10022
10020
|
KoliBriDevHelper.querySelectorAll = koliBriQuerySelectorAll;
|
|
10023
|
-
KoliBriDevHelper.scrollByHTMLElement = scrollByHTMLElement;
|
|
10024
|
-
KoliBriDevHelper.scrollBySelector = scrollBySelector;
|
|
10025
10021
|
KoliBriDevHelper.stringifyJson = stringifyJson;
|
|
10026
10022
|
|
|
10027
10023
|
const READABLE_CHARS = /[a-zA-Z0-9äöüÄÖÜß]/g;
|
|
@@ -10081,7 +10077,6 @@ class KolAbbr {
|
|
|
10081
10077
|
this.nonce = nonce();
|
|
10082
10078
|
this._label = undefined;
|
|
10083
10079
|
this._tooltipAlign = 'top';
|
|
10084
|
-
this._title = undefined;
|
|
10085
10080
|
this.state = {
|
|
10086
10081
|
_label: '…',
|
|
10087
10082
|
_tooltipAlign: 'top',
|
|
@@ -10093,19 +10088,15 @@ class KolAbbr {
|
|
|
10093
10088
|
validateLabel(value) {
|
|
10094
10089
|
validateLabel(this, value);
|
|
10095
10090
|
}
|
|
10096
|
-
validateTitle(value) {
|
|
10097
|
-
this.validateLabel(value);
|
|
10098
|
-
}
|
|
10099
10091
|
validateTooltipAlign(value) {
|
|
10100
10092
|
validateTooltipAlign(this, value);
|
|
10101
10093
|
}
|
|
10102
10094
|
componentWillLoad() {
|
|
10103
|
-
this.validateLabel(this._label
|
|
10095
|
+
this.validateLabel(this._label);
|
|
10104
10096
|
this.validateTooltipAlign(this._tooltipAlign);
|
|
10105
10097
|
}
|
|
10106
10098
|
static get watchers() { return {
|
|
10107
10099
|
"_label": ["validateLabel"],
|
|
10108
|
-
"_title": ["validateTitle"],
|
|
10109
10100
|
"_tooltipAlign": ["validateTooltipAlign"]
|
|
10110
10101
|
}; }
|
|
10111
10102
|
static get style() { return {
|
|
@@ -10117,7 +10108,6 @@ class KolAbbr {
|
|
|
10117
10108
|
"$members$": {
|
|
10118
10109
|
"_label": [1],
|
|
10119
10110
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
10120
|
-
"_title": [1],
|
|
10121
10111
|
"state": [32]
|
|
10122
10112
|
},
|
|
10123
10113
|
"$listeners$": undefined,
|
|
@@ -10160,7 +10150,6 @@ class KolAccordion {
|
|
|
10160
10150
|
}
|
|
10161
10151
|
});
|
|
10162
10152
|
};
|
|
10163
|
-
this._heading = undefined;
|
|
10164
10153
|
this._label = undefined;
|
|
10165
10154
|
this._level = 1;
|
|
10166
10155
|
this._on = undefined;
|
|
@@ -10174,10 +10163,7 @@ class KolAccordion {
|
|
|
10174
10163
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
10175
10164
|
accordion: true,
|
|
10176
10165
|
open: this.state._open === true,
|
|
10177
|
-
} }, hAsync("kol-heading-wc", { _label: "", _level: this.state._level }, hAsync("kol-button-wc", { _ariaControls: this.nonce, _ariaExpanded: this.state._open, _icons: this.state._open ? 'codicon codicon-remove' : 'codicon codicon-add', _label: this.state._label, _on: { onClick: this.onClick } })), hAsync("div", { class: "
|
|
10178
|
-
}
|
|
10179
|
-
validateHeading(value) {
|
|
10180
|
-
this.validateLabel(value);
|
|
10166
|
+
} }, hAsync("kol-heading-wc", { _label: "", _level: this.state._level }, hAsync("kol-button-wc", { _ariaControls: this.nonce, _ariaExpanded: this.state._open, _icons: this.state._open ? 'codicon codicon-remove' : 'codicon codicon-add', _label: this.state._label, _on: { onClick: this.onClick } })), hAsync("div", { class: "wrapper" }, hAsync("div", { class: "animation-wrapper" }, hAsync("div", { "aria-hidden": this.state._open === false ? 'true' : undefined, class: "content", id: this.nonce }, hAsync("slot", null)))))));
|
|
10181
10167
|
}
|
|
10182
10168
|
validateLabel(value) {
|
|
10183
10169
|
validateLabel(this, value);
|
|
@@ -10194,13 +10180,12 @@ class KolAccordion {
|
|
|
10194
10180
|
validateOpen(this, value);
|
|
10195
10181
|
}
|
|
10196
10182
|
componentWillLoad() {
|
|
10197
|
-
this.validateLabel(this._label
|
|
10183
|
+
this.validateLabel(this._label);
|
|
10198
10184
|
this.validateLevel(this._level);
|
|
10199
10185
|
this.validateOn(this._on);
|
|
10200
10186
|
this.validateOpen(this._open);
|
|
10201
10187
|
}
|
|
10202
10188
|
static get watchers() { return {
|
|
10203
|
-
"_heading": ["validateHeading"],
|
|
10204
10189
|
"_label": ["validateLabel"],
|
|
10205
10190
|
"_level": ["validateLevel"],
|
|
10206
10191
|
"_on": ["validateOn"],
|
|
@@ -10213,7 +10198,6 @@ class KolAccordion {
|
|
|
10213
10198
|
"$flags$": 41,
|
|
10214
10199
|
"$tagName$": "kol-accordion",
|
|
10215
10200
|
"$members$": {
|
|
10216
|
-
"_heading": [1],
|
|
10217
10201
|
"_label": [1],
|
|
10218
10202
|
"_level": [2],
|
|
10219
10203
|
"_on": [16],
|
|
@@ -10233,7 +10217,6 @@ class KolAlert {
|
|
|
10233
10217
|
registerInstance(this, hostRef);
|
|
10234
10218
|
this._alert = false;
|
|
10235
10219
|
this._hasCloser = false;
|
|
10236
|
-
this._heading = undefined;
|
|
10237
10220
|
this._label = undefined;
|
|
10238
10221
|
this._level = 1;
|
|
10239
10222
|
this._on = undefined;
|
|
@@ -10244,7 +10227,7 @@ class KolAlert {
|
|
|
10244
10227
|
};
|
|
10245
10228
|
}
|
|
10246
10229
|
render() {
|
|
10247
|
-
return (hAsync(Host, null, hAsync("kol-alert-wc", { _alert: this._alert, _hasCloser: this._hasCloser, _label: this._label
|
|
10230
|
+
return (hAsync(Host, null, hAsync("kol-alert-wc", { _alert: this._alert, _hasCloser: this._hasCloser, _label: this._label, _level: this._level, _on: this._on, _type: this._type, _variant: this._variant }, hAsync("slot", null))));
|
|
10248
10231
|
}
|
|
10249
10232
|
static get style() { return {
|
|
10250
10233
|
default: defaultStyleCss$H
|
|
@@ -10255,7 +10238,6 @@ class KolAlert {
|
|
|
10255
10238
|
"$members$": {
|
|
10256
10239
|
"_alert": [4],
|
|
10257
10240
|
"_hasCloser": [4, "_has-closer"],
|
|
10258
|
-
"_heading": [1],
|
|
10259
10241
|
"_label": [1],
|
|
10260
10242
|
"_level": [2],
|
|
10261
10243
|
"_on": [16],
|
|
@@ -10293,8 +10275,6 @@ var locale_de = {
|
|
|
10293
10275
|
'page-current': 'Seite {{page}}',
|
|
10294
10276
|
'page-selected': 'Seite {{page}} ist ausgewählt',
|
|
10295
10277
|
'page-per-site': '{{entries}} Einträge pro Seite',
|
|
10296
|
-
'nav-maximize': 'Navigation maximieren',
|
|
10297
|
-
'nav-minimize': 'Navigation minimieren',
|
|
10298
10278
|
'logo-description': 'Logo {{orgShort}}. Bundesadler mit Flaggenstab und Schriftzug {{orgLong}}',
|
|
10299
10279
|
'open-link-in-tab': 'Der Link wird in einem neuen Tab geöffnet.',
|
|
10300
10280
|
'kolibri-logo': 'Logo von KoliBri',
|
|
@@ -10330,8 +10310,6 @@ var locale_en = {
|
|
|
10330
10310
|
'page-current': 'Page {{page}}',
|
|
10331
10311
|
'page-selected': 'Page {{page}} is selected',
|
|
10332
10312
|
'page-per-site': '{{entries}} entries per page',
|
|
10333
|
-
'nav-maximize': 'Maximize',
|
|
10334
|
-
'nav-minimize': 'Minimize',
|
|
10335
10313
|
'logo-description': 'Logo {{orgShort}}. Federal eagle with flag staff and lettering {{orgLong}}',
|
|
10336
10314
|
'open-link-in-tab': 'The link will open in a new tab.',
|
|
10337
10315
|
'kolibri-logo': 'KoliBri logo',
|
|
@@ -10371,7 +10349,7 @@ const validateHasCloser = (component, value) => {
|
|
|
10371
10349
|
};
|
|
10372
10350
|
|
|
10373
10351
|
const Icon = (props) => {
|
|
10374
|
-
return hAsync("kol-icon", { class: "heading-icon",
|
|
10352
|
+
return hAsync("kol-icon", { class: "heading-icon", _label: typeof props.label === 'string' && props.label.length > 0 ? '' : props.ariaLabel, _icons: props.icon });
|
|
10375
10353
|
};
|
|
10376
10354
|
const AlertIcon = (props) => {
|
|
10377
10355
|
switch (props.type) {
|
|
@@ -11018,8 +10996,6 @@ function isColorObjectString(value) {
|
|
|
11018
10996
|
const parsed = JSON.parse(value);
|
|
11019
10997
|
if (isValidColorPair(parsed))
|
|
11020
10998
|
return { type: 'ColorPair', value: parsed };
|
|
11021
|
-
if (isValidDeprecatedColorPair(parsed))
|
|
11022
|
-
return { type: 'DeprecatedColorPair', value: parsed };
|
|
11023
10999
|
}
|
|
11024
11000
|
catch (error) {
|
|
11025
11001
|
return { type: null, value: null };
|
|
@@ -11042,9 +11018,6 @@ function typeOfColor(value) {
|
|
|
11042
11018
|
const asColorPair = value;
|
|
11043
11019
|
if (isValidColorPair(asColorPair))
|
|
11044
11020
|
return { type: 'ColorPair', valid: true, value: asColorPair };
|
|
11045
|
-
const asDeprecatedColorPair = value;
|
|
11046
|
-
if (isValidDeprecatedColorPair(asDeprecatedColorPair))
|
|
11047
|
-
return { type: 'DeprecatedColorPair', valid: true, value: asDeprecatedColorPair };
|
|
11048
11021
|
}
|
|
11049
11022
|
}
|
|
11050
11023
|
return { type: null, valid: false, value: '' };
|
|
@@ -11059,9 +11032,6 @@ function isValidColorPair(value) {
|
|
|
11059
11032
|
typeof value.foregroundColor.secondary === 'string' &&
|
|
11060
11033
|
typeof value.foregroundColor.neutral === 'string')));
|
|
11061
11034
|
}
|
|
11062
|
-
function isValidDeprecatedColorPair(value) {
|
|
11063
|
-
return typeof value === 'object' && value && typeof value.backgroundColor === 'string' && typeof value.color === 'string';
|
|
11064
|
-
}
|
|
11065
11035
|
function validatorFunction(value) {
|
|
11066
11036
|
const valueType = typeOfColor(value);
|
|
11067
11037
|
switch (valueType.type) {
|
|
@@ -11069,7 +11039,6 @@ function validatorFunction(value) {
|
|
|
11069
11039
|
return false;
|
|
11070
11040
|
case 'string':
|
|
11071
11041
|
case 'ColorPair':
|
|
11072
|
-
case 'DeprecatedColorPair':
|
|
11073
11042
|
return valueType.valid;
|
|
11074
11043
|
}
|
|
11075
11044
|
}
|
|
@@ -11084,19 +11053,13 @@ const handleColorChange = (value) => {
|
|
|
11084
11053
|
case 'string':
|
|
11085
11054
|
colorContrast = createContrastColorPair(valueType.value);
|
|
11086
11055
|
break;
|
|
11087
|
-
case 'ColorPair':
|
|
11088
|
-
case 'DeprecatedColorPair': {
|
|
11056
|
+
case 'ColorPair': {
|
|
11089
11057
|
const asColorPair = valueType.value;
|
|
11090
|
-
const asDeprecatedColorPair = valueType.value;
|
|
11091
11058
|
let foreground = '';
|
|
11092
|
-
if (
|
|
11093
|
-
foreground =
|
|
11094
|
-
else
|
|
11095
|
-
|
|
11096
|
-
foreground = asColorPair.foregroundColor;
|
|
11097
|
-
else if ((_a = asColorPair.foregroundColor) === null || _a === void 0 ? void 0 : _a.primary)
|
|
11098
|
-
foreground = asColorPair.foregroundColor.primary;
|
|
11099
|
-
}
|
|
11059
|
+
if (typeof asColorPair.foregroundColor === 'string')
|
|
11060
|
+
foreground = asColorPair.foregroundColor;
|
|
11061
|
+
else if ((_a = asColorPair.foregroundColor) === null || _a === void 0 ? void 0 : _a.primary)
|
|
11062
|
+
foreground = asColorPair.foregroundColor.primary;
|
|
11100
11063
|
if (!foreground || typeof foreground !== 'string')
|
|
11101
11064
|
foreground = '#fff';
|
|
11102
11065
|
colorContrast = createContrastColorPair({
|
|
@@ -11136,10 +11099,7 @@ class KolBadge {
|
|
|
11136
11099
|
this.colorStr = colorPair.foregroundColor;
|
|
11137
11100
|
};
|
|
11138
11101
|
this._color = '#000';
|
|
11139
|
-
this._hideLabel = false;
|
|
11140
|
-
this._icon = undefined;
|
|
11141
11102
|
this._icons = undefined;
|
|
11142
|
-
this._iconOnly = undefined;
|
|
11143
11103
|
this._label = undefined;
|
|
11144
11104
|
this._smartButton = undefined;
|
|
11145
11105
|
this.state = {
|
|
@@ -11150,7 +11110,7 @@ class KolBadge {
|
|
|
11150
11110
|
};
|
|
11151
11111
|
}
|
|
11152
11112
|
renderSmartButton(props) {
|
|
11153
|
-
return (hAsync("kol-button-wc", { _ariaControls: this.id, _customClass: props._customClass, _disabled: props._disabled, _hideLabel: true, _icons: props._icons
|
|
11113
|
+
return (hAsync("kol-button-wc", { _ariaControls: this.id, _customClass: props._customClass, _disabled: props._disabled, _hideLabel: true, _icons: props._icons, _id: props._id, _label: props._label, _on: props._on, _tooltipAlign: props._tooltipAlign, _variant: props._variant }));
|
|
11154
11114
|
}
|
|
11155
11115
|
render() {
|
|
11156
11116
|
const hasSmartButton = typeof this.state._smartButton === 'object' && this.state._smartButton !== null;
|
|
@@ -11159,7 +11119,7 @@ class KolBadge {
|
|
|
11159
11119
|
}, style: {
|
|
11160
11120
|
backgroundColor: this.bgColorStr,
|
|
11161
11121
|
color: this.colorStr,
|
|
11162
|
-
} }, hAsync("kol-span-wc", { id: hasSmartButton ? this.id : undefined, _allowMarkdown: true,
|
|
11122
|
+
} }, hAsync("kol-span-wc", { id: hasSmartButton ? this.id : undefined, _allowMarkdown: true, _icons: this._icons, _label: this._label }), hasSmartButton && this.renderSmartButton(this.state._smartButton))));
|
|
11163
11123
|
}
|
|
11164
11124
|
validateColor(value) {
|
|
11165
11125
|
validateColor(this, value, {
|
|
@@ -11195,10 +11155,7 @@ class KolBadge {
|
|
|
11195
11155
|
"$tagName$": "kol-badge",
|
|
11196
11156
|
"$members$": {
|
|
11197
11157
|
"_color": [1],
|
|
11198
|
-
"_hideLabel": [4, "_hide-label"],
|
|
11199
|
-
"_icon": [1],
|
|
11200
11158
|
"_icons": [1],
|
|
11201
|
-
"_iconOnly": [4, "_icon-only"],
|
|
11202
11159
|
"_label": [1],
|
|
11203
11160
|
"_smartButton": [1, "_smart-button"],
|
|
11204
11161
|
"state": [32]
|
|
@@ -11234,10 +11191,8 @@ class KolBreadcrumb {
|
|
|
11234
11191
|
registerInstance(this, hostRef);
|
|
11235
11192
|
this.renderLink = (link, index) => {
|
|
11236
11193
|
const lastIndex = this.state._links.length - 1;
|
|
11237
|
-
|
|
11238
|
-
return (hAsync("li", { key: index }, index !== 0 && hAsync("kol-icon", { _label: "", _icons: "codicon codicon-chevron-right" }), index === lastIndex ? (hAsync("span", null, hideLabel ? (hAsync("kol-icon", { _label: link._label, _icons: typeof link._icon === 'string' ? link._icon : 'codicon codicon-symbol-event' })) : (hAsync(Fragment, null, link._label)))) : (hAsync("kol-link", Object.assign({}, link)))));
|
|
11194
|
+
return (hAsync("li", { key: index }, index !== 0 && hAsync("kol-icon", { _label: "", _icons: "codicon codicon-chevron-right" }), index === lastIndex ? (hAsync("span", null, link._hideLabel ? (hAsync("kol-icon", { _label: link._label, _icons: typeof link._icons === 'string' ? link._icons : 'codicon codicon-symbol-event' })) : (hAsync(Fragment, null, link._label)))) : (hAsync("kol-link", Object.assign({}, link)))));
|
|
11239
11195
|
};
|
|
11240
|
-
this._ariaLabel = undefined;
|
|
11241
11196
|
this._label = undefined;
|
|
11242
11197
|
this._links = undefined;
|
|
11243
11198
|
this.state = {
|
|
@@ -11248,9 +11203,6 @@ class KolBreadcrumb {
|
|
|
11248
11203
|
render() {
|
|
11249
11204
|
return (hAsync(Host, null, hAsync("nav", { "aria-label": this.state._label }, hAsync("ul", null, this.state._links.length === 0 && (hAsync("li", null, hAsync("kol-icon", { _label: "", _icons: "codicon codicon-home" }), "\u2026")), this.state._links.map(this.renderLink)))));
|
|
11250
11205
|
}
|
|
11251
|
-
validateAriaLabel(value) {
|
|
11252
|
-
this.validateLabel(value);
|
|
11253
|
-
}
|
|
11254
11206
|
validateLabel(value, _oldValue, initial = false) {
|
|
11255
11207
|
if (!initial) {
|
|
11256
11208
|
removeNavLabel(this.state._label);
|
|
@@ -11263,14 +11215,13 @@ class KolBreadcrumb {
|
|
|
11263
11215
|
watchNavLinks('KolBreadcrumb', this, value);
|
|
11264
11216
|
}
|
|
11265
11217
|
componentWillLoad() {
|
|
11266
|
-
this.validateLabel(this._label
|
|
11218
|
+
this.validateLabel(this._label, undefined, true);
|
|
11267
11219
|
this.validateLinks(this._links);
|
|
11268
11220
|
}
|
|
11269
11221
|
disconnectedCallback() {
|
|
11270
11222
|
removeNavLabel(this.state._label);
|
|
11271
11223
|
}
|
|
11272
11224
|
static get watchers() { return {
|
|
11273
|
-
"_ariaLabel": ["validateAriaLabel"],
|
|
11274
11225
|
"_label": ["validateLabel"],
|
|
11275
11226
|
"_links": ["validateLinks"]
|
|
11276
11227
|
}; }
|
|
@@ -11281,7 +11232,6 @@ class KolBreadcrumb {
|
|
|
11281
11232
|
"$flags$": 41,
|
|
11282
11233
|
"$tagName$": "kol-breadcrumb",
|
|
11283
11234
|
"$members$": {
|
|
11284
|
-
"_ariaLabel": [1, "_aria-label"],
|
|
11285
11235
|
"_label": [1],
|
|
11286
11236
|
"_links": [1],
|
|
11287
11237
|
"state": [32]
|
|
@@ -11301,19 +11251,13 @@ class KolButton {
|
|
|
11301
11251
|
this.ref = ref;
|
|
11302
11252
|
propagateFocus(this.host, this.ref);
|
|
11303
11253
|
};
|
|
11304
|
-
this._accessKey = undefined;
|
|
11305
11254
|
this._ariaControls = undefined;
|
|
11306
|
-
this._ariaCurrent = undefined;
|
|
11307
11255
|
this._ariaExpanded = undefined;
|
|
11308
|
-
this._ariaLabel = undefined;
|
|
11309
11256
|
this._ariaSelected = undefined;
|
|
11310
11257
|
this._customClass = undefined;
|
|
11311
11258
|
this._disabled = false;
|
|
11312
11259
|
this._hideLabel = false;
|
|
11313
|
-
this._icon = undefined;
|
|
11314
11260
|
this._icons = undefined;
|
|
11315
|
-
this._iconAlign = undefined;
|
|
11316
|
-
this._iconOnly = undefined;
|
|
11317
11261
|
this._id = undefined;
|
|
11318
11262
|
this._label = undefined;
|
|
11319
11263
|
this._name = undefined;
|
|
@@ -11331,7 +11275,7 @@ class KolButton {
|
|
|
11331
11275
|
button: true,
|
|
11332
11276
|
[this._variant]: this._variant !== 'custom',
|
|
11333
11277
|
[this._customClass]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,
|
|
11334
|
-
},
|
|
11278
|
+
}, _ariaControls: this._ariaControls, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _hideLabel: this._hideLabel, _icons: this._icons, _id: this._id, _label: this._label, _name: this._name, _on: this._on, _role: this._role, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _variant: this._variant }, hAsync("slot", { name: "expert", slot: "expert" }))));
|
|
11335
11279
|
}
|
|
11336
11280
|
get host() { return getElement(this); }
|
|
11337
11281
|
static get style() { return {
|
|
@@ -11341,19 +11285,13 @@ class KolButton {
|
|
|
11341
11285
|
"$flags$": 41,
|
|
11342
11286
|
"$tagName$": "kol-button",
|
|
11343
11287
|
"$members$": {
|
|
11344
|
-
"_accessKey": [1, "_access-key"],
|
|
11345
11288
|
"_ariaControls": [1, "_aria-controls"],
|
|
11346
|
-
"_ariaCurrent": [8, "_aria-current"],
|
|
11347
11289
|
"_ariaExpanded": [4, "_aria-expanded"],
|
|
11348
|
-
"_ariaLabel": [1, "_aria-label"],
|
|
11349
11290
|
"_ariaSelected": [4, "_aria-selected"],
|
|
11350
11291
|
"_customClass": [1, "_custom-class"],
|
|
11351
11292
|
"_disabled": [4],
|
|
11352
11293
|
"_hideLabel": [4, "_hide-label"],
|
|
11353
|
-
"_icon": [1],
|
|
11354
11294
|
"_icons": [1],
|
|
11355
|
-
"_iconAlign": [1, "_icon-align"],
|
|
11356
|
-
"_iconOnly": [4, "_icon-only"],
|
|
11357
11295
|
"_id": [1],
|
|
11358
11296
|
"_label": [1],
|
|
11359
11297
|
"_name": [1],
|
|
@@ -11423,17 +11361,12 @@ class KolButtonLink {
|
|
|
11423
11361
|
this.ref = ref;
|
|
11424
11362
|
propagateFocus(this.host, this.ref);
|
|
11425
11363
|
};
|
|
11426
|
-
this._accessKey = undefined;
|
|
11427
11364
|
this._ariaControls = undefined;
|
|
11428
|
-
this._ariaCurrent = undefined;
|
|
11429
11365
|
this._ariaExpanded = undefined;
|
|
11430
|
-
this._ariaLabel = undefined;
|
|
11431
11366
|
this._ariaSelected = undefined;
|
|
11432
11367
|
this._disabled = false;
|
|
11433
11368
|
this._hideLabel = false;
|
|
11434
|
-
this._icon = undefined;
|
|
11435
11369
|
this._icons = undefined;
|
|
11436
|
-
this._iconOnly = undefined;
|
|
11437
11370
|
this._id = undefined;
|
|
11438
11371
|
this._label = undefined;
|
|
11439
11372
|
this._name = undefined;
|
|
@@ -11446,7 +11379,7 @@ class KolButtonLink {
|
|
|
11446
11379
|
this._value = undefined;
|
|
11447
11380
|
}
|
|
11448
11381
|
render() {
|
|
11449
|
-
return (hAsync(Host, null, hAsync("kol-button-wc", { ref: this.catchRef,
|
|
11382
|
+
return (hAsync(Host, null, hAsync("kol-button-wc", { ref: this.catchRef, _ariaControls: this._ariaControls, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _disabled: this._disabled, _icons: this._icons, _hideLabel: this._hideLabel, _id: this._id, _label: this._label, _name: this._name, _on: this._on, _role: "link", _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value }, hAsync("slot", { name: "expert", slot: "expert" }))));
|
|
11450
11383
|
}
|
|
11451
11384
|
get host() { return getElement(this); }
|
|
11452
11385
|
static get style() { return {
|
|
@@ -11456,17 +11389,12 @@ class KolButtonLink {
|
|
|
11456
11389
|
"$flags$": 41,
|
|
11457
11390
|
"$tagName$": "kol-button-link",
|
|
11458
11391
|
"$members$": {
|
|
11459
|
-
"_accessKey": [1, "_access-key"],
|
|
11460
11392
|
"_ariaControls": [1, "_aria-controls"],
|
|
11461
|
-
"_ariaCurrent": [8, "_aria-current"],
|
|
11462
11393
|
"_ariaExpanded": [4, "_aria-expanded"],
|
|
11463
|
-
"_ariaLabel": [1025, "_aria-label"],
|
|
11464
11394
|
"_ariaSelected": [4, "_aria-selected"],
|
|
11465
11395
|
"_disabled": [4],
|
|
11466
11396
|
"_hideLabel": [4, "_hide-label"],
|
|
11467
|
-
"_icon": [1],
|
|
11468
11397
|
"_icons": [1],
|
|
11469
|
-
"_iconOnly": [4, "_icon-only"],
|
|
11470
11398
|
"_id": [1],
|
|
11471
11399
|
"_label": [1],
|
|
11472
11400
|
"_name": [1],
|
|
@@ -11529,16 +11457,6 @@ const validateAriaControls = (component, value) => {
|
|
|
11529
11457
|
watchString(component, '_ariaControls', value);
|
|
11530
11458
|
};
|
|
11531
11459
|
|
|
11532
|
-
const validate = (component, propName, value) => {
|
|
11533
|
-
watchValidator(component, propName, (value) => value === 'date' || value === 'location' || value === 'page' || value === 'step' || value === 'time' || value === true || value === false, new Set(['String {data, location, page, step, time}', 'boolean']), value);
|
|
11534
|
-
};
|
|
11535
|
-
const validateAriaCurrent = (component, value) => {
|
|
11536
|
-
validate(component, '_ariaCurrent', value);
|
|
11537
|
-
};
|
|
11538
|
-
const validateListenAriaCurrent = (component, value) => {
|
|
11539
|
-
validate(component, '_listenAriaCurrent', value);
|
|
11540
|
-
};
|
|
11541
|
-
|
|
11542
11460
|
const validateAriaExpanded = (component, value) => {
|
|
11543
11461
|
watchBoolean(component, '_ariaExpanded', value);
|
|
11544
11462
|
};
|
|
@@ -11581,24 +11499,14 @@ const mapCustomIcon = (state, alignment, icon) => {
|
|
|
11581
11499
|
};
|
|
11582
11500
|
}
|
|
11583
11501
|
};
|
|
11584
|
-
const mapIconProp2State = (icon
|
|
11502
|
+
const mapIconProp2State = (icon) => {
|
|
11585
11503
|
let state = {};
|
|
11586
11504
|
if (isString$1(icon, 1)) {
|
|
11587
|
-
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
|
|
11591
|
-
|
|
11592
|
-
},
|
|
11593
|
-
};
|
|
11594
|
-
break;
|
|
11595
|
-
default:
|
|
11596
|
-
state = {
|
|
11597
|
-
left: {
|
|
11598
|
-
icon: icon,
|
|
11599
|
-
},
|
|
11600
|
-
};
|
|
11601
|
-
}
|
|
11505
|
+
state = {
|
|
11506
|
+
left: {
|
|
11507
|
+
icon: icon,
|
|
11508
|
+
},
|
|
11509
|
+
};
|
|
11602
11510
|
}
|
|
11603
11511
|
else if (typeof icon === 'object' && icon !== null) {
|
|
11604
11512
|
mapCustomIcon(state, 'top', icon.top);
|
|
@@ -11609,18 +11517,10 @@ const mapIconProp2State = (icon, iconAlign) => {
|
|
|
11609
11517
|
return state;
|
|
11610
11518
|
};
|
|
11611
11519
|
const beforePatchIcon = (component) => {
|
|
11612
|
-
var _a, _b, _c
|
|
11520
|
+
var _a, _b, _c;
|
|
11613
11521
|
if ((_a = component.nextState) === null || _a === void 0 ? void 0 : _a.has('_icons')) {
|
|
11614
|
-
const
|
|
11615
|
-
|
|
11616
|
-
(_d = component.nextState) === null || _d === void 0 ? void 0 : _d.set('_icons', mapIconProp2State(icon, iconAlign));
|
|
11617
|
-
}
|
|
11618
|
-
else if ((_e = component.nextState) === null || _e === void 0 ? void 0 : _e.has('_iconAlign')) {
|
|
11619
|
-
const lastIconAlign = component.state._iconAlign;
|
|
11620
|
-
(_f = component.nextState) === null || _f === void 0 ? void 0 : _f.set('_icons', {
|
|
11621
|
-
[lastIconAlign]: undefined,
|
|
11622
|
-
[(_g = component.nextState) === null || _g === void 0 ? void 0 : _g.get('_iconAlign')]: component.state._icons[lastIconAlign],
|
|
11623
|
-
});
|
|
11522
|
+
const icons = (_b = component.nextState) === null || _b === void 0 ? void 0 : _b.get('_icons');
|
|
11523
|
+
(_c = component.nextState) === null || _c === void 0 ? void 0 : _c.set('_icons', mapIconProp2State(icons));
|
|
11624
11524
|
}
|
|
11625
11525
|
};
|
|
11626
11526
|
const isIcon = (value) => typeof value === 'object' &&
|
|
@@ -11660,15 +11560,6 @@ const validateIcons = (component, value) => {
|
|
|
11660
11560
|
});
|
|
11661
11561
|
});
|
|
11662
11562
|
};
|
|
11663
|
-
const watchIconAlign = (component, value) => {
|
|
11664
|
-
watchValidator(component, '_iconAlign', (value) => value === 'left' || value === 'right', new Set(['Alignment {left, right, top, bottom}']), value, {
|
|
11665
|
-
hooks: {
|
|
11666
|
-
beforePatch: () => {
|
|
11667
|
-
beforePatchIcon(component);
|
|
11668
|
-
},
|
|
11669
|
-
},
|
|
11670
|
-
});
|
|
11671
|
-
};
|
|
11672
11563
|
|
|
11673
11564
|
function stopPropagation(event) {
|
|
11674
11565
|
event.stopImmediatePropagation();
|
|
@@ -11911,10 +11802,14 @@ class AssociatedInputController {
|
|
|
11911
11802
|
}
|
|
11912
11803
|
}
|
|
11913
11804
|
|
|
11805
|
+
const validateAriaSelected = (component, value) => {
|
|
11806
|
+
watchBoolean(component, '_ariaSelected', value);
|
|
11807
|
+
};
|
|
11808
|
+
|
|
11914
11809
|
class KolButtonWc {
|
|
11915
11810
|
render() {
|
|
11916
11811
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
11917
|
-
return (hAsync(Host, null, hAsync("button", Object.assign({ ref: this.catchRef,
|
|
11812
|
+
return (hAsync(Host, null, hAsync("button", Object.assign({ ref: this.catchRef, "aria-controls": this.state._ariaControls, "aria-expanded": mapBoolean2String(this.state._ariaExpanded), "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, "aria-selected": mapStringOrBoolean2String(this.state._ariaSelected), class: {
|
|
11918
11813
|
[this.state._variant]: this.state._variant !== 'custom',
|
|
11919
11814
|
[this.state._customClass]: this.state._variant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,
|
|
11920
11815
|
'icon-only': this.state._hideLabel === true,
|
|
@@ -11951,19 +11846,13 @@ class KolButtonWc {
|
|
|
11951
11846
|
}
|
|
11952
11847
|
}
|
|
11953
11848
|
};
|
|
11954
|
-
this._accessKey = undefined;
|
|
11955
11849
|
this._ariaControls = undefined;
|
|
11956
|
-
this._ariaCurrent = undefined;
|
|
11957
11850
|
this._ariaExpanded = undefined;
|
|
11958
|
-
this._ariaLabel = undefined;
|
|
11959
11851
|
this._ariaSelected = undefined;
|
|
11960
11852
|
this._customClass = undefined;
|
|
11961
11853
|
this._disabled = false;
|
|
11962
11854
|
this._hideLabel = false;
|
|
11963
|
-
this._icon = undefined;
|
|
11964
11855
|
this._icons = undefined;
|
|
11965
|
-
this._iconAlign = undefined;
|
|
11966
|
-
this._iconOnly = undefined;
|
|
11967
11856
|
this._id = undefined;
|
|
11968
11857
|
this._label = undefined;
|
|
11969
11858
|
this._name = undefined;
|
|
@@ -11984,23 +11873,14 @@ class KolButtonWc {
|
|
|
11984
11873
|
};
|
|
11985
11874
|
this.controller = new AssociatedInputController(this, 'button', this.host);
|
|
11986
11875
|
}
|
|
11987
|
-
validateAccessKey(value) {
|
|
11988
|
-
watchString(this, '_accessKey', value);
|
|
11989
|
-
}
|
|
11990
11876
|
validateAriaControls(value) {
|
|
11991
11877
|
validateAriaControls(this, value);
|
|
11992
11878
|
}
|
|
11993
|
-
validateAriaCurrent(value) {
|
|
11994
|
-
validateAriaCurrent(this, value);
|
|
11995
|
-
}
|
|
11996
11879
|
validateAriaExpanded(value) {
|
|
11997
11880
|
validateAriaExpanded(this, value);
|
|
11998
11881
|
}
|
|
11999
|
-
validateAriaLabel(value) {
|
|
12000
|
-
this.validateLabel(value);
|
|
12001
|
-
}
|
|
12002
11882
|
validateAriaSelected(value) {
|
|
12003
|
-
|
|
11883
|
+
validateAriaSelected(this, value);
|
|
12004
11884
|
}
|
|
12005
11885
|
validateCustomClass(value) {
|
|
12006
11886
|
validateCustomClass(this, value);
|
|
@@ -12014,18 +11894,9 @@ class KolButtonWc {
|
|
|
12014
11894
|
validateHideLabel(value) {
|
|
12015
11895
|
validateHideLabel(this, value);
|
|
12016
11896
|
}
|
|
12017
|
-
validateIcon(value) {
|
|
12018
|
-
validateIcons(this, value);
|
|
12019
|
-
}
|
|
12020
11897
|
validateIcons(value) {
|
|
12021
11898
|
validateIcons(this, value);
|
|
12022
11899
|
}
|
|
12023
|
-
validateIconAlign(value) {
|
|
12024
|
-
watchIconAlign(this, value);
|
|
12025
|
-
}
|
|
12026
|
-
validateIconOnly(value) {
|
|
12027
|
-
this.validateHideLabel(value);
|
|
12028
|
-
}
|
|
12029
11900
|
validateId(value) {
|
|
12030
11901
|
watchString(this, '_id', value);
|
|
12031
11902
|
}
|
|
@@ -12061,19 +11932,15 @@ class KolButtonWc {
|
|
|
12061
11932
|
validateButtonVariant(this, value);
|
|
12062
11933
|
}
|
|
12063
11934
|
componentWillLoad() {
|
|
12064
|
-
var _a;
|
|
12065
|
-
this.validateAccessKey(this._accessKey);
|
|
12066
11935
|
this.validateAriaControls(this._ariaControls);
|
|
12067
|
-
this.validateAriaCurrent(this._ariaCurrent);
|
|
12068
11936
|
this.validateAriaExpanded(this._ariaExpanded);
|
|
12069
11937
|
this.validateAriaSelected(this._ariaSelected);
|
|
12070
11938
|
this.validateCustomClass(this._customClass);
|
|
12071
11939
|
this.validateDisabled(this._disabled);
|
|
12072
|
-
this.validateHideLabel(this._hideLabel
|
|
12073
|
-
this.validateIcons(this._icons
|
|
12074
|
-
this.validateIconAlign(this._iconAlign);
|
|
11940
|
+
this.validateHideLabel(this._hideLabel);
|
|
11941
|
+
this.validateIcons(this._icons);
|
|
12075
11942
|
this.validateId(this._id);
|
|
12076
|
-
this.validateLabel(
|
|
11943
|
+
this.validateLabel(this._label);
|
|
12077
11944
|
this.validateName(this._name);
|
|
12078
11945
|
this.validateOn(this._on);
|
|
12079
11946
|
this.validateRole(this._role);
|
|
@@ -12086,19 +11953,13 @@ class KolButtonWc {
|
|
|
12086
11953
|
}
|
|
12087
11954
|
get host() { return getElement(this); }
|
|
12088
11955
|
static get watchers() { return {
|
|
12089
|
-
"_accessKey": ["validateAccessKey"],
|
|
12090
11956
|
"_ariaControls": ["validateAriaControls"],
|
|
12091
|
-
"_ariaCurrent": ["validateAriaCurrent"],
|
|
12092
11957
|
"_ariaExpanded": ["validateAriaExpanded"],
|
|
12093
|
-
"_ariaLabel": ["validateAriaLabel"],
|
|
12094
11958
|
"_ariaSelected": ["validateAriaSelected"],
|
|
12095
11959
|
"_customClass": ["validateCustomClass"],
|
|
12096
11960
|
"_disabled": ["validateDisabled"],
|
|
12097
11961
|
"_hideLabel": ["validateHideLabel"],
|
|
12098
|
-
"_icon": ["validateIcon"],
|
|
12099
11962
|
"_icons": ["validateIcons"],
|
|
12100
|
-
"_iconAlign": ["validateIconAlign"],
|
|
12101
|
-
"_iconOnly": ["validateIconOnly"],
|
|
12102
11963
|
"_id": ["validateId"],
|
|
12103
11964
|
"_label": ["validateLabel"],
|
|
12104
11965
|
"_name": ["validateName"],
|
|
@@ -12115,19 +11976,13 @@ class KolButtonWc {
|
|
|
12115
11976
|
"$flags$": 4,
|
|
12116
11977
|
"$tagName$": "kol-button-wc",
|
|
12117
11978
|
"$members$": {
|
|
12118
|
-
"_accessKey": [1, "_access-key"],
|
|
12119
11979
|
"_ariaControls": [1, "_aria-controls"],
|
|
12120
|
-
"_ariaCurrent": [8, "_aria-current"],
|
|
12121
11980
|
"_ariaExpanded": [4, "_aria-expanded"],
|
|
12122
|
-
"_ariaLabel": [1, "_aria-label"],
|
|
12123
11981
|
"_ariaSelected": [4, "_aria-selected"],
|
|
12124
11982
|
"_customClass": [1, "_custom-class"],
|
|
12125
11983
|
"_disabled": [4],
|
|
12126
11984
|
"_hideLabel": [4, "_hide-label"],
|
|
12127
|
-
"_icon": [1],
|
|
12128
11985
|
"_icons": [1],
|
|
12129
|
-
"_iconAlign": [1, "_icon-align"],
|
|
12130
|
-
"_iconOnly": [4, "_icon-only"],
|
|
12131
11986
|
"_id": [1],
|
|
12132
11987
|
"_label": [1],
|
|
12133
11988
|
"_name": [1],
|
|
@@ -12147,10 +12002,6 @@ class KolButtonWc {
|
|
|
12147
12002
|
}; }
|
|
12148
12003
|
}
|
|
12149
12004
|
|
|
12150
|
-
const validateHasFooter = (component, value) => {
|
|
12151
|
-
watchBoolean(component, '_hasFooter', value);
|
|
12152
|
-
};
|
|
12153
|
-
|
|
12154
12005
|
const defaultStyleCss$A = "/*!@:host*/.sc-kol-card-default-h{--a11y-min-size:44px;font-size:inherit}/*!@**/*.sc-kol-card-default{font-family:Verdana;hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}/*!@[role='button'],\nbutton:not([role='link']),\nkol-input .input*/[role='button'].sc-kol-card-default,button.sc-kol-card-default:not([role='link']),kol-input.sc-kol-card-default .input.sc-kol-card-default{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}/*!@a,\nbutton,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\ninput,\noption,\nselect,\ntextarea*/a.sc-kol-card-default,button.sc-kol-card-default,h1.sc-kol-card-default,h2.sc-kol-card-default,h3.sc-kol-card-default,h4.sc-kol-card-default,h5.sc-kol-card-default,h6.sc-kol-card-default,input.sc-kol-card-default,option.sc-kol-card-default,select.sc-kol-card-default,textarea.sc-kol-card-default{font-family:inherit;font-size:inherit}/*!@:is(a, button)*/.sc-kol-card-default:is(a,button).sc-kol-card-default{background-color:transparent;border:none;margin:0;padding:0;width:100%}/*!@:host*/.sc-kol-card-default-h{max-width:100%}/*!@**/*.sc-kol-card-default{box-sizing:border-box}/*!@kol-span-wc*/kol-span-wc.sc-kol-card-default{display:grid;place-items:center}/*!@kol-span-wc > span*/kol-span-wc.sc-kol-card-default>span.sc-kol-card-default{display:flex;place-items:center}/*!@a,\nbutton*/a.sc-kol-card-default,button.sc-kol-card-default{cursor:pointer}/*!@button,\ninput,\noption,\nselect,\ntextarea*/button.sc-kol-card-default,input.sc-kol-card-default,option.sc-kol-card-default,select.sc-kol-card-default,textarea.sc-kol-card-default{font-family:inherit}/*!@.icon-only > kol-span-wc > span > span*/.icon-only.sc-kol-card-default>kol-span-wc.sc-kol-card-default>span.sc-kol-card-default>span.sc-kol-card-default{display:none}/*!@:host > div.card*/.sc-kol-card-default-h>div.card.sc-kol-card-default{height:100%;position:relative}/*!@.close*/.close.sc-kol-card-default{position:absolute;top:0;right:0}";
|
|
12155
12006
|
|
|
12156
12007
|
class KolCard {
|
|
@@ -12168,9 +12019,6 @@ class KolCard {
|
|
|
12168
12019
|
this.validateOnValue = (value) => typeof value === 'object' && value !== null && typeof value.onClose === 'function';
|
|
12169
12020
|
this._on = undefined;
|
|
12170
12021
|
this._hasCloser = false;
|
|
12171
|
-
this._hasFooter = false;
|
|
12172
|
-
this._heading = undefined;
|
|
12173
|
-
this._headline = undefined;
|
|
12174
12022
|
this._label = undefined;
|
|
12175
12023
|
this._level = 1;
|
|
12176
12024
|
this.state = {
|
|
@@ -12178,7 +12026,7 @@ class KolCard {
|
|
|
12178
12026
|
};
|
|
12179
12027
|
}
|
|
12180
12028
|
render() {
|
|
12181
|
-
return (hAsync(Host, null, hAsync("div", { class: "card" }, hAsync("div", { class: "header" }, hAsync("kol-heading-wc", { _label: this.state._label, _level: this.state._level })
|
|
12029
|
+
return (hAsync(Host, null, hAsync("div", { class: "card" }, hAsync("div", { class: "header" }, hAsync("kol-heading-wc", { _label: this.state._label, _level: this.state._level })), hAsync("div", { class: "content" }, hAsync("slot", null)), this.state._hasCloser && (hAsync("kol-button-wc", { class: "close", _hideLabel: true, _icons: {
|
|
12182
12030
|
left: {
|
|
12183
12031
|
icon: 'codicon codicon-close',
|
|
12184
12032
|
},
|
|
@@ -12194,15 +12042,6 @@ class KolCard {
|
|
|
12194
12042
|
validateHasCloser(value) {
|
|
12195
12043
|
validateHasCloser(this, value);
|
|
12196
12044
|
}
|
|
12197
|
-
validateHasFooter(value) {
|
|
12198
|
-
validateHasFooter(this, value);
|
|
12199
|
-
}
|
|
12200
|
-
validateHeading(value) {
|
|
12201
|
-
this.validateLabel(value);
|
|
12202
|
-
}
|
|
12203
|
-
validateHeadline(value) {
|
|
12204
|
-
this.validateLabel(value);
|
|
12205
|
-
}
|
|
12206
12045
|
validateLabel(value) {
|
|
12207
12046
|
validateLabel(this, value);
|
|
12208
12047
|
}
|
|
@@ -12211,17 +12050,13 @@ class KolCard {
|
|
|
12211
12050
|
}
|
|
12212
12051
|
componentWillLoad() {
|
|
12213
12052
|
this.validateHasCloser(this._hasCloser);
|
|
12214
|
-
this.
|
|
12215
|
-
this.validateLabel(this._label || this._heading || this._headline);
|
|
12053
|
+
this.validateLabel(this._label);
|
|
12216
12054
|
this.validateLevel(this._level);
|
|
12217
12055
|
this.validateOn(this._on);
|
|
12218
12056
|
}
|
|
12219
12057
|
static get watchers() { return {
|
|
12220
12058
|
"_on": ["validateOn"],
|
|
12221
12059
|
"_hasCloser": ["validateHasCloser"],
|
|
12222
|
-
"_hasFooter": ["validateHasFooter"],
|
|
12223
|
-
"_heading": ["validateHeading"],
|
|
12224
|
-
"_headline": ["validateHeadline"],
|
|
12225
12060
|
"_label": ["validateLabel"],
|
|
12226
12061
|
"_level": ["validateLevel"]
|
|
12227
12062
|
}; }
|
|
@@ -12234,9 +12069,6 @@ class KolCard {
|
|
|
12234
12069
|
"$members$": {
|
|
12235
12070
|
"_on": [16],
|
|
12236
12071
|
"_hasCloser": [4, "_has-closer"],
|
|
12237
|
-
"_hasFooter": [4, "_has-footer"],
|
|
12238
|
-
"_heading": [1],
|
|
12239
|
-
"_headline": [1],
|
|
12240
12072
|
"_label": [1],
|
|
12241
12073
|
"_level": [2],
|
|
12242
12074
|
"state": [32]
|
|
@@ -12335,7 +12167,6 @@ class KolDetails {
|
|
|
12335
12167
|
this._label = undefined;
|
|
12336
12168
|
this._on = undefined;
|
|
12337
12169
|
this._open = false;
|
|
12338
|
-
this._summary = undefined;
|
|
12339
12170
|
this.state = {
|
|
12340
12171
|
_label: '…',
|
|
12341
12172
|
_on: {},
|
|
@@ -12357,11 +12188,8 @@ class KolDetails {
|
|
|
12357
12188
|
validateOpen(value) {
|
|
12358
12189
|
validateOpen(this, value);
|
|
12359
12190
|
}
|
|
12360
|
-
validateSummary(value) {
|
|
12361
|
-
this.validateLabel(value);
|
|
12362
|
-
}
|
|
12363
12191
|
componentWillLoad() {
|
|
12364
|
-
this.validateLabel(this._label
|
|
12192
|
+
this.validateLabel(this._label);
|
|
12365
12193
|
this.validateOn(this._on);
|
|
12366
12194
|
this.validateOpen(this._open);
|
|
12367
12195
|
}
|
|
@@ -12377,8 +12205,7 @@ class KolDetails {
|
|
|
12377
12205
|
static get watchers() { return {
|
|
12378
12206
|
"_label": ["validateLabel"],
|
|
12379
12207
|
"_on": ["validateOn"],
|
|
12380
|
-
"_open": ["validateOpen"]
|
|
12381
|
-
"_summary": ["validateSummary"]
|
|
12208
|
+
"_open": ["validateOpen"]
|
|
12382
12209
|
}; }
|
|
12383
12210
|
static get style() { return {
|
|
12384
12211
|
default: defaultStyleCss$z
|
|
@@ -12390,7 +12217,6 @@ class KolDetails {
|
|
|
12390
12217
|
"_label": [1],
|
|
12391
12218
|
"_on": [16],
|
|
12392
12219
|
"_open": [1540],
|
|
12393
|
-
"_summary": [1],
|
|
12394
12220
|
"state": [32]
|
|
12395
12221
|
},
|
|
12396
12222
|
"$listeners$": undefined,
|
|
@@ -12578,47 +12404,30 @@ const defaultStyleCss$x = "@font-face{font-family:\"codicon\";font-display:block
|
|
|
12578
12404
|
class KolIcon {
|
|
12579
12405
|
constructor(hostRef) {
|
|
12580
12406
|
registerInstance(this, hostRef);
|
|
12581
|
-
this._ariaLabel = undefined;
|
|
12582
|
-
this._icon = undefined;
|
|
12583
12407
|
this._icons = undefined;
|
|
12584
12408
|
this._label = undefined;
|
|
12585
|
-
this._part = undefined;
|
|
12586
12409
|
this.state = {
|
|
12587
12410
|
_icons: 'codicon codicon-home',
|
|
12411
|
+
_label: '',
|
|
12588
12412
|
};
|
|
12589
12413
|
}
|
|
12590
12414
|
render() {
|
|
12591
|
-
const ariaShow =
|
|
12415
|
+
const ariaShow = this.state._label.length > 0;
|
|
12592
12416
|
return (hAsync(Host, { exportparts: "icon" }, hAsync("i", { "aria-hidden": ariaShow ? undefined : 'true', "aria-label": ariaShow ? this.state._label : undefined, class: this.state._icons, part: "icon", role: "img" })));
|
|
12593
12417
|
}
|
|
12594
|
-
validateAriaLabel(value) {
|
|
12595
|
-
this.validateLabel(value);
|
|
12596
|
-
}
|
|
12597
|
-
validateIcon(value) {
|
|
12598
|
-
this.validateIcons(value);
|
|
12599
|
-
}
|
|
12600
12418
|
validateIcons(value) {
|
|
12601
12419
|
watchString(this, '_icons', value);
|
|
12602
12420
|
}
|
|
12603
12421
|
validateLabel(value) {
|
|
12604
12422
|
validateLabel(this, value);
|
|
12605
12423
|
}
|
|
12606
|
-
validatePart(value) {
|
|
12607
|
-
if (value) {
|
|
12608
|
-
devHint(`ICON: The usage of the part attribute is deprecated and has no effect.`);
|
|
12609
|
-
}
|
|
12610
|
-
}
|
|
12611
12424
|
componentWillLoad() {
|
|
12612
|
-
this.validateIcons(this._icons
|
|
12613
|
-
this.validateLabel(this._label
|
|
12614
|
-
this.validatePart(this._part);
|
|
12425
|
+
this.validateIcons(this._icons);
|
|
12426
|
+
this.validateLabel(this._label);
|
|
12615
12427
|
}
|
|
12616
12428
|
static get watchers() { return {
|
|
12617
|
-
"_ariaLabel": ["validateAriaLabel"],
|
|
12618
|
-
"_icon": ["validateIcon"],
|
|
12619
12429
|
"_icons": ["validateIcons"],
|
|
12620
|
-
"_label": ["validateLabel"]
|
|
12621
|
-
"_part": ["validatePart"]
|
|
12430
|
+
"_label": ["validateLabel"]
|
|
12622
12431
|
}; }
|
|
12623
12432
|
static get style() { return {
|
|
12624
12433
|
default: defaultStyleCss$x
|
|
@@ -12627,11 +12436,8 @@ class KolIcon {
|
|
|
12627
12436
|
"$flags$": 41,
|
|
12628
12437
|
"$tagName$": "kol-icon",
|
|
12629
12438
|
"$members$": {
|
|
12630
|
-
"_ariaLabel": [1, "_aria-label"],
|
|
12631
|
-
"_icon": [1],
|
|
12632
12439
|
"_icons": [1],
|
|
12633
12440
|
"_label": [1],
|
|
12634
|
-
"_part": [1],
|
|
12635
12441
|
"state": [32]
|
|
12636
12442
|
},
|
|
12637
12443
|
"$listeners$": undefined,
|
|
@@ -12640,56 +12446,6 @@ class KolIcon {
|
|
|
12640
12446
|
}; }
|
|
12641
12447
|
}
|
|
12642
12448
|
|
|
12643
|
-
class KolIconFontAwesome {
|
|
12644
|
-
constructor(hostRef) {
|
|
12645
|
-
registerInstance(this, hostRef);
|
|
12646
|
-
this._ariaLabel = undefined;
|
|
12647
|
-
this._icon = undefined;
|
|
12648
|
-
this._prefix = undefined;
|
|
12649
|
-
this._part = undefined;
|
|
12650
|
-
}
|
|
12651
|
-
render() {
|
|
12652
|
-
return (hAsync("kol-icon", { exportparts: `icon${typeof this._part === 'string' ? `,${this._part}` : ''}`, _ariaLabel: this._ariaLabel, _icon: typeof this._prefix === 'string' && typeof this._icon === 'string' ? `${this._prefix} fa-${this._icon}` : undefined }));
|
|
12653
|
-
}
|
|
12654
|
-
static get cmpMeta() { return {
|
|
12655
|
-
"$flags$": 0,
|
|
12656
|
-
"$tagName$": "kol-icon-font-awesome",
|
|
12657
|
-
"$members$": {
|
|
12658
|
-
"_ariaLabel": [1, "_aria-label"],
|
|
12659
|
-
"_icon": [1],
|
|
12660
|
-
"_prefix": [1],
|
|
12661
|
-
"_part": [1]
|
|
12662
|
-
},
|
|
12663
|
-
"$listeners$": undefined,
|
|
12664
|
-
"$lazyBundleId$": "-",
|
|
12665
|
-
"$attrsToReflect$": []
|
|
12666
|
-
}; }
|
|
12667
|
-
}
|
|
12668
|
-
|
|
12669
|
-
class KolIconIcofont {
|
|
12670
|
-
constructor(hostRef) {
|
|
12671
|
-
registerInstance(this, hostRef);
|
|
12672
|
-
this._ariaLabel = undefined;
|
|
12673
|
-
this._icon = undefined;
|
|
12674
|
-
this._part = undefined;
|
|
12675
|
-
}
|
|
12676
|
-
render() {
|
|
12677
|
-
return (hAsync("kol-icon", { exportparts: `icon${typeof this._part === 'string' ? `,${this._part}` : ''}`, _ariaLabel: this._ariaLabel, _icon: typeof this._icon === 'string' ? `icofont-${this._icon}` : undefined }));
|
|
12678
|
-
}
|
|
12679
|
-
static get cmpMeta() { return {
|
|
12680
|
-
"$flags$": 0,
|
|
12681
|
-
"$tagName$": "kol-icon-icofont",
|
|
12682
|
-
"$members$": {
|
|
12683
|
-
"_ariaLabel": [1, "_aria-label"],
|
|
12684
|
-
"_icon": [1],
|
|
12685
|
-
"_part": [1]
|
|
12686
|
-
},
|
|
12687
|
-
"$listeners$": undefined,
|
|
12688
|
-
"$lazyBundleId$": "-",
|
|
12689
|
-
"$attrsToReflect$": []
|
|
12690
|
-
}; }
|
|
12691
|
-
}
|
|
12692
|
-
|
|
12693
12449
|
const AVAILABLE_LOADING_VALUES = new Set(['"eager", "lazy"']);
|
|
12694
12450
|
function validateLoading(component, value) {
|
|
12695
12451
|
watchValidator(component, '_loading', (value) => value === 'eager' || value === 'lazy', AVAILABLE_LOADING_VALUES, value);
|
|
@@ -12807,7 +12563,6 @@ class KolInput {
|
|
|
12807
12563
|
this._hideError = false;
|
|
12808
12564
|
this._hideLabel = false;
|
|
12809
12565
|
this._hint = '';
|
|
12810
|
-
this._icon = undefined;
|
|
12811
12566
|
this._icons = undefined;
|
|
12812
12567
|
this._id = undefined;
|
|
12813
12568
|
this._label = undefined;
|
|
@@ -12824,9 +12579,6 @@ class KolInput {
|
|
|
12824
12579
|
componentWillRender() {
|
|
12825
12580
|
this.slotName = this._slotName ? this._slotName : 'input';
|
|
12826
12581
|
}
|
|
12827
|
-
getIconsProp() {
|
|
12828
|
-
return this._icons || this._icon;
|
|
12829
|
-
}
|
|
12830
12582
|
getIconStyles(icon) {
|
|
12831
12583
|
return icon && typeof icon === 'object' && icon.style ? icon.style : {};
|
|
12832
12584
|
}
|
|
@@ -12845,9 +12597,9 @@ class KolInput {
|
|
|
12845
12597
|
'hidden-error': this._hideError === true,
|
|
12846
12598
|
} }, hAsync("label", { id: !useTooltopInsteadOfLabel ? `${this._id}-label` : undefined, hidden: useTooltopInsteadOfLabel, htmlFor: this._id }, hAsync("span", null, hAsync("slot", { name: "label" }))), hasHint && (hAsync("span", { class: "hint", id: `${this._id}-hint` }, this._hint)), hAsync("div", { class: {
|
|
12847
12599
|
input: true,
|
|
12848
|
-
'icon-left': typeof ((_a = this.
|
|
12849
|
-
'icon-right': typeof ((_b = this.
|
|
12850
|
-
} }, ((_c = this.
|
|
12600
|
+
'icon-left': typeof ((_a = this._icons) === null || _a === void 0 ? void 0 : _a.left) === 'object',
|
|
12601
|
+
'icon-right': typeof ((_b = this._icons) === null || _b === void 0 ? void 0 : _b.right) === 'object',
|
|
12602
|
+
} }, ((_c = this._icons) === null || _c === void 0 ? void 0 : _c.left) && (hAsync("kol-icon", { _label: "", _icons: ((_d = this._icons) === null || _d === void 0 ? void 0 : _d.left).icon, style: this.getIconStyles((_e = this._icons) === null || _e === void 0 ? void 0 : _e.left) })), hAsync("div", { ref: this.catchInputSlot, id: this.slotName, class: "input-slot" }), typeof this._smartButton === 'object' && this._smartButton !== null && (hAsync("kol-button-wc", { _customClass: this._smartButton._customClass, _disabled: this._smartButton._disabled, _icons: this._smartButton._icons, _hideLabel: true, _id: this._smartButton._id, _label: this._smartButton._label, _on: this._smartButton._on, _tooltipAlign: this._smartButton._tooltipAlign, _variant: this._smartButton._variant })), ((_f = this._icons) === null || _f === void 0 ? void 0 : _f.right) && (hAsync("kol-icon", { _label: "", _icons: ((_g = this._icons) === null || _g === void 0 ? void 0 : _g.right).icon, style: this.getIconStyles((_h = this._icons) === null || _h === void 0 ? void 0 : _h.right) }))), useTooltopInsteadOfLabel && (hAsync("kol-tooltip-wc", { "aria-hidden": "true", class: "input-tooltip", _align: this._tooltipAlign, _id: this._hideLabel ? `${this._id}-label` : undefined, _label: this._label })), hasError && (hAsync("kol-alert", { _alert: this._alert, _type: "error", _variant: "msg", "aria-hidden": this._hideError, class: `error${this._hideError ? ' hidden' : ''}`, id: `${this._id}-error` }, this._error)), Array.isArray(this._suggestions) && this._suggestions.length > 0 && (hAsync("datalist", { id: `${this._id}-list` }, this._suggestions.map((option) => (hAsync("option", { value: option }))))), this._hasCounter && (hAsync("span", { class: "counter", "aria-atomic": "true", "aria-live": "polite" }, this._currentLength, this._maxLength && (hAsync(Fragment, null, hAsync("span", { "aria-label": translate('kol-of'), role: "img" }, "/"), this._maxLength)), ' ', hAsync("span", null, translate('kol-characters'))))));
|
|
12851
12603
|
}
|
|
12852
12604
|
get host() { return getElement(this); }
|
|
12853
12605
|
static get cmpMeta() { return {
|
|
@@ -12862,7 +12614,6 @@ class KolInput {
|
|
|
12862
12614
|
"_hideError": [4, "_hide-error"],
|
|
12863
12615
|
"_hideLabel": [4, "_hide-label"],
|
|
12864
12616
|
"_hint": [1],
|
|
12865
|
-
"_icon": [16],
|
|
12866
12617
|
"_icons": [16],
|
|
12867
12618
|
"_id": [1],
|
|
12868
12619
|
"_label": [1],
|
|
@@ -12882,26 +12633,6 @@ class KolInput {
|
|
|
12882
12633
|
}; }
|
|
12883
12634
|
}
|
|
12884
12635
|
|
|
12885
|
-
class KolInputAdapterLeanup {
|
|
12886
|
-
constructor(hostRef) {
|
|
12887
|
-
registerInstance(this, hostRef);
|
|
12888
|
-
}
|
|
12889
|
-
componentWillLoad() {
|
|
12890
|
-
deprecatedHint(`Die Komponente 'kol-input-adapter-leanup' mit dem Release v1.1.7 umgezogen. Lesen Sie hier, wie Sie sie migrieren: https://public-ui.github.io/docs/changelog/#117---30092022`);
|
|
12891
|
-
}
|
|
12892
|
-
render() {
|
|
12893
|
-
return (hAsync(Host, null, hAsync("kol-alert", { _type: "warning" }, "Die Komponente ", hAsync("code", null, "kol-input-adapter-leanup"), " ist umgezogen. Lesen Sie hier, wie Sie sie migrieren:", ' ', hAsync("kol-link", { _href: "https://public-ui.github.io/docs/changelog#118---07102022", _label: "https://public-ui.github.io/docs/changelog#118---07102022", _target: "documentation" }))));
|
|
12894
|
-
}
|
|
12895
|
-
static get cmpMeta() { return {
|
|
12896
|
-
"$flags$": 9,
|
|
12897
|
-
"$tagName$": "kol-input-adapter-leanup",
|
|
12898
|
-
"$members$": undefined,
|
|
12899
|
-
"$listeners$": undefined,
|
|
12900
|
-
"$lazyBundleId$": "-",
|
|
12901
|
-
"$attrsToReflect$": []
|
|
12902
|
-
}; }
|
|
12903
|
-
}
|
|
12904
|
-
|
|
12905
12636
|
const getRenderStates = (state) => {
|
|
12906
12637
|
const hasError = typeof state._error === 'string' && state._error.length > 0 && state._touched === true;
|
|
12907
12638
|
const hasHint = typeof state._hint === 'string' && state._hint.length > 0;
|
|
@@ -13216,7 +12947,7 @@ class InputRadioController extends InputCheckboxRadioController {
|
|
|
13216
12947
|
}
|
|
13217
12948
|
};
|
|
13218
12949
|
this.validateOrientation(this.component._orientation);
|
|
13219
|
-
this.validateOptions(this.component._options
|
|
12950
|
+
this.validateOptions(this.component._options);
|
|
13220
12951
|
this.validateHideError(this.component._hideError);
|
|
13221
12952
|
this.validateValue(this.component._value);
|
|
13222
12953
|
}
|
|
@@ -13250,9 +12981,6 @@ class InputCheckboxController extends InputCheckboxRadioController {
|
|
|
13250
12981
|
},
|
|
13251
12982
|
});
|
|
13252
12983
|
}
|
|
13253
|
-
validateIcon(value) {
|
|
13254
|
-
this.validateIcons(value);
|
|
13255
|
-
}
|
|
13256
12984
|
validateIcons(value) {
|
|
13257
12985
|
watchValidator(this.component, '_icons', (value) => {
|
|
13258
12986
|
return typeof value === 'object' && value !== null && (isString$1(value.checked, 1) || isString$1(value.indeterminate, 1) || isString$1(value.unchecked, 1));
|
|
@@ -13267,29 +12995,21 @@ class InputCheckboxController extends InputCheckboxRadioController {
|
|
|
13267
12995
|
validateIndeterminate(value) {
|
|
13268
12996
|
validateIndeterminate(this.component, value);
|
|
13269
12997
|
}
|
|
13270
|
-
validateType(value) {
|
|
13271
|
-
devHint(`The "_type" prop is deprecated. Use "_variant" instead.`);
|
|
13272
|
-
this.validateVariant(value);
|
|
13273
|
-
}
|
|
13274
12998
|
validateValue(value) {
|
|
13275
12999
|
setState(this.component, '_value', value);
|
|
13276
13000
|
this.setFormAssociatedCheckboxValue(this.component.state._value);
|
|
13277
13001
|
}
|
|
13278
13002
|
validateVariant(value) {
|
|
13279
|
-
if (value === 'checkbox') {
|
|
13280
|
-
devHint(`[KolCheckbox] The "_variant" value 'checkbox' is deprecated. Use the new value 'default' instead.`);
|
|
13281
|
-
value = 'default';
|
|
13282
|
-
}
|
|
13283
13003
|
watchValidator(this.component, '_variant', (value) => typeof value === 'string' && (value === 'button' || value === 'default' || value === 'switch'), new Set(['String {button, default, switch}']), value);
|
|
13284
13004
|
}
|
|
13285
13005
|
componentWillLoad() {
|
|
13286
13006
|
super.componentWillLoad();
|
|
13287
13007
|
this.validateChecked(this.component._checked);
|
|
13288
13008
|
this.validateHideError(this.component._hideError);
|
|
13289
|
-
this.validateIcons(this.component._icons
|
|
13009
|
+
this.validateIcons(this.component._icons);
|
|
13290
13010
|
this.validateIndeterminate(this.component._indeterminate);
|
|
13291
13011
|
this.validateValue(this.component._value);
|
|
13292
|
-
this.validateVariant(this.component._variant
|
|
13012
|
+
this.validateVariant(this.component._variant);
|
|
13293
13013
|
}
|
|
13294
13014
|
}
|
|
13295
13015
|
|
|
@@ -13304,7 +13024,7 @@ class KolInputCheckbox {
|
|
|
13304
13024
|
[this.state._variant]: true,
|
|
13305
13025
|
'hide-label': !!this.state._hideLabel,
|
|
13306
13026
|
checked: this.state._checked,
|
|
13307
|
-
}, "data-role": this.state._variant === 'button' ? 'button' : undefined, onKeyPress: this.state._variant === 'button' ? this.onChange : undefined, tabIndex: this.state._variant === 'button' ? 0 : undefined, _alert: this.state._alert, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _id: this.state._id, _label: this.state._label, _required: this.state._required, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot",
|
|
13027
|
+
}, "data-role": this.state._variant === 'button' ? 'button' : undefined, onKeyPress: this.state._variant === 'button' ? this.onChange : undefined, tabIndex: this.state._variant === 'button' ? 0 : undefined, _alert: this.state._alert, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _id: this.state._id, _label: this.state._label, _required: this.state._required, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot", { name: "expert" }) : this.state._label), hAsync("div", { slot: "input" }, hAsync("kol-icon", { class: "icon", onClick: this.handleIconClick.bind(this), _icons: this.state._indeterminate ? this.state._icons.indeterminate : this.state._checked ? this.state._icons.checked : this.state._icons.unchecked, _label: "" }), hAsync("input", Object.assign({ ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, checked: this.state._checked, disabled: this.state._disabled, id: this.state._id, indeterminate: this.state._indeterminate, name: this.state._name, required: this.state._required, tabIndex: this.state._tabIndex, type: "checkbox" }, this.controller.onFacade, { onChange: this.onChange, onClick: undefined }))))));
|
|
13308
13028
|
}
|
|
13309
13029
|
constructor(hostRef) {
|
|
13310
13030
|
registerInstance(this, hostRef);
|
|
@@ -13332,7 +13052,6 @@ class KolInputCheckbox {
|
|
|
13332
13052
|
this._error = undefined;
|
|
13333
13053
|
this._hideLabel = false;
|
|
13334
13054
|
this._hint = '';
|
|
13335
|
-
this._icon = undefined;
|
|
13336
13055
|
this._icons = undefined;
|
|
13337
13056
|
this._id = undefined;
|
|
13338
13057
|
this._indeterminate = undefined;
|
|
@@ -13344,9 +13063,8 @@ class KolInputCheckbox {
|
|
|
13344
13063
|
this._tabIndex = undefined;
|
|
13345
13064
|
this._tooltipAlign = 'top';
|
|
13346
13065
|
this._touched = false;
|
|
13347
|
-
this._type = undefined;
|
|
13348
13066
|
this._value = true;
|
|
13349
|
-
this._variant =
|
|
13067
|
+
this._variant = 'default';
|
|
13350
13068
|
this.state = {
|
|
13351
13069
|
_checked: false,
|
|
13352
13070
|
_hideError: false,
|
|
@@ -13387,9 +13105,6 @@ class KolInputCheckbox {
|
|
|
13387
13105
|
validateHint(value) {
|
|
13388
13106
|
this.controller.validateHint(value);
|
|
13389
13107
|
}
|
|
13390
|
-
validateIcon(value) {
|
|
13391
|
-
this.validateIcons(value);
|
|
13392
|
-
}
|
|
13393
13108
|
validateIcons(value) {
|
|
13394
13109
|
this.controller.validateIcons(value);
|
|
13395
13110
|
}
|
|
@@ -13420,9 +13135,6 @@ class KolInputCheckbox {
|
|
|
13420
13135
|
validateTouched(value) {
|
|
13421
13136
|
this.controller.validateTouched(value);
|
|
13422
13137
|
}
|
|
13423
|
-
validateType(value) {
|
|
13424
|
-
this.controller.validateType(value);
|
|
13425
|
-
}
|
|
13426
13138
|
validateValue(value) {
|
|
13427
13139
|
this.controller.validateValue(value);
|
|
13428
13140
|
}
|
|
@@ -13449,7 +13161,6 @@ class KolInputCheckbox {
|
|
|
13449
13161
|
"_hideError": ["validateHideError"],
|
|
13450
13162
|
"_hideLabel": ["validateHideLabel"],
|
|
13451
13163
|
"_hint": ["validateHint"],
|
|
13452
|
-
"_icon": ["validateIcon"],
|
|
13453
13164
|
"_icons": ["validateIcons"],
|
|
13454
13165
|
"_id": ["validateId"],
|
|
13455
13166
|
"_indeterminate": ["validateIndeterminate"],
|
|
@@ -13460,7 +13171,6 @@ class KolInputCheckbox {
|
|
|
13460
13171
|
"_syncValueBySelector": ["validateSyncValueBySelector"],
|
|
13461
13172
|
"_tabIndex": ["validateTabIndex"],
|
|
13462
13173
|
"_touched": ["validateTouched"],
|
|
13463
|
-
"_type": ["validateType"],
|
|
13464
13174
|
"_value": ["validateValue"],
|
|
13465
13175
|
"_variant": ["validateVariant"]
|
|
13466
13176
|
}; }
|
|
@@ -13479,7 +13189,6 @@ class KolInputCheckbox {
|
|
|
13479
13189
|
"_error": [1],
|
|
13480
13190
|
"_hideLabel": [4, "_hide-label"],
|
|
13481
13191
|
"_hint": [1],
|
|
13482
|
-
"_icon": [1],
|
|
13483
13192
|
"_icons": [1],
|
|
13484
13193
|
"_id": [1],
|
|
13485
13194
|
"_indeterminate": [1540],
|
|
@@ -13491,7 +13200,6 @@ class KolInputCheckbox {
|
|
|
13491
13200
|
"_tabIndex": [2, "_tab-index"],
|
|
13492
13201
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
13493
13202
|
"_touched": [1540],
|
|
13494
|
-
"_type": [1],
|
|
13495
13203
|
"_value": [8],
|
|
13496
13204
|
"_variant": [1],
|
|
13497
13205
|
"state": [32]
|
|
@@ -13565,7 +13273,6 @@ class InputColorController extends InputIconController {
|
|
|
13565
13273
|
validateAutoComplete(value) {
|
|
13566
13274
|
watchValidator(this.component, '_autoComplete', (value) => typeof value === 'string' && (value === 'on' || value === 'off'), new Set(['on | off']), value);
|
|
13567
13275
|
}
|
|
13568
|
-
validateList() { }
|
|
13569
13276
|
validateSuggestions(value) {
|
|
13570
13277
|
validateSuggestions(this.component, value);
|
|
13571
13278
|
}
|
|
@@ -13588,7 +13295,7 @@ class InputColorController extends InputIconController {
|
|
|
13588
13295
|
super.componentWillLoad();
|
|
13589
13296
|
this.validateAutoComplete(this.component._autoComplete);
|
|
13590
13297
|
this.validateHideError(this.component._hideError);
|
|
13591
|
-
this.validateSuggestions(this.component._suggestions
|
|
13298
|
+
this.validateSuggestions(this.component._suggestions);
|
|
13592
13299
|
this.validateValue(this.component._value);
|
|
13593
13300
|
}
|
|
13594
13301
|
}
|
|
@@ -13603,7 +13310,7 @@ class KolInputColor {
|
|
|
13603
13310
|
return (hAsync(Host, null, hAsync("kol-input", { class: {
|
|
13604
13311
|
color: true,
|
|
13605
13312
|
'hide-label': !!this.state._hideLabel,
|
|
13606
|
-
}, _disabled: this.state._disabled, _error: this.state._error, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _hideError: this.state._hideError, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus(); } }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot",
|
|
13313
|
+
}, _disabled: this.state._disabled, _error: this.state._error, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _hideError: this.state._hideError, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus(); } }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot", { name: "expert" }) : this.state._label), hAsync("div", { slot: "input" }, hAsync("input", Object.assign({ ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, list: hasSuggestions ? `${this.state._id}-list` : undefined, name: this.state._name, slot: "input", spellcheck: "false", type: "color", value: this.state._value }, this.controller.onFacade))))));
|
|
13607
13314
|
}
|
|
13608
13315
|
constructor(hostRef) {
|
|
13609
13316
|
registerInstance(this, hostRef);
|
|
@@ -13619,11 +13326,9 @@ class KolInputColor {
|
|
|
13619
13326
|
this._hideError = false;
|
|
13620
13327
|
this._hideLabel = false;
|
|
13621
13328
|
this._hint = '';
|
|
13622
|
-
this._icon = undefined;
|
|
13623
13329
|
this._icons = undefined;
|
|
13624
13330
|
this._id = undefined;
|
|
13625
13331
|
this._label = undefined;
|
|
13626
|
-
this._list = undefined;
|
|
13627
13332
|
this._name = undefined;
|
|
13628
13333
|
this._on = undefined;
|
|
13629
13334
|
this._smartButton = undefined;
|
|
@@ -13666,9 +13371,6 @@ class KolInputColor {
|
|
|
13666
13371
|
validateHint(value) {
|
|
13667
13372
|
this.controller.validateHint(value);
|
|
13668
13373
|
}
|
|
13669
|
-
validateIcon(value) {
|
|
13670
|
-
this.validateIcons(value);
|
|
13671
|
-
}
|
|
13672
13374
|
validateIcons(value) {
|
|
13673
13375
|
this.controller.validateIcons(value);
|
|
13674
13376
|
}
|
|
@@ -13678,9 +13380,6 @@ class KolInputColor {
|
|
|
13678
13380
|
validateLabel(value) {
|
|
13679
13381
|
this.controller.validateLabel(value);
|
|
13680
13382
|
}
|
|
13681
|
-
validateList(value) {
|
|
13682
|
-
this.validateSuggestions(value);
|
|
13683
|
-
}
|
|
13684
13383
|
validateName(value) {
|
|
13685
13384
|
this.controller.validateName(value);
|
|
13686
13385
|
}
|
|
@@ -13720,11 +13419,9 @@ class KolInputColor {
|
|
|
13720
13419
|
"_hideError": ["validateHideError"],
|
|
13721
13420
|
"_hideLabel": ["validateHideLabel"],
|
|
13722
13421
|
"_hint": ["validateHint"],
|
|
13723
|
-
"_icon": ["validateIcon"],
|
|
13724
13422
|
"_icons": ["validateIcons"],
|
|
13725
13423
|
"_id": ["validateId"],
|
|
13726
13424
|
"_label": ["validateLabel"],
|
|
13727
|
-
"_list": ["validateList"],
|
|
13728
13425
|
"_name": ["validateName"],
|
|
13729
13426
|
"_on": ["validateOn"],
|
|
13730
13427
|
"_smartButton": ["validateSmartButton"],
|
|
@@ -13749,11 +13446,9 @@ class KolInputColor {
|
|
|
13749
13446
|
"_hideError": [1540, "_hide-error"],
|
|
13750
13447
|
"_hideLabel": [4, "_hide-label"],
|
|
13751
13448
|
"_hint": [1],
|
|
13752
|
-
"_icon": [1],
|
|
13753
13449
|
"_icons": [1],
|
|
13754
13450
|
"_id": [1],
|
|
13755
13451
|
"_label": [1],
|
|
13756
|
-
"_list": [1],
|
|
13757
13452
|
"_name": [1],
|
|
13758
13453
|
"_on": [16],
|
|
13759
13454
|
"_smartButton": [1, "_smart-button"],
|
|
@@ -13805,7 +13500,6 @@ class InputDateController extends InputIconController {
|
|
|
13805
13500
|
},
|
|
13806
13501
|
});
|
|
13807
13502
|
}
|
|
13808
|
-
validateList() { }
|
|
13809
13503
|
validateSuggestions(value) {
|
|
13810
13504
|
validateSuggestions(this.component, value);
|
|
13811
13505
|
}
|
|
@@ -13907,7 +13601,7 @@ class InputDateController extends InputIconController {
|
|
|
13907
13601
|
this.validateMin(this.component._min);
|
|
13908
13602
|
this.validateHideError(this.component._hideError);
|
|
13909
13603
|
this.validateLabel(this.component._label);
|
|
13910
|
-
this.validateSuggestions(this.component._suggestions
|
|
13604
|
+
this.validateSuggestions(this.component._suggestions);
|
|
13911
13605
|
this.validateOn(this.component._on);
|
|
13912
13606
|
this.validateReadOnly(this.component._readOnly);
|
|
13913
13607
|
this.validateRequired(this.component._required);
|
|
@@ -13933,7 +13627,7 @@ class KolInputDate {
|
|
|
13933
13627
|
return (hAsync(Host, { class: { 'has-value': this.state._hasValue } }, hAsync("kol-input", { class: {
|
|
13934
13628
|
[this.state._type]: true,
|
|
13935
13629
|
'hide-label': !!this.state._hideLabel,
|
|
13936
|
-
}, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _readOnly: this.state._readOnly, _required: this.state._required, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot",
|
|
13630
|
+
}, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _readOnly: this.state._readOnly, _required: this.state._required, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot", { name: "expert" }) : this.state._label), hAsync("div", { slot: "input" }, hAsync("input", Object.assign({ ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, list: hasSuggestions ? `${this.state._id}-list` : undefined, max: this.state._max, min: this.state._min, name: this.state._name, readOnly: this.state._readOnly, required: this.state._required, step: this.state._step, spellcheck: "false", type: this.state._type, value: this.state._value }, this.controller.onFacade, { onKeyUp: this.onKeyUp }))))));
|
|
13937
13631
|
}
|
|
13938
13632
|
constructor(hostRef) {
|
|
13939
13633
|
registerInstance(this, hostRef);
|
|
@@ -13960,11 +13654,9 @@ class KolInputDate {
|
|
|
13960
13654
|
this._hideError = false;
|
|
13961
13655
|
this._hideLabel = false;
|
|
13962
13656
|
this._hint = '';
|
|
13963
|
-
this._icon = undefined;
|
|
13964
13657
|
this._icons = undefined;
|
|
13965
13658
|
this._id = undefined;
|
|
13966
13659
|
this._label = undefined;
|
|
13967
|
-
this._list = undefined;
|
|
13968
13660
|
this._max = undefined;
|
|
13969
13661
|
this._min = undefined;
|
|
13970
13662
|
this._name = undefined;
|
|
@@ -14015,9 +13707,6 @@ class KolInputDate {
|
|
|
14015
13707
|
validateHint(value) {
|
|
14016
13708
|
this.controller.validateHint(value);
|
|
14017
13709
|
}
|
|
14018
|
-
validateIcon(value) {
|
|
14019
|
-
this.validateIcons(value);
|
|
14020
|
-
}
|
|
14021
13710
|
validateIcons(value) {
|
|
14022
13711
|
this.controller.validateIcons(value);
|
|
14023
13712
|
}
|
|
@@ -14027,9 +13716,6 @@ class KolInputDate {
|
|
|
14027
13716
|
validateLabel(value) {
|
|
14028
13717
|
this.controller.validateLabel(value);
|
|
14029
13718
|
}
|
|
14030
|
-
validateList(value) {
|
|
14031
|
-
this.validateSuggestions(value);
|
|
14032
|
-
}
|
|
14033
13719
|
validateMax(value) {
|
|
14034
13720
|
this.controller.validateMax(value);
|
|
14035
13721
|
}
|
|
@@ -14093,11 +13779,9 @@ class KolInputDate {
|
|
|
14093
13779
|
"_hideError": ["validateHideError"],
|
|
14094
13780
|
"_hideLabel": ["validateHideLabel"],
|
|
14095
13781
|
"_hint": ["validateHint"],
|
|
14096
|
-
"_icon": ["validateIcon"],
|
|
14097
13782
|
"_icons": ["validateIcons"],
|
|
14098
13783
|
"_id": ["validateId"],
|
|
14099
13784
|
"_label": ["validateLabel"],
|
|
14100
|
-
"_list": ["validateList"],
|
|
14101
13785
|
"_max": ["validateMax"],
|
|
14102
13786
|
"_min": ["validateMin"],
|
|
14103
13787
|
"_name": ["validateName"],
|
|
@@ -14128,11 +13812,9 @@ class KolInputDate {
|
|
|
14128
13812
|
"_hideError": [1540, "_hide-error"],
|
|
14129
13813
|
"_hideLabel": [4, "_hide-label"],
|
|
14130
13814
|
"_hint": [1],
|
|
14131
|
-
"_icon": [1],
|
|
14132
13815
|
"_icons": [1],
|
|
14133
13816
|
"_id": [1],
|
|
14134
13817
|
"_label": [1],
|
|
14135
|
-
"_list": [1],
|
|
14136
13818
|
"_max": [1],
|
|
14137
13819
|
"_min": [1],
|
|
14138
13820
|
"_name": [1],
|
|
@@ -14203,11 +13885,6 @@ class InputPasswordController extends InputIconController {
|
|
|
14203
13885
|
validateRequired(value) {
|
|
14204
13886
|
watchBoolean(this.component, '_required', value);
|
|
14205
13887
|
}
|
|
14206
|
-
validateSize(value) {
|
|
14207
|
-
watchNumber(this.component, '_size', value, {
|
|
14208
|
-
min: 1,
|
|
14209
|
-
});
|
|
14210
|
-
}
|
|
14211
13888
|
validateValue(value) {
|
|
14212
13889
|
watchString(this.component, '_value', value);
|
|
14213
13890
|
this.setFormAssociatedValue(this.component.state._value);
|
|
@@ -14222,7 +13899,6 @@ class InputPasswordController extends InputIconController {
|
|
|
14222
13899
|
this.validatePlaceholder(this.component._placeholder);
|
|
14223
13900
|
this.validateReadOnly(this.component._readOnly);
|
|
14224
13901
|
this.validateRequired(this.component._required);
|
|
14225
|
-
this.validateSize(this.component._size);
|
|
14226
13902
|
this.validateValue(this.component._value);
|
|
14227
13903
|
}
|
|
14228
13904
|
onBlur(event) {
|
|
@@ -14253,13 +13929,12 @@ class InputTextEmailController extends InputPasswordController {
|
|
|
14253
13929
|
},
|
|
14254
13930
|
});
|
|
14255
13931
|
}
|
|
14256
|
-
validateList() { }
|
|
14257
13932
|
validateSuggestions(value) {
|
|
14258
13933
|
validateSuggestions(this.component, value);
|
|
14259
13934
|
}
|
|
14260
13935
|
componentWillLoad() {
|
|
14261
13936
|
super.componentWillLoad();
|
|
14262
|
-
this.validateSuggestions(this.component._suggestions
|
|
13937
|
+
this.validateSuggestions(this.component._suggestions);
|
|
14263
13938
|
}
|
|
14264
13939
|
}
|
|
14265
13940
|
class InputTextController extends InputTextEmailController {
|
|
@@ -14317,7 +13992,7 @@ class KolInputEmail {
|
|
|
14317
13992
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
14318
13993
|
return (hAsync(Host, { class: {
|
|
14319
13994
|
'has-value': this.state._hasValue,
|
|
14320
|
-
} }, hAsync("kol-input", { class: { email: true, 'hide-label': !!this.state._hideLabel }, _alert: this.state._alert, _currentLength: this.state._currentLength, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hasCounter: this.state._hasCounter, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _maxLength: this.state._maxLength, _readOnly: this.state._readOnly, _required: this.state._required, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus(); } }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot",
|
|
13995
|
+
} }, hAsync("kol-input", { class: { email: true, 'hide-label': !!this.state._hideLabel }, _alert: this.state._alert, _currentLength: this.state._currentLength, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hasCounter: this.state._hasCounter, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _maxLength: this.state._maxLength, _readOnly: this.state._readOnly, _required: this.state._required, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus(); } }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot", { name: "expert" }) : this.state._label), hAsync("div", { slot: "input" }, hAsync("input", Object.assign({ ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, multiple: this.state._multiple, id: this.state._id, list: hasSuggestions ? `${this.state._id}-list` : undefined, maxlength: this.state._maxLength, name: this.state._name, pattern: this.state._pattern, placeholder: this.state._placeholder, readOnly: this.state._readOnly, required: this.state._required, spellcheck: "false", type: "email", value: this.state._value }, this.controller.onFacade, { onKeyUp: this.onKeyUp }))))));
|
|
14321
13996
|
}
|
|
14322
13997
|
constructor(hostRef) {
|
|
14323
13998
|
registerInstance(this, hostRef);
|
|
@@ -14346,11 +14021,9 @@ class KolInputEmail {
|
|
|
14346
14021
|
this._hideError = false;
|
|
14347
14022
|
this._hideLabel = false;
|
|
14348
14023
|
this._hint = '';
|
|
14349
|
-
this._icon = undefined;
|
|
14350
14024
|
this._icons = undefined;
|
|
14351
14025
|
this._id = undefined;
|
|
14352
14026
|
this._label = undefined;
|
|
14353
|
-
this._list = undefined;
|
|
14354
14027
|
this._maxLength = undefined;
|
|
14355
14028
|
this._multiple = false;
|
|
14356
14029
|
this._name = undefined;
|
|
@@ -14359,7 +14032,6 @@ class KolInputEmail {
|
|
|
14359
14032
|
this._placeholder = undefined;
|
|
14360
14033
|
this._readOnly = false;
|
|
14361
14034
|
this._required = false;
|
|
14362
|
-
this._size = undefined;
|
|
14363
14035
|
this._smartButton = undefined;
|
|
14364
14036
|
this._suggestions = undefined;
|
|
14365
14037
|
this._syncValueBySelector = undefined;
|
|
@@ -14405,9 +14077,6 @@ class KolInputEmail {
|
|
|
14405
14077
|
validateHint(value) {
|
|
14406
14078
|
this.controller.validateHint(value);
|
|
14407
14079
|
}
|
|
14408
|
-
validateIcon(value) {
|
|
14409
|
-
this.validateIcons(value);
|
|
14410
|
-
}
|
|
14411
14080
|
validateIcons(value) {
|
|
14412
14081
|
this.controller.validateIcons(value);
|
|
14413
14082
|
}
|
|
@@ -14417,9 +14086,6 @@ class KolInputEmail {
|
|
|
14417
14086
|
validateLabel(value) {
|
|
14418
14087
|
this.controller.validateLabel(value);
|
|
14419
14088
|
}
|
|
14420
|
-
validateList(value) {
|
|
14421
|
-
this.validateSuggestions(value);
|
|
14422
|
-
}
|
|
14423
14089
|
validateMaxLength(value) {
|
|
14424
14090
|
this.controller.validateMaxLength(value);
|
|
14425
14091
|
}
|
|
@@ -14444,9 +14110,6 @@ class KolInputEmail {
|
|
|
14444
14110
|
validateRequired(value) {
|
|
14445
14111
|
this.controller.validateRequired(value);
|
|
14446
14112
|
}
|
|
14447
|
-
validateSize(value) {
|
|
14448
|
-
this.controller.validateSize(value);
|
|
14449
|
-
}
|
|
14450
14113
|
validateSuggestions(value) {
|
|
14451
14114
|
this.controller.validateSuggestions(value);
|
|
14452
14115
|
}
|
|
@@ -14483,11 +14146,9 @@ class KolInputEmail {
|
|
|
14483
14146
|
"_hideError": ["validateHideError"],
|
|
14484
14147
|
"_hideLabel": ["validateHideLabel"],
|
|
14485
14148
|
"_hint": ["validateHint"],
|
|
14486
|
-
"_icon": ["validateIcon"],
|
|
14487
14149
|
"_icons": ["validateIcons"],
|
|
14488
14150
|
"_id": ["validateId"],
|
|
14489
14151
|
"_label": ["validateLabel"],
|
|
14490
|
-
"_list": ["validateList"],
|
|
14491
14152
|
"_maxLength": ["validateMaxLength"],
|
|
14492
14153
|
"_multiple": ["validateMultiple"],
|
|
14493
14154
|
"_name": ["validateName"],
|
|
@@ -14496,7 +14157,6 @@ class KolInputEmail {
|
|
|
14496
14157
|
"_placeholder": ["validatePlaceholder"],
|
|
14497
14158
|
"_readOnly": ["validateReadOnly"],
|
|
14498
14159
|
"_required": ["validateRequired"],
|
|
14499
|
-
"_size": ["validateSize"],
|
|
14500
14160
|
"_suggestions": ["validateSuggestions"],
|
|
14501
14161
|
"_smartButton": ["validateSmartButton"],
|
|
14502
14162
|
"_syncValueBySelector": ["validateSyncValueBySelector"],
|
|
@@ -14520,11 +14180,9 @@ class KolInputEmail {
|
|
|
14520
14180
|
"_hideError": [1540, "_hide-error"],
|
|
14521
14181
|
"_hideLabel": [4, "_hide-label"],
|
|
14522
14182
|
"_hint": [1],
|
|
14523
|
-
"_icon": [1],
|
|
14524
14183
|
"_icons": [1],
|
|
14525
14184
|
"_id": [1],
|
|
14526
14185
|
"_label": [1],
|
|
14527
|
-
"_list": [1],
|
|
14528
14186
|
"_maxLength": [2, "_max-length"],
|
|
14529
14187
|
"_multiple": [4],
|
|
14530
14188
|
"_name": [1],
|
|
@@ -14533,7 +14191,6 @@ class KolInputEmail {
|
|
|
14533
14191
|
"_placeholder": [1],
|
|
14534
14192
|
"_readOnly": [4, "_read-only"],
|
|
14535
14193
|
"_required": [4],
|
|
14536
|
-
"_size": [2],
|
|
14537
14194
|
"_smartButton": [1, "_smart-button"],
|
|
14538
14195
|
"_suggestions": [1],
|
|
14539
14196
|
"_syncValueBySelector": [1, "_sync-value-by-selector"],
|
|
@@ -14597,7 +14254,7 @@ class KolInputFile {
|
|
|
14597
14254
|
return (hAsync(Host, null, hAsync("kol-input", { class: {
|
|
14598
14255
|
file: true,
|
|
14599
14256
|
'hide-label': !!this.state._hideLabel,
|
|
14600
|
-
}, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _required: this.state._required, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus(); } }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot",
|
|
14257
|
+
}, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _required: this.state._required, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus(); } }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot", { name: "expert" }) : this.state._label), hAsync("div", { slot: "input" }, hAsync("input", Object.assign({ ref: this.catchRef, title: "", accept: this.state._accept, accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, multiple: this.state._multiple, name: this.state._name, required: this.state._required, spellcheck: "false", type: "file", value: this.state._value }, this.controller.onFacade, { onChange: this.onChange }))))));
|
|
14601
14258
|
}
|
|
14602
14259
|
constructor(hostRef) {
|
|
14603
14260
|
registerInstance(this, hostRef);
|
|
@@ -14625,7 +14282,6 @@ class KolInputFile {
|
|
|
14625
14282
|
this._hideError = false;
|
|
14626
14283
|
this._hideLabel = false;
|
|
14627
14284
|
this._hint = '';
|
|
14628
|
-
this._icon = undefined;
|
|
14629
14285
|
this._icons = undefined;
|
|
14630
14286
|
this._id = undefined;
|
|
14631
14287
|
this._label = undefined;
|
|
@@ -14670,9 +14326,6 @@ class KolInputFile {
|
|
|
14670
14326
|
validateHint(value) {
|
|
14671
14327
|
this.controller.validateHint(value);
|
|
14672
14328
|
}
|
|
14673
|
-
validateIcon(value) {
|
|
14674
|
-
this.validateIcons(value);
|
|
14675
|
-
}
|
|
14676
14329
|
validateIcons(value) {
|
|
14677
14330
|
this.controller.validateIcons(value);
|
|
14678
14331
|
}
|
|
@@ -14724,7 +14377,6 @@ class KolInputFile {
|
|
|
14724
14377
|
"_hideError": ["validateHideError"],
|
|
14725
14378
|
"_hideLabel": ["validateHideLabel"],
|
|
14726
14379
|
"_hint": ["validateHint"],
|
|
14727
|
-
"_icon": ["validateIcon"],
|
|
14728
14380
|
"_icons": ["validateIcons"],
|
|
14729
14381
|
"_id": ["validateId"],
|
|
14730
14382
|
"_label": ["validateLabel"],
|
|
@@ -14753,7 +14405,6 @@ class KolInputFile {
|
|
|
14753
14405
|
"_hideError": [1540, "_hide-error"],
|
|
14754
14406
|
"_hideLabel": [4, "_hide-label"],
|
|
14755
14407
|
"_hint": [1],
|
|
14756
|
-
"_icon": [1],
|
|
14757
14408
|
"_icons": [1],
|
|
14758
14409
|
"_id": [1],
|
|
14759
14410
|
"_label": [1],
|
|
@@ -14820,7 +14471,6 @@ class InputNumberController extends InputIconController {
|
|
|
14820
14471
|
},
|
|
14821
14472
|
});
|
|
14822
14473
|
}
|
|
14823
|
-
validateList() { }
|
|
14824
14474
|
validateSuggestions(value) {
|
|
14825
14475
|
validateSuggestions(this.component, value);
|
|
14826
14476
|
}
|
|
@@ -14848,10 +14498,6 @@ class InputNumberController extends InputIconController {
|
|
|
14848
14498
|
validateStep(value) {
|
|
14849
14499
|
watchNumber(this.component, '_step', value);
|
|
14850
14500
|
}
|
|
14851
|
-
validateType(value) {
|
|
14852
|
-
watchValidator(this.component, '_type', (value) => typeof value === 'string' &&
|
|
14853
|
-
(value === 'date' || value === 'datetime-local' || value === 'month' || value === 'number' || value === 'time' || value === 'week'), new Set(['String {date, datetime-local, month, number, time, week}']), value);
|
|
14854
|
-
}
|
|
14855
14501
|
validateValue(value) {
|
|
14856
14502
|
this.validateValueEx(value);
|
|
14857
14503
|
}
|
|
@@ -14865,12 +14511,11 @@ class InputNumberController extends InputIconController {
|
|
|
14865
14511
|
this.validateHideError(this.component._hideError);
|
|
14866
14512
|
this.validateMax(this.component._max);
|
|
14867
14513
|
this.validateMin(this.component._min);
|
|
14868
|
-
this.validateSuggestions(this.component._suggestions
|
|
14514
|
+
this.validateSuggestions(this.component._suggestions);
|
|
14869
14515
|
this.validatePlaceholder(this.component._placeholder);
|
|
14870
14516
|
this.validateReadOnly(this.component._readOnly);
|
|
14871
14517
|
this.validateRequired(this.component._required);
|
|
14872
14518
|
this.validateStep(this.component._step);
|
|
14873
|
-
this.validateType(this.component._type);
|
|
14874
14519
|
this.validateValue(this.component._value);
|
|
14875
14520
|
}
|
|
14876
14521
|
}
|
|
@@ -14885,9 +14530,9 @@ class KolInputNumber {
|
|
|
14885
14530
|
return (hAsync(Host, { class: {
|
|
14886
14531
|
'has-value': this.state._hasValue,
|
|
14887
14532
|
} }, hAsync("kol-input", { class: {
|
|
14888
|
-
|
|
14533
|
+
number: true,
|
|
14889
14534
|
'hide-label': !!this.state._hideLabel,
|
|
14890
|
-
}, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _readOnly: this.state._readOnly, _required: this.state._required, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot",
|
|
14535
|
+
}, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _readOnly: this.state._readOnly, _required: this.state._required, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot", { name: "expert" }) : this.state._label), hAsync("div", { slot: "input" }, hAsync("input", Object.assign({ ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, list: hasSuggestions ? `${this.state._id}-list` : undefined, max: this.state._max, min: this.state._min, name: this.state._name, readOnly: this.state._readOnly, required: this.state._required, placeholder: this.state._placeholder, step: this.state._step, spellcheck: "false", type: "number", value: this.state._value }, this.controller.onFacade, { onKeyUp: this.onKeyUp }))))));
|
|
14891
14536
|
}
|
|
14892
14537
|
constructor(hostRef) {
|
|
14893
14538
|
registerInstance(this, hostRef);
|
|
@@ -14914,11 +14559,9 @@ class KolInputNumber {
|
|
|
14914
14559
|
this._hideError = false;
|
|
14915
14560
|
this._hideLabel = false;
|
|
14916
14561
|
this._hint = '';
|
|
14917
|
-
this._icon = undefined;
|
|
14918
14562
|
this._icons = undefined;
|
|
14919
14563
|
this._id = undefined;
|
|
14920
14564
|
this._label = undefined;
|
|
14921
|
-
this._list = undefined;
|
|
14922
14565
|
this._max = undefined;
|
|
14923
14566
|
this._min = undefined;
|
|
14924
14567
|
this._name = undefined;
|
|
@@ -14933,7 +14576,6 @@ class KolInputNumber {
|
|
|
14933
14576
|
this._tabIndex = undefined;
|
|
14934
14577
|
this._tooltipAlign = 'top';
|
|
14935
14578
|
this._touched = false;
|
|
14936
|
-
this._type = 'number';
|
|
14937
14579
|
this._value = undefined;
|
|
14938
14580
|
this.state = {
|
|
14939
14581
|
_autoComplete: 'off',
|
|
@@ -14942,7 +14584,6 @@ class KolInputNumber {
|
|
|
14942
14584
|
_id: `id-${nonce()}`,
|
|
14943
14585
|
_label: '',
|
|
14944
14586
|
_suggestions: [],
|
|
14945
|
-
_type: 'number',
|
|
14946
14587
|
};
|
|
14947
14588
|
this.controller = new InputNumberController(this, 'input-number', this.host);
|
|
14948
14589
|
}
|
|
@@ -14970,9 +14611,6 @@ class KolInputNumber {
|
|
|
14970
14611
|
validateHint(value) {
|
|
14971
14612
|
this.controller.validateHint(value);
|
|
14972
14613
|
}
|
|
14973
|
-
validateIcon(value) {
|
|
14974
|
-
this.validateIcons(value);
|
|
14975
|
-
}
|
|
14976
14614
|
validateIcons(value) {
|
|
14977
14615
|
this.controller.validateIcons(value);
|
|
14978
14616
|
}
|
|
@@ -14982,9 +14620,6 @@ class KolInputNumber {
|
|
|
14982
14620
|
validateLabel(value) {
|
|
14983
14621
|
this.controller.validateLabel(value);
|
|
14984
14622
|
}
|
|
14985
|
-
validateList(value) {
|
|
14986
|
-
this.validateSuggestions(value);
|
|
14987
|
-
}
|
|
14988
14623
|
validateMax(value) {
|
|
14989
14624
|
this.controller.validateMax(value);
|
|
14990
14625
|
}
|
|
@@ -15024,9 +14659,6 @@ class KolInputNumber {
|
|
|
15024
14659
|
validateTouched(value) {
|
|
15025
14660
|
this.controller.validateTouched(value);
|
|
15026
14661
|
}
|
|
15027
|
-
validateType(value) {
|
|
15028
|
-
this.controller.validateType(value);
|
|
15029
|
-
}
|
|
15030
14662
|
validateValue(value) {
|
|
15031
14663
|
this.controller.validateValueEx(value, (v) => {
|
|
15032
14664
|
if (v === '' && this.ref) {
|
|
@@ -15051,11 +14683,9 @@ class KolInputNumber {
|
|
|
15051
14683
|
"_hideError": ["validateHideError"],
|
|
15052
14684
|
"_hideLabel": ["validateHideLabel"],
|
|
15053
14685
|
"_hint": ["validateHint"],
|
|
15054
|
-
"_icon": ["validateIcon"],
|
|
15055
14686
|
"_icons": ["validateIcons"],
|
|
15056
14687
|
"_id": ["validateId"],
|
|
15057
14688
|
"_label": ["validateLabel"],
|
|
15058
|
-
"_list": ["validateList"],
|
|
15059
14689
|
"_max": ["validateMax"],
|
|
15060
14690
|
"_min": ["validateMin"],
|
|
15061
14691
|
"_name": ["validateName"],
|
|
@@ -15069,7 +14699,6 @@ class KolInputNumber {
|
|
|
15069
14699
|
"_syncValueBySelector": ["validateSyncValueBySelector"],
|
|
15070
14700
|
"_tabIndex": ["validateTabIndex"],
|
|
15071
14701
|
"_touched": ["validateTouched"],
|
|
15072
|
-
"_type": ["validateType"],
|
|
15073
14702
|
"_value": ["validateValue"]
|
|
15074
14703
|
}; }
|
|
15075
14704
|
static get style() { return {
|
|
@@ -15087,11 +14716,9 @@ class KolInputNumber {
|
|
|
15087
14716
|
"_hideError": [1540, "_hide-error"],
|
|
15088
14717
|
"_hideLabel": [4, "_hide-label"],
|
|
15089
14718
|
"_hint": [1],
|
|
15090
|
-
"_icon": [1],
|
|
15091
14719
|
"_icons": [1],
|
|
15092
14720
|
"_id": [1],
|
|
15093
14721
|
"_label": [1],
|
|
15094
|
-
"_list": [1],
|
|
15095
14722
|
"_max": [8],
|
|
15096
14723
|
"_min": [8],
|
|
15097
14724
|
"_name": [1],
|
|
@@ -15106,7 +14733,6 @@ class KolInputNumber {
|
|
|
15106
14733
|
"_tabIndex": [2, "_tab-index"],
|
|
15107
14734
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
15108
14735
|
"_touched": [1540],
|
|
15109
|
-
"_type": [1],
|
|
15110
14736
|
"_value": [1032],
|
|
15111
14737
|
"state": [32]
|
|
15112
14738
|
},
|
|
@@ -15127,7 +14753,7 @@ class KolInputPassword {
|
|
|
15127
14753
|
} }, hAsync("kol-input", { class: {
|
|
15128
14754
|
'hide-label': !!this.state._hideLabel,
|
|
15129
14755
|
password: true,
|
|
15130
|
-
}, _currentLength: this.state._currentLength, _disabled: this.state._disabled, _error: this.state._error, _hasCounter: this.state._hasCounter, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _maxLength: this.state._maxLength, _readOnly: this.state._readOnly, _required: this.state._required, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus(); } }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot",
|
|
14756
|
+
}, _currentLength: this.state._currentLength, _disabled: this.state._disabled, _error: this.state._error, _hasCounter: this.state._hasCounter, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _maxLength: this.state._maxLength, _readOnly: this.state._readOnly, _required: this.state._required, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus(); } }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot", { name: "expert" }) : this.state._label), hAsync("div", { slot: "input" }, hAsync("input", Object.assign({ ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, maxlength: this.state._maxLength, name: this.state._name, pattern: this.state._pattern, placeholder: this.state._placeholder, readOnly: this.state._readOnly, required: this.state._required, spellcheck: "false", type: "password", value: this.state._value }, this.controller.onFacade, { onKeyUp: this.onKeyUp }))))));
|
|
15131
14757
|
}
|
|
15132
14758
|
constructor(hostRef) {
|
|
15133
14759
|
registerInstance(this, hostRef);
|
|
@@ -15156,7 +14782,6 @@ class KolInputPassword {
|
|
|
15156
14782
|
this._hideError = false;
|
|
15157
14783
|
this._hideLabel = false;
|
|
15158
14784
|
this._hint = '';
|
|
15159
|
-
this._icon = undefined;
|
|
15160
14785
|
this._icons = undefined;
|
|
15161
14786
|
this._id = undefined;
|
|
15162
14787
|
this._label = undefined;
|
|
@@ -15167,7 +14792,6 @@ class KolInputPassword {
|
|
|
15167
14792
|
this._placeholder = undefined;
|
|
15168
14793
|
this._readOnly = false;
|
|
15169
14794
|
this._required = false;
|
|
15170
|
-
this._size = undefined;
|
|
15171
14795
|
this._smartButton = undefined;
|
|
15172
14796
|
this._syncValueBySelector = undefined;
|
|
15173
14797
|
this._tabIndex = undefined;
|
|
@@ -15214,9 +14838,6 @@ class KolInputPassword {
|
|
|
15214
14838
|
validateHint(value) {
|
|
15215
14839
|
this.controller.validateHint(value);
|
|
15216
14840
|
}
|
|
15217
|
-
validateIcon(value) {
|
|
15218
|
-
this.validateIcons(value);
|
|
15219
|
-
}
|
|
15220
14841
|
validateIcons(value) {
|
|
15221
14842
|
this.controller.validateIcons(value);
|
|
15222
14843
|
}
|
|
@@ -15247,9 +14868,6 @@ class KolInputPassword {
|
|
|
15247
14868
|
validateRequired(value) {
|
|
15248
14869
|
this.controller.validateRequired(value);
|
|
15249
14870
|
}
|
|
15250
|
-
validateSize(value) {
|
|
15251
|
-
this.controller.validateSize(value);
|
|
15252
|
-
}
|
|
15253
14871
|
validateSmartButton(value) {
|
|
15254
14872
|
this.controller.validateSmartButton(value);
|
|
15255
14873
|
}
|
|
@@ -15283,7 +14901,6 @@ class KolInputPassword {
|
|
|
15283
14901
|
"_hideError": ["validateHideError"],
|
|
15284
14902
|
"_hideLabel": ["validateHideLabel"],
|
|
15285
14903
|
"_hint": ["validateHint"],
|
|
15286
|
-
"_icon": ["validateIcon"],
|
|
15287
14904
|
"_icons": ["validateIcons"],
|
|
15288
14905
|
"_id": ["validateId"],
|
|
15289
14906
|
"_label": ["validateLabel"],
|
|
@@ -15294,7 +14911,6 @@ class KolInputPassword {
|
|
|
15294
14911
|
"_placeholder": ["validatePlaceholder"],
|
|
15295
14912
|
"_readOnly": ["validateReadOnly"],
|
|
15296
14913
|
"_required": ["validateRequired"],
|
|
15297
|
-
"_size": ["validateSize"],
|
|
15298
14914
|
"_smartButton": ["validateSmartButton"],
|
|
15299
14915
|
"_syncValueBySelector": ["validateSyncValueBySelector"],
|
|
15300
14916
|
"_tabIndex": ["validateTabIndex"],
|
|
@@ -15317,7 +14933,6 @@ class KolInputPassword {
|
|
|
15317
14933
|
"_hideError": [1540, "_hide-error"],
|
|
15318
14934
|
"_hideLabel": [4, "_hide-label"],
|
|
15319
14935
|
"_hint": [1],
|
|
15320
|
-
"_icon": [1],
|
|
15321
14936
|
"_icons": [1],
|
|
15322
14937
|
"_id": [1],
|
|
15323
14938
|
"_label": [1],
|
|
@@ -15328,7 +14943,6 @@ class KolInputPassword {
|
|
|
15328
14943
|
"_placeholder": [1],
|
|
15329
14944
|
"_readOnly": [4, "_read-only"],
|
|
15330
14945
|
"_required": [4],
|
|
15331
|
-
"_size": [2],
|
|
15332
14946
|
"_smartButton": [1, "_smart-button"],
|
|
15333
14947
|
"_syncValueBySelector": [1, "_sync-value-by-selector"],
|
|
15334
14948
|
"_tabIndex": [2, "_tab-index"],
|
|
@@ -15355,7 +14969,7 @@ class KolInputRadio {
|
|
|
15355
14969
|
required: this.state._required === true,
|
|
15356
14970
|
'hidden-error': this._hideError === true,
|
|
15357
14971
|
[this.state._orientation]: true,
|
|
15358
|
-
} }, hAsync("legend", { class: "block w-full mb-1 leading-normal" }, hAsync("span", null, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot",
|
|
14972
|
+
} }, hAsync("legend", { class: "block w-full mb-1 leading-normal" }, hAsync("span", null, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot", { name: "expert" }) : this.state._label))), this.state._options.map((option, index) => {
|
|
15359
14973
|
const customId = `${this.state._id}-${index}`;
|
|
15360
14974
|
const slotName = `radio-${index}`;
|
|
15361
14975
|
return (hAsync("kol-input", { class: "radio", key: customId, _disabled: this.state._disabled || option.disabled, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _id: customId, _label: option.label, _renderNoLabel: true, _required: this.state._required, _slotName: slotName, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("div", { slot: slotName, class: "radio-input-wrapper" }, hAsync("input", Object.assign({ ref: this.state._value === option.value ? this.catchRef : undefined, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof option.label === 'string' ? option.label : undefined, type: "radio", id: customId, checked: this.state._value === option.value, name: this.state._name || this.state._id, disabled: this.state._disabled || option.disabled, required: this.state._required, tabIndex: this.state._tabIndex, value: `-${index}` }, this.controller.onFacade, { onChange: this.onChange, onClick: undefined })), hAsync("label", { class: "radio-label", htmlFor: `${customId}`, style: {
|
|
@@ -15396,7 +15010,6 @@ class KolInputRadio {
|
|
|
15396
15010
|
this._hint = '';
|
|
15397
15011
|
this._id = undefined;
|
|
15398
15012
|
this._label = undefined;
|
|
15399
|
-
this._list = undefined;
|
|
15400
15013
|
this._name = undefined;
|
|
15401
15014
|
this._on = undefined;
|
|
15402
15015
|
this._options = undefined;
|
|
@@ -15443,9 +15056,6 @@ class KolInputRadio {
|
|
|
15443
15056
|
validateLabel(value) {
|
|
15444
15057
|
this.controller.validateLabel(value);
|
|
15445
15058
|
}
|
|
15446
|
-
validateList(value) {
|
|
15447
|
-
this.validateOptions(value);
|
|
15448
|
-
}
|
|
15449
15059
|
validateName(value) {
|
|
15450
15060
|
this.controller.validateName(value);
|
|
15451
15061
|
}
|
|
@@ -15489,7 +15099,6 @@ class KolInputRadio {
|
|
|
15489
15099
|
"_hint": ["validateHint"],
|
|
15490
15100
|
"_id": ["validateId"],
|
|
15491
15101
|
"_label": ["validateLabel"],
|
|
15492
|
-
"_list": ["validateList"],
|
|
15493
15102
|
"_name": ["validateName"],
|
|
15494
15103
|
"_on": ["validateOn"],
|
|
15495
15104
|
"_options": ["validateOptions"],
|
|
@@ -15516,7 +15125,6 @@ class KolInputRadio {
|
|
|
15516
15125
|
"_hint": [1],
|
|
15517
15126
|
"_id": [1],
|
|
15518
15127
|
"_label": [1],
|
|
15519
|
-
"_list": [1],
|
|
15520
15128
|
"_name": [1],
|
|
15521
15129
|
"_on": [16],
|
|
15522
15130
|
"_options": [1],
|
|
@@ -15535,59 +15143,6 @@ class KolInputRadio {
|
|
|
15535
15143
|
}; }
|
|
15536
15144
|
}
|
|
15537
15145
|
|
|
15538
|
-
class KolInputRadioGroup {
|
|
15539
|
-
constructor(hostRef) {
|
|
15540
|
-
registerInstance(this, hostRef);
|
|
15541
|
-
this._accessKey = undefined;
|
|
15542
|
-
this._alert = true;
|
|
15543
|
-
this._disabled = false;
|
|
15544
|
-
this._error = undefined;
|
|
15545
|
-
this._hideLabel = false;
|
|
15546
|
-
this._hint = '';
|
|
15547
|
-
this._id = undefined;
|
|
15548
|
-
this._label = undefined;
|
|
15549
|
-
this._list = undefined;
|
|
15550
|
-
this._name = undefined;
|
|
15551
|
-
this._on = undefined;
|
|
15552
|
-
this._orientation = 'vertical';
|
|
15553
|
-
this._required = false;
|
|
15554
|
-
this._tabIndex = undefined;
|
|
15555
|
-
this._touched = false;
|
|
15556
|
-
this._value = undefined;
|
|
15557
|
-
}
|
|
15558
|
-
render() {
|
|
15559
|
-
deprecatedHint(`[KolInputRadioGroup] Die Komponenten Input-Radio-Group und Input-Radio werden zur Komponente Input-Radio zusammengeführt. Wir empfehlen den Tag <kol-input-radio> statt <kol-input-radio-group> zu verwenden.
|
|
15560
|
-
|
|
15561
|
-
Mit der Version 1.1 wird die Komponente KolInputRadioGroup aus der Bibliothek entfernt.`);
|
|
15562
|
-
return (hAsync("kol-input-radio", { _accessKey: this._accessKey, _disabled: this._disabled, _error: this._error, _hideLabel: this._hideLabel, _id: this._id, _label: this._label, _list: this._list, _name: this._name, _on: this._on, _orientation: this._orientation, _required: this._required, _tabIndex: this._tabIndex, _touched: this._touched, _value: this._value }, hAsync("slot", null)));
|
|
15563
|
-
}
|
|
15564
|
-
static get cmpMeta() { return {
|
|
15565
|
-
"$flags$": 9,
|
|
15566
|
-
"$tagName$": "kol-input-radio-group",
|
|
15567
|
-
"$members$": {
|
|
15568
|
-
"_accessKey": [1, "_access-key"],
|
|
15569
|
-
"_alert": [4],
|
|
15570
|
-
"_disabled": [4],
|
|
15571
|
-
"_error": [1],
|
|
15572
|
-
"_hideLabel": [4, "_hide-label"],
|
|
15573
|
-
"_hint": [1],
|
|
15574
|
-
"_id": [1],
|
|
15575
|
-
"_label": [1],
|
|
15576
|
-
"_list": [1],
|
|
15577
|
-
"_name": [1],
|
|
15578
|
-
"_on": [16],
|
|
15579
|
-
"_orientation": [1],
|
|
15580
|
-
"_required": [4],
|
|
15581
|
-
"_tabIndex": [2, "_tab-index"],
|
|
15582
|
-
"_touched": [4],
|
|
15583
|
-
"_value": [8]
|
|
15584
|
-
},
|
|
15585
|
-
"$listeners$": undefined,
|
|
15586
|
-
"$lazyBundleId$": "-",
|
|
15587
|
-
"$attrsToReflect$": []
|
|
15588
|
-
}; }
|
|
15589
|
-
}
|
|
15590
|
-
|
|
15591
15146
|
class InputRangeController extends InputIconController {
|
|
15592
15147
|
constructor(component, name, host) {
|
|
15593
15148
|
super(component, name, host);
|
|
@@ -15607,11 +15162,6 @@ class InputRangeController extends InputIconController {
|
|
|
15607
15162
|
},
|
|
15608
15163
|
});
|
|
15609
15164
|
}
|
|
15610
|
-
validateList(value) {
|
|
15611
|
-
if (Array.isArray(value)) {
|
|
15612
|
-
this.validateSuggestions(value.map((option) => option.value));
|
|
15613
|
-
}
|
|
15614
|
-
}
|
|
15615
15165
|
validateMax(value) {
|
|
15616
15166
|
watchNumber(this.component, '_max', value);
|
|
15617
15167
|
}
|
|
@@ -15632,7 +15182,6 @@ class InputRangeController extends InputIconController {
|
|
|
15632
15182
|
super.componentWillLoad();
|
|
15633
15183
|
this.validateAutoComplete(this.component._autoComplete);
|
|
15634
15184
|
this.validateHideError(this.component._hideError);
|
|
15635
|
-
this.validateList(this.component._list);
|
|
15636
15185
|
this.validateMax(this.component._max);
|
|
15637
15186
|
this.validateMin(this.component._min);
|
|
15638
15187
|
this.validateStep(this.component._step);
|
|
@@ -15651,7 +15200,7 @@ class KolInputRange {
|
|
|
15651
15200
|
return (hAsync(Host, null, hAsync("kol-input", { class: {
|
|
15652
15201
|
range: true,
|
|
15653
15202
|
'hide-label': !!this.state._hideLabel,
|
|
15654
|
-
}, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot",
|
|
15203
|
+
}, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot", { name: "expert" }) : this.state._label), hAsync("div", { slot: "input" }, hAsync("div", { class: "inputs-wrapper", style: {
|
|
15655
15204
|
'--kolibri-input-range--input-number--width': `${this.state._max}`.length + 0.5 + 'em',
|
|
15656
15205
|
} }, hAsync("input", Object.assign({ title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, list: hasSuggestions ? `${this.state._id}-list` : undefined, max: this.state._max, min: this.state._min, name: this.state._name ? `${this.state._name}-range` : undefined, spellcheck: "false", step: this.state._step, tabIndex: -1, type: "range", value: this.state._value }, this.controller.onFacade, { onChange: this.onChange })), hAsync("input", Object.assign({ ref: this.catchInputNumberRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, list: hasSuggestions ? `${this.state._id}-list` : undefined, max: this.state._max, min: this.state._min, name: this.state._name ? `${this.state._name}-number` : undefined, step: this.state._step, type: "number", value: this.state._value }, this.controller.onFacade, { onKeyUp: this.onKeyUp, onChange: this.onChange }))), hasSuggestions && [
|
|
15657
15206
|
hAsync("datalist", { id: `${this.state._id}-list` }, this.state._suggestions.map((option) => (hAsync("option", { value: option })))),
|
|
@@ -15700,11 +15249,9 @@ class KolInputRange {
|
|
|
15700
15249
|
this._hideError = false;
|
|
15701
15250
|
this._hideLabel = false;
|
|
15702
15251
|
this._hint = '';
|
|
15703
|
-
this._icon = undefined;
|
|
15704
15252
|
this._icons = undefined;
|
|
15705
15253
|
this._id = undefined;
|
|
15706
15254
|
this._label = undefined;
|
|
15707
|
-
this._list = undefined;
|
|
15708
15255
|
this._max = undefined;
|
|
15709
15256
|
this._min = undefined;
|
|
15710
15257
|
this._name = undefined;
|
|
@@ -15749,9 +15296,6 @@ class KolInputRange {
|
|
|
15749
15296
|
validateHint(value) {
|
|
15750
15297
|
this.controller.validateHint(value);
|
|
15751
15298
|
}
|
|
15752
|
-
validateIcon(value) {
|
|
15753
|
-
this.validateIcons(value);
|
|
15754
|
-
}
|
|
15755
15299
|
validateIcons(value) {
|
|
15756
15300
|
this.controller.validateIcons(value);
|
|
15757
15301
|
}
|
|
@@ -15761,9 +15305,6 @@ class KolInputRange {
|
|
|
15761
15305
|
validateLabel(value) {
|
|
15762
15306
|
this.controller.validateLabel(value);
|
|
15763
15307
|
}
|
|
15764
|
-
validateList(value) {
|
|
15765
|
-
this.controller.validateList(value);
|
|
15766
|
-
}
|
|
15767
15308
|
validateMax(value) {
|
|
15768
15309
|
this.controller.validateMax(value);
|
|
15769
15310
|
}
|
|
@@ -15809,11 +15350,9 @@ class KolInputRange {
|
|
|
15809
15350
|
"_hideError": ["validateHideError"],
|
|
15810
15351
|
"_hideLabel": ["validateHideLabel"],
|
|
15811
15352
|
"_hint": ["validateHint"],
|
|
15812
|
-
"_icon": ["validateIcon"],
|
|
15813
15353
|
"_icons": ["validateIcons"],
|
|
15814
15354
|
"_id": ["validateId"],
|
|
15815
15355
|
"_label": ["validateLabel"],
|
|
15816
|
-
"_list": ["validateList"],
|
|
15817
15356
|
"_max": ["validateMax"],
|
|
15818
15357
|
"_min": ["validateMin"],
|
|
15819
15358
|
"_name": ["validateName"],
|
|
@@ -15840,11 +15379,9 @@ class KolInputRange {
|
|
|
15840
15379
|
"_hideError": [1540, "_hide-error"],
|
|
15841
15380
|
"_hideLabel": [4, "_hide-label"],
|
|
15842
15381
|
"_hint": [1],
|
|
15843
|
-
"_icon": [1],
|
|
15844
15382
|
"_icons": [1],
|
|
15845
15383
|
"_id": [1],
|
|
15846
15384
|
"_label": [1],
|
|
15847
|
-
"_list": [1],
|
|
15848
15385
|
"_max": [2],
|
|
15849
15386
|
"_min": [2],
|
|
15850
15387
|
"_name": [1],
|
|
@@ -15881,7 +15418,7 @@ class KolInputText {
|
|
|
15881
15418
|
} }, hAsync("kol-input", { class: {
|
|
15882
15419
|
[this.state._type]: true,
|
|
15883
15420
|
'hide-label': !!this.state._hideLabel,
|
|
15884
|
-
}, _currentLength: this.state._currentLength, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hasCounter: this.state._hasCounter, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _maxLength: this.state._maxLength, _readOnly: this.state._readOnly, _required: this.state._required, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus(); } }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot",
|
|
15421
|
+
}, _currentLength: this.state._currentLength, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hasCounter: this.state._hasCounter, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _maxLength: this.state._maxLength, _readOnly: this.state._readOnly, _required: this.state._required, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus(); } }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot", { name: "expert" }) : this.state._label), hAsync("div", { slot: "input" }, hAsync("input", Object.assign({ ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, list: hasSuggestions ? `${this.state._id}-list` : undefined, maxlength: this.state._maxLength, name: this.state._name, pattern: this.state._pattern, placeholder: this.state._placeholder, readOnly: this.state._readOnly, required: this.state._required, spellcheck: "false", type: this.state._type, value: this.state._value }, this.controller.onFacade, { onKeyUp: this.onKeyUp }))))));
|
|
15885
15422
|
}
|
|
15886
15423
|
constructor(hostRef) {
|
|
15887
15424
|
registerInstance(this, hostRef);
|
|
@@ -15920,11 +15457,9 @@ class KolInputText {
|
|
|
15920
15457
|
this._hideError = false;
|
|
15921
15458
|
this._hideLabel = false;
|
|
15922
15459
|
this._hint = '';
|
|
15923
|
-
this._icon = undefined;
|
|
15924
15460
|
this._icons = undefined;
|
|
15925
15461
|
this._id = undefined;
|
|
15926
15462
|
this._label = undefined;
|
|
15927
|
-
this._list = undefined;
|
|
15928
15463
|
this._maxLength = undefined;
|
|
15929
15464
|
this._name = undefined;
|
|
15930
15465
|
this._on = undefined;
|
|
@@ -15932,7 +15467,6 @@ class KolInputText {
|
|
|
15932
15467
|
this._placeholder = undefined;
|
|
15933
15468
|
this._readOnly = false;
|
|
15934
15469
|
this._required = false;
|
|
15935
|
-
this._size = undefined;
|
|
15936
15470
|
this._suggestions = undefined;
|
|
15937
15471
|
this._smartButton = undefined;
|
|
15938
15472
|
this._syncValueBySelector = undefined;
|
|
@@ -15980,9 +15514,6 @@ class KolInputText {
|
|
|
15980
15514
|
validateHint(value) {
|
|
15981
15515
|
this.controller.validateHint(value);
|
|
15982
15516
|
}
|
|
15983
|
-
validateIcon(value) {
|
|
15984
|
-
this.validateIcons(value);
|
|
15985
|
-
}
|
|
15986
15517
|
validateIcons(value) {
|
|
15987
15518
|
this.controller.validateIcons(value);
|
|
15988
15519
|
}
|
|
@@ -15992,9 +15523,6 @@ class KolInputText {
|
|
|
15992
15523
|
validateLabel(value) {
|
|
15993
15524
|
this.controller.validateLabel(value);
|
|
15994
15525
|
}
|
|
15995
|
-
validateList(value) {
|
|
15996
|
-
this.validateSuggestions(value);
|
|
15997
|
-
}
|
|
15998
15526
|
validateMaxLength(value) {
|
|
15999
15527
|
this.controller.validateMaxLength(value);
|
|
16000
15528
|
}
|
|
@@ -16016,9 +15544,6 @@ class KolInputText {
|
|
|
16016
15544
|
validateRequired(value) {
|
|
16017
15545
|
this.controller.validateRequired(value);
|
|
16018
15546
|
}
|
|
16019
|
-
validateSize(value) {
|
|
16020
|
-
this.controller.validateSize(value);
|
|
16021
|
-
}
|
|
16022
15547
|
validateSuggestions(value) {
|
|
16023
15548
|
this.controller.validateSuggestions(value);
|
|
16024
15549
|
}
|
|
@@ -16063,11 +15588,9 @@ class KolInputText {
|
|
|
16063
15588
|
"_hideError": ["validateHideError"],
|
|
16064
15589
|
"_hideLabel": ["validateHideLabel"],
|
|
16065
15590
|
"_hint": ["validateHint"],
|
|
16066
|
-
"_icon": ["validateIcon"],
|
|
16067
15591
|
"_icons": ["validateIcons"],
|
|
16068
15592
|
"_id": ["validateId"],
|
|
16069
15593
|
"_label": ["validateLabel"],
|
|
16070
|
-
"_list": ["validateList"],
|
|
16071
15594
|
"_maxLength": ["validateMaxLength"],
|
|
16072
15595
|
"_name": ["validateName"],
|
|
16073
15596
|
"_on": ["validateOn"],
|
|
@@ -16075,7 +15598,6 @@ class KolInputText {
|
|
|
16075
15598
|
"_placeholder": ["validatePlaceholder"],
|
|
16076
15599
|
"_readOnly": ["validateReadOnly"],
|
|
16077
15600
|
"_required": ["validateRequired"],
|
|
16078
|
-
"_size": ["validateSize"],
|
|
16079
15601
|
"_suggestions": ["validateSuggestions"],
|
|
16080
15602
|
"_smartButton": ["validateSmartButton"],
|
|
16081
15603
|
"_syncValueBySelector": ["validateSyncValueBySelector"],
|
|
@@ -16100,11 +15622,9 @@ class KolInputText {
|
|
|
16100
15622
|
"_hideError": [1540, "_hide-error"],
|
|
16101
15623
|
"_hideLabel": [4, "_hide-label"],
|
|
16102
15624
|
"_hint": [1],
|
|
16103
|
-
"_icon": [1],
|
|
16104
15625
|
"_icons": [1],
|
|
16105
15626
|
"_id": [1],
|
|
16106
15627
|
"_label": [1],
|
|
16107
|
-
"_list": [1],
|
|
16108
15628
|
"_maxLength": [2, "_max-length"],
|
|
16109
15629
|
"_name": [1],
|
|
16110
15630
|
"_on": [16],
|
|
@@ -16112,7 +15632,6 @@ class KolInputText {
|
|
|
16112
15632
|
"_placeholder": [1],
|
|
16113
15633
|
"_readOnly": [4, "_read-only"],
|
|
16114
15634
|
"_required": [4],
|
|
16115
|
-
"_size": [2],
|
|
16116
15635
|
"_suggestions": [1],
|
|
16117
15636
|
"_smartButton": [1, "_smart-button"],
|
|
16118
15637
|
"_syncValueBySelector": [1, "_sync-value-by-selector"],
|
|
@@ -16239,33 +15758,21 @@ class KolLink {
|
|
|
16239
15758
|
this.ref = ref;
|
|
16240
15759
|
propagateFocus(this.host, this.ref);
|
|
16241
15760
|
};
|
|
16242
|
-
this._ariaControls = undefined;
|
|
16243
|
-
this._ariaCurrent = undefined;
|
|
16244
|
-
this._ariaExpanded = undefined;
|
|
16245
|
-
this._ariaLabel = undefined;
|
|
16246
|
-
this._ariaSelected = undefined;
|
|
16247
|
-
this._disabled = false;
|
|
16248
15761
|
this._download = undefined;
|
|
16249
15762
|
this._hideLabel = false;
|
|
16250
15763
|
this._href = undefined;
|
|
16251
|
-
this._icon = undefined;
|
|
16252
15764
|
this._icons = undefined;
|
|
16253
|
-
this._iconAlign = undefined;
|
|
16254
|
-
this._iconOnly = undefined;
|
|
16255
15765
|
this._label = undefined;
|
|
16256
15766
|
this._listenAriaCurrent = undefined;
|
|
16257
15767
|
this._on = undefined;
|
|
16258
15768
|
this._role = undefined;
|
|
16259
|
-
this._selector = undefined;
|
|
16260
|
-
this._stealth = false;
|
|
16261
15769
|
this._tabIndex = undefined;
|
|
16262
15770
|
this._target = undefined;
|
|
16263
15771
|
this._targetDescription = 'Der Link wird in einem neuen Tab geöffnet.';
|
|
16264
15772
|
this._tooltipAlign = 'right';
|
|
16265
|
-
this._useCase = 'text';
|
|
16266
15773
|
}
|
|
16267
15774
|
render() {
|
|
16268
|
-
return (hAsync(Host, null, hAsync("kol-link-wc", { ref: this.catchRef,
|
|
15775
|
+
return (hAsync(Host, null, hAsync("kol-link-wc", { ref: this.catchRef, _download: this._download, _hideLabel: this._hideLabel, _href: this._href, _icons: this._icons, _label: this._label, _listenAriaCurrent: this._listenAriaCurrent, _on: this._on, _role: this._role, _tabIndex: this._tabIndex, _target: this._target, _targetDescription: this._targetDescription, _tooltipAlign: this._tooltipAlign }, hAsync("slot", { name: "expert", slot: "expert" }))));
|
|
16269
15776
|
}
|
|
16270
15777
|
get host() { return getElement(this); }
|
|
16271
15778
|
static get style() { return {
|
|
@@ -16275,30 +15782,18 @@ class KolLink {
|
|
|
16275
15782
|
"$flags$": 41,
|
|
16276
15783
|
"$tagName$": "kol-link",
|
|
16277
15784
|
"$members$": {
|
|
16278
|
-
"_ariaControls": [1, "_aria-controls"],
|
|
16279
|
-
"_ariaCurrent": [8, "_aria-current"],
|
|
16280
|
-
"_ariaExpanded": [4, "_aria-expanded"],
|
|
16281
|
-
"_ariaLabel": [1, "_aria-label"],
|
|
16282
|
-
"_ariaSelected": [4, "_aria-selected"],
|
|
16283
|
-
"_disabled": [4],
|
|
16284
15785
|
"_download": [1],
|
|
16285
15786
|
"_hideLabel": [4, "_hide-label"],
|
|
16286
15787
|
"_href": [1],
|
|
16287
|
-
"_icon": [1],
|
|
16288
15788
|
"_icons": [1],
|
|
16289
|
-
"_iconAlign": [1, "_icon-align"],
|
|
16290
|
-
"_iconOnly": [4, "_icon-only"],
|
|
16291
15789
|
"_label": [1],
|
|
16292
15790
|
"_listenAriaCurrent": [8, "_listen-aria-current"],
|
|
16293
15791
|
"_on": [16],
|
|
16294
15792
|
"_role": [1],
|
|
16295
|
-
"_selector": [1],
|
|
16296
|
-
"_stealth": [4],
|
|
16297
15793
|
"_tabIndex": [2, "_tab-index"],
|
|
16298
15794
|
"_target": [1],
|
|
16299
15795
|
"_targetDescription": [1, "_target-description"],
|
|
16300
|
-
"_tooltipAlign": [1, "_tooltip-align"]
|
|
16301
|
-
"_useCase": [1, "_use-case"]
|
|
15796
|
+
"_tooltipAlign": [1, "_tooltip-align"]
|
|
16302
15797
|
},
|
|
16303
15798
|
"$listeners$": undefined,
|
|
16304
15799
|
"$lazyBundleId$": "-",
|
|
@@ -16315,18 +15810,11 @@ class KolLinkButton {
|
|
|
16315
15810
|
this.ref = ref;
|
|
16316
15811
|
propagateFocus(this.host, this.ref);
|
|
16317
15812
|
};
|
|
16318
|
-
this._ariaControls = undefined;
|
|
16319
|
-
this._ariaCurrent = undefined;
|
|
16320
|
-
this._ariaExpanded = undefined;
|
|
16321
|
-
this._ariaLabel = undefined;
|
|
16322
|
-
this._ariaSelected = undefined;
|
|
16323
15813
|
this._customClass = undefined;
|
|
16324
|
-
this._disabled = false;
|
|
16325
15814
|
this._download = undefined;
|
|
16326
15815
|
this._hideLabel = false;
|
|
16327
15816
|
this._href = undefined;
|
|
16328
|
-
this.
|
|
16329
|
-
this._iconOnly = undefined;
|
|
15817
|
+
this._icons = undefined;
|
|
16330
15818
|
this._label = undefined;
|
|
16331
15819
|
this._listenAriaCurrent = undefined;
|
|
16332
15820
|
this._on = undefined;
|
|
@@ -16342,7 +15830,7 @@ class KolLinkButton {
|
|
|
16342
15830
|
button: true,
|
|
16343
15831
|
[this._variant]: this._variant !== 'custom',
|
|
16344
15832
|
[this._customClass]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,
|
|
16345
|
-
},
|
|
15833
|
+
}, _download: this._download, _hideLabel: this._hideLabel, _href: this._href, _icons: this._icons, _label: this._label, _listenAriaCurrent: this._listenAriaCurrent, _on: this._on, _role: "button", _tabIndex: this._tabIndex, _target: this._target, _targetDescription: this._targetDescription, _tooltipAlign: this._tooltipAlign }, hAsync("slot", { name: "expert", slot: "expert" }))));
|
|
16346
15834
|
}
|
|
16347
15835
|
get host() { return getElement(this); }
|
|
16348
15836
|
static get style() { return {
|
|
@@ -16352,18 +15840,11 @@ class KolLinkButton {
|
|
|
16352
15840
|
"$flags$": 41,
|
|
16353
15841
|
"$tagName$": "kol-link-button",
|
|
16354
15842
|
"$members$": {
|
|
16355
|
-
"_ariaControls": [1, "_aria-controls"],
|
|
16356
|
-
"_ariaCurrent": [8, "_aria-current"],
|
|
16357
|
-
"_ariaExpanded": [4, "_aria-expanded"],
|
|
16358
|
-
"_ariaLabel": [1, "_aria-label"],
|
|
16359
|
-
"_ariaSelected": [4, "_aria-selected"],
|
|
16360
15843
|
"_customClass": [1, "_custom-class"],
|
|
16361
|
-
"_disabled": [4],
|
|
16362
15844
|
"_download": [1],
|
|
16363
15845
|
"_hideLabel": [4, "_hide-label"],
|
|
16364
15846
|
"_href": [1],
|
|
16365
|
-
"
|
|
16366
|
-
"_iconOnly": [4, "_icon-only"],
|
|
15847
|
+
"_icons": [1],
|
|
16367
15848
|
"_label": [1],
|
|
16368
15849
|
"_listenAriaCurrent": [8, "_listen-aria-current"],
|
|
16369
15850
|
"_on": [16],
|
|
@@ -16398,13 +15879,9 @@ class KolLinkGroup {
|
|
|
16398
15879
|
constructor(hostRef) {
|
|
16399
15880
|
registerInstance(this, hostRef);
|
|
16400
15881
|
this.isUl = true;
|
|
16401
|
-
this._ariaLabel = undefined;
|
|
16402
15882
|
this._listStyleType = undefined;
|
|
16403
|
-
this._heading = undefined;
|
|
16404
15883
|
this._label = undefined;
|
|
16405
|
-
this._level = undefined;
|
|
16406
15884
|
this._links = undefined;
|
|
16407
|
-
this._ordered = false;
|
|
16408
15885
|
this._orientation = 'vertical';
|
|
16409
15886
|
this.state = {
|
|
16410
15887
|
_label: '…',
|
|
@@ -16414,17 +15891,10 @@ class KolLinkGroup {
|
|
|
16414
15891
|
};
|
|
16415
15892
|
}
|
|
16416
15893
|
render() {
|
|
16417
|
-
var _a;
|
|
16418
15894
|
return (hAsync("nav", { "aria-label": this.state._label, class: {
|
|
16419
15895
|
vertical: this.state._orientation === 'vertical',
|
|
16420
15896
|
horizontal: this.state._orientation === 'horizontal',
|
|
16421
|
-
} },
|
|
16422
|
-
}
|
|
16423
|
-
validateAriaLabel(value) {
|
|
16424
|
-
this.validateLabel(value);
|
|
16425
|
-
}
|
|
16426
|
-
validateHeading(value) {
|
|
16427
|
-
watchString(this, '_heading', value);
|
|
15897
|
+
} }, this.isUl === false ? (hAsync("ol", null, hAsync(ListItem, { links: this.state._links, orientation: this.state._orientation, listStyleType: this.state._listStyleType }))) : (hAsync("ul", null, hAsync(ListItem, { links: this.state._links, orientation: this.state._orientation, listStyleType: this.state._listStyleType })))));
|
|
16428
15898
|
}
|
|
16429
15899
|
validateLabel(value, _oldValue, initial = false) {
|
|
16430
15900
|
if (!initial) {
|
|
@@ -16433,9 +15903,6 @@ class KolLinkGroup {
|
|
|
16433
15903
|
validateLabel(this, value);
|
|
16434
15904
|
addNavLabel(this.state._label);
|
|
16435
15905
|
}
|
|
16436
|
-
validateLevel(value) {
|
|
16437
|
-
watchHeadingLevel(this, value);
|
|
16438
|
-
}
|
|
16439
15906
|
validateListStyleType(value) {
|
|
16440
15907
|
watchValidator(this, '_listStyleType', (value) => {
|
|
16441
15908
|
switch (value) {
|
|
@@ -16464,18 +15931,13 @@ class KolLinkGroup {
|
|
|
16464
15931
|
validateLinks(value) {
|
|
16465
15932
|
watchNavLinks('KolLinkGroup', this, value);
|
|
16466
15933
|
}
|
|
16467
|
-
validateOrdered(value) {
|
|
16468
|
-
watchBoolean(this, '_ordered', value);
|
|
16469
|
-
}
|
|
16470
15934
|
validateOrientation(value) {
|
|
16471
15935
|
watchValidator(this, '_orientation', (value) => value === 'horizontal' || value === 'vertical', new Set(['Orientation {horizontal, vertical}']), value, {
|
|
16472
15936
|
defaultValue: 'vertical',
|
|
16473
15937
|
});
|
|
16474
15938
|
}
|
|
16475
15939
|
componentWillLoad() {
|
|
16476
|
-
this.
|
|
16477
|
-
this.validateLabel(this._label || this._ariaLabel, undefined, true);
|
|
16478
|
-
this.validateLevel(this._level);
|
|
15940
|
+
this.validateLabel(this._label, undefined, true);
|
|
16479
15941
|
this.validateListStyleType(this._listStyleType);
|
|
16480
15942
|
this.validateLinks(this._links);
|
|
16481
15943
|
this.validateOrientation(this._orientation);
|
|
@@ -16484,13 +15946,9 @@ class KolLinkGroup {
|
|
|
16484
15946
|
removeNavLabel(this.state._label);
|
|
16485
15947
|
}
|
|
16486
15948
|
static get watchers() { return {
|
|
16487
|
-
"_ariaLabel": ["validateAriaLabel"],
|
|
16488
|
-
"_heading": ["validateHeading"],
|
|
16489
15949
|
"_label": ["validateLabel"],
|
|
16490
|
-
"_level": ["validateLevel"],
|
|
16491
15950
|
"_listStyleType": ["validateListStyleType"],
|
|
16492
15951
|
"_links": ["validateLinks"],
|
|
16493
|
-
"_ordered": ["validateOrdered"],
|
|
16494
15952
|
"_orientation": ["validateOrientation"]
|
|
16495
15953
|
}; }
|
|
16496
15954
|
static get style() { return {
|
|
@@ -16500,13 +15958,9 @@ class KolLinkGroup {
|
|
|
16500
15958
|
"$flags$": 41,
|
|
16501
15959
|
"$tagName$": "kol-link-group",
|
|
16502
15960
|
"$members$": {
|
|
16503
|
-
"_ariaLabel": [1, "_aria-label"],
|
|
16504
15961
|
"_listStyleType": [1, "_list-style-type"],
|
|
16505
|
-
"_heading": [1],
|
|
16506
15962
|
"_label": [1],
|
|
16507
|
-
"_level": [2],
|
|
16508
15963
|
"_links": [1],
|
|
16509
|
-
"_ordered": [4],
|
|
16510
15964
|
"_orientation": [1],
|
|
16511
15965
|
"state": [32]
|
|
16512
15966
|
},
|
|
@@ -16516,8 +15970,14 @@ class KolLinkGroup {
|
|
|
16516
15970
|
}; }
|
|
16517
15971
|
}
|
|
16518
15972
|
|
|
16519
|
-
const
|
|
16520
|
-
|
|
15973
|
+
const validate = (component, propName, value) => {
|
|
15974
|
+
watchValidator(component, propName, (value) => value === 'date' || value === 'location' || value === 'page' || value === 'step' || value === 'time' || value === true || value === false, new Set(['String {data, location, page, step, time}', 'boolean']), value);
|
|
15975
|
+
};
|
|
15976
|
+
const validateAriaCurrent = (component, value) => {
|
|
15977
|
+
validate(component, '_ariaCurrent', value);
|
|
15978
|
+
};
|
|
15979
|
+
const validateListenAriaCurrent = (component, value) => {
|
|
15980
|
+
validate(component, '_listenAriaCurrent', value);
|
|
16521
15981
|
};
|
|
16522
15982
|
|
|
16523
15983
|
const validateDownload = (component, value) => {
|
|
@@ -16538,10 +15998,6 @@ const validateLinkTarget = (component, value) => {
|
|
|
16538
15998
|
watchString(component, '_target', value);
|
|
16539
15999
|
};
|
|
16540
16000
|
|
|
16541
|
-
const validateStealth = (component, value) => {
|
|
16542
|
-
watchBoolean(component, '_stealth', value);
|
|
16543
|
-
};
|
|
16544
|
-
|
|
16545
16001
|
class KolLinkWc {
|
|
16546
16002
|
constructor(hostRef) {
|
|
16547
16003
|
registerInstance(this, hostRef);
|
|
@@ -16559,19 +16015,6 @@ class KolLinkWc {
|
|
|
16559
16015
|
}
|
|
16560
16016
|
};
|
|
16561
16017
|
this.getRenderValues = () => {
|
|
16562
|
-
let goToProps = {};
|
|
16563
|
-
if (typeof this.state._selector === 'string') {
|
|
16564
|
-
goToProps = {
|
|
16565
|
-
role: 'link',
|
|
16566
|
-
tabIndex: 0,
|
|
16567
|
-
onClick: () => {
|
|
16568
|
-
scrollBySelector(this.state._selector);
|
|
16569
|
-
},
|
|
16570
|
-
onKeyPress: () => {
|
|
16571
|
-
scrollBySelector(this.state._selector);
|
|
16572
|
-
},
|
|
16573
|
-
};
|
|
16574
|
-
}
|
|
16575
16018
|
const isExternal = typeof this.state._target === 'string' && this.state._target !== '_self';
|
|
16576
16019
|
const tagAttrs = {
|
|
16577
16020
|
href: typeof this.state._href === 'string' && this.state._href.length > 0 ? this.state._href : 'javascript:void(0);',
|
|
@@ -16579,10 +16022,10 @@ class KolLinkWc {
|
|
|
16579
16022
|
rel: isExternal ? 'noopener' : undefined,
|
|
16580
16023
|
download: typeof this.state._download === 'string' ? this.state._download : undefined,
|
|
16581
16024
|
};
|
|
16582
|
-
if (
|
|
16583
|
-
devHint(`[KolLink] Es muss ein Aria-Label gesetzt werden
|
|
16025
|
+
if (this.state._hideLabel === true && !this.state._label) {
|
|
16026
|
+
devHint(`[KolLink] Es muss ein Aria-Label gesetzt werden _hide-label gesetzt ist.`);
|
|
16584
16027
|
}
|
|
16585
|
-
return { isExternal, tagAttrs
|
|
16028
|
+
return { isExternal, tagAttrs };
|
|
16586
16029
|
};
|
|
16587
16030
|
this.unsubscribeAriaCurrentSubject = ariaCurrentSubject.subscribe((event) => {
|
|
16588
16031
|
try {
|
|
@@ -16599,67 +16042,34 @@ class KolLinkWc {
|
|
|
16599
16042
|
devWarning(`The aria-current event is not valid.`);
|
|
16600
16043
|
}
|
|
16601
16044
|
});
|
|
16602
|
-
this._ariaControls = undefined;
|
|
16603
|
-
this._ariaCurrent = undefined;
|
|
16604
|
-
this._ariaExpanded = undefined;
|
|
16605
|
-
this._ariaLabel = undefined;
|
|
16606
|
-
this._ariaSelected = undefined;
|
|
16607
|
-
this._disabled = false;
|
|
16608
16045
|
this._download = undefined;
|
|
16609
16046
|
this._hideLabel = false;
|
|
16610
16047
|
this._href = undefined;
|
|
16611
|
-
this._icon = undefined;
|
|
16612
16048
|
this._icons = undefined;
|
|
16613
|
-
this._iconAlign = undefined;
|
|
16614
|
-
this._iconOnly = undefined;
|
|
16615
16049
|
this._label = undefined;
|
|
16616
16050
|
this._listenAriaCurrent = undefined;
|
|
16617
16051
|
this._on = undefined;
|
|
16618
16052
|
this._role = undefined;
|
|
16619
|
-
this._selector = undefined;
|
|
16620
|
-
this._stealth = false;
|
|
16621
16053
|
this._tabIndex = undefined;
|
|
16622
16054
|
this._target = undefined;
|
|
16623
16055
|
this._targetDescription = translate('kol-open-link-in-tab');
|
|
16624
16056
|
this._tooltipAlign = 'right';
|
|
16625
|
-
this._useCase = 'text';
|
|
16626
16057
|
this.state = {
|
|
16627
16058
|
_href: '…',
|
|
16628
16059
|
_icons: {},
|
|
16629
16060
|
};
|
|
16630
16061
|
}
|
|
16631
16062
|
render() {
|
|
16632
|
-
const { isExternal, tagAttrs
|
|
16063
|
+
const { isExternal, tagAttrs } = this.getRenderValues();
|
|
16633
16064
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
16634
|
-
return (hAsync(Host, null, hAsync("a", Object.assign({ ref: this.catchRef }, tagAttrs, { "aria-
|
|
16635
|
-
disabled: this.state._disabled === true,
|
|
16636
|
-
'skip ': this.state._stealth !== false,
|
|
16637
|
-
'icon-only': this.state._hideLabel === true,
|
|
16638
|
-
'hide-label': this.state._hideLabel === true,
|
|
16065
|
+
return (hAsync(Host, null, hAsync("a", Object.assign({ ref: this.catchRef }, tagAttrs, { "aria-current": this.state._ariaCurrent, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, class: {
|
|
16639
16066
|
'external-link': isExternal,
|
|
16640
|
-
|
|
16641
|
-
|
|
16642
|
-
validateAriaControls(value) {
|
|
16643
|
-
validateAriaControls(this, value);
|
|
16067
|
+
'hide-label': this.state._hideLabel === true,
|
|
16068
|
+
} }, this.state._on, { onClick: this.onClick, onKeyPress: this.onClick, role: this.state._role, tabIndex: this.state._tabIndex }), hAsync("kol-span-wc", { _icons: this.state._icons, _hideLabel: this.state._hideLabel, _label: hasExpertSlot ? '' : this.state._label || this.state._href }, hAsync("slot", { name: "expert", slot: "expert" })), isExternal && hAsync("kol-icon", { class: "external-link-icon", _label: this.state._targetDescription, _icons: 'codicon codicon-link-external' })), hAsync("kol-tooltip-wc", { "aria-hidden": "true", hidden: hasExpertSlot || !this.state._hideLabel, _align: this.state._tooltipAlign, _label: this.state._label || this.state._href })));
|
|
16644
16069
|
}
|
|
16645
16070
|
validateAriaCurrent(value) {
|
|
16646
16071
|
validateAriaCurrent(this, value);
|
|
16647
16072
|
}
|
|
16648
|
-
validateAriaExpanded(value) {
|
|
16649
|
-
watchBoolean(this, '_ariaExpanded', value);
|
|
16650
|
-
}
|
|
16651
|
-
validateAriaLabel(value) {
|
|
16652
|
-
this.validateLabel(value);
|
|
16653
|
-
}
|
|
16654
|
-
validateAriaSelected(value) {
|
|
16655
|
-
validateAriaSelected(this, value);
|
|
16656
|
-
}
|
|
16657
|
-
validateDisabled(value) {
|
|
16658
|
-
watchBoolean(this, '_disabled', value);
|
|
16659
|
-
if (value === true) {
|
|
16660
|
-
a11yHintDisabled();
|
|
16661
|
-
}
|
|
16662
|
-
}
|
|
16663
16073
|
validateDownload(value) {
|
|
16664
16074
|
validateDownload(this, value);
|
|
16665
16075
|
}
|
|
@@ -16669,18 +16079,9 @@ class KolLinkWc {
|
|
|
16669
16079
|
validateHref(value) {
|
|
16670
16080
|
validateHref(this, value);
|
|
16671
16081
|
}
|
|
16672
|
-
validateIcon(value) {
|
|
16673
|
-
this.validateIcons(value);
|
|
16674
|
-
}
|
|
16675
16082
|
validateIcons(value) {
|
|
16676
16083
|
validateIcons(this, value);
|
|
16677
16084
|
}
|
|
16678
|
-
validateIconAlign(value) {
|
|
16679
|
-
watchIconAlign(this, value);
|
|
16680
|
-
}
|
|
16681
|
-
validateIconOnly(value) {
|
|
16682
|
-
this.validateHideLabel(value);
|
|
16683
|
-
}
|
|
16684
16085
|
validateLabel(value) {
|
|
16685
16086
|
validateLabelWithExpertSlot(this, value);
|
|
16686
16087
|
}
|
|
@@ -16693,12 +16094,6 @@ class KolLinkWc {
|
|
|
16693
16094
|
validateRole(value) {
|
|
16694
16095
|
validateAlternativeButtonLinkRole(this, value);
|
|
16695
16096
|
}
|
|
16696
|
-
validateSelector(value) {
|
|
16697
|
-
watchString(this, '_selector', value);
|
|
16698
|
-
}
|
|
16699
|
-
validateStealth(value) {
|
|
16700
|
-
validateStealth(this, value);
|
|
16701
|
-
}
|
|
16702
16097
|
validateTabIndex(value) {
|
|
16703
16098
|
validateTabIndex(this, value);
|
|
16704
16099
|
}
|
|
@@ -16711,93 +16106,54 @@ class KolLinkWc {
|
|
|
16711
16106
|
validateTooltipAlign(value) {
|
|
16712
16107
|
validateTooltipAlign(this, value);
|
|
16713
16108
|
}
|
|
16714
|
-
validateUseCase(value) {
|
|
16715
|
-
if (typeof value === 'string') {
|
|
16716
|
-
this.state = Object.assign(Object.assign({}, this.state), { _useCase: value });
|
|
16717
|
-
}
|
|
16718
|
-
}
|
|
16719
16109
|
componentWillLoad() {
|
|
16720
|
-
var _a;
|
|
16721
|
-
this.validateAriaControls(this._ariaControls);
|
|
16722
|
-
this.validateAriaCurrent(this._ariaCurrent);
|
|
16723
|
-
this.validateAriaExpanded(this._ariaExpanded);
|
|
16724
|
-
this.validateAriaSelected(this._ariaSelected);
|
|
16725
|
-
this.validateDisabled(this._disabled);
|
|
16726
16110
|
this.validateDownload(this._download);
|
|
16727
|
-
this.validateHideLabel(this._hideLabel
|
|
16111
|
+
this.validateHideLabel(this._hideLabel);
|
|
16728
16112
|
this.validateHref(this._href);
|
|
16729
|
-
this.
|
|
16730
|
-
this.
|
|
16731
|
-
this.validateLabel((_a = this._label) !== null && _a !== void 0 ? _a : this._ariaLabel);
|
|
16113
|
+
this.validateIcons(this._icons);
|
|
16114
|
+
this.validateLabel(this._label);
|
|
16732
16115
|
this.validateListenAriaCurrent(this._listenAriaCurrent);
|
|
16733
16116
|
this.validateOn(this._on);
|
|
16734
16117
|
this.validateRole(this._role);
|
|
16735
|
-
this.validateSelector(this._selector);
|
|
16736
|
-
this.validateStealth(this._stealth);
|
|
16737
16118
|
this.validateTabIndex(this._tabIndex);
|
|
16738
16119
|
this.validateTarget(this._target);
|
|
16739
16120
|
this.validateTargetDescription(this._targetDescription);
|
|
16740
16121
|
this.validateTooltipAlign(this._tooltipAlign);
|
|
16741
|
-
this.validateUseCase(this._useCase);
|
|
16742
16122
|
}
|
|
16743
16123
|
disconnectedCallback() {
|
|
16744
16124
|
this.unsubscribeAriaCurrentSubject.unsubscribe();
|
|
16745
16125
|
}
|
|
16746
16126
|
get host() { return getElement(this); }
|
|
16747
16127
|
static get watchers() { return {
|
|
16748
|
-
"_ariaControls": ["validateAriaControls"],
|
|
16749
|
-
"_ariaCurrent": ["validateAriaCurrent"],
|
|
16750
|
-
"_ariaExpanded": ["validateAriaExpanded"],
|
|
16751
|
-
"_ariaLabel": ["validateAriaLabel"],
|
|
16752
|
-
"_ariaSelected": ["validateAriaSelected"],
|
|
16753
|
-
"_disabled": ["validateDisabled"],
|
|
16754
16128
|
"_download": ["validateDownload"],
|
|
16755
16129
|
"_hideLabel": ["validateHideLabel"],
|
|
16756
16130
|
"_href": ["validateHref"],
|
|
16757
|
-
"_icon": ["validateIcon"],
|
|
16758
16131
|
"_icons": ["validateIcons"],
|
|
16759
|
-
"_iconAlign": ["validateIconAlign"],
|
|
16760
|
-
"_iconOnly": ["validateIconOnly"],
|
|
16761
16132
|
"_label": ["validateLabel"],
|
|
16762
16133
|
"_listenAriaCurrent": ["validateListenAriaCurrent"],
|
|
16763
16134
|
"_on": ["validateOn"],
|
|
16764
16135
|
"_role": ["validateRole"],
|
|
16765
|
-
"_selector": ["validateSelector"],
|
|
16766
|
-
"_stealth": ["validateStealth"],
|
|
16767
16136
|
"_tabIndex": ["validateTabIndex"],
|
|
16768
16137
|
"_target": ["validateTarget"],
|
|
16769
16138
|
"_targetDescription": ["validateTargetDescription"],
|
|
16770
|
-
"_tooltipAlign": ["validateTooltipAlign"]
|
|
16771
|
-
"_useCase": ["validateUseCase"]
|
|
16139
|
+
"_tooltipAlign": ["validateTooltipAlign"]
|
|
16772
16140
|
}; }
|
|
16773
16141
|
static get cmpMeta() { return {
|
|
16774
16142
|
"$flags$": 4,
|
|
16775
16143
|
"$tagName$": "kol-link-wc",
|
|
16776
16144
|
"$members$": {
|
|
16777
|
-
"_ariaControls": [1, "_aria-controls"],
|
|
16778
|
-
"_ariaCurrent": [8, "_aria-current"],
|
|
16779
|
-
"_ariaExpanded": [4, "_aria-expanded"],
|
|
16780
|
-
"_ariaLabel": [1, "_aria-label"],
|
|
16781
|
-
"_ariaSelected": [4, "_aria-selected"],
|
|
16782
|
-
"_disabled": [4],
|
|
16783
16145
|
"_download": [1],
|
|
16784
16146
|
"_hideLabel": [4, "_hide-label"],
|
|
16785
16147
|
"_href": [1],
|
|
16786
|
-
"_icon": [1],
|
|
16787
16148
|
"_icons": [1],
|
|
16788
|
-
"_iconAlign": [1, "_icon-align"],
|
|
16789
|
-
"_iconOnly": [4, "_icon-only"],
|
|
16790
16149
|
"_label": [1],
|
|
16791
16150
|
"_listenAriaCurrent": [8, "_listen-aria-current"],
|
|
16792
16151
|
"_on": [16],
|
|
16793
16152
|
"_role": [1],
|
|
16794
|
-
"_selector": [1],
|
|
16795
|
-
"_stealth": [4],
|
|
16796
16153
|
"_tabIndex": [2, "_tab-index"],
|
|
16797
16154
|
"_target": [1],
|
|
16798
16155
|
"_targetDescription": [1, "_target-description"],
|
|
16799
16156
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
16800
|
-
"_useCase": [1, "_use-case"],
|
|
16801
16157
|
"state": [32]
|
|
16802
16158
|
},
|
|
16803
16159
|
"$listeners$": undefined,
|
|
@@ -16994,15 +16350,11 @@ const Adler = () => (hAsync("path", { d: "M21.72,12.77c0.04-0.33,0.06-0.67,0.06-
|
|
|
16994
16350
|
class KolLogo {
|
|
16995
16351
|
constructor(hostRef) {
|
|
16996
16352
|
registerInstance(this, hostRef);
|
|
16997
|
-
this._abbr = undefined;
|
|
16998
16353
|
this._org = undefined;
|
|
16999
16354
|
this.state = {
|
|
17000
16355
|
_org: Bundesanstalt['Informationstechnikzentrum Bund'],
|
|
17001
16356
|
};
|
|
17002
16357
|
}
|
|
17003
|
-
validateAbbr(value) {
|
|
17004
|
-
this.validateOrg(value);
|
|
17005
|
-
}
|
|
17006
16358
|
validateOrg(value) {
|
|
17007
16359
|
if (typeof value === 'string' && ENUM_AS_MAP.has(value)) {
|
|
17008
16360
|
setState(this, '_org', value);
|
|
@@ -17012,7 +16364,7 @@ class KolLogo {
|
|
|
17012
16364
|
}
|
|
17013
16365
|
}
|
|
17014
16366
|
componentWillLoad() {
|
|
17015
|
-
this.validateOrg(this._org
|
|
16367
|
+
this.validateOrg(this._org);
|
|
17016
16368
|
}
|
|
17017
16369
|
render() {
|
|
17018
16370
|
var _a;
|
|
@@ -17021,7 +16373,6 @@ class KolLogo {
|
|
|
17021
16373
|
}))) : (hAsync("tspan", { fill: "red" }, hAsync("tspan", { x: "0", dy: "1.1em" }, "Der Schl\u00FCsselwert"), hAsync("tspan", { x: "0", dy: "1.1em", "font-weight": "bold" }, "'", this.state._org, "'"), hAsync("tspan", { x: "0", dy: "1.1em" }, "ist nicht definiert."), hAsync("tspan", { x: "0", dy: "1.1em" }, "oder freigegeben.")))))));
|
|
17022
16374
|
}
|
|
17023
16375
|
static get watchers() { return {
|
|
17024
|
-
"_abbr": ["validateAbbr"],
|
|
17025
16376
|
"_org": ["validateOrg"]
|
|
17026
16377
|
}; }
|
|
17027
16378
|
static get style() { return {
|
|
@@ -17031,7 +16382,6 @@ class KolLogo {
|
|
|
17031
16382
|
"$flags$": 41,
|
|
17032
16383
|
"$tagName$": "kol-logo",
|
|
17033
16384
|
"$members$": {
|
|
17034
|
-
"_abbr": [1],
|
|
17035
16385
|
"_org": [1],
|
|
17036
16386
|
"state": [32]
|
|
17037
16387
|
},
|
|
@@ -17052,7 +16402,6 @@ class KolModal {
|
|
|
17052
16402
|
}
|
|
17053
16403
|
};
|
|
17054
16404
|
this._activeElement = undefined;
|
|
17055
|
-
this._ariaLabel = undefined;
|
|
17056
16405
|
this._label = undefined;
|
|
17057
16406
|
this._on = undefined;
|
|
17058
16407
|
this._width = '100%';
|
|
@@ -17102,9 +16451,6 @@ class KolModal {
|
|
|
17102
16451
|
},
|
|
17103
16452
|
});
|
|
17104
16453
|
}
|
|
17105
|
-
validateAriaLabel(value) {
|
|
17106
|
-
this.validateLabel(value);
|
|
17107
|
-
}
|
|
17108
16454
|
validateLabel(value) {
|
|
17109
16455
|
validateLabel(this, value);
|
|
17110
16456
|
}
|
|
@@ -17125,13 +16471,12 @@ class KolModal {
|
|
|
17125
16471
|
}
|
|
17126
16472
|
componentWillLoad() {
|
|
17127
16473
|
this.validateActiveElement(this._activeElement);
|
|
17128
|
-
this.validateLabel(this._label
|
|
16474
|
+
this.validateLabel(this._label);
|
|
17129
16475
|
this.validateOn(this._on);
|
|
17130
16476
|
this.validateWidth(this._width);
|
|
17131
16477
|
}
|
|
17132
16478
|
static get watchers() { return {
|
|
17133
16479
|
"_activeElement": ["validateActiveElement"],
|
|
17134
|
-
"_ariaLabel": ["validateAriaLabel"],
|
|
17135
16480
|
"_label": ["validateLabel"],
|
|
17136
16481
|
"_on": ["validateOn"],
|
|
17137
16482
|
"_width": ["validateWidth"]
|
|
@@ -17144,7 +16489,6 @@ class KolModal {
|
|
|
17144
16489
|
"$tagName$": "kol-modal",
|
|
17145
16490
|
"$members$": {
|
|
17146
16491
|
"_activeElement": [1040],
|
|
17147
|
-
"_ariaLabel": [1, "_aria-label"],
|
|
17148
16492
|
"_label": [1],
|
|
17149
16493
|
"_on": [16],
|
|
17150
16494
|
"_width": [1],
|
|
@@ -17160,10 +16504,6 @@ const validateCollapsible = (component, value) => {
|
|
|
17160
16504
|
watchBoolean(component, '_collapsible', value);
|
|
17161
16505
|
};
|
|
17162
16506
|
|
|
17163
|
-
const validateHasCompactButton = (component, value) => {
|
|
17164
|
-
watchBoolean(component, '_hasCompactButton', value);
|
|
17165
|
-
};
|
|
17166
|
-
|
|
17167
16507
|
const defaultStyleCss$e = "/*!@:host*/.sc-kol-nav-default-h{--a11y-min-size:44px;font-size:inherit}/*!@**/*.sc-kol-nav-default{font-family:Verdana;hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}/*!@[role='button'],\nbutton:not([role='link']),\nkol-input .input*/[role='button'].sc-kol-nav-default,button.sc-kol-nav-default:not([role='link']),kol-input.sc-kol-nav-default .input.sc-kol-nav-default{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}/*!@a,\nbutton,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\ninput,\noption,\nselect,\ntextarea*/a.sc-kol-nav-default,button.sc-kol-nav-default,h1.sc-kol-nav-default,h2.sc-kol-nav-default,h3.sc-kol-nav-default,h4.sc-kol-nav-default,h5.sc-kol-nav-default,h6.sc-kol-nav-default,input.sc-kol-nav-default,option.sc-kol-nav-default,select.sc-kol-nav-default,textarea.sc-kol-nav-default{font-family:inherit;font-size:inherit}/*!@:is(a, button)*/.sc-kol-nav-default:is(a,button).sc-kol-nav-default{background-color:transparent;border:none;margin:0;padding:0;width:100%}/*!@:host*/.sc-kol-nav-default-h{max-width:100%}/*!@**/*.sc-kol-nav-default{box-sizing:border-box}/*!@kol-span-wc*/kol-span-wc.sc-kol-nav-default{display:grid;place-items:center}/*!@kol-span-wc > span*/kol-span-wc.sc-kol-nav-default>span.sc-kol-nav-default{display:flex;place-items:center}/*!@a,\nbutton*/a.sc-kol-nav-default,button.sc-kol-nav-default{cursor:pointer}/*!@button,\ninput,\noption,\nselect,\ntextarea*/button.sc-kol-nav-default,input.sc-kol-nav-default,option.sc-kol-nav-default,select.sc-kol-nav-default,textarea.sc-kol-nav-default{font-family:inherit}/*!@.icon-only > kol-span-wc > span > span*/.icon-only.sc-kol-nav-default>kol-span-wc.sc-kol-nav-default>span.sc-kol-nav-default>span.sc-kol-nav-default{display:none}/*!@:host > div*/.sc-kol-nav-default-h>div.sc-kol-nav-default{display:grid;place-items:center}/*!@nav*/nav.sc-kol-nav-default{width:100%}/*!@.list*/.list.sc-kol-nav-default{display:flex;list-style:none;margin:0;padding:0}/*!@.list.vertical*/.list.vertical.sc-kol-nav-default{flex-direction:column}/*!@.entry*/.entry.sc-kol-nav-default{display:flex}/*!@.entry kol-button-wc:first-child,\n.entry kol-link-wc,\n.entry kol-span-wc*/.entry.sc-kol-nav-default kol-button-wc.sc-kol-nav-default:first-child,.entry.sc-kol-nav-default kol-link-wc.sc-kol-nav-default,.entry.sc-kol-nav-default kol-span-wc.sc-kol-nav-default{flex-grow:1}/*!@.entry kol-span-wc*/.entry.sc-kol-nav-default kol-span-wc.sc-kol-nav-default{justify-items:start}";
|
|
17168
16508
|
|
|
17169
16509
|
class KolNav {
|
|
@@ -17185,24 +16525,18 @@ class KolNav {
|
|
|
17185
16525
|
})));
|
|
17186
16526
|
};
|
|
17187
16527
|
this._ariaCurrentValue = false;
|
|
17188
|
-
this._ariaLabel = undefined;
|
|
17189
16528
|
this._collapsible = true;
|
|
17190
|
-
this._compact = false;
|
|
17191
|
-
this._hasCompactButton = false;
|
|
17192
16529
|
this._hideLabel = false;
|
|
17193
16530
|
this._label = undefined;
|
|
17194
16531
|
this._links = undefined;
|
|
17195
16532
|
this._orientation = 'vertical';
|
|
17196
|
-
this._variant = 'primary';
|
|
17197
16533
|
this.state = {
|
|
17198
16534
|
_ariaCurrentValue: false,
|
|
17199
16535
|
_collapsible: true,
|
|
17200
|
-
_hasCompactButton: false,
|
|
17201
16536
|
_hideLabel: false,
|
|
17202
16537
|
_label: '…',
|
|
17203
16538
|
_links: [],
|
|
17204
16539
|
_orientation: 'vertical',
|
|
17205
|
-
_variant: 'primary',
|
|
17206
16540
|
};
|
|
17207
16541
|
}
|
|
17208
16542
|
entry(collapsible, hideLabel, hasChildren, link, expanded) {
|
|
@@ -17219,42 +16553,22 @@ class KolNav {
|
|
|
17219
16553
|
active,
|
|
17220
16554
|
expanded,
|
|
17221
16555
|
'has-children': hasChildren,
|
|
17222
|
-
selected: expanded,
|
|
17223
16556
|
}, key: index }, this.entry(collapsible, hideLabel, hasChildren, link, active), expanded ? (hAsync(this.linkList, { collapsible: collapsible, hideLabel: hideLabel, deep: deep + 1, links: link._children || [], orientation: orientation })) : ('')));
|
|
17224
16557
|
}
|
|
17225
16558
|
render() {
|
|
17226
|
-
let hasCompactButton = this.state._hasCompactButton;
|
|
17227
|
-
if (this.state._orientation === 'horizontal' && this.state._hasCompactButton === true) {
|
|
17228
|
-
hasCompactButton = false;
|
|
17229
|
-
devWarning(`[KolNav] Wenn eine horizontale Navigation verwendet wird, kann die Option _hasCompactButton nicht aktiviert werden.`);
|
|
17230
|
-
}
|
|
17231
16559
|
const collapsible = this.state._collapsible === true;
|
|
17232
16560
|
const hideLabel = this.state._hideLabel === true;
|
|
17233
16561
|
const orientation = this.state._orientation;
|
|
17234
16562
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
17235
16563
|
[orientation]: true,
|
|
17236
|
-
|
|
17237
|
-
} }, hAsync("nav", { "aria-label": this.state._label, id: "nav" }, hAsync(this.linkList, { collapsible: collapsible, hideLabel: hideLabel, deep: 0, links: this.state._links, orientation: orientation })), hasCompactButton && (hAsync("div", { class: "compact" }, hAsync("kol-button", { _ariaControls: "nav", _ariaExpanded: !hideLabel, _icons: hideLabel ? 'codicon codicon-chevron-right' : 'codicon codicon-chevron-left', _hideLabel: true, _label: translate(hideLabel ? 'kol-nav-maximize' : 'kol-nav-minimize'), _on: {
|
|
17238
|
-
onClick: () => {
|
|
17239
|
-
this.state = Object.assign(Object.assign({}, this.state), { _hideLabel: this.state._hideLabel === false });
|
|
17240
|
-
},
|
|
17241
|
-
}, _tooltipAlign: "right", _variant: "ghost" }))))));
|
|
16564
|
+
} }, hAsync("nav", { "aria-label": this.state._label, id: "nav" }, hAsync(this.linkList, { collapsible: collapsible, hideLabel: hideLabel, deep: 0, links: this.state._links, orientation: orientation })))));
|
|
17242
16565
|
}
|
|
17243
16566
|
validateAriaCurrentValue(value) {
|
|
17244
16567
|
watchValidator(this, '_ariaCurrentValue', (value) => value === true || value === 'date' || value === 'location' || value === 'page' || value === 'step' || value === 'time', new Set(['boolean', 'String {data, location, page, step, time}']), value);
|
|
17245
16568
|
}
|
|
17246
|
-
validateAriaLabel(value) {
|
|
17247
|
-
this.validateLabel(value);
|
|
17248
|
-
}
|
|
17249
16569
|
validateCollapsible(value) {
|
|
17250
16570
|
validateCollapsible(this, value);
|
|
17251
16571
|
}
|
|
17252
|
-
validateCompact(value) {
|
|
17253
|
-
this.validateHideLabel(value);
|
|
17254
|
-
}
|
|
17255
|
-
validateHasCompactButton(value) {
|
|
17256
|
-
validateHasCompactButton(this, value);
|
|
17257
|
-
}
|
|
17258
16572
|
validateHideLabel(value) {
|
|
17259
16573
|
validateHideLabel(this, value);
|
|
17260
16574
|
}
|
|
@@ -17275,35 +16589,24 @@ class KolNav {
|
|
|
17275
16589
|
defaultValue: 'vertical',
|
|
17276
16590
|
});
|
|
17277
16591
|
}
|
|
17278
|
-
validateVariant(value) {
|
|
17279
|
-
watchValidator(this, '_variant', (value) => value === 'primary' || value === 'secondary', new Set(['KoliBriNavVariant {primary, secondary}']), value, {
|
|
17280
|
-
defaultValue: 'primary',
|
|
17281
|
-
});
|
|
17282
|
-
}
|
|
17283
16592
|
componentWillLoad() {
|
|
17284
16593
|
this.validateAriaCurrentValue(this._ariaCurrentValue);
|
|
17285
16594
|
this.validateCollapsible(this._collapsible);
|
|
17286
|
-
this.validateHideLabel(this._hideLabel
|
|
17287
|
-
this.
|
|
17288
|
-
this.validateLabel(this._label || this._ariaLabel, undefined, true);
|
|
16595
|
+
this.validateHideLabel(this._hideLabel);
|
|
16596
|
+
this.validateLabel(this._label, undefined, true);
|
|
17289
16597
|
this.validateLinks(this._links);
|
|
17290
16598
|
this.validateOrientation(this._orientation);
|
|
17291
|
-
this.validateVariant(this._variant);
|
|
17292
16599
|
}
|
|
17293
16600
|
disconnectedCallback() {
|
|
17294
16601
|
removeNavLabel(this.state._label);
|
|
17295
16602
|
}
|
|
17296
16603
|
static get watchers() { return {
|
|
17297
16604
|
"_ariaCurrentValue": ["validateAriaCurrentValue"],
|
|
17298
|
-
"_ariaLabel": ["validateAriaLabel"],
|
|
17299
16605
|
"_collapsible": ["validateCollapsible"],
|
|
17300
|
-
"_compact": ["validateCompact"],
|
|
17301
|
-
"_hasCompactButton": ["validateHasCompactButton"],
|
|
17302
16606
|
"_hideLabel": ["validateHideLabel"],
|
|
17303
16607
|
"_label": ["validateLabel"],
|
|
17304
16608
|
"_links": ["validateLinks"],
|
|
17305
|
-
"_orientation": ["validateOrientation"]
|
|
17306
|
-
"_variant": ["validateVariant"]
|
|
16609
|
+
"_orientation": ["validateOrientation"]
|
|
17307
16610
|
}; }
|
|
17308
16611
|
static get style() { return {
|
|
17309
16612
|
default: defaultStyleCss$e
|
|
@@ -17313,15 +16616,11 @@ class KolNav {
|
|
|
17313
16616
|
"$tagName$": "kol-nav",
|
|
17314
16617
|
"$members$": {
|
|
17315
16618
|
"_ariaCurrentValue": [8, "_aria-current-value"],
|
|
17316
|
-
"_ariaLabel": [1, "_aria-label"],
|
|
17317
16619
|
"_collapsible": [4],
|
|
17318
|
-
"_compact": [4],
|
|
17319
|
-
"_hasCompactButton": [4, "_has-compact-button"],
|
|
17320
16620
|
"_hideLabel": [4, "_hide-label"],
|
|
17321
16621
|
"_label": [1],
|
|
17322
16622
|
"_links": [1],
|
|
17323
16623
|
"_orientation": [1],
|
|
17324
|
-
"_variant": [1],
|
|
17325
16624
|
"state": [32]
|
|
17326
16625
|
},
|
|
17327
16626
|
"$listeners$": undefined,
|
|
@@ -17457,7 +16756,6 @@ class KolPagination {
|
|
|
17457
16756
|
this._on = undefined;
|
|
17458
16757
|
this._siblingCount = 1;
|
|
17459
16758
|
this._tooltipAlign = 'top';
|
|
17460
|
-
this._total = undefined;
|
|
17461
16759
|
this._max = undefined;
|
|
17462
16760
|
this._variant = 'normal';
|
|
17463
16761
|
this.state = {
|
|
@@ -17506,7 +16804,7 @@ class KolPagination {
|
|
|
17506
16804
|
return null;
|
|
17507
16805
|
}
|
|
17508
16806
|
});
|
|
17509
|
-
return (hAsync(Host, null, hAsync("nav", { "aria-label": this.state._label }, hAsync("ul", { class: "navigation-list" }, this.state._hasButtons.first && (hAsync("li", null, hAsync("kol-button", { class: "first", exportparts: "icon", _customClass: this.state._customClass, _disabled: this.state._page <= 1,
|
|
16807
|
+
return (hAsync(Host, null, hAsync("nav", { "aria-label": this.state._label }, hAsync("ul", { class: "navigation-list" }, this.state._hasButtons.first && (hAsync("li", null, hAsync("kol-button", { class: "first", exportparts: "icon", _customClass: this.state._customClass, _disabled: this.state._page <= 1, _icons: leftDoubleArrowIcon, _hideLabel: true, _label: translate('kol-page-first'), _on: this.onGoToFirst, _variant: this.state._variant, _tooltipAlign: this.state._tooltipAlign }))), this.state._hasButtons.previous && (hAsync("li", null, hAsync("kol-button", { class: "previous", exportparts: "icon", _customClass: this.state._customClass, _disabled: this.state._page <= 1, _icons: leftSingleArrow, _hideLabel: true, _label: translate('kol-page-back'), _on: this.onGoBackward, _variant: this.state._variant, _tooltipAlign: this.state._tooltipAlign }))), pageButtons, this.state._hasButtons.next && (hAsync("li", null, hAsync("kol-button", { class: "next", exportparts: "icon", _customClass: this.state._customClass, _disabled: count <= this.state._page, _icons: rightSingleArrowIcon, _hideLabel: true, _label: translate('kol-page-next'), _on: this.onGoForward, _variant: this.state._variant, _tooltipAlign: this.state._tooltipAlign }))), this.state._hasButtons.last && (hAsync("li", null, hAsync("kol-button", { class: "last", exportparts: "icon", _customClass: this.state._customClass, _disabled: count <= this.state._page, _icons: rightDoubleArrowIcon, _hideLabel: true, _label: translate('kol-page-last'), _on: this.onGoToEnd, _variant: this.state._variant, _tooltipAlign: this.state._tooltipAlign }))))), ((_a = this.state._pageSizeOptions) === null || _a === void 0 ? void 0 : _a.length) > 0 && (hAsync("kol-select", { _hideLabel: true, _id: `pagination-size-${this.nonce}`, _label: translate('kol-entries-per-site'), _options: this.state._pageSizeOptions, _on: {
|
|
17510
16808
|
onChange: this.onChangePageSize,
|
|
17511
16809
|
}, _value: [this.state._pageSize] }))));
|
|
17512
16810
|
}
|
|
@@ -17518,7 +16816,7 @@ class KolPagination {
|
|
|
17518
16816
|
}, _variant: this.state._variant })));
|
|
17519
16817
|
}
|
|
17520
16818
|
getSelectedPageButton(page) {
|
|
17521
|
-
return (hAsync("li", null, hAsync("kol-button-wc", { class: "selected", key: `${this.nonce}-selected`, _customClass: this.state._customClass, _disabled: true,
|
|
16819
|
+
return (hAsync("li", null, hAsync("kol-button-wc", { class: "selected", key: `${this.nonce}-selected`, _customClass: this.state._customClass, _disabled: true, _label: `${page}`, _variant: this.state._variant })));
|
|
17522
16820
|
}
|
|
17523
16821
|
validateBoundaryCount(value) {
|
|
17524
16822
|
watchNumber(this, '_boundaryCount', Math.max(0, value !== null && value !== void 0 ? value : 1));
|
|
@@ -17603,9 +16901,6 @@ class KolPagination {
|
|
|
17603
16901
|
validateSiblingCount(value) {
|
|
17604
16902
|
watchNumber(this, '_siblingCount', Math.max(0, value !== null && value !== void 0 ? value : 1));
|
|
17605
16903
|
}
|
|
17606
|
-
validateTotal(value) {
|
|
17607
|
-
this.validateMax(value);
|
|
17608
|
-
}
|
|
17609
16904
|
validateMax(value) {
|
|
17610
16905
|
validateMax(this, value, {
|
|
17611
16906
|
hooks: {
|
|
@@ -17634,7 +16929,7 @@ class KolPagination {
|
|
|
17634
16929
|
this.validatePageSizeOptions(this._pageSizeOptions);
|
|
17635
16930
|
this.validateSiblingCount(this._siblingCount);
|
|
17636
16931
|
this.validateTooltipAlign(this._tooltipAlign);
|
|
17637
|
-
this.validateMax(this._max
|
|
16932
|
+
this.validateMax(this._max);
|
|
17638
16933
|
this.validateVariant(this._variant);
|
|
17639
16934
|
this.validatePage(this._page);
|
|
17640
16935
|
}
|
|
@@ -17651,7 +16946,6 @@ class KolPagination {
|
|
|
17651
16946
|
"_pageSize": ["validatePageSize"],
|
|
17652
16947
|
"_pageSizeOptions": ["validatePageSizeOptions"],
|
|
17653
16948
|
"_siblingCount": ["validateSiblingCount"],
|
|
17654
|
-
"_total": ["validateTotal"],
|
|
17655
16949
|
"_max": ["validateMax"],
|
|
17656
16950
|
"_tooltipAlign": ["validateTooltipAlign"],
|
|
17657
16951
|
"_variant": ["validateVariant"]
|
|
@@ -17673,7 +16967,6 @@ class KolPagination {
|
|
|
17673
16967
|
"_on": [16],
|
|
17674
16968
|
"_siblingCount": [2, "_sibling-count"],
|
|
17675
16969
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
17676
|
-
"_total": [2],
|
|
17677
16970
|
"_max": [2],
|
|
17678
16971
|
"_variant": [1],
|
|
17679
16972
|
"state": [32]
|
|
@@ -19263,7 +18556,6 @@ class KolProcess {
|
|
|
19263
18556
|
registerInstance(this, hostRef);
|
|
19264
18557
|
this._label = undefined;
|
|
19265
18558
|
this._max = undefined;
|
|
19266
|
-
this._type = undefined;
|
|
19267
18559
|
this._unit = '%';
|
|
19268
18560
|
this._value = undefined;
|
|
19269
18561
|
this._variant = undefined;
|
|
@@ -19289,9 +18581,6 @@ class KolProcess {
|
|
|
19289
18581
|
required: true,
|
|
19290
18582
|
});
|
|
19291
18583
|
}
|
|
19292
|
-
validateType(value) {
|
|
19293
|
-
this.validateVariant(value);
|
|
19294
|
-
}
|
|
19295
18584
|
validateUnit(value) {
|
|
19296
18585
|
watchString(this, '_unit', value);
|
|
19297
18586
|
}
|
|
@@ -19311,7 +18600,7 @@ class KolProcess {
|
|
|
19311
18600
|
this.validateMax(this._max);
|
|
19312
18601
|
this.validateUnit(this._unit);
|
|
19313
18602
|
this.validateValue(this._value);
|
|
19314
|
-
this.validateVariant(this._variant
|
|
18603
|
+
this.validateVariant(this._variant);
|
|
19315
18604
|
this.interval = setInterval(() => {
|
|
19316
18605
|
if (this.state._liveValue !== this.state._value) {
|
|
19317
18606
|
this.state = Object.assign(Object.assign({}, this.state), { _liveValue: this.state._value });
|
|
@@ -19324,7 +18613,6 @@ class KolProcess {
|
|
|
19324
18613
|
static get watchers() { return {
|
|
19325
18614
|
"_label": ["validateLabel"],
|
|
19326
18615
|
"_max": ["validateMax"],
|
|
19327
|
-
"_type": ["validateType"],
|
|
19328
18616
|
"_unit": ["validateUnit"],
|
|
19329
18617
|
"_value": ["validateValue"],
|
|
19330
18618
|
"_variant": ["validateVariant"]
|
|
@@ -19338,7 +18626,6 @@ class KolProcess {
|
|
|
19338
18626
|
"$members$": {
|
|
19339
18627
|
"_label": [1],
|
|
19340
18628
|
"_max": [2],
|
|
19341
|
-
"_type": [1],
|
|
19342
18629
|
"_unit": [1],
|
|
19343
18630
|
"_value": [2],
|
|
19344
18631
|
"_variant": [1],
|
|
@@ -19355,7 +18642,6 @@ const defaultStyleCss$b = "/*!@:host*/.sc-kol-quote-default-h{--a11y-min-size:44
|
|
|
19355
18642
|
class KolQuote {
|
|
19356
18643
|
constructor(hostRef) {
|
|
19357
18644
|
registerInstance(this, hostRef);
|
|
19358
|
-
this._caption = undefined;
|
|
19359
18645
|
this._label = undefined;
|
|
19360
18646
|
this._href = undefined;
|
|
19361
18647
|
this._quote = undefined;
|
|
@@ -19366,9 +18652,6 @@ class KolQuote {
|
|
|
19366
18652
|
_variant: 'inline',
|
|
19367
18653
|
};
|
|
19368
18654
|
}
|
|
19369
|
-
validateCaption(value) {
|
|
19370
|
-
this.validateLabel(value);
|
|
19371
|
-
}
|
|
19372
18655
|
validateLabel(value) {
|
|
19373
18656
|
validateLabel(this, value);
|
|
19374
18657
|
}
|
|
@@ -19387,7 +18670,7 @@ class KolQuote {
|
|
|
19387
18670
|
}
|
|
19388
18671
|
componentWillLoad() {
|
|
19389
18672
|
this.validateHref(this._href);
|
|
19390
|
-
this.validateLabel(this._label
|
|
18673
|
+
this.validateLabel(this._label);
|
|
19391
18674
|
this.validateQuote(this._quote);
|
|
19392
18675
|
this.validateVariant(this._variant);
|
|
19393
18676
|
}
|
|
@@ -19398,7 +18681,6 @@ class KolQuote {
|
|
|
19398
18681
|
} }, this.state._variant === 'block' ? (hAsync("blockquote", { cite: this.state._href }, this.state._quote, hAsync("span", { "aria-hidden": !hasExpertSlot ? 'true' : undefined, hidden: !hasExpertSlot }, hAsync("slot", { name: "expert" })))) : (hAsync("q", { cite: this.state._href }, this.state._quote, hAsync("span", { "aria-hidden": !hasExpertSlot ? 'true' : undefined, hidden: !hasExpertSlot }, hAsync("slot", { name: "expert" })))), typeof this.state._label === 'string' && this.state._label.length > 0 && (hAsync("figcaption", null, hAsync("cite", null, hAsync("kol-link", { _href: this.state._href, _label: this.state._label, _target: "_blank" })))))));
|
|
19399
18682
|
}
|
|
19400
18683
|
static get watchers() { return {
|
|
19401
|
-
"_caption": ["validateCaption"],
|
|
19402
18684
|
"_label": ["validateLabel"],
|
|
19403
18685
|
"_href": ["validateHref"],
|
|
19404
18686
|
"_quote": ["validateQuote"],
|
|
@@ -19411,7 +18693,6 @@ class KolQuote {
|
|
|
19411
18693
|
"$flags$": 41,
|
|
19412
18694
|
"$tagName$": "kol-quote",
|
|
19413
18695
|
"$members$": {
|
|
19414
|
-
"_caption": [1],
|
|
19415
18696
|
"_label": [1],
|
|
19416
18697
|
"_href": [1],
|
|
19417
18698
|
"_quote": [1],
|
|
@@ -19475,9 +18756,6 @@ class SelectController extends InputIconController {
|
|
|
19475
18756
|
},
|
|
19476
18757
|
});
|
|
19477
18758
|
}
|
|
19478
|
-
validateHeight(value) {
|
|
19479
|
-
watchString(this.component, '_height', value);
|
|
19480
|
-
}
|
|
19481
18759
|
validateOptions(value) {
|
|
19482
18760
|
validateOptionsWithOptgroup(this.component, value, {
|
|
19483
18761
|
hooks: {
|
|
@@ -19516,12 +18794,11 @@ class SelectController extends InputIconController {
|
|
|
19516
18794
|
});
|
|
19517
18795
|
}
|
|
19518
18796
|
};
|
|
19519
|
-
this.validateHeight(this.component._height);
|
|
19520
18797
|
this.validateHideError(this.component._hideError);
|
|
19521
|
-
this.validateOptions(this.component._options
|
|
18798
|
+
this.validateOptions(this.component._options);
|
|
19522
18799
|
this.validateMultiple(this.component._multiple);
|
|
19523
18800
|
this.validateRequired(this.component._required);
|
|
19524
|
-
this.validateRows(this.component._rows
|
|
18801
|
+
this.validateRows(this.component._rows);
|
|
19525
18802
|
this.validateValue(this.component._value);
|
|
19526
18803
|
}
|
|
19527
18804
|
}
|
|
@@ -19550,9 +18827,7 @@ class KolSelect {
|
|
|
19550
18827
|
return (hAsync(Host, { class: { 'has-value': this.state._hasValue } }, hAsync("kol-input", { class: {
|
|
19551
18828
|
'hide-label': !!this.state._hideLabel,
|
|
19552
18829
|
select: true,
|
|
19553
|
-
}, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _required: this.state._required, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus(); } }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot",
|
|
19554
|
-
height: this.state._height,
|
|
19555
|
-
}, onClick: this.controller.onFacade.onClick,
|
|
18830
|
+
}, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _required: this.state._required, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus(); } }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot", { name: "expert" }) : this.state._label), hAsync("div", { slot: "input" }, hAsync("select", { ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, multiple: this.state._multiple, name: this.state._name, required: this.state._required, size: this.state._rows, spellcheck: "false", onClick: this.controller.onFacade.onClick,
|
|
19556
18831
|
onBlur: this.controller.onFacade.onBlur,
|
|
19557
18832
|
onFocus: this.controller.onFacade.onFocus, onChange: this.onChange }, this.state._options.map((option, index) => {
|
|
19558
18833
|
const key = `-${index}`;
|
|
@@ -19586,22 +18861,18 @@ class KolSelect {
|
|
|
19586
18861
|
this._alert = true;
|
|
19587
18862
|
this._disabled = false;
|
|
19588
18863
|
this._error = undefined;
|
|
19589
|
-
this._height = undefined;
|
|
19590
18864
|
this._hideError = false;
|
|
19591
18865
|
this._hideLabel = false;
|
|
19592
18866
|
this._hint = '';
|
|
19593
|
-
this._icon = undefined;
|
|
19594
18867
|
this._icons = undefined;
|
|
19595
18868
|
this._id = undefined;
|
|
19596
18869
|
this._label = undefined;
|
|
19597
|
-
this._list = undefined;
|
|
19598
18870
|
this._multiple = false;
|
|
19599
18871
|
this._name = undefined;
|
|
19600
18872
|
this._on = undefined;
|
|
19601
18873
|
this._options = undefined;
|
|
19602
18874
|
this._required = false;
|
|
19603
18875
|
this._rows = undefined;
|
|
19604
|
-
this._size = undefined;
|
|
19605
18876
|
this._syncValueBySelector = undefined;
|
|
19606
18877
|
this._tabIndex = undefined;
|
|
19607
18878
|
this._tooltipAlign = 'top';
|
|
@@ -19609,7 +18880,6 @@ class KolSelect {
|
|
|
19609
18880
|
this._value = undefined;
|
|
19610
18881
|
this.state = {
|
|
19611
18882
|
_hasValue: false,
|
|
19612
|
-
_height: '',
|
|
19613
18883
|
_hideError: false,
|
|
19614
18884
|
_id: `id-${nonce()}`,
|
|
19615
18885
|
_label: '',
|
|
@@ -19631,9 +18901,6 @@ class KolSelect {
|
|
|
19631
18901
|
validateError(value) {
|
|
19632
18902
|
this.controller.validateError(value);
|
|
19633
18903
|
}
|
|
19634
|
-
validateHeight(value) {
|
|
19635
|
-
this.controller.validateHeight(value);
|
|
19636
|
-
}
|
|
19637
18904
|
validateHideError(value) {
|
|
19638
18905
|
this.controller.validateHideError(value);
|
|
19639
18906
|
}
|
|
@@ -19643,9 +18910,6 @@ class KolSelect {
|
|
|
19643
18910
|
validateHint(value) {
|
|
19644
18911
|
this.controller.validateHint(value);
|
|
19645
18912
|
}
|
|
19646
|
-
validateIcon(value) {
|
|
19647
|
-
this.validateIcons(value);
|
|
19648
|
-
}
|
|
19649
18913
|
validateIcons(value) {
|
|
19650
18914
|
this.controller.validateIcons(value);
|
|
19651
18915
|
}
|
|
@@ -19655,9 +18919,6 @@ class KolSelect {
|
|
|
19655
18919
|
validateLabel(value) {
|
|
19656
18920
|
this.controller.validateLabel(value);
|
|
19657
18921
|
}
|
|
19658
|
-
validateList(value) {
|
|
19659
|
-
this.validateOptions(value);
|
|
19660
|
-
}
|
|
19661
18922
|
validateMultiple(value) {
|
|
19662
18923
|
this.controller.validateMultiple(value);
|
|
19663
18924
|
}
|
|
@@ -19676,9 +18937,6 @@ class KolSelect {
|
|
|
19676
18937
|
validateRows(value) {
|
|
19677
18938
|
this.controller.validateRows(value);
|
|
19678
18939
|
}
|
|
19679
|
-
validateSize(value) {
|
|
19680
|
-
this.controller.validateRows(value);
|
|
19681
|
-
}
|
|
19682
18940
|
validateSyncValueBySelector(value) {
|
|
19683
18941
|
this.controller.validateSyncValueBySelector(value);
|
|
19684
18942
|
}
|
|
@@ -19704,22 +18962,18 @@ class KolSelect {
|
|
|
19704
18962
|
"_alert": ["validateAlert"],
|
|
19705
18963
|
"_disabled": ["validateDisabled"],
|
|
19706
18964
|
"_error": ["validateError"],
|
|
19707
|
-
"_height": ["validateHeight"],
|
|
19708
18965
|
"_hideError": ["validateHideError"],
|
|
19709
18966
|
"_hideLabel": ["validateHideLabel"],
|
|
19710
18967
|
"_hint": ["validateHint"],
|
|
19711
|
-
"_icon": ["validateIcon"],
|
|
19712
18968
|
"_icons": ["validateIcons"],
|
|
19713
18969
|
"_id": ["validateId"],
|
|
19714
18970
|
"_label": ["validateLabel"],
|
|
19715
|
-
"_list": ["validateList"],
|
|
19716
18971
|
"_multiple": ["validateMultiple"],
|
|
19717
18972
|
"_name": ["validateName"],
|
|
19718
18973
|
"_on": ["validateOn"],
|
|
19719
18974
|
"_options": ["validateOptions"],
|
|
19720
18975
|
"_required": ["validateRequired"],
|
|
19721
18976
|
"_rows": ["validateRows"],
|
|
19722
|
-
"_size": ["validateSize"],
|
|
19723
18977
|
"_syncValueBySelector": ["validateSyncValueBySelector"],
|
|
19724
18978
|
"_tabIndex": ["validateTabIndex"],
|
|
19725
18979
|
"_touched": ["validateTouched"],
|
|
@@ -19736,22 +18990,18 @@ class KolSelect {
|
|
|
19736
18990
|
"_alert": [1540],
|
|
19737
18991
|
"_disabled": [4],
|
|
19738
18992
|
"_error": [1],
|
|
19739
|
-
"_height": [1],
|
|
19740
18993
|
"_hideError": [1540, "_hide-error"],
|
|
19741
18994
|
"_hideLabel": [4, "_hide-label"],
|
|
19742
18995
|
"_hint": [1],
|
|
19743
|
-
"_icon": [1],
|
|
19744
18996
|
"_icons": [1],
|
|
19745
18997
|
"_id": [1],
|
|
19746
18998
|
"_label": [1],
|
|
19747
|
-
"_list": [1],
|
|
19748
18999
|
"_multiple": [4],
|
|
19749
19000
|
"_name": [1],
|
|
19750
19001
|
"_on": [16],
|
|
19751
19002
|
"_options": [1],
|
|
19752
19003
|
"_required": [4],
|
|
19753
19004
|
"_rows": [2],
|
|
19754
|
-
"_size": [2],
|
|
19755
19005
|
"_syncValueBySelector": [1, "_sync-value-by-selector"],
|
|
19756
19006
|
"_tabIndex": [2, "_tab-index"],
|
|
19757
19007
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
@@ -19770,7 +19020,6 @@ const defaultStyleCss$9 = "/*!@:host*/.sc-kol-skip-nav-default-h{--a11y-min-size
|
|
|
19770
19020
|
class KolSkipNav {
|
|
19771
19021
|
constructor(hostRef) {
|
|
19772
19022
|
registerInstance(this, hostRef);
|
|
19773
|
-
this._ariaLabel = undefined;
|
|
19774
19023
|
this._label = undefined;
|
|
19775
19024
|
this._links = undefined;
|
|
19776
19025
|
this.state = {
|
|
@@ -19783,9 +19032,6 @@ class KolSkipNav {
|
|
|
19783
19032
|
return (hAsync("li", { key: index }, hAsync("kol-link-wc", Object.assign({}, link))));
|
|
19784
19033
|
}))));
|
|
19785
19034
|
}
|
|
19786
|
-
validateAriaLabel(value) {
|
|
19787
|
-
this.validateLabel(value);
|
|
19788
|
-
}
|
|
19789
19035
|
validateLabel(value, _oldValue, initial = false) {
|
|
19790
19036
|
if (!initial) {
|
|
19791
19037
|
removeNavLabel(this.state._label);
|
|
@@ -19797,14 +19043,13 @@ class KolSkipNav {
|
|
|
19797
19043
|
watchNavLinks('KolSkipNav', this, value);
|
|
19798
19044
|
}
|
|
19799
19045
|
componentWillLoad() {
|
|
19800
|
-
this.validateLabel(this._label
|
|
19046
|
+
this.validateLabel(this._label, undefined, true);
|
|
19801
19047
|
this.validateLinks(this._links);
|
|
19802
19048
|
}
|
|
19803
19049
|
disconnectedCallback() {
|
|
19804
19050
|
removeNavLabel(this.state._label);
|
|
19805
19051
|
}
|
|
19806
19052
|
static get watchers() { return {
|
|
19807
|
-
"_ariaLabel": ["validateAriaLabel"],
|
|
19808
19053
|
"_label": ["validateLabel"],
|
|
19809
19054
|
"_links": ["validateLinks"]
|
|
19810
19055
|
}; }
|
|
@@ -19815,7 +19060,6 @@ class KolSkipNav {
|
|
|
19815
19060
|
"$flags$": 41,
|
|
19816
19061
|
"$tagName$": "kol-skip-nav",
|
|
19817
19062
|
"$members$": {
|
|
19818
|
-
"_ariaLabel": [1, "_aria-label"],
|
|
19819
19063
|
"_label": [1],
|
|
19820
19064
|
"_links": [1],
|
|
19821
19065
|
"state": [32]
|
|
@@ -19832,13 +19076,11 @@ class KolSpan {
|
|
|
19832
19076
|
constructor(hostRef) {
|
|
19833
19077
|
registerInstance(this, hostRef);
|
|
19834
19078
|
this._hideLabel = false;
|
|
19835
|
-
this._icon = undefined;
|
|
19836
19079
|
this._icons = undefined;
|
|
19837
|
-
this._iconOnly = undefined;
|
|
19838
19080
|
this._label = undefined;
|
|
19839
19081
|
}
|
|
19840
19082
|
render() {
|
|
19841
|
-
return (hAsync("kol-span-wc", { _icons: this._icons
|
|
19083
|
+
return (hAsync("kol-span-wc", { _icons: this._icons, _hideLabel: this._hideLabel, _label: this._label }, hAsync("slot", { name: "expert", slot: "expert" })));
|
|
19842
19084
|
}
|
|
19843
19085
|
static get style() { return {
|
|
19844
19086
|
default: defaultStyleCss$8
|
|
@@ -19848,9 +19090,7 @@ class KolSpan {
|
|
|
19848
19090
|
"$tagName$": "kol-span",
|
|
19849
19091
|
"$members$": {
|
|
19850
19092
|
"_hideLabel": [4, "_hide-label"],
|
|
19851
|
-
"_icon": [1],
|
|
19852
19093
|
"_icons": [1],
|
|
19853
|
-
"_iconOnly": [4, "_icon-only"],
|
|
19854
19094
|
"_label": [1]
|
|
19855
19095
|
},
|
|
19856
19096
|
"$listeners$": undefined,
|
|
@@ -32078,9 +31318,7 @@ class KolSpanWc {
|
|
|
32078
31318
|
registerInstance(this, hostRef);
|
|
32079
31319
|
this._allowMarkdown = false;
|
|
32080
31320
|
this._hideLabel = false;
|
|
32081
|
-
this._icon = undefined;
|
|
32082
31321
|
this._icons = undefined;
|
|
32083
|
-
this._iconOnly = undefined;
|
|
32084
31322
|
this._label = undefined;
|
|
32085
31323
|
this.state = {
|
|
32086
31324
|
_allowMarkdown: false,
|
|
@@ -32093,7 +31331,6 @@ class KolSpanWc {
|
|
|
32093
31331
|
var _a;
|
|
32094
31332
|
const hideExpertSlot = !showExpertSlot(this.state._label);
|
|
32095
31333
|
return (hAsync(Host, { class: {
|
|
32096
|
-
'icon-only': !!this.state._hideLabel,
|
|
32097
31334
|
'hide-label': !!this.state._hideLabel,
|
|
32098
31335
|
} }, this.state._icons.top && hAsync("kol-icon", { class: "icon top", style: this.state._icons.top.style, _label: "", _icons: this.state._icons.top.icon }), hAsync("span", null, this.state._icons.left && hAsync("kol-icon", { class: "icon left", style: this.state._icons.left.style, _label: "", _icons: this.state._icons.left.icon }), !this.state._hideLabel && hideExpertSlot ? (this.state._allowMarkdown && typeof this.state._label === 'string' && this.state._label.length > 0 ? (hAsync("span", { class: "span-label md", innerHTML: md(this.state._label) })) : (hAsync("span", { class: "span-label" }, (_a = this.state._label) !== null && _a !== void 0 ? _a : ''))) : (''), hAsync("span", { "aria-hidden": hideExpertSlot ? 'true' : undefined, class: "span-label", hidden: hideExpertSlot }, hAsync("slot", { name: "expert" })), this.state._icons.right && hAsync("kol-icon", { class: "icon right", style: this.state._icons.right.style, _label: "", _icons: this.state._icons.right.icon })), this.state._icons.bottom && hAsync("kol-icon", { class: "icon bottom", style: this.state._icons.bottom.style, _label: "", _icons: this.state._icons.bottom.icon })));
|
|
32099
31336
|
}
|
|
@@ -32105,30 +31342,22 @@ class KolSpanWc {
|
|
|
32105
31342
|
validateHideLabel(value) {
|
|
32106
31343
|
validateHideLabel(this, value);
|
|
32107
31344
|
}
|
|
32108
|
-
validateIcon(value) {
|
|
32109
|
-
this.validateIcons(value);
|
|
32110
|
-
}
|
|
32111
31345
|
validateIcons(value) {
|
|
32112
31346
|
validateIcons(this, value);
|
|
32113
31347
|
}
|
|
32114
|
-
validateIconOnly(value) {
|
|
32115
|
-
this.validateHideLabel(value);
|
|
32116
|
-
}
|
|
32117
31348
|
validateLabel(value) {
|
|
32118
31349
|
validateLabelWithExpertSlot(this, value);
|
|
32119
31350
|
}
|
|
32120
31351
|
componentWillLoad() {
|
|
32121
31352
|
this.validateAllowMarkdown(this._allowMarkdown);
|
|
32122
|
-
this.validateHideLabel(this._hideLabel
|
|
32123
|
-
this.validateIcons(this._icons
|
|
31353
|
+
this.validateHideLabel(this._hideLabel);
|
|
31354
|
+
this.validateIcons(this._icons);
|
|
32124
31355
|
this.validateLabel(this._label);
|
|
32125
31356
|
}
|
|
32126
31357
|
static get watchers() { return {
|
|
32127
31358
|
"_allowMarkdown": ["validateAllowMarkdown"],
|
|
32128
31359
|
"_hideLabel": ["validateHideLabel"],
|
|
32129
|
-
"_icon": ["validateIcon"],
|
|
32130
31360
|
"_icons": ["validateIcons"],
|
|
32131
|
-
"_iconOnly": ["validateIconOnly"],
|
|
32132
31361
|
"_label": ["validateLabel"]
|
|
32133
31362
|
}; }
|
|
32134
31363
|
static get cmpMeta() { return {
|
|
@@ -32137,9 +31366,7 @@ class KolSpanWc {
|
|
|
32137
31366
|
"$members$": {
|
|
32138
31367
|
"_allowMarkdown": [4, "_allow-markdown"],
|
|
32139
31368
|
"_hideLabel": [4, "_hide-label"],
|
|
32140
|
-
"_icon": [1],
|
|
32141
31369
|
"_icons": [1],
|
|
32142
|
-
"_iconOnly": [4, "_icon-only"],
|
|
32143
31370
|
"_label": [1],
|
|
32144
31371
|
"state": [32]
|
|
32145
31372
|
},
|
|
@@ -32249,36 +31476,20 @@ class KolSplitButton {
|
|
|
32249
31476
|
else
|
|
32250
31477
|
this.closeDropdown();
|
|
32251
31478
|
};
|
|
32252
|
-
this.forceCounter = 100;
|
|
32253
|
-
this.forceOpenDropdown = () => {
|
|
32254
|
-
var _a;
|
|
32255
|
-
if (this.forceCounter > 0) {
|
|
32256
|
-
if ((_a = this.dropdownContent) === null || _a === void 0 ? void 0 : _a.clientHeight)
|
|
32257
|
-
this.openDropdown();
|
|
32258
|
-
else
|
|
32259
|
-
setTimeout(this.forceOpenDropdown, 10);
|
|
32260
|
-
this.forceCounter--;
|
|
32261
|
-
}
|
|
32262
|
-
};
|
|
32263
31479
|
this.catchDropdownElements = (e) => {
|
|
32264
31480
|
if (e) {
|
|
32265
31481
|
this.dropdown = e;
|
|
32266
31482
|
setTimeout(() => {
|
|
32267
31483
|
this.dropdownContent = e.firstChild;
|
|
32268
|
-
if (this._show)
|
|
32269
|
-
this.forceOpenDropdown();
|
|
32270
31484
|
});
|
|
32271
31485
|
}
|
|
32272
31486
|
};
|
|
32273
|
-
this._accessKey = undefined;
|
|
32274
31487
|
this._ariaControls = undefined;
|
|
32275
31488
|
this._ariaExpanded = undefined;
|
|
32276
|
-
this._ariaLabel = undefined;
|
|
32277
31489
|
this._ariaSelected = undefined;
|
|
32278
31490
|
this._customClass = undefined;
|
|
32279
31491
|
this._disabled = false;
|
|
32280
31492
|
this._hideLabel = false;
|
|
32281
|
-
this._icon = undefined;
|
|
32282
31493
|
this._icons = undefined;
|
|
32283
31494
|
this._id = undefined;
|
|
32284
31495
|
this._label = undefined;
|
|
@@ -32286,8 +31497,6 @@ class KolSplitButton {
|
|
|
32286
31497
|
this._on = undefined;
|
|
32287
31498
|
this._role = undefined;
|
|
32288
31499
|
this._syncValueBySelector = undefined;
|
|
32289
|
-
this._show = false;
|
|
32290
|
-
this._showDropdown = false;
|
|
32291
31500
|
this._tabIndex = undefined;
|
|
32292
31501
|
this._tooltipAlign = 'top';
|
|
32293
31502
|
this._type = 'button';
|
|
@@ -32303,26 +31512,8 @@ class KolSplitButton {
|
|
|
32303
31512
|
button: true,
|
|
32304
31513
|
[this._variant]: this._variant !== 'custom',
|
|
32305
31514
|
[this._customClass]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,
|
|
32306
|
-
},
|
|
32307
|
-
}
|
|
32308
|
-
validateShowDropdown(value) {
|
|
32309
|
-
this.validateShow(value);
|
|
32310
|
-
}
|
|
32311
|
-
validateShow(value) {
|
|
32312
|
-
validateShow(this, value, {
|
|
32313
|
-
hooks: {
|
|
32314
|
-
afterPatch: (value) => {
|
|
32315
|
-
this.toggleDropdown(!!value);
|
|
32316
|
-
},
|
|
32317
|
-
},
|
|
32318
|
-
});
|
|
32319
|
-
}
|
|
32320
|
-
componentWillLoad() {
|
|
32321
|
-
this.validateShow(this._show || this._show);
|
|
31515
|
+
}, _ariaControls: this._ariaControls, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _icons: this._icons, _hideLabel: this._hideLabel, _label: this._label, _name: this._name, _on: this.clickButtonHandler, _role: this._role, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _variant: this._variant }), hAsync("div", { class: "horizontal-line" }), hAsync("kol-button-wc", { class: "secondary-button", _disabled: this._disabled, _hideLabel: true, _icons: "codicon codicon-triangle-down", _label: `dropdown ${this.state._show ? 'schließen' : 'öffnen'}`, _on: this.clickToggleHandler }), hAsync("div", { class: "popover", ref: this.catchDropdownElements }, hAsync("div", { class: "popover-content" }, hAsync("slot", null)))));
|
|
32322
31516
|
}
|
|
32323
|
-
static get watchers() { return {
|
|
32324
|
-
"_show": ["validateShowDropdown", "validateShow"]
|
|
32325
|
-
}; }
|
|
32326
31517
|
static get style() { return {
|
|
32327
31518
|
default: defaultStyleCss$6
|
|
32328
31519
|
}; }
|
|
@@ -32330,15 +31521,12 @@ class KolSplitButton {
|
|
|
32330
31521
|
"$flags$": 41,
|
|
32331
31522
|
"$tagName$": "kol-split-button",
|
|
32332
31523
|
"$members$": {
|
|
32333
|
-
"_accessKey": [1, "_access-key"],
|
|
32334
31524
|
"_ariaControls": [1, "_aria-controls"],
|
|
32335
31525
|
"_ariaExpanded": [4, "_aria-expanded"],
|
|
32336
|
-
"_ariaLabel": [1, "_aria-label"],
|
|
32337
31526
|
"_ariaSelected": [4, "_aria-selected"],
|
|
32338
31527
|
"_customClass": [1, "_custom-class"],
|
|
32339
31528
|
"_disabled": [4],
|
|
32340
31529
|
"_hideLabel": [4, "_hide-label"],
|
|
32341
|
-
"_icon": [1],
|
|
32342
31530
|
"_icons": [1],
|
|
32343
31531
|
"_id": [1],
|
|
32344
31532
|
"_label": [1],
|
|
@@ -32346,8 +31534,6 @@ class KolSplitButton {
|
|
|
32346
31534
|
"_on": [16],
|
|
32347
31535
|
"_role": [1],
|
|
32348
31536
|
"_syncValueBySelector": [1, "_sync-value-by-selector"],
|
|
32349
|
-
"_show": [1540],
|
|
32350
|
-
"_showDropdown": [1540, "_show-dropdown"],
|
|
32351
31537
|
"_tabIndex": [2, "_tab-index"],
|
|
32352
31538
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
32353
31539
|
"_type": [1],
|
|
@@ -32357,14 +31543,13 @@ class KolSplitButton {
|
|
|
32357
31543
|
},
|
|
32358
31544
|
"$listeners$": undefined,
|
|
32359
31545
|
"$lazyBundleId$": "-",
|
|
32360
|
-
"$attrsToReflect$": [
|
|
31546
|
+
"$attrsToReflect$": []
|
|
32361
31547
|
}; }
|
|
32362
31548
|
}
|
|
32363
31549
|
|
|
32364
31550
|
class KolSymbol {
|
|
32365
31551
|
constructor(hostRef) {
|
|
32366
31552
|
registerInstance(this, hostRef);
|
|
32367
|
-
this._ariaLabel = undefined;
|
|
32368
31553
|
this._label = undefined;
|
|
32369
31554
|
this._symbol = undefined;
|
|
32370
31555
|
this.state = {
|
|
@@ -32375,9 +31560,6 @@ class KolSymbol {
|
|
|
32375
31560
|
render() {
|
|
32376
31561
|
return (hAsync(Host, null, hAsync("span", { "aria-label": this.state._label, role: "term" }, this.state._symbol)));
|
|
32377
31562
|
}
|
|
32378
|
-
validateAriaLabel(value) {
|
|
32379
|
-
this.validateLabel(value);
|
|
32380
|
-
}
|
|
32381
31563
|
validateLabel(value) {
|
|
32382
31564
|
validateLabel(this, value);
|
|
32383
31565
|
}
|
|
@@ -32387,11 +31569,10 @@ class KolSymbol {
|
|
|
32387
31569
|
});
|
|
32388
31570
|
}
|
|
32389
31571
|
componentWillLoad() {
|
|
32390
|
-
this.validateLabel(this._label
|
|
31572
|
+
this.validateLabel(this._label);
|
|
32391
31573
|
this.validateSymbol(this._symbol);
|
|
32392
31574
|
}
|
|
32393
31575
|
static get watchers() { return {
|
|
32394
|
-
"_ariaLabel": ["validateAriaLabel"],
|
|
32395
31576
|
"_label": ["validateLabel"],
|
|
32396
31577
|
"_symbol": ["validateSymbol"]
|
|
32397
31578
|
}; }
|
|
@@ -32399,7 +31580,6 @@ class KolSymbol {
|
|
|
32399
31580
|
"$flags$": 0,
|
|
32400
31581
|
"$tagName$": "kol-symbol",
|
|
32401
31582
|
"$members$": {
|
|
32402
|
-
"_ariaLabel": [1, "_aria-label"],
|
|
32403
31583
|
"_label": [1],
|
|
32404
31584
|
"_symbol": [1],
|
|
32405
31585
|
"state": [32]
|
|
@@ -32508,7 +31688,7 @@ class KolTable {
|
|
|
32508
31688
|
}, "aria-sort": sortDirection, "data-sort": `sort-${this.sortDirections.get(headerCell.sort)}` }, hAsync("div", { class: "w-full flex gap-1 items-center" }, hAsync("div", { class: {
|
|
32509
31689
|
'w-full': true,
|
|
32510
31690
|
[headerCell.textAlign]: typeof headerCell.textAlign === 'string' && headerCell.textAlign.length > 0,
|
|
32511
|
-
}, innerHTML: headerCell.label, style: { textAlign: headerCell.textAlign } }), !this.disableSort && typeof headerCell.sort === 'function' && (hAsync("kol-button", { exportparts: "icon",
|
|
31691
|
+
}, innerHTML: headerCell.label, style: { textAlign: headerCell.textAlign } }), !this.disableSort && typeof headerCell.sort === 'function' && (hAsync("kol-button", { exportparts: "icon", _icons: sortButtonIcon, _hideLabel: true, _label: translate('kol-change-order', { placeholders: { colLabel: headerCell.label } }), _on: {
|
|
32512
31692
|
onClick: () => {
|
|
32513
31693
|
if (typeof headerCell.sort === 'function') {
|
|
32514
31694
|
this.sortFunction = headerCell.sort;
|
|
@@ -32544,7 +31724,6 @@ class KolTable {
|
|
|
32544
31724
|
const rows = this.createDataField(this.state._dataFoot, this.state._headers, true);
|
|
32545
31725
|
return hAsync("tfoot", null, rows.map(this.renderTableRow));
|
|
32546
31726
|
};
|
|
32547
|
-
this._caption = undefined;
|
|
32548
31727
|
this._data = undefined;
|
|
32549
31728
|
this._dataFoot = undefined;
|
|
32550
31729
|
this._headers = undefined;
|
|
@@ -32567,9 +31746,6 @@ class KolTable {
|
|
|
32567
31746
|
_sortedData: [],
|
|
32568
31747
|
};
|
|
32569
31748
|
}
|
|
32570
|
-
validateCaption(value) {
|
|
32571
|
-
this.validateLabel(value);
|
|
32572
|
-
}
|
|
32573
31749
|
validateData(value) {
|
|
32574
31750
|
emptyStringByArrayHandler(value, () => {
|
|
32575
31751
|
objectObjectHandler(value, () => {
|
|
@@ -32673,7 +31849,7 @@ class KolTable {
|
|
|
32673
31849
|
this.validateData(this._data);
|
|
32674
31850
|
this.validateDataFoot(this._dataFoot);
|
|
32675
31851
|
this.validateHeaders(this._headers);
|
|
32676
|
-
this.validateLabel(this._label
|
|
31852
|
+
this.validateLabel(this._label);
|
|
32677
31853
|
this.validateMinWidth(this._minWidth);
|
|
32678
31854
|
this.validatePagination(this._pagination);
|
|
32679
31855
|
}
|
|
@@ -32857,7 +32033,7 @@ class KolTable {
|
|
|
32857
32033
|
var _a, _b;
|
|
32858
32034
|
const displayedData = this.selectDisplayedData(this.state._sortedData, this.showPagination ? (_b = (_a = this.state._pagination) === null || _a === void 0 ? void 0 : _a._pageSize) !== null && _b !== void 0 ? _b : 10 : this.state._sortedData.length, this.state._pagination._page || 1);
|
|
32859
32035
|
const dataField = this.createDataField(displayedData, this.state._headers);
|
|
32860
|
-
return (hAsync(Host, null, hAsync("span", { style: { height: '0', width: '0', overflow: 'hidden' }, "aria-live": "assertive" }, this.ariaLive), this.pageEndSlice > 0 && this.showPagination && (hAsync("div", { class: "pagination" }, hAsync("span", null, "Eintr\u00E4ge ", this.pageEndSlice > 0 ? this.pageStartSlice + 1 : 0, " bis ", this.pageEndSlice, " von", ' ', this.state._pagination._max || (Array.isArray(this.state._data) ? this.state._data.length : 0), " angezeigt"), hAsync("div", null, hAsync("kol-pagination", { _boundaryCount: this.state._pagination._boundaryCount, _customClass: this.state._pagination._customClass, _on: this.handlePagination, _page: this.state._pagination._page, _pageSize: this.state._pagination._pageSize, _pageSizeOptions: this.state._pagination._pageSizeOptions || PAGINATION_OPTIONS, _siblingCount: this.state._pagination._siblingCount, _tooltipAlign: "bottom", _max: this.state._pagination._max || this.state._pagination.
|
|
32036
|
+
return (hAsync(Host, null, hAsync("span", { style: { height: '0', width: '0', overflow: 'hidden' }, "aria-live": "assertive" }, this.ariaLive), this.pageEndSlice > 0 && this.showPagination && (hAsync("div", { class: "pagination" }, hAsync("span", null, "Eintr\u00E4ge ", this.pageEndSlice > 0 ? this.pageStartSlice + 1 : 0, " bis ", this.pageEndSlice, " von", ' ', this.state._pagination._max || (Array.isArray(this.state._data) ? this.state._data.length : 0), " angezeigt"), hAsync("div", null, hAsync("kol-pagination", { _boundaryCount: this.state._pagination._boundaryCount, _customClass: this.state._pagination._customClass, _on: this.handlePagination, _page: this.state._pagination._page, _pageSize: this.state._pagination._pageSize, _pageSizeOptions: this.state._pagination._pageSizeOptions || PAGINATION_OPTIONS, _siblingCount: this.state._pagination._siblingCount, _tooltipAlign: "bottom", _max: this.state._pagination._max || this.state._pagination._max || this.state._data.length, _label: translate('kol-table-pagination-label', { placeholders: { label: this.state._label } }) })))), hAsync("div", { class: "table", tabindex: "0" }, hAsync("table", { style: {
|
|
32861
32037
|
minWidth: this.state._minWidth,
|
|
32862
32038
|
} }, hAsync("caption", null, this.state._label), Array.isArray(this.state._headers.horizontal) && (hAsync("thead", null, this.state._headers.horizontal.map((cols, rowIndex) => (hAsync("tr", { key: `thead-${rowIndex}` }, cols.map((col, colIndex) => {
|
|
32863
32039
|
if (col.asTd === true) {
|
|
@@ -32896,7 +32072,7 @@ class KolTable {
|
|
|
32896
32072
|
[col.textAlign]: typeof col.textAlign === 'string' && col.textAlign.length > 0,
|
|
32897
32073
|
}, innerHTML: col.label, style: {
|
|
32898
32074
|
textAlign: col.textAlign,
|
|
32899
|
-
} }), !this.disableSort && typeof headerCell.sort === 'function' && (hAsync("kol-button", { exportparts: "icon",
|
|
32075
|
+
} }), !this.disableSort && typeof headerCell.sort === 'function' && (hAsync("kol-button", { exportparts: "icon", _icons: sortButtonIcon, _hideLabel: true, _label: translate('kol-change-order', { placeholders: { colLabel: col.label } }), _on: {
|
|
32900
32076
|
onClick: () => {
|
|
32901
32077
|
if (typeof headerCell.sort === 'function') {
|
|
32902
32078
|
this.sortFunction = headerCell.sort;
|
|
@@ -32918,7 +32094,6 @@ class KolTable {
|
|
|
32918
32094
|
})))))), hAsync("tbody", null, dataField.map(this.renderTableRow)), this.state._dataFoot.length > 0 ? this.renderFoot() : ''))));
|
|
32919
32095
|
}
|
|
32920
32096
|
static get watchers() { return {
|
|
32921
|
-
"_caption": ["validateCaption"],
|
|
32922
32097
|
"_data": ["validateData"],
|
|
32923
32098
|
"_dataFoot": ["validateDataFoot"],
|
|
32924
32099
|
"_headers": ["validateHeaders"],
|
|
@@ -32933,7 +32108,6 @@ class KolTable {
|
|
|
32933
32108
|
"$flags$": 41,
|
|
32934
32109
|
"$tagName$": "kol-table",
|
|
32935
32110
|
"$members$": {
|
|
32936
|
-
"_caption": [1],
|
|
32937
32111
|
"_data": [1],
|
|
32938
32112
|
"_dataFoot": [1, "_data-foot"],
|
|
32939
32113
|
"_headers": [1],
|
|
@@ -33082,12 +32256,10 @@ class KolTabs {
|
|
|
33082
32256
|
}
|
|
33083
32257
|
};
|
|
33084
32258
|
this._align = 'top';
|
|
33085
|
-
this._ariaLabel = undefined;
|
|
33086
32259
|
this._label = undefined;
|
|
33087
32260
|
this._on = undefined;
|
|
33088
32261
|
this._selected = 0;
|
|
33089
32262
|
this._tabs = undefined;
|
|
33090
|
-
this._tabsAlign = 'top';
|
|
33091
32263
|
this.state = {
|
|
33092
32264
|
_align: 'top',
|
|
33093
32265
|
_label: '…',
|
|
@@ -33096,7 +32268,7 @@ class KolTabs {
|
|
|
33096
32268
|
};
|
|
33097
32269
|
}
|
|
33098
32270
|
renderButtonGroup() {
|
|
33099
|
-
return (hAsync("kol-button-group-wc", { role: "tablist", "aria-label": this.state._label, onKeyDown: this.onKeyDown }, this.state._tabs.map((button, index) => (hAsync("kol-button-wc", { _disabled: button._disabled, _icons: button._icons
|
|
32271
|
+
return (hAsync("kol-button-group-wc", { role: "tablist", "aria-label": this.state._label, onKeyDown: this.onKeyDown }, this.state._tabs.map((button, index) => (hAsync("kol-button-wc", { _disabled: button._disabled, _icons: button._icons, _hideLabel: button._hideLabel, _label: button._label, _on: this.callbacks, _tabIndex: this.state._selected === index ? 0 : -1, _tooltipAlign: button._tooltipAlign, _variant: this.state._selected === index ? 'custom' : undefined, _customClass: this.state._selected === index ? 'selected' : undefined, _ariaControls: `tabpanel-${index}`, _ariaSelected: this.state._selected === index, _id: `${this.state._label.replace(/\s/g, '-')}-tab-${index}`, _role: "tab", _value: index }))), this.showCreateTab && (hAsync("kol-button-wc", { class: "create-button", _label: this.onCreateLabel, _on: {
|
|
33100
32272
|
onClick: this.onCreate,
|
|
33101
32273
|
} }))));
|
|
33102
32274
|
}
|
|
@@ -33110,9 +32282,6 @@ class KolTabs {
|
|
|
33110
32282
|
validateAlign(value) {
|
|
33111
32283
|
validateAlign(this, value);
|
|
33112
32284
|
}
|
|
33113
|
-
validateAriaLabel(value) {
|
|
33114
|
-
this.validateLabel(value);
|
|
33115
|
-
}
|
|
33116
32285
|
validateLabel(value) {
|
|
33117
32286
|
validateLabel(this, value);
|
|
33118
32287
|
}
|
|
@@ -33171,12 +32340,9 @@ class KolTabs {
|
|
|
33171
32340
|
});
|
|
33172
32341
|
uiUxHintMillerscheZahl('KolTabs', this.state._tabs.length);
|
|
33173
32342
|
}
|
|
33174
|
-
validateTabsAlign(value) {
|
|
33175
|
-
this.validateAlign(value);
|
|
33176
|
-
}
|
|
33177
32343
|
componentWillLoad() {
|
|
33178
|
-
this.validateAlign(this._align
|
|
33179
|
-
this.validateLabel(this._label
|
|
32344
|
+
this.validateAlign(this._align);
|
|
32345
|
+
this.validateLabel(this._label);
|
|
33180
32346
|
this.validateOn(this._on);
|
|
33181
32347
|
this.validateSelected(this._selected);
|
|
33182
32348
|
this.validateTabs(this._tabs);
|
|
@@ -33213,12 +32379,10 @@ class KolTabs {
|
|
|
33213
32379
|
get host() { return getElement(this); }
|
|
33214
32380
|
static get watchers() { return {
|
|
33215
32381
|
"_align": ["validateAlign"],
|
|
33216
|
-
"_ariaLabel": ["validateAriaLabel"],
|
|
33217
32382
|
"_label": ["validateLabel"],
|
|
33218
32383
|
"_on": ["validateOn"],
|
|
33219
32384
|
"_selected": ["validateSelected"],
|
|
33220
|
-
"_tabs": ["validateTabs"]
|
|
33221
|
-
"_tabsAlign": ["validateTabsAlign"]
|
|
32385
|
+
"_tabs": ["validateTabs"]
|
|
33222
32386
|
}; }
|
|
33223
32387
|
static get style() { return {
|
|
33224
32388
|
default: defaultStyleCss$4
|
|
@@ -33228,12 +32392,10 @@ class KolTabs {
|
|
|
33228
32392
|
"$tagName$": "kol-tabs",
|
|
33229
32393
|
"$members$": {
|
|
33230
32394
|
"_align": [1],
|
|
33231
|
-
"_ariaLabel": [1, "_aria-label"],
|
|
33232
32395
|
"_label": [1],
|
|
33233
32396
|
"_on": [16],
|
|
33234
32397
|
"_selected": [1538],
|
|
33235
32398
|
"_tabs": [1],
|
|
33236
|
-
"_tabsAlign": [1, "_tabs-align"],
|
|
33237
32399
|
"state": [32]
|
|
33238
32400
|
},
|
|
33239
32401
|
"$listeners$": undefined,
|
|
@@ -33330,7 +32492,7 @@ class KolTextarea {
|
|
|
33330
32492
|
render() {
|
|
33331
32493
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
33332
32494
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
33333
|
-
return (hAsync(Host, { class: { 'has-value': this.state._hasValue } }, hAsync("kol-input", { class: { textarea: true, 'hide-label': !!this.state._hideLabel, 'has-counter': !!this.state._hasCounter }, _alert: this.state._alert, _currentLength: this.state._currentLength, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hasCounter: this.state._hasCounter, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _id: this.state._id, _label: this.state._label, _maxLength: this.state._maxLength, _readOnly: this.state._readOnly, _required: this.state._required, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus(); } }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot",
|
|
32495
|
+
return (hAsync(Host, { class: { 'has-value': this.state._hasValue } }, hAsync("kol-input", { class: { textarea: true, 'hide-label': !!this.state._hideLabel, 'has-counter': !!this.state._hasCounter }, _alert: this.state._alert, _currentLength: this.state._currentLength, _disabled: this.state._disabled, _error: this.state._error, _hideError: this.state._hideError, _hasCounter: this.state._hasCounter, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _id: this.state._id, _label: this.state._label, _maxLength: this.state._maxLength, _readOnly: this.state._readOnly, _required: this.state._required, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus(); } }, hAsync("span", { slot: "label" }, hasExpertSlot ? hAsync("slot", { name: "expert" }) : this.state._label), hAsync("div", { slot: "input" }, hAsync("textarea", Object.assign({ ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, maxlength: this.state._maxLength, name: this.state._name, readOnly: this.state._readOnly, required: this.state._required, rows: this.state._rows, placeholder: this.state._placeholder, spellcheck: "false" }, this.controller.onFacade, { onKeyUp: this.onKeyUp, style: {
|
|
33334
32496
|
resize: this.state._resize,
|
|
33335
32497
|
}, value: this.state._value }))))));
|
|
33336
32498
|
}
|
|
@@ -33875,53 +33037,27 @@ class KolTooltip {
|
|
|
33875
33037
|
}; }
|
|
33876
33038
|
}
|
|
33877
33039
|
|
|
33878
|
-
var Farbspektrum;
|
|
33879
|
-
(function (Farbspektrum) {
|
|
33880
|
-
Farbspektrum["Violett"] = "#5f316e";
|
|
33881
|
-
Farbspektrum["Dunkelrot"] = "#780f2d";
|
|
33882
|
-
Farbspektrum["Rot"] = "#c0003c";
|
|
33883
|
-
Farbspektrum["Orange"] = "#cd5038";
|
|
33884
|
-
Farbspektrum["Hellorange"] = "#f7bb3d";
|
|
33885
|
-
Farbspektrum["Gelb"] = "#f9e03a";
|
|
33886
|
-
Farbspektrum["Hellgr\u00FCn"] = "#c1ca31";
|
|
33887
|
-
Farbspektrum["Oliv"] = "#597c39";
|
|
33888
|
-
Farbspektrum["Dunkelgr\u00FCn"] = "#005c45";
|
|
33889
|
-
Farbspektrum["Gr\u00FCn"] = "#00854a";
|
|
33890
|
-
Farbspektrum["T\u00FCrkis"] = "#00818b";
|
|
33891
|
-
Farbspektrum["Hellblau"] = "#80cdec";
|
|
33892
|
-
Farbspektrum["Blau"] = "#0077b6";
|
|
33893
|
-
Farbspektrum["Petrol"] = "#007194";
|
|
33894
|
-
Farbspektrum["Dunkelblau"] = "#004b76";
|
|
33895
|
-
Farbspektrum["Dunkelgrau"] = "#576164";
|
|
33896
|
-
Farbspektrum["Hellgrau"] = "#bec5c9";
|
|
33897
|
-
})(Farbspektrum || (Farbspektrum = {}));
|
|
33898
|
-
|
|
33899
33040
|
const defaultStyleCss = "/*!@:host*/.sc-kol-version-default-h{--a11y-min-size:44px;font-size:inherit}/*!@**/*.sc-kol-version-default{font-family:Verdana;hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}/*!@[role='button'],\nbutton:not([role='link']),\nkol-input .input*/[role='button'].sc-kol-version-default,button.sc-kol-version-default:not([role='link']),kol-input.sc-kol-version-default .input.sc-kol-version-default{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}/*!@a,\nbutton,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\ninput,\noption,\nselect,\ntextarea*/a.sc-kol-version-default,button.sc-kol-version-default,h1.sc-kol-version-default,h2.sc-kol-version-default,h3.sc-kol-version-default,h4.sc-kol-version-default,h5.sc-kol-version-default,h6.sc-kol-version-default,input.sc-kol-version-default,option.sc-kol-version-default,select.sc-kol-version-default,textarea.sc-kol-version-default{font-family:inherit;font-size:inherit}/*!@:is(a, button)*/.sc-kol-version-default:is(a,button).sc-kol-version-default{background-color:transparent;border:none;margin:0;padding:0;width:100%}/*!@:host*/.sc-kol-version-default-h{max-width:100%}/*!@**/*.sc-kol-version-default{box-sizing:border-box}/*!@kol-span-wc*/kol-span-wc.sc-kol-version-default{display:grid;place-items:center}/*!@kol-span-wc > span*/kol-span-wc.sc-kol-version-default>span.sc-kol-version-default{display:flex;place-items:center}/*!@a,\nbutton*/a.sc-kol-version-default,button.sc-kol-version-default{cursor:pointer}/*!@button,\ninput,\noption,\nselect,\ntextarea*/button.sc-kol-version-default,input.sc-kol-version-default,option.sc-kol-version-default,select.sc-kol-version-default,textarea.sc-kol-version-default{font-family:inherit}/*!@.icon-only > kol-span-wc > span > span*/.icon-only.sc-kol-version-default>kol-span-wc.sc-kol-version-default>span.sc-kol-version-default>span.sc-kol-version-default{display:none}";
|
|
33900
33041
|
|
|
33901
33042
|
class KolVersion {
|
|
33902
33043
|
constructor(hostRef) {
|
|
33903
33044
|
registerInstance(this, hostRef);
|
|
33904
33045
|
this._label = undefined;
|
|
33905
|
-
this._version = undefined;
|
|
33906
33046
|
this.state = {
|
|
33907
33047
|
_label: '0.0.0-alpha.0',
|
|
33908
33048
|
};
|
|
33909
33049
|
}
|
|
33910
33050
|
render() {
|
|
33911
|
-
return hAsync("kol-badge", { _color:
|
|
33051
|
+
return hAsync("kol-badge", { _color: "#bec5c9", _icons: "codicon codicon-versions", _label: `v${this.state._label}` });
|
|
33912
33052
|
}
|
|
33913
33053
|
validateLabel(value) {
|
|
33914
33054
|
validateLabel(this, value);
|
|
33915
33055
|
}
|
|
33916
|
-
validateVersion(value) {
|
|
33917
|
-
this.validateLabel(value);
|
|
33918
|
-
}
|
|
33919
33056
|
componentWillLoad() {
|
|
33920
|
-
this.validateLabel(this._label
|
|
33057
|
+
this.validateLabel(this._label);
|
|
33921
33058
|
}
|
|
33922
33059
|
static get watchers() { return {
|
|
33923
|
-
"_label": ["validateLabel"]
|
|
33924
|
-
"_version": ["validateVersion"]
|
|
33060
|
+
"_label": ["validateLabel"]
|
|
33925
33061
|
}; }
|
|
33926
33062
|
static get style() { return {
|
|
33927
33063
|
default: defaultStyleCss
|
|
@@ -33931,7 +33067,6 @@ class KolVersion {
|
|
|
33931
33067
|
"$tagName$": "kol-version",
|
|
33932
33068
|
"$members$": {
|
|
33933
33069
|
"_label": [1],
|
|
33934
|
-
"_version": [1],
|
|
33935
33070
|
"state": [32]
|
|
33936
33071
|
},
|
|
33937
33072
|
"$listeners$": undefined,
|
|
@@ -33961,12 +33096,9 @@ registerComponents([
|
|
|
33961
33096
|
KolHeading,
|
|
33962
33097
|
KolHeadingWc,
|
|
33963
33098
|
KolIcon,
|
|
33964
|
-
KolIconFontAwesome,
|
|
33965
|
-
KolIconIcofont,
|
|
33966
33099
|
KolImage,
|
|
33967
33100
|
KolIndentedText,
|
|
33968
33101
|
KolInput,
|
|
33969
|
-
KolInputAdapterLeanup,
|
|
33970
33102
|
KolInputCheckbox,
|
|
33971
33103
|
KolInputColor,
|
|
33972
33104
|
KolInputDate,
|
|
@@ -33975,7 +33107,6 @@ registerComponents([
|
|
|
33975
33107
|
KolInputNumber,
|
|
33976
33108
|
KolInputPassword,
|
|
33977
33109
|
KolInputRadio,
|
|
33978
|
-
KolInputRadioGroup,
|
|
33979
33110
|
KolInputRange,
|
|
33980
33111
|
KolInputText,
|
|
33981
33112
|
KolKolibri,
|