@public-ui/sample-react 1.7.24 → 1.7.26-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.
- package/dist/1069.js +2 -0
- package/dist/1085.js +2 -0
- package/dist/{8928.js → 1184.js} +2 -2
- package/dist/1222.js +2 -0
- package/dist/1278.js +1 -1
- package/dist/1325.js +2 -0
- package/dist/1333.js +2 -0
- package/dist/1661.js +2 -0
- package/dist/{9031.js → 1703.js} +2 -2
- package/dist/{7055.js → 1711.js} +2 -2
- package/dist/1792.js +2 -0
- package/dist/1793.js +2 -0
- package/dist/187.js +1 -0
- package/dist/{4486.js → 1878.js} +2 -2
- package/dist/{4626.js → 1941.js} +2 -2
- package/dist/1957.js +2 -0
- package/dist/{5155.js → 2195.js} +2 -2
- package/dist/2305.js +2 -0
- package/dist/{2858.js → 2538.js} +2 -2
- package/dist/279.js +1 -0
- package/dist/2830.js +2 -0
- package/dist/3128.js +2 -0
- package/dist/3180.js +2 -0
- package/dist/{8516.js → 3332.js} +2 -2
- package/dist/{1376.js → 3344.js} +2 -2
- package/dist/3596.js +2 -0
- package/dist/3714.js +2 -0
- package/dist/3974.js +2 -0
- package/dist/4014.js +1 -1
- package/dist/{5670.js → 4102.js} +2 -2
- package/dist/4218.js +2 -0
- package/dist/4404.js +2 -0
- package/dist/4941.js +2 -0
- package/dist/500.js +2 -0
- package/dist/{4179.js → 5139.js} +2 -2
- package/dist/5164.js +2 -0
- package/dist/{4412.js → 5484.js} +2 -2
- package/dist/5540.js +2 -0
- package/dist/5756.js +2 -0
- package/dist/6682.js +2 -0
- package/dist/{8797.js → 6781.js} +2 -2
- package/dist/7245.js +2 -0
- package/dist/{2879.js → 7263.js} +2 -2
- package/dist/7512.js +2 -0
- package/dist/7856.js +2 -0
- package/dist/8002.js +2 -0
- package/dist/8049.js +2 -0
- package/dist/{2381.js → 8189.js} +2 -2
- package/dist/8264.js +2 -0
- package/dist/8389.js +2 -0
- package/dist/{1443.js → 8515.js} +2 -2
- package/dist/{2221.js → 8557.js} +2 -2
- package/dist/8588.js +2 -0
- package/dist/{1524.js → 8724.js} +2 -2
- package/dist/882.js +2 -0
- package/dist/895.js +2 -0
- package/dist/8993.js +2 -0
- package/dist/902.js +2 -0
- package/dist/9175.js +2 -0
- package/dist/9202.js +2 -0
- package/dist/{7142.js → 9558.js} +2 -2
- package/dist/9567.js +2 -0
- package/dist/9654.js +2 -0
- package/dist/9833.js +2 -0
- package/dist/9961.js +2 -0
- package/dist/{6090.js → 9962.js} +2 -2
- package/dist/index.html +2 -2
- package/dist/main.css +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +2 -2
- package/package.json +16 -12
- package/public/index.html +2 -2
- package/src/components/SampleDescription.tsx +16 -9
- package/src/components/Sidebar.tsx +4 -4
- package/src/components/abbr/basic.tsx +5 -0
- package/src/components/accordion/basic.tsx +21 -11
- package/src/components/accordion/headlines.tsx +26 -20
- package/src/components/accordion/routes.ts +0 -5
- package/src/components/alert/basic.tsx +15 -1
- package/src/components/alert/card-msg.tsx +15 -6
- package/src/components/alert/html.tsx +7 -3
- package/src/components/avatar/basic.tsx +13 -6
- package/src/components/badge/basic.tsx +14 -7
- package/src/components/badge/button.tsx +7 -0
- package/src/components/breadcrumb/basic.tsx +53 -46
- package/src/components/button/basic.tsx +13 -2
- package/src/components/button/icons.tsx +26 -19
- package/src/components/button/routes.ts +0 -3
- package/src/components/button/width.tsx +22 -15
- package/src/components/button-group/basic.tsx +18 -7
- package/src/components/button-link/basic.tsx +26 -16
- package/src/components/button-link/icons.tsx +37 -30
- package/src/components/button-link/image.tsx +14 -7
- package/src/components/card/basic.tsx +12 -5
- package/src/components/card/routes.ts +0 -9
- package/src/components/details/basic.tsx +21 -12
- package/src/components/heading/badged.tsx +28 -20
- package/src/components/heading/basic.tsx +14 -8
- package/src/components/heading/paragraph.tsx +44 -38
- package/src/components/icon/basic.tsx +16 -10
- package/src/components/image/basic.tsx +9 -1
- package/src/components/indented-text/basic.tsx +25 -17
- package/src/components/input-checkbox/basic.tsx +9 -1
- package/src/components/input-checkbox/button.tsx +9 -1
- package/src/components/input-checkbox/switch.tsx +9 -1
- package/src/components/input-color/basic.tsx +9 -1
- package/src/components/input-date/basic.tsx +9 -1
- package/src/components/input-email/basic.tsx +9 -1
- package/src/components/input-file/basic.tsx +9 -1
- package/src/components/input-number/basic.tsx +13 -1
- package/src/components/input-password/basic.tsx +9 -1
- package/src/components/input-password/show-password.tsx +26 -19
- package/src/components/input-radio/basic.tsx +9 -1
- package/src/components/input-radio/horizontal.tsx +5 -5
- package/src/components/input-radio/routes.ts +0 -3
- package/src/components/input-range/basic.tsx +12 -1
- package/src/components/input-text/basic.tsx +9 -1
- package/src/components/input-text/focus.tsx +14 -8
- package/src/components/input-text/hide-errors.tsx +4 -1
- package/src/components/input-text/routes.ts +0 -2
- package/src/components/kolibri/basic.tsx +5 -0
- package/src/components/link/basic.tsx +25 -17
- package/src/components/link/icons.tsx +40 -34
- package/src/components/link/image.tsx +18 -12
- package/src/components/link/target.tsx +16 -8
- package/src/components/link-button/basic.tsx +14 -8
- package/src/components/link-group/basic.tsx +13 -2
- package/src/components/link-group/horizontal.tsx +13 -2
- package/src/components/logo/basic.tsx +13 -2
- package/src/components/modal/basic.tsx +9 -2
- package/src/components/nav/aria-current.tsx +24 -15
- package/src/components/nav/basic.tsx +64 -55
- package/src/components/nav/horizontal.tsx +58 -52
- package/src/components/nav/routes.ts +0 -3
- package/src/components/pagination/basic.tsx +15 -6
- package/src/components/progress/basic.tsx +10 -4
- package/src/components/quote/basic.tsx +7 -1
- package/src/components/quote/block.tsx +12 -6
- package/src/components/select/basic.tsx +9 -1
- package/src/components/skip-nav/basic.tsx +7 -11
- package/src/components/spin/basic.tsx +10 -1
- package/src/components/spin/custom.tsx +13 -3
- package/src/components/spin/cycle.tsx +10 -1
- package/src/components/split-button/basic.tsx +9 -2
- package/src/components/table/column-alignment.tsx +4 -0
- package/src/components/table/horizontal-scrollbar.tsx +7 -0
- package/src/components/table/render-cell.tsx +9 -1
- package/src/components/table/routes.ts +0 -3
- package/src/components/table/sort-date.tsx +9 -1
- package/src/components/table/with-pagination.tsx +1 -4
- package/src/components/tabs/basic.tsx +4 -0
- package/src/components/tabs/icons-only.tsx +12 -6
- package/src/components/textarea/adjust-height.tsx +12 -8
- package/src/components/textarea/basic.tsx +10 -1
- package/src/components/textarea/counter.tsx +10 -1
- package/src/components/textarea/resize.tsx +15 -6
- package/src/components/textarea/routes.ts +0 -9
- package/src/components/textarea/rows.tsx +12 -3
- package/src/components/toast/basic.tsx +17 -10
- package/src/components/toast-legacy/basic.tsx +17 -8
- package/src/components/version/basic.tsx +10 -1
- package/src/components/version/context.tsx +12 -5
- package/src/react.main.tsx +1 -1
- package/src/scenarios/appointment-form/AppointmentForm.tsx +53 -43
- package/src/scenarios/custom-tooltip-width.tsx +10 -1
- package/src/scenarios/static-form.tsx +1 -1
- package/src/shares/constants.ts +1 -0
- package/dist/1016.js +0 -2
- package/dist/149.js +0 -2
- package/dist/1531.js +0 -2
- package/dist/1818.js +0 -1
- package/dist/1999.js +0 -2
- package/dist/2072.js +0 -2
- package/dist/2252.js +0 -2
- package/dist/2256.js +0 -2
- package/dist/2545.js +0 -2
- package/dist/263.js +0 -2
- package/dist/2639.js +0 -2
- package/dist/2657.js +0 -2
- package/dist/2669.js +0 -2
- package/dist/3110.js +0 -2
- package/dist/3261.js +0 -2
- package/dist/3353.js +0 -2
- package/dist/3833.js +0 -2
- package/dist/3869.js +0 -2
- package/dist/4082.js +0 -2
- package/dist/4156.js +0 -2
- package/dist/4177.js +0 -2
- package/dist/4178.js +0 -2
- package/dist/4212.js +0 -2
- package/dist/4318.js +0 -2
- package/dist/4346.js +0 -2
- package/dist/4702.js +0 -2
- package/dist/5018.js +0 -2
- package/dist/5157.js +0 -2
- package/dist/5233.js +0 -2
- package/dist/5327.js +0 -2
- package/dist/5350.js +0 -2
- package/dist/5716.js +0 -2
- package/dist/605.js +0 -2
- package/dist/6402.js +0 -2
- package/dist/6596.js +0 -2
- package/dist/6636.js +0 -2
- package/dist/6716.js +0 -2
- package/dist/7132.js +0 -2
- package/dist/7219.js +0 -2
- package/dist/7367.js +0 -1
- package/dist/7533.js +0 -2
- package/dist/7677.js +0 -2
- package/dist/8274.js +0 -2
- package/dist/8310.js +0 -2
- package/dist/8642.js +0 -2
- package/dist/8804.js +0 -2
- package/dist/8928.js.LICENSE.txt +0 -3
- package/dist/9031.js.LICENSE.txt +0 -3
- package/dist/9064.js +0 -2
- package/dist/9064.js.LICENSE.txt +0 -3
- package/dist/9344.js +0 -2
- package/dist/9344.js.LICENSE.txt +0 -3
- package/dist/9673.js +0 -2
- package/dist/9673.js.LICENSE.txt +0 -3
- package/dist/9730.js +0 -2
- package/dist/9730.js.LICENSE.txt +0 -3
- package/src/components/accordion/header.tsx +0 -17
- package/src/components/accordion/list.tsx +0 -32
- package/src/components/button/hide-label.tsx +0 -31
- package/src/components/card/confirm.tsx +0 -19
- package/src/components/card/flex.tsx +0 -44
- package/src/components/card/selection.tsx +0 -70
- package/src/components/input-radio/select.tsx +0 -18
- package/src/components/input-text/blur.tsx +0 -14
- package/src/components/nav/active.tsx +0 -89
- package/src/components/table/badge-size.tsx +0 -51
- package/src/components/textarea/disabled.tsx +0 -10
- package/src/components/textarea/placeholder.tsx +0 -10
- package/src/components/textarea/readonly.tsx +0 -10
- /package/dist/{1016.js.LICENSE.txt → 1069.js.LICENSE.txt} +0 -0
- /package/dist/{1376.js.LICENSE.txt → 1085.js.LICENSE.txt} +0 -0
- /package/dist/{1443.js.LICENSE.txt → 1184.js.LICENSE.txt} +0 -0
- /package/dist/{149.js.LICENSE.txt → 1222.js.LICENSE.txt} +0 -0
- /package/dist/{1524.js.LICENSE.txt → 1325.js.LICENSE.txt} +0 -0
- /package/dist/{1531.js.LICENSE.txt → 1333.js.LICENSE.txt} +0 -0
- /package/dist/{1999.js.LICENSE.txt → 1661.js.LICENSE.txt} +0 -0
- /package/dist/{2072.js.LICENSE.txt → 1703.js.LICENSE.txt} +0 -0
- /package/dist/{2221.js.LICENSE.txt → 1711.js.LICENSE.txt} +0 -0
- /package/dist/{2252.js.LICENSE.txt → 1792.js.LICENSE.txt} +0 -0
- /package/dist/{2256.js.LICENSE.txt → 1793.js.LICENSE.txt} +0 -0
- /package/dist/{2381.js.LICENSE.txt → 1878.js.LICENSE.txt} +0 -0
- /package/dist/{2545.js.LICENSE.txt → 1941.js.LICENSE.txt} +0 -0
- /package/dist/{263.js.LICENSE.txt → 1957.js.LICENSE.txt} +0 -0
- /package/dist/{2639.js.LICENSE.txt → 2195.js.LICENSE.txt} +0 -0
- /package/dist/{2657.js.LICENSE.txt → 2305.js.LICENSE.txt} +0 -0
- /package/dist/{2669.js.LICENSE.txt → 2538.js.LICENSE.txt} +0 -0
- /package/dist/{2858.js.LICENSE.txt → 2830.js.LICENSE.txt} +0 -0
- /package/dist/{2879.js.LICENSE.txt → 3128.js.LICENSE.txt} +0 -0
- /package/dist/{3110.js.LICENSE.txt → 3180.js.LICENSE.txt} +0 -0
- /package/dist/{3261.js.LICENSE.txt → 3332.js.LICENSE.txt} +0 -0
- /package/dist/{3353.js.LICENSE.txt → 3344.js.LICENSE.txt} +0 -0
- /package/dist/{3833.js.LICENSE.txt → 3596.js.LICENSE.txt} +0 -0
- /package/dist/{3869.js.LICENSE.txt → 3714.js.LICENSE.txt} +0 -0
- /package/dist/{4082.js.LICENSE.txt → 3974.js.LICENSE.txt} +0 -0
- /package/dist/{4156.js.LICENSE.txt → 4102.js.LICENSE.txt} +0 -0
- /package/dist/{4177.js.LICENSE.txt → 4218.js.LICENSE.txt} +0 -0
- /package/dist/{4178.js.LICENSE.txt → 4404.js.LICENSE.txt} +0 -0
- /package/dist/{4179.js.LICENSE.txt → 4941.js.LICENSE.txt} +0 -0
- /package/dist/{4212.js.LICENSE.txt → 500.js.LICENSE.txt} +0 -0
- /package/dist/{4318.js.LICENSE.txt → 5139.js.LICENSE.txt} +0 -0
- /package/dist/{4346.js.LICENSE.txt → 5164.js.LICENSE.txt} +0 -0
- /package/dist/{4412.js.LICENSE.txt → 5484.js.LICENSE.txt} +0 -0
- /package/dist/{4486.js.LICENSE.txt → 5540.js.LICENSE.txt} +0 -0
- /package/dist/{4626.js.LICENSE.txt → 5756.js.LICENSE.txt} +0 -0
- /package/dist/{4702.js.LICENSE.txt → 6682.js.LICENSE.txt} +0 -0
- /package/dist/{5018.js.LICENSE.txt → 6781.js.LICENSE.txt} +0 -0
- /package/dist/{5155.js.LICENSE.txt → 7245.js.LICENSE.txt} +0 -0
- /package/dist/{5157.js.LICENSE.txt → 7263.js.LICENSE.txt} +0 -0
- /package/dist/{5233.js.LICENSE.txt → 7512.js.LICENSE.txt} +0 -0
- /package/dist/{5327.js.LICENSE.txt → 7856.js.LICENSE.txt} +0 -0
- /package/dist/{5350.js.LICENSE.txt → 8002.js.LICENSE.txt} +0 -0
- /package/dist/{5670.js.LICENSE.txt → 8049.js.LICENSE.txt} +0 -0
- /package/dist/{5716.js.LICENSE.txt → 8189.js.LICENSE.txt} +0 -0
- /package/dist/{605.js.LICENSE.txt → 8264.js.LICENSE.txt} +0 -0
- /package/dist/{6090.js.LICENSE.txt → 8389.js.LICENSE.txt} +0 -0
- /package/dist/{6402.js.LICENSE.txt → 8515.js.LICENSE.txt} +0 -0
- /package/dist/{6596.js.LICENSE.txt → 8557.js.LICENSE.txt} +0 -0
- /package/dist/{6636.js.LICENSE.txt → 8588.js.LICENSE.txt} +0 -0
- /package/dist/{6716.js.LICENSE.txt → 8724.js.LICENSE.txt} +0 -0
- /package/dist/{7055.js.LICENSE.txt → 882.js.LICENSE.txt} +0 -0
- /package/dist/{7132.js.LICENSE.txt → 895.js.LICENSE.txt} +0 -0
- /package/dist/{7142.js.LICENSE.txt → 8993.js.LICENSE.txt} +0 -0
- /package/dist/{7219.js.LICENSE.txt → 902.js.LICENSE.txt} +0 -0
- /package/dist/{7533.js.LICENSE.txt → 9175.js.LICENSE.txt} +0 -0
- /package/dist/{7677.js.LICENSE.txt → 9202.js.LICENSE.txt} +0 -0
- /package/dist/{8274.js.LICENSE.txt → 9558.js.LICENSE.txt} +0 -0
- /package/dist/{8310.js.LICENSE.txt → 9567.js.LICENSE.txt} +0 -0
- /package/dist/{8516.js.LICENSE.txt → 9654.js.LICENSE.txt} +0 -0
- /package/dist/{8642.js.LICENSE.txt → 9833.js.LICENSE.txt} +0 -0
- /package/dist/{8797.js.LICENSE.txt → 9961.js.LICENSE.txt} +0 -0
- /package/dist/{8804.js.LICENSE.txt → 9962.js.LICENSE.txt} +0 -0
|
@@ -6,6 +6,7 @@ import { createReactRenderElement, KolButton, KolInputText, KolTable } from '@pu
|
|
|
6
6
|
import { getRoot } from '../../shares/react-roots';
|
|
7
7
|
import type { KoliBriTableHeaders } from '@public-ui/components';
|
|
8
8
|
import { DATE_FORMATTER } from './formatter';
|
|
9
|
+
import { SampleDescription } from '../SampleDescription';
|
|
9
10
|
|
|
10
11
|
type Data = {
|
|
11
12
|
order: number;
|
|
@@ -96,4 +97,11 @@ const HEADERS: KoliBriTableHeaders = {
|
|
|
96
97
|
],
|
|
97
98
|
};
|
|
98
99
|
|
|
99
|
-
export const TableRenderCell: FC = () =>
|
|
100
|
+
export const TableRenderCell: FC = () => (
|
|
101
|
+
<>
|
|
102
|
+
<SampleDescription>
|
|
103
|
+
<p>This sample shows KolTable using React render functions for the cell contents.</p>
|
|
104
|
+
</SampleDescription>
|
|
105
|
+
<KolTable _label="Sort by date column" _data={DATA} _headers={HEADERS} className="block min-w-75em" />
|
|
106
|
+
</>
|
|
107
|
+
);
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { Routes } from '../../shares/types';
|
|
2
|
-
|
|
3
|
-
import { TableBadgeSize } from './badge-size';
|
|
4
2
|
import { TableRenderCell } from './render-cell';
|
|
5
3
|
import { TableSortData } from './sort-date';
|
|
6
4
|
import { TableWithPagination } from './with-pagination';
|
|
@@ -9,7 +7,6 @@ import { TableHorizontalScrollbar } from './horizontal-scrollbar';
|
|
|
9
7
|
|
|
10
8
|
export const TABLE_ROUTES: Routes = {
|
|
11
9
|
table: {
|
|
12
|
-
'badge-size': TableBadgeSize,
|
|
13
10
|
'column-alignment': TableColumnAlignment,
|
|
14
11
|
'horizontal-scrollbar': TableHorizontalScrollbar,
|
|
15
12
|
'render-cell': TableRenderCell,
|
|
@@ -3,6 +3,7 @@ import React, { FC } from 'react';
|
|
|
3
3
|
import { KolTable } from '@public-ui/react';
|
|
4
4
|
import { KoliBriTableHeaders } from '@public-ui/components';
|
|
5
5
|
import { DATA, Data } from './test-data';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
8
|
const DATE_FORMATTER = Intl.DateTimeFormat('de-DE', {
|
|
8
9
|
day: '2-digit',
|
|
@@ -30,4 +31,11 @@ const HEADERS: KoliBriTableHeaders = {
|
|
|
30
31
|
],
|
|
31
32
|
};
|
|
32
33
|
|
|
33
|
-
export const TableSortData: FC = () =>
|
|
34
|
+
export const TableSortData: FC = () => (
|
|
35
|
+
<>
|
|
36
|
+
<SampleDescription>
|
|
37
|
+
<p>This sample shows KolTable with sortable columns. The sort-order can be changed by clicking the "date" header column.</p>
|
|
38
|
+
</SampleDescription>
|
|
39
|
+
<KolTable _caption="Sort a date column" _data={DATA} _headers={HEADERS} className="block" />
|
|
40
|
+
</>
|
|
41
|
+
);
|
|
@@ -22,10 +22,7 @@ const PAGINATION: KoliBriTablePaginationProps = { _page: 2 };
|
|
|
22
22
|
export const TableWithPagination: FC = () => (
|
|
23
23
|
<>
|
|
24
24
|
<SampleDescription>
|
|
25
|
-
<p>
|
|
26
|
-
Durch das Navigieren der Seitenzahlen unten kann die Tabelle umgeblättert werden. Stattdessen kann auch die komplette Tabelle mit Änderung der Einträge
|
|
27
|
-
pro Seite angezeigt werden.
|
|
28
|
-
</p>
|
|
25
|
+
<p>This sample shows how KolTable can be navigated using a pagination.</p>
|
|
29
26
|
</SampleDescription>
|
|
30
27
|
<div>
|
|
31
28
|
<KolTable _label="Tabellenbeschreibung" _data={DATA} _headers={HEADERS} _pagination={PAGINATION}></KolTable>
|
|
@@ -2,6 +2,7 @@ import type { FC } from 'react';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
import { KolTabs } from '@public-ui/react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
const tabs = [
|
|
7
8
|
{
|
|
@@ -30,6 +31,9 @@ const tabsWithoutIcons = tabs.map((tab) => ({
|
|
|
30
31
|
|
|
31
32
|
export const TabsBasic: FC = () => (
|
|
32
33
|
<>
|
|
34
|
+
<SampleDescription>
|
|
35
|
+
<p>KolTabs renders tab captions and their associated content. This sample shows tab captions with and without icons and disabled tabs.</p>
|
|
36
|
+
</SampleDescription>
|
|
33
37
|
<KolTabs _tabs={tabsWithoutIcons} _label="Regular tabs">
|
|
34
38
|
<div slot="tab-0">Inhalte von Tab 1</div>
|
|
35
39
|
<div slot="tab-1">Inhalte von Tab 2</div>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
import { KolTabs } from '@public-ui/react';
|
|
3
|
+
import { SampleDescription } from '../SampleDescription';
|
|
3
4
|
|
|
4
5
|
const tabs = [
|
|
5
6
|
{
|
|
@@ -25,10 +26,15 @@ const tabs = [
|
|
|
25
26
|
},
|
|
26
27
|
];
|
|
27
28
|
export const TabsIconsOnly: FC = () => (
|
|
28
|
-
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<
|
|
33
|
-
|
|
29
|
+
<>
|
|
30
|
+
<SampleDescription>
|
|
31
|
+
<p>This sample shows KolTabs with hidden labels.</p>
|
|
32
|
+
</SampleDescription>
|
|
33
|
+
<KolTabs _tabs={tabs}>
|
|
34
|
+
<div slot="tab-0">Inhalte von Tab 1</div>
|
|
35
|
+
<div slot="tab-1">Inhalte von Tab 2</div>
|
|
36
|
+
<div slot="tab-2">Inhalte von Tab 3</div>
|
|
37
|
+
<div slot="tab-3">Inhalte von Tab 4</div>
|
|
38
|
+
</KolTabs>
|
|
39
|
+
</>
|
|
34
40
|
);
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { KolForm, KolTextarea } from '@public-ui/react';
|
|
3
3
|
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
const VALUE = `Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore
|
|
7
8
|
magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
|
|
@@ -11,12 +12,15 @@ et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea t
|
|
|
11
12
|
sit amet.`;
|
|
12
13
|
|
|
13
14
|
export const TextareaAdjustHeight: FC = () => (
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
<>
|
|
16
|
+
<SampleDescription>
|
|
17
|
+
<p>
|
|
18
|
+
This sample demonstrates the <code>_adjustHeight</code>-property of KolTextarea. The textarea automatically grows with its content.
|
|
19
|
+
</p>
|
|
20
|
+
</SampleDescription>
|
|
21
|
+
|
|
22
|
+
<KolForm>
|
|
23
|
+
<KolTextarea _adjustHeight={true} _value={VALUE} _label="Text input (auto grow)" />
|
|
24
|
+
</KolForm>
|
|
25
|
+
</>
|
|
22
26
|
);
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
import { FormWrap } from '../FormWrap';
|
|
3
3
|
import { TextareaVariants } from './partials/variants';
|
|
4
|
+
import { SampleDescription } from '../SampleDescription';
|
|
4
5
|
|
|
5
|
-
export const TextareaBasic: FC = () =>
|
|
6
|
+
export const TextareaBasic: FC = () => (
|
|
7
|
+
<>
|
|
8
|
+
<SampleDescription>
|
|
9
|
+
<p>KolTextarea renders a text field. The sample shows KolTextarea in a form context with different variations and states.</p>
|
|
10
|
+
</SampleDescription>
|
|
11
|
+
|
|
12
|
+
<FormWrap RefComponent={TextareaVariants} />
|
|
13
|
+
</>
|
|
14
|
+
);
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
import { KolTextarea } from '@public-ui/react';
|
|
3
|
+
import { SampleDescription } from '../SampleDescription';
|
|
3
4
|
|
|
4
5
|
export const TextareaCounter: FC = () => (
|
|
5
|
-
|
|
6
|
+
<>
|
|
7
|
+
<SampleDescription>
|
|
8
|
+
<p>
|
|
9
|
+
This sample demonstrates the <code>_hasCounter</code>-property of KolTextarea. It shows how many characters have been entered.
|
|
10
|
+
</p>
|
|
11
|
+
</SampleDescription>
|
|
12
|
+
|
|
13
|
+
<KolTextarea _label="Textara with counter" _hasCounter={true} />
|
|
14
|
+
</>
|
|
6
15
|
);
|
|
@@ -2,12 +2,21 @@ import React from 'react';
|
|
|
2
2
|
import { KolForm, KolTextarea } from '@public-ui/react';
|
|
3
3
|
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const TextareaResize: FC = () => (
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>
|
|
11
|
+
This sample demonstrates the <code>_resize</code>-property of KolTextarea. The sample textarea can (only) be resized in the given direction.
|
|
12
|
+
</p>
|
|
13
|
+
</SampleDescription>
|
|
14
|
+
|
|
15
|
+
<KolForm className="grid gap-4">
|
|
16
|
+
<KolTextarea _resize="both" _label="Text input (both)" />
|
|
17
|
+
<KolTextarea _resize="vertical" _label="Text input (vertical)" className="mt" />
|
|
18
|
+
<KolTextarea _resize="horizontal" _label="Text input (horizontal)" className="mt" />
|
|
19
|
+
<KolTextarea _resize="none" _label="Text input (none)" className="mt" />
|
|
20
|
+
</KolForm>
|
|
21
|
+
</>
|
|
13
22
|
);
|
|
@@ -4,12 +4,6 @@ import { TextareaBasic } from './basic';
|
|
|
4
4
|
|
|
5
5
|
import { TextareaAdjustHeight } from './adjust-height';
|
|
6
6
|
|
|
7
|
-
import { TextareaDisabled } from './disabled';
|
|
8
|
-
|
|
9
|
-
import { TextareaPlaceholder } from './placeholder';
|
|
10
|
-
|
|
11
|
-
import { TextareaReadOnly } from './readonly';
|
|
12
|
-
|
|
13
7
|
import { TextareaResize } from './resize';
|
|
14
8
|
|
|
15
9
|
import { TextareaRows } from './rows';
|
|
@@ -19,9 +13,6 @@ export const TEXTAREA_ROUTES: Routes = {
|
|
|
19
13
|
textarea: {
|
|
20
14
|
basic: TextareaBasic,
|
|
21
15
|
'adjust-height': TextareaAdjustHeight,
|
|
22
|
-
disabled: TextareaDisabled,
|
|
23
|
-
placeholder: TextareaPlaceholder,
|
|
24
|
-
readonly: TextareaReadOnly,
|
|
25
16
|
resize: TextareaResize,
|
|
26
17
|
rows: TextareaRows,
|
|
27
18
|
'with-counter': TextareaCounter,
|
|
@@ -2,9 +2,18 @@ import { KolForm, KolTextarea } from '@public-ui/react';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const TextareaRows: FC = () => (
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>
|
|
11
|
+
This sample demonstrates the <code>_rows</code>-property of KolTextarea. The sample textarea has a fixed row number of 10.
|
|
12
|
+
</p>
|
|
13
|
+
</SampleDescription>
|
|
14
|
+
|
|
15
|
+
<KolForm>
|
|
16
|
+
<KolTextarea _rows={10} _label="Texteingabe" />
|
|
17
|
+
</KolForm>
|
|
18
|
+
</>
|
|
10
19
|
);
|
|
@@ -2,6 +2,7 @@ import { ToasterService } from '@public-ui/components';
|
|
|
2
2
|
import { KolButton } from '@public-ui/react';
|
|
3
3
|
import React, { FC } from 'react';
|
|
4
4
|
import { getRoot } from '../../shares/react-roots';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const ToastBasic: FC = () => {
|
|
7
8
|
const toaster = ToasterService.getInstance(document);
|
|
@@ -53,15 +54,21 @@ export const ToastBasic: FC = () => {
|
|
|
53
54
|
};
|
|
54
55
|
|
|
55
56
|
return (
|
|
56
|
-
|
|
57
|
-
<
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
57
|
+
<>
|
|
58
|
+
<SampleDescription>
|
|
59
|
+
<p>This sample demonstrates the toast service with all its options.</p>
|
|
60
|
+
</SampleDescription>
|
|
61
|
+
|
|
62
|
+
<div>
|
|
63
|
+
<KolButton _label="Show simple toast" _on={{ onClick: handleButtonClickSimple }}></KolButton>
|
|
64
|
+
<KolButton _label="Show complex toast" _on={{ onClick: handleButtonClickComplex }}></KolButton>
|
|
65
|
+
<br />
|
|
66
|
+
<br />
|
|
67
|
+
<KolButton _label="Show toast and close after 2 seconds" _on={{ onClick: () => void handleButtonClickOpenAndClose() }}></KolButton>
|
|
68
|
+
<br />
|
|
69
|
+
<br />
|
|
70
|
+
<KolButton _label="Close all toasts" _on={{ onClick: closeAll }}></KolButton>
|
|
71
|
+
</div>
|
|
72
|
+
</>
|
|
66
73
|
);
|
|
67
74
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
-
import { KolButton, KolToast } from '@public-ui/react';
|
|
3
|
+
import { KolBadge, KolButton, KolToast } from '@public-ui/react';
|
|
4
4
|
import { ToasterServiceLegacy } from '@public-ui/components';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const ToastBasic: FC = () => {
|
|
7
8
|
const toaster = ToasterServiceLegacy.getInstance(document);
|
|
@@ -14,13 +15,21 @@ export const ToastBasic: FC = () => {
|
|
|
14
15
|
});
|
|
15
16
|
};
|
|
16
17
|
return (
|
|
17
|
-
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
<>
|
|
19
|
+
<SampleDescription>
|
|
20
|
+
<p>This sample shows the legacy KolToast component.</p>
|
|
21
|
+
<p>
|
|
22
|
+
<KolBadge _label="The component is deprecated and won't be available anymore in KoliBri version 3." _color="#db5461" />
|
|
23
|
+
</p>
|
|
24
|
+
</SampleDescription>
|
|
25
|
+
<div>
|
|
26
|
+
<KolToast _label="Legacy Toast Titel">Toast content</KolToast>
|
|
27
|
+
<KolToast _label="Zweiter Toast mit Schließen-Button" _hasCloser>
|
|
28
|
+
Toast content
|
|
29
|
+
</KolToast>
|
|
22
30
|
|
|
23
|
-
|
|
24
|
-
|
|
31
|
+
<KolButton _label="Weiteren Toast öffnen" _on={{ onClick: handleButtonClick }}></KolButton>
|
|
32
|
+
</div>
|
|
33
|
+
</>
|
|
25
34
|
);
|
|
26
35
|
};
|
|
@@ -2,5 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import { KolVersion } from '@public-ui/react';
|
|
3
3
|
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
|
-
export const VersionBasic: FC = () =>
|
|
7
|
+
export const VersionBasic: FC = () => (
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>KolVersion renders a label showing the given version number.</p>
|
|
11
|
+
</SampleDescription>
|
|
12
|
+
|
|
13
|
+
<KolVersion _label="1.1.1" />
|
|
14
|
+
</>
|
|
15
|
+
);
|
|
@@ -2,11 +2,18 @@ import React from 'react';
|
|
|
2
2
|
import { KolVersion } from '@public-ui/react';
|
|
3
3
|
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
|
|
6
7
|
export const VersionContext: FC = () => (
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>This sample shows KolVersion inline with text paragraph content.</p>
|
|
11
|
+
</SampleDescription>
|
|
12
|
+
|
|
13
|
+
<p>
|
|
14
|
+
<KolVersion _label="1.0.0" /> Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna
|
|
15
|
+
aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem
|
|
16
|
+
ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
|
|
17
|
+
</p>
|
|
18
|
+
</>
|
|
12
19
|
);
|
package/src/react.main.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState, useRef } from 'react';
|
|
2
|
-
import { KolTabs } from '@public-ui/react';
|
|
2
|
+
import { KolLink, KolTabs } from '@public-ui/react';
|
|
3
3
|
import { DistrictForm } from './DistrictForm';
|
|
4
4
|
import { Summary } from './Summary';
|
|
5
5
|
import { PersonalInformationForm } from './PersonalInformationForm';
|
|
@@ -8,6 +8,7 @@ import * as Yup from 'yup';
|
|
|
8
8
|
import { AvailableAppointmentsForm } from './AvailableAppointmentsForm';
|
|
9
9
|
import { Iso8601 } from '@public-ui/components';
|
|
10
10
|
import { checkAppointmentAvailability } from './appointmentService';
|
|
11
|
+
import { SampleDescription } from '../../components/SampleDescription';
|
|
11
12
|
|
|
12
13
|
// export interface FormProps {}
|
|
13
14
|
export interface FormValues {
|
|
@@ -86,47 +87,56 @@ export function AppointmentForm() {
|
|
|
86
87
|
};
|
|
87
88
|
|
|
88
89
|
return (
|
|
89
|
-
|
|
90
|
-
<
|
|
91
|
-
|
|
92
|
-
{
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
{
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
90
|
+
<>
|
|
91
|
+
<SampleDescription>
|
|
92
|
+
<p>
|
|
93
|
+
The Appointment Form is a full form example featuring a large variety of KoliBri form components,{' '}
|
|
94
|
+
<KolLink _label="Formik" _href="https://formik.org/" _target="blank" /> and{' '}
|
|
95
|
+
<KolLink _label="Yup" _href="https://github.com/jquense/yup" _target="blank" />.
|
|
96
|
+
</p>
|
|
97
|
+
</SampleDescription>
|
|
98
|
+
<Formik<FormValues> innerRef={formikRef} initialValues={initialValues} validationSchema={validationSchema} onSubmit={handleSubmit}>
|
|
99
|
+
<KolTabs
|
|
100
|
+
_tabs={[
|
|
101
|
+
{
|
|
102
|
+
_label: '1. Einwohnermeldeamt wählen',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
_label: '2. Freie Termine',
|
|
106
|
+
_disabled: activeFormSection < FormSection.AVAILABLE_APPOINTMENTS,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
_label: '3. Persönliche Daten',
|
|
110
|
+
_disabled: activeFormSection < FormSection.PERSONAL_INFORMATION,
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
_label: 'Zusammenfassung',
|
|
114
|
+
_disabled: activeFormSection < FormSection.SUMMARY,
|
|
115
|
+
},
|
|
116
|
+
]}
|
|
117
|
+
_label="Formular-Navigation"
|
|
118
|
+
_selected={selectedTab}
|
|
119
|
+
_on={{
|
|
120
|
+
onSelect: (_event, selectedTab) => {
|
|
121
|
+
setActiveFormSection(selectedTab);
|
|
122
|
+
formikRef.current?.setErrors({});
|
|
123
|
+
},
|
|
124
|
+
}}
|
|
125
|
+
>
|
|
126
|
+
<div>
|
|
127
|
+
<DistrictForm />
|
|
128
|
+
</div>
|
|
129
|
+
<div>
|
|
130
|
+
<AvailableAppointmentsForm />
|
|
131
|
+
</div>
|
|
132
|
+
<div>
|
|
133
|
+
<PersonalInformationForm />
|
|
134
|
+
</div>
|
|
135
|
+
<div>
|
|
136
|
+
<Summary />
|
|
137
|
+
</div>
|
|
138
|
+
</KolTabs>
|
|
139
|
+
</Formik>
|
|
140
|
+
</>
|
|
131
141
|
);
|
|
132
142
|
}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
import { KolButton } from '@public-ui/react';
|
|
3
|
+
import { SampleDescription } from '../components/SampleDescription';
|
|
3
4
|
|
|
4
5
|
export const CustomTooltipWidth: FC = () => (
|
|
5
|
-
|
|
6
|
+
<>
|
|
7
|
+
<SampleDescription>
|
|
8
|
+
<p>
|
|
9
|
+
This sample demonstrates how a tooltip's width can be adjusted by defining the CSS custom property <code>--kol-tooltip-width</code> on one of the
|
|
10
|
+
parent elements.
|
|
11
|
+
</p>
|
|
12
|
+
</SampleDescription>
|
|
13
|
+
<KolButton _label="Tooltip mit fixer Breite" _hideLabel style={{ '--kol-tooltip-width': '400px' }} _icons="codicon codicon-reactions"></KolButton>
|
|
14
|
+
</>
|
|
6
15
|
);
|
|
@@ -23,7 +23,7 @@ export const StaticForm: FC = () => {
|
|
|
23
23
|
return (
|
|
24
24
|
<>
|
|
25
25
|
<SampleDescription>
|
|
26
|
-
<p>This sample shows how
|
|
26
|
+
<p>This sample shows how KoliBri can be used in a static form context.</p>
|
|
27
27
|
<ol>
|
|
28
28
|
<li>
|
|
29
29
|
First you have to enable the <code>experimental mode</code>:{' '}
|
package/src/shares/constants.ts
CHANGED
package/dist/1016.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 1016.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[1016],{3164:(e,t,i)=>{i.d(t,{t:()=>c});var r=i(3460),a=i(5206);const n={error:"Fehler",warning:"Warnung",info:"Hinweis",success:"Erfolg",message:"Nachricht",close:"Schließen","form-description":"Formular-Felder, die mit einem Sternchen (*) gekennzeichnet sind, sind Pflichtangaben.",of:"von",characters:"Zeichen",new:"Neu","no-entries":"Es sind keine Einträge vorhanden.","change-order":"Sortierung von {{colLabel}} ändern","action-running":"Aktion wird ausgeführt...","action-done":"Aktion abgeschlossen",pagination:"Paginierung","page-first":"Direkt zur ersten Seite","page-back":"Eine Seite zurück","page-next":"Eine Seite weiter","page-last":"Direkt zur letzten Seite","entries-per-site":"Einträge pro Seite",page:"Seite","page-current":"Seite {{page}}","page-selected":"Seite {{page}} ist ausgewählt","page-per-site":"{{entries}} Einträge pro Seite","nav-maximize":"Navigation maximieren","nav-minimize":"Navigation minimieren","logo-description":"Logo {{orgShort}}. Bundesadler mit Flaggenstab und Schriftzug {{orgLong}}","open-link-in-tab":"Öffnet in neuem Tab.","kolibri-logo":"Logo von KoliBri","table-pagination-label":"Paginierung für die Tabelle {{label}}","avatar-alt":"Avatar von {{name}}","toast-close-all":"Alle schließen",version:"Versionsnummer","error-list":"Fehlerliste","error-list-message":"Bitte korrigieren Sie folgende Fehler:"},o={error:"Error",warning:"Warning",info:"Note",success:"Success",message:"Message",close:"Close","form-description":"Form fields marked with an asterisk (*) are mandatory.",of:"of",characters:"characters",new:"New","no-entries":"No entries available.","change-order":"Change order of {{colLabel}}","action-running":"Action is running...","action-done":"Action done",pagination:"Pagination","page-first":"Directly to the first page","page-back":"One page back","page-next":"One page further","page-last":"Directly to the last page","entries-per-site":"Entries per page",page:"Page","page-current":"Page {{page}}","page-selected":"Page {{page}} is selected","page-per-site":"{{entries}} entries per page","nav-maximize":"Maximize","nav-minimize":"Minimize","logo-description":"Logo {{orgShort}}. Federal eagle with flag staff and lettering {{orgLong}}","open-link-in-tab":"Opens in new tab.","kolibri-logo":"KoliBri logo","table-pagination-label":"Pagination for table {{label}}","avatar-alt":"Avatar of {{name}}","toast-close-all":"Close all",version:"Version number","error-list":"Error list","error-list-message":"Please correct the following errors"},s=e=>Object.keys(e).reduce(((t,i)=>(t[`kol-${i}`]=e[i],t)),{}),l=new Set([e=>e("en",s(o)),e=>e("de",s(n))]);let c=(e,t)=>{const i=(0,r.g)();let a=i.translate(e,t);return a===e&&(i.addTranslations(l),a=i.translate(e,t)),a};"test"===a.p&&(c=e=>e)},1016:(e,t,i)=>{i.r(t),i.d(t,{kol_form:()=>s});var r=i(6954),a=i(3164),n=i(4626),o=i(6633);const s=class{constructor(e){(0,r.r)(this,e),this.onSubmit=e=>{var t,i;e.preventDefault(),e.stopPropagation(),"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t.onSubmit)&&(null===(i=this.state._on)||void 0===i||i.onSubmit(e))},this.onReset=e=>{var t,i;e.preventDefault(),e.stopPropagation(),"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t.onReset)&&(null===(i=this.state._on)||void 0===i||i.onReset(e))},this.handleLinkClick=e=>{var t;const i=null===(t=e.target)||void 0===t?void 0:t.href;if(i){const e=new URL(i),t=document.querySelector(e.hash);t&&"function"==typeof t.focus&&(t.scrollIntoView({behavior:"smooth"}),t.focus())}},this._on=void 0,this._requiredText=!0,this._errorList=void 0,this.state={}}render(){return(0,r.h)(r.H,{key:"f3a2861782e90d8197a9fa596c003c7742ca49ca",class:"kol-form"},this._errorList&&this._errorList.length>0&&(0,r.h)(o.l,{key:"38ee4a94a8a8639c77ed2f21a71d91e33070a910",_type:"error"},(0,a.t)("kol-error-list-message"),(0,r.h)("nav",{key:"e4677e5f7b8822b4af6c82cb9c94c0310368c013","aria-label":(0,a.t)("kol-error-list")},(0,r.h)("ul",{key:"9155eabac615d36ecdaa2ae519cac1d12f5909d4"},this._errorList.map(((e,t)=>(0,r.h)("li",{key:t},(0,r.h)(o.i,{_href:e.selector,_label:e.message,_on:{onClick:this.handleLinkClick},ref:e=>{0===t&&(this.errorListElement=e)}}))))))),(0,r.h)("form",{key:"800a545609cca9cf6bfd94ada90ac9aeb0691b6f",method:"post",onSubmit:this.onSubmit,onReset:this.onReset,autoComplete:"off",noValidate:!0},!0===this.state._requiredText?(0,r.h)("p",null,(0,r.h)(o.k,null,(0,a.t)("kol-form-description"))):"string"==typeof this.state._requiredText&&this.state._requiredText.length>0?(0,r.h)("p",null,(0,r.h)(o.k,null,this.state._requiredText)):null,(0,r.h)("slot",{key:"ec53fcee71a6de6c12d172ade47ea6d518229c6f"})))}focusErrorList(){return setTimeout((()=>{var e;this._errorList&&this._errorList.length>0&&(null===(e=this.errorListElement)||void 0===e||e.focus())}),300),Promise.resolve()}validateOn(e){"object"==typeof e&&null!==e&&(this.state=Object.assign(Object.assign({},this.state),{_on:e}))}validateRequiredText(e){"boolean"==typeof e?(0,n.a)(this,"_requiredText",e):(0,n.d)(this,"_requiredText",e)}validateErrorList(e){((e,t)=>{(0,n.w)(e,"errorList",(e=>"object"==typeof e),new Set(["Object"]),t)})(this,e)}componentWillLoad(){this.validateOn(this._on),this.validateRequiredText(this._requiredText),this.validateErrorList(this._errorList)}static get watchers(){return{_on:["validateOn"],_requiredText:["validateRequiredText"],_errorList:["validateErrorList"]}}}}}]);
|
package/dist/149.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 149.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[149],{2563:(e,a,t)=>{t.d(a,{v:()=>n});var i=t(4626);const n=(e,a)=>{(0,i.a)(e,"_hasCloser",a)}},3164:(e,a,t)=>{t.d(a,{t:()=>c});var i=t(3460),n=t(5206);const r={error:"Fehler",warning:"Warnung",info:"Hinweis",success:"Erfolg",message:"Nachricht",close:"Schließen","form-description":"Formular-Felder, die mit einem Sternchen (*) gekennzeichnet sind, sind Pflichtangaben.",of:"von",characters:"Zeichen",new:"Neu","no-entries":"Es sind keine Einträge vorhanden.","change-order":"Sortierung von {{colLabel}} ändern","action-running":"Aktion wird ausgeführt...","action-done":"Aktion abgeschlossen",pagination:"Paginierung","page-first":"Direkt zur ersten Seite","page-back":"Eine Seite zurück","page-next":"Eine Seite weiter","page-last":"Direkt zur letzten Seite","entries-per-site":"Einträge pro Seite",page:"Seite","page-current":"Seite {{page}}","page-selected":"Seite {{page}} ist ausgewählt","page-per-site":"{{entries}} Einträge pro Seite","nav-maximize":"Navigation maximieren","nav-minimize":"Navigation minimieren","logo-description":"Logo {{orgShort}}. Bundesadler mit Flaggenstab und Schriftzug {{orgLong}}","open-link-in-tab":"Öffnet in neuem Tab.","kolibri-logo":"Logo von KoliBri","table-pagination-label":"Paginierung für die Tabelle {{label}}","avatar-alt":"Avatar von {{name}}","toast-close-all":"Alle schließen",version:"Versionsnummer","error-list":"Fehlerliste","error-list-message":"Bitte korrigieren Sie folgende Fehler:"},l={error:"Error",warning:"Warning",info:"Note",success:"Success",message:"Message",close:"Close","form-description":"Form fields marked with an asterisk (*) are mandatory.",of:"of",characters:"characters",new:"New","no-entries":"No entries available.","change-order":"Change order of {{colLabel}}","action-running":"Action is running...","action-done":"Action done",pagination:"Pagination","page-first":"Directly to the first page","page-back":"One page back","page-next":"One page further","page-last":"Directly to the last page","entries-per-site":"Entries per page",page:"Page","page-current":"Page {{page}}","page-selected":"Page {{page}} is selected","page-per-site":"{{entries}} entries per page","nav-maximize":"Maximize","nav-minimize":"Minimize","logo-description":"Logo {{orgShort}}. Federal eagle with flag staff and lettering {{orgLong}}","open-link-in-tab":"Opens in new tab.","kolibri-logo":"KoliBri logo","table-pagination-label":"Pagination for table {{label}}","avatar-alt":"Avatar of {{name}}","toast-close-all":"Close all",version:"Version number","error-list":"Error list","error-list-message":"Please correct the following errors"},s=e=>Object.keys(e).reduce(((a,t)=>(a[`kol-${t}`]=e[t],a)),{}),o=new Set([e=>e("en",s(l)),e=>e("de",s(r))]);let c=(e,a)=>{const t=(0,i.g)();let n=t.translate(e,a);return n===e&&(t.addTranslations(o),n=t.translate(e,a)),n};"test"===n.p&&(c=e=>e)},149:(e,a,t)=>{t.r(a),t.d(a,{kol_alert_wc:()=>b});var i=t(6954),n=t(3164),r=t(2563),l=t(4266),s=t(1263),o=t(4626),c=t(6360),d=t(6633);const h=e=>(0,i.h)(d.h,{class:"heading-icon",_ariaLabel:"string"==typeof e.label&&e.label.length>0?"":e.ariaLabel,_icons:e.icon}),g=e=>{switch(e.type){case"error":return(0,i.h)(h,{ariaLabel:(0,n.t)("kol-error"),icon:"codicon codicon-error",label:e.label});case"info":return(0,i.h)(h,{ariaLabel:(0,n.t)("kol-info"),icon:"codicon codicon-info",label:e.label});case"warning":return(0,i.h)(h,{ariaLabel:(0,n.t)("kol-warning"),icon:"codicon codicon-warning",label:e.label});case"success":return(0,i.h)(h,{ariaLabel:(0,n.t)("kol-success"),icon:"codicon codicon-pass",label:e.label});default:return(0,i.h)(h,{ariaLabel:(0,n.t)("kol-message"),icon:"codicon codicon-comment",label:e.label})}},b=class{constructor(e){(0,i.r)(this,e),this.close=()=>{var e;void 0!==(null===(e=this._on)||void 0===e?void 0:e.onClose)&&this._on.onClose(new Event("Close"))},this.on={onClick:this.close},this.validateOnValue=e=>"object"==typeof e&&null!==e&&"function"==typeof e.onClose,this._alert=!1,this._hasCloser=!1,this._label=void 0,this._level=1,this._on=void 0,this._type="default",this._variant="msg",this.state={_level:1}}render(){var e;if(this.state._alert){try{s.L.debug(["Navigator should vibrate ...",navigator.vibrate([100,75,100,75,100])])}catch(e){s.L.debug("Navigator does not support vibration.")}setTimeout((()=>{this.validateAlert(!1)}),1e4)}return(0,i.h)(i.H,{key:"2debfccd984d4a2db619936c39e15944e1b3946c",class:{"kol-alert-wc":!0,[this.state._type]:!0,[this.state._variant]:!0,hasCloser:!!this.state._hasCloser},role:this.state._alert?"alert":void 0},(0,i.h)("div",{key:"689e142ed81d2bb63a70fc86281adaa51010722b",class:"heading"},(0,i.h)(g,{key:"bdce3632cef1dbc7d3ad7321ef9e1e8cc06a8d25",label:this.state._label,type:this.state._type}),(0,i.h)("div",{key:"4f4f8e13f88b33c17e10b723f177db57bbcbdbe8"},"string"==typeof this.state._label&&(null===(e=this.state._label)||void 0===e?void 0:e.length)>0&&(0,i.h)(d.c,{key:"24903f587fc99732f63183a0a210137494861c7b",_label:this.state._label,_level:this.state._level}),"msg"===this.state._variant&&(0,i.h)("div",{key:"250ad893b53102aa37665dd931a9a721964d22a6",class:"content"},(0,i.h)("slot",{key:"1c893defe75ebc344d5223b957070624bd741fc4"}))),this.state._hasCloser&&(0,i.h)(d.d,{key:"ce9b41c884f872a273b8911939358a5c6ffa94f5",class:"close",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:(0,n.t)("kol-close"),_on:this.on,_tooltipAlign:"left"})),"card"===this.state._variant&&(0,i.h)("div",{key:"96affeacd2911505b3bca066dc840b17ca3f4042",class:"content"},(0,i.h)("slot",{key:"1e5a41f19ee541f8de0c3175718e2d1a1cffb1ce"})))}validateAlert(e){(0,o.a)(this,"_alert",e)}validateHasCloser(e){(0,r.v)(this,e)}validateLabel(e){(0,l.v)(this,e)}validateLevel(e){(0,c.w)(this,e)}validateOn(e){this.validateOnValue(e)&&(0,o.s)(this,"_on",{onClose:e.onClose})}validateType(e){(0,o.w)(this,"_type",(e=>"string"==typeof e&&("default"===e||"error"===e||"info"===e||"success"===e||"warning"===e)),new Set("String {success, info, warning, error}"),e)}validateVariant(e){(0,o.w)(this,"_variant",(e=>"card"===e||"msg"===e),new Set("AlertVariant {card, msg}"),e)}componentWillLoad(){this.validateAlert(this._alert),this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on),this.validateType(this._type),this.validateVariant(this._variant)}static get watchers(){return{_alert:["validateAlert"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_type:["validateType"],_variant:["validateVariant"]}}}},4266:(e,a,t)=>{t.d(a,{a:()=>h,c:()=>o,h:()=>s,v:()=>d});var i=t(7784),n=t(4626);const r=/[a-zA-Z0-9äöüÄÖÜß]/g,l=/^\d+$/;function s(e,a=1){return function(e){var a;return"string"==typeof e&&(null===(a=e.match(r))||void 0===a?void 0:a.length)||0}(e)>=a}function o(e){return l.test(e)}const c=new Set(["string"]),d=(e,a,t={})=>{(0,n.w)(e,"_label",(e=>"string"==typeof e),c,a,function(e){var a;return Object.assign(Object.assign({},e),{hooks:{afterPatch:(a,t,n,r)=>{var l,c;"function"==typeof(null===(l=e.hooks)||void 0===l?void 0:l.afterPatch)&&(null===(c=e.hooks)||void 0===c||c.afterPatch(a,t,n,r)),"string"==typeof a&&!1===s(a,3)&&!1===o(a)&&(0,i.a)(`The heading or label ("${a}") is not accessible. A label should consist of at least three readable characters.`),"string"==typeof a&&a.length>80&&(0,i.u)("A heading or label should not be longer than 80 characters.")},beforePatch:null===(a=e.hooks)||void 0===a?void 0:a.beforePatch}})}(t))},h=d},6360:(e,a,t)=>{t.d(a,{w:()=>n});var i=t(4626);const n=(e,a)=>{(0,i.w)(e,"_level",(e=>"number"==typeof e&&0<=e&&e<=6),new Set(["Number {0, 1, 2, 3, 4, 5, 6}"]),a,{defaultValue:1,required:!0})}}}]);
|
package/dist/1531.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 1531.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[1531],{1531:(e,t,a)=>{switch(location.pathname){case"/dev/toaster.html":a.e(8274).then(a.bind(a,8274));break;case"/dev/input-error.html":a.e(7219).then(a.bind(a,7219));break;case"/dev/reprod-accordion-does-not-toggle-with-open.html":a.e(5716).then(a.bind(a,5716));break;case"/dev/details-synced-open-state.html":a.e(9064).then(a.bind(a,9064))}}}]);
|
package/dist/1818.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[1818],{1818:(e,t,i)=>{i.r(t),i.d(t,{initialize:()=>a});var r=i(1263),l=i(4626);function n(e,t){try{Object.defineProperty((()=>{let e=(0,r.b)().KoliBri;return void 0===e&&(e={},Object.defineProperty((0,r.b)(),"KoliBri",{value:e,writable:!1})),e})(),e,{get:function(){return t}})}catch(t){r.L.debug(`KoliBri property ${e} is already bind.`)}}const o=(e,t)=>r.L.debug(`${e} ${t?"":"not "}activated`),a=()=>{if((0,r.i)(),(0,r.c)()){(0,r.r)(),n("a11yColorContrast",l.q),n("querySelector",l.k),n("querySelectorAll",l.t),n("querySelectorColors",l.u),n("utils",(function(){return l.n})),n("parseJson",l.p),n("stringifyJson",l.v);const e=(0,r.g)().body,t=(0,r.g)().createElement("svg");if(t.setAttribute("aria-label","KoliBri-DevTools"),t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("role","toolbar"),t.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;"),t.innerHTML='<svg\n xmlns="http://www.w3.org/2000/svg"\n width="50"\n height="50"\n viewBox="0 0 600 600"\n>\n <path d="M353 322L213 304V434L353 322Z" fill="#047" />\n <path d="M209 564V304L149 434L209 564Z" fill="#047" />\n <path d="M357 316L417 250L361 210L275 244L357 316Z" fill="#047" />\n <path d="M353 318L35 36L213 300L353 318Z" fill="#047" />\n <path d="M329 218L237 92L250 222L272 241L329 218Z" fill="#047" />\n <path d="M391 286L565 272L421 252L391 286Z" fill="#047" />\n</svg>',(0,r.g)().body.appendChild(t),o("Development mode",(0,r.c)()),o("Experimental mode",(0,r.a)()),o("Color contrast analysis",(0,r.d)()),(0,r.d)()){const t=setTimeout((()=>{clearTimeout(t),setInterval((()=>{l.n.queryHtmlElementColors((0,r.g)().createElement("div"),(0,l.q)(e),!1,!1)}),1e4)}),2500)}}}}}]);
|