@public-ui/sample-react 2.0.7 → 2.0.8
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/104.js +1 -1
- package/dist/1296.js +1 -1
- package/dist/1461.js +1 -1
- package/dist/1684.js +1 -1
- package/dist/1685.js +1 -1
- package/dist/1888.js +1 -1
- package/dist/2120.js +1 -1
- package/dist/2240.js +1 -1
- package/dist/2364.js +1 -1
- package/dist/2392.js +1 -1
- package/dist/2444.js +1 -1
- package/dist/2628.js +1 -1
- package/dist/2740.js +1 -1
- package/dist/2764.js +1 -1
- package/dist/2782.js +1 -1
- package/dist/2812.js +1 -1
- package/dist/3200.js +1 -1
- package/dist/3204.js +1 -1
- package/dist/3564.js +1 -1
- package/dist/3920.js +1 -1
- package/dist/4064.js +1 -1
- package/dist/4136.js +1 -1
- package/dist/4544.js +1 -1
- package/dist/4728.js +1 -1
- package/dist/4915.js +1 -1
- package/dist/4988.js +1 -1
- package/dist/5376.js +1 -1
- package/dist/5456.js +1 -1
- package/dist/5615.js +1 -1
- package/dist/5628.js +1 -1
- package/dist/5744.js +1 -1
- package/dist/5768.js +1 -1
- package/dist/5839.js +1 -1
- package/dist/5956.js +1 -1
- package/dist/5972.js +1 -1
- package/dist/6040.js +1 -1
- package/dist/7192.js +1 -1
- package/dist/72.js +2 -0
- package/dist/7312.js +1 -1
- package/dist/736.js +1 -1
- package/dist/7496.js +1 -1
- package/dist/7508.js +1 -1
- package/dist/7596.js +1 -1
- package/dist/7712.js +1 -1
- package/dist/7808.js +1 -1
- package/dist/8188.js +1 -1
- package/dist/8232.js +1 -1
- package/dist/8248.js +1 -1
- package/dist/828.js +1 -1
- package/dist/8476.js +1 -1
- package/dist/8524.js +1 -1
- package/dist/9072.js +1 -1
- package/dist/9088.js +1 -1
- package/dist/{2544.js → 9200.js} +2 -2
- package/dist/{1892.js → 9340.js} +2 -2
- package/dist/9404.js +1 -1
- package/dist/9424.js +1 -1
- package/dist/9680.js +1 -1
- package/dist/9888.js +1 -1
- package/dist/9984.js +1 -1
- package/dist/main.css +1 -1
- package/dist/main.js +15 -13
- package/package.json +4 -4
- package/src/App.tsx +14 -16
- package/src/components/input-text/partials/cases.tsx +3 -4
- package/src/scenarios/disabled-interactive-elements.tsx +161 -0
- package/src/scenarios/routes.ts +2 -0
- package/src/scenarios/static-form.tsx +13 -2
- package/src/shares/theme.ts +3 -5
- package/dist/1804.js +0 -2
- /package/dist/{1804.js.LICENSE.txt → 72.js.LICENSE.txt} +0 -0
- /package/dist/{1892.js.LICENSE.txt → 9200.js.LICENSE.txt} +0 -0
- /package/dist/{2544.js.LICENSE.txt → 9340.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/sample-react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "This app contains samples for the KoliBri/Public UI",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@leanup/stack": "1.3.49",
|
|
8
8
|
"@leanup/stack-react": "1.3.49",
|
|
9
9
|
"@leanup/stack-webpack": "1.3.49",
|
|
10
|
-
"@public-ui/components": "2.0.
|
|
11
|
-
"@public-ui/react": "2.0.
|
|
12
|
-
"@public-ui/themes": "2.0.
|
|
10
|
+
"@public-ui/components": "2.0.8",
|
|
11
|
+
"@public-ui/react": "2.0.8",
|
|
12
|
+
"@public-ui/themes": "2.0.8",
|
|
13
13
|
"@types/node": "20.11.19",
|
|
14
14
|
"@types/react": "18.2.57",
|
|
15
15
|
"@types/react-dom": "18.2.19",
|
package/src/App.tsx
CHANGED
|
@@ -6,13 +6,13 @@ import { Navigate, Route, Routes, useSearchParams } from 'react-router-dom';
|
|
|
6
6
|
import PackageJson from '@public-ui/components/package.json';
|
|
7
7
|
import { KolAlert, KolBadge } from '@public-ui/react';
|
|
8
8
|
|
|
9
|
+
import { BackPage } from './components/BackPage';
|
|
9
10
|
import { Sidebar } from './components/Sidebar';
|
|
10
11
|
import { useSetCurrentLocation } from './hooks/useSetCurrentLocation';
|
|
11
12
|
import { HideMenusContext } from './shares/HideMenusContext';
|
|
12
13
|
import { ROUTES } from './shares/routes';
|
|
13
14
|
import { getTheme, getThemeName, setStorage, setTheme } from './shares/store';
|
|
14
|
-
import {
|
|
15
|
-
import { BackPage } from './components/BackPage';
|
|
15
|
+
import { THEMES, THEME_OPTIONS, isDraftTheme } from './shares/theme';
|
|
16
16
|
|
|
17
17
|
import type { Route as MyRoute, Routes as MyRoutes } from './shares/types';
|
|
18
18
|
|
|
@@ -50,19 +50,17 @@ const getRouteTree = (routes: MyRoutes): ReturnType<typeof Route>[] => {
|
|
|
50
50
|
path={`${path}/all`}
|
|
51
51
|
element={
|
|
52
52
|
<div className="d-grid gap-4">
|
|
53
|
-
{THEME_OPTIONS.filter((theme) =>
|
|
54
|
-
(theme)
|
|
55
|
-
<div className="
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
<
|
|
60
|
-
<ThisRoute />
|
|
61
|
-
</div>
|
|
62
|
-
<hr aria-hidden="true" />
|
|
53
|
+
{THEME_OPTIONS.filter((theme) => THEMES.indexOf((theme as Option<Theme>).value) >= 0).map((theme) => (
|
|
54
|
+
<div className="d-grid gap-2" key={(theme as Option<Theme>).value} data-theme={(theme as Option<Theme>).value}>
|
|
55
|
+
<div className="mt-4">
|
|
56
|
+
<strong>{theme.label}</strong>
|
|
57
|
+
</div>
|
|
58
|
+
<div className="my-2">
|
|
59
|
+
<ThisRoute />
|
|
63
60
|
</div>
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
<hr aria-hidden="true" />
|
|
62
|
+
</div>
|
|
63
|
+
))}
|
|
66
64
|
</div>
|
|
67
65
|
}
|
|
68
66
|
/>,
|
|
@@ -137,14 +135,14 @@ export const App: FC = () => {
|
|
|
137
135
|
/>
|
|
138
136
|
)}
|
|
139
137
|
|
|
140
|
-
<
|
|
138
|
+
<main className="p-4" id="route-container">
|
|
141
139
|
{!hideMenus && isDraftTheme(theme) && <KolBadge className="block mb-3" _label="DRAFT" _color="#db5461" />}
|
|
142
140
|
<Routes>
|
|
143
141
|
{ROUTE_TREE}
|
|
144
142
|
<Route path="*" element={<KolAlert _type="info">This code example has not been migrated yet - it's coming soon!</KolAlert>} />
|
|
145
143
|
<Route path="back-page" element={<BackPage />} />
|
|
146
144
|
</Routes>
|
|
147
|
-
</
|
|
145
|
+
</main>
|
|
148
146
|
</div>
|
|
149
147
|
</HideMenusContext.Provider>
|
|
150
148
|
);
|
|
@@ -14,7 +14,6 @@ export const InputTextCases = forwardRef<HTMLKolInputTextElement, Components.Kol
|
|
|
14
14
|
_error={ERROR_MSG}
|
|
15
15
|
_placeholder="Mit Icons"
|
|
16
16
|
_icons={{
|
|
17
|
-
left: 'codicon codicon-arrow-left',
|
|
18
17
|
right: {
|
|
19
18
|
icon: 'codicon codicon-arrow-right',
|
|
20
19
|
style: {
|
|
@@ -28,13 +27,13 @@ export const InputTextCases = forwardRef<HTMLKolInputTextElement, Components.Kol
|
|
|
28
27
|
onClick: console.log,
|
|
29
28
|
onFocus: console.log,
|
|
30
29
|
}}
|
|
31
|
-
_hideLabel
|
|
32
30
|
_required
|
|
33
31
|
_type="search"
|
|
34
32
|
_touched
|
|
35
|
-
_label="
|
|
33
|
+
_label="Vorname (text)"
|
|
34
|
+
_accessKey="V"
|
|
35
|
+
ref={ref}
|
|
36
36
|
/>
|
|
37
|
-
<KolInputText {...props} ref={ref} _accessKey="V" _placeholder="Placeholder" _label="Vorname (text)" _required />
|
|
38
37
|
<KolInputText {...props} _placeholder="Placeholder" _label="Suche (search)" _type="search" />
|
|
39
38
|
<KolInputText {...props} _placeholder="Placeholder" _error={ERROR_MSG} _touched _type="url" _label="URL (url)" />
|
|
40
39
|
<KolInputText {...props} _placeholder="Placeholder" _type="tel" _label="Telefon (tel)" />
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import {
|
|
2
|
+
KolAccordion,
|
|
3
|
+
KolButton,
|
|
4
|
+
KolButtonLink,
|
|
5
|
+
KolCard,
|
|
6
|
+
KolDetails,
|
|
7
|
+
KolInputCheckbox,
|
|
8
|
+
KolInputColor,
|
|
9
|
+
KolInputDate,
|
|
10
|
+
KolInputEmail,
|
|
11
|
+
KolInputFile,
|
|
12
|
+
KolInputNumber,
|
|
13
|
+
KolInputPassword,
|
|
14
|
+
KolInputRadio,
|
|
15
|
+
KolInputRange,
|
|
16
|
+
KolInputText,
|
|
17
|
+
KolLink,
|
|
18
|
+
KolLinkButton,
|
|
19
|
+
KolSelect,
|
|
20
|
+
KolTextarea,
|
|
21
|
+
} from '@public-ui/react';
|
|
22
|
+
import type { FC } from 'react';
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import { SampleDescription } from '../components/SampleDescription';
|
|
25
|
+
|
|
26
|
+
const OPTIONS = [
|
|
27
|
+
{
|
|
28
|
+
label: 'Option A',
|
|
29
|
+
value: 'A',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
label: 'Option B',
|
|
33
|
+
value: 'B',
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
export const DisabledInteractiveElements: FC = () => (
|
|
38
|
+
<>
|
|
39
|
+
<SampleDescription>
|
|
40
|
+
<p>This example shows how deactivated interactive elements are displayed.</p>
|
|
41
|
+
<ul>
|
|
42
|
+
<li>Deactivated interactive elements pose a particular challenge for accessibility.</li>
|
|
43
|
+
<li>It must not be possible to focus on deactivated interactive elements, otherwise the tab paths will be unnecessarily extended.</li>
|
|
44
|
+
<li>Deactivated interactive elements should be labelled clearly and legibly.</li>
|
|
45
|
+
<li>
|
|
46
|
+
Deactivated interactive elements have a tooltip for sighted people and aria labelling for the screen readers reading mode if they are represented by
|
|
47
|
+
an interpretable graphic.
|
|
48
|
+
</li>
|
|
49
|
+
</ul>
|
|
50
|
+
<p>This implementation ensures standardized use for all users.</p>
|
|
51
|
+
</SampleDescription>
|
|
52
|
+
<div className="grid gap-4">
|
|
53
|
+
<KolCard _label="Button" _level={0}>
|
|
54
|
+
<div className="flex flex-wrap gap-4">
|
|
55
|
+
<KolButton _label="Label" />
|
|
56
|
+
<KolButton _disabled _label="Label" />
|
|
57
|
+
<KolButton _hideLabel _icons="codicon codicon-home" _label="Label" />
|
|
58
|
+
<KolButton _disabled _hideLabel _icons="codicon codicon-home" _label="Label" />
|
|
59
|
+
</div>
|
|
60
|
+
</KolCard>
|
|
61
|
+
<KolCard _label="ButtonLink" _level={0}>
|
|
62
|
+
<div className="flex flex-wrap gap-4">
|
|
63
|
+
<KolButtonLink _label="Label" />
|
|
64
|
+
<KolButtonLink _disabled _label="Label" />
|
|
65
|
+
<KolButtonLink _hideLabel _icons="codicon codicon-home" _label="Label" />
|
|
66
|
+
<KolButtonLink _hideLabel _icons="codicon codicon-home" _disabled _label="Label" />
|
|
67
|
+
</div>
|
|
68
|
+
</KolCard>
|
|
69
|
+
<KolCard _label="Link" _level={0}>
|
|
70
|
+
<div className="flex flex-wrap gap-4">
|
|
71
|
+
<KolLink _href="#" _label="Label" />
|
|
72
|
+
<KolLink _disabled _href="#" _label="Label" />
|
|
73
|
+
<KolLink _hideLabel _href="#" _icons="codicon codicon-home" _label="Label" />
|
|
74
|
+
<KolLink _disabled _hideLabel _href="#" _icons="codicon codicon-home" _label="Label" />
|
|
75
|
+
</div>
|
|
76
|
+
</KolCard>
|
|
77
|
+
<KolCard _label="LinkButton" _level={0}>
|
|
78
|
+
<div className="flex flex-wrap gap-4">
|
|
79
|
+
<KolLinkButton _href="#" _label="Label" />
|
|
80
|
+
<KolLinkButton _disabled _href="#" _label="Label" />
|
|
81
|
+
<KolLinkButton _hideLabel _href="#" _icons="codicon codicon-home" _label="Label" />
|
|
82
|
+
<KolLinkButton _disabled _hideLabel _href="#" _icons="codicon codicon-home" _label="Label" />
|
|
83
|
+
</div>
|
|
84
|
+
</KolCard>
|
|
85
|
+
<KolCard _label="Accordion" _level={0}>
|
|
86
|
+
<div className="grid gap-4">
|
|
87
|
+
<KolAccordion _label="Label">Content</KolAccordion>
|
|
88
|
+
<KolAccordion _disabled _label="Label">
|
|
89
|
+
Content
|
|
90
|
+
</KolAccordion>
|
|
91
|
+
<KolAccordion _label="Label (open)" _open>
|
|
92
|
+
Content
|
|
93
|
+
</KolAccordion>
|
|
94
|
+
<KolAccordion _disabled _label="Label (open)" _open>
|
|
95
|
+
Content
|
|
96
|
+
</KolAccordion>
|
|
97
|
+
</div>
|
|
98
|
+
</KolCard>
|
|
99
|
+
<KolCard _label="Details" _level={0}>
|
|
100
|
+
<div className="grid gap-4">
|
|
101
|
+
<KolDetails _label="Label">Content</KolDetails>
|
|
102
|
+
<KolDetails _disabled _label="Label">
|
|
103
|
+
Content
|
|
104
|
+
</KolDetails>
|
|
105
|
+
<KolDetails _label="Label (open)" _open>
|
|
106
|
+
Content
|
|
107
|
+
</KolDetails>
|
|
108
|
+
<KolDetails _disabled _label="Label (open)" _open>
|
|
109
|
+
Content
|
|
110
|
+
</KolDetails>
|
|
111
|
+
</div>
|
|
112
|
+
</KolCard>
|
|
113
|
+
{[KolInputCheckbox, KolInputColor, KolInputDate, KolInputEmail, KolInputFile, KolInputNumber, KolInputPassword, KolInputRange, KolInputText].map(
|
|
114
|
+
(Input) => {
|
|
115
|
+
const render = (
|
|
116
|
+
Input as typeof KolInputCheckbox & {
|
|
117
|
+
render: { displayName: string };
|
|
118
|
+
}
|
|
119
|
+
).render;
|
|
120
|
+
const name = render.displayName;
|
|
121
|
+
return (
|
|
122
|
+
<KolCard key={name} _label={name} _level={0}>
|
|
123
|
+
<div className="grid gap-4">
|
|
124
|
+
<Input _label="Label" />
|
|
125
|
+
<Input _disabled _label="Label" />
|
|
126
|
+
<Input _hideLabel _label="Label" />
|
|
127
|
+
<Input _disabled _hideLabel _label="Label" />
|
|
128
|
+
</div>
|
|
129
|
+
</KolCard>
|
|
130
|
+
);
|
|
131
|
+
},
|
|
132
|
+
)}
|
|
133
|
+
{[KolInputRadio, KolSelect].map((Input) => {
|
|
134
|
+
const render = (
|
|
135
|
+
Input as typeof KolInputRadio & {
|
|
136
|
+
render: { displayName: string };
|
|
137
|
+
}
|
|
138
|
+
).render;
|
|
139
|
+
const name = render.displayName;
|
|
140
|
+
return (
|
|
141
|
+
<KolCard key={name} _label={name} _level={0}>
|
|
142
|
+
<div className="grid gap-4">
|
|
143
|
+
<Input _label="Label" _options={OPTIONS} />
|
|
144
|
+
<Input _disabled _label="Label" _options={OPTIONS} />
|
|
145
|
+
<Input _hideLabel _label="Label" _options={OPTIONS} />
|
|
146
|
+
<Input _disabled _hideLabel _label="Label" _options={OPTIONS} />
|
|
147
|
+
</div>
|
|
148
|
+
</KolCard>
|
|
149
|
+
);
|
|
150
|
+
})}
|
|
151
|
+
<KolCard _label="KolTextarea" _level={0}>
|
|
152
|
+
<div className="grid gap-4">
|
|
153
|
+
<KolTextarea _label="Label" _rows={3} />
|
|
154
|
+
<KolTextarea _disabled _label="Label" _rows={3} />
|
|
155
|
+
<KolTextarea _hideLabel _label="Label" _rows={3} />
|
|
156
|
+
<KolTextarea _disabled _hideLabel _label="Label" _rows={3} />
|
|
157
|
+
</div>
|
|
158
|
+
</KolCard>
|
|
159
|
+
</div>
|
|
160
|
+
</>
|
|
161
|
+
);
|
package/src/scenarios/routes.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Routes } from '../shares/types';
|
|
|
2
2
|
import { AppointmentForm } from './appointment-form/AppointmentForm';
|
|
3
3
|
import { TerminComponent } from './complex-form/component';
|
|
4
4
|
import { CustomTooltipWidth } from './custom-tooltip-width';
|
|
5
|
+
import { DisabledInteractiveElements } from './disabled-interactive-elements';
|
|
5
6
|
import { InputsGetValue } from './inputs-get-value';
|
|
6
7
|
import { StaticForm } from './static-form';
|
|
7
8
|
|
|
@@ -12,5 +13,6 @@ export const SCENARIO_ROUTES: Routes = {
|
|
|
12
13
|
'inputs-get-value': InputsGetValue,
|
|
13
14
|
'custom-tooltip-width': CustomTooltipWidth,
|
|
14
15
|
'static-form': StaticForm,
|
|
16
|
+
'disabled-interactive-scenario': DisabledInteractiveElements,
|
|
15
17
|
},
|
|
16
18
|
};
|
|
@@ -41,12 +41,13 @@ export const StaticForm: FC = () => {
|
|
|
41
41
|
</li>
|
|
42
42
|
</ol>
|
|
43
43
|
</SampleDescription>
|
|
44
|
-
<form className="grid gap-4" method="get">
|
|
44
|
+
<form className="grid gap-4" method="get" noValidate>
|
|
45
45
|
<KolInputCheckbox _name="checkbox" _label="Checkbox" />
|
|
46
46
|
<KolInputColor _name="color" _label="Color" />
|
|
47
47
|
<KolInputDate _name="date" _label="Date" />
|
|
48
48
|
<KolInputEmail _name="email" _label="Email" />
|
|
49
49
|
<KolInputFile _name="file" _label="File" />
|
|
50
|
+
<KolInputFile _name="file" _label="Files (multiple)" _multiple />
|
|
50
51
|
<KolInputNumber _name="number" _label="Number" />
|
|
51
52
|
<KolInputPassword _name="password" _label="Password" />
|
|
52
53
|
<KolInputRadio
|
|
@@ -67,7 +68,17 @@ export const StaticForm: FC = () => {
|
|
|
67
68
|
{ label: 'Option B', value: 'B' },
|
|
68
69
|
]}
|
|
69
70
|
/>
|
|
70
|
-
<
|
|
71
|
+
<KolSelect
|
|
72
|
+
_name="select"
|
|
73
|
+
_label="Select (multiple)"
|
|
74
|
+
_multiple
|
|
75
|
+
_options={[
|
|
76
|
+
{ label: 'Option A', value: 'A' },
|
|
77
|
+
{ label: 'Option B', value: 'B' },
|
|
78
|
+
]}
|
|
79
|
+
_rows={2}
|
|
80
|
+
/>
|
|
81
|
+
<KolTextarea _name="textarea" _label="Textarea" _rows={5} />
|
|
71
82
|
<div className="flex flex-wrap gap-4">
|
|
72
83
|
<KolButton _label="Submit" _type="submit" _variant="primary" />
|
|
73
84
|
<KolButton _label="Reset" _type="reset" />
|
package/src/shares/theme.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { SelectOption } from '@public-ui/components';
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export const THEMES = ['bmf', 'default', 'ecl-ec', 'ecl-eu', 'itzbund'] as const;
|
|
4
|
+
export type Theme = (typeof THEMES)[number] | 'unstyled';
|
|
4
5
|
|
|
5
6
|
const drafts: Theme[] = ['ecl-ec', 'ecl-eu', 'itzbund'];
|
|
6
7
|
|
|
7
8
|
export const isDraftTheme = (theme: Theme) => drafts.includes(theme);
|
|
8
9
|
|
|
9
10
|
export const isTheme = (value: unknown) => {
|
|
10
|
-
return (
|
|
11
|
-
typeof value === 'string' &&
|
|
12
|
-
(value === 'bmf' || value === 'default' || value === 'ecl-ec' || value === 'ecl-eu' || value === 'itzbund' || value === 'unstyled')
|
|
13
|
-
);
|
|
11
|
+
return THEMES.find((theme) => theme === value) !== undefined;
|
|
14
12
|
};
|
|
15
13
|
|
|
16
14
|
export type Store = {
|
package/dist/1804.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 1804.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[1804],{9488:(t,e,n)=>{n.d(e,{I:()=>a});var i=n(224);const a=({accessKey:t,label:e})=>{let[n,...a]=e.split(t);return 0===a.length&&(t=t.toUpperCase(),[n,...a]=e.split(t)),0===a.length&&(t=t.toLowerCase(),[n,...a]=e.split(t)),(0,i.h)(i.F,null,n,a.length?(0,i.h)(i.F,null,(0,i.h)("u",null,t),a.join(t)):null)}},2228:(t,e,n)=>{n.d(e,{A:()=>a});var i=n(5244);class a{constructor(t,e,n){var a,o,s,l;if(this.experimentalMode=(0,i.a0)(),this.setFormAssociatedValue=t=>{var e;const n=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==n&&""!==n||(0,i.h)(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const a=this.tryToStringifyValue(t);this.syncValue(t,a,this.formAssociated),this.syncValue(t,a,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(n),this.type=e,(0,i.a0)()&&("KOL-BUTTON"===(l=null===(a=this.host)||void 0===a?void 0:a.tagName)||"KOL-INPUT"===l||"KOL-SELECT"===l||"KOL-TEXTAREA"===l)){switch(null===(o=this.host)||void 0===o||o.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.type){case"button":case"checkbox":case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type",this.type);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(this.experimentalMode)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,i.a1)(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,n){n&&("select"===this.type?(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){(0,i.a2)(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&(0,i.h)("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(this.experimentalMode&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}},4268:(t,e,n)=>{n.d(e,{I:()=>r,g:()=>s});var i=n(5244),a=n(3344),o=n(2228);const s=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 l extends o.A{constructor(t,e,n){super(t,e,n),this.component=t}validateAlert(t){(0,i.B)(this.component,"_alert",t)}validateTouched(t){(0,i.N)(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAlert(this.component._alert),this.validateTouched(this.component._touched)}}class r extends l{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.C)(this.component,"_accessKey",t)}validateAdjustHeight(t){(0,i.O)(this.component,t)}validateDisabled(t){(0,i.B)(this.component,"_disabled",t),!0===t&&(0,i.P)()}validateError(t){(0,i.C)(this.component,"_error",t)}validateHideError(t){(0,i.Q)(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&(0,i.T)("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateHideLabel(t){(0,i.R)(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideLabel&&(0,i.T)("Property hide-label for inputs: Only use for exceptions like search inputs that are clearly identifiable by their context.")}}})}validateHint(t){(0,i.C)(this.component,"_hint",t)}validateId(t){(0,i.C)(this.component,"_id",t,{hooks:{afterPatch:()=>{this.setAttribute("id",this.formAssociated,this.component.state._id)}},minLength:1}),""!==t&&void 0!==t||(0,i.h)("Eine eindeutige ID an den Eingabefeldern ist nicht zwingend erforderlich, könnte aber für die E2E-Tests relevant sein.")}validateLabel(t){(0,i.U)(this.component,t,{required:!0})}validateOn(t){"object"==typeof t&&(0,i.m)(this.component,"_on",t)}validateSmartButton(t){(0,i.t)(t,(()=>{try{t=(0,i.u)(t)}catch(t){}(0,i.m)(this.component,"_smartButton",t)}))}validateTabIndex(t){(0,i.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,a.s)(t),(0,a.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,a.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,a.s)(t),(0,a.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,a.s)(t),(0,a.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)}}},5488:(t,e,n)=>{n.d(e,{a:()=>o,p:()=>s});var i=n(5244);const a=t=>{for((0,i.a0)()&&((0,i.h)("↓ Search form element start."),console.log(t));t instanceof HTMLElement&&"FORM"!==t.tagName&&"KOL-FORM"!==t.tagName;){try{t=t.parentElement instanceof HTMLElement?t.parentElement:t.parentNode instanceof ShadowRoot?t.parentNode.host:null}catch(t){}(0,i.a0)()&&(console.log(t),(0,i.h)("↑ Search form element finished."))}return t},o=(t={})=>{var e,n;const o=a(t.form);if(o instanceof HTMLElement){const t=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===o.tagName)(0,i.a9)(t,o),o.dispatchEvent(t);else if("KOL-FORM"===o.tagName){(0,i.a9)(t,i.K.querySelector("form",o));const a=o;"function"==typeof(null===(e=a._on)||void 0===e?void 0:e.onReset)&&(null===(n=a._on)||void 0===n||n.onReset(t))}}},s=(t={})=>{var e,n;const o=a(t.form);if(o instanceof HTMLElement){const t=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:o});if("FORM"===o.tagName)(0,i.a9)(t,o),o.dispatchEvent(t),o.submit();else if("KOL-FORM"===o.tagName){(0,i.a9)(t,i.K.querySelector("form",o));const a=o;"function"==typeof(null===(e=a._on)||void 0===e?void 0:e.onSubmit)&&(null===(n=a._on)||void 0===n||n.onSubmit(t))}}}},8852:(t,e,n)=>{n.d(e,{I:()=>s});var i=n(5244),a=n(4268);const o=(t,e)=>{const n=t;"object"==typeof n&&null!==n&&((0,i.H)(n.right,1)&&(n.right={icon:n.right}),(0,i.H)(n.left,1)&&(n.left={icon:n.left}),e.set("_icons",n))};class s extends a.I{constructor(t,e,n){super(t,e,n),this.component=t}validateIcon(t){this.validateIcons(t)}validateIcons(t){(0,i.t)(t,(()=>{try{t=(0,i.u)(t)}catch(t){}(0,i.w)(this.component,"_icons",(t=>"object"==typeof t&&null!==t&&((0,i.H)(t.left,1)||(0,i.a5)(t.left)||(0,i.H)(t.right,1)||(0,i.a5)(t.right))),new Set(["KoliBriHorizontalIcon"]),t,{hooks:{beforePatch:o},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons||this.component._icon)}}},3344:(t,e,n)=>{function i(t){t.stopImmediatePropagation(),t.stopPropagation()}function a(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)}function o(t){t.preventDefault(),i(t)}n.d(e,{p:()=>o,s:()=>i,t:()=>a})},9424:(t,e,n)=>{n.r(e),n.d(e,{kol_input_number:()=>c});var i=n(224),a=n(5244),o=n(3848),s=n(5488),l=n(4268),r=n(9488),d=n(8852);class h extends d.I{constructor(t,e,n){super(t,e,n),this.numberOrIsoDateRegex=/^\d+$|(^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])([T ][0-2]\d:[0-5]\d:[0-5]\d(?:\.\d+)?([+-][0-2]\d:[0-5]\d|Z)?)?$)|(^[0-2]\d:[0-5]\d(:[0-5]\d)?$)/,this.parseToString=t=>"string"==typeof t?t:"number"==typeof t?`${t}`:"object"==typeof t&&t instanceof Date?t.toISOString():"",this.validateIso8601=(t,e,n)=>{const i=parseFloat(e),o=i==e;return(0,a.w)(this.component,t,(t=>void 0===t||""===t||o&&"number"==typeof i||this.numberOrIsoDateRegex.test(t)),new Set(["number","Date","string{ISO-8601}"]),this.parseToString(e),{hooks:{afterPatch:t=>{"string"==typeof t&&n&&n(t)}}})},this.component=t}validateAutoComplete(t){(0,a.w)(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateSuggestions(t){(0,a.a4)(this.component,t)}onChange(t){super.onChange(t),!!t.target.value!=!!this.component._value&&(this.component._value=t.target.value)}validateMax(t){this.validateIso8601("_max",t)}validateMin(t){this.validateIso8601("_min",t)}validatePlaceholder(t){(0,a.C)(this.component,"_placeholder",t)}validateReadOnly(t){(0,a.B)(this.component,"_readOnly",t)}validateRequired(t){(0,a.B)(this.component,"_required",t)}validateStep(t){(0,a.a7)(this.component,"_step",t)}validateValue(t){this.validateValueEx(t)}validateValueEx(t,e){this.validateIso8601("_value",t,e),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateMax(this.component._max),this.validateMin(this.component._min),this.validateSuggestions(this.component._suggestions),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateStep(this.component._step),this.validateValue(this.component._value)}}const c=class{getValue(){return t=this,null,e=function*(){var t;return null===(t=this.ref)||void 0===t?void 0:t.value},new Promise(((n,i)=>{var a=t=>{try{s(e.next(t))}catch(t){i(t)}},o=t=>{try{s(e.throw(t))}catch(t){i(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(a,o);s((e=e.apply(t,null)).next())}));var t,e}render(){const{ariaDescribedBy:t}=(0,l.g)(this.state),e=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,n=(0,a.M)(this.state._label);return(0,i.h)(i.H,{key:"cd7f33a2ad550edf368e904bccec26d6daafe0f9",class:{"has-value":this.state._hasValue}},(0,i.h)("kol-input",{key:"fa31562f05fdcdedc9d7b27c35984302307320f5",class:{number:!0,"hide-label":!!this.state._hideLabel},_accessKey:this.state._accessKey,_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},(0,i.h)("span",{key:"dcea00aa8a8141b85dc97c0b29a9f961ef464a00",slot:"label"},n?(0,i.h)("slot",{name:"expert"}):"string"==typeof this.state._accessKey?(0,i.h)(i.F,null,(0,i.h)(r.I,{accessKey:this.state._accessKey,label:this.state._label})," ",(0,i.h)("span",{class:"access-key-hint","aria-hidden":"true"},this.state._accessKey)):(0,i.h)("span",null,this.state._label)),(0,i.h)("div",{key:"9d1da1b50a72dd6c7e3525b15bbe1bc2689f7b51",slot:"input"},(0,i.h)("input",Object.assign({key:"6f1cf0cf4c5994fbd9e689c753ba4e7a2bfe5795",ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":t.length>0?t.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoComplete:this.state._autoComplete,autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,list:e?`${this.state._id}-list`:void 0,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})))))}constructor(t){(0,i.r)(this,t),this.catchRef=t=>{this.ref=t,(0,a.k)(this.host,this.ref)},this.onKeyUp=t=>{"Enter"===t.code?(0,s.p)({form:this.host,ref:this.ref}):this.controller.onFacade.onChange(t)},this._accessKey=void 0,this._alert=!0,this._autoComplete=void 0,this._disabled=!1,this._error=void 0,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._id=void 0,this._label=void 0,this._max=void 0,this._min=void 0,this._name=void 0,this._on=void 0,this._placeholder=void 0,this._readOnly=!1,this._required=!1,this._smartButton=void 0,this._suggestions=void 0,this._step=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_autoComplete:"off",_hasValue:!1,_hideError:!1,_id:`id-${(0,o.n)()}`,_label:"",_suggestions:[]},this.controller=new h(this,"number",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateAutoComplete(t){this.controller.validateAutoComplete(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateMax(t){this.controller.validateMax(t)}validateMin(t){this.controller.validateMin(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validatePlaceholder(t){this.controller.validatePlaceholder(t)}validateReadOnly(t){this.controller.validateReadOnly(t)}validateRequired(t){this.controller.validateRequired(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateStep(t){this.controller.validateStep(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValueEx(t,(t=>{""===t&&this.ref&&(this.ref.value="")}))}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return(0,i.g)(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_max:["validateMax"],_min:["validateMin"],_name:["validateName"],_on:["validateOn"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_smartButton:["validateSmartButton"],_suggestions:["validateSuggestions"],_step:["validateStep"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};c.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.hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\n\t/* This is the text label. */\n\t.hide-label > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n\n\t.disabled label,\n\t[aria-disabled='true'],\n\t[disabled] {\n\t\tcursor: not-allowed;\n\t\topacity: 0.5;\n\t\toutline: 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\n@layer kol-component {\n\tkol-input {\n\t\tdisplay: grid;\n\t}\n\n\tkol-input .input-slot {\n\t\tflex-grow: 1;\n\t}\n\n\tinput:not([type='checkbox'], [type='radio']),\n\tselect:not([multiple], [size]) {\n\t\theight: 2.75em;\n\t}\n\n\tinput:focus,\n\toption:focus,\n\tselect:focus,\n\ttextarea:focus {\n\t\toutline: 0;\n\t}\n\n\t.input {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\n\t.input > kol-icon {\n\t\tdisplay: grid;\n\t\theight: var(--a11y-min-size);\n\t\tplace-items: center;\n\t}\n\n\tkol-input.required .input-tooltip .span-label::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n}\n"}}}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|