@dso-toolkit/core 36.2.0 → 38.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-attachments-counter.cjs.entry.js +1 -1
- package/dist/cjs/dso-autosuggest.cjs.entry.js +17 -7
- package/dist/cjs/dso-badge.cjs.entry.js +2 -8
- package/dist/cjs/dso-header.cjs.entry.js +1 -1
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +2 -2
- package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
- package/dist/cjs/dso-icon.cjs.entry.js +1 -1
- package/dist/cjs/dso-image-overlay.cjs.entry.js +1 -1
- package/dist/cjs/dso-info_2.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-controls.cjs.entry.js +1 -1
- package/dist/cjs/dso-ozon-content.cjs.entry.js +29 -5
- package/dist/cjs/dso-toggletip.cjs.entry.js +1 -2
- package/dist/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/cjs/dso-tooltip.cjs.entry.js +5 -1
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +20 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/attachments-counter/attachments-counter.css +2 -2
- package/dist/collection/components/autosuggest/autosuggest.css +11 -2
- package/dist/collection/components/autosuggest/autosuggest.js +55 -8
- package/dist/collection/components/autosuggest/autosuggest.template.js +4 -1
- package/dist/collection/components/badge/badge.css +5 -0
- package/dist/collection/components/badge/badge.js +2 -11
- package/dist/collection/components/header/header.css +6 -6
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.css +13 -12
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.js +4 -4
- package/dist/collection/components/highlight-box/highlight-box.css +5 -2
- package/dist/collection/components/icon/icon.css +2 -2
- package/dist/collection/components/image-overlay/image-overlay.css +8 -8
- package/dist/collection/components/info/info.css +2 -2
- package/dist/collection/components/map-controls/map-controls.css +12 -12
- package/dist/collection/components/ozon-content/nodes/al.node.js +4 -1
- package/dist/collection/components/ozon-content/nodes/inhoud.node.js +0 -1
- package/dist/collection/components/ozon-content/nodes/noot.node.js +1 -1
- package/dist/collection/components/ozon-content/nodes/opschrift.node.js +9 -0
- package/dist/collection/components/ozon-content/ozon-content-mapper.js +2 -0
- package/dist/collection/components/ozon-content/ozon-content.css +25 -5
- package/dist/collection/components/ozon-content/ozon-content.js +54 -3
- package/dist/collection/components/ozon-content/ozon-content.template.js +3 -1
- package/dist/collection/components/toggletip/toggletip.js +1 -2
- package/dist/collection/components/tooltip/tooltip.js +24 -2
- package/dist/collection/components/tooltip/tooltip.template.js +2 -2
- package/dist/collection/components/viewer-grid/viewer-grid.css +18 -18
- package/dist/collection/components/viewer-grid/viewer-grid.js +39 -1
- package/dist/collection/components/viewer-grid/viewer-grid.template.js +2 -1
- package/dist/custom-elements/index.js +86 -36
- package/dist/dso-toolkit/dso-toolkit.css +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/{p-af8a4337.entry.js → p-076400f4.entry.js} +1 -1
- package/dist/dso-toolkit/p-0e535c2b.entry.js +1 -0
- package/dist/dso-toolkit/{p-d6c47662.entry.js → p-14fc5767.entry.js} +1 -1
- package/dist/dso-toolkit/{p-7b67e324.entry.js → p-150fe323.entry.js} +1 -1
- package/dist/dso-toolkit/{p-121c3588.entry.js → p-1894c7ae.entry.js} +1 -1
- package/dist/dso-toolkit/{p-b29184e1.entry.js → p-1e92e29d.entry.js} +1 -1
- package/dist/dso-toolkit/p-2f64bded.entry.js +1 -0
- package/dist/dso-toolkit/{p-efa4a33d.entry.js → p-5a56d726.entry.js} +1 -1
- package/dist/dso-toolkit/p-6ec616ee.entry.js +1 -0
- package/dist/dso-toolkit/p-723ef97b.entry.js +1 -0
- package/dist/dso-toolkit/{p-4f904355.entry.js → p-c0b7f435.entry.js} +1 -1
- package/dist/dso-toolkit/p-c32860a3.entry.js +1 -0
- package/dist/dso-toolkit/p-d76c1151.entry.js +1 -0
- package/dist/dso-toolkit/p-e1496a15.entry.js +1 -0
- package/dist/esm/dso-attachments-counter.entry.js +1 -1
- package/dist/esm/dso-autosuggest.entry.js +17 -7
- package/dist/esm/dso-badge.entry.js +2 -8
- package/dist/esm/dso-header.entry.js +1 -1
- package/dist/esm/dso-helpcenter-panel.entry.js +2 -2
- package/dist/esm/dso-highlight-box.entry.js +1 -1
- package/dist/esm/dso-icon.entry.js +1 -1
- package/dist/esm/dso-image-overlay.entry.js +1 -1
- package/dist/esm/dso-info_2.entry.js +1 -1
- package/dist/esm/dso-map-controls.entry.js +1 -1
- package/dist/esm/dso-ozon-content.entry.js +29 -5
- package/dist/esm/dso-toggletip.entry.js +1 -2
- package/dist/esm/dso-toolkit.js +1 -1
- package/dist/esm/dso-tooltip.entry.js +5 -1
- package/dist/esm/dso-viewer-grid.entry.js +20 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/autosuggest/autosuggest.d.ts +8 -0
- package/dist/types/components/autosuggest/autosuggest.template.d.ts +1 -1
- package/dist/types/components/badge/badge.d.ts +1 -2
- package/dist/types/components/ozon-content/nodes/opschrift.node.d.ts +6 -0
- package/dist/types/components/ozon-content/ozon-content.d.ts +11 -0
- package/dist/types/components/ozon-content/ozon-content.template.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.d.ts +4 -0
- package/dist/types/components/tooltip/tooltip.template.d.ts +1 -1
- package/dist/types/components/viewer-grid/viewer-grid.d.ts +10 -0
- package/dist/types/components/viewer-grid/viewer-grid.template.d.ts +1 -1
- package/dist/types/components.d.ts +50 -3
- package/package.json +1 -1
- package/dist/dso-toolkit/p-1fd3d18d.entry.js +0 -1
- package/dist/dso-toolkit/p-2a611af3.entry.js +0 -1
- package/dist/dso-toolkit/p-72e47943.entry.js +0 -1
- package/dist/dso-toolkit/p-a58b3108.entry.js +0 -1
- package/dist/dso-toolkit/p-abd32847.entry.js +0 -1
- package/dist/dso-toolkit/p-d1f62081.entry.js +0 -1
- package/dist/dso-toolkit/p-efb7575f.entry.js +0 -1
|
@@ -21,7 +21,7 @@ export class OzonContentNootNode {
|
|
|
21
21
|
return (h(Fragment, null,
|
|
22
22
|
h("sup", null,
|
|
23
23
|
h("button", { type: "button", class: "toggle-note", id: noteControlsId, onClick: () => setState === null || setState === void 0 ? void 0 : setState(openNoteId === noteId ? undefined : noteId), onBlur: () => setState === null || setState === void 0 ? void 0 : setState(undefined), "aria-expanded": openNoteId === noteId ? 'true' : 'false' }, nootNummer)),
|
|
24
|
-
h("dso-tooltip", { active: openNoteId === noteId, for: noteControlsId, stateless: true },
|
|
24
|
+
h("dso-tooltip", { active: openNoteId === noteId, for: noteControlsId, stateless: true, descriptive: true },
|
|
25
25
|
h("span", { role: "section" }, mapNodeToJsx(Array.from(node.querySelectorAll(':scope > Al')))))));
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -4,6 +4,7 @@ import { OzonContentDocumentNode } from './nodes/document.node';
|
|
|
4
4
|
import { OzonContentExtRefNode } from './nodes/ext-ref.node';
|
|
5
5
|
import { OzonContentIllustratieNode } from './nodes/illustratie.node';
|
|
6
6
|
import { OzonContentInhoudNode } from './nodes/inhoud.node';
|
|
7
|
+
import { OzonContentOpschriftNode } from './nodes/opschrift.node';
|
|
7
8
|
import { OzonContentInlineNodes } from './nodes/inline.nodes';
|
|
8
9
|
import { OzonContentIntRefNode } from './nodes/int-ref.node';
|
|
9
10
|
import { OzonContentNootNode } from './nodes/noot.node';
|
|
@@ -17,6 +18,7 @@ export class Mapper {
|
|
|
17
18
|
new OzonContentTextNode(),
|
|
18
19
|
new OzonContentDocumentNode(),
|
|
19
20
|
new OzonContentInhoudNode(),
|
|
21
|
+
new OzonContentOpschriftNode(),
|
|
20
22
|
new OzonContentIntRefNode(),
|
|
21
23
|
new OzonContentExtRefNode(),
|
|
22
24
|
new OzonContentAlNode(),
|
|
@@ -1,7 +1,27 @@
|
|
|
1
|
-
:host {
|
|
1
|
+
:host(:not([inline])) {
|
|
2
2
|
display: block;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
+
:host([inline]) {
|
|
6
|
+
display: inline;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host([deleted]) * {
|
|
10
|
+
text-decoration: line-through !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.deleted-start,
|
|
14
|
+
.deleted-end {
|
|
15
|
+
position: absolute;
|
|
16
|
+
width: 1px;
|
|
17
|
+
height: 1px;
|
|
18
|
+
padding: 0;
|
|
19
|
+
margin: -1px;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
clip: rect(0, 0, 0, 0);
|
|
22
|
+
border: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
5
25
|
button.toggle-note {
|
|
6
26
|
display: inline-block;
|
|
7
27
|
font-size: 1em;
|
|
@@ -55,9 +75,9 @@ button.toggle-note.download::after {
|
|
|
55
75
|
background: var(--dso-icon, var(--di-download)) no-repeat;
|
|
56
76
|
background-position: center;
|
|
57
77
|
background-size: cover;
|
|
58
|
-
height:
|
|
78
|
+
height: 24px;
|
|
59
79
|
vertical-align: top;
|
|
60
|
-
width:
|
|
80
|
+
width: 24px;
|
|
61
81
|
}
|
|
62
82
|
button.toggle-note.download[disabled]::after {
|
|
63
83
|
--dso-icon: var(--di-download-grasgroen-40);
|
|
@@ -69,9 +89,9 @@ button.toggle-note.extern::after {
|
|
|
69
89
|
background: var(--dso-icon, var(--di-external-link)) no-repeat;
|
|
70
90
|
background-position: center;
|
|
71
91
|
background-size: cover;
|
|
72
|
-
height:
|
|
92
|
+
height: 24px;
|
|
73
93
|
vertical-align: top;
|
|
74
|
-
width:
|
|
94
|
+
width: 24px;
|
|
75
95
|
}
|
|
76
96
|
button.toggle-note.extern[disabled]::after {
|
|
77
97
|
--dso-icon: var(--di-external-link-grasgroen-40);
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import { Component, Event, Prop, State
|
|
1
|
+
import { h, Component, Event, Prop, State } from '@stencil/core';
|
|
2
2
|
import { Mapper } from './ozon-content-mapper';
|
|
3
3
|
export class OzonContent {
|
|
4
4
|
constructor() {
|
|
5
|
+
/**
|
|
6
|
+
* Setting this property creates dso-ozon-content as inline element instead of a block element.
|
|
7
|
+
*/
|
|
8
|
+
this.inline = false;
|
|
9
|
+
/**
|
|
10
|
+
* Marks content as deleted using visual and accessible clues.
|
|
11
|
+
*/
|
|
12
|
+
this.deleted = false;
|
|
5
13
|
this.state = {};
|
|
6
14
|
this.mapper = new Mapper();
|
|
7
15
|
}
|
|
@@ -12,7 +20,14 @@ export class OzonContent {
|
|
|
12
20
|
setState: state => this.state = state,
|
|
13
21
|
emitAnchorClick: this.anchorClick.emit
|
|
14
22
|
};
|
|
15
|
-
|
|
23
|
+
const transformed = this.mapper.transform((_a = this.content) !== null && _a !== void 0 ? _a : '', context);
|
|
24
|
+
if (this.deleted) {
|
|
25
|
+
return (h("section", null,
|
|
26
|
+
h("span", { class: "deleted-start" }, "Begin verwijderd element"),
|
|
27
|
+
transformed,
|
|
28
|
+
h("span", { class: "deleted-end" }, "Einde verwijderd element")));
|
|
29
|
+
}
|
|
30
|
+
return transformed;
|
|
16
31
|
}
|
|
17
32
|
static get is() { return "dso-ozon-content"; }
|
|
18
33
|
static get encapsulation() { return "scoped"; }
|
|
@@ -35,10 +50,46 @@ export class OzonContent {
|
|
|
35
50
|
"optional": false,
|
|
36
51
|
"docs": {
|
|
37
52
|
"tags": [],
|
|
38
|
-
"text": ""
|
|
53
|
+
"text": "The XML to be rendered."
|
|
39
54
|
},
|
|
40
55
|
"attribute": "content",
|
|
41
56
|
"reflect": false
|
|
57
|
+
},
|
|
58
|
+
"inline": {
|
|
59
|
+
"type": "boolean",
|
|
60
|
+
"mutable": false,
|
|
61
|
+
"complexType": {
|
|
62
|
+
"original": "boolean",
|
|
63
|
+
"resolved": "boolean",
|
|
64
|
+
"references": {}
|
|
65
|
+
},
|
|
66
|
+
"required": false,
|
|
67
|
+
"optional": false,
|
|
68
|
+
"docs": {
|
|
69
|
+
"tags": [],
|
|
70
|
+
"text": "Setting this property creates dso-ozon-content as inline element instead of a block element."
|
|
71
|
+
},
|
|
72
|
+
"attribute": "inline",
|
|
73
|
+
"reflect": true,
|
|
74
|
+
"defaultValue": "false"
|
|
75
|
+
},
|
|
76
|
+
"deleted": {
|
|
77
|
+
"type": "boolean",
|
|
78
|
+
"mutable": false,
|
|
79
|
+
"complexType": {
|
|
80
|
+
"original": "boolean",
|
|
81
|
+
"resolved": "boolean",
|
|
82
|
+
"references": {}
|
|
83
|
+
},
|
|
84
|
+
"required": false,
|
|
85
|
+
"optional": false,
|
|
86
|
+
"docs": {
|
|
87
|
+
"tags": [],
|
|
88
|
+
"text": "Marks content as deleted using visual and accessible clues."
|
|
89
|
+
},
|
|
90
|
+
"attribute": "deleted",
|
|
91
|
+
"reflect": true,
|
|
92
|
+
"defaultValue": "false"
|
|
42
93
|
}
|
|
43
94
|
}; }
|
|
44
95
|
static get states() { return {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { html } from 'lit-html';
|
|
2
|
-
export function ozonContentTemplate({ content, onAnchorClick }) {
|
|
2
|
+
export function ozonContentTemplate({ content, inline, deleted, onAnchorClick }) {
|
|
3
3
|
return html `
|
|
4
4
|
<dso-ozon-content
|
|
5
5
|
.content=${content}
|
|
6
|
+
?inline=${inline}
|
|
7
|
+
?deleted=${deleted}
|
|
6
8
|
@anchorClick=${onAnchorClick}
|
|
7
9
|
></dso-ozon-content>
|
|
8
10
|
`;
|
|
@@ -43,12 +43,11 @@ export class Toggletip {
|
|
|
43
43
|
throw Error("button not found");
|
|
44
44
|
}
|
|
45
45
|
this.button = button;
|
|
46
|
-
this.host.setAttribute("tabindex", "-1");
|
|
47
46
|
}
|
|
48
47
|
render() {
|
|
49
48
|
return (h(Fragment, null,
|
|
50
49
|
h("dso-info-button", { id: "toggle", onClick: this.click, label: this.label, active: this.active, secondary: this.secondary }),
|
|
51
|
-
h("dso-tooltip", { stateless: true, for: "toggle", active: this.active, position: this.position, small: this.small },
|
|
50
|
+
h("dso-tooltip", { stateless: true, descriptive: true, for: "toggle", active: this.active, position: this.position, small: this.small },
|
|
52
51
|
h("slot", null))));
|
|
53
52
|
}
|
|
54
53
|
static get is() { return "dso-toggletip"; }
|
|
@@ -6,6 +6,10 @@ import clsx from 'clsx';
|
|
|
6
6
|
const transitionDuration = 150;
|
|
7
7
|
export class Tooltip {
|
|
8
8
|
constructor() {
|
|
9
|
+
/**
|
|
10
|
+
* Defines if the tooltip is descriptive. A descriptive tooltip contains a meaningful message. Tooltips that are not descriptive are hidden from screenreaders using `aria-hidden`.
|
|
11
|
+
*/
|
|
12
|
+
this.descriptive = false;
|
|
9
13
|
/**
|
|
10
14
|
* Set position of tooltip relative to target
|
|
11
15
|
*/
|
|
@@ -123,9 +127,9 @@ export class Tooltip {
|
|
|
123
127
|
}
|
|
124
128
|
render() {
|
|
125
129
|
return (h(Host, { class: { 'hidden': this.hidden } },
|
|
126
|
-
h("div", { class: clsx('tooltip', { in: this.active })
|
|
130
|
+
h("div", { class: clsx('tooltip', { in: this.active }) },
|
|
127
131
|
!this.noArrow && h("div", { "data-popper-arrow": true, class: "tooltip-arrow" }),
|
|
128
|
-
h("div", { class: clsx('tooltip-inner', { 'dso-small': this.small }) },
|
|
132
|
+
h("div", { "aria-hidden": !this.descriptive || undefined, class: clsx('tooltip-inner', { 'dso-small': this.small }) },
|
|
129
133
|
h("slot", null)))));
|
|
130
134
|
}
|
|
131
135
|
getTarget() {
|
|
@@ -158,6 +162,24 @@ export class Tooltip {
|
|
|
158
162
|
"$": ["tooltip.css"]
|
|
159
163
|
}; }
|
|
160
164
|
static get properties() { return {
|
|
165
|
+
"descriptive": {
|
|
166
|
+
"type": "boolean",
|
|
167
|
+
"mutable": false,
|
|
168
|
+
"complexType": {
|
|
169
|
+
"original": "boolean",
|
|
170
|
+
"resolved": "boolean",
|
|
171
|
+
"references": {}
|
|
172
|
+
},
|
|
173
|
+
"required": false,
|
|
174
|
+
"optional": false,
|
|
175
|
+
"docs": {
|
|
176
|
+
"tags": [],
|
|
177
|
+
"text": "Defines if the tooltip is descriptive. A descriptive tooltip contains a meaningful message. Tooltips that are not descriptive are hidden from screenreaders using `aria-hidden`."
|
|
178
|
+
},
|
|
179
|
+
"attribute": "descriptive",
|
|
180
|
+
"reflect": true,
|
|
181
|
+
"defaultValue": "false"
|
|
182
|
+
},
|
|
161
183
|
"position": {
|
|
162
184
|
"type": "string",
|
|
163
185
|
"mutable": false,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { html } from 'lit-html';
|
|
2
2
|
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
3
|
-
export function tooltipTemplate({ active, position, label, id }) {
|
|
4
|
-
return html `<dso-tooltip position=${position} for=${ifDefined(id)} ?active=${active}>
|
|
3
|
+
export function tooltipTemplate({ active, descriptive, position, label, id }) {
|
|
4
|
+
return html `<dso-tooltip ?descriptive=${ifDefined(descriptive)} position=${position} for=${ifDefined(id)} ?active=${active}>
|
|
5
5
|
${label}
|
|
6
6
|
</dso-tooltip>`;
|
|
7
7
|
}
|
|
@@ -232,9 +232,9 @@ h6,
|
|
|
232
232
|
background: var(--dso-icon, var(--di-download)) no-repeat;
|
|
233
233
|
background-position: center;
|
|
234
234
|
background-size: cover;
|
|
235
|
-
height:
|
|
235
|
+
height: 24px;
|
|
236
236
|
vertical-align: top;
|
|
237
|
-
width:
|
|
237
|
+
width: 24px;
|
|
238
238
|
}
|
|
239
239
|
.shrink.download[disabled]::after,
|
|
240
240
|
.expand.download[disabled]::after,
|
|
@@ -254,9 +254,9 @@ h6,
|
|
|
254
254
|
background: var(--dso-icon, var(--di-external-link)) no-repeat;
|
|
255
255
|
background-position: center;
|
|
256
256
|
background-size: cover;
|
|
257
|
-
height:
|
|
257
|
+
height: 24px;
|
|
258
258
|
vertical-align: top;
|
|
259
|
-
width:
|
|
259
|
+
width: 24px;
|
|
260
260
|
}
|
|
261
261
|
.shrink.extern[disabled]::after,
|
|
262
262
|
.expand.extern[disabled]::after,
|
|
@@ -329,7 +329,7 @@ h6,
|
|
|
329
329
|
flex-grow: 0;
|
|
330
330
|
padding-right: 8px;
|
|
331
331
|
position: relative;
|
|
332
|
-
transition: flex-basis
|
|
332
|
+
transition: flex-basis 200ms ease-in, max-width 200ms ease-in, min-width 200ms ease-in;
|
|
333
333
|
z-index: 100;
|
|
334
334
|
}
|
|
335
335
|
.dso-map-panel .dso-filterblok-address {
|
|
@@ -348,7 +348,7 @@ h6,
|
|
|
348
348
|
padding: 0 4px 4px 0;
|
|
349
349
|
position: absolute;
|
|
350
350
|
top: 16px;
|
|
351
|
-
transition: left
|
|
351
|
+
transition: left 200ms ease-in;
|
|
352
352
|
width: 44px;
|
|
353
353
|
z-index: -1;
|
|
354
354
|
}
|
|
@@ -423,9 +423,9 @@ h6,
|
|
|
423
423
|
background: var(--dso-icon, var(--di-download)) no-repeat;
|
|
424
424
|
background-position: center;
|
|
425
425
|
background-size: cover;
|
|
426
|
-
height:
|
|
426
|
+
height: 24px;
|
|
427
427
|
vertical-align: top;
|
|
428
|
-
width:
|
|
428
|
+
width: 24px;
|
|
429
429
|
}
|
|
430
430
|
.sizing-buttons button.download:hover::after {
|
|
431
431
|
--dso-icon: var(--di-download-wit);
|
|
@@ -437,9 +437,9 @@ h6,
|
|
|
437
437
|
background: var(--dso-icon, var(--di-external-link)) no-repeat;
|
|
438
438
|
background-position: center;
|
|
439
439
|
background-size: cover;
|
|
440
|
-
height:
|
|
440
|
+
height: 24px;
|
|
441
441
|
vertical-align: top;
|
|
442
|
-
width:
|
|
442
|
+
width: 24px;
|
|
443
443
|
}
|
|
444
444
|
.sizing-buttons button.extern:hover::after {
|
|
445
445
|
--dso-icon: var(--di-external-link-wit);
|
|
@@ -601,9 +601,9 @@ h6,
|
|
|
601
601
|
background: var(--dso-icon, var(--di-download)) no-repeat;
|
|
602
602
|
background-position: center;
|
|
603
603
|
background-size: cover;
|
|
604
|
-
height:
|
|
604
|
+
height: 24px;
|
|
605
605
|
vertical-align: top;
|
|
606
|
-
width:
|
|
606
|
+
width: 24px;
|
|
607
607
|
}
|
|
608
608
|
.filterpanel-buttons .cancel-button.download:hover::after {
|
|
609
609
|
--dso-icon: var(--di-download-wit);
|
|
@@ -615,9 +615,9 @@ h6,
|
|
|
615
615
|
background: var(--dso-icon, var(--di-external-link)) no-repeat;
|
|
616
616
|
background-position: center;
|
|
617
617
|
background-size: cover;
|
|
618
|
-
height:
|
|
618
|
+
height: 24px;
|
|
619
619
|
vertical-align: top;
|
|
620
|
-
width:
|
|
620
|
+
width: 24px;
|
|
621
621
|
}
|
|
622
622
|
.filterpanel-buttons .cancel-button.extern:hover::after {
|
|
623
623
|
--dso-icon: var(--di-external-link-wit);
|
|
@@ -702,17 +702,17 @@ h6,
|
|
|
702
702
|
background: var(--dso-icon, var(--di-download-wit)) no-repeat;
|
|
703
703
|
background-position: center;
|
|
704
704
|
background-size: cover;
|
|
705
|
-
height:
|
|
705
|
+
height: 24px;
|
|
706
706
|
vertical-align: top;
|
|
707
|
-
width:
|
|
707
|
+
width: 24px;
|
|
708
708
|
}
|
|
709
709
|
.filterpanel-buttons .apply-button.extern::after {
|
|
710
710
|
background: var(--dso-icon, var(--di-external-link-wit)) no-repeat;
|
|
711
711
|
background-position: center;
|
|
712
712
|
background-size: cover;
|
|
713
|
-
height:
|
|
713
|
+
height: 24px;
|
|
714
714
|
vertical-align: top;
|
|
715
|
-
width:
|
|
715
|
+
width: 24px;
|
|
716
716
|
}
|
|
717
717
|
.filterpanel-buttons .apply-button dso-icon,
|
|
718
718
|
.filterpanel-buttons .apply-button svg.di {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { h, Component, Prop, State, Host, Element, Event, } from "@stencil/core";
|
|
1
|
+
import { h, Component, Prop, State, Host, Element, Event, Watch, } from "@stencil/core";
|
|
2
2
|
import { createFocusTrap } from "focus-trap";
|
|
3
3
|
import { ViewerGridFilterpanelButtons } from './viewer-grid-filterpanel-buttons';
|
|
4
|
+
const TRANSITION_TIME = 200; // Keep in sync with dso-viewer-grid.variables.scss:$dso-viewer-grid-transition-time;
|
|
4
5
|
export class ViewerGrid {
|
|
5
6
|
constructor() {
|
|
6
7
|
this.filterpanelOpen = false;
|
|
@@ -21,6 +22,20 @@ export class ViewerGrid {
|
|
|
21
22
|
this.closeOverlay.emit(event);
|
|
22
23
|
};
|
|
23
24
|
}
|
|
25
|
+
mainSizeWatcher(currentSize, previousSize) {
|
|
26
|
+
this.mainSizeChange.emit({
|
|
27
|
+
stage: 'start',
|
|
28
|
+
previousSize,
|
|
29
|
+
currentSize
|
|
30
|
+
});
|
|
31
|
+
setTimeout(() => {
|
|
32
|
+
this.mainSizeChange.emit({
|
|
33
|
+
stage: 'end',
|
|
34
|
+
previousSize,
|
|
35
|
+
currentSize
|
|
36
|
+
});
|
|
37
|
+
}, TRANSITION_TIME);
|
|
38
|
+
}
|
|
24
39
|
updateFocusTrap() {
|
|
25
40
|
var _a, _b;
|
|
26
41
|
if (this.filterpanelOpen && this.overlayOpen) {
|
|
@@ -213,6 +228,29 @@ export class ViewerGrid {
|
|
|
213
228
|
}
|
|
214
229
|
}
|
|
215
230
|
}
|
|
231
|
+
}, {
|
|
232
|
+
"method": "mainSizeChange",
|
|
233
|
+
"name": "mainSizeChange",
|
|
234
|
+
"bubbles": true,
|
|
235
|
+
"cancelable": true,
|
|
236
|
+
"composed": true,
|
|
237
|
+
"docs": {
|
|
238
|
+
"tags": [],
|
|
239
|
+
"text": ""
|
|
240
|
+
},
|
|
241
|
+
"complexType": {
|
|
242
|
+
"original": "ViewerGridChangeSizeEvent",
|
|
243
|
+
"resolved": "ViewerGridChangeSizeEvent",
|
|
244
|
+
"references": {
|
|
245
|
+
"ViewerGridChangeSizeEvent": {
|
|
246
|
+
"location": "local"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
216
250
|
}]; }
|
|
217
251
|
static get elementRef() { return "host"; }
|
|
252
|
+
static get watchers() { return [{
|
|
253
|
+
"propName": "mainSize",
|
|
254
|
+
"methodName": "mainSizeWatcher"
|
|
255
|
+
}]; }
|
|
218
256
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { html } from "lit-html";
|
|
2
|
-
export function viewerGridTemplate({ filterpanel, main, map, overlay, noOverlay, filterpanelOpen, overlayOpen, filterpanelApply, filterpanelCancel, closeOverlay, }) {
|
|
2
|
+
export function viewerGridTemplate({ filterpanel, main, map, overlay, noOverlay, filterpanelOpen, overlayOpen, mainSizeChange, filterpanelApply, filterpanelCancel, closeOverlay, }) {
|
|
3
3
|
return noOverlay
|
|
4
4
|
? html `
|
|
5
5
|
<dso-viewer-grid
|
|
@@ -14,6 +14,7 @@ export function viewerGridTemplate({ filterpanel, main, map, overlay, noOverlay,
|
|
|
14
14
|
<dso-viewer-grid
|
|
15
15
|
?filterpanel-open=${filterpanelOpen}
|
|
16
16
|
?overlay-open=${overlayOpen}
|
|
17
|
+
@mainSizeChange=${mainSizeChange}
|
|
17
18
|
@closeOverlay=${closeOverlay}
|
|
18
19
|
@filterpanelApply=${filterpanelApply}
|
|
19
20
|
@filterpanelCancel=${filterpanelCancel}
|