@dso-toolkit/core 46.0.0 → 47.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 +2 -1
- package/dist/cjs/dso-alert.cjs.entry.js +2 -2
- package/dist/cjs/dso-card-container.cjs.entry.js +20 -0
- package/dist/cjs/dso-card.cjs.entry.js +49 -0
- package/dist/cjs/dso-header.cjs.entry.js +3 -2
- package/dist/cjs/dso-icon.cjs.entry.js +70 -15
- package/dist/cjs/dso-modal.cjs.entry.js +2 -1
- package/dist/cjs/dso-ozon-content.cjs.entry.js +4 -4
- package/dist/cjs/dso-pagination.cjs.entry.js +2 -1
- package/dist/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/cjs/is-modified-event-dcab03a0.js +6 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/accordion/components/accordion-section.css +11 -10
- package/dist/collection/components/accordion/components/accordion-section.js +1 -0
- package/dist/collection/components/alert/alert.css +1 -1
- package/dist/collection/components/alert/alert.js +3 -3
- package/dist/collection/components/card/card.css +27 -0
- package/dist/collection/components/card/card.interfaces.js +1 -0
- package/dist/collection/components/card/card.js +112 -0
- package/dist/collection/components/card-container/card-container.css +12 -0
- package/dist/collection/components/card-container/card-container.interfaces.js +1 -0
- package/dist/collection/components/card-container/card-container.js +48 -0
- package/dist/collection/components/header/header.css +4 -33
- package/dist/collection/components/header/header.js +2 -1
- package/dist/collection/components/icon/icon.js +6 -0
- package/dist/collection/components/modal/modal.js +20 -1
- package/dist/collection/components/ozon-content/nodes/figuur.node.js +1 -1
- package/dist/collection/components/pagination/pagination.js +2 -1
- package/dist/collection/utils/is-modified-event.js +2 -0
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +150 -28
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/p-203fc66c.entry.js +1 -0
- package/dist/dso-toolkit/p-33df9903.js +1 -0
- package/dist/dso-toolkit/p-46acc09f.entry.js +1 -0
- package/dist/dso-toolkit/p-78ee23c5.entry.js +1 -0
- package/dist/dso-toolkit/p-8aa39e7f.entry.js +1 -0
- package/dist/dso-toolkit/p-9aa3fa9d.entry.js +1 -0
- package/dist/dso-toolkit/p-a608d3bd.entry.js +1 -0
- package/dist/dso-toolkit/p-ba253bcd.entry.js +1 -0
- package/dist/dso-toolkit/p-c846d208.entry.js +1 -0
- package/dist/dso-toolkit/{p-85d516c5.entry.js → p-c96acfeb.entry.js} +1 -1
- package/dist/esm/dso-accordion-section.entry.js +2 -1
- package/dist/esm/dso-alert.entry.js +2 -2
- package/dist/esm/dso-card-container.entry.js +16 -0
- package/dist/esm/dso-card.entry.js +45 -0
- package/dist/esm/dso-header.entry.js +3 -2
- package/dist/esm/dso-icon.entry.js +70 -15
- package/dist/esm/dso-modal.entry.js +2 -1
- package/dist/esm/dso-ozon-content.entry.js +4 -4
- package/dist/esm/dso-pagination.entry.js +2 -1
- package/dist/esm/dso-toolkit.js +1 -1
- package/dist/esm/is-modified-event-34370220.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/alert/alert.d.ts +1 -1
- package/dist/types/components/card/card.d.ts +11 -0
- package/dist/types/components/card/card.interfaces.d.ts +5 -0
- package/dist/types/components/card-container/card-container.d.ts +6 -0
- package/dist/types/components/card-container/card-container.interfaces.d.ts +1 -0
- package/dist/types/components/modal/modal.d.ts +2 -0
- package/dist/types/components.d.ts +49 -2
- package/dist/types/utils/is-modified-event.d.ts +2 -0
- package/package.json +4 -4
- package/dist/dso-toolkit/p-3bd6cf49.entry.js +0 -1
- package/dist/dso-toolkit/p-3ebba0dc.entry.js +0 -1
- package/dist/dso-toolkit/p-4b994946.entry.js +0 -1
- package/dist/dso-toolkit/p-8c8286e6.entry.js +0 -1
- package/dist/dso-toolkit/p-c4cf2359.entry.js +0 -1
- package/dist/dso-toolkit/p-dad32839.entry.js +0 -1
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { isModifiedEvent } from "../../utils/is-modified-event";
|
|
3
|
+
export class Card {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.isSelectable = false;
|
|
6
|
+
this.hasImage = false;
|
|
7
|
+
}
|
|
8
|
+
clickEventHandler(e) {
|
|
9
|
+
if (!(e.target instanceof HTMLElement)) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
let element = e.target;
|
|
13
|
+
while (element !== this.host && element !== null) {
|
|
14
|
+
if (element instanceof HTMLButtonElement ||
|
|
15
|
+
element instanceof HTMLAnchorElement ||
|
|
16
|
+
element instanceof HTMLInputElement ||
|
|
17
|
+
element === null) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (element.parentNode instanceof ShadowRoot && element.parentNode.host instanceof HTMLElement) {
|
|
21
|
+
element = element.parentNode.host;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
element = element.parentElement;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return this.dsoCardClicked.emit({ originalEvent: e, isModifiedEvent: isModifiedEvent(e) });
|
|
28
|
+
}
|
|
29
|
+
componentWillLoad() {
|
|
30
|
+
this.isSelectable = this.host.querySelector("*[slot = 'selectable']") !== null;
|
|
31
|
+
this.hasImage = this.host.querySelector("*[slot = 'image']") !== null;
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
return (h(Host, { onClick: (e) => this.clickEventHandler(e) }, h("div", { class: "dso-card-selectable", hidden: !this.isSelectable }, h("slot", { name: "selectable" })), h("div", { class: "dso-card-image", hidden: !this.hasImage }, h("slot", { name: "image" })), h("div", { class: "dso-card-heading" }, h("slot", { name: "heading" }), h("slot", { name: "interactions" })), h("div", { class: "dso-card-content" }, h("slot", { name: "content" }))));
|
|
35
|
+
}
|
|
36
|
+
static get is() { return "dso-card"; }
|
|
37
|
+
static get encapsulation() { return "shadow"; }
|
|
38
|
+
static get originalStyleUrls() {
|
|
39
|
+
return {
|
|
40
|
+
"$": ["card.scss"]
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
static get styleUrls() {
|
|
44
|
+
return {
|
|
45
|
+
"$": ["card.css"]
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
static get properties() {
|
|
49
|
+
return {
|
|
50
|
+
"isSelectable": {
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"mutable": false,
|
|
53
|
+
"complexType": {
|
|
54
|
+
"original": "boolean",
|
|
55
|
+
"resolved": "boolean",
|
|
56
|
+
"references": {}
|
|
57
|
+
},
|
|
58
|
+
"required": false,
|
|
59
|
+
"optional": false,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": ""
|
|
63
|
+
},
|
|
64
|
+
"attribute": "is-selectable",
|
|
65
|
+
"reflect": true,
|
|
66
|
+
"defaultValue": "false"
|
|
67
|
+
},
|
|
68
|
+
"hasImage": {
|
|
69
|
+
"type": "boolean",
|
|
70
|
+
"mutable": false,
|
|
71
|
+
"complexType": {
|
|
72
|
+
"original": "boolean",
|
|
73
|
+
"resolved": "boolean",
|
|
74
|
+
"references": {}
|
|
75
|
+
},
|
|
76
|
+
"required": false,
|
|
77
|
+
"optional": false,
|
|
78
|
+
"docs": {
|
|
79
|
+
"tags": [],
|
|
80
|
+
"text": ""
|
|
81
|
+
},
|
|
82
|
+
"attribute": "has-image",
|
|
83
|
+
"reflect": true,
|
|
84
|
+
"defaultValue": "false"
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
static get events() {
|
|
89
|
+
return [{
|
|
90
|
+
"method": "dsoCardClicked",
|
|
91
|
+
"name": "dsoCardClicked",
|
|
92
|
+
"bubbles": true,
|
|
93
|
+
"cancelable": true,
|
|
94
|
+
"composed": true,
|
|
95
|
+
"docs": {
|
|
96
|
+
"tags": [],
|
|
97
|
+
"text": ""
|
|
98
|
+
},
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "DsoCardClickedEvent",
|
|
101
|
+
"resolved": "DsoCardClickedEvent",
|
|
102
|
+
"references": {
|
|
103
|
+
"DsoCardClickedEvent": {
|
|
104
|
+
"location": "import",
|
|
105
|
+
"path": "./card.interfaces"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}];
|
|
110
|
+
}
|
|
111
|
+
static get elementRef() { return "host"; }
|
|
112
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { h, Fragment } from "@stencil/core";
|
|
2
|
+
export class CardContainer {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.mode = "list";
|
|
5
|
+
}
|
|
6
|
+
render() {
|
|
7
|
+
return (h(Fragment, null, this.mode === "list" && (h("ul", { class: "dso-card-list" }, h("slot", null))), this.mode === "grid" && (h("div", { class: "dso-card-grid" }, h("slot", null)))));
|
|
8
|
+
}
|
|
9
|
+
static get is() { return "dso-card-container"; }
|
|
10
|
+
static get encapsulation() { return "shadow"; }
|
|
11
|
+
static get originalStyleUrls() {
|
|
12
|
+
return {
|
|
13
|
+
"$": ["card-container.scss"]
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
static get styleUrls() {
|
|
17
|
+
return {
|
|
18
|
+
"$": ["card-container.css"]
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
static get properties() {
|
|
22
|
+
return {
|
|
23
|
+
"mode": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"mutable": false,
|
|
26
|
+
"complexType": {
|
|
27
|
+
"original": "CardContainerMode",
|
|
28
|
+
"resolved": "\"grid\" | \"list\"",
|
|
29
|
+
"references": {
|
|
30
|
+
"CardContainerMode": {
|
|
31
|
+
"location": "import",
|
|
32
|
+
"path": "./card-container.interfaces"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": false,
|
|
37
|
+
"optional": false,
|
|
38
|
+
"docs": {
|
|
39
|
+
"tags": [],
|
|
40
|
+
"text": ""
|
|
41
|
+
},
|
|
42
|
+
"attribute": "mode",
|
|
43
|
+
"reflect": false,
|
|
44
|
+
"defaultValue": "\"list\""
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -25,25 +25,10 @@
|
|
|
25
25
|
.logo-container {
|
|
26
26
|
display: flex;
|
|
27
27
|
flex-wrap: wrap;
|
|
28
|
+
gap: 0 24px;
|
|
28
29
|
padding-bottom: 16px;
|
|
29
30
|
padding-top: 16px;
|
|
30
31
|
}
|
|
31
|
-
@media screen and (max-width: 767px) {
|
|
32
|
-
.logo-container {
|
|
33
|
-
max-height: 40px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@media screen and (min-width: 768px) {
|
|
38
|
-
.sub-logo {
|
|
39
|
-
margin-left: 24px;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
@media screen and (max-width: 767px) {
|
|
43
|
-
.sub-logo {
|
|
44
|
-
flex-basis: 100%;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
32
|
|
|
48
33
|
.login .dso-tertiary,
|
|
49
34
|
.logout .dso-tertiary {
|
|
@@ -101,11 +86,6 @@ dso-dropdown-menu button {
|
|
|
101
86
|
font-family: Asap, sans-serif;
|
|
102
87
|
padding-right: 32px;
|
|
103
88
|
}
|
|
104
|
-
@media screen and (max-width: 767px) {
|
|
105
|
-
dso-dropdown-menu {
|
|
106
|
-
top: 12px;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
89
|
dso-dropdown-menu .dso-dropdown-options {
|
|
110
90
|
border: 0;
|
|
111
91
|
border-radius: 0;
|
|
@@ -200,6 +180,9 @@ dso-dropdown-menu .dso-dropdown-options ul li + li {
|
|
|
200
180
|
border-bottom: 4px solid #8b4a6a;
|
|
201
181
|
font-weight: bold;
|
|
202
182
|
}
|
|
183
|
+
.dso-nav.dso-nav-main {
|
|
184
|
+
display: flex !important;
|
|
185
|
+
}
|
|
203
186
|
.dso-nav.dso-nav-main > li > a {
|
|
204
187
|
text-decoration: none;
|
|
205
188
|
font-size: 1.25em;
|
|
@@ -235,18 +218,6 @@ dso-dropdown-menu .dso-dropdown-options ul li + li {
|
|
|
235
218
|
top: auto;
|
|
236
219
|
transform: none;
|
|
237
220
|
}
|
|
238
|
-
.dso-nav.dso-nav-sub > li {
|
|
239
|
-
display: inline-block;
|
|
240
|
-
}
|
|
241
|
-
.dso-nav.dso-nav-sub > li > a {
|
|
242
|
-
text-decoration: none;
|
|
243
|
-
font-size: 16px;
|
|
244
|
-
margin-top: 4px;
|
|
245
|
-
padding: 4px 8px 3px;
|
|
246
|
-
}
|
|
247
|
-
.dso-nav.dso-nav-sub > li > a:hover, .dso-nav.dso-nav-sub > li > a:focus, .dso-nav.dso-nav-sub > li > a:active {
|
|
248
|
-
text-decoration: underline;
|
|
249
|
-
}
|
|
250
221
|
.dso-nav .menu-user-home {
|
|
251
222
|
margin-left: auto;
|
|
252
223
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Fragment, h } from "@stencil/core";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import debounce from "debounce";
|
|
4
|
+
import { isModifiedEvent } from "../../utils/is-modified-event";
|
|
4
5
|
const minDesktopViewportWidth = 992;
|
|
5
6
|
export class Header {
|
|
6
7
|
constructor() {
|
|
@@ -27,7 +28,7 @@ export class Header {
|
|
|
27
28
|
var _a, _b;
|
|
28
29
|
this.dsoHeaderClick.emit({
|
|
29
30
|
originalEvent: e,
|
|
30
|
-
isModifiedEvent: e
|
|
31
|
+
isModifiedEvent: isModifiedEvent(e),
|
|
31
32
|
type,
|
|
32
33
|
menuItem: options === null || options === void 0 ? void 0 : options.menuItem,
|
|
33
34
|
url: (_a = options === null || options === void 0 ? void 0 : options.url) !== null && _a !== void 0 ? _a : (_b = options === null || options === void 0 ? void 0 : options.menuItem) === null || _b === void 0 ? void 0 : _b.url,
|
|
@@ -78,10 +78,13 @@ import sortAscending from "@dso-toolkit/sources/src/icons/sort-ascending.svg";
|
|
|
78
78
|
import sortDescending from "@dso-toolkit/sources/src/icons/sort-descending.svg";
|
|
79
79
|
import sort from "@dso-toolkit/sources/src/icons/sort.svg";
|
|
80
80
|
import sound from "@dso-toolkit/sources/src/icons/sound.svg";
|
|
81
|
+
import statusError from "@dso-toolkit/sources/src/icons/status-error.svg";
|
|
81
82
|
import statusDanger from "@dso-toolkit/sources/src/icons/status-danger.svg";
|
|
82
83
|
import statusInfo from "@dso-toolkit/sources/src/icons/status-info.svg";
|
|
83
84
|
import statusSuccess from "@dso-toolkit/sources/src/icons/status-success.svg";
|
|
84
85
|
import statusWarning from "@dso-toolkit/sources/src/icons/status-warning.svg";
|
|
86
|
+
import statusWarningInline from "@dso-toolkit/sources/src/icons/status-warning-inline.svg";
|
|
87
|
+
import statusWarningInlineNegative from "@dso-toolkit/sources/src/icons/status-warning-inline-negative.svg";
|
|
85
88
|
import table from "@dso-toolkit/sources/src/icons/table.svg";
|
|
86
89
|
import times from "@dso-toolkit/sources/src/icons/times.svg";
|
|
87
90
|
import trash from "@dso-toolkit/sources/src/icons/trash.svg";
|
|
@@ -172,9 +175,12 @@ const icons = [
|
|
|
172
175
|
{ alias: "sort", svg: sort },
|
|
173
176
|
{ alias: "sound", svg: sound },
|
|
174
177
|
{ alias: "status-danger", svg: statusDanger },
|
|
178
|
+
{ alias: "status-error", svg: statusError },
|
|
175
179
|
{ alias: "status-info", svg: statusInfo },
|
|
176
180
|
{ alias: "status-success", svg: statusSuccess },
|
|
177
181
|
{ alias: "status-warning", svg: statusWarning },
|
|
182
|
+
{ alias: "status-warning-inline", svg: statusWarningInline },
|
|
183
|
+
{ alias: "status-warning-inline-negative", svg: statusWarningInlineNegative },
|
|
178
184
|
{ alias: "table", svg: table },
|
|
179
185
|
{ alias: "times", svg: times },
|
|
180
186
|
{ alias: "trash", svg: trash },
|
|
@@ -7,6 +7,7 @@ export class Modal {
|
|
|
7
7
|
this.hasFooter = undefined;
|
|
8
8
|
this.modalTitle = undefined;
|
|
9
9
|
this.role = "dialog";
|
|
10
|
+
this.showCloseButton = true;
|
|
10
11
|
}
|
|
11
12
|
componentWillLoad() {
|
|
12
13
|
this.hasFooter = this.host.querySelector("*[slot = 'footer']") !== null;
|
|
@@ -21,7 +22,7 @@ export class Modal {
|
|
|
21
22
|
(_a = this.trap) === null || _a === void 0 ? void 0 : _a.deactivate();
|
|
22
23
|
}
|
|
23
24
|
render() {
|
|
24
|
-
return (h(Host, { class: "dso-modal", role: this.role, "aria-modal": "true", "aria-labelledby": this.ariaId }, h("div", { class: "dso-dialog", role: "document", ref: (element) => (this.dialogElement = element) }, this.modalTitle ? (h("div", { class: "dso-header" }, h("h2", { id: this.ariaId }, this.modalTitle), h("button", { type: "button", class: "dso-close", onClick: (e) => this.dsoClose.emit({ originalEvent: e }) }, h("dso-icon", { icon: "times" }), h("span", { class: "sr-only" }, "Sluiten")))) : (h("span", { class: "sr-only", id: this.ariaId }, "Dialoog")), h("div", { class: "dso-body" }, h("slot", { name: "body" })), this.hasFooter && (h("div", { class: "dso-footer" }, h("slot", { name: "footer" }))))));
|
|
25
|
+
return (h(Host, { class: "dso-modal", role: this.role, "aria-modal": "true", "aria-labelledby": this.ariaId }, h("div", { class: "dso-dialog", role: "document", ref: (element) => (this.dialogElement = element) }, this.modalTitle ? (h("div", { class: "dso-header" }, h("h2", { id: this.ariaId }, this.modalTitle), this.showCloseButton && (h("button", { type: "button", class: "dso-close", onClick: (e) => this.dsoClose.emit({ originalEvent: e }) }, h("dso-icon", { icon: "times" }), h("span", { class: "sr-only" }, "Sluiten"))))) : (h("span", { class: "sr-only", id: this.ariaId }, "Dialoog")), h("div", { class: "dso-body" }, h("slot", { name: "body" })), this.hasFooter && (h("div", { class: "dso-footer" }, h("slot", { name: "footer" }))))));
|
|
25
26
|
}
|
|
26
27
|
setFocusTrap() {
|
|
27
28
|
if (this.dialogElement && !this.trap) {
|
|
@@ -97,6 +98,24 @@ export class Modal {
|
|
|
97
98
|
"attribute": "role",
|
|
98
99
|
"reflect": false,
|
|
99
100
|
"defaultValue": "\"dialog\""
|
|
101
|
+
},
|
|
102
|
+
"showCloseButton": {
|
|
103
|
+
"type": "boolean",
|
|
104
|
+
"mutable": false,
|
|
105
|
+
"complexType": {
|
|
106
|
+
"original": "boolean",
|
|
107
|
+
"resolved": "boolean",
|
|
108
|
+
"references": {}
|
|
109
|
+
},
|
|
110
|
+
"required": false,
|
|
111
|
+
"optional": false,
|
|
112
|
+
"docs": {
|
|
113
|
+
"tags": [],
|
|
114
|
+
"text": "when `false` the close button in the header will not be rendered. Defaults to `true`"
|
|
115
|
+
},
|
|
116
|
+
"attribute": "show-close-button",
|
|
117
|
+
"reflect": false,
|
|
118
|
+
"defaultValue": "true"
|
|
100
119
|
}
|
|
101
120
|
};
|
|
102
121
|
}
|
|
@@ -39,7 +39,7 @@ export class OzonContentFiguurNode {
|
|
|
39
39
|
locatie: (_c = bijschriftNode.getAttribute("locatie")) !== null && _c !== void 0 ? _c : "onder",
|
|
40
40
|
}
|
|
41
41
|
: undefined;
|
|
42
|
-
return (h("div", { class: `dso-ozon-figuur ${bijschrift ? `bijschrift-${bijschrift.locatie}` : "onder"}` }, titel && h("span", { class: "figuur-titel" }, titel), (bijschrift === null || bijschrift === void 0 ? void 0 : bijschrift.locatie) === "boven" && (h(Bijschrift, { bijschrift: bijschrift, bron: bron, mapNodeToJsx: mapNodeToJsx })), h("dso-image-overlay", null, h("div", { slot: "titel" }, h("span", null, titel)), h("img", { src: (_d = illustratie.naam) !== null && _d !== void 0 ? _d : undefined, alt: (_g = (_f = (_e = illustratie.alt) !== null && _e !== void 0 ? _e : titel) !== null && _f !== void 0 ? _f : illustratie.naam) !== null && _g !== void 0 ? _g : undefined, onLoad: (event) => this.onImageLoad(event, Number(illustratie.schaal)) }), h("div", { slot: "bijschrift" }, h(Bijschrift, { bijschrift: bijschrift, bron: bron, mapNodeToJsx: mapNodeToJsx }))), ((bijschrift === null || bijschrift === void 0 ? void 0 : bijschrift.locatie) === "onder" || (!bijschrift && bron)) && (h(Bijschrift, { bijschrift: bijschrift, bron: bron, mapNodeToJsx: mapNodeToJsx }))));
|
|
42
|
+
return (h("div", { class: `dso-ozon-figuur ${bijschrift ? `bijschrift-${bijschrift.locatie}` : "onder"}` }, titel && h("span", { class: "figuur-titel" }, titel), (bijschrift === null || bijschrift === void 0 ? void 0 : bijschrift.locatie) === "boven" && (h(Bijschrift, { bijschrift: bijschrift, bron: bron, mapNodeToJsx: mapNodeToJsx })), h("dso-image-overlay", null, titel && (h("div", { slot: "titel" }, h("span", null, titel))), h("img", { src: (_d = illustratie.naam) !== null && _d !== void 0 ? _d : undefined, alt: (_g = (_f = (_e = illustratie.alt) !== null && _e !== void 0 ? _e : titel) !== null && _f !== void 0 ? _f : illustratie.naam) !== null && _g !== void 0 ? _g : undefined, onLoad: (event) => this.onImageLoad(event, Number(illustratie.schaal)) }), (bijschrift || bron) && (h("div", { slot: "bijschrift" }, h(Bijschrift, { bijschrift: bijschrift, bron: bron, mapNodeToJsx: mapNodeToJsx })))), ((bijschrift === null || bijschrift === void 0 ? void 0 : bijschrift.locatie) === "onder" || (!bijschrift && bron)) && (h(Bijschrift, { bijschrift: bijschrift, bron: bron, mapNodeToJsx: mapNodeToJsx }))));
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Fragment, } from "@stencil/core";
|
|
2
|
+
import { isModifiedEvent } from "../../utils/is-modified-event";
|
|
2
3
|
export class Pagination {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.sizePositionsMap = {
|
|
@@ -21,7 +22,7 @@ export class Pagination {
|
|
|
21
22
|
this.dsoSelectPage.emit({
|
|
22
23
|
originalEvent: e,
|
|
23
24
|
page,
|
|
24
|
-
isModifiedEvent: e
|
|
25
|
+
isModifiedEvent: isModifiedEvent(e),
|
|
25
26
|
});
|
|
26
27
|
}
|
|
27
28
|
componentDidLoad() {
|
|
@@ -44,6 +44,18 @@ export const DsoBanner: {
|
|
|
44
44
|
new (): DsoBanner;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
+
interface DsoCard extends Components.DsoCard, HTMLElement {}
|
|
48
|
+
export const DsoCard: {
|
|
49
|
+
prototype: DsoCard;
|
|
50
|
+
new (): DsoCard;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
interface DsoCardContainer extends Components.DsoCardContainer, HTMLElement {}
|
|
54
|
+
export const DsoCardContainer: {
|
|
55
|
+
prototype: DsoCardContainer;
|
|
56
|
+
new (): DsoCardContainer;
|
|
57
|
+
};
|
|
58
|
+
|
|
47
59
|
interface DsoDatePicker extends Components.DsoDatePicker, HTMLElement {}
|
|
48
60
|
export const DsoDatePicker: {
|
|
49
61
|
prototype: DsoDatePicker;
|