@dso-toolkit/core 59.0.1 → 61.0.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/cjs/dso-accordion-section.cjs.entry.js +1 -1
- package/dist/cjs/dso-accordion-section.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-date-picker.cjs.entry.js +49 -568
- package/dist/cjs/dso-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-expandable.cjs.entry.js +1 -1
- package/dist/cjs/dso-expandable.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-header.cjs.entry.js +2 -7
- package/dist/cjs/dso-header.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-info_2.cjs.entry.js +16 -3
- package/dist/cjs/dso-info_2.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-list-button.cjs.entry.js +1 -1
- package/dist/cjs/dso-list-button.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-logo.cjs.entry.js +23 -0
- package/dist/cjs/dso-logo.cjs.entry.js.map +1 -0
- package/dist/cjs/dso-progress-indicator.cjs.entry.js +1 -1
- package/dist/cjs/dso-progress-indicator.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
- package/dist/cjs/dso-toggletip.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/cjs/dso-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/dso-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +177 -65
- package/dist/cjs/dso-viewer-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/accordion/components/accordion-section.css +1 -1
- package/dist/collection/components/date-picker/date-picker.css +4 -425
- package/dist/collection/components/date-picker/date-picker.interfaces.js.map +1 -1
- package/dist/collection/components/date-picker/date-picker.js +50 -510
- package/dist/collection/components/date-picker/date-picker.js.map +1 -1
- package/dist/collection/components/date-picker/date-utils.js +24 -100
- package/dist/collection/components/date-picker/date-utils.js.map +1 -1
- package/dist/collection/components/expandable/expandable.css +1 -0
- package/dist/collection/components/header/header.css +4 -8
- package/dist/collection/components/header/header.js +1 -7
- package/dist/collection/components/header/header.js.map +1 -1
- package/dist/collection/components/list-button/list-button.css +1 -0
- package/dist/collection/components/logo/logo.css +109 -0
- package/dist/collection/components/logo/logo.js +61 -0
- package/dist/collection/components/logo/logo.js.map +1 -0
- package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
- package/dist/collection/components/progress-indicator/progress-indicator.js.map +1 -1
- package/dist/collection/components/selectable/selectable.css +1 -3
- package/dist/collection/components/toggletip/toggletip.css +1 -0
- package/dist/collection/components/tooltip/tooltip.css +35 -26
- package/dist/collection/components/viewer-grid/components/document-panel.js +8 -0
- package/dist/collection/components/viewer-grid/components/document-panel.js.map +1 -0
- package/dist/collection/components/viewer-grid/components/index.js +1 -0
- package/dist/collection/components/viewer-grid/components/index.js.map +1 -1
- package/dist/collection/components/viewer-grid/components/main-panel.js +12 -8
- package/dist/collection/components/viewer-grid/components/main-panel.js.map +1 -1
- package/dist/collection/components/viewer-grid/viewer-grid.css +237 -48
- package/dist/collection/components/viewer-grid/viewer-grid.interfaces.js +13 -1
- package/dist/collection/components/viewer-grid/viewer-grid.interfaces.js.map +1 -1
- package/dist/collection/components/viewer-grid/viewer-grid.js +402 -59
- package/dist/collection/components/viewer-grid/viewer-grid.js.map +1 -1
- package/dist/components/dso-accordion-section.js +1 -1
- package/dist/components/dso-accordion-section.js.map +1 -1
- package/dist/components/dso-date-picker.js +55 -589
- package/dist/components/dso-date-picker.js.map +1 -1
- package/dist/components/dso-header.js +2 -8
- package/dist/components/dso-header.js.map +1 -1
- package/dist/components/dso-list-button.js +1 -1
- package/dist/components/dso-list-button.js.map +1 -1
- package/dist/components/dso-logo.d.ts +11 -0
- package/dist/components/dso-logo.js +40 -0
- package/dist/components/dso-logo.js.map +1 -0
- package/dist/components/dso-toggletip.js +1 -1
- package/dist/components/dso-toggletip.js.map +1 -1
- package/dist/components/dso-viewer-grid.js +186 -69
- package/dist/components/dso-viewer-grid.js.map +1 -1
- package/dist/components/expandable.js +1 -1
- package/dist/components/expandable.js.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/progress-indicator.js +1 -1
- package/dist/components/progress-indicator.js.map +1 -1
- package/dist/components/selectable.js +15 -2
- package/dist/components/selectable.js.map +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/tooltip.js.map +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js.map +1 -1
- package/dist/dso-toolkit/p-04662263.entry.js +2 -0
- package/dist/dso-toolkit/p-04662263.entry.js.map +1 -0
- package/dist/dso-toolkit/p-0c14a2e5.entry.js +2 -0
- package/dist/dso-toolkit/p-0c14a2e5.entry.js.map +1 -0
- package/dist/dso-toolkit/p-6b42f0cc.entry.js +2 -0
- package/dist/dso-toolkit/p-6b42f0cc.entry.js.map +1 -0
- package/dist/dso-toolkit/p-6dfe9062.entry.js +2 -0
- package/dist/dso-toolkit/p-6dfe9062.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-298453a9.entry.js → p-7d90b3b2.entry.js} +2 -2
- package/dist/dso-toolkit/{p-298453a9.entry.js.map → p-7d90b3b2.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-8b24f933.entry.js +2 -0
- package/dist/dso-toolkit/p-8b24f933.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-a2a82d7c.entry.js → p-ca222ec3.entry.js} +2 -2
- package/dist/dso-toolkit/{p-a2a82d7c.entry.js.map → p-ca222ec3.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-caf4d880.entry.js +2 -0
- package/dist/dso-toolkit/{p-d37a6c95.entry.js.map → p-caf4d880.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-dbea5bbd.entry.js +2 -0
- package/dist/dso-toolkit/p-dbea5bbd.entry.js.map +1 -0
- package/dist/dso-toolkit/p-e45febe8.entry.js +2 -0
- package/dist/dso-toolkit/p-e45febe8.entry.js.map +1 -0
- package/dist/dso-toolkit/p-ebda3d53.entry.js +2 -0
- package/dist/dso-toolkit/p-ebda3d53.entry.js.map +1 -0
- package/dist/esm/dso-accordion-section.entry.js +1 -1
- package/dist/esm/dso-accordion-section.entry.js.map +1 -1
- package/dist/esm/dso-date-picker.entry.js +50 -569
- package/dist/esm/dso-date-picker.entry.js.map +1 -1
- package/dist/esm/dso-expandable.entry.js +1 -1
- package/dist/esm/dso-expandable.entry.js.map +1 -1
- package/dist/esm/dso-header.entry.js +2 -7
- package/dist/esm/dso-header.entry.js.map +1 -1
- package/dist/esm/dso-info_2.entry.js +15 -2
- package/dist/esm/dso-info_2.entry.js.map +1 -1
- package/dist/esm/dso-list-button.entry.js +1 -1
- package/dist/esm/dso-list-button.entry.js.map +1 -1
- package/dist/esm/dso-logo.entry.js +19 -0
- package/dist/esm/dso-logo.entry.js.map +1 -0
- package/dist/esm/dso-progress-indicator.entry.js +1 -1
- package/dist/esm/dso-progress-indicator.entry.js.map +1 -1
- package/dist/esm/dso-toggletip.entry.js +1 -1
- package/dist/esm/dso-toggletip.entry.js.map +1 -1
- package/dist/esm/dso-toolkit.js +1 -1
- package/dist/esm/dso-tooltip.entry.js +1 -1
- package/dist/esm/dso-tooltip.entry.js.map +1 -1
- package/dist/esm/dso-viewer-grid.entry.js +178 -66
- package/dist/esm/dso-viewer-grid.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +8 -99
- package/dist/types/components/date-picker/date-picker.interfaces.d.ts +9 -8
- package/dist/types/components/date-picker/date-utils.d.ts +6 -34
- package/dist/types/components/header/header.d.ts +0 -2
- package/dist/types/components/logo/logo.d.ts +15 -0
- package/dist/types/components/viewer-grid/components/document-panel.d.ts +10 -0
- package/dist/types/components/viewer-grid/components/index.d.ts +1 -0
- package/dist/types/components/viewer-grid/components/main-panel.d.ts +10 -4
- package/dist/types/components/viewer-grid/viewer-grid.d.ts +82 -17
- package/dist/types/components/viewer-grid/viewer-grid.interfaces.d.ts +27 -13
- package/dist/types/components.d.ts +116 -42
- package/package.json +2 -2
- package/dist/cjs/create-identifier-5900c27b.js +0 -19
- package/dist/cjs/create-identifier-5900c27b.js.map +0 -1
- package/dist/collection/components/date-picker/date-localization.js +0 -30
- package/dist/collection/components/date-picker/date-localization.js.map +0 -1
- package/dist/collection/components/date-picker/date-picker-day.js +0 -20
- package/dist/collection/components/date-picker/date-picker-day.js.map +0 -1
- package/dist/collection/components/date-picker/date-picker-month.js +0 -26
- package/dist/collection/components/date-picker/date-picker-month.js.map +0 -1
- package/dist/collection/components/date-picker/utils/month-range.js +0 -28
- package/dist/collection/components/date-picker/utils/month-range.js.map +0 -1
- package/dist/collection/components/date-picker/utils/range.js +0 -8
- package/dist/collection/components/date-picker/utils/range.js.map +0 -1
- package/dist/components/create-identifier.js +0 -17
- package/dist/components/create-identifier.js.map +0 -1
- package/dist/dso-toolkit/p-3631ce14.entry.js +0 -2
- package/dist/dso-toolkit/p-3631ce14.entry.js.map +0 -1
- package/dist/dso-toolkit/p-51cfeed4.entry.js +0 -2
- package/dist/dso-toolkit/p-51cfeed4.entry.js.map +0 -1
- package/dist/dso-toolkit/p-95b70498.entry.js +0 -2
- package/dist/dso-toolkit/p-95b70498.entry.js.map +0 -1
- package/dist/dso-toolkit/p-9dbe2931.entry.js +0 -2
- package/dist/dso-toolkit/p-9dbe2931.entry.js.map +0 -1
- package/dist/dso-toolkit/p-a3dc08f4.entry.js +0 -2
- package/dist/dso-toolkit/p-a3dc08f4.entry.js.map +0 -1
- package/dist/dso-toolkit/p-ad44136d.entry.js +0 -2
- package/dist/dso-toolkit/p-ad44136d.entry.js.map +0 -1
- package/dist/dso-toolkit/p-c19cfe3f.js +0 -2
- package/dist/dso-toolkit/p-c19cfe3f.js.map +0 -1
- package/dist/dso-toolkit/p-d37a6c95.entry.js +0 -2
- package/dist/dso-toolkit/p-f08a5a06.entry.js +0 -2
- package/dist/dso-toolkit/p-f08a5a06.entry.js.map +0 -1
- package/dist/esm/create-identifier-479a4699.js +0 -17
- package/dist/esm/create-identifier-479a4699.js.map +0 -1
- package/dist/types/components/date-picker/date-localization.d.ts +0 -19
- package/dist/types/components/date-picker/date-picker-day.d.ts +0 -11
- package/dist/types/components/date-picker/date-picker-month.d.ts +0 -20
- package/dist/types/components/date-picker/utils/month-range.d.ts +0 -2
- package/dist/types/components/date-picker/utils/range.d.ts +0 -1
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { ViewerGridPanelSize, ViewerGridVdkTab, ViewerGridVrkTab, ViewerGridChangeSizeAnimationEndEvent, ViewerGridChangeSizeEvent, ViewerGridCloseOverlayEvent, ViewerGridFilterpanelApplyEvent, ViewerGridFilterpanelCancelEvent, ViewerGridMainExpandEvent, ViewerGridMainToggleEvent, ViewerGridActiveTabSwitchEvent, ViewerGridMode } from "./viewer-grid.interfaces";
|
|
3
|
+
/**
|
|
4
|
+
* @slot main
|
|
5
|
+
* @slot map
|
|
6
|
+
* @slot filterpanel
|
|
7
|
+
* @slot overlay
|
|
8
|
+
* @slot document-panel - VDK only
|
|
9
|
+
* @slot main-expanded - VDK only
|
|
10
|
+
*/
|
|
3
11
|
export declare class ViewerGrid {
|
|
4
12
|
private mediaCondition;
|
|
5
|
-
private
|
|
6
|
-
|
|
13
|
+
private mapElement?;
|
|
14
|
+
/**
|
|
15
|
+
* VRK or VDK implementation.
|
|
16
|
+
*/
|
|
17
|
+
mode: ViewerGridMode;
|
|
7
18
|
/**
|
|
8
19
|
* Set to true when filterpanel should show.
|
|
9
20
|
*/
|
|
@@ -13,14 +24,33 @@ export declare class ViewerGrid {
|
|
|
13
24
|
*/
|
|
14
25
|
overlayOpen: boolean;
|
|
15
26
|
/**
|
|
16
|
-
*
|
|
27
|
+
* **VDK only.** Set to true when document panel should show.
|
|
28
|
+
*/
|
|
29
|
+
documentPanelOpen: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Size of the panel when component loads.
|
|
17
32
|
*
|
|
18
33
|
* Default size is `large`.
|
|
19
34
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
35
|
+
mainSize: ViewerGridPanelSize;
|
|
36
|
+
/**
|
|
37
|
+
* Set active tab in tab view.
|
|
38
|
+
*/
|
|
39
|
+
activeTab?: ViewerGridVdkTab | ViewerGridVrkTab;
|
|
40
|
+
/**
|
|
41
|
+
* **VDK only.** Size of the panel when component loads.
|
|
42
|
+
*
|
|
43
|
+
* Default size is `large`.
|
|
44
|
+
*/
|
|
45
|
+
documentPanelSize: ViewerGridPanelSize;
|
|
46
|
+
/**
|
|
47
|
+
* **VDK only.** Set to show main panel expanded.
|
|
48
|
+
*/
|
|
49
|
+
mainPanelExpanded: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* **VDK only.** Set to hide the main panel.
|
|
52
|
+
*/
|
|
53
|
+
mainPanelHidden: boolean;
|
|
24
54
|
/**
|
|
25
55
|
* Emitted when user wants to close the overlay.
|
|
26
56
|
*/
|
|
@@ -34,25 +64,60 @@ export declare class ViewerGrid {
|
|
|
34
64
|
*/
|
|
35
65
|
dsoFilterpanelApply: EventEmitter<ViewerGridFilterpanelApplyEvent>;
|
|
36
66
|
/**
|
|
37
|
-
* Emitted
|
|
67
|
+
* Emitted when user applies filterpanel options.
|
|
68
|
+
*/
|
|
69
|
+
dsoActiveTabSwitch: EventEmitter<ViewerGridActiveTabSwitchEvent>;
|
|
70
|
+
/**
|
|
71
|
+
* Emitted on interaction with sizing buttons.
|
|
38
72
|
*/
|
|
39
73
|
dsoMainSizeChange: EventEmitter<ViewerGridChangeSizeEvent>;
|
|
74
|
+
/**
|
|
75
|
+
* Emitted after main size animation.
|
|
76
|
+
*/
|
|
77
|
+
dsoMainSizeChangeAnimationEnd: EventEmitter<ViewerGridChangeSizeAnimationEndEvent>;
|
|
78
|
+
/**
|
|
79
|
+
* **VDK only.** Emitted on interaction with sizing buttons.
|
|
80
|
+
*/
|
|
81
|
+
dsoDocumentPanelSizeChange: EventEmitter<ViewerGridChangeSizeEvent>;
|
|
82
|
+
/**
|
|
83
|
+
* **VDK only.** Emitted after main size animation.
|
|
84
|
+
*/
|
|
85
|
+
dsoDocumentPanelSizeChangeAnimationEnd: EventEmitter<ViewerGridChangeSizeAnimationEndEvent>;
|
|
86
|
+
/**
|
|
87
|
+
* **VDK only.** Emitted when the user wants to expand the main panel.
|
|
88
|
+
*/
|
|
89
|
+
dsoMainPanelExpand: EventEmitter<ViewerGridMainExpandEvent>;
|
|
90
|
+
/**
|
|
91
|
+
* **VDK only.** Emitted when the user toggles the visibility of the main panel.
|
|
92
|
+
*
|
|
93
|
+
* Also emitted by scripting when the panels do not fit anymore.
|
|
94
|
+
*/
|
|
95
|
+
dsoMainPanelToggle: EventEmitter<ViewerGridMainToggleEvent>;
|
|
40
96
|
host: HTMLDsoViewerGridElement;
|
|
97
|
+
tabView: boolean;
|
|
41
98
|
private filterpanel;
|
|
42
|
-
private filterpanelSlot;
|
|
99
|
+
private get filterpanelSlot();
|
|
100
|
+
private get overlaySlot();
|
|
43
101
|
private overlay;
|
|
44
|
-
|
|
45
|
-
mainSizeWatcher(currentSize: MainSize, previousSize: MainSize): void;
|
|
102
|
+
documentPanelOpenWatcher(open: boolean): void;
|
|
46
103
|
filterpanelOpenWatcher(open: boolean): void;
|
|
47
104
|
overlayOpenWatcher(open: boolean): void;
|
|
48
|
-
|
|
49
|
-
|
|
105
|
+
/**
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
_checkMainPanelVisibility(): Promise<void>;
|
|
109
|
+
private switchActiveTab;
|
|
110
|
+
private emitShrinkMain;
|
|
111
|
+
private emitExpandMain;
|
|
112
|
+
private shrinkDocumentPanel;
|
|
113
|
+
private expandDocumentPanel;
|
|
114
|
+
private expandContent;
|
|
115
|
+
private toggleMainPanel;
|
|
50
116
|
private changeListener;
|
|
117
|
+
private handleFilterpanelApply;
|
|
118
|
+
private handleFilterpanelCancel;
|
|
51
119
|
connectedCallback(): void;
|
|
52
120
|
componentDidLoad(): void;
|
|
53
|
-
componentWillLoad(): void;
|
|
54
121
|
disconnectedCallback(): void;
|
|
55
|
-
private handleFilterpanelApply;
|
|
56
|
-
private handleFilterpanelCancel;
|
|
57
122
|
render(): any;
|
|
58
123
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export interface ViewerGridChangeSizeEvent {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
currentSize: MainSize;
|
|
2
|
+
currentSize: ViewerGridPanelSize;
|
|
3
|
+
nextSize: ViewerGridPanelSize;
|
|
4
|
+
}
|
|
5
|
+
export interface ViewerGridChangeSizeAnimationEndEvent {
|
|
6
|
+
currentSize: ViewerGridPanelSize;
|
|
8
7
|
}
|
|
9
8
|
export interface ViewerGridCloseOverlayEvent {
|
|
10
9
|
originalEvent: MouseEvent | Event;
|
|
@@ -15,12 +14,27 @@ export interface ViewerGridFilterpanelCancelEvent {
|
|
|
15
14
|
export interface ViewerGridFilterpanelApplyEvent {
|
|
16
15
|
originalEvent: MouseEvent | Event;
|
|
17
16
|
}
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
export interface ViewerGridActiveTabSwitchEvent {
|
|
18
|
+
tab: ViewerGridTab;
|
|
19
|
+
}
|
|
20
|
+
export interface ViewerGridMainExpandEvent {
|
|
21
|
+
expand: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface ViewerGridMainToggleEvent {
|
|
24
|
+
hide: boolean;
|
|
25
|
+
}
|
|
26
|
+
export type ViewerGridMode = "vdk" | "vrk";
|
|
27
|
+
export type ViewerGridPanelSize = "small" | "medium" | "large";
|
|
28
|
+
export type ViewerGridLabelSizeMap = {
|
|
29
|
+
[key in ViewerGridPanelSize]: string;
|
|
21
30
|
};
|
|
22
|
-
export declare const
|
|
23
|
-
export type
|
|
24
|
-
export
|
|
25
|
-
|
|
31
|
+
export declare const viewerGridVrkTabs: readonly ["main", "map"];
|
|
32
|
+
export type ViewerGridVrkTab = (typeof viewerGridVrkTabs)[number];
|
|
33
|
+
export declare const viewerGridVdkTabs: readonly ["search", "map", "document"];
|
|
34
|
+
export type ViewerGridVdkTab = (typeof viewerGridVdkTabs)[number];
|
|
35
|
+
export type ViewerGridTab = ViewerGridVrkTab | ViewerGridVdkTab;
|
|
36
|
+
export type ViewerGridTabLabelMap = {
|
|
37
|
+
[key in ViewerGridTab]: string;
|
|
26
38
|
};
|
|
39
|
+
export declare const viewerGridTabLabelMap: ViewerGridTabLabelMap;
|
|
40
|
+
export declare const viewerGridSizeLabelMap: ViewerGridLabelSizeMap;
|
|
@@ -12,7 +12,7 @@ import { AnnotationOutputCloseEvent } from "./components/annotation-output/annot
|
|
|
12
12
|
import { Suggestion } from "./components/autosuggest/autosuggest.interfaces";
|
|
13
13
|
import { DsoCardClickedEvent, ImageShape } from "./components/card/card.interfaces";
|
|
14
14
|
import { CardContainerMode } from "./components/card-container/card-container.interfaces";
|
|
15
|
-
import {
|
|
15
|
+
import { DatePickerChangeEvent, DatePickerFocusEvent, DatePickerKeyboardEvent } from "./components/date-picker/date-picker.interfaces";
|
|
16
16
|
import { DocumentComponentOpenToggleEvent, DocumentComponentOzonContentAnchorClickEvent, DocumentComponentToggleAnnotationEvent, DocumentComponentWijzigactie } from "./components/document-component/document-component.models";
|
|
17
17
|
import { Placement } from "@popperjs/core";
|
|
18
18
|
import { ExpandableAnimationEndEvent } from "./components/expandable/expandable";
|
|
@@ -30,7 +30,7 @@ import { DsoScrollEndEvent } from "./components/scrollable/scrollable.interfaces
|
|
|
30
30
|
import { SelectableChangeEvent } from "./components/selectable/selectable.interfaces";
|
|
31
31
|
import { SlideToggleActiveEvent } from "./components/slide-toggle/slide-toggle.interfaces";
|
|
32
32
|
import { TreeViewItem, TreeViewPointerEvent } from "./components/tree-view/tree-view.interfaces";
|
|
33
|
-
import {
|
|
33
|
+
import { ViewerGridActiveTabSwitchEvent, ViewerGridChangeSizeAnimationEndEvent, ViewerGridChangeSizeEvent, ViewerGridCloseOverlayEvent, ViewerGridFilterpanelApplyEvent, ViewerGridFilterpanelCancelEvent, ViewerGridMainExpandEvent, ViewerGridMainToggleEvent, ViewerGridMode, ViewerGridPanelSize, ViewerGridVdkTab, ViewerGridVrkTab } from "./components/viewer-grid/viewer-grid.interfaces";
|
|
34
34
|
export { AccordionInternalState, AccordionVariant } from "./components/accordion/accordion.interfaces";
|
|
35
35
|
export { AccordionHeading, AccordionSectionAnimationEndEvent, AccordionSectionState, AccordionSectionToggleClickEvent } from "./components/accordion/components/accordion-section.interfaces";
|
|
36
36
|
export { AnnotationButtonClickEvent } from "./components/annotation-button/annotation-button";
|
|
@@ -38,7 +38,7 @@ export { AnnotationOutputCloseEvent } from "./components/annotation-output/annot
|
|
|
38
38
|
export { Suggestion } from "./components/autosuggest/autosuggest.interfaces";
|
|
39
39
|
export { DsoCardClickedEvent, ImageShape } from "./components/card/card.interfaces";
|
|
40
40
|
export { CardContainerMode } from "./components/card-container/card-container.interfaces";
|
|
41
|
-
export {
|
|
41
|
+
export { DatePickerChangeEvent, DatePickerFocusEvent, DatePickerKeyboardEvent } from "./components/date-picker/date-picker.interfaces";
|
|
42
42
|
export { DocumentComponentOpenToggleEvent, DocumentComponentOzonContentAnchorClickEvent, DocumentComponentToggleAnnotationEvent, DocumentComponentWijzigactie } from "./components/document-component/document-component.models";
|
|
43
43
|
export { Placement } from "@popperjs/core";
|
|
44
44
|
export { ExpandableAnimationEndEvent } from "./components/expandable/expandable";
|
|
@@ -56,7 +56,7 @@ export { DsoScrollEndEvent } from "./components/scrollable/scrollable.interfaces
|
|
|
56
56
|
export { SelectableChangeEvent } from "./components/selectable/selectable.interfaces";
|
|
57
57
|
export { SlideToggleActiveEvent } from "./components/slide-toggle/slide-toggle.interfaces";
|
|
58
58
|
export { TreeViewItem, TreeViewPointerEvent } from "./components/tree-view/tree-view.interfaces";
|
|
59
|
-
export {
|
|
59
|
+
export { ViewerGridActiveTabSwitchEvent, ViewerGridChangeSizeAnimationEndEvent, ViewerGridChangeSizeEvent, ViewerGridCloseOverlayEvent, ViewerGridFilterpanelApplyEvent, ViewerGridFilterpanelCancelEvent, ViewerGridMainExpandEvent, ViewerGridMainToggleEvent, ViewerGridMode, ViewerGridPanelSize, ViewerGridVdkTab, ViewerGridVrkTab } from "./components/viewer-grid/viewer-grid.interfaces";
|
|
60
60
|
export namespace Components {
|
|
61
61
|
interface DsoAccordion {
|
|
62
62
|
"_getState": () => Promise<AccordionInternalState>;
|
|
@@ -246,10 +246,6 @@ export namespace Components {
|
|
|
246
246
|
* ID of element that describes the input element
|
|
247
247
|
*/
|
|
248
248
|
"describedBy"?: string;
|
|
249
|
-
/**
|
|
250
|
-
* Forces the opening direction of the calendar modal to be always left or right. This setting can be useful when the input is smaller than the opening date picker would be as by default the picker always opens towards right.
|
|
251
|
-
*/
|
|
252
|
-
"direction": DsoDatePickerDirection;
|
|
253
249
|
/**
|
|
254
250
|
* Makes the date picker input component disabled. This prevents users from being able to interact with the input, and conveys its inactive state to assistive technologies.
|
|
255
251
|
*/
|
|
@@ -258,10 +254,6 @@ export namespace Components {
|
|
|
258
254
|
* Should the input be focused on load?
|
|
259
255
|
*/
|
|
260
256
|
"dsoAutofocus": boolean;
|
|
261
|
-
/**
|
|
262
|
-
* Hide the calendar modal. Set `moveFocusToButton` to false to prevent focus returning to the date picker's button. Default is true.
|
|
263
|
-
*/
|
|
264
|
-
"hide": (moveFocusToButton?: boolean) => Promise<void>;
|
|
265
257
|
/**
|
|
266
258
|
* Adds a unique identifier for the date picker input. Use this instead of html `id` attribute.
|
|
267
259
|
*/
|
|
@@ -286,18 +278,6 @@ export namespace Components {
|
|
|
286
278
|
* Should the input be marked as required?
|
|
287
279
|
*/
|
|
288
280
|
"required": boolean;
|
|
289
|
-
/**
|
|
290
|
-
* Defines a specific role attribute for the date picker input.
|
|
291
|
-
*/
|
|
292
|
-
"role": string | null;
|
|
293
|
-
/**
|
|
294
|
-
* Sets focus on the date picker's input. Use this method instead of the global `focus()`.
|
|
295
|
-
*/
|
|
296
|
-
"setFocus": () => Promise<void | undefined>;
|
|
297
|
-
/**
|
|
298
|
-
* Show the calendar modal, moving focus to the calendar inside.
|
|
299
|
-
*/
|
|
300
|
-
"show": () => Promise<void>;
|
|
301
281
|
/**
|
|
302
282
|
* Date value. Must be in Dutch date format: DD-MM-YYYY.
|
|
303
283
|
*/
|
|
@@ -576,6 +556,16 @@ export namespace Components {
|
|
|
576
556
|
*/
|
|
577
557
|
"sublabel"?: string;
|
|
578
558
|
}
|
|
559
|
+
interface DsoLogo {
|
|
560
|
+
/**
|
|
561
|
+
* The label clarifies the service within the Omgevingsloket, shown as a subtitle (and on smaller screens as the main wordmark itself).
|
|
562
|
+
*/
|
|
563
|
+
"label"?: string;
|
|
564
|
+
/**
|
|
565
|
+
* The ribbon contains the text for a possible 'sticker' on top of the logo. Used to clarify status of the page, like 'beta'.
|
|
566
|
+
*/
|
|
567
|
+
"ribbon"?: string;
|
|
568
|
+
}
|
|
579
569
|
interface DsoMapBaseLayers {
|
|
580
570
|
/**
|
|
581
571
|
* The base layers.
|
|
@@ -846,14 +836,39 @@ export namespace Components {
|
|
|
846
836
|
"focusItem": (path: TreeViewItem[]) => Promise<boolean>;
|
|
847
837
|
}
|
|
848
838
|
interface DsoViewerGrid {
|
|
839
|
+
"_checkMainPanelVisibility": () => Promise<void>;
|
|
840
|
+
/**
|
|
841
|
+
* Set active tab in tab view.
|
|
842
|
+
*/
|
|
843
|
+
"activeTab"?: ViewerGridVdkTab | ViewerGridVrkTab;
|
|
844
|
+
/**
|
|
845
|
+
* **VDK only.** Set to true when document panel should show.
|
|
846
|
+
*/
|
|
847
|
+
"documentPanelOpen": boolean;
|
|
848
|
+
/**
|
|
849
|
+
* **VDK only.** Size of the panel when component loads. Default size is `large`.
|
|
850
|
+
*/
|
|
851
|
+
"documentPanelSize": ViewerGridPanelSize;
|
|
849
852
|
/**
|
|
850
853
|
* Set to true when filterpanel should show.
|
|
851
854
|
*/
|
|
852
855
|
"filterpanelOpen": boolean;
|
|
853
856
|
/**
|
|
854
|
-
*
|
|
857
|
+
* **VDK only.** Set to show main panel expanded.
|
|
858
|
+
*/
|
|
859
|
+
"mainPanelExpanded": boolean;
|
|
860
|
+
/**
|
|
861
|
+
* **VDK only.** Set to hide the main panel.
|
|
855
862
|
*/
|
|
856
|
-
"
|
|
863
|
+
"mainPanelHidden": boolean;
|
|
864
|
+
/**
|
|
865
|
+
* Size of the panel when component loads. Default size is `large`.
|
|
866
|
+
*/
|
|
867
|
+
"mainSize": ViewerGridPanelSize;
|
|
868
|
+
/**
|
|
869
|
+
* VRK or VDK implementation.
|
|
870
|
+
*/
|
|
871
|
+
"mode": ViewerGridMode;
|
|
857
872
|
/**
|
|
858
873
|
* Set to true when overlay should show.
|
|
859
874
|
*/
|
|
@@ -1135,6 +1150,12 @@ declare global {
|
|
|
1135
1150
|
prototype: HTMLDsoListButtonElement;
|
|
1136
1151
|
new (): HTMLDsoListButtonElement;
|
|
1137
1152
|
};
|
|
1153
|
+
interface HTMLDsoLogoElement extends Components.DsoLogo, HTMLStencilElement {
|
|
1154
|
+
}
|
|
1155
|
+
var HTMLDsoLogoElement: {
|
|
1156
|
+
prototype: HTMLDsoLogoElement;
|
|
1157
|
+
new (): HTMLDsoLogoElement;
|
|
1158
|
+
};
|
|
1138
1159
|
interface HTMLDsoMapBaseLayersElement extends Components.DsoMapBaseLayers, HTMLStencilElement {
|
|
1139
1160
|
}
|
|
1140
1161
|
var HTMLDsoMapBaseLayersElement: {
|
|
@@ -1270,6 +1291,7 @@ declare global {
|
|
|
1270
1291
|
"dso-info-button": HTMLDsoInfoButtonElement;
|
|
1271
1292
|
"dso-label": HTMLDsoLabelElement;
|
|
1272
1293
|
"dso-list-button": HTMLDsoListButtonElement;
|
|
1294
|
+
"dso-logo": HTMLDsoLogoElement;
|
|
1273
1295
|
"dso-map-base-layers": HTMLDsoMapBaseLayersElement;
|
|
1274
1296
|
"dso-map-controls": HTMLDsoMapControlsElement;
|
|
1275
1297
|
"dso-map-overlays": HTMLDsoMapOverlaysElement;
|
|
@@ -1510,10 +1532,6 @@ declare namespace LocalJSX {
|
|
|
1510
1532
|
* ID of element that describes the input element
|
|
1511
1533
|
*/
|
|
1512
1534
|
"describedBy"?: string;
|
|
1513
|
-
/**
|
|
1514
|
-
* Forces the opening direction of the calendar modal to be always left or right. This setting can be useful when the input is smaller than the opening date picker would be as by default the picker always opens towards right.
|
|
1515
|
-
*/
|
|
1516
|
-
"direction"?: DsoDatePickerDirection;
|
|
1517
1535
|
/**
|
|
1518
1536
|
* Makes the date picker input component disabled. This prevents users from being able to interact with the input, and conveys its inactive state to assistive technologies.
|
|
1519
1537
|
*/
|
|
@@ -1545,31 +1563,27 @@ declare namespace LocalJSX {
|
|
|
1545
1563
|
/**
|
|
1546
1564
|
* Event emitted the date picker input is blurred.
|
|
1547
1565
|
*/
|
|
1548
|
-
"onDsoBlur"?: (event: DsoDatePickerCustomEvent<
|
|
1566
|
+
"onDsoBlur"?: (event: DsoDatePickerCustomEvent<DatePickerFocusEvent>) => void;
|
|
1549
1567
|
/**
|
|
1550
1568
|
* Event emitted when a date is selected.
|
|
1551
1569
|
*/
|
|
1552
|
-
"onDsoDateChange"?: (event: DsoDatePickerCustomEvent<
|
|
1570
|
+
"onDsoDateChange"?: (event: DsoDatePickerCustomEvent<DatePickerChangeEvent>) => void;
|
|
1553
1571
|
/**
|
|
1554
1572
|
* Event emitted the date picker input is focused.
|
|
1555
1573
|
*/
|
|
1556
|
-
"onDsoFocus"?: (event: DsoDatePickerCustomEvent<
|
|
1574
|
+
"onDsoFocus"?: (event: DsoDatePickerCustomEvent<DatePickerFocusEvent>) => void;
|
|
1557
1575
|
/**
|
|
1558
1576
|
* Event emitted on key down in the date picker input.
|
|
1559
1577
|
*/
|
|
1560
|
-
"onDsoKeyDown"?: (event: DsoDatePickerCustomEvent<
|
|
1578
|
+
"onDsoKeyDown"?: (event: DsoDatePickerCustomEvent<DatePickerKeyboardEvent>) => void;
|
|
1561
1579
|
/**
|
|
1562
1580
|
* Event emitted on key up in the date picker input.
|
|
1563
1581
|
*/
|
|
1564
|
-
"onDsoKeyUp"?: (event: DsoDatePickerCustomEvent<
|
|
1582
|
+
"onDsoKeyUp"?: (event: DsoDatePickerCustomEvent<DatePickerKeyboardEvent>) => void;
|
|
1565
1583
|
/**
|
|
1566
1584
|
* Should the input be marked as required?
|
|
1567
1585
|
*/
|
|
1568
1586
|
"required"?: boolean;
|
|
1569
|
-
/**
|
|
1570
|
-
* Defines a specific role attribute for the date picker input.
|
|
1571
|
-
*/
|
|
1572
|
-
"role"?: string | null;
|
|
1573
1587
|
/**
|
|
1574
1588
|
* Date value. Must be in Dutch date format: DD-MM-YYYY.
|
|
1575
1589
|
*/
|
|
@@ -1883,6 +1897,16 @@ declare namespace LocalJSX {
|
|
|
1883
1897
|
*/
|
|
1884
1898
|
"sublabel"?: string;
|
|
1885
1899
|
}
|
|
1900
|
+
interface DsoLogo {
|
|
1901
|
+
/**
|
|
1902
|
+
* The label clarifies the service within the Omgevingsloket, shown as a subtitle (and on smaller screens as the main wordmark itself).
|
|
1903
|
+
*/
|
|
1904
|
+
"label"?: string;
|
|
1905
|
+
/**
|
|
1906
|
+
* The ribbon contains the text for a possible 'sticker' on top of the logo. Used to clarify status of the page, like 'beta'.
|
|
1907
|
+
*/
|
|
1908
|
+
"ribbon"?: string;
|
|
1909
|
+
}
|
|
1886
1910
|
interface DsoMapBaseLayers {
|
|
1887
1911
|
/**
|
|
1888
1912
|
* The base layers.
|
|
@@ -2184,18 +2208,54 @@ declare namespace LocalJSX {
|
|
|
2184
2208
|
"onDsoOpenItem"?: (event: DsoTreeViewCustomEvent<TreeViewItem[]>) => void;
|
|
2185
2209
|
}
|
|
2186
2210
|
interface DsoViewerGrid {
|
|
2211
|
+
/**
|
|
2212
|
+
* Set active tab in tab view.
|
|
2213
|
+
*/
|
|
2214
|
+
"activeTab"?: ViewerGridVdkTab | ViewerGridVrkTab;
|
|
2215
|
+
/**
|
|
2216
|
+
* **VDK only.** Set to true when document panel should show.
|
|
2217
|
+
*/
|
|
2218
|
+
"documentPanelOpen"?: boolean;
|
|
2219
|
+
/**
|
|
2220
|
+
* **VDK only.** Size of the panel when component loads. Default size is `large`.
|
|
2221
|
+
*/
|
|
2222
|
+
"documentPanelSize"?: ViewerGridPanelSize;
|
|
2187
2223
|
/**
|
|
2188
2224
|
* Set to true when filterpanel should show.
|
|
2189
2225
|
*/
|
|
2190
2226
|
"filterpanelOpen"?: boolean;
|
|
2191
2227
|
/**
|
|
2192
|
-
*
|
|
2228
|
+
* **VDK only.** Set to show main panel expanded.
|
|
2229
|
+
*/
|
|
2230
|
+
"mainPanelExpanded"?: boolean;
|
|
2231
|
+
/**
|
|
2232
|
+
* **VDK only.** Set to hide the main panel.
|
|
2193
2233
|
*/
|
|
2194
|
-
"
|
|
2234
|
+
"mainPanelHidden"?: boolean;
|
|
2235
|
+
/**
|
|
2236
|
+
* Size of the panel when component loads. Default size is `large`.
|
|
2237
|
+
*/
|
|
2238
|
+
"mainSize"?: ViewerGridPanelSize;
|
|
2239
|
+
/**
|
|
2240
|
+
* VRK or VDK implementation.
|
|
2241
|
+
*/
|
|
2242
|
+
"mode"?: ViewerGridMode;
|
|
2243
|
+
/**
|
|
2244
|
+
* Emitted when user applies filterpanel options.
|
|
2245
|
+
*/
|
|
2246
|
+
"onDsoActiveTabSwitch"?: (event: DsoViewerGridCustomEvent<ViewerGridActiveTabSwitchEvent>) => void;
|
|
2195
2247
|
/**
|
|
2196
2248
|
* Emitted when user wants to close the overlay.
|
|
2197
2249
|
*/
|
|
2198
2250
|
"onDsoCloseOverlay"?: (event: DsoViewerGridCustomEvent<ViewerGridCloseOverlayEvent>) => void;
|
|
2251
|
+
/**
|
|
2252
|
+
* **VDK only.** Emitted on interaction with sizing buttons.
|
|
2253
|
+
*/
|
|
2254
|
+
"onDsoDocumentPanelSizeChange"?: (event: DsoViewerGridCustomEvent<ViewerGridChangeSizeEvent>) => void;
|
|
2255
|
+
/**
|
|
2256
|
+
* **VDK only.** Emitted after main size animation.
|
|
2257
|
+
*/
|
|
2258
|
+
"onDsoDocumentPanelSizeChangeAnimationEnd"?: (event: DsoViewerGridCustomEvent<ViewerGridChangeSizeAnimationEndEvent>) => void;
|
|
2199
2259
|
/**
|
|
2200
2260
|
* Emitted when user applies filterpanel options.
|
|
2201
2261
|
*/
|
|
@@ -2205,9 +2265,21 @@ declare namespace LocalJSX {
|
|
|
2205
2265
|
*/
|
|
2206
2266
|
"onDsoFilterpanelCancel"?: (event: DsoViewerGridCustomEvent<ViewerGridFilterpanelCancelEvent>) => void;
|
|
2207
2267
|
/**
|
|
2208
|
-
*
|
|
2268
|
+
* **VDK only.** Emitted when the user wants to expand the main panel.
|
|
2269
|
+
*/
|
|
2270
|
+
"onDsoMainPanelExpand"?: (event: DsoViewerGridCustomEvent<ViewerGridMainExpandEvent>) => void;
|
|
2271
|
+
/**
|
|
2272
|
+
* **VDK only.** Emitted when the user toggles the visibility of the main panel. Also emitted by scripting when the panels do not fit anymore.
|
|
2273
|
+
*/
|
|
2274
|
+
"onDsoMainPanelToggle"?: (event: DsoViewerGridCustomEvent<ViewerGridMainToggleEvent>) => void;
|
|
2275
|
+
/**
|
|
2276
|
+
* Emitted on interaction with sizing buttons.
|
|
2209
2277
|
*/
|
|
2210
2278
|
"onDsoMainSizeChange"?: (event: DsoViewerGridCustomEvent<ViewerGridChangeSizeEvent>) => void;
|
|
2279
|
+
/**
|
|
2280
|
+
* Emitted after main size animation.
|
|
2281
|
+
*/
|
|
2282
|
+
"onDsoMainSizeChangeAnimationEnd"?: (event: DsoViewerGridCustomEvent<ViewerGridChangeSizeAnimationEndEvent>) => void;
|
|
2211
2283
|
/**
|
|
2212
2284
|
* Set to true when overlay should show.
|
|
2213
2285
|
*/
|
|
@@ -2258,6 +2330,7 @@ declare namespace LocalJSX {
|
|
|
2258
2330
|
"dso-info-button": DsoInfoButton;
|
|
2259
2331
|
"dso-label": DsoLabel;
|
|
2260
2332
|
"dso-list-button": DsoListButton;
|
|
2333
|
+
"dso-logo": DsoLogo;
|
|
2261
2334
|
"dso-map-base-layers": DsoMapBaseLayers;
|
|
2262
2335
|
"dso-map-controls": DsoMapControls;
|
|
2263
2336
|
"dso-map-overlays": DsoMapOverlays;
|
|
@@ -2308,6 +2381,7 @@ declare module "@stencil/core" {
|
|
|
2308
2381
|
"dso-info-button": LocalJSX.DsoInfoButton & JSXBase.HTMLAttributes<HTMLDsoInfoButtonElement>;
|
|
2309
2382
|
"dso-label": LocalJSX.DsoLabel & JSXBase.HTMLAttributes<HTMLDsoLabelElement>;
|
|
2310
2383
|
"dso-list-button": LocalJSX.DsoListButton & JSXBase.HTMLAttributes<HTMLDsoListButtonElement>;
|
|
2384
|
+
"dso-logo": LocalJSX.DsoLogo & JSXBase.HTMLAttributes<HTMLDsoLogoElement>;
|
|
2311
2385
|
"dso-map-base-layers": LocalJSX.DsoMapBaseLayers & JSXBase.HTMLAttributes<HTMLDsoMapBaseLayersElement>;
|
|
2312
2386
|
"dso-map-controls": LocalJSX.DsoMapControls & JSXBase.HTMLAttributes<HTMLDsoMapControlsElement>;
|
|
2313
2387
|
"dso-map-overlays": LocalJSX.DsoMapOverlays & JSXBase.HTMLAttributes<HTMLDsoMapOverlaysElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dso-toolkit/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "61.0.0",
|
|
4
4
|
"description": "DSO Toolkit Web Components",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/components/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@types/animejs": "^3.1.7",
|
|
26
26
|
"animejs": "3.2.1",
|
|
27
27
|
"clsx": "^2.0.0",
|
|
28
|
-
"dso-toolkit": "^
|
|
28
|
+
"dso-toolkit": "^61.0.0",
|
|
29
29
|
"escape-string-regexp": "^5.0.0",
|
|
30
30
|
"focus-trap": "^7.5.2",
|
|
31
31
|
"popper-max-size-modifier": "^0.2.0",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Form random hash
|
|
5
|
-
*/
|
|
6
|
-
function chr4() {
|
|
7
|
-
return Math.random().toString(16).slice(-4);
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Create random identifier with a prefix
|
|
11
|
-
* @param prefix
|
|
12
|
-
*/
|
|
13
|
-
function createIdentifier(prefix) {
|
|
14
|
-
return `${prefix}-${chr4()}${chr4()}-${chr4()}-${chr4()}-${chr4()}-${chr4()}${chr4()}${chr4()}`;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
exports.createIdentifier = createIdentifier;
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=create-identifier-5900c27b.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"create-identifier-5900c27b.js","mappings":";;AAAA;;;SAGgB,IAAI;EAClB,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9C,CAAC;AAED;;;;SAIgB,gBAAgB,CAAC,MAAc;EAC7C,OAAO,GAAG,MAAM,IAAI,IAAI,EAAE,GAAG,IAAI,EAAE,IAAI,IAAI,EAAE,IAAI,IAAI,EAAE,IAAI,IAAI,EAAE,IAAI,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,CAAC;AAClG;;;;","names":[],"sources":["src/utils/create-identifier.ts"],"sourcesContent":["/**\r\n * Form random hash\r\n */\r\nexport function chr4() {\r\n return Math.random().toString(16).slice(-4);\r\n}\r\n\r\n/**\r\n * Create random identifier with a prefix\r\n * @param prefix\r\n */\r\nexport function createIdentifier(prefix: string): string {\r\n return `${prefix}-${chr4()}${chr4()}-${chr4()}-${chr4()}-${chr4()}-${chr4()}${chr4()}${chr4()}`;\r\n}\r\n"],"version":3}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const localization = {
|
|
2
|
-
buttonLabel: "Kies datum",
|
|
3
|
-
placeholder: "dd-mm-jjjj",
|
|
4
|
-
selectedDateMessage: "Geselecteerde datum is",
|
|
5
|
-
prevMonthLabel: "Vorige maand",
|
|
6
|
-
nextMonthLabel: "Volgende maand",
|
|
7
|
-
monthSelectLabel: "Maand",
|
|
8
|
-
yearSelectLabel: "Jaar",
|
|
9
|
-
closeLabel: "Sluiten",
|
|
10
|
-
keyboardInstruction: "Gebruik de pijltjestoetsen om een dag te kiezen",
|
|
11
|
-
calendarHeading: "Kies een datum",
|
|
12
|
-
dayNames: ["Zondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag"],
|
|
13
|
-
monthNames: [
|
|
14
|
-
"Januari",
|
|
15
|
-
"Februari",
|
|
16
|
-
"Maart",
|
|
17
|
-
"April",
|
|
18
|
-
"Mei",
|
|
19
|
-
"Juni",
|
|
20
|
-
"Juli",
|
|
21
|
-
"Augustus",
|
|
22
|
-
"September",
|
|
23
|
-
"Oktober",
|
|
24
|
-
"November",
|
|
25
|
-
"December",
|
|
26
|
-
],
|
|
27
|
-
monthNamesShort: ["Jan", "Feb", "Mrt", "Apr", "Mei", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
|
|
28
|
-
};
|
|
29
|
-
export default localization;
|
|
30
|
-
//# sourceMappingURL=date-localization.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-localization.js","sourceRoot":"","sources":["../../../src/components/date-picker/date-localization.ts"],"names":[],"mappings":"AAmBA,MAAM,YAAY,GAAqB;EACrC,WAAW,EAAE,YAAY;EACzB,WAAW,EAAE,YAAY;EACzB,mBAAmB,EAAE,wBAAwB;EAC7C,cAAc,EAAE,cAAc;EAC9B,cAAc,EAAE,gBAAgB;EAChC,gBAAgB,EAAE,OAAO;EACzB,eAAe,EAAE,MAAM;EACvB,UAAU,EAAE,SAAS;EACrB,mBAAmB,EAAE,iDAAiD;EACtE,eAAe,EAAE,gBAAgB;EACjC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,CAAC;EAC1F,UAAU,EAAE;IACV,SAAS;IACT,UAAU;IACV,OAAO;IACP,OAAO;IACP,KAAK;IACL,MAAM;IACN,MAAM;IACN,UAAU;IACV,WAAW;IACX,SAAS;IACT,UAAU;IACV,UAAU;GACX;EACD,eAAe,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;CACtG,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["type MonthsNames = [string, string, string, string, string, string, string, string, string, string, string, string];\r\ntype DayNames = [string, string, string, string, string, string, string];\r\n\r\nexport type DsoLocalizedText = {\r\n buttonLabel: string;\r\n placeholder: string;\r\n selectedDateMessage: string;\r\n prevMonthLabel: string;\r\n nextMonthLabel: string;\r\n monthSelectLabel: string;\r\n yearSelectLabel: string;\r\n closeLabel: string;\r\n keyboardInstruction: string;\r\n calendarHeading: string;\r\n dayNames: DayNames;\r\n monthNames: MonthsNames;\r\n monthNamesShort: MonthsNames;\r\n};\r\n\r\nconst localization: DsoLocalizedText = {\r\n buttonLabel: \"Kies datum\",\r\n placeholder: \"dd-mm-jjjj\",\r\n selectedDateMessage: \"Geselecteerde datum is\",\r\n prevMonthLabel: \"Vorige maand\",\r\n nextMonthLabel: \"Volgende maand\",\r\n monthSelectLabel: \"Maand\",\r\n yearSelectLabel: \"Jaar\",\r\n closeLabel: \"Sluiten\",\r\n keyboardInstruction: \"Gebruik de pijltjestoetsen om een dag te kiezen\",\r\n calendarHeading: \"Kies een datum\",\r\n dayNames: [\"Zondag\", \"Maandag\", \"Dinsdag\", \"Woensdag\", \"Donderdag\", \"Vrijdag\", \"Zaterdag\"],\r\n monthNames: [\r\n \"Januari\",\r\n \"Februari\",\r\n \"Maart\",\r\n \"April\",\r\n \"Mei\",\r\n \"Juni\",\r\n \"Juli\",\r\n \"Augustus\",\r\n \"September\",\r\n \"Oktober\",\r\n \"November\",\r\n \"December\",\r\n ],\r\n monthNamesShort: [\"Jan\", \"Feb\", \"Mrt\", \"Apr\", \"Mei\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Okt\", \"Nov\", \"Dec\"],\r\n};\r\n\r\nexport default localization;\r\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { isEqual, printDutchDate } from "./date-utils";
|
|
3
|
-
export const DatePickerDay = ({ focusedDay, today, day, onDaySelect, onKeyboardNavigation, focusedDayRef, inRange, }) => {
|
|
4
|
-
const isToday = isEqual(day, today);
|
|
5
|
-
const isFocused = isEqual(day, focusedDay);
|
|
6
|
-
const notCurrentMonth = day.getMonth() !== focusedDay.getMonth();
|
|
7
|
-
const isOutsideRange = !inRange;
|
|
8
|
-
function handleClick(e) {
|
|
9
|
-
onDaySelect(e, day);
|
|
10
|
-
}
|
|
11
|
-
return (h("button", { class: {
|
|
12
|
-
"dso-date__day": true,
|
|
13
|
-
"is-today": isToday,
|
|
14
|
-
}, tabIndex: isFocused ? 0 : -1, onClick: handleClick, onKeyDown: onKeyboardNavigation, disabled: isOutsideRange || notCurrentMonth, type: "button", ref: (el) => {
|
|
15
|
-
if (isFocused && el && focusedDayRef) {
|
|
16
|
-
focusedDayRef(el);
|
|
17
|
-
}
|
|
18
|
-
} }, h("span", { "aria-hidden": "true" }, day.getDate()), h("span", { class: "dso-date__vhidden" }, printDutchDate(day))));
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=date-picker-day.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker-day.js","sourceRoot":"","sources":["../../../src/components/date-picker/date-picker-day.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAYvD,MAAM,CAAC,MAAM,aAAa,GAA4C,CAAC,EACrE,UAAU,EACV,KAAK,EACL,GAAG,EACH,WAAW,EACX,oBAAoB,EACpB,aAAa,EACb,OAAO,GACR,EAAE,EAAE;EACH,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;EACpC,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;EAC3C,MAAM,eAAe,GAAG,GAAG,CAAC,QAAQ,EAAE,KAAK,UAAU,CAAC,QAAQ,EAAE,CAAC;EACjE,MAAM,cAAc,GAAG,CAAC,OAAO,CAAC;EAEhC,SAAS,WAAW,CAAC,CAAa;IAChC,WAAW,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;EACtB,CAAC;EAED,OAAO,CACL,cACE,KAAK,EAAE;MACL,eAAe,EAAE,IAAI;MACrB,UAAU,EAAE,OAAO;KACpB,EACD,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAC5B,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,oBAAoB,EAC/B,QAAQ,EAAE,cAAc,IAAI,eAAe,EAC3C,IAAI,EAAC,QAAQ,EACb,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE;MACV,IAAI,SAAS,IAAI,EAAE,IAAI,aAAa,EAAE;QACpC,aAAa,CAAC,EAAE,CAAC,CAAC;OACnB;IACH,CAAC;IAED,2BAAkB,MAAM,IAAE,GAAG,CAAC,OAAO,EAAE,CAAQ;IAC/C,YAAM,KAAK,EAAC,mBAAmB,IAAE,cAAc,CAAC,GAAG,CAAC,CAAQ,CACrD,CACV,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { h, FunctionalComponent } from \"@stencil/core\";\r\nimport { isEqual, printDutchDate } from \"./date-utils\";\r\n\r\nexport type DatePickerDayProps = {\r\n focusedDay: Date;\r\n today: Date;\r\n day: Date;\r\n inRange: boolean;\r\n onDaySelect: (event: MouseEvent, day: Date) => void;\r\n onKeyboardNavigation: (event: KeyboardEvent) => void;\r\n focusedDayRef?: (element: HTMLButtonElement) => void;\r\n};\r\n\r\nexport const DatePickerDay: FunctionalComponent<DatePickerDayProps> = ({\r\n focusedDay,\r\n today,\r\n day,\r\n onDaySelect,\r\n onKeyboardNavigation,\r\n focusedDayRef,\r\n inRange,\r\n}) => {\r\n const isToday = isEqual(day, today);\r\n const isFocused = isEqual(day, focusedDay);\r\n const notCurrentMonth = day.getMonth() !== focusedDay.getMonth();\r\n const isOutsideRange = !inRange;\r\n\r\n function handleClick(e: MouseEvent) {\r\n onDaySelect(e, day);\r\n }\r\n\r\n return (\r\n <button\r\n class={{\r\n \"dso-date__day\": true,\r\n \"is-today\": isToday,\r\n }}\r\n tabIndex={isFocused ? 0 : -1}\r\n onClick={handleClick}\r\n onKeyDown={onKeyboardNavigation}\r\n disabled={isOutsideRange || notCurrentMonth}\r\n type=\"button\"\r\n ref={(el) => {\r\n if (isFocused && el && focusedDayRef) {\r\n focusedDayRef(el);\r\n }\r\n }}\r\n >\r\n <span aria-hidden=\"true\">{day.getDate()}</span>\r\n <span class=\"dso-date__vhidden\">{printDutchDate(day)}</span>\r\n </button>\r\n );\r\n};\r\n"]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { DatePickerDay } from "./date-picker-day";
|
|
3
|
-
import { getViewOfMonth, inRange, isEqual } from "./date-utils";
|
|
4
|
-
function chunk(array, chunkSize) {
|
|
5
|
-
const result = [];
|
|
6
|
-
for (let i = 0; i < array.length; i += chunkSize) {
|
|
7
|
-
result.push(array.slice(i, i + chunkSize));
|
|
8
|
-
}
|
|
9
|
-
return result;
|
|
10
|
-
}
|
|
11
|
-
function mapWithOffset(array, startingOffset, mapFn) {
|
|
12
|
-
return array.map((_, i) => {
|
|
13
|
-
const adjustedIndex = (i + startingOffset) % array.length;
|
|
14
|
-
const item = array[adjustedIndex];
|
|
15
|
-
if (!item) {
|
|
16
|
-
throw new Error("No item found");
|
|
17
|
-
}
|
|
18
|
-
return mapFn(item);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
export const DatePickerMonth = ({ selectedDate, focusedDate, labelledById, localization, firstDayOfWeek, min, max, onDateSelect, onKeyboardNavigation, focusedDayRef, onMouseDown, onFocusIn, }) => {
|
|
22
|
-
const today = new Date();
|
|
23
|
-
const days = getViewOfMonth(focusedDate, firstDayOfWeek);
|
|
24
|
-
return (h("table", { class: "dso-date__table", role: "grid", "aria-labelledby": labelledById, onFocusin: onFocusIn, onMouseDown: onMouseDown }, h("thead", null, h("tr", null, mapWithOffset(localization.dayNames, firstDayOfWeek, (dayName) => (h("th", { class: "dso-date__table-header", scope: "col" }, h("span", { "aria-hidden": "true" }, dayName.substr(0, 2)), h("span", { class: "dso-date__vhidden" }, dayName)))))), h("tbody", null, chunk(days, 7).map((week) => (h("tr", { class: "dso-date__row" }, week.map((day) => (h("td", { class: "dso-date__cell", role: "gridcell", "aria-selected": isEqual(day, selectedDate) ? "true" : undefined, "aria-current": isEqual(day, today) ? "date" : undefined }, h(DatePickerDay, { day: day, today: today, focusedDay: focusedDate, inRange: inRange(day, min, max), onDaySelect: onDateSelect, onKeyboardNavigation: onKeyboardNavigation, focusedDayRef: focusedDayRef }))))))))));
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=date-picker-month.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker-month.js","sourceRoot":"","sources":["../../../src/components/date-picker/date-picker-month.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAsB,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAc,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5E,SAAS,KAAK,CAAI,KAAU,EAAE,SAAiB;EAC7C,MAAM,MAAM,GAAG,EAAE,CAAC;EAElB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,SAAS,EAAE;IAChD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC;GAC5C;EAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,aAAa,CAAO,KAAU,EAAE,cAAsB,EAAE,KAAqB;EACpF,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;IACxB,MAAM,aAAa,GAAG,CAAC,CAAC,GAAG,cAAc,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC;IAC1D,MAAM,IAAI,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;IAClC,IAAI,CAAC,IAAI,EAAE;MACT,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;KAClC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;EACrB,CAAC,CAAC,CAAC;AACL,CAAC;AAiBD,MAAM,CAAC,MAAM,eAAe,GAA8C,CAAC,EACzE,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,GAAG,EACH,GAAG,EACH,YAAY,EACZ,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,SAAS,GACV,EAAE,EAAE;EACH,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC;EACzB,MAAM,IAAI,GAAG,cAAc,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;EAEzD,OAAO,CACL,aACE,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAC,MAAM,qBACM,YAAY,EAC7B,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW;IAExB;MACE,cACG,aAAa,CAAC,YAAY,CAAC,QAAQ,EAAE,cAAc,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CACjE,UAAI,KAAK,EAAC,wBAAwB,EAAC,KAAK,EAAC,KAAK;QAC5C,2BAAkB,MAAM,IAAE,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAQ;QACtD,YAAM,KAAK,EAAC,mBAAmB,IAAE,OAAO,CAAQ,CAC7C,CACN,CAAC,CACC,CACC;IACR,iBACG,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC5B,UAAI,KAAK,EAAC,eAAe,IACtB,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACjB,UACE,KAAK,EAAC,gBAAgB,EACtB,IAAI,EAAC,UAAU,mBACA,OAAO,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,kBAChD,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;MAEtD,EAAC,aAAa,IACZ,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,WAAW,EACvB,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC/B,WAAW,EAAE,YAAY,EACzB,oBAAoB,EAAE,oBAAoB,EAC1C,aAAa,EAAE,aAAa,GAC5B,CACC,CACN,CAAC,CACC,CACN,CAAC,CACI,CACF,CACT,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { h, FunctionalComponent } from \"@stencil/core\";\r\nimport { DsoLocalizedText } from \"./date-localization\";\r\nimport { DatePickerDay, DatePickerDayProps } from \"./date-picker-day\";\r\nimport { getViewOfMonth, inRange, DaysOfWeek, isEqual } from \"./date-utils\";\r\n\r\nfunction chunk<T>(array: T[], chunkSize: number): T[][] {\r\n const result = [];\r\n\r\n for (let i = 0; i < array.length; i += chunkSize) {\r\n result.push(array.slice(i, i + chunkSize));\r\n }\r\n\r\n return result;\r\n}\r\n\r\nfunction mapWithOffset<T, U>(array: T[], startingOffset: number, mapFn: (item: T) => U): U[] {\r\n return array.map((_, i) => {\r\n const adjustedIndex = (i + startingOffset) % array.length;\r\n const item = array[adjustedIndex];\r\n if (!item) {\r\n throw new Error(\"No item found\");\r\n }\r\n\r\n return mapFn(item);\r\n });\r\n}\r\n\r\ntype DatePickerMonthProps = {\r\n selectedDate: Date | undefined;\r\n focusedDate: Date;\r\n labelledById: string;\r\n localization: DsoLocalizedText;\r\n firstDayOfWeek: DaysOfWeek;\r\n min?: Date;\r\n max?: Date;\r\n onDateSelect: DatePickerDayProps[\"onDaySelect\"];\r\n onKeyboardNavigation: DatePickerDayProps[\"onKeyboardNavigation\"];\r\n focusedDayRef: (element: HTMLButtonElement) => void;\r\n onFocusIn?: (e: FocusEvent) => void;\r\n onMouseDown?: (e: MouseEvent) => void;\r\n};\r\n\r\nexport const DatePickerMonth: FunctionalComponent<DatePickerMonthProps> = ({\r\n selectedDate,\r\n focusedDate,\r\n labelledById,\r\n localization,\r\n firstDayOfWeek,\r\n min,\r\n max,\r\n onDateSelect,\r\n onKeyboardNavigation,\r\n focusedDayRef,\r\n onMouseDown,\r\n onFocusIn,\r\n}) => {\r\n const today = new Date();\r\n const days = getViewOfMonth(focusedDate, firstDayOfWeek);\r\n\r\n return (\r\n <table\r\n class=\"dso-date__table\"\r\n role=\"grid\"\r\n aria-labelledby={labelledById}\r\n onFocusin={onFocusIn}\r\n onMouseDown={onMouseDown}\r\n >\r\n <thead>\r\n <tr>\r\n {mapWithOffset(localization.dayNames, firstDayOfWeek, (dayName) => (\r\n <th class=\"dso-date__table-header\" scope=\"col\">\r\n <span aria-hidden=\"true\">{dayName.substr(0, 2)}</span>\r\n <span class=\"dso-date__vhidden\">{dayName}</span>\r\n </th>\r\n ))}\r\n </tr>\r\n </thead>\r\n <tbody>\r\n {chunk(days, 7).map((week) => (\r\n <tr class=\"dso-date__row\">\r\n {week.map((day) => (\r\n <td\r\n class=\"dso-date__cell\"\r\n role=\"gridcell\"\r\n aria-selected={isEqual(day, selectedDate) ? \"true\" : undefined}\r\n aria-current={isEqual(day, today) ? \"date\" : undefined}\r\n >\r\n <DatePickerDay\r\n day={day}\r\n today={today}\r\n focusedDay={focusedDate}\r\n inRange={inRange(day, min, max)}\r\n onDaySelect={onDateSelect}\r\n onKeyboardNavigation={onKeyboardNavigation}\r\n focusedDayRef={focusedDayRef}\r\n />\r\n </td>\r\n ))}\r\n </tr>\r\n ))}\r\n </tbody>\r\n </table>\r\n );\r\n};\r\n"]}
|