@dso-toolkit/core 49.0.2 → 50.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-helpcenter-panel.cjs.entry.js +1 -1
- package/dist/cjs/dso-icon.cjs.entry.js +52 -50
- package/dist/cjs/dso-list-button.cjs.entry.js +114 -0
- package/dist/cjs/dso-map-controls.cjs.entry.js +2 -2
- package/dist/cjs/dso-modal.cjs.entry.js +14 -0
- package/dist/cjs/dso-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/header/header.js +2 -2
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.css +2 -2
- package/dist/collection/components/icon/icon.js +4 -0
- package/dist/collection/components/list-button/list-button.css +563 -0
- package/dist/collection/components/list-button/list-button.interfaces.js +1 -0
- package/dist/collection/components/list-button/list-button.js +303 -0
- package/dist/collection/components/map-controls/map-controls.css +57 -57
- package/dist/collection/components/map-controls/map-controls.js +1 -1
- package/dist/collection/components/modal/modal.js +31 -0
- package/dist/collection/components/progress-bar/progress-bar.css +4 -4
- package/dist/collection/components/tree-view/tree-view.js +2 -8
- package/dist/collection/components/viewer-grid/viewer-grid.css +8 -8
- package/dist/collection/components/viewer-grid/viewer-grid.js +1 -1
- package/dist/collection/index.js +1 -0
- package/dist/components/dso-helpcenter-panel.js +1 -1
- package/dist/components/dso-list-button.d.ts +11 -0
- package/dist/components/dso-list-button.js +144 -0
- package/dist/components/dso-map-controls.js +2 -2
- package/dist/components/dso-modal.js +15 -0
- package/dist/components/dso-progress-bar.js +1 -1
- package/dist/components/dso-viewer-grid.js +2 -2
- package/dist/components/icon.js +52 -50
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/p-34a3c0b3.entry.js +1 -0
- package/dist/dso-toolkit/{p-a4086aa3.entry.js → p-3b8cbd05.entry.js} +1 -1
- package/dist/dso-toolkit/{p-c96acfeb.entry.js → p-55142124.entry.js} +1 -1
- package/dist/dso-toolkit/{p-daee3252.entry.js → p-67c4987c.entry.js} +1 -1
- package/dist/dso-toolkit/p-7d6f0e03.entry.js +1 -0
- package/dist/dso-toolkit/p-92ad1cdb.entry.js +1 -0
- package/dist/dso-toolkit/p-c2157b55.entry.js +1 -0
- package/dist/esm/dso-helpcenter-panel.entry.js +1 -1
- package/dist/esm/dso-icon.entry.js +52 -50
- package/dist/esm/dso-list-button.entry.js +110 -0
- package/dist/esm/dso-map-controls.entry.js +2 -2
- package/dist/esm/dso-modal.entry.js +14 -0
- package/dist/esm/dso-progress-bar.entry.js +1 -1
- package/dist/esm/dso-toolkit.js +1 -1
- package/dist/esm/dso-viewer-grid.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/header/header.d.ts +2 -2
- package/dist/types/components/list-button/list-button.d.ts +29 -0
- package/dist/types/components/list-button/list-button.interfaces.d.ts +10 -0
- package/dist/types/components/modal/modal.d.ts +3 -1
- package/dist/types/components/ozon-content/ozon-content-mapper.d.ts +1 -1
- package/dist/types/components/ozon-content/ozon-content-node-context.interface.d.ts +1 -1
- package/dist/types/components/ozon-content/ozon-content-node.interface.d.ts +1 -1
- package/dist/types/components/ozon-content/ozon-content.d.ts +1 -2
- package/dist/types/components/tree-view/tree-item.d.ts +1 -1
- package/dist/types/components/tree-view/tree-view.d.ts +2 -2
- package/dist/types/components.d.ts +54 -4
- package/dist/types/index.d.ts +1 -0
- package/package.json +4 -4
- package/dist/dso-toolkit/p-7f8be9bc.entry.js +0 -1
- package/dist/dso-toolkit/p-80575700.entry.js +0 -1
- package/dist/dso-toolkit/p-c9ad94a6.entry.js +0 -1
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { createFocusTrap } from "focus-trap";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
export class ListButton {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.manualInputWrapperElement = undefined;
|
|
7
|
+
this.manualCount = undefined;
|
|
8
|
+
this.label = undefined;
|
|
9
|
+
this.sublabel = undefined;
|
|
10
|
+
this.subcontent = undefined;
|
|
11
|
+
this.count = undefined;
|
|
12
|
+
this.min = undefined;
|
|
13
|
+
this.max = undefined;
|
|
14
|
+
this.checked = false;
|
|
15
|
+
this.disabled = false;
|
|
16
|
+
}
|
|
17
|
+
componentDidRender() {
|
|
18
|
+
var _a;
|
|
19
|
+
if (this.manualCount !== undefined && this.manualInputWrapperElement && !this.trap) {
|
|
20
|
+
this.trap = createFocusTrap(this.manualInputWrapperElement, {
|
|
21
|
+
escapeDeactivates: true,
|
|
22
|
+
setReturnFocus: false,
|
|
23
|
+
clickOutsideDeactivates: (e) => {
|
|
24
|
+
this.setCount(e);
|
|
25
|
+
return true;
|
|
26
|
+
},
|
|
27
|
+
onDeactivate: () => this.stopManualCountInput(),
|
|
28
|
+
onPostDeactivate: () => { var _a; return (_a = this.manualInputButtonElement) === null || _a === void 0 ? void 0 : _a.focus(); },
|
|
29
|
+
}).activate();
|
|
30
|
+
}
|
|
31
|
+
else if (this.manualCount === undefined && this.trap) {
|
|
32
|
+
(_a = this.trap) === null || _a === void 0 ? void 0 : _a.deactivate();
|
|
33
|
+
delete this.trap;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
disconnectedCallback() {
|
|
37
|
+
var _a;
|
|
38
|
+
(_a = this.trap) === null || _a === void 0 ? void 0 : _a.deactivate();
|
|
39
|
+
}
|
|
40
|
+
handleOnChange({ target }) {
|
|
41
|
+
if (target instanceof HTMLInputElement) {
|
|
42
|
+
this.manualCount = target.valueAsNumber;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
stepValue(e, direction) {
|
|
46
|
+
if (typeof this.count === "number") {
|
|
47
|
+
const newValue = direction === "increment" ? this.count + 1 : this.count - 1;
|
|
48
|
+
if (this.isNewCountValid(newValue) === false) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
this.dsoCountChange.emit({
|
|
52
|
+
originalEvent: e,
|
|
53
|
+
count: newValue,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
setCount(e) {
|
|
58
|
+
e.preventDefault();
|
|
59
|
+
if (typeof this.manualCount === "number" && this.isNewCountValid(this.manualCount)) {
|
|
60
|
+
this.dsoCountChange.emit({
|
|
61
|
+
originalEvent: e,
|
|
62
|
+
count: this.manualCount,
|
|
63
|
+
});
|
|
64
|
+
this.stopManualCountInput();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
handleSelectClick(e) {
|
|
68
|
+
e.preventDefault();
|
|
69
|
+
if (this.count !== undefined) {
|
|
70
|
+
this.dsoCountChange.emit({
|
|
71
|
+
originalEvent: e,
|
|
72
|
+
count: this.count > 0 ? 0 : 1,
|
|
73
|
+
});
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
this.dsoSelectedChange.emit({
|
|
77
|
+
originalEvent: e,
|
|
78
|
+
checked: !this.checked,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
startManualCountInput() {
|
|
82
|
+
this.manualCount = this.count;
|
|
83
|
+
}
|
|
84
|
+
stopManualCountInput() {
|
|
85
|
+
this.manualCount = undefined;
|
|
86
|
+
}
|
|
87
|
+
isNewCountValid(newValue) {
|
|
88
|
+
if (this.min !== undefined &&
|
|
89
|
+
this.max !== undefined &&
|
|
90
|
+
(newValue < Number(this.min) || newValue > Number(this.max))) {
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
render() {
|
|
96
|
+
const showButtonInputs = this.manualCount === undefined;
|
|
97
|
+
const selected = this.checked || (this.count !== undefined && this.count > 0);
|
|
98
|
+
return (h("div", { class: clsx(["dso-btn-group", { "dso-disabled": this.disabled }]) }, h("div", { class: clsx(["dso-list-button", { "dso-selected": selected, "dso-single-count": this.count === 1 }]), onClick: (e) => this.handleSelectClick(e) }, h("div", { class: "dso-selectable" }, h("input", { id: "dso-list-button-checkbox", type: "checkbox", value: "list-button", name: "naam", checked: selected, disabled: this.disabled, "aria-label": this.label }), h("label", { htmlFor: "dso-list-button-checkbox" }, this.label)), this.sublabel && h("span", { class: "dso-sublabel" }, this.sublabel), this.subcontent && h("span", { class: "dso-subcontent" }, this.subcontent)), this.count !== undefined && this.count > 0 && (h("div", { class: "dso-input-number" }, this.manualCount === undefined && this.count > 1 && (h("button", { type: "button", class: "dso-tertiary", disabled: this.count === Number(this.min) || this.disabled, onClick: (e) => this.stepValue(e, "decrement") }, h("dso-icon", { icon: "minus-circle" }), h("span", { class: "sr-only" }, "Aantal verlagen"))), h("div", { class: "dso-input-wrapper" }, this.manualCount === undefined && this.count > 1 && (h("input", { class: "dso-input-step-counter", type: "number", tabIndex: -1, "aria-label": "Aantal", value: this.count, readOnly: true })), h("form", { onSubmit: (e) => this.setCount(e) }, h("div", { ref: (element) => (this.manualInputWrapperElement = element) }, h("input", { class: clsx("form-control", { hidden: showButtonInputs }), type: "number", "aria-label": "Aantal", value: this.manualCount, min: this.min, max: this.max, onInput: (e) => this.handleOnChange(e) })), h("button", { class: clsx("dso-manual-input-button", { "sr-only": !showButtonInputs }), type: !showButtonInputs ? "submit" : "button", disabled: this.disabled, onClick: () => showButtonInputs && this.startManualCountInput() }, showButtonInputs ? (h("span", { class: "sr-only" }, "Handmatig aantal invullen")) : (h("span", { class: "sr-only" }, "Zet waarde"))))), showButtonInputs && (h("button", { type: "button", class: "dso-tertiary", disabled: this.count === Number(this.max) || this.disabled, onClick: (e) => this.stepValue(e, "increment") }, h("dso-icon", { icon: "plus-circle" }), h("span", { class: "sr-only" }, "Aantal verhogen")))))));
|
|
99
|
+
}
|
|
100
|
+
static get is() { return "dso-list-button"; }
|
|
101
|
+
static get encapsulation() { return "shadow"; }
|
|
102
|
+
static get originalStyleUrls() {
|
|
103
|
+
return {
|
|
104
|
+
"$": ["list-button.scss"]
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
static get styleUrls() {
|
|
108
|
+
return {
|
|
109
|
+
"$": ["list-button.css"]
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
static get properties() {
|
|
113
|
+
return {
|
|
114
|
+
"label": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"mutable": false,
|
|
117
|
+
"complexType": {
|
|
118
|
+
"original": "string",
|
|
119
|
+
"resolved": "string | undefined",
|
|
120
|
+
"references": {}
|
|
121
|
+
},
|
|
122
|
+
"required": false,
|
|
123
|
+
"optional": true,
|
|
124
|
+
"docs": {
|
|
125
|
+
"tags": [],
|
|
126
|
+
"text": ""
|
|
127
|
+
},
|
|
128
|
+
"attribute": "label",
|
|
129
|
+
"reflect": false
|
|
130
|
+
},
|
|
131
|
+
"sublabel": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"mutable": false,
|
|
134
|
+
"complexType": {
|
|
135
|
+
"original": "string",
|
|
136
|
+
"resolved": "string | undefined",
|
|
137
|
+
"references": {}
|
|
138
|
+
},
|
|
139
|
+
"required": false,
|
|
140
|
+
"optional": true,
|
|
141
|
+
"docs": {
|
|
142
|
+
"tags": [],
|
|
143
|
+
"text": ""
|
|
144
|
+
},
|
|
145
|
+
"attribute": "sublabel",
|
|
146
|
+
"reflect": false
|
|
147
|
+
},
|
|
148
|
+
"subcontent": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"mutable": false,
|
|
151
|
+
"complexType": {
|
|
152
|
+
"original": "string",
|
|
153
|
+
"resolved": "string | undefined",
|
|
154
|
+
"references": {}
|
|
155
|
+
},
|
|
156
|
+
"required": false,
|
|
157
|
+
"optional": true,
|
|
158
|
+
"docs": {
|
|
159
|
+
"tags": [],
|
|
160
|
+
"text": ""
|
|
161
|
+
},
|
|
162
|
+
"attribute": "subcontent",
|
|
163
|
+
"reflect": false
|
|
164
|
+
},
|
|
165
|
+
"count": {
|
|
166
|
+
"type": "number",
|
|
167
|
+
"mutable": false,
|
|
168
|
+
"complexType": {
|
|
169
|
+
"original": "number",
|
|
170
|
+
"resolved": "number | undefined",
|
|
171
|
+
"references": {}
|
|
172
|
+
},
|
|
173
|
+
"required": false,
|
|
174
|
+
"optional": true,
|
|
175
|
+
"docs": {
|
|
176
|
+
"tags": [],
|
|
177
|
+
"text": "When defined the count can show on the list-button."
|
|
178
|
+
},
|
|
179
|
+
"attribute": "count",
|
|
180
|
+
"reflect": false
|
|
181
|
+
},
|
|
182
|
+
"min": {
|
|
183
|
+
"type": "any",
|
|
184
|
+
"mutable": false,
|
|
185
|
+
"complexType": {
|
|
186
|
+
"original": "string | number",
|
|
187
|
+
"resolved": "number | string | undefined",
|
|
188
|
+
"references": {}
|
|
189
|
+
},
|
|
190
|
+
"required": false,
|
|
191
|
+
"optional": true,
|
|
192
|
+
"docs": {
|
|
193
|
+
"tags": [],
|
|
194
|
+
"text": ""
|
|
195
|
+
},
|
|
196
|
+
"attribute": "min",
|
|
197
|
+
"reflect": false
|
|
198
|
+
},
|
|
199
|
+
"max": {
|
|
200
|
+
"type": "any",
|
|
201
|
+
"mutable": false,
|
|
202
|
+
"complexType": {
|
|
203
|
+
"original": "string | number",
|
|
204
|
+
"resolved": "number | string | undefined",
|
|
205
|
+
"references": {}
|
|
206
|
+
},
|
|
207
|
+
"required": false,
|
|
208
|
+
"optional": true,
|
|
209
|
+
"docs": {
|
|
210
|
+
"tags": [],
|
|
211
|
+
"text": ""
|
|
212
|
+
},
|
|
213
|
+
"attribute": "max",
|
|
214
|
+
"reflect": false
|
|
215
|
+
},
|
|
216
|
+
"checked": {
|
|
217
|
+
"type": "boolean",
|
|
218
|
+
"mutable": false,
|
|
219
|
+
"complexType": {
|
|
220
|
+
"original": "boolean",
|
|
221
|
+
"resolved": "boolean",
|
|
222
|
+
"references": {}
|
|
223
|
+
},
|
|
224
|
+
"required": false,
|
|
225
|
+
"optional": false,
|
|
226
|
+
"docs": {
|
|
227
|
+
"tags": [],
|
|
228
|
+
"text": ""
|
|
229
|
+
},
|
|
230
|
+
"attribute": "checked",
|
|
231
|
+
"reflect": true,
|
|
232
|
+
"defaultValue": "false"
|
|
233
|
+
},
|
|
234
|
+
"disabled": {
|
|
235
|
+
"type": "boolean",
|
|
236
|
+
"mutable": false,
|
|
237
|
+
"complexType": {
|
|
238
|
+
"original": "boolean",
|
|
239
|
+
"resolved": "boolean",
|
|
240
|
+
"references": {}
|
|
241
|
+
},
|
|
242
|
+
"required": false,
|
|
243
|
+
"optional": false,
|
|
244
|
+
"docs": {
|
|
245
|
+
"tags": [],
|
|
246
|
+
"text": ""
|
|
247
|
+
},
|
|
248
|
+
"attribute": "disabled",
|
|
249
|
+
"reflect": true,
|
|
250
|
+
"defaultValue": "false"
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
static get states() {
|
|
255
|
+
return {
|
|
256
|
+
"manualInputWrapperElement": {},
|
|
257
|
+
"manualCount": {}
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
static get events() {
|
|
261
|
+
return [{
|
|
262
|
+
"method": "dsoCountChange",
|
|
263
|
+
"name": "dsoCountChange",
|
|
264
|
+
"bubbles": true,
|
|
265
|
+
"cancelable": true,
|
|
266
|
+
"composed": true,
|
|
267
|
+
"docs": {
|
|
268
|
+
"tags": [],
|
|
269
|
+
"text": ""
|
|
270
|
+
},
|
|
271
|
+
"complexType": {
|
|
272
|
+
"original": "ListButtonChangeEvent",
|
|
273
|
+
"resolved": "ListButtonChangeEvent",
|
|
274
|
+
"references": {
|
|
275
|
+
"ListButtonChangeEvent": {
|
|
276
|
+
"location": "import",
|
|
277
|
+
"path": "./list-button.interfaces"
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}, {
|
|
282
|
+
"method": "dsoSelectedChange",
|
|
283
|
+
"name": "dsoSelectedChange",
|
|
284
|
+
"bubbles": true,
|
|
285
|
+
"cancelable": true,
|
|
286
|
+
"composed": true,
|
|
287
|
+
"docs": {
|
|
288
|
+
"tags": [],
|
|
289
|
+
"text": ""
|
|
290
|
+
},
|
|
291
|
+
"complexType": {
|
|
292
|
+
"original": "ListButtonSelectedEvent",
|
|
293
|
+
"resolved": "ListButtonSelectedEvent",
|
|
294
|
+
"references": {
|
|
295
|
+
"ListButtonSelectedEvent": {
|
|
296
|
+
"location": "import",
|
|
297
|
+
"path": "./list-button.interfaces"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}];
|
|
302
|
+
}
|
|
303
|
+
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.3);
|
|
22
22
|
transform: translateX(-100%);
|
|
23
23
|
}
|
|
24
|
-
:host([open])
|
|
24
|
+
:host([open]) .toggle-visibility-button {
|
|
25
25
|
display: none;
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -45,7 +45,7 @@ button::-moz-focus-inner {
|
|
|
45
45
|
padding: 0;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
.toggle-visibility-button {
|
|
49
49
|
display: inline-block;
|
|
50
50
|
font-size: 1em;
|
|
51
51
|
font-weight: 500;
|
|
@@ -74,59 +74,59 @@ button::-moz-focus-inner {
|
|
|
74
74
|
right: calc(100% + 56px);
|
|
75
75
|
top: 16px;
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
.toggle-visibility-button:focus, .toggle-visibility-button:focus-visible {
|
|
78
78
|
outline-offset: 2px;
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
.toggle-visibility-button:active {
|
|
81
81
|
outline: 0;
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
.toggle-visibility-button:hover {
|
|
84
84
|
background-color: #39870c;
|
|
85
85
|
border-color: #39870c;
|
|
86
86
|
color: #fff;
|
|
87
87
|
}
|
|
88
|
-
|
|
88
|
+
.toggle-visibility-button:active {
|
|
89
89
|
background-color: #275937;
|
|
90
90
|
border-color: #275937;
|
|
91
91
|
color: #fff;
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
.toggle-visibility-button[disabled], .toggle-visibility-button[disabled]:hover {
|
|
94
94
|
background-color: #fff;
|
|
95
95
|
border-color: #afcf9d;
|
|
96
96
|
color: #afcf9d;
|
|
97
97
|
}
|
|
98
|
-
|
|
98
|
+
.toggle-visibility-button.btn-sm {
|
|
99
99
|
line-height: 1rem;
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
.toggle-visibility-button.btn-sm dso-icon,
|
|
102
|
+
.toggle-visibility-button.btn-sm svg.di, .toggle-visibility-button.btn-sm.extern::after, .toggle-visibility-button.btn-sm.download::after, .toggle-visibility-button.btn-sm.dso-spinner::before {
|
|
103
103
|
margin-bottom: -4px;
|
|
104
104
|
margin-top: -4px;
|
|
105
105
|
}
|
|
106
|
-
|
|
106
|
+
.toggle-visibility-button.btn-sm.dso-spinner-left::before {
|
|
107
107
|
height: 16px;
|
|
108
108
|
width: 16px;
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
.toggle-visibility-button.btn-sm.dso-spinner-right::after {
|
|
111
111
|
height: 16px;
|
|
112
112
|
width: 16px;
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
.toggle-visibility-button dso-icon,
|
|
115
|
+
.toggle-visibility-button svg.di {
|
|
116
116
|
margin-left: -8px;
|
|
117
117
|
margin-right: 8px;
|
|
118
118
|
}
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
.toggle-visibility-button span + dso-icon,
|
|
120
|
+
.toggle-visibility-button span + svg.di {
|
|
121
121
|
margin-left: 8px;
|
|
122
122
|
margin-right: -8px;
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
.toggle-visibility-button.dso-spinner-left[disabled], .toggle-visibility-button.dso-spinner-right[disabled] {
|
|
125
125
|
background-color: #fff;
|
|
126
126
|
border-color: #39870c;
|
|
127
127
|
color: #39870c;
|
|
128
128
|
}
|
|
129
|
-
|
|
129
|
+
.toggle-visibility-button.dso-spinner-left::before {
|
|
130
130
|
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
131
131
|
background-repeat: no-repeat;
|
|
132
132
|
content: "";
|
|
@@ -136,7 +136,7 @@ button::-moz-focus-inner {
|
|
|
136
136
|
width: 24px;
|
|
137
137
|
margin-right: 8px;
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
.toggle-visibility-button.dso-spinner-left:not([disabled]):hover::before {
|
|
140
140
|
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
141
141
|
background-repeat: no-repeat;
|
|
142
142
|
content: "";
|
|
@@ -146,11 +146,11 @@ button::-moz-focus-inner {
|
|
|
146
146
|
width: 24px;
|
|
147
147
|
margin-right: 8px;
|
|
148
148
|
}
|
|
149
|
-
|
|
149
|
+
.toggle-visibility-button.dso-spinner-left:not([disabled]).btn-sm:hover::before {
|
|
150
150
|
height: 16px;
|
|
151
151
|
width: 16px;
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
.toggle-visibility-button.dso-spinner-right::after {
|
|
154
154
|
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
155
155
|
background-repeat: no-repeat;
|
|
156
156
|
content: "";
|
|
@@ -160,7 +160,7 @@ button::-moz-focus-inner {
|
|
|
160
160
|
width: 24px;
|
|
161
161
|
margin-left: 8px;
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
.toggle-visibility-button.dso-spinner-right:not([disabled]):hover::after {
|
|
164
164
|
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
165
165
|
background-repeat: no-repeat;
|
|
166
166
|
content: "";
|
|
@@ -170,18 +170,18 @@ button::-moz-focus-inner {
|
|
|
170
170
|
width: 24px;
|
|
171
171
|
margin-left: 8px;
|
|
172
172
|
}
|
|
173
|
-
|
|
173
|
+
.toggle-visibility-button.dso-spinner-right:not([disabled]).btn-sm:hover::after {
|
|
174
174
|
height: 16px;
|
|
175
175
|
width: 16px;
|
|
176
176
|
}
|
|
177
|
-
|
|
177
|
+
.toggle-visibility-button:focus-visible {
|
|
178
178
|
background-color: #39870c;
|
|
179
179
|
border-color: #39870c;
|
|
180
180
|
color: #fff;
|
|
181
181
|
outline: none;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
|
|
184
|
+
.zoom-buttons {
|
|
185
185
|
border-radius: 4px;
|
|
186
186
|
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.5);
|
|
187
187
|
display: flex;
|
|
@@ -191,7 +191,7 @@ button::-moz-focus-inner {
|
|
|
191
191
|
right: calc(100% + 16px);
|
|
192
192
|
top: 16px;
|
|
193
193
|
}
|
|
194
|
-
|
|
194
|
+
.zoom-buttons button {
|
|
195
195
|
display: inline-block;
|
|
196
196
|
font-size: 1em;
|
|
197
197
|
font-weight: 500;
|
|
@@ -220,44 +220,44 @@ button::-moz-focus-inner {
|
|
|
220
220
|
min-width: auto;
|
|
221
221
|
width: 40px;
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
.zoom-buttons button:focus, .zoom-buttons button:focus-visible {
|
|
224
224
|
outline-offset: 2px;
|
|
225
225
|
}
|
|
226
|
-
|
|
226
|
+
.zoom-buttons button:active {
|
|
227
227
|
outline: 0;
|
|
228
228
|
}
|
|
229
|
-
|
|
229
|
+
.zoom-buttons button:hover {
|
|
230
230
|
background-color: #39870c;
|
|
231
231
|
border-color: #39870c;
|
|
232
232
|
color: #fff;
|
|
233
233
|
}
|
|
234
|
-
|
|
234
|
+
.zoom-buttons button:active {
|
|
235
235
|
background-color: #275937;
|
|
236
236
|
border-color: #275937;
|
|
237
237
|
color: #fff;
|
|
238
238
|
}
|
|
239
|
-
|
|
239
|
+
.zoom-buttons button[disabled], .zoom-buttons button[disabled]:hover {
|
|
240
240
|
background-color: #fff;
|
|
241
241
|
border-color: #afcf9d;
|
|
242
242
|
color: #afcf9d;
|
|
243
243
|
}
|
|
244
|
-
|
|
244
|
+
.zoom-buttons button.btn-sm {
|
|
245
245
|
line-height: 1rem;
|
|
246
246
|
}
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
.zoom-buttons button.btn-sm dso-icon,
|
|
248
|
+
.zoom-buttons button.btn-sm svg.di, .zoom-buttons button.btn-sm.extern::after, .zoom-buttons button.btn-sm.download::after, .zoom-buttons button.btn-sm.dso-spinner::before {
|
|
249
249
|
margin-bottom: -4px;
|
|
250
250
|
margin-top: -4px;
|
|
251
251
|
}
|
|
252
|
-
|
|
252
|
+
.zoom-buttons button.btn-sm.dso-spinner-left::before {
|
|
253
253
|
height: 16px;
|
|
254
254
|
width: 16px;
|
|
255
255
|
}
|
|
256
|
-
|
|
256
|
+
.zoom-buttons button.btn-sm.dso-spinner-right::after {
|
|
257
257
|
height: 16px;
|
|
258
258
|
width: 16px;
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
.zoom-buttons button > span {
|
|
261
261
|
position: absolute;
|
|
262
262
|
width: 1px;
|
|
263
263
|
height: 1px;
|
|
@@ -267,12 +267,12 @@ button::-moz-focus-inner {
|
|
|
267
267
|
clip: rect(0, 0, 0, 0);
|
|
268
268
|
border: 0;
|
|
269
269
|
}
|
|
270
|
-
|
|
270
|
+
.zoom-buttons button.dso-spinner-left[disabled], .zoom-buttons button.dso-spinner-right[disabled] {
|
|
271
271
|
background-color: #fff;
|
|
272
272
|
border-color: #39870c;
|
|
273
273
|
color: #39870c;
|
|
274
274
|
}
|
|
275
|
-
|
|
275
|
+
.zoom-buttons button.dso-spinner-left::before {
|
|
276
276
|
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
277
277
|
background-repeat: no-repeat;
|
|
278
278
|
content: "";
|
|
@@ -282,7 +282,7 @@ button::-moz-focus-inner {
|
|
|
282
282
|
width: 24px;
|
|
283
283
|
margin-right: 8px;
|
|
284
284
|
}
|
|
285
|
-
|
|
285
|
+
.zoom-buttons button.dso-spinner-left:not([disabled]):hover::before {
|
|
286
286
|
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
287
287
|
background-repeat: no-repeat;
|
|
288
288
|
content: "";
|
|
@@ -292,11 +292,11 @@ button::-moz-focus-inner {
|
|
|
292
292
|
width: 24px;
|
|
293
293
|
margin-right: 8px;
|
|
294
294
|
}
|
|
295
|
-
|
|
295
|
+
.zoom-buttons button.dso-spinner-left:not([disabled]).btn-sm:hover::before {
|
|
296
296
|
height: 16px;
|
|
297
297
|
width: 16px;
|
|
298
298
|
}
|
|
299
|
-
|
|
299
|
+
.zoom-buttons button.dso-spinner-right::after {
|
|
300
300
|
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
301
301
|
background-repeat: no-repeat;
|
|
302
302
|
content: "";
|
|
@@ -306,7 +306,7 @@ button::-moz-focus-inner {
|
|
|
306
306
|
width: 24px;
|
|
307
307
|
margin-left: 8px;
|
|
308
308
|
}
|
|
309
|
-
|
|
309
|
+
.zoom-buttons button.dso-spinner-right:not([disabled]):hover::after {
|
|
310
310
|
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
311
311
|
background-repeat: no-repeat;
|
|
312
312
|
content: "";
|
|
@@ -316,24 +316,24 @@ button::-moz-focus-inner {
|
|
|
316
316
|
width: 24px;
|
|
317
317
|
margin-left: 8px;
|
|
318
318
|
}
|
|
319
|
-
|
|
319
|
+
.zoom-buttons button.dso-spinner-right:not([disabled]).btn-sm:hover::after {
|
|
320
320
|
height: 16px;
|
|
321
321
|
width: 16px;
|
|
322
322
|
}
|
|
323
|
-
|
|
323
|
+
.zoom-buttons button:focus-visible {
|
|
324
324
|
background-color: #39870c;
|
|
325
325
|
border-color: #39870c;
|
|
326
326
|
color: #fff;
|
|
327
327
|
outline: none;
|
|
328
328
|
}
|
|
329
|
-
|
|
329
|
+
.zoom-buttons button + button {
|
|
330
330
|
border-radius: 0;
|
|
331
331
|
border-bottom-left-radius: 4px;
|
|
332
332
|
border-bottom-right-radius: 4px;
|
|
333
333
|
border-top: 1px solid #ccc;
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
|
|
336
|
+
.close-button {
|
|
337
337
|
display: inline-block;
|
|
338
338
|
font-size: 1em;
|
|
339
339
|
font-weight: 500;
|
|
@@ -353,32 +353,32 @@ button::-moz-focus-inner {
|
|
|
353
353
|
right: 16px;
|
|
354
354
|
top: 16px;
|
|
355
355
|
}
|
|
356
|
-
|
|
356
|
+
.close-button:focus, .close-button:focus-visible {
|
|
357
357
|
outline-offset: 2px;
|
|
358
358
|
}
|
|
359
|
-
|
|
359
|
+
.close-button:active {
|
|
360
360
|
outline: 0;
|
|
361
361
|
}
|
|
362
|
-
|
|
362
|
+
.close-button[disabled] {
|
|
363
363
|
color: #afcf9d;
|
|
364
364
|
}
|
|
365
|
-
|
|
365
|
+
.close-button[disabled].dso-spinner-left, .close-button[disabled].dso-spinner-right {
|
|
366
366
|
color: #39870c;
|
|
367
367
|
}
|
|
368
|
-
|
|
368
|
+
.close-button:not([disabled]):hover {
|
|
369
369
|
color: #676cb0;
|
|
370
370
|
text-decoration: underline;
|
|
371
371
|
text-underline-position: under;
|
|
372
372
|
}
|
|
373
|
-
|
|
373
|
+
.close-button:not([disabled]):active {
|
|
374
374
|
color: #676cb0;
|
|
375
375
|
}
|
|
376
|
-
|
|
376
|
+
.close-button.btn-align {
|
|
377
377
|
line-height: calc(1.5em - 1px);
|
|
378
378
|
padding: 11px 0;
|
|
379
379
|
position: relative;
|
|
380
380
|
}
|
|
381
|
-
|
|
381
|
+
.close-button.dso-spinner-left::before {
|
|
382
382
|
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
383
383
|
background-repeat: no-repeat;
|
|
384
384
|
content: "";
|
|
@@ -388,7 +388,7 @@ button::-moz-focus-inner {
|
|
|
388
388
|
width: 24px;
|
|
389
389
|
margin-right: 8px;
|
|
390
390
|
}
|
|
391
|
-
|
|
391
|
+
.close-button.dso-spinner-right::after {
|
|
392
392
|
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
393
393
|
background-repeat: no-repeat;
|
|
394
394
|
content: "";
|
|
@@ -398,7 +398,7 @@ button::-moz-focus-inner {
|
|
|
398
398
|
width: 24px;
|
|
399
399
|
margin-left: 8px;
|
|
400
400
|
}
|
|
401
|
-
|
|
401
|
+
.close-button > span {
|
|
402
402
|
position: absolute;
|
|
403
403
|
width: 1px;
|
|
404
404
|
height: 1px;
|
|
@@ -40,7 +40,7 @@ export class MapControls {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h(Host, null, h("button", { type: "button", id: "toggle-visibility-button", onClick: () => (this.open = !this.open), ref: (element) => (__classPrivateFieldSet(this, _MapControls_toggleButtonElement, element, "f")) }, h("dso-icon", { icon: "layers" }), h("span", null, "Kaartlagen")), h("div", {
|
|
43
|
+
return (h(Host, null, h("button", { type: "button", id: "toggle-visibility-button", class: "toggle-visibility-button", onClick: () => (this.open = !this.open), ref: (element) => (__classPrivateFieldSet(this, _MapControls_toggleButtonElement, element, "f")) }, h("dso-icon", { icon: "layers" }), h("span", null, "Kaartlagen")), h("div", { class: "zoom-buttons" }, h("button", { type: "button", onClick: (e) => this.dsoZoomIn.emit(e), disabled: this.disableZoom === "in" || this.disableZoom === "both" }, h("span", null, "Zoom in"), h("dso-icon", { icon: "plus" })), h("button", { type: "button", onClick: (e) => this.dsoZoomOut.emit(e), disabled: this.disableZoom === "out" || this.disableZoom === "both" }, h("span", null, "Zoom uit"), h("dso-icon", { icon: "minus" }))), h("section", { hidden: this.hideContent }, h("header", null, h("h2", null, this.panelTitle), h("button", { type: "button", class: "close-button", onClick: () => (this.open = false), ref: (element) => (__classPrivateFieldSet(this, _MapControls_closeButtonElement, element, "f")) }, h("span", null, "Verberg paneel ", this.panelTitle), h("dso-icon", { icon: "times" }))), h("div", { class: "content" }, h("slot", null)))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "dso-map-controls"; }
|
|
46
46
|
static get encapsulation() { return "shadow"; }
|