@dso-toolkit/core 44.0.0 → 45.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-autosuggest.cjs.entry.js +29 -10
- package/dist/cjs/dso-badge.cjs.entry.js +1 -1
- package/dist/cjs/dso-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/dso-header.cjs.entry.js +12 -6
- package/dist/cjs/dso-image-overlay.cjs.entry.js +1 -1
- package/dist/cjs/dso-info-button.cjs.entry.js +2 -2
- package/dist/cjs/dso-info_2.cjs.entry.js +5 -5
- package/dist/cjs/dso-label.cjs.entry.js +3 -3
- package/dist/cjs/dso-map-base-layers.cjs.entry.js +2 -2
- package/dist/cjs/dso-map-controls.cjs.entry.js +5 -4
- package/dist/cjs/dso-map-overlays.cjs.entry.js +2 -2
- package/dist/cjs/dso-ozon-content.cjs.entry.js +3 -3
- package/dist/cjs/dso-pagination.cjs.entry.js +2 -2
- package/dist/cjs/dso-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/dso-progress-indicator.cjs.entry.js +2 -2
- package/dist/cjs/dso-tree-view.cjs.entry.js +6 -6
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +11 -11
- package/dist/collection/components/autosuggest/autosuggest.js +33 -14
- package/dist/collection/components/autosuggest/autosuggest.template.js +4 -4
- package/dist/collection/components/badge/badge.css +8 -3
- package/dist/collection/components/banner/banner.template.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +3 -3
- package/dist/collection/components/date-picker/date-picker.template.js +2 -2
- package/dist/collection/components/header/header.css +24 -0
- package/dist/collection/components/header/header.js +12 -6
- package/dist/collection/components/header/header.template.js +2 -2
- package/dist/collection/components/image-overlay/image-overlay.css +1040 -0
- package/dist/collection/components/info/info.css +1040 -0
- package/dist/collection/components/info/info.js +5 -5
- package/dist/collection/components/info/info.template.js +2 -2
- package/dist/collection/components/info-button/info-button.js +3 -3
- package/dist/collection/components/info-button/info-button.template.js +2 -2
- package/dist/collection/components/label/label.css +1 -0
- package/dist/collection/components/label/label.js +3 -3
- package/dist/collection/components/label/label.template.js +2 -2
- package/dist/collection/components/map-base-layers/map-base-layers.js +3 -3
- package/dist/collection/components/map-controls/map-controls.css +1041 -0
- package/dist/collection/components/map-controls/map-controls.js +11 -8
- package/dist/collection/components/map-controls/map-controls.template.js +5 -5
- package/dist/collection/components/map-overlays/map-overlays.js +3 -3
- package/dist/collection/components/ozon-content/ozon-content.css +11 -0
- package/dist/collection/components/ozon-content/ozon-content.js +3 -3
- package/dist/collection/components/ozon-content/ozon-content.template.js +3 -3
- package/dist/collection/components/pagination/pagination.js +3 -3
- package/dist/collection/components/pagination/pagination.template.js +2 -2
- package/dist/collection/components/progress-bar/progress-bar.css +9 -13
- package/dist/collection/components/progress-bar/progress-bar.js +4 -3
- package/dist/collection/components/progress-indicator/progress-indicator.css +0 -4
- package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
- package/dist/collection/components/selectable/selectable.js +4 -4
- package/dist/collection/components/selectable/selectable.template.js +2 -2
- package/dist/collection/components/tree-view/tree-view.js +9 -9
- package/dist/collection/components/tree-view/tree-view.template.js +4 -4
- package/dist/collection/components/viewer-grid/viewer-grid.css +1067 -0
- package/dist/collection/components/viewer-grid/viewer-grid.js +14 -14
- package/dist/collection/components/viewer-grid/viewer-grid.template.js +5 -5
- package/dist/custom-elements/index.js +90 -64
- package/dist/dso-toolkit/dso-toolkit.css +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/p-10a6db1a.entry.js +1 -0
- package/dist/dso-toolkit/p-1450f113.entry.js +1 -0
- package/dist/dso-toolkit/p-16635f4b.entry.js +1 -0
- package/dist/dso-toolkit/p-25f8dbc6.entry.js +1 -0
- package/dist/dso-toolkit/p-361528b4.entry.js +1 -0
- package/dist/dso-toolkit/p-375a2523.entry.js +1 -0
- package/dist/dso-toolkit/p-3799366e.entry.js +1 -0
- package/dist/dso-toolkit/p-3b5f957e.entry.js +1 -0
- package/dist/dso-toolkit/p-6bc71e48.entry.js +1 -0
- package/dist/dso-toolkit/p-91b6a181.entry.js +1 -0
- package/dist/dso-toolkit/p-b95bc2c7.entry.js +1 -0
- package/dist/dso-toolkit/p-c1070a58.entry.js +1 -0
- package/dist/dso-toolkit/p-d780f9ff.entry.js +1 -0
- package/dist/dso-toolkit/p-e4bcafc4.entry.js +1 -0
- package/dist/dso-toolkit/p-e7888d49.entry.js +1 -0
- package/dist/dso-toolkit/p-eb17d45e.entry.js +1 -0
- package/dist/dso-toolkit/p-fd8a8509.entry.js +1 -0
- package/dist/esm/dso-autosuggest.entry.js +29 -10
- package/dist/esm/dso-badge.entry.js +1 -1
- package/dist/esm/dso-date-picker.entry.js +2 -2
- package/dist/esm/dso-header.entry.js +12 -6
- package/dist/esm/dso-image-overlay.entry.js +1 -1
- package/dist/esm/dso-info-button.entry.js +2 -2
- package/dist/esm/dso-info_2.entry.js +5 -5
- package/dist/esm/dso-label.entry.js +3 -3
- package/dist/esm/dso-map-base-layers.entry.js +2 -2
- package/dist/esm/dso-map-controls.entry.js +5 -4
- package/dist/esm/dso-map-overlays.entry.js +2 -2
- package/dist/esm/dso-ozon-content.entry.js +3 -3
- package/dist/esm/dso-pagination.entry.js +2 -2
- package/dist/esm/dso-progress-bar.entry.js +2 -2
- package/dist/esm/dso-progress-indicator.entry.js +2 -2
- package/dist/esm/dso-tree-view.entry.js +6 -6
- package/dist/esm/dso-viewer-grid.entry.js +11 -11
- package/dist/types/components/autosuggest/autosuggest.d.ts +6 -4
- package/dist/types/components/autosuggest/autosuggest.template.d.ts +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +1 -1
- package/dist/types/components/date-picker/date-picker.template.d.ts +1 -1
- package/dist/types/components/header/header.d.ts +4 -3
- package/dist/types/components/header/header.template.d.ts +1 -1
- package/dist/types/components/info/info.d.ts +1 -1
- package/dist/types/components/info/info.template.d.ts +1 -1
- package/dist/types/components/info-button/info-button.d.ts +1 -1
- package/dist/types/components/info-button/info-button.template.d.ts +1 -1
- package/dist/types/components/label/label.d.ts +1 -1
- package/dist/types/components/label/label.template.d.ts +1 -1
- package/dist/types/components/map-base-layers/map-base-layers.d.ts +1 -1
- package/dist/types/components/map-controls/map-controls.d.ts +3 -2
- package/dist/types/components/map-controls/map-controls.template.d.ts +1 -1
- package/dist/types/components/map-overlays/map-overlays.d.ts +1 -1
- package/dist/types/components/ozon-content/ozon-content.d.ts +1 -1
- package/dist/types/components/ozon-content/ozon-content.template.d.ts +1 -1
- package/dist/types/components/pagination/pagination.d.ts +1 -1
- package/dist/types/components/pagination/pagination.template.d.ts +1 -1
- package/dist/types/components/selectable/selectable.d.ts +1 -1
- package/dist/types/components/selectable/selectable.template.d.ts +1 -1
- package/dist/types/components/tree-view/tree-view.d.ts +3 -3
- package/dist/types/components/tree-view/tree-view.template.d.ts +1 -1
- package/dist/types/components/viewer-grid/viewer-grid.d.ts +4 -4
- package/dist/types/components/viewer-grid/viewer-grid.template.d.ts +1 -1
- package/dist/types/components.d.ts +25 -25
- package/package.json +2 -1
- package/dist/dso-toolkit/p-19b5fae2.entry.js +0 -1
- package/dist/dso-toolkit/p-202bd676.entry.js +0 -1
- package/dist/dso-toolkit/p-336bf5b9.entry.js +0 -1
- package/dist/dso-toolkit/p-363b56b1.entry.js +0 -1
- package/dist/dso-toolkit/p-3ad06d9d.entry.js +0 -1
- package/dist/dso-toolkit/p-446dba5a.entry.js +0 -1
- package/dist/dso-toolkit/p-6505be7d.entry.js +0 -1
- package/dist/dso-toolkit/p-7bfc5267.entry.js +0 -1
- package/dist/dso-toolkit/p-80b5c915.entry.js +0 -1
- package/dist/dso-toolkit/p-814d9d78.entry.js +0 -1
- package/dist/dso-toolkit/p-b86128b3.entry.js +0 -1
- package/dist/dso-toolkit/p-ba835421.entry.js +0 -1
- package/dist/dso-toolkit/p-bd1ee63c.entry.js +0 -1
- package/dist/dso-toolkit/p-ca3a1440.entry.js +0 -1
- package/dist/dso-toolkit/p-cc45ecdf.entry.js +0 -1
- package/dist/dso-toolkit/p-d84c166c.entry.js +0 -1
- package/dist/dso-toolkit/p-e98f049e.entry.js +0 -1
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
.logout .dso-tertiary:not([disabled]):hover {
|
|
106
106
|
color: #676cb0;
|
|
107
107
|
text-decoration: underline;
|
|
108
|
+
text-underline-position: under;
|
|
108
109
|
}
|
|
109
110
|
.login .dso-tertiary:not([disabled]):active,
|
|
110
111
|
.logout .dso-tertiary:not([disabled]):active {
|
|
@@ -190,6 +191,24 @@
|
|
|
190
191
|
.logout .dso-tertiary span:not(.sr-only) + svg.di {
|
|
191
192
|
margin-left: 8px;
|
|
192
193
|
}
|
|
194
|
+
.login .dso-tertiary dso-icon[icon=chevron-left] + span:not(.sr-only),
|
|
195
|
+
.login .dso-tertiary dso-icon[icon=chevron-right] + span:not(.sr-only),
|
|
196
|
+
.login .dso-tertiary svg.di.di-angle-down + span:not(.sr-only),
|
|
197
|
+
.login .dso-tertiary svg.di.di-angle-up + span:not(.sr-only),
|
|
198
|
+
.login .dso-tertiary span:not(.sr-only) + svg.di.di-angle-down,
|
|
199
|
+
.login .dso-tertiary span:not(.sr-only) + svg.di.di-angle-up,
|
|
200
|
+
.login .dso-tertiary span:not(.sr-only) + dso-icon[icon=chevron-left],
|
|
201
|
+
.login .dso-tertiary span:not(.sr-only) + dso-icon[icon=chevron-right],
|
|
202
|
+
.logout .dso-tertiary dso-icon[icon=chevron-left] + span:not(.sr-only),
|
|
203
|
+
.logout .dso-tertiary dso-icon[icon=chevron-right] + span:not(.sr-only),
|
|
204
|
+
.logout .dso-tertiary svg.di.di-angle-down + span:not(.sr-only),
|
|
205
|
+
.logout .dso-tertiary svg.di.di-angle-up + span:not(.sr-only),
|
|
206
|
+
.logout .dso-tertiary span:not(.sr-only) + svg.di.di-angle-down,
|
|
207
|
+
.logout .dso-tertiary span:not(.sr-only) + svg.di.di-angle-up,
|
|
208
|
+
.logout .dso-tertiary span:not(.sr-only) + dso-icon[icon=chevron-left],
|
|
209
|
+
.logout .dso-tertiary span:not(.sr-only) + dso-icon[icon=chevron-right] {
|
|
210
|
+
margin-left: 0;
|
|
211
|
+
}
|
|
193
212
|
.login .dso-tertiary dso-icon,
|
|
194
213
|
.login .dso-tertiary svg.di,
|
|
195
214
|
.login .dso-tertiary span,
|
|
@@ -242,6 +261,10 @@ dso-dropdown-menu > .dso-tertiary::after,
|
|
|
242
261
|
dso-dropdown-menu > .btn::after {
|
|
243
262
|
content: "";
|
|
244
263
|
display: inline-block;
|
|
264
|
+
}
|
|
265
|
+
dso-dropdown-menu > .dso-primary::after,
|
|
266
|
+
dso-dropdown-menu > .dso-secondary::after,
|
|
267
|
+
dso-dropdown-menu > .btn::after {
|
|
245
268
|
margin-left: 8px;
|
|
246
269
|
}
|
|
247
270
|
dso-dropdown-menu > .dso-primary::after,
|
|
@@ -274,6 +297,7 @@ dso-dropdown-menu > .btn-link::after {
|
|
|
274
297
|
height: 24px;
|
|
275
298
|
vertical-align: top;
|
|
276
299
|
width: 24px;
|
|
300
|
+
margin-left: 4px;
|
|
277
301
|
position: relative;
|
|
278
302
|
top: -2px;
|
|
279
303
|
}
|
|
@@ -8,7 +8,6 @@ export class Header {
|
|
|
8
8
|
this.useDropDownMenu = "auto";
|
|
9
9
|
/** Used to show the login/logout option. 'none' renders nothing. */
|
|
10
10
|
this.authStatus = 'none';
|
|
11
|
-
this.showDropDown = false;
|
|
12
11
|
this.hasSubLogo = false;
|
|
13
12
|
this.overflowMenuItems = 0;
|
|
14
13
|
this.onWindowResize = debounce(() => {
|
|
@@ -22,7 +21,7 @@ export class Header {
|
|
|
22
21
|
}
|
|
23
22
|
clickHandler(e, type, options) {
|
|
24
23
|
var _a, _b;
|
|
25
|
-
this.
|
|
24
|
+
this.dsoHeaderClick.emit({
|
|
26
25
|
originalEvent: e,
|
|
27
26
|
isModifiedEvent: e.button !== 0 || e.ctrlKey || e.shiftKey || e.altKey || e.metaKey,
|
|
28
27
|
type,
|
|
@@ -31,7 +30,7 @@ export class Header {
|
|
|
31
30
|
});
|
|
32
31
|
}
|
|
33
32
|
;
|
|
34
|
-
|
|
33
|
+
setShowDropDown(value) {
|
|
35
34
|
if (value === "auto") {
|
|
36
35
|
this.setDropDownMenu();
|
|
37
36
|
return;
|
|
@@ -59,6 +58,9 @@ export class Header {
|
|
|
59
58
|
}
|
|
60
59
|
window.setTimeout(() => this.shrinkMenuToFit(), 0);
|
|
61
60
|
}
|
|
61
|
+
componentDidLoad() {
|
|
62
|
+
this.setShowDropDown(this.useDropDownMenu);
|
|
63
|
+
}
|
|
62
64
|
setOverflowMenu() {
|
|
63
65
|
if (this.showDropDown) {
|
|
64
66
|
return;
|
|
@@ -82,6 +84,10 @@ export class Header {
|
|
|
82
84
|
window.removeEventListener("resize", this.onWindowResize);
|
|
83
85
|
}
|
|
84
86
|
render() {
|
|
87
|
+
// Prevent 'flickering' when useDropDownMenu = 'always'
|
|
88
|
+
if (this.showDropDown === undefined) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
85
91
|
return (h(Fragment, null,
|
|
86
92
|
h("div", { class: clsx("dso-header", {
|
|
87
93
|
["use-drop-down"]: this.showDropDown,
|
|
@@ -304,8 +310,8 @@ export class Header {
|
|
|
304
310
|
"overflowMenuItems": {}
|
|
305
311
|
}; }
|
|
306
312
|
static get events() { return [{
|
|
307
|
-
"method": "
|
|
308
|
-
"name": "
|
|
313
|
+
"method": "dsoHeaderClick",
|
|
314
|
+
"name": "dsoHeaderClick",
|
|
309
315
|
"bubbles": true,
|
|
310
316
|
"cancelable": true,
|
|
311
317
|
"composed": true,
|
|
@@ -331,6 +337,6 @@ export class Header {
|
|
|
331
337
|
static get elementRef() { return "host"; }
|
|
332
338
|
static get watchers() { return [{
|
|
333
339
|
"propName": "useDropDownMenu",
|
|
334
|
-
"methodName": "
|
|
340
|
+
"methodName": "setShowDropDown"
|
|
335
341
|
}]; }
|
|
336
342
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { html } from "lit-html";
|
|
2
2
|
import { ifDefined } from "lit-html/directives/if-defined.js";
|
|
3
|
-
export function headerTemplate({ logo, subLogo, mainMenu, useDropDownMenu, authStatus, loginUrl, logoutUrl, userProfileUrl, userProfileName, userHomeUrl,
|
|
3
|
+
export function headerTemplate({ logo, subLogo, mainMenu, useDropDownMenu, authStatus, loginUrl, logoutUrl, userProfileUrl, userProfileName, userHomeUrl, dsoHeaderClick, }) {
|
|
4
4
|
return html `<dso-header
|
|
5
5
|
.mainMenu=${mainMenu}
|
|
6
6
|
use-drop-down-menu=${ifDefined(useDropDownMenu)}
|
|
@@ -10,7 +10,7 @@ export function headerTemplate({ logo, subLogo, mainMenu, useDropDownMenu, authS
|
|
|
10
10
|
user-profile-url=${ifDefined(userProfileUrl)}
|
|
11
11
|
user-profile-name=${ifDefined(userProfileName)}
|
|
12
12
|
user-home-url=${ifDefined(userHomeUrl)}
|
|
13
|
-
@
|
|
13
|
+
@dsoHeaderClick=${dsoHeaderClick}
|
|
14
14
|
>
|
|
15
15
|
<div slot="logo"><img height="40" alt="Omgevingsloket" src="${logo}" /></div>
|
|
16
16
|
${subLogo ? html `<div slot="sub-logo"><img alt="Regels op de kaart" src="${subLogo}" /></div>` : undefined}
|