@public-ui/sample-react 1.7.1 → 1.7.2-rc.0

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.
Files changed (81) hide show
  1. package/.eslintignore +2 -1
  2. package/dist/1474.js +1 -1
  3. package/dist/183.js +1 -1
  4. package/dist/{4864.js → 2025.js} +2 -2
  5. package/dist/2337.js +1 -1
  6. package/dist/2412.js +1 -1
  7. package/dist/27.js +2 -0
  8. package/dist/3303.js +1 -1
  9. package/dist/3325.js +1 -1
  10. package/dist/3459.js +1 -1
  11. package/dist/3530.js +2 -0
  12. package/dist/3537.js +1 -1
  13. package/dist/4021.js +1 -1
  14. package/dist/{3153.js → 4042.js} +2 -2
  15. package/dist/4291.js +1 -1
  16. package/dist/4323.js +1 -1
  17. package/dist/4355.js +1 -1
  18. package/dist/4477.js +1 -1
  19. package/dist/4564.js +1 -1
  20. package/dist/4891.js +1 -1
  21. package/dist/5183.js +1 -1
  22. package/dist/5369.js +1 -1
  23. package/dist/5390.js +1 -1
  24. package/dist/540.js +1 -1
  25. package/dist/5866.js +1 -1
  26. package/dist/6012.js +1 -1
  27. package/dist/6068.js +1 -1
  28. package/dist/6210.js +1 -1
  29. package/dist/6320.js +1 -1
  30. package/dist/6558.js +1 -1
  31. package/dist/6655.js +1 -1
  32. package/dist/6908.js +1 -1
  33. package/dist/7029.js +1 -1
  34. package/dist/7255.js +1 -1
  35. package/dist/7447.js +1 -1
  36. package/dist/7715.js +1 -1
  37. package/dist/7722.js +1 -1
  38. package/dist/7801.js +1 -1
  39. package/dist/7955.js +1 -1
  40. package/dist/7995.js +1 -1
  41. package/dist/8065.js +1 -1
  42. package/dist/8099.js +1 -1
  43. package/dist/8111.js +1 -1
  44. package/dist/8255.js +1 -1
  45. package/dist/8291.js +1 -1
  46. package/dist/8709.js +1 -1
  47. package/dist/8761.js +1 -1
  48. package/dist/9106.js +1 -1
  49. package/dist/9734.js +1 -1
  50. package/dist/9747.js +1 -1
  51. package/dist/9792.js +1 -1
  52. package/dist/9963.js +1 -1
  53. package/dist/main.css +1 -1
  54. package/dist/main.js +8646 -39
  55. package/dist/main.js.LICENSE.txt +9 -0
  56. package/package.json +7 -5
  57. package/src/components/FormWrap.tsx +9 -0
  58. package/src/components/modal/basic.tsx +1 -1
  59. package/src/scenarios/appointment-form/AppointmentForm.tsx +127 -0
  60. package/src/scenarios/appointment-form/AvailableAppointmentsForm.tsx +118 -0
  61. package/src/scenarios/appointment-form/DistrictForm.tsx +80 -0
  62. package/src/scenarios/appointment-form/ErrorList.tsx +35 -0
  63. package/src/scenarios/appointment-form/PersonalInformationForm.tsx +157 -0
  64. package/src/scenarios/appointment-form/Summary.tsx +55 -0
  65. package/src/scenarios/appointment-form/appointmentService.ts +37 -0
  66. package/src/scenarios/complex-form/common/form/component.tsx +25 -0
  67. package/src/scenarios/complex-form/common/form/types.ts +13 -0
  68. package/src/scenarios/complex-form/component.tsx +163 -0
  69. package/src/scenarios/complex-form/kopfdaten/component.tsx +50 -0
  70. package/src/scenarios/complex-form/location/component.tsx +16 -0
  71. package/src/scenarios/complex-form/location/location.form.ts +22 -0
  72. package/src/scenarios/complex-form/schedule/component.tsx +16 -0
  73. package/src/scenarios/complex-form/schedule/schedule.form.ts +34 -0
  74. package/src/scenarios/routes.ts +10 -0
  75. package/src/shares/routes.ts +8 -6
  76. package/dist/4436.js +0 -2
  77. package/dist/5293.js +0 -2
  78. /package/dist/{3153.js.LICENSE.txt → 2025.js.LICENSE.txt} +0 -0
  79. /package/dist/{4436.js.LICENSE.txt → 27.js.LICENSE.txt} +0 -0
  80. /package/dist/{4864.js.LICENSE.txt → 3530.js.LICENSE.txt} +0 -0
  81. /package/dist/{5293.js.LICENSE.txt → 4042.js.LICENSE.txt} +0 -0
@@ -0,0 +1,25 @@
1
+ import React, { FC, ReactNode } from 'react';
2
+
3
+ import { KolForm, KolLinkGroup } from '@public-ui/react';
4
+
5
+ type Props = {
6
+ submitted: boolean;
7
+ children: ReactNode;
8
+ onSubmit: (event: Event) => void;
9
+ };
10
+
11
+ export const FromComponent: FC<Props> = (props) => (
12
+ <>
13
+ {props.submitted === true && (
14
+ <KolLinkGroup tabIndex={0} class="fehlerliste" data-removed-_label="Fehlerliste" _label="Fehlerliste" _level={3} _links={[]} />
15
+ )}
16
+ <KolForm
17
+ className="block mb-2"
18
+ _on={{
19
+ onSubmit: props.onSubmit,
20
+ }}
21
+ >
22
+ {props.children}
23
+ </KolForm>
24
+ </>
25
+ );
@@ -0,0 +1,13 @@
1
+ export type Fehler = {
2
+ _label: string;
3
+ _selector: string;
4
+ };
5
+
6
+ export type FormProps = {
7
+ onSubmitted: (event: Event) => void;
8
+ };
9
+
10
+ export type FormState = {
11
+ loader: boolean;
12
+ touched: boolean;
13
+ };
@@ -0,0 +1,163 @@
1
+ import React, { FC } from 'react';
2
+
3
+ import { KolHeading, KolProgress, KolTable, KolTabs } from '@public-ui/react';
4
+
5
+ import { TerminKopfdatenComponent } from './kopfdaten/component';
6
+ import { TerminLocationComponent } from './location/component';
7
+ import { TerminScheduleComponent } from './schedule/component';
8
+
9
+ type Zeiten = {
10
+ stadtteil: string;
11
+ zeiten: string;
12
+ montag: string;
13
+ dienstag: string;
14
+ mittwoch: string;
15
+ donnerstag: string;
16
+ freitag: string;
17
+ };
18
+
19
+ export const TerminComponent: FC = () => (
20
+ <>
21
+ <div className="grid sm:grid-cols-1 gap-2 my-3">
22
+ <KolHeading>Terminreservierung</KolHeading>
23
+ <KolHeading _level={2}>Termine für Einwohnermelde- (incl. Pass- und Ausweisangelegenheiten) und Kraftfahrzeugangelegenheiten</KolHeading>
24
+ <div style={{ fontFamily: 'Arial' }}>
25
+ <p className="py-2">Derzeit kann generell nur mit vorheriger Terminvereinbarung bei den Bürgerdiensten vorgesprochen werden.</p>
26
+ <p className="py-2">
27
+ Die Termine für Einwohnermelde- und Kraftfahrzeugangelegenheiten werden täglich ab 07:00 Uhr für den gleichen Tag, für den gleichen Tag 7 Tage und für
28
+ den gleichen Tag 14 Tage später freigegeben. So können Sie jeden Tag spontan Termine für den gleichen Tag und planbar Termine für eine Woche oder zwei
29
+ Wochen später erhalten.
30
+ </p>
31
+ <p className="py-2">
32
+ Sofern online keine Termine innerhalb der nächsten 14 Tage mehr verfügbar sind, führt auch eine darüber hinaus gehende telefonische Kontaktaufnahme
33
+ leider zu keinem anderen Ergebnis. In diesem Fall versuchen Sie es bitte am nächsten Morgen erneut.
34
+ </p>
35
+ <p className="py-2">
36
+ Bitte achten Sie darauf, den richtigen Kalender für Ihr Anliegen auszuwählen. Hinweis: Bitte geben Sie bei Ihrer Terminvereinbarung zur lückenlosen
37
+ Kontaktverfolgung immer Ihre korrekte Telefonnummer und E-Mail Adresse an. Wir behalten uns vor, gebuchte Termine mit falschen Angaben zu löschen.
38
+ </p>
39
+ </div>
40
+ </div>
41
+ <div className="grid sm:grid-cols-1 gap-2">
42
+ <KolTable
43
+ _caption="Öffnungszeiten"
44
+ _data={
45
+ [
46
+ {
47
+ stadtteil: 'Brackel',
48
+ montag: '08:00 - 12:00<br/>14:00 - 16:00',
49
+ dienstag: '08:00 - 12:00<br/>14:00 - 15:00',
50
+ mittwoch: '08:00 - 12:00<br/>14:00 - 15:00',
51
+ donnerstag: '08:00 - 12:00<br/>14:00 - 18:00',
52
+ freitag: '08:00 - 12:00',
53
+ },
54
+ {
55
+ stadtteil: 'Dorstfeld',
56
+ montag: '09:00 - 12:00<br/>14:00 - 16:00',
57
+ dienstag: '09:00 - 12:00<br/>14:00 - 15:00',
58
+ mittwoch: '09:00 - 12:00<br/>14:00 - 15:00',
59
+ donnerstag: '09:00 - 12:00<br/>14:00 - 18:00',
60
+ freitag: '09:00 - 12:00',
61
+ },
62
+ {
63
+ stadtteil: 'Aplerbeck',
64
+ montag: '08:00 - 12:00<br/>14:00 - 16:00',
65
+ dienstag: '08:00 - 12:00<br/>14:00 - 15:00',
66
+ mittwoch: '08:00 - 12:00<br/>14:00 - 15:00',
67
+ donnerstag: '08:00 - 12:00<br/>14:00 - 18:00',
68
+ freitag: '08:00 - 12:00',
69
+ },
70
+ {
71
+ stadtteil: 'Innenstadt Ost',
72
+ montag: '07:00 - 12:00<br/>14:00 - 16:00',
73
+ dienstag: '07:00 - 12:00<br/>14:00 - 15:00',
74
+ mittwoch: '07:00 - 12:00<br/>14:00 - 15:00',
75
+ donnerstag: '07:00 - 12:00<br/>14:00 - 18:00',
76
+ freitag: '07:00 - 12:00<br/>13:00 - 16:00',
77
+ },
78
+ {
79
+ stadtteil: 'Innenstadt West',
80
+ montag: '07:00 - 12:00<br/>14:00 - 16:00',
81
+ dienstag: '07:00 - 12:00<br/>14:00 - 15:00',
82
+ mittwoch: '07:00 - 12:00<br/>14:00 - 15:00',
83
+ donnerstag: '07:00 - 12:00<br/>14:00 - 18:00',
84
+ freitag: '07:00 - 12:00<br/>13:00 - 16:00',
85
+ /*render: (el, data) => {
86
+ el.innerHTML = `<kol-badge _color="#ff0000" _label="NIX"></kol-badge>`;
87
+ },*/
88
+ },
89
+ ] as Zeiten[]
90
+ }
91
+ _headers={{
92
+ horizontal: [
93
+ [
94
+ { label: '', asTd: true },
95
+ { label: 'Tag', colSpan: 5 },
96
+ ],
97
+ [
98
+ {
99
+ label: 'Stadtteil',
100
+ key: 'stadtteil',
101
+ textAlign: 'left',
102
+ sort: (data: Zeiten[]) => {
103
+ return data.sort((first, second) => {
104
+ if (first.stadtteil < second.stadtteil) {
105
+ return -1;
106
+ }
107
+ if (first.stadtteil > second.stadtteil) {
108
+ return 1;
109
+ }
110
+ return 0;
111
+ });
112
+ },
113
+ },
114
+ { label: 'Montag', key: 'montag', textAlign: 'center' },
115
+ { label: 'Dienstag', key: 'dienstag', textAlign: 'center' },
116
+ { label: 'Mittwoch', key: 'mittwoch', textAlign: 'center' },
117
+ { label: 'Donnerstag', key: 'donnerstag', textAlign: 'center' },
118
+ { label: 'Freitag', key: 'freitag', textAlign: 'center' },
119
+ ],
120
+ ],
121
+ }}
122
+ _minWidth="50em"
123
+ style={{
124
+ display: 'inline-grid',
125
+ width: '100%',
126
+ }}
127
+ ></KolTable>
128
+ <KolTabs
129
+ className="block mt-4"
130
+ _ariaLabel="Registerkarten"
131
+ _tabs={[
132
+ {
133
+ _label: '1. Einwohnermeldeämter',
134
+ },
135
+ {
136
+ _label: '2. Freie Termine',
137
+ },
138
+ {
139
+ _label: '3. Persönliche Daten',
140
+ },
141
+ ]}
142
+ >
143
+ <div>
144
+ <KolHeading _level={2}>Wählen Sie einen Stadtteil aus</KolHeading>
145
+ <TerminLocationComponent onSubmitted={() => {}} />
146
+ </div>
147
+ <div>
148
+ <KolHeading _level={2}>Wählen Sie einen Termin aus</KolHeading>
149
+ <TerminScheduleComponent onSubmitted={() => {}} />
150
+ </div>
151
+ <div>
152
+ <KolHeading _level={2}>Geben Sie Ihre Kontaktdaten ein</KolHeading>
153
+ <TerminKopfdatenComponent onSubmitted={() => {}} />
154
+ </div>
155
+ </KolTabs>
156
+ </div>
157
+ <div className="grid sm:grid-cols-1 gap-2">
158
+ <div className="border-top"></div>
159
+ <KolHeading _level={3}>Fortschritt</KolHeading>
160
+ <KolProgress _value={0} _max={100} _unit="Prozent des Formulars"></KolProgress>
161
+ </div>
162
+ </>
163
+ );
@@ -0,0 +1,50 @@
1
+ import React, { FC } from 'react';
2
+
3
+ import { KolAbbr, KolButton, KolInputEmail, KolInputRadio, KolInputText, KolSpin } from '@public-ui/react';
4
+ import { FormProps } from '../common/form/types';
5
+ import { FromComponent } from '../common/form/component';
6
+
7
+ export const TerminKopfdatenComponent: FC<FormProps> = (props) => (
8
+ <FromComponent submitted={true} onSubmit={() => {}}>
9
+ <div className="grid grid-cols-2 gap-4">
10
+ <KolInputRadio
11
+ _id="anrede"
12
+ _list={[
13
+ { label: 'Herr', value: 'Herr' },
14
+ { label: 'Frau', value: 'Frau' },
15
+ ]}
16
+ _touched={true}
17
+ ></KolInputRadio>
18
+ <KolInputText _id="termin_kopfdaten_vorname" _type="text" _autoComplete="on" _touched={true}></KolInputText>
19
+ <KolInputText _id="termin_kopfdaten_nachname" _type="text" _autoComplete="on" _touched={true}></KolInputText>
20
+ <KolInputText _id="termin_kopfdaten_strasse" _type="text" _autoComplete="on" _touched={true}></KolInputText>
21
+ <div className="grid grid-cols-6 gap-4">
22
+ <KolInputText _id="termin_kopfdaten_plz" _type="text" _autoComplete="on" _touched={true}>
23
+ <KolAbbr _title="Postleitzahl" _tooltipAlign="right">
24
+ PLZ
25
+ </KolAbbr>
26
+ </KolInputText>
27
+ <KolInputText _id="termin_kopfdaten_ort" _type="text" _autoComplete="on" _touched={true}></KolInputText>
28
+ </div>
29
+ <KolInputText
30
+ _id="termin_kopfdaten_telefon"
31
+ _icon="icofont-phone"
32
+ _list={['01234 / 567890']}
33
+ _type="tel"
34
+ _autoComplete="on"
35
+ _touched={true}
36
+ ></KolInputText>
37
+ <KolInputEmail
38
+ _id="termin_kopfdaten_email"
39
+ _icon="icofont-email"
40
+ _list={['elke.mustermann@test.de', 'max.mustermann@test.de']}
41
+ _touched={true}
42
+ _autoComplete="on"
43
+ ></KolInputEmail>
44
+ <div>
45
+ <KolButton className="inline-block my-1" _icon="icofont-paper-plane" _type="submit" _label="Terminanfrage absenden"></KolButton>
46
+ <KolSpin _show={true} className="ml-4" />
47
+ </div>
48
+ </div>
49
+ </FromComponent>
50
+ );
@@ -0,0 +1,16 @@
1
+ import React, { FC } from 'react';
2
+
3
+ import { KolButton, KolSelect, KolSpin } from '@public-ui/react';
4
+ import { LOCATION_OPTIONS } from './location.form';
5
+ import { FormProps } from '../common/form/types';
6
+ import { FromComponent } from '../common/form/component';
7
+
8
+ export const TerminLocationComponent: FC<FormProps> = () => (
9
+ <FromComponent submitted={true} onSubmit={() => {}}>
10
+ <div className="grid sm:grid-cols-1 xl:grid-cols-2 gap-2 my-2">
11
+ <KolSelect _id="termin-location-location" _list={LOCATION_OPTIONS} _touched={true}></KolSelect>
12
+ </div>
13
+ <KolButton className="inline-block my-1" _icon="icofont-arrow-right" _iconAlign="right" _label="Zur Terminauswahl" _type="submit"></KolButton>
14
+ <KolSpin _show={true} className="ml-4" />
15
+ </FromComponent>
16
+ );
@@ -0,0 +1,22 @@
1
+ export const LOCATION_OPTIONS = [
2
+ {
3
+ value: 'Aplerbeck',
4
+ label: 'Aplerbeck',
5
+ },
6
+ {
7
+ value: 'Brackel',
8
+ label: 'Brackel',
9
+ },
10
+ {
11
+ value: 'Dorstfeld',
12
+ label: 'Dorstfeld',
13
+ },
14
+ {
15
+ value: 'Innenstadt Ost',
16
+ label: 'Innenstadt Ost',
17
+ },
18
+ {
19
+ value: 'Innenstadt West',
20
+ label: 'Innenstadt West',
21
+ },
22
+ ];
@@ -0,0 +1,16 @@
1
+ import React, { FC } from 'react';
2
+
3
+ import { KolButton, KolInputDate, KolSpin } from '@public-ui/react';
4
+ import { FromComponent } from '../common/form/component';
5
+ import { FormProps } from '../common/form/types';
6
+
7
+ export const TerminScheduleComponent: FC<FormProps> = (props) => (
8
+ <FromComponent submitted={true} onSubmit={() => {}}>
9
+ <div className="grid sm:grid-cols-1 xl:grid-cols-2 gap-2 my-2">
10
+ <KolInputDate _id="termin-schedule-schedule" _type="date" _touched={true}></KolInputDate>
11
+ <KolInputDate _id="termin-schedule-time" _type="time" _touched={true}></KolInputDate>
12
+ </div>
13
+ <KolButton className="inline-block my-1" _icon="icofont-arrow-right" _iconAlign="right" _label="Zu den Kontaktdaten" _type="submit"></KolButton>
14
+ <KolSpin _show={true} className="ml-4" />
15
+ </FromComponent>
16
+ );
@@ -0,0 +1,34 @@
1
+ import { FormControl, InputControl, RequiredValidator, ValidationHandler } from '@leanup/form';
2
+
3
+ export interface Schedule {
4
+ schedule: string;
5
+ time: string;
6
+ }
7
+
8
+ export class ScheduleForm extends FormControl {
9
+ public constructor() {
10
+ super('schedule');
11
+
12
+ this.addControl(
13
+ new InputControl('schedule', {
14
+ label: 'Datum',
15
+ mandatory: true,
16
+ }),
17
+ );
18
+
19
+ this.addControl(
20
+ new InputControl('time', {
21
+ label: 'Uhrzeit',
22
+ mandatory: true,
23
+ }),
24
+ );
25
+
26
+ const validationHandler = new ValidationHandler();
27
+ validationHandler.validators.add([new RequiredValidator('Bitte wählen Sie ein Datum aus.')]);
28
+ this.getInput('schedule')?.setValidationHandler(validationHandler);
29
+
30
+ const timeHandler = new ValidationHandler();
31
+ timeHandler.validators.add([new RequiredValidator('Bitte wählen Sie eine Uhrzeit aus.')]);
32
+ this.getInput('time')?.setValidationHandler(timeHandler);
33
+ }
34
+ }
@@ -0,0 +1,10 @@
1
+ import { Routes } from '../shares/types';
2
+ import { TerminComponent } from './complex-form/component';
3
+ import { AppointmentForm } from './appointment-form/AppointmentForm';
4
+
5
+ export const SCENARIO_ROUTES: Routes = {
6
+ scenarios: {
7
+ 'complex-form': TerminComponent,
8
+ 'appointment-form': AppointmentForm,
9
+ },
10
+ };
@@ -13,6 +13,7 @@ import { FORM_ROUTES } from '../components/form/routes';
13
13
  import { HANDOUT_ROUTES } from '../components/handout/routes';
14
14
  import { HEADING_ROUTES } from '../components/heading/routes';
15
15
  import { ICON_ROUTES } from '../components/icon/routes';
16
+ import { IMAGE_ROUTES } from '../components/image/routes';
16
17
  import { INDENTED_ROUTES } from '../components/indented-text/routes';
17
18
  import { INPUT_CHECKBOX_ROUTES } from '../components/input-checkbox/routes';
18
19
  import { INPUT_COLOR_ROUTES } from '../components/input-color/routes';
@@ -24,28 +25,28 @@ import { INPUT_PASSWORD_ROUTES } from '../components/input-password/routes';
24
25
  import { INPUT_RADIO_ROUTES } from '../components/input-radio/routes';
25
26
  import { INPUT_RANGE_ROUTES } from '../components/input-range/routes';
26
27
  import { INPUT_TEXT_ROUTES } from '../components/input-text/routes';
28
+ import { KOLIBRI_ROUTES } from '../components/kolibri/routes';
27
29
  import { LINK_BUTTON_ROUTES } from '../components/link-button/routes';
28
30
  import { LINK_GROUP_ROUTES } from '../components/link-group/routes';
29
31
  import { LINK_ROUTES } from '../components/link/routes';
32
+ import { LOGO_ROUTES } from '../components/logo/routes';
33
+ import { MODAL_ROUTES } from '../components/modal/routes';
30
34
  import { NAV_ROUTES } from '../components/nav/routes';
31
35
  import { PAGINATION_ROUTES } from '../components/pagination/routes';
32
36
  import { POPOVER_ROUTES } from '../components/popover/routes';
33
37
  import { PROGRESS_ROUTES } from '../components/progress/routes';
38
+ import { QUOTE_ROUTES } from '../components/quote/routes';
34
39
  import { SELECT_ROUTES } from '../components/select/routes';
35
40
  import { SKIP_NAV_ROUTES } from '../components/skip-nav/routes';
36
41
  import { SPIN_ROUTES } from '../components/spin/routes';
37
42
  import { SPLIT_BUTTON_ROUTES } from '../components/split-button/routes';
38
43
  import { TABLE_ROUTES } from '../components/table/routes';
44
+ import { TABS_ROUTES } from '../components/tabs/routes';
39
45
  import { TEXTAREA_ROUTES } from '../components/textarea/routes';
40
46
  import { TOAST_ROUTES } from '../components/toast/routes';
41
47
  import { VERSION_ROUTES } from '../components/version/routes';
48
+ import { SCENARIO_ROUTES } from '../scenarios/routes';
42
49
  import { Routes } from './types';
43
- import { IMAGE_ROUTES } from '../components/image/routes';
44
- import { KOLIBRI_ROUTES } from '../components/kolibri/routes';
45
- import { LOGO_ROUTES } from '../components/logo/routes';
46
- import { MODAL_ROUTES } from '../components/modal/routes';
47
- import { QUOTE_ROUTES } from '../components/quote/routes';
48
- import { TABS_ROUTES } from '../components/tabs/routes';
49
50
 
50
51
  export const ROUTES: Routes = {
51
52
  ...HANDOUT_ROUTES,
@@ -96,4 +97,5 @@ export const ROUTES: Routes = {
96
97
  ...TEXTAREA_ROUTES,
97
98
  ...TOAST_ROUTES,
98
99
  ...VERSION_ROUTES,
100
+ ...SCENARIO_ROUTES,
99
101
  };
package/dist/4436.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 4436.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[4436],{1186:(t,e,n)=>{n.d(e,{v:()=>i});var o=n(9911);const i=(t,e)=>{(0,o.v)(t,"_align",e)}},9911:(t,e,n)=>{n.d(e,{v:()=>r});var o=n(4864);const i=new Set([...new Set(['"left", "right"']),...new Set(['"bottom", "top"'])]),r=(t,e,n)=>{(0,o.w)(t,e,(t=>"bottom"===t||"left"===t||"right"===t||"top"===t),i,n,{defaultValue:"top"})}},4604:(t,e,n)=>{n.d(e,{a:()=>W,b:()=>ht,c:()=>yt,f:()=>_,o:()=>V,s:()=>B});var o=Object.defineProperty,i=Object.defineProperties,r=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,f=(t,e,n)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,a=(t,e)=>{for(var n in e||(e={}))c.call(e,n)&&f(t,n,e[n]);if(l)for(var n of l(e))s.call(e,n)&&f(t,n,e[n]);return t},u=(t,e)=>i(t,r(e)),d=(t,e)=>{var n={};for(var o in t)c.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&l)for(var o of l(t))e.indexOf(o)<0&&s.call(t,o)&&(n[o]=t[o]);return n},p=(t,e,n)=>new Promise(((o,i)=>{var r=t=>{try{c(n.next(t))}catch(t){i(t)}},l=t=>{try{c(n.throw(t))}catch(t){i(t)}},c=t=>t.done?o(t.value):Promise.resolve(t.value).then(r,l);c((n=n.apply(t,e)).next())}));const m=Math.min,h=Math.max,y=Math.round,g=Math.floor,x=t=>({x:t,y:t}),v={left:"right",right:"left",bottom:"top",top:"bottom"},b={start:"end",end:"start"};function w(t,e,n){return h(t,m(e,n))}function R(t,e){return"function"==typeof t?t(e):t}function E(t){return t.split("-")[0]}function T(t){return t.split("-")[1]}function L(t){return"x"===t?"y":"x"}function A(t){return"y"===t?"height":"width"}function O(t){return["top","bottom"].includes(E(t))?"y":"x"}function P(t){return L(O(t))}function S(t){return t.replace(/start|end/g,(t=>b[t]))}function k(t){return t.replace(/left|right|bottom|top/g,(t=>v[t]))}function D(t){return"number"!=typeof t?function(t){return a({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function C(t){return u(a({},t),{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}function F(t,e,n){let{reference:o,floating:i}=t;const r=O(e),l=P(e),c=A(l),s=E(e),f="y"===r,a=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,d=o[c]/2-i[c]/2;let p;switch(s){case"top":p={x:a,y:o.y-i.height};break;case"bottom":p={x:a,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:u};break;case"left":p={x:o.x-i.width,y:u};break;default:p={x:o.x,y:o.y}}switch(T(e)){case"start":p[l]-=d*(n&&f?-1:1);break;case"end":p[l]+=d*(n&&f?-1:1)}return p}function H(t,e){return p(this,null,(function*(){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:c,strategy:s}=t,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:m=!1,padding:h=0}=R(e,t),y=D(h),g=c[m?"floating"===p?"reference":"floating":p],x=C(yield r.getClippingRect({element:null==(n=yield null==r.isElement?void 0:r.isElement(g))||n?g:g.contextElement||(yield null==r.getDocumentElement?void 0:r.getDocumentElement(c.floating)),boundary:f,rootBoundary:d,strategy:s})),v="floating"===p?u(a({},l.floating),{x:o,y:i}):l.reference,b=yield null==r.getOffsetParent?void 0:r.getOffsetParent(c.floating),w=(yield null==r.isElement?void 0:r.isElement(b))&&(yield null==r.getScale?void 0:r.getScale(b))||{x:1,y:1},E=C(r.convertOffsetParentRelativeRectToViewportRelativeRect?yield r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:s}):v);return{top:(x.top-E.top+y.top)/w.y,bottom:(E.bottom-x.bottom+y.bottom)/w.y,left:(x.left-E.left+y.left)/w.x,right:(E.right-x.right+y.right)/w.x}}))}const W=t=>({name:"arrow",options:t,fn(e){return p(this,null,(function*(){const{x:n,y:o,placement:i,rects:r,platform:l,elements:c,middlewareData:s}=e,{element:f,padding:a=0}=R(t,e)||{};if(null==f)return{};const u=D(a),d={x:n,y:o},p=P(i),h=A(p),y=yield l.getDimensions(f),g="y"===p,x=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",E=r.reference[h]+r.reference[p]-d[p]-r.floating[h],L=d[p]-r.reference[p],O=yield null==l.getOffsetParent?void 0:l.getOffsetParent(f);let S=O?O[b]:0;S&&(yield null==l.isElement?void 0:l.isElement(O))||(S=c.floating[b]||r.floating[h]);const k=E/2-L/2,C=S/2-y[h]/2-1,F=m(u[x],C),H=m(u[v],C),W=F,_=S-y[h]-H,V=S/2-y[h]/2+k,B=w(W,V,_),M=!s.arrow&&null!=T(i)&&V!=B&&r.reference[h]/2-(V<W?F:H)-y[h]/2<0,j=M?V<W?W-V:_-V:0;return{[p]:d[p]-j,data:{[p]:B,centerOffset:V-B+j},reset:M}}))}}),_=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn(e){return p(this,null,(function*(){var n;const{placement:o,middlewareData:i,rects:r,initialPlacement:l,platform:c,elements:s}=e,f=R(t,e),{mainAxis:a=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:y=!0}=f,g=d(f,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]),x=E(o),v=E(l)===l,b=yield null==c.isRTL?void 0:c.isRTL(s.floating),w=p||(v||!y?[k(l)]:function(t){const e=k(t);return[S(t),e,S(e)]}(l));p||"none"===h||w.push(...function(t,e,n,o){const i=T(t);let r=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}(E(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(S)))),r}(l,y,h,b));const L=[l,...w],O=yield H(e,g),D=[];let C=(null==(n=i.flip)?void 0:n.overflows)||[];if(a&&D.push(O[x]),u){const t=function(t,e,n){void 0===n&&(n=!1);const o=T(t),i=P(t),r=A(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=k(l)),[l,k(l)]}(o,r,b);D.push(O[t[0]],O[t[1]])}if(C=[...C,{placement:o,overflows:D}],!D.every((t=>t<=0))){var F,W;const t=((null==(F=i.flip)?void 0:F.index)||0)+1,e=L[t];if(e)return{data:{index:t,overflows:C},reset:{placement:e}};let n=null==(W=C.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:W.placement;if(!n)switch(m){case"bestFit":{var _;const t=null==(_=C.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:_[0];t&&(n=t);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}))}}},V=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn(e){return p(this,null,(function*(){const{x:n,y:o}=e,i=yield function(t,e){return p(this,null,(function*(){const{placement:n,platform:o,elements:i}=t,r=yield null==o.isRTL?void 0:o.isRTL(i.floating),l=E(n),c=T(n),s="y"===O(n),f=["left","top"].includes(l)?-1:1,u=r&&s?-1:1,d=R(e,t);let{mainAxis:p,crossAxis:m,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:a({mainAxis:0,crossAxis:0,alignmentAxis:null},d);return c&&"number"==typeof h&&(m="end"===c?-1*h:h),s?{x:m*u,y:p*f}:{x:p*f,y:m*u}}))}(e,t);return{x:n+i.x,y:o+i.y,data:i}}))}}},B=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn(e){return p(this,null,(function*(){const{x:n,y:o,placement:i}=e,r=R(t,e),{mainAxis:l=!0,crossAxis:c=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}}}=r,f=d(r,["mainAxis","crossAxis","limiter"]),p={x:n,y:o},m=yield H(e,f),h=O(E(i)),y=L(h);let g=p[y],x=p[h];if(l){const t="y"===y?"bottom":"right";g=w(g+m["y"===y?"top":"left"],g,g-m[t])}if(c){const t="y"===h?"bottom":"right";x=w(x+m["y"===h?"top":"left"],x,x-m[t])}const v=s.fn(u(a({},e),{[y]:g,[h]:x}));return u(a({},v),{data:{x:v.x-n,y:v.y-o}})}))}}};function M(t){return N(t)?(t.nodeName||"").toLowerCase():"#document"}function j(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function z(t){var e;return null==(e=(N(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function N(t){return t instanceof Node||t instanceof j(t).Node}function I(t){return t instanceof Element||t instanceof j(t).Element}function q(t){return t instanceof HTMLElement||t instanceof j(t).HTMLElement}function X(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof j(t).ShadowRoot)}function Y(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=Q(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function $(t){return["table","td","th"].includes(M(t))}function G(t){const e=J(),n=Q(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function J(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function K(t){return["html","body","#document"].includes(M(t))}function Q(t){return j(t).getComputedStyle(t)}function U(t){return I(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Z(t){if("html"===M(t))return t;const e=t.assignedSlot||t.parentNode||X(t)&&t.host||z(t);return X(e)?e.host:e}function tt(t){const e=Z(t);return K(e)?t.ownerDocument?t.ownerDocument.body:t.body:q(e)&&Y(e)?e:tt(e)}function et(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=tt(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=j(i);return r?e.concat(l,l.visualViewport||[],Y(i)?i:[],l.frameElement&&n?et(l.frameElement):[]):e.concat(i,et(i))}function nt(t){const e=Q(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=q(t),r=i?t.offsetWidth:n,l=i?t.offsetHeight:o,c=y(n)!==r||y(o)!==l;return c&&(n=r,o=l),{width:n,height:o,$:c}}function ot(t){return I(t)?t:t.contextElement}function it(t){const e=ot(t);if(!q(e))return x(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=nt(e);let l=(r?y(n.width):n.width)/o,c=(r?y(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}const rt=x(0);function lt(t){const e=j(t);return J()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:rt}function ct(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=ot(t);let l=x(1);e&&(o?I(o)&&(l=it(o)):l=it(t));const c=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==j(t))&&e}(r,n,o)?lt(r):x(0);let s=(i.left+c.x)/l.x,f=(i.top+c.y)/l.y,a=i.width/l.x,u=i.height/l.y;if(r){const t=j(r),e=o&&I(o)?j(o):o;let n=t.frameElement;for(;n&&o&&e!==t;){const t=it(n),e=n.getBoundingClientRect(),o=Q(n),i=e.left+(n.clientLeft+parseFloat(o.paddingLeft))*t.x,r=e.top+(n.clientTop+parseFloat(o.paddingTop))*t.y;s*=t.x,f*=t.y,a*=t.x,u*=t.y,s+=i,f+=r,n=j(n).frameElement}}return C({width:a,height:u,x:s,y:f})}function st(t){return ct(z(t)).left+U(t).scrollLeft}function ft(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=j(t),o=z(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,c=0,s=0;if(i){r=i.width,l=i.height;const t=J();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,s=i.offsetTop)}return{width:r,height:l,x:c,y:s}}(t,n);else if("document"===e)o=function(t){const e=z(t),n=U(t),o=t.ownerDocument.body,i=h(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=h(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+st(t);const c=-n.scrollTop;return"rtl"===Q(o).direction&&(l+=h(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:c}}(z(t));else if(I(e))o=function(t,e){const n=ct(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=q(t)?it(t):x(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=lt(t);o=u(a({},e),{x:e.x-n.x,y:e.y-n.y})}return C(o)}function at(t,e){const n=Z(t);return!(n===e||!I(n)||K(n))&&("fixed"===Q(n).position||at(n,e))}function ut(t,e,n){const o=q(e),i=z(e),r="fixed"===n,l=ct(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const s=x(0);if(o||!o&&!r)if(("body"!==M(e)||Y(i))&&(c=U(e)),o){const t=ct(e,!0,r,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else i&&(s.x=st(i));return{x:l.left+c.scrollLeft-s.x,y:l.top+c.scrollTop-s.y,width:l.width,height:l.height}}function dt(t,e){return q(t)&&"fixed"!==Q(t).position?e?e(t):t.offsetParent:null}function pt(t,e){const n=j(t);if(!q(t))return n;let o=dt(t,e);for(;o&&$(o)&&"static"===Q(o).position;)o=dt(o,e);return o&&("html"===M(o)||"body"===M(o)&&"static"===Q(o).position&&!G(o))?n:o||function(t){let e=Z(t);for(;q(e)&&!K(e);){if(G(e))return e;e=Z(e)}return null}(t)||n}const mt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=q(n),r=z(n);if(n===r)return e;let l={scrollLeft:0,scrollTop:0},c=x(1);const s=x(0);if((i||!i&&"fixed"!==o)&&(("body"!==M(n)||Y(r))&&(l=U(n)),q(n))){const t=ct(n);c=it(n),s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-l.scrollLeft*c.x+s.x,y:e.y*c.y-l.scrollTop*c.y+s.y}},getDocumentElement:z,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let o=et(t,[],!1).filter((t=>I(t)&&"body"!==M(t))),i=null;const r="fixed"===Q(t).position;let l=r?Z(t):t;for(;I(l)&&!K(l);){const e=Q(l),n=G(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||Y(l)&&!n&&at(t,l))?o=o.filter((t=>t!==l)):i=e,l=Z(l)}return e.set(t,o),o}(e,this._c):[].concat(n),o],l=r[0],c=r.reduce(((t,n)=>{const o=ft(e,n,i);return t.top=h(o.top,t.top),t.right=m(o.right,t.right),t.bottom=m(o.bottom,t.bottom),t.left=h(o.left,t.left),t}),ft(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:pt,getElementRects:function(t){return p(this,null,(function*(){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||pt,r=this.getDimensions;return{reference:ut(e,yield i(n),o),floating:a({x:0,y:0},yield r(n))}}))},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return nt(t)},getScale:it,isElement:I,isRTL:function(t){return"rtl"===Q(t).direction}};function ht(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,f=ot(t),d=i||r?[...f?et(f):[],...et(e)]:[];d.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const p=f&&c?function(t,e){let n,o=null;const i=z(t);function r(){clearTimeout(n),o&&o.disconnect(),o=null}return function l(c,s){void 0===c&&(c=!1),void 0===s&&(s=1),r();const{left:f,top:d,width:p,height:y}=t.getBoundingClientRect();if(c||e(),!p||!y)return;const x={rootMargin:-g(d)+"px "+-g(i.clientWidth-(f+p))+"px "+-g(i.clientHeight-(d+y))+"px "+-g(f)+"px",threshold:h(0,m(1,s))||1};let v=!0;function b(t){const e=t[0].intersectionRatio;if(e!==s){if(!v)return l();e?l(!1,e):n=setTimeout((()=>{l(!1,1e-7)}),100)}v=!1}try{o=new IntersectionObserver(b,u(a({},x),{root:i.ownerDocument}))}catch(t){o=new IntersectionObserver(b,x)}o.observe(t)}(!0),r}(f,n):null;let y,x=-1,v=null;l&&(v=new ResizeObserver((t=>{let[o]=t;o&&o.target===f&&v&&(v.unobserve(e),cancelAnimationFrame(x),x=requestAnimationFrame((()=>{v&&v.observe(e)}))),n()})),f&&!s&&v.observe(f),v.observe(e));let b=s?ct(t):null;return s&&function e(){const o=ct(t);!b||o.x===b.x&&o.y===b.y&&o.width===b.width&&o.height===b.height||n(),b=o,y=requestAnimationFrame(e)}(),n(),()=>{d.forEach((t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),p&&p(),v&&v.disconnect(),v=null,s&&cancelAnimationFrame(y)}}const yt=(t,e,n)=>{const o=new Map,i=a({platform:mt},n),r=u(a({},i.platform),{_c:o});return((t,e,n)=>p(void 0,null,(function*(){const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,c=r.filter(Boolean),s=yield null==l.isRTL?void 0:l.isRTL(e);let f=yield l.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:p}=F(f,o,s),m=o,h={},y=0;for(let n=0;n<c.length;n++){const{name:r,fn:g}=c[n],{x,y:v,data:b,reset:w}=yield g({x:d,y:p,initialPlacement:o,placement:m,strategy:i,middlewareData:h,rects:f,platform:l,elements:{reference:t,floating:e}});d=null!=x?x:d,p=null!=v?v:p,h=u(a({},h),{[r]:a(a({},h[r]),b)}),w&&y<=50&&(y++,"object"==typeof w&&(w.placement&&(m=w.placement),w.rects&&(f=!0===w.rects?yield l.getElementRects({reference:t,floating:e,strategy:i}):w.rects),({x:d,y:p}=F(f,m,s))),n=-1)}return{x:d,y:p,placement:m,strategy:i,middlewareData:h}})))(t,e,u(a({},i),{platform:r}))}}}]);
package/dist/5293.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 5293.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[5293],{2223:(t,e,o)=>{o.d(e,{A:()=>a});var n=o(4864),i=o(1321);const s=(0,o(3954).b)();class a{constructor(t,e,o){var n,a;if(this.setFormAssociatedValue=t=>{var e;const o=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==o&&""!==o||(0,i.d)(` The form field (${this.name}) must have a name attribute to be form-associated. Please define the _name attribute.`);const n=this.tryToStringifyValue(t);this.syncValue(t,n,this.formAssociated),this.syncValue(t,n,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(o),this.name=e,s){switch(null===(n=this.host)||void 0===n||n.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===(a=this.host)||void 0===a||a.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,o){if(s)try{if("boolean"!=typeof(o="object"==typeof o&&null!==o?JSON.stringify(o):o)&&"number"!=typeof o&&"string"!=typeof o)throw new Error("Invalid value type: "+typeof o);null==e||e.setAttribute(t,`${o}`)}catch(o){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.h)(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,o){o&&("select"===this.name?(o.querySelectorAll("option").forEach((t=>{o.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",""),o.appendChild(t)}}))):"string"==typeof e?(o.setAttribute("value",e),o.value=e):(o.removeAttribute("value"),o.value=""))}validateName(t){((t,e,o)=>{(0,n.d)(t,"_name",e,o)})(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&(0,i.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(s&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}},5237:(t,e,o)=>{o.d(e,{I:()=>p,g:()=>h,v:()=>d});var n=o(4864),i=o(723),s=o(9421),a=o(1321),l=o(9865),r=o(6451),c=o(2223);const h=t=>{const e="string"==typeof t._error&&t._error.length>0&&!0===t._touched,o="string"==typeof t._hint&&t._hint.length>0,n=[];return!0===e&&n.push(`${t._id}-error`),!0===o&&n.push(`${t._id}-hint`),{hasError:e,hasHint:o,ariaDescribedBy:n}},d=(t,e,o)=>{(0,n.a)(t,"_hideError",e,o)};class u extends c.A{constructor(t,e,o){super(t,e,o),this.component=t}validateAlert(t){(0,n.a)(this.component,"_alert",t)}validateTouched(t){((t,e)=>{(0,n.a)(t,"_touched",e)})(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAlert(this.component._alert),this.validateTouched(this.component._touched)}}class p extends u{constructor(t,e,o){super(t,e,o),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,n.d)(this.component,"_accessKey",t)}validateAdjustHeight(t){((t,e)=>{(0,n.a)(t,"_adjustHeight",e)})(this.component,t)}validateDisabled(t){(0,n.a)(this.component,"_disabled",t),!0===t&&(0,a.g)()}validateError(t){(0,n.d)(this.component,"_error",t)}validateHideLabel(t){(0,i.v)(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideLabel&&(0,a.a)("Property hide-label for inputs: Only use for exceptions like search inputs that are clearly identifiable by their context.")}}})}validateHint(t){(0,n.d)(this.component,"_hint",t)}validateId(t){(0,n.d)(this.component,"_id",t,{hooks:{afterPatch:()=>{this.setAttribute("id",this.formAssociated,this.component.state._id)}},minLength:1}),""!==t&&void 0!==t||(0,a.d)("Eine eindeutige ID an den Eingabefeldern ist nicht zwingend erforderlich, könnte aber für die E2E-Tests relevant sein.")}validateLabel(t){(0,s.a)(this.component,t)}validateOn(t){"object"==typeof t&&(0,n.s)(this.component,"_on",t)}validateSmartButton(t){(0,n.o)(t,(()=>{try{t=(0,n.p)(t)}catch(t){}(0,n.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.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 o=t.target.value;(0,l.s)(t),(0,l.t)("change",this.host,o),this.setFormAssociatedValue(o),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onChange)&&this.component._on.onChange(t,o),this.valueChangeListeners.forEach((t=>t(o)))}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)}setValue(t,e){var o;this.setFormAssociatedValue(e),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onChange)&&this.component._on.onChange(t,e)}addValueChangeListener(t){this.valueChangeListeners.push(t)}}},5293:(t,e,o)=>{o.d(e,{I:()=>r});var n=o(4435),i=o(4864),s=o(2180),a=o(5237);const l=(t,e)=>{const o=t;"object"==typeof o&&null!==o&&((0,s.i)(o.right,1)&&(o.right={icon:o.right}),(0,s.i)(o.left,1)&&(o.left={icon:o.left}),e.set("_icons",o))};class r extends a.I{constructor(t,e,o){super(t,e,o),this.component=t}validateIcon(t){this.validateIcons(t)}validateIcons(t){(0,i.o)(t,(()=>{try{t=(0,i.p)(t)}catch(t){}(0,i.w)(this.component,"_icons",(t=>"object"==typeof t&&null!==t&&((0,s.i)(t.left,1)||(0,n.i)(t.left)||(0,s.i)(t.right,1)||(0,n.i)(t.right))),new Set(["KoliBriHorizontalIcon"]),t,{hooks:{beforePatch:l},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons||this.component._icon)}}},9865:(t,e,o)=>{function n(t){t.stopImmediatePropagation(),t.stopPropagation()}function i(t,e,o){e&&function(t,e,o){const n=t.dispatchEvent(function(t,e){return new CustomEvent(`kol-${t}`,{bubbles:!0,cancelable:!0,composed:!0,detail:e})}(e,o))}(e,t,o)}o.d(e,{s:()=>n,t:()=>i})},723:(t,e,o)=>{o.d(e,{v:()=>i});var n=o(4864);const i=(t,e,o={})=>{(0,n.a)(t,"_hideLabel",e,o)}},4435:(t,e,o)=>{o.d(e,{i:()=>l,v:()=>r,w:()=>c});var n=o(4864),i=o(2180);const s=(t,e,o)=>{(0,i.c)(o)?t[e]=o:(0,i.i)(o,1)&&(t[e]={icon:o})},a=t=>{var e,o,n,a,l,r,c;if(null===(e=t.nextState)||void 0===e?void 0:e.has("_icons")){const e=null===(o=t.nextState)||void 0===o?void 0:o.get("_icons"),l=(null===(n=t.nextState)||void 0===n?void 0:n.get("_iconAlign"))||t.state._iconAlign;null===(a=t.nextState)||void 0===a||a.set("_icons",((t,e)=>{let o={};return(0,i.i)(t,1)?o="right"===e?{right:{icon:t}}:{left:{icon:t}}:"object"==typeof t&&null!==t&&(s(o,"top",t.top),s(o,"right",t.right),s(o,"bottom",t.bottom),s(o,"left",t.left)),o})(e,l))}else if(null===(l=t.nextState)||void 0===l?void 0:l.has("_iconAlign")){const e=t.state._iconAlign;null===(r=t.nextState)||void 0===r||r.set("_icons",{[e]:void 0,[null===(c=t.nextState)||void 0===c?void 0:c.get("_iconAlign")]:t.state._icons[e]})}},l=t=>"object"==typeof t&&null!==t&&(void 0===t.style||(0,i.b)(t.style))&&(0,i.i)(t.icon,1),r=(t,e)=>{(0,n.o)(e,(()=>{try{e=(0,n.p)(e)}catch(t){}(0,n.w)(t,"_icons",(t=>null===t||(0,i.i)(t,1)||"object"==typeof t&&null!==t&&((0,i.i)(t.left,1)||l(t.left)||(0,i.i)(t.right,1)||l(t.right)||(0,i.i)(t.top,1)||l(t.top)||(0,i.i)(t.bottom,1)||l(t.bottom))),new Set(["KoliBriIcon"]),e,{hooks:{beforePatch:(e,o)=>{null===e&&o.set("_icons",{}),a(t)}},required:!0})}))},c=(t,e)=>{(0,n.w)(t,"_iconAlign",(t=>"left"===t||"right"===t),new Set(["Alignment {left, right, top, bottom}"]),e,{hooks:{beforePatch:()=>{a(t)}}})}},9421:(t,e,o)=>{o.d(e,{a:()=>d,c:()=>r,h:()=>l,v:()=>h});var n=o(1321),i=o(4864);const s=/[a-zA-Z0-9äöüÄÖÜß]/g,a=/^\d+$/;function l(t,e=1){return function(t){var e;return"string"==typeof t&&(null===(e=t.match(s))||void 0===e?void 0:e.length)||0}(t)>=e}function r(t){return a.test(t)}const c=new Set(["string"]),h=(t,e,o={})=>{(0,i.w)(t,"_label",(t=>"string"==typeof t),c,e,function(t){var e;return{hooks:{afterPatch:(e,o,i,s)=>{var a,c;"function"==typeof(null===(a=t.hooks)||void 0===a?void 0:a.afterPatch)&&(null===(c=t.hooks)||void 0===c||c.afterPatch(e,o,i,s)),"string"==typeof e&&!1===l(e,3)&&!1===r(e)&&(0,n.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,n.u)("A heading or label should not be longer than 80 characters.")},beforePatch:null===(e=t.hooks)||void 0===e?void 0:e.beforePatch}}}(o))},d=h},6451:(t,e,o)=>{o.d(e,{v:()=>a});var n=o(1321),i=o(4864);const s={hooks:{afterPatch:t=>{-1!==t&&0!==t&&(0,n.a)("Don’t Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html")}}},a=(t,e)=>{(0,i.e)(t,"_tabIndex",e,s)}}}]);
File without changes