@public-ui/sample-react 2.0.0 → 2.0.2
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/{5183.js → 1090.js} +2 -2
- package/dist/1181.js +2 -0
- package/dist/{5866.js → 1218.js} +2 -2
- package/dist/{7255.js → 1338.js} +2 -2
- package/dist/1399.js +2 -0
- package/dist/1517.js +2 -0
- package/dist/{7447.js → 1596.js} +2 -2
- package/dist/{7380.js → 2079.js} +2 -2
- package/dist/{4564.js → 2163.js} +2 -2
- package/dist/2415.js +2 -0
- package/dist/2594.js +2 -0
- package/dist/2611.js +2 -0
- package/dist/2643.js +2 -0
- package/dist/{2738.js → 3034.js} +2 -2
- package/dist/3035.js +2 -0
- package/dist/3145.js +2 -0
- package/dist/3345.js +2 -0
- package/dist/{5862.js → 3388.js} +2 -2
- package/dist/{7995.js → 3466.js} +2 -2
- package/dist/{8255.js → 3580.js} +2 -2
- package/dist/3619.js +2 -0
- package/dist/{7801.js → 3776.js} +2 -2
- package/dist/4114.js +2 -0
- package/dist/4150.js +2 -0
- package/dist/42.js +2 -0
- package/dist/{3932.js → 4279.js} +2 -2
- package/dist/{4891.js → 4463.js} +2 -2
- package/dist/4563.js +2 -0
- package/dist/{8065.js → 4669.js} +2 -2
- package/dist/{8073.js → 4686.js} +2 -2
- package/dist/4756.js +2 -0
- package/dist/{6558.js → 5027.js} +2 -2
- package/dist/521.js +2 -0
- package/dist/{6813.js → 5324.js} +2 -2
- package/dist/5373.js +2 -0
- package/dist/{5869.js → 5440.js} +2 -2
- package/dist/5496.js +2 -0
- package/dist/5518.js +2 -0
- package/dist/{9734.js → 5615.js} +2 -2
- package/dist/{5717.js → 5767.js} +2 -2
- package/dist/5853.js +2 -0
- package/dist/{4022.js → 6010.js} +2 -2
- package/dist/6308.js +2 -0
- package/dist/7170.js +2 -0
- package/dist/{3429.js → 7432.js} +2 -2
- package/dist/755.js +2 -0
- package/dist/7654.js +2 -0
- package/dist/{8709.js → 8037.js} +1 -1
- package/dist/817.js +2 -0
- package/dist/8612.js +2 -0
- package/dist/{7734.js → 8734.js} +2 -2
- package/dist/881.js +2 -0
- package/dist/{7858.js → 8869.js} +2 -2
- package/dist/892.js +2 -0
- package/dist/{9963.js → 8948.js} +2 -2
- package/dist/8951.js +2 -0
- package/dist/9317.js +2 -0
- package/dist/{9895.js → 9330.js} +2 -2
- package/dist/{6908.js → 9727.js} +2 -2
- package/dist/{4355.js → 9797.js} +2 -2
- package/dist/{4195.js → 9865.js} +2 -2
- package/dist/{8061.js → 9886.js} +2 -2
- package/dist/{5139.js → 9962.js} +2 -2
- package/dist/{7955.js → 9984.js} +2 -2
- package/dist/main.css +1 -1
- package/dist/main.js +315 -301
- package/dist/main.js.LICENSE.txt +2 -4
- package/package.json +15 -15
- package/src/components/badge/basic.tsx +5 -9
- package/src/components/badge/button.tsx +16 -12
- package/src/components/heading/badged.tsx +5 -5
- package/src/components/input-radio/partials/cases.tsx +1 -1
- package/src/components/kolibri/basic.tsx +16 -2
- package/src/components/kolibri/routes.ts +0 -4
- package/src/components/nav/aria-current.tsx +25 -15
- package/src/components/nav/basic.tsx +1 -3
- package/src/components/nav/horizontal.tsx +0 -3
- package/src/components/nav/routes.ts +0 -6
- package/src/components/split-button/basic.tsx +13 -2
- package/src/react.main.tsx +11 -5
- package/src/scenarios/inputs-get-value.tsx +2 -2
- package/dist/1130.js +0 -2
- package/dist/1474.js +0 -2
- package/dist/183.js +0 -2
- package/dist/2337.js +0 -2
- package/dist/2412.js +0 -2
- package/dist/3303.js +0 -2
- package/dist/3325.js +0 -2
- package/dist/3459.js +0 -2
- package/dist/4164.js +0 -2
- package/dist/4291.js +0 -2
- package/dist/4323.js +0 -2
- package/dist/4916.js +0 -2
- package/dist/5369.js +0 -2
- package/dist/5390.js +0 -2
- package/dist/540.js +0 -2
- package/dist/5860.js +0 -2
- package/dist/6012.js +0 -2
- package/dist/6068.js +0 -2
- package/dist/6210.js +0 -2
- package/dist/6320.js +0 -2
- package/dist/7029.js +0 -2
- package/dist/7535.js +0 -2
- package/dist/7715.js +0 -2
- package/dist/7722.js +0 -2
- package/dist/8111.js +0 -2
- package/dist/8291.js +0 -2
- package/dist/8316.js +0 -2
- package/dist/8761.js +0 -2
- package/dist/9747.js +0 -2
- package/dist/9792.js +0 -2
- package/dist/9972.js +0 -2
- package/src/components/kolibri/animated.tsx +0 -4
- package/src/components/kolibri/no-label.tsx +0 -4
- package/src/components/nav/active.tsx +0 -87
- /package/dist/{1130.js.LICENSE.txt → 1090.js.LICENSE.txt} +0 -0
- /package/dist/{1474.js.LICENSE.txt → 1181.js.LICENSE.txt} +0 -0
- /package/dist/{183.js.LICENSE.txt → 1218.js.LICENSE.txt} +0 -0
- /package/dist/{2337.js.LICENSE.txt → 1338.js.LICENSE.txt} +0 -0
- /package/dist/{2412.js.LICENSE.txt → 1399.js.LICENSE.txt} +0 -0
- /package/dist/{2738.js.LICENSE.txt → 1517.js.LICENSE.txt} +0 -0
- /package/dist/{3303.js.LICENSE.txt → 1596.js.LICENSE.txt} +0 -0
- /package/dist/{3325.js.LICENSE.txt → 2079.js.LICENSE.txt} +0 -0
- /package/dist/{3429.js.LICENSE.txt → 2163.js.LICENSE.txt} +0 -0
- /package/dist/{3459.js.LICENSE.txt → 2415.js.LICENSE.txt} +0 -0
- /package/dist/{3932.js.LICENSE.txt → 2594.js.LICENSE.txt} +0 -0
- /package/dist/{4022.js.LICENSE.txt → 2611.js.LICENSE.txt} +0 -0
- /package/dist/{4164.js.LICENSE.txt → 2643.js.LICENSE.txt} +0 -0
- /package/dist/{4195.js.LICENSE.txt → 3034.js.LICENSE.txt} +0 -0
- /package/dist/{4291.js.LICENSE.txt → 3035.js.LICENSE.txt} +0 -0
- /package/dist/{4323.js.LICENSE.txt → 3145.js.LICENSE.txt} +0 -0
- /package/dist/{4355.js.LICENSE.txt → 3345.js.LICENSE.txt} +0 -0
- /package/dist/{4564.js.LICENSE.txt → 3388.js.LICENSE.txt} +0 -0
- /package/dist/{4891.js.LICENSE.txt → 3466.js.LICENSE.txt} +0 -0
- /package/dist/{4916.js.LICENSE.txt → 3580.js.LICENSE.txt} +0 -0
- /package/dist/{5139.js.LICENSE.txt → 3619.js.LICENSE.txt} +0 -0
- /package/dist/{5183.js.LICENSE.txt → 3776.js.LICENSE.txt} +0 -0
- /package/dist/{5369.js.LICENSE.txt → 4114.js.LICENSE.txt} +0 -0
- /package/dist/{5390.js.LICENSE.txt → 4150.js.LICENSE.txt} +0 -0
- /package/dist/{540.js.LICENSE.txt → 42.js.LICENSE.txt} +0 -0
- /package/dist/{5717.js.LICENSE.txt → 4279.js.LICENSE.txt} +0 -0
- /package/dist/{5860.js.LICENSE.txt → 4463.js.LICENSE.txt} +0 -0
- /package/dist/{5862.js.LICENSE.txt → 4563.js.LICENSE.txt} +0 -0
- /package/dist/{5866.js.LICENSE.txt → 4669.js.LICENSE.txt} +0 -0
- /package/dist/{5869.js.LICENSE.txt → 4686.js.LICENSE.txt} +0 -0
- /package/dist/{6012.js.LICENSE.txt → 4756.js.LICENSE.txt} +0 -0
- /package/dist/{6068.js.LICENSE.txt → 5027.js.LICENSE.txt} +0 -0
- /package/dist/{6210.js.LICENSE.txt → 521.js.LICENSE.txt} +0 -0
- /package/dist/{6320.js.LICENSE.txt → 5324.js.LICENSE.txt} +0 -0
- /package/dist/{6558.js.LICENSE.txt → 5373.js.LICENSE.txt} +0 -0
- /package/dist/{6813.js.LICENSE.txt → 5440.js.LICENSE.txt} +0 -0
- /package/dist/{6908.js.LICENSE.txt → 5496.js.LICENSE.txt} +0 -0
- /package/dist/{7029.js.LICENSE.txt → 5518.js.LICENSE.txt} +0 -0
- /package/dist/{7255.js.LICENSE.txt → 5615.js.LICENSE.txt} +0 -0
- /package/dist/{7380.js.LICENSE.txt → 5767.js.LICENSE.txt} +0 -0
- /package/dist/{7447.js.LICENSE.txt → 5853.js.LICENSE.txt} +0 -0
- /package/dist/{7535.js.LICENSE.txt → 6010.js.LICENSE.txt} +0 -0
- /package/dist/{7715.js.LICENSE.txt → 6308.js.LICENSE.txt} +0 -0
- /package/dist/{7722.js.LICENSE.txt → 7170.js.LICENSE.txt} +0 -0
- /package/dist/{7734.js.LICENSE.txt → 7432.js.LICENSE.txt} +0 -0
- /package/dist/{7801.js.LICENSE.txt → 755.js.LICENSE.txt} +0 -0
- /package/dist/{7858.js.LICENSE.txt → 7654.js.LICENSE.txt} +0 -0
- /package/dist/{7955.js.LICENSE.txt → 817.js.LICENSE.txt} +0 -0
- /package/dist/{7995.js.LICENSE.txt → 8612.js.LICENSE.txt} +0 -0
- /package/dist/{8061.js.LICENSE.txt → 8734.js.LICENSE.txt} +0 -0
- /package/dist/{8065.js.LICENSE.txt → 881.js.LICENSE.txt} +0 -0
- /package/dist/{8073.js.LICENSE.txt → 8869.js.LICENSE.txt} +0 -0
- /package/dist/{8111.js.LICENSE.txt → 892.js.LICENSE.txt} +0 -0
- /package/dist/{8255.js.LICENSE.txt → 8948.js.LICENSE.txt} +0 -0
- /package/dist/{8291.js.LICENSE.txt → 8951.js.LICENSE.txt} +0 -0
- /package/dist/{8316.js.LICENSE.txt → 9317.js.LICENSE.txt} +0 -0
- /package/dist/{8761.js.LICENSE.txt → 9330.js.LICENSE.txt} +0 -0
- /package/dist/{9734.js.LICENSE.txt → 9727.js.LICENSE.txt} +0 -0
- /package/dist/{9747.js.LICENSE.txt → 9797.js.LICENSE.txt} +0 -0
- /package/dist/{9792.js.LICENSE.txt → 9865.js.LICENSE.txt} +0 -0
- /package/dist/{9895.js.LICENSE.txt → 9886.js.LICENSE.txt} +0 -0
- /package/dist/{9963.js.LICENSE.txt → 9962.js.LICENSE.txt} +0 -0
- /package/dist/{9972.js.LICENSE.txt → 9984.js.LICENSE.txt} +0 -0
package/dist/9747.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 9747.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[9747],{7822:(t,e,n)=>{n.d(e,{I:()=>o});var i=n(7429);const o=({accessKey:t,label:e})=>{let[n,...o]=e.split(t);return 0===o.length&&(t=t.toUpperCase(),[n,...o]=e.split(t)),0===o.length&&(t=t.toLowerCase(),[n,...o]=e.split(t)),(0,i.h)(i.F,null,n,o.length?(0,i.h)(i.F,null,(0,i.h)("u",null,t),o.join(t)):null)}},3978:(t,e,n)=>{n.d(e,{A:()=>s});var i=n(5869),o=n(5628);const a=(0,n(6278).d)();class s{constructor(t,e,n){var i,s;if(this.setFormAssociatedValue=t=>{var e;const n=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==n&&""!==n||(0,o.d)(` The form field (${this.name}) must have a name attribute to be form-associated. Please define the _name attribute.`);const i=this.tryToStringifyValue(t);this.syncValue(t,i,this.formAssociated),this.syncValue(t,i,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(n),this.name=e,a){switch(null===(i=this.host)||void 0===i||i.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.name){case"button":this.formAssociated=document.createElement("button");break;case"select":this.formAssociated=document.createElement("select"),this.formAssociated.setAttribute("multiple","");break;case"textarea":this.formAssociated=document.createElement("textarea");break;default:this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden")}this.formAssociated.setAttribute("aria-hidden","true"),this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(s=this.host)||void 0===s||s.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,n){if(a)try{if("boolean"!=typeof(n="object"==typeof n&&null!==n?JSON.stringify(n):n)&&"number"!=typeof n&&"string"!=typeof n)throw new Error("Invalid value type: "+typeof n);null==e||e.setAttribute(t,`${n}`)}catch(n){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return(0,o.g)(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,n){n&&("select"===this.name?(n.querySelectorAll("option").forEach((t=>{n.removeChild(t)})),Array.isArray(t)&&t.forEach((t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),n.appendChild(t)}}))):"string"==typeof e?(n.setAttribute("value",e),n.value=e):(n.removeAttribute("value"),n.value=""))}validateName(t){((t,e,n)=>{(0,i.d)(t,"_name",e,n)})(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&(0,o.d)("Ein Name am Eingabefeldern oder Schalter ist nicht zwingend erforderlich, kann aber für die Autocomplete-Funktion und für das statische Versenden des Eingabefeldes relevant sein.")}validateSyncValueBySelector(t){if(a&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}},1887:(t,e,n)=>{n.d(e,{I:()=>u,a:()=>p,f:()=>c,v:()=>h});var i=n(5869),o=n(6789),a=n(5628),s=n(6088),l=n(6433);const r=["horizontal","vertical"],d=t=>{if("object"==typeof t&&null!==t){if("string"==typeof t.label&&t.label.length>0)return t.disabled=!0===t.disabled,t.label=`${t.label}`.trim(),!1===(0,o.h)(t.label,3)&&!1===(0,o.c)(t.label)&&(0,a.a)(`Ein abweichendes Aria-Label (${t.label}) ist nicht barrierefrei. Ein abweichendes Aria-Label sollte aus mindestens drei lesbaren Zeichen bestehen.`),!Array.isArray(t.options)||void 0===t.options.find((t=>!1===d(t)));if("number"==typeof t.label)return!0}return!1},h=(t,e,n={})=>{(0,i.c)(t,"_options",d,e,void 0,n)},c=(t,e,n="")=>{e.forEach(((e,i)=>{const o=`${n}-${i}`;"object"==typeof e&&null!==e&&"string"==typeof e.label&&e.label.length>0&&(Array.isArray(e.options)?c(t,e.options,o):t.set(o,e))}))};class u extends l.I{constructor(t,e,n){super(t,e,n),this.component=t}validateRequired(t){((t,e)=>{(0,i.a)(t,"_required",e)})(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateRequired(this.component._required)}}class p extends u{constructor(t,e,n){super(t,e,n),this.keyOptionMap=new Map,this.getOptionByKey=t=>this.keyOptionMap.get(t),this.isValueInOptions=(t,e)=>void 0!==e.find((e=>e.value===t)),this.beforePatchOptions=(t,e)=>{const n=e.has("_options")?e.get("_options"):this.component.state._options;if(Array.isArray(n)&&n.length>0){this.keyOptionMap.clear(),c(this.keyOptionMap,n);const t=e.has("_value")?e.get("_value"):this.component.state._value;if(!1===this.isValueInOptions(t,n)){const t=n[0].value;e.set("_value",t),this.onStateChange()}}},this.component=t}validateOrientation(t){(0,i.w)(this.component,"_orientation",(t=>"string"==typeof t&&r.includes(t)),new Set([`Orientation {${r.join(", ")}`]),t,{defaultValue:"vertical"})}validateOptions(t){((t,e,n={})=>{(0,i.c)(t,"_options",(t=>"object"==typeof t&&null!==t&&"string"==typeof t.label&&t.label.length>0),e,void 0,n)})(this.component,t,{hooks:{beforePatch:this.beforePatchOptions}})}validateValue(t){t=(0,i.m)(t),t=Array.isArray(t)?t[0]:t,(0,i.s)(this.component,"_value",t,{beforePatch:this.beforePatchOptions}),this.setFormAssociatedValue(this.component._value)}componentWillLoad(t){super.componentWillLoad(),this.onStateChange=()=>{if("function"==typeof t){const e=setTimeout((()=>{clearTimeout(e),t(s.S)}))}},this.validateOrientation(this.component._orientation),this.validateOptions(this.component._options),this.validateValue(this.component._value)}}},6433:(t,e,n)=>{n.d(e,{I:()=>u,g:()=>h});var i=n(5869),o=n(8609),a=n(6789),s=n(5628),l=n(347),r=n(7108),d=n(3978);const h=t=>{const e="string"==typeof t._error&&t._error.length>0&&!0===t._touched,n="string"==typeof t._hint&&t._hint.length>0,i=[];return!0===e&&i.push(`${t._id}-error`),!0===n&&i.push(`${t._id}-hint`),{hasError:e,hasHint:n,ariaDescribedBy:i}};class c extends d.A{constructor(t,e,n){super(t,e,n),this.component=t}validateAlert(t){(0,i.a)(this.component,"_alert",t)}validateTouched(t){((t,e)=>{(0,i.a)(t,"_touched",e)})(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAlert(this.component._alert),this.validateTouched(this.component._touched)}}class u extends c{constructor(t,e,n){super(t,e,n),this.valueChangeListeners=[],this.onFacade={onBlur:this.onBlur.bind(this),onChange:this.onChange.bind(this),onClick:this.onClick.bind(this),onFocus:this.onFocus.bind(this)},this.component=t}validateAccessKey(t){(0,i.d)(this.component,"_accessKey",t)}validateAdjustHeight(t){((t,e)=>{(0,i.a)(t,"_adjustHeight",e)})(this.component,t)}validateDisabled(t){(0,i.a)(this.component,"_disabled",t),!0===t&&(0,s.e)()}validateError(t){(0,i.d)(this.component,"_error",t)}validateHideError(t){((t,e,n)=>{(0,i.a)(t,"_hideError",e,n)})(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&(0,s.a)("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateHideLabel(t){(0,o.v)(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideLabel&&(0,s.a)("Property hide-label for inputs: Only use for exceptions like search inputs that are clearly identifiable by their context.")}}})}validateHint(t){(0,i.d)(this.component,"_hint",t)}validateId(t){(0,i.d)(this.component,"_id",t,{hooks:{afterPatch:()=>{this.setAttribute("id",this.formAssociated,this.component.state._id)}},minLength:1}),""!==t&&void 0!==t||(0,s.d)("Eine eindeutige ID an den Eingabefeldern ist nicht zwingend erforderlich, könnte aber für die E2E-Tests relevant sein.")}validateLabel(t){(0,a.a)(this.component,t)}validateOn(t){"object"==typeof t&&(0,i.s)(this.component,"_on",t)}validateSmartButton(t){(0,i.o)(t,(()=>{try{t=(0,i.p)(t)}catch(t){}(0,i.s)(this.component,"_smartButton",t)}))}validateTabIndex(t){(0,r.v)(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAccessKey(this.component._accessKey),this.validateAdjustHeight(this.component._adjustHeight),this.validateError(this.component._error),this.validateDisabled(this.component._disabled),this.validateHideError(this.component._hideError),this.validateHideLabel(this.component._hideLabel),this.validateHint(this.component._hint),this.validateId(this.component._id),this.validateLabel(this.component._label),this.validateSmartButton(this.component._smartButton),this.validateOn(this.component._on),this.validateTabIndex(this.component._tabIndex)}onBlur(t){var e;this.component._alert=!0,this.component._touched=!0,(0,l.s)(t),(0,l.t)("blur",this.host),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onBlur)&&this.component._on.onBlur(t)}onChange(t){var e;const n=t.target.value;(0,l.t)("change",this.host,n),this.setFormAssociatedValue(n),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onChange)&&this.component._on.onChange(t,n),this.valueChangeListeners.forEach((t=>t(n)))}onClick(t){var e;(0,l.s)(t),(0,l.t)("click",this.host),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onClick)&&this.component._on.onClick(t)}onFocus(t){var e;this.component._alert=!0,(0,l.s)(t),(0,l.t)("focus",this.host),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onFocus)&&this.component._on.onFocus(t)}addValueChangeListener(t){this.valueChangeListeners.push(t)}}},347:(t,e,n)=>{function i(t){t.stopImmediatePropagation(),t.stopPropagation()}function o(t,e,n){e&&function(t,e,n){const i=t.dispatchEvent(function(t,e){return new CustomEvent(`kol-${t}`,{bubbles:!0,cancelable:!0,composed:!0,detail:e})}(e,n))}(e,t,n)}n.d(e,{s:()=>i,t:()=>o})},8609:(t,e,n)=>{n.d(e,{v:()=>o});var i=n(5869);const o=(t,e,n={})=>{(0,i.a)(t,"_hideLabel",e,n)}},9747:(t,e,n)=>{n.r(e),n.d(e,{kol_input_radio:()=>h});var i=n(7429),o=n(6278),a=n(347),s=n(6088),l=n(6433),r=n(1887),d=n(7822);const h=class{getValue(){return t=this,null,e=function*(){return this.currentValue},new Promise(((n,i)=>{var o=t=>{try{s(e.next(t))}catch(t){i(t)}},a=t=>{try{s(e.throw(t))}catch(t){i(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((e=e.apply(t,null)).next())}));var t,e}render(){const{ariaDescribedBy:t,hasError:e}=(0,l.g)(this.state),n=(0,s.s)(this.state._label);return(0,i.h)(i.H,null,(0,i.h)("fieldset",{class:{fieldset:!0,disabled:!0===this.state._disabled,error:!0===e,required:!0===this.state._required,"hidden-error":!0===this._hideError,[this.state._orientation]:!0}},(0,i.h)("legend",{class:"block w-full mb-1 leading-normal"},(0,i.h)("span",null,(0,i.h)("span",{slot:"label"},n?(0,i.h)("slot",{name:"expert"}):"string"==typeof this._accessKey?(0,i.h)(d.I,{accessKey:this._accessKey,label:this._label}):this._label))),this.state._options.map(((e,n)=>{const o=`${this.state._id}-${n}`,a=`radio-${n}`;return(0,i.h)("kol-input",{class:{radio:!0,disabled:Boolean(this.state._disabled||e.disabled)},key:o,_accessKey:this.state._accessKey,_disabled:this.state._disabled||e.disabled,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_id:o,_label:e.label,_renderNoLabel:!0,_required:this.state._required,_slotName:a,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},(0,i.h)("div",{slot:a,class:"radio-input-wrapper"},(0,i.h)("input",Object.assign({ref:this.state._value===e.value?this.catchRef:void 0,title:"",accessKey:this.state._accessKey,"aria-describedby":t.length>0?t.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof e.label?e.label:void 0,type:"radio",id:o,checked:this.state._value===e.value,name:this.state._name||this.state._id,disabled:this.state._disabled||e.disabled,required:this.state._required,tabIndex:this.state._tabIndex,value:`-${n}`},this.controller.onFacade,{onChange:this.onChange,onClick:void 0})),(0,i.h)("label",{class:"radio-label",htmlFor:`${o}`,style:{height:this.state._hideLabel?"0":void 0,margin:this.state._hideLabel?"0":void 0,padding:this.state._hideLabel?"0":void 0,visibility:this.state._hideLabel?"hidden":void 0}},(0,i.h)("span",null,(0,i.h)("span",{class:"radio-label-span-inner"},e.label)))))})),e&&(0,i.h)("kol-alert",{id:"error",_alert:!0,_type:"error",class:"error"+(this._hideError?" hidden":"")},this.state._error)))}constructor(t){(0,i.r)(this,t),this.catchRef=t=>{(0,s.a)(this.host,t)},this.onChange=t=>{var e;if(t.target instanceof HTMLInputElement){const n=this.controller.getOptionByKey(t.target.value);void 0!==n&&((0,a.s)(t),(0,a.t)("change",this.host,n.value),this.controller.setFormAssociatedValue(n.value),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onChange)&&this.state._on.onChange(t,n.value),this.currentValue=n.value)}},this._accessKey=void 0,this._alert=!0,this._disabled=!1,this._error=void 0,this._hideError=!1,this._hideLabel=!1,this._hint="",this._id=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._options=void 0,this._orientation="vertical",this._required=!1,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_hideError:!1,_id:`id-${(0,o.n)()}`,_label:"",_options:[],_orientation:"vertical"},this.controller=new r.a(this,"input-radio",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHideError(t){this.controller.validateHideError(t)}validateHint(t){this.controller.validateHint(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateOptions(t){this.controller.validateOptions(t)}validateOrientation(t){this.controller.validateOrientation(t)}validateRequired(t){this.controller.validateRequired(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.currentValue=this._value,this.controller.componentWillLoad(this.onChange)}get host(){return(0,i.g)(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_error:["validateError"],_hideLabel:["validateHideLabel"],_hideError:["validateHideError"],_hint:["validateHint"],_id:["validateId"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_options:["validateOptions"],_orientation:["validateOrientation"],_required:["validateRequired"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};h.style={default:"/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t.required label > span::after,\n\t.required legend > span::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\tinput,\n\ttextarea {\n\t\tcursor: text;\n\t}\n\n\tinput[type='checkbox'],\n\tinput[type='color'],\n\tinput[type='file'],\n\tinput[type='radio'],\n\tinput[type='range'],\n\tlabel,\n\toption,\n\tselect {\n\t\tcursor: pointer;\n\t}\n\n\t/* input[type='checkbox'], */\n\t/* input[type='radio'], */\n\t/* input[type='range'], */\n\tinput[type='color'],\n\tinput[type='date'],\n\tinput[type='datetime-local'],\n\tinput[type='email'],\n\tinput[type='file'],\n\tinput[type='month'],\n\tinput[type='number'],\n\tinput[type='password'],\n\tinput[type='search'],\n\tinput[type='tel'],\n\tinput[type='text'],\n\tinput[type='time'],\n\tinput[type='url'],\n\tinput[type='week'],\n\tselect,\n\tselect[multiple] option,\n\ttextarea {\n\t\tfont-size: 1rem;\n\t\twidth: 100%;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tinput[type='file'] {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 10) 0.5em;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tselect[multiple] option {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 2) 0.5em;\n\t}\n\n\tkol-input.disabled :is(button, input, option, select, textarea, .input-label) {\n\t\tcursor: not-allowed;\n\t\topacity: 0.5;\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\t--border-width: 2px;\n\t\t--input-size: 1.5em;\n\t}\n\n\tkol-input .icons {\n\t\tdisplay: none;\n\t}\n\n\tlabel {\n\t\tcursor: pointer;\n\t}\n\n\tinput {\n\t\tappearance: none;\n\t\tborder-width: var(--border-width);\n\t\tborder-style: solid;\n\t\tborder-radius: 100%;\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\theight: var(--input-size);\n\t\tmargin: 0;\n\t\tmin-height: var(--input-size);\n\t\tmin-width: var(--input-size);\n\t\tpadding: 0;\n\t\twidth: var(--input-size);\n\t}\n\n\tinput:before {\n\t\tborder-radius: 100%;\n\t\tcontent: '';\n\t\tmargin: auto;\n\t\theight: calc(var(--input-size) / 2);\n\t\twidth: calc(var(--input-size) / 2);\n\t}\n\n\tinput:checked:before {\n\t\tbackground-color: #000;\n\t}\n\n\tfieldset {\n\t\tdisplay: flex;\n\t}\n\n\tfieldset.vertical {\n\t\tflex-direction: column;\n\t}\n\n\tfieldset .input-slot {\n\t\talign-items: center;\n\t\tdisplay: flex;\n\t}\n\n\t/* required star is on fieldset legend */\n\t.required label > span::after {\n\t\tcontent: '';\n\t}\n\n\t.error.hidden {\n\t\tdisplay: none;\n\t}\n}\n"}},6789:(t,e,n)=>{n.d(e,{a:()=>c,c:()=>r,h:()=>l,v:()=>h});var i=n(5628),o=n(5869);const a=/[a-zA-Z0-9äöüÄÖÜß]/g,s=/^\d+$/;function l(t,e=1){return function(t){var e;return"string"==typeof t&&(null===(e=t.match(a))||void 0===e?void 0:e.length)||0}(t)>=e}function r(t){return s.test(t)}const d=new Set(["string"]),h=(t,e,n={})=>{(0,o.w)(t,"_label",(t=>"string"==typeof t),d,e,function(t){var e;return{hooks:{afterPatch:(e,n,o,a)=>{var s,d;"function"==typeof(null===(s=t.hooks)||void 0===s?void 0:s.afterPatch)&&(null===(d=t.hooks)||void 0===d||d.afterPatch(e,n,o,a)),"string"==typeof e&&!1===l(e,3)&&!1===r(e)&&(0,i.a)(`The heading or label ("${e}") is not accessible. A label should consist of at least three readable characters.`),"string"==typeof e&&e.length>80&&(0,i.u)("A heading or label should not be longer than 80 characters.")},beforePatch:null===(e=t.hooks)||void 0===e?void 0:e.beforePatch}}}(n))},c=h},7108:(t,e,n)=>{n.d(e,{v:()=>s});var i=n(5628),o=n(5869);const a={hooks:{afterPatch:t=>{-1!==t&&0!==t&&(0,i.a)("Don’t Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html")}}},s=(t,e)=>{(0,o.e)(t,"_tabIndex",e,a)}}}]);
|
package/dist/9792.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 9792.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[9792],{1085:(t,s,i)=>{i.d(s,{v:()=>e});var a=i(5869);const e=(t,s,i)=>{(0,a.d)(t,"_src",s,i)}},9792:(t,s,i)=>{i.r(s),i.d(s,{kol_image:()=>r});var a=i(7429),e=i(1085),l=i(5869);const d=["eager","lazy"],r=class{constructor(t){(0,a.r)(this,t),this._alt=void 0,this._loading="lazy",this._sizes=void 0,this._src=void 0,this._srcset=void 0,this.state={_alt:"…",_loading:"lazy",_src:"…"}}validateAlt(t){(0,l.d)(this,"_alt",t,{required:!0})}validateLoading(t){!function(t,s){(0,l.w)(t,"_loading",(t=>"string"==typeof t&&d.includes(t)),new Set(d),s)}(this,t)}validateSizes(t){(0,l.d)(this,"_sizes",t)}validateSrc(t){(0,e.v)(this,t,{required:!0})}validateSrcset(t){(0,l.d)(this,"_srcset",t)}componentWillLoad(){this.validateAlt(this._alt),this.validateLoading(this._loading),this.validateSizes(this._sizes),this.validateSrc(this._src),this.validateSrcset(this._srcset)}render(){return(0,a.h)(a.H,null,(0,a.h)("img",{alt:this.state._alt,loading:this.state._loading,sizes:this.state._sizes,src:this.state._src,srcset:this.state._srcset}))}static get watchers(){return{_alt:["validateAlt"],_loading:["validateLoading"],_sizes:["validateSizes"],_src:["validateSrc"],_srcset:["validateSrcset"]}}};r.style={default:"@layer kol-component {\n\t:host {\n\t\tdisplay: inline-block;\n\t}\n\timg {\n\t\tmax-height: 100%;\n\t\tmax-width: 100%;\n\t}\n}\n"}}}]);
|
package/dist/9972.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 9972.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[9972],{9972:(s,t,u)=>{u.r(t),u.d(t,{kol_button_group_wc:()=>l});var e=u(7429);const l=class{constructor(s){(0,e.r)(this,s),this.state={}}render(){return(0,e.h)(e.H,null,(0,e.h)("slot",null))}}}}]);
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { KolNav } from '@public-ui/react';
|
|
3
|
-
|
|
4
|
-
import { FC, useEffect, useState } from 'react';
|
|
5
|
-
import { ButtonOrLinkOrTextWithChildrenProps } from '@public-ui/components';
|
|
6
|
-
|
|
7
|
-
export const NavActive: FC = () => {
|
|
8
|
-
const [links, setLinks] = useState<ButtonOrLinkOrTextWithChildrenProps[]>([]);
|
|
9
|
-
|
|
10
|
-
const handleLinks = (route: string) => {
|
|
11
|
-
const link = links.find((link) => link._label === route);
|
|
12
|
-
if (!link) return;
|
|
13
|
-
link._active = !link._active;
|
|
14
|
-
setLinks(links);
|
|
15
|
-
};
|
|
16
|
-
useEffect(() => {
|
|
17
|
-
setLinks([
|
|
18
|
-
{
|
|
19
|
-
_label: 'Main',
|
|
20
|
-
_icons: 'codicon codicon-home',
|
|
21
|
-
_on: {
|
|
22
|
-
onClick: () => handleLinks('Main'),
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
_label: 'Abbr',
|
|
27
|
-
_on: {
|
|
28
|
-
onClick: () => handleLinks('Abbr'),
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
_label: 'Accordion',
|
|
33
|
-
_on: {
|
|
34
|
-
onClick: () => handleLinks('Accordion'),
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
_active: true,
|
|
39
|
-
_label: 'Alert',
|
|
40
|
-
_on: {
|
|
41
|
-
onClick: () => handleLinks('Alert'),
|
|
42
|
-
},
|
|
43
|
-
_children: [
|
|
44
|
-
{
|
|
45
|
-
_label: 'Main',
|
|
46
|
-
_icons: 'codicon codicon-home',
|
|
47
|
-
_on: {
|
|
48
|
-
onClick: () => handleLinks('/'),
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
_active: true,
|
|
53
|
-
_label: 'Abbr',
|
|
54
|
-
_href: '/abbr',
|
|
55
|
-
_on: {
|
|
56
|
-
onClick: () => handleLinks('/abbr'),
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
_label: 'Accordion',
|
|
61
|
-
_href: '/accordion',
|
|
62
|
-
_on: {
|
|
63
|
-
onClick: () => handleLinks('/accordion'),
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
_label: 'Alert',
|
|
68
|
-
_href: '/alert',
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
_label: 'Badget',
|
|
72
|
-
_on: {
|
|
73
|
-
onClick: () => handleLinks('/badget'),
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
_label: 'Badget',
|
|
80
|
-
_on: {
|
|
81
|
-
onClick: () => handleLinks('Badget'),
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
]);
|
|
85
|
-
}, []);
|
|
86
|
-
return <KolNav _ariaLabel="Main navigation" _links={links} />;
|
|
87
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|