@emuanalytics/flow-rdf-ui 4.1.0-preview.15 → 4.1.0-preview.17
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/components/gauge/gauge.component.mjs +1 -1
- package/dist/components/map/map.component.mjs +6 -1
- package/dist/components/range/range.component.mjs +1 -1
- package/dist/components/switch/switch.styles.mjs +35 -15
- package/dist/components/tab-group/tab-group.styles.mjs +1 -0
- package/dist/custom-elements.json +790 -771
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/package.json.mjs +1 -1
- package/dist/vscode.html-custom-data.json +115 -110
- package/package.json +1 -1
- package/themes/dark.css +18 -0
- package/themes/dark.styles.js +20 -0
- package/themes/light.css +81 -55
- package/themes/light.styles.js +82 -54
|
@@ -79,7 +79,7 @@ class FlowUiGauge extends FlowRdfElement {
|
|
|
79
79
|
infoDialogTemplate() {
|
|
80
80
|
return html`
|
|
81
81
|
<flow-ui-dialog class="gauge__info-dialog">
|
|
82
|
-
<div slot="
|
|
82
|
+
<div slot="title" class="gauge__info-dialog-heading">${this.headerIconTemplate()} ${this.title}</div>
|
|
83
83
|
<slot name="info"></slot>
|
|
84
84
|
<div slot="footer">
|
|
85
85
|
<flow-ui-button autofocus slot="footer" variant="primary" @click=${this.hideInfoDialog}>OK</flow-ui-button>
|
|
@@ -29,6 +29,7 @@ class FlowUiMap extends FlowRdfElement {
|
|
|
29
29
|
this.busy = false;
|
|
30
30
|
this.fixed = false;
|
|
31
31
|
this.bearingSnap = 7;
|
|
32
|
+
this.fadeDuration = 300;
|
|
32
33
|
this._initialized = new Promise((resolve) => {
|
|
33
34
|
this._resolveInitialized = resolve;
|
|
34
35
|
});
|
|
@@ -94,7 +95,8 @@ class FlowUiMap extends FlowRdfElement {
|
|
|
94
95
|
baseStyle: this.baseStyle,
|
|
95
96
|
center: this.center,
|
|
96
97
|
zoom: this.zoom,
|
|
97
|
-
bearingSnap: this.bearingSnap
|
|
98
|
+
bearingSnap: this.bearingSnap,
|
|
99
|
+
fadeDuration: this.fadeDuration
|
|
98
100
|
});
|
|
99
101
|
await map.initialized;
|
|
100
102
|
if (this._pendingCenter) {
|
|
@@ -193,6 +195,9 @@ __decorateClass([
|
|
|
193
195
|
__decorateClass([
|
|
194
196
|
property({ type: Number, attribute: "bearing-snap" })
|
|
195
197
|
], FlowUiMap.prototype, "bearingSnap", 2);
|
|
198
|
+
__decorateClass([
|
|
199
|
+
property({ type: Number, attribute: "fade-duration" })
|
|
200
|
+
], FlowUiMap.prototype, "fadeDuration", 2);
|
|
196
201
|
__decorateClass([
|
|
197
202
|
watch(["center", "zoom", "bearing", "pitch"])
|
|
198
203
|
], FlowUiMap.prototype, "handleCenterChange", 1);
|
|
@@ -114,7 +114,7 @@ class FlowUiRange extends FlowRdfFormControl {
|
|
|
114
114
|
}
|
|
115
115
|
handleValueChange() {
|
|
116
116
|
this.formControlController.updateValidity();
|
|
117
|
-
this.input.value = this.value
|
|
117
|
+
this.input.value = this.value?.toString();
|
|
118
118
|
this.value = parseFloat(this.input.value);
|
|
119
119
|
this.syncRange();
|
|
120
120
|
}
|
|
@@ -9,7 +9,27 @@ const styles = css`
|
|
|
9
9
|
:host {
|
|
10
10
|
display: inline-block;
|
|
11
11
|
--switch-height: var(--flow-ui-toggle-size-medium);
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
--switch-color: var(--flow-ui-switch-color, var(--flow-ui-color-neutral-400));
|
|
14
|
+
--switch-border-color: var(--flow-ui-switch-border-color, var(--flow-ui-color-neutral-500));
|
|
15
|
+
|
|
16
|
+
--switch-color-hover: var(--flow-ui-switch-color-hover, var(--flow-ui-color-neutral-400));
|
|
17
|
+
--switch-border-color-hover: var(--flow-ui-switch-border-color-hover, var(--flow-ui-color-neutral-500));
|
|
18
|
+
|
|
19
|
+
--switch-color-checked: var(--flow-ui-switch-color-checked, var(--flow-ui-color-primary-500));
|
|
20
|
+
--switch-border-color-checked: var(--flow-ui-switch-border-color-checked, var(--flow-ui-color-primary-500));
|
|
21
|
+
|
|
22
|
+
--thumb-color: var(--flow-ui-switch-thumb-color, var(--flow-ui-color-neutral-800));
|
|
23
|
+
--thumb-border-color: var(--flow-ui-switch-thumb-border-color, var(--flow-ui-color-neutral-800));
|
|
24
|
+
|
|
25
|
+
--thumb-color-hover: var(--flow-ui-switch-thumb-color-hover, var(--flow-ui-color-neutral-900));
|
|
26
|
+
--thumb-border-color-hover: var(--flow-ui-switch-thumb-border-color-hover, var(--flow-ui-color-neutral-950));
|
|
27
|
+
|
|
28
|
+
--thumb-color-checked: var(--flow-ui-switch-thumb-color-checked, var(--flow-ui-color-neutral-950));
|
|
29
|
+
--thumb-border-color-checked: var(--flow-ui-switch-thumb-border-color-checked, var(--flow-ui-color-neutral-950));
|
|
30
|
+
|
|
31
|
+
--thumb-size: calc(var(--flow-ui-toggle-size-medium));
|
|
32
|
+
|
|
13
33
|
--switch-width: calc(var(--switch-height) * 1.8);
|
|
14
34
|
}
|
|
15
35
|
|
|
@@ -44,8 +64,8 @@ const styles = css`
|
|
|
44
64
|
justify-content: center;
|
|
45
65
|
width: var(--switch-width);
|
|
46
66
|
height: var(--switch-height);
|
|
47
|
-
background-color: var(--
|
|
48
|
-
border: solid var(--flow-ui-control-border-width) var(--
|
|
67
|
+
background-color: var(--switch-color);
|
|
68
|
+
border: solid var(--flow-ui-control-border-width) var(--switch-border-color);
|
|
49
69
|
border-radius: var(--switch-height);
|
|
50
70
|
transition:
|
|
51
71
|
var(--flow-ui-transition-fast) border-color,
|
|
@@ -54,11 +74,11 @@ const styles = css`
|
|
|
54
74
|
}
|
|
55
75
|
|
|
56
76
|
.switch__control .switch__thumb {
|
|
57
|
-
width: var(--
|
|
58
|
-
height: var(--
|
|
59
|
-
background-color: var(--
|
|
77
|
+
width: var(--thumb-size);
|
|
78
|
+
height: var(--thumb-size);
|
|
79
|
+
background-color: var(--thumb-color);
|
|
60
80
|
border-radius: 50%;
|
|
61
|
-
border: solid var(--flow-ui-control-border-width) var(--
|
|
81
|
+
border: solid var(--flow-ui-control-border-width) var(--thumb-border-color);
|
|
62
82
|
translate: calc((var(--switch-width) - var(--switch-height)) / -2);
|
|
63
83
|
transition:
|
|
64
84
|
var(--flow-ui-transition-fast) translate ease,
|
|
@@ -77,13 +97,13 @@ const styles = css`
|
|
|
77
97
|
|
|
78
98
|
/* Hover */
|
|
79
99
|
.form-control:not(.switch--checked):not(.switch--disabled) .switch__control:hover {
|
|
80
|
-
background-color: var(--
|
|
81
|
-
border-color: var(--
|
|
100
|
+
background-color: var(--switch-color-hover);
|
|
101
|
+
border-color: var(--switch-border-color-hover);
|
|
82
102
|
}
|
|
83
103
|
|
|
84
104
|
.form-control:not(.switch--checked):not(.switch--disabled) .switch__control:hover .switch__thumb {
|
|
85
|
-
background-color: var(--
|
|
86
|
-
border-color: var(--
|
|
105
|
+
background-color: var(--thumb-color-hover);
|
|
106
|
+
border-color: var(--thumb-border-color-hover);
|
|
87
107
|
}
|
|
88
108
|
|
|
89
109
|
/* Focus */
|
|
@@ -94,13 +114,13 @@ const styles = css`
|
|
|
94
114
|
|
|
95
115
|
/* Checked */
|
|
96
116
|
.switch--checked .switch__control {
|
|
97
|
-
background-color: var(--
|
|
98
|
-
border-color: var(--
|
|
117
|
+
background-color: var(--switch-color-checked);
|
|
118
|
+
border-color: var(--switch-border-color-checked);
|
|
99
119
|
}
|
|
100
120
|
|
|
101
121
|
.switch--checked .switch__control .switch__thumb {
|
|
102
|
-
background-color: var(--
|
|
103
|
-
border-color: var(--
|
|
122
|
+
background-color: var(--thumb-color-checked);
|
|
123
|
+
border-color: var(--thumb-border-color-checked);
|
|
104
124
|
translate: calc((var(--switch-width) - var(--switch-height)) / 2);
|
|
105
125
|
}
|
|
106
126
|
|