@public-ui/sample-react 2.0.0-rc.11 → 2.0.0-rc.13
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/README.md +18 -0
- package/dist/1130.js +2 -0
- package/dist/1474.js +1 -1
- package/dist/183.js +1 -1
- package/dist/2337.js +1 -1
- package/dist/2412.js +1 -1
- package/dist/267.js +2 -0
- package/dist/{5327.js → 2738.js} +2 -2
- package/dist/3303.js +1 -1
- package/dist/3325.js +1 -1
- package/dist/3429.js +1 -1
- package/dist/3459.js +1 -1
- package/dist/3932.js +1 -1
- package/dist/4022.js +1 -1
- package/dist/{8872.js → 4121.js} +2 -2
- package/dist/4164.js +1 -1
- package/dist/4195.js +1 -1
- package/dist/4291.js +1 -1
- package/dist/4323.js +1 -1
- package/dist/4355.js +1 -1
- package/dist/4564.js +1 -1
- package/dist/4891.js +1 -1
- package/dist/5183.js +1 -1
- package/dist/5369.js +1 -1
- package/dist/5390.js +1 -1
- package/dist/540.js +1 -1
- package/dist/5717.js +1 -1
- package/dist/{8026.js → 5860.js} +2 -2
- package/dist/5862.js +1 -1
- package/dist/5866.js +1 -1
- package/dist/6012.js +1 -1
- package/dist/6068.js +1 -1
- package/dist/6210.js +1 -1
- package/dist/6320.js +1 -1
- package/dist/6558.js +1 -1
- package/dist/6813.js +1 -1
- package/dist/6908.js +1 -1
- package/dist/7029.js +1 -1
- package/dist/7255.js +1 -1
- package/dist/{9598.js → 7380.js} +2 -2
- package/dist/7447.js +1 -1
- package/dist/7535.js +1 -1
- package/dist/7715.js +1 -1
- package/dist/7722.js +1 -1
- package/dist/7734.js +1 -1
- package/dist/7801.js +1 -1
- package/dist/7858.js +1 -1
- package/dist/7955.js +1 -1
- package/dist/7995.js +1 -1
- package/dist/8061.js +1 -1
- package/dist/8065.js +1 -1
- package/dist/8073.js +1 -1
- package/dist/8111.js +1 -1
- package/dist/8152.js +2 -0
- package/dist/8255.js +1 -1
- package/dist/8291.js +1 -1
- package/dist/8709.js +1 -1
- package/dist/8761.js +1 -1
- package/dist/9592.js +2 -0
- package/dist/9734.js +1 -1
- package/dist/9747.js +1 -1
- package/dist/9792.js +1 -1
- package/dist/9895.js +1 -1
- package/dist/9963.js +1 -1
- package/dist/9972.js +1 -1
- package/dist/main.css +1 -1
- package/dist/main.js +450 -536
- package/dist/main.js.LICENSE.txt +2 -2
- package/package.json +12 -12
- package/src/App.tsx +1 -3
- package/src/components/button-link/basic.tsx +3 -0
- package/src/components/button-link/image.tsx +1 -1
- package/src/components/card/flex.tsx +1 -1
- package/src/components/card/selection.tsx +3 -3
- package/src/components/handout/basic.tsx +1 -1
- package/src/components/image/basic.tsx +1 -1
- package/src/components/input-checkbox/partials/cases.tsx +2 -0
- package/src/components/input-radio/partials/cases.tsx +0 -1
- package/src/components/link/image.tsx +2 -2
- package/src/components/table/formatter.ts +5 -0
- package/src/components/table/render-cell.tsx +13 -8
- package/src/components/table/test-data.ts +356 -16
- package/src/components/table/with-pagination.tsx +4 -3
- package/src/components/tabs/basic.tsx +21 -6
- package/src/components/toast/basic.tsx +11 -1
- package/src/react.main.tsx +2 -2
- package/src/scenarios/appointment-form/ErrorList.tsx +1 -1
- package/src/scenarios/custom-tooltip-width.tsx +6 -0
- package/src/scenarios/routes.ts +2 -0
- package/src/shares/theme.ts +4 -9
- package/dist/2335.js +0 -2
- package/dist/3961.js +0 -2
- package/dist/8798.js +0 -2
- package/dist/9551.js +0 -2
- /package/dist/{2335.js.LICENSE.txt → 1130.js.LICENSE.txt} +0 -0
- /package/dist/{3961.js.LICENSE.txt → 267.js.LICENSE.txt} +0 -0
- /package/dist/{5327.js.LICENSE.txt → 2738.js.LICENSE.txt} +0 -0
- /package/dist/{8026.js.LICENSE.txt → 4121.js.LICENSE.txt} +0 -0
- /package/dist/{8798.js.LICENSE.txt → 5860.js.LICENSE.txt} +0 -0
- /package/dist/{8872.js.LICENSE.txt → 7380.js.LICENSE.txt} +0 -0
- /package/dist/{9551.js.LICENSE.txt → 8152.js.LICENSE.txt} +0 -0
- /package/dist/{9598.js.LICENSE.txt → 9592.js.LICENSE.txt} +0 -0
package/dist/main.js.LICENSE.txt
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
*/
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* @remix-run/router v1.
|
|
38
|
+
* @remix-run/router v1.13.1
|
|
39
39
|
*
|
|
40
40
|
* Copyright (c) Remix Software Inc.
|
|
41
41
|
*
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
*/
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* React Router v6.
|
|
49
|
+
* React Router v6.20.1
|
|
50
50
|
*
|
|
51
51
|
* Copyright (c) Remix Software Inc.
|
|
52
52
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/sample-react",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.13",
|
|
4
4
|
"description": "This app contains samples for the KoliBri/Public UI",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
6
6
|
"dependencies": {
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
"@leanup/stack-react": "1.3.48",
|
|
9
9
|
"@leanup/stack-webpack": "1.3.48",
|
|
10
10
|
"@public-oss/kolibri-themes": "0.0.3",
|
|
11
|
-
"@public-ui/components": "2.0.0-rc.
|
|
12
|
-
"@public-ui/react": "2.0.0-rc.
|
|
13
|
-
"@public-ui/themes": "2.0.0-rc.
|
|
14
|
-
"@types/node": "20.
|
|
15
|
-
"@types/react": "18.2.
|
|
16
|
-
"@types/react-dom": "18.2.
|
|
17
|
-
"@unocss/preset-uno": "0.
|
|
18
|
-
"@unocss/webpack": "0.
|
|
11
|
+
"@public-ui/components": "2.0.0-rc.13",
|
|
12
|
+
"@public-ui/react": "2.0.0-rc.13",
|
|
13
|
+
"@public-ui/themes": "2.0.0-rc.13",
|
|
14
|
+
"@types/node": "20.10.3",
|
|
15
|
+
"@types/react": "18.2.41",
|
|
16
|
+
"@types/react-dom": "18.2.17",
|
|
17
|
+
"@unocss/preset-uno": "0.58.0",
|
|
18
|
+
"@unocss/webpack": "0.58.0",
|
|
19
19
|
"ajv": "8.12.0",
|
|
20
20
|
"chromedriver": "119.0.1",
|
|
21
21
|
"cpy-cli": "5.0.0",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"npm-run-all": "4.1.5",
|
|
27
27
|
"react": "18.2.0",
|
|
28
28
|
"react-dom": "18.2.0",
|
|
29
|
-
"react-router": "6.
|
|
30
|
-
"react-router-dom": "6.
|
|
29
|
+
"react-router": "6.20.1",
|
|
30
|
+
"react-router-dom": "6.20.1",
|
|
31
31
|
"rimraf": "3.0.2",
|
|
32
32
|
"ts-prune": "0.10.3",
|
|
33
|
-
"typescript": "5.
|
|
33
|
+
"typescript": "5.3.2",
|
|
34
34
|
"world_countries_lists": "2.8.2",
|
|
35
35
|
"yup": "1.3.2"
|
|
36
36
|
},
|
package/src/App.tsx
CHANGED
|
@@ -47,9 +47,7 @@ const getRouteTree = (routes: MyRoutes): ReturnType<typeof Route>[] => {
|
|
|
47
47
|
<div className="d-grid gap-4">
|
|
48
48
|
{THEME_OPTIONS.filter(
|
|
49
49
|
(theme) =>
|
|
50
|
-
['bmf', 'default', 'bzst
|
|
51
|
-
(theme as Option<Theme>).value,
|
|
52
|
-
) >= 0,
|
|
50
|
+
['bmf', 'default', 'bzst-v1', 'ecl-ec', 'ecl-eu', 'itzbund', 'mapz', 'zoll-v2', 'zoll-v3'].indexOf((theme as Option<Theme>).value) >= 0,
|
|
53
51
|
).map((theme) => (
|
|
54
52
|
<div className="d-grid gap-2" key={(theme as Option<Theme>).value} data-theme={(theme as Option<Theme>).value}>
|
|
55
53
|
<div className="mt-4">
|
|
@@ -19,5 +19,8 @@ export const ButtonLinkBasic: FC = () => (
|
|
|
19
19
|
<KolButtonLink style={{ display: 'block' }} _label="Simple Link" />
|
|
20
20
|
Daher gehe ich über die ganze Breite des Eltern-Elements erzeuge so einen Zeilenumbruch.
|
|
21
21
|
</p>
|
|
22
|
+
<p>
|
|
23
|
+
<KolButtonLink _label="Disabled ButtonLink" _disabled />
|
|
24
|
+
</p>
|
|
22
25
|
</div>
|
|
23
26
|
);
|
|
@@ -8,7 +8,7 @@ export const ButtonLinkImage: FC = () => (
|
|
|
8
8
|
<KolButtonLink _label="Ich bin ein Link, der als Text gerendert wird" />
|
|
9
9
|
<br />
|
|
10
10
|
<KolButtonLink _label="">
|
|
11
|
-
<img alt="Darstellung des KoliBri-Theming" slot="expert" src="
|
|
11
|
+
<img alt="Darstellung des KoliBri-Theming" slot="expert" src="abgrenzung.jpg" width="300" />
|
|
12
12
|
</KolButtonLink>
|
|
13
13
|
</div>
|
|
14
14
|
);
|
|
@@ -21,7 +21,7 @@ export const CardSelection: FC = () => (
|
|
|
21
21
|
</div>
|
|
22
22
|
<div>
|
|
23
23
|
<div>
|
|
24
|
-
<img alt="Darstellung des KoliBri-Theming" src="
|
|
24
|
+
<img alt="Darstellung des KoliBri-Theming" src="abgrenzung.jpg" width="100%" />
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
27
|
<div>
|
|
@@ -41,7 +41,7 @@ export const CardSelection: FC = () => (
|
|
|
41
41
|
</div>
|
|
42
42
|
<div>
|
|
43
43
|
<div>
|
|
44
|
-
<img alt="Darstellung des KoliBri-Theming" src="
|
|
44
|
+
<img alt="Darstellung des KoliBri-Theming" src="abgrenzung.jpg" width="100%" />
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
47
47
|
<div>
|
|
@@ -61,7 +61,7 @@ export const CardSelection: FC = () => (
|
|
|
61
61
|
</div>
|
|
62
62
|
<div>
|
|
63
63
|
<div>
|
|
64
|
-
<img alt="Darstellung des KoliBri-Theming" src="
|
|
64
|
+
<img alt="Darstellung des KoliBri-Theming" src="abgrenzung.jpg" width="100%" />
|
|
65
65
|
</div>
|
|
66
66
|
</div>
|
|
67
67
|
<div>
|
|
@@ -1001,7 +1001,7 @@ export const HandoutBasic: FC = () => (
|
|
|
1001
1001
|
</KolCard>
|
|
1002
1002
|
</div>
|
|
1003
1003
|
<KolVersion _label="5.0.2-test.2"></KolVersion>
|
|
1004
|
-
{/* <KolImage _src="
|
|
1004
|
+
{/* <KolImage _src="abgrenzung.jpg" _alt="KoliBri Darstellung"></KolImage> */}
|
|
1005
1005
|
{/* <KolIndentedText></KolIndentedText> */}
|
|
1006
1006
|
{/* <KolQuote></KolQuote> */}
|
|
1007
1007
|
</div>
|
|
@@ -2,4 +2,4 @@ import { FC } from 'react';
|
|
|
2
2
|
import { KolImage } from '@public-ui/react';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
|
-
export const ImageBasic: FC = () => <KolImage className="w-80%" _src="
|
|
5
|
+
export const ImageBasic: FC = () => <KolImage className="w-80%" _src="abgrenzung.jpg" _alt="Darstellung des KoliBri-Theming" />;
|
|
@@ -48,6 +48,8 @@ export const InputCheckboxCases = forwardRef<HTMLKolInputCheckboxElement, Compon
|
|
|
48
48
|
_value={true}
|
|
49
49
|
_hint="Hint text"
|
|
50
50
|
/>
|
|
51
|
+
<KolInputCheckbox {...props} _checked _disabled _label="Checked and disabled" />
|
|
52
|
+
<KolInputCheckbox {...props} _indeterminate _disabled _label="Indeterminate and disabled" />
|
|
51
53
|
<KolInputCheckbox
|
|
52
54
|
{...props}
|
|
53
55
|
_error={ERROR_MSG}
|
|
@@ -10,7 +10,6 @@ export const InputRadioCases = forwardRef<HTMLKolInputRadioElement, Components.K
|
|
|
10
10
|
<div className="grid gap-4">
|
|
11
11
|
<KolInputRadio
|
|
12
12
|
{...props}
|
|
13
|
-
_error={ERROR_MSG}
|
|
14
13
|
_options="[{'label':'Frau','value':'Frau'},{'disabled':true,'label':'Herr (disabled)'},{'label':'Firma','value':'Firma'}]"
|
|
15
14
|
_label="Anrede"
|
|
16
15
|
/>
|
|
@@ -8,12 +8,12 @@ export const LinkImage: FC = () => (
|
|
|
8
8
|
<KolLink _href="#" _label="Ich bin ein Link, der als Text gerendert wird" />
|
|
9
9
|
<br />
|
|
10
10
|
<KolLink _href="#" _label="">
|
|
11
|
-
<img alt="Darstellung des KoliBri-Theming" slot="expert" src="
|
|
11
|
+
<img alt="Darstellung des KoliBri-Theming" slot="expert" src="abgrenzung.jpg" width="300" />
|
|
12
12
|
<KolKolibri style={{ width: '300px' }}></KolKolibri>
|
|
13
13
|
</KolLink>
|
|
14
14
|
<br />
|
|
15
15
|
<KolLink _href="#" _label="">
|
|
16
|
-
<img alt="Darstellung des KoliBri-Theming" slot="expert" src="
|
|
16
|
+
<img alt="Darstellung des KoliBri-Theming" slot="expert" src="abgrenzung.jpg" width="300" />
|
|
17
17
|
</KolLink>
|
|
18
18
|
</div>
|
|
19
19
|
);
|
|
@@ -5,12 +5,8 @@ import { KolButton, KolInputText, KolTable } from '@public-ui/react';
|
|
|
5
5
|
import { getRoot } from '../../shares/react-roots';
|
|
6
6
|
import { KoliBriTableHeaders } from '@public-ui/components';
|
|
7
7
|
import { DATA, Data } from './test-data';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
day: '2-digit',
|
|
11
|
-
month: '2-digit',
|
|
12
|
-
year: 'numeric',
|
|
13
|
-
});
|
|
8
|
+
import { DATE_FORMATTER } from './formatter';
|
|
9
|
+
import { SampleDescription } from '../SampleDescription';
|
|
14
10
|
|
|
15
11
|
const HEADERS: KoliBriTableHeaders = {
|
|
16
12
|
horizontal: [
|
|
@@ -22,7 +18,7 @@ const HEADERS: KoliBriTableHeaders = {
|
|
|
22
18
|
textAlign: 'center',
|
|
23
19
|
render: (el, tupel) => {
|
|
24
20
|
// https://reactjs.org/docs/portals.html
|
|
25
|
-
getRoot(el).render(<strong>{DATE_FORMATTER.format(
|
|
21
|
+
getRoot(el).render(<strong>{DATE_FORMATTER.format(tupel.label as unknown as Date)}</strong>);
|
|
26
22
|
},
|
|
27
23
|
sort: (data: Data[]) =>
|
|
28
24
|
data.sort((data0, data1) => {
|
|
@@ -35,6 +31,8 @@ const HEADERS: KoliBriTableHeaders = {
|
|
|
35
31
|
label: 'Aktion (react)',
|
|
36
32
|
key: 'order',
|
|
37
33
|
render: (el) => {
|
|
34
|
+
el.setAttribute('role', 'presentation');
|
|
35
|
+
|
|
38
36
|
// https://reactjs.org/docs/portals.html
|
|
39
37
|
getRoot(el).render(
|
|
40
38
|
<>
|
|
@@ -48,4 +46,11 @@ const HEADERS: KoliBriTableHeaders = {
|
|
|
48
46
|
],
|
|
49
47
|
};
|
|
50
48
|
|
|
51
|
-
export const TableRenderCell: FC = () =>
|
|
49
|
+
export const TableRenderCell: FC = () => (
|
|
50
|
+
<>
|
|
51
|
+
<SampleDescription>
|
|
52
|
+
<p>This sample simulates the usage of React render functions for the table column contents.</p>
|
|
53
|
+
</SampleDescription>
|
|
54
|
+
<KolTable _label="Sort a date column" _data={DATA} _headers={HEADERS} className="block" />
|
|
55
|
+
</>
|
|
56
|
+
);
|
|
@@ -1,66 +1,406 @@
|
|
|
1
1
|
export type Data = {
|
|
2
2
|
order: number;
|
|
3
|
-
date:
|
|
3
|
+
date: Date;
|
|
4
4
|
};
|
|
5
5
|
export const DATA: Data[] = [
|
|
6
6
|
{
|
|
7
7
|
order: 0,
|
|
8
|
-
date: new Date('1981-05-26T21:33:43.612Z')
|
|
8
|
+
date: new Date('1981-05-26T21:33:43.612Z'),
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
order: 1,
|
|
12
|
-
date: new Date('1971-04-25T19:44:17.014Z')
|
|
12
|
+
date: new Date('1971-04-25T19:44:17.014Z'),
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
order: 2,
|
|
16
|
-
date: new Date('1986-07-10T11:39:29.539Z')
|
|
16
|
+
date: new Date('1986-07-10T11:39:29.539Z'),
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
order: 3,
|
|
20
|
-
date: new Date('1976-02-02T10:00:36.346Z')
|
|
20
|
+
date: new Date('1976-02-02T10:00:36.346Z'),
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
order: 4,
|
|
24
|
-
date: new Date('1998-07-07T12:50:36.016Z')
|
|
24
|
+
date: new Date('1998-07-07T12:50:36.016Z'),
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
order: 5,
|
|
28
|
-
date: new Date('1994-09-05T05:10:44.078Z')
|
|
28
|
+
date: new Date('1994-09-05T05:10:44.078Z'),
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
order: 6,
|
|
32
|
-
date: new Date('1986-05-23T13:05:01.874Z')
|
|
32
|
+
date: new Date('1986-05-23T13:05:01.874Z'),
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
order: 7,
|
|
36
|
-
date: new Date('1975-06-29T21:51:29.359Z')
|
|
36
|
+
date: new Date('1975-06-29T21:51:29.359Z'),
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
order: 8,
|
|
40
|
-
date: new Date('1974-05-15T23:47:02.499Z')
|
|
40
|
+
date: new Date('1974-05-15T23:47:02.499Z'),
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
order: 9,
|
|
44
|
-
date: new Date('1990-05-27T10:13:19.641Z')
|
|
44
|
+
date: new Date('1990-05-27T10:13:19.641Z'),
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
order: 10,
|
|
48
|
-
date: new Date('1993-10-20T03:54:08.739Z')
|
|
48
|
+
date: new Date('1993-10-20T03:54:08.739Z'),
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
order: 11,
|
|
52
|
-
date: new Date('2000-02-25T11:55:43.705Z')
|
|
52
|
+
date: new Date('2000-02-25T11:55:43.705Z'),
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
order: 12,
|
|
56
|
-
date: new Date('1988-08-27T09:59:12.251Z')
|
|
56
|
+
date: new Date('1988-08-27T09:59:12.251Z'),
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
order: 13,
|
|
60
|
-
date: new Date('1980-10-24T10:41:24.897Z')
|
|
60
|
+
date: new Date('1980-10-24T10:41:24.897Z'),
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
order: 14,
|
|
64
|
-
date: new Date('1995-01-25T12:31:27.983Z')
|
|
64
|
+
date: new Date('1995-01-25T12:31:27.983Z'),
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
order: 15,
|
|
68
|
+
date: new Date('1995-04-15T02:00:39.048Z'),
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
order: 16,
|
|
72
|
+
date: new Date('1994-03-15T19:13:04.564Z'),
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
order: 17,
|
|
76
|
+
date: new Date('1999-03-02T16:53:04.418Z'),
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
order: 18,
|
|
80
|
+
date: new Date('1982-08-23T18:37:38.014Z'),
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
order: 19,
|
|
84
|
+
date: new Date('1995-06-19T12:39:56.321Z'),
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
order: 20,
|
|
88
|
+
date: new Date('1994-09-23T15:03:35.746Z'),
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
order: 21,
|
|
92
|
+
date: new Date('1990-04-15T23:38:02.147Z'),
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
order: 22,
|
|
96
|
+
date: new Date('1983-08-01T10:36:44.006Z'),
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
order: 23,
|
|
100
|
+
date: new Date('1986-06-28T21:27:04.588Z'),
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
order: 24,
|
|
104
|
+
date: new Date('1986-08-14T19:34:40.904Z'),
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
order: 25,
|
|
108
|
+
date: new Date('1998-07-14T15:52:29.010Z'),
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
order: 26,
|
|
112
|
+
date: new Date('1985-02-15T18:56:32.344Z'),
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
order: 27,
|
|
116
|
+
date: new Date('1989-09-06T10:49:30.896Z'),
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
order: 28,
|
|
120
|
+
date: new Date('1994-09-05T14:21:37.211Z'),
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
order: 29,
|
|
124
|
+
date: new Date('1995-12-15T23:12:14.411Z'),
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
order: 30,
|
|
128
|
+
date: new Date('1986-08-14T19:34:40.904Z'),
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
order: 31,
|
|
132
|
+
date: new Date('1985-02-15T18:56:32.344Z'),
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
order: 32,
|
|
136
|
+
date: new Date('1989-09-06T10:49:30.896Z'),
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
order: 33,
|
|
140
|
+
date: new Date('1994-09-05T14:21:37.211Z'),
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
order: 34,
|
|
144
|
+
date: new Date('1995-12-15T23:12:14.411Z'),
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
order: 35,
|
|
148
|
+
date: new Date('1986-08-14T19:34:40.904Z'),
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
order: 36,
|
|
152
|
+
date: new Date('1985-02-15T18:56:32.344Z'),
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
order: 37,
|
|
156
|
+
date: new Date('1989-09-06T10:49:30.896Z'),
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
order: 38,
|
|
160
|
+
date: new Date('1994-09-05T14:21:37.211Z'),
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
order: 39,
|
|
164
|
+
date: new Date('1995-12-15T23:12:14.411Z'),
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
order: 40,
|
|
168
|
+
date: new Date('1986-08-14T19:34:40.904Z'),
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
order: 41,
|
|
172
|
+
date: new Date('1985-02-15T18:56:32.344Z'),
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
order: 42,
|
|
176
|
+
date: new Date('1989-09-06T10:49:30.896Z'),
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
order: 43,
|
|
180
|
+
date: new Date('1994-09-05T14:21:37.211Z'),
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
order: 44,
|
|
184
|
+
date: new Date('1995-12-15T23:12:14.411Z'),
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
order: 45,
|
|
188
|
+
date: new Date('1986-08-14T19:34:40.904Z'),
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
order: 46,
|
|
192
|
+
date: new Date('1985-02-15T18:56:32.344Z'),
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
order: 47,
|
|
196
|
+
date: new Date('1989-09-06T10:49:30.896Z'),
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
order: 48,
|
|
200
|
+
date: new Date('1994-09-05T14:21:37.211Z'),
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
order: 49,
|
|
204
|
+
date: new Date('1995-12-15T23:12:14.411Z'),
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
order: 50,
|
|
208
|
+
date: new Date('1986-08-14T19:34:40.904Z'),
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
order: 51,
|
|
212
|
+
date: new Date('1985-02-15T18:56:32.344Z'),
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
order: 52,
|
|
216
|
+
date: new Date('1989-09-06T10:49:30.896Z'),
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
order: 53,
|
|
220
|
+
date: new Date('1994-09-05T14:21:37.211Z'),
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
order: 54,
|
|
224
|
+
date: new Date('1995-12-15T23:12:14.411Z'),
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
order: 55,
|
|
228
|
+
date: new Date('1986-08-14T19:34:40.904Z'),
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
order: 56,
|
|
232
|
+
date: new Date('1985-02-15T18:56:32.344Z'),
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
order: 57,
|
|
236
|
+
date: new Date('1989-09-06T10:49:30.896Z'),
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
order: 58,
|
|
240
|
+
date: new Date('1994-09-05T14:21:37.211Z'),
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
order: 59,
|
|
244
|
+
date: new Date('1995-12-15T23:12:14.411Z'),
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
order: 60,
|
|
248
|
+
date: new Date('1986-08-14T19:34:40.904Z'),
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
order: 61,
|
|
252
|
+
date: new Date('1985-02-15T18:56:32.344Z'),
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
order: 62,
|
|
256
|
+
date: new Date('1989-09-06T10:49:30.896Z'),
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
order: 63,
|
|
260
|
+
date: new Date('1994-09-05T14:21:37.211Z'),
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
order: 64,
|
|
264
|
+
date: new Date('1995-12-15T23:12:14.411Z'),
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
order: 65,
|
|
268
|
+
date: new Date('1986-08-14T19:34:40.904Z'),
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
order: 66,
|
|
272
|
+
date: new Date('1985-02-15T18:56:32.344Z'),
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
order: 67,
|
|
276
|
+
date: new Date('1989-09-06T10:49:30.896Z'),
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
order: 68,
|
|
280
|
+
date: new Date('1994-09-05T14:21:37.211Z'),
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
order: 69,
|
|
284
|
+
date: new Date('1995-12-15T23:12:14.411Z'),
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
order: 70,
|
|
288
|
+
date: new Date('1986-08-14T19:34:40.904Z'),
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
order: 71,
|
|
292
|
+
date: new Date('1985-02-15T18:56:32.344Z'),
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
order: 72,
|
|
296
|
+
date: new Date('1989-09-06T10:49:30.896Z'),
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
order: 73,
|
|
300
|
+
date: new Date('1994-09-05T14:21:37.211Z'),
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
order: 74,
|
|
304
|
+
date: new Date('1995-12-15T23:12:14.411Z'),
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
order: 75,
|
|
308
|
+
date: new Date('1986-08-14T19:34:40.904Z'),
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
order: 76,
|
|
312
|
+
date: new Date('1985-02-15T18:56:32.344Z'),
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
order: 77,
|
|
316
|
+
date: new Date('1989-09-06T10:49:30.896Z'),
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
order: 78,
|
|
320
|
+
date: new Date('1994-09-05T14:21:37.211Z'),
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
order: 79,
|
|
324
|
+
date: new Date('1995-12-15T23:12:14.411Z'),
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
order: 80,
|
|
328
|
+
date: new Date('1986-08-14T19:34:40.904Z'),
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
order: 81,
|
|
332
|
+
date: new Date('1985-02-15T18:56:32.344Z'),
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
order: 82,
|
|
336
|
+
date: new Date('1989-09-06T10:49:30.896Z'),
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
order: 83,
|
|
340
|
+
date: new Date('1994-09-05T14:21:37.211Z'),
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
order: 84,
|
|
344
|
+
date: new Date('1995-12-15T23:12:14.411Z'),
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
order: 85,
|
|
348
|
+
date: new Date('1986-08-14T19:34:40.904Z'),
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
order: 86,
|
|
352
|
+
date: new Date('1985-02-15T18:56:32.344Z'),
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
order: 87,
|
|
356
|
+
date: new Date('1989-09-06T10:49:30.896Z'),
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
order: 88,
|
|
360
|
+
date: new Date('1994-09-05T14:21:37.211Z'),
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
order: 89,
|
|
364
|
+
date: new Date('1995-12-15T23:12:14.411Z'),
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
order: 90,
|
|
368
|
+
date: new Date('1986-08-14T19:34:40.904Z'),
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
order: 91,
|
|
372
|
+
date: new Date('1985-02-15T18:56:32.344Z'),
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
order: 92,
|
|
376
|
+
date: new Date('1989-09-06T10:49:30.896Z'),
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
order: 93,
|
|
380
|
+
date: new Date('1994-09-05T14:21:37.211Z'),
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
order: 94,
|
|
384
|
+
date: new Date('1995-12-15T23:12:14.411Z'),
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
order: 95,
|
|
388
|
+
date: new Date('1986-08-14T19:34:40.904Z'),
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
order: 96,
|
|
392
|
+
date: new Date('1985-02-15T18:56:32.344Z'),
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
order: 97,
|
|
396
|
+
date: new Date('1989-09-06T10:49:30.896Z'),
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
order: 98,
|
|
400
|
+
date: new Date('1994-09-05T14:21:37.211Z'),
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
order: 99,
|
|
404
|
+
date: new Date('1995-12-15T23:12:14.411Z'),
|
|
65
405
|
},
|
|
66
406
|
];
|
|
@@ -2,17 +2,18 @@ import React, { FC } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { KolTable } from '@public-ui/react';
|
|
4
4
|
import { KoliBriTableHeaders, KoliBriTablePaginationProps } from '@public-ui/components';
|
|
5
|
-
import { DATA } from './test-data';
|
|
5
|
+
import { Data, DATA } from './test-data';
|
|
6
|
+
import { DATE_FORMATTER } from './formatter';
|
|
6
7
|
|
|
7
8
|
const HEADERS: KoliBriTableHeaders = {
|
|
8
9
|
horizontal: [
|
|
9
10
|
[
|
|
10
11
|
{ label: 'Order', key: 'order' },
|
|
11
|
-
{ label: 'Date', key: 'date' },
|
|
12
|
+
{ label: 'Date', key: 'date', render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as unknown as Data).date) },
|
|
12
13
|
],
|
|
13
14
|
],
|
|
14
15
|
};
|
|
15
|
-
const PAGINATION: KoliBriTablePaginationProps = { _page: 2
|
|
16
|
+
const PAGINATION: KoliBriTablePaginationProps = { _page: 2 };
|
|
16
17
|
|
|
17
18
|
export const TableWithPagination: FC = () => (
|
|
18
19
|
<div>
|