@emuanalytics/flow-rdf-ui 4.3.0 → 4.4.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/components/alert/alert.component.mjs +10 -10
- package/dist/components/animation/animation.component.mjs +2 -2
- package/dist/components/autocomplete/autocomplete.component.mjs +18 -16
- package/dist/components/avatar/avatar.component.mjs +7 -12
- package/dist/components/breadcrumb-item/breadcrumb-item.component.mjs +14 -14
- package/dist/components/button/button.component.mjs +3 -3
- package/dist/components/button/button.styles.mjs +5 -5
- package/dist/components/calendar/calendar.component.mjs +23 -6
- package/dist/components/card/card.component.mjs +4 -4
- package/dist/components/carousel/carousel.component.mjs +42 -42
- package/dist/components/carousel-item/carousel-item.component.mjs +1 -0
- package/dist/components/chart/chart.component.mjs +4 -4
- package/dist/components/chart/chartjs-plugins/plugin.flow-ui-colors.mjs +1 -1
- package/dist/components/checkbox/checkbox.component.mjs +18 -18
- package/dist/components/color-mapper/color-mapper.component.mjs +6 -6
- package/dist/components/color-picker/color-picker.component.mjs +71 -71
- package/dist/components/color-picker/color-picker.styles.mjs +4 -2
- package/dist/components/color-stop/color-stop.component.mjs +2 -2
- package/dist/components/date-time-picker/date-time-picker.component.mjs +29 -29
- package/dist/components/diagram-base-node/diagram-base-node.component.mjs +5 -5
- package/dist/components/diagram-minimap/diagram-minimap.component.mjs +6 -6
- package/dist/components/diagram-zoom-controls/diagram-zoom-controls.component.mjs +10 -10
- package/dist/components/diagram-zoom-controls/diagram-zoom-controls.styles.mjs +3 -1
- package/dist/components/dialog/dialog.component.mjs +1 -1
- package/dist/components/drawer/drawer.component.mjs +19 -19
- package/dist/components/gauge/gauge.component.mjs +4 -2
- package/dist/components/icon/library.mjs +7 -4
- package/dist/components/input/input.component.mjs +16 -11
- package/dist/components/list-item/list-item.component.mjs +17 -17
- package/dist/components/map/map.component.mjs +90 -11
- package/dist/components/mutation-observer/mutation-observer.component.mjs +4 -6
- package/dist/components/panel-header/panel-header.component.mjs +11 -8
- package/dist/components/popup/popup.component.mjs +11 -11
- package/dist/components/progress-bar/progress-bar.component.mjs +2 -2
- package/dist/components/query-builder/converters/javascript-filter-converter.mjs +0 -4
- package/dist/components/query-builder/converters/map-layer-filter-converter.mjs +0 -4
- package/dist/components/query-builder/query-builder.component.mjs +15 -15
- package/dist/components/radio/radio.component.mjs +7 -7
- package/dist/components/radio-group/radio-group.component.mjs +1 -1
- package/dist/components/resize-observer/resize-observer.component.mjs +1 -1
- package/dist/components/scroll-view/scroll-view.styles.mjs +20 -7
- package/dist/components/select/select.component.mjs +16 -16
- package/dist/components/split-view-toggle-button/split-view-toggle-button.styles.mjs +3 -3
- package/dist/components/stepper/stepper.component.mjs +2 -2
- package/dist/components/stepper-panel/stepper-panel.component.mjs +3 -3
- package/dist/components/switch/switch.component.mjs +6 -8
- package/dist/components/tab/tab.component.mjs +17 -17
- package/dist/components/tab-group/tab-group.component.mjs +42 -38
- package/dist/components/tag/tag.component.mjs +11 -11
- package/dist/components/textarea/textarea.component.mjs +10 -4
- package/dist/components/tree/tree.component.mjs +4 -2
- package/dist/custom-elements.json +1516 -1423
- package/dist/diagram/runtime/default-edge-templates.mjs +9 -9
- package/dist/index.d.mts +62 -8
- package/dist/index.d.ts +62 -8
- package/dist/internal/form.mjs +1 -1
- package/dist/internal/on-off-converter.mjs +21 -0
- package/dist/package.json.mjs +1 -1
- package/dist/vscode.html-custom-data.json +182 -180
- package/package.json +26 -39
- package/themes/dark.css +5 -5
- package/themes/dark.styles.js +5 -5
- package/themes/light.css +5 -5
- package/themes/light.styles.js +5 -5
|
@@ -23,6 +23,9 @@ let mapIdCounter = 0;
|
|
|
23
23
|
class FlowUiMap extends FlowRdfElement {
|
|
24
24
|
constructor() {
|
|
25
25
|
super();
|
|
26
|
+
// Builds that `destroy()` abandoned, until they have destroyed their map
|
|
27
|
+
this._abandonedBuilds = /* @__PURE__ */ new Set();
|
|
28
|
+
this._initializedResolved = false;
|
|
26
29
|
this._mapLoading = false;
|
|
27
30
|
this.baseStyle = "fjord";
|
|
28
31
|
this.center = [-0.1, 51.5];
|
|
@@ -31,9 +34,8 @@ class FlowUiMap extends FlowRdfElement {
|
|
|
31
34
|
this.fixed = false;
|
|
32
35
|
this.bearingSnap = 7;
|
|
33
36
|
this.fadeDuration = 300;
|
|
34
|
-
this.
|
|
35
|
-
|
|
36
|
-
});
|
|
37
|
+
this.keepAlive = false;
|
|
38
|
+
this.resetInitialized();
|
|
37
39
|
}
|
|
38
40
|
/**
|
|
39
41
|
* The underlying core FlowCoreMap instance. Note that this is
|
|
@@ -76,24 +78,94 @@ class FlowUiMap extends FlowRdfElement {
|
|
|
76
78
|
super.connectedCallback();
|
|
77
79
|
this.busy = boolean(this.busy, true);
|
|
78
80
|
this.fixed = boolean(this.fixed, true);
|
|
81
|
+
this.keepAlive = boolean(this.keepAlive, true);
|
|
82
|
+
if (this._map || this._build) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
const build = {};
|
|
86
|
+
this._build = build;
|
|
79
87
|
await this.updateComplete;
|
|
80
|
-
this.
|
|
81
|
-
|
|
82
|
-
|
|
88
|
+
if (this._build !== build) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const done = this.initializeMap(build);
|
|
92
|
+
build.done = done;
|
|
93
|
+
const map = await done;
|
|
94
|
+
if (!map) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
this._build = void 0;
|
|
98
|
+
this._map = map;
|
|
99
|
+
this._initializedResolved = true;
|
|
100
|
+
this._resolveInitialized(map);
|
|
101
|
+
this.emit("flow-ui-map-load", { detail: { map } });
|
|
83
102
|
}
|
|
84
103
|
disconnectedCallback() {
|
|
85
104
|
super.disconnectedCallback();
|
|
86
|
-
if (this.
|
|
87
|
-
this.
|
|
88
|
-
|
|
105
|
+
if (!boolean(this.keepAlive, true)) {
|
|
106
|
+
this.destroy();
|
|
107
|
+
} else {
|
|
108
|
+
this._map?.maplibreMap.getCanvasContainer().dispatchEvent(new MouseEvent("mouseout"));
|
|
89
109
|
}
|
|
90
110
|
}
|
|
91
|
-
|
|
111
|
+
/**
|
|
112
|
+
* Destroys the map, which frees its WebGL context and stops it following application state, and removes its
|
|
113
|
+
* container from the element. `map` is then `undefined` and `initialized` waits for a new map. A map that is still
|
|
114
|
+
* being built is destroyed as soon as it exists, with no `flow-ui-map-load` event.
|
|
115
|
+
*
|
|
116
|
+
* The element builds a new map when it is next connected to the document, not before. Call this method when the
|
|
117
|
+
* application discards an element with `keep-alive`; without it, the element calls it when it is removed from the
|
|
118
|
+
* document. Calling it on an element with no map does nothing.
|
|
119
|
+
*/
|
|
120
|
+
destroy() {
|
|
121
|
+
const abandoned = this._build;
|
|
122
|
+
this._build = void 0;
|
|
123
|
+
if (abandoned?.done) {
|
|
124
|
+
this._abandonedBuilds.add(abandoned);
|
|
125
|
+
const forget = () => this._abandonedBuilds.delete(abandoned);
|
|
126
|
+
abandoned.done.then(forget, forget);
|
|
127
|
+
}
|
|
128
|
+
this._mapContainer?.remove();
|
|
129
|
+
this._mapContainer = void 0;
|
|
130
|
+
const map = this._map;
|
|
131
|
+
if (!map) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
this._map = void 0;
|
|
135
|
+
map.destroy();
|
|
136
|
+
this._mapLoading = false;
|
|
137
|
+
if (this._initializedResolved) {
|
|
138
|
+
this.resetInitialized();
|
|
139
|
+
}
|
|
140
|
+
this._pendingCenter = void 0;
|
|
141
|
+
this.handleCenterChange();
|
|
142
|
+
}
|
|
143
|
+
resetInitialized() {
|
|
144
|
+
this._initializedResolved = false;
|
|
145
|
+
this._initialized = new Promise((resolve) => {
|
|
146
|
+
this._resolveInitialized = resolve;
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Builds a map in a new container in the map slot. Resolves to `undefined`, with the map destroyed, if `destroy()`
|
|
151
|
+
* abandoned the build while the map was being created.
|
|
152
|
+
*/
|
|
153
|
+
async initializeMap(build) {
|
|
92
154
|
const mapContainer = document.createElement("div");
|
|
93
155
|
mapContainer.slot = "map";
|
|
94
156
|
this.appendChild(mapContainer);
|
|
157
|
+
this._mapContainer = mapContainer;
|
|
158
|
+
const id = this.mapId ?? `flow-map-${mapIdCounter++}`;
|
|
159
|
+
build.id = id;
|
|
160
|
+
const sameId = [...this._abandonedBuilds].filter((abandoned) => abandoned.id === id);
|
|
161
|
+
if (sameId.length) {
|
|
162
|
+
await Promise.allSettled(sameId.map((abandoned) => abandoned.done));
|
|
163
|
+
if (this._build !== build) {
|
|
164
|
+
return void 0;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
95
167
|
const map = new FlowCoreMap({
|
|
96
|
-
id
|
|
168
|
+
id,
|
|
97
169
|
container: mapContainer,
|
|
98
170
|
baseStyle: this.baseStyle,
|
|
99
171
|
center: this.center,
|
|
@@ -102,6 +174,10 @@ class FlowUiMap extends FlowRdfElement {
|
|
|
102
174
|
fadeDuration: this.fadeDuration
|
|
103
175
|
});
|
|
104
176
|
await map.initialized;
|
|
177
|
+
if (this._build !== build) {
|
|
178
|
+
map.destroy();
|
|
179
|
+
return void 0;
|
|
180
|
+
}
|
|
105
181
|
if (this._pendingCenter) {
|
|
106
182
|
map.setCenter(this._pendingCenter);
|
|
107
183
|
this._pendingCenter = void 0;
|
|
@@ -207,6 +283,9 @@ __decorateClass([
|
|
|
207
283
|
__decorateClass([
|
|
208
284
|
property({ type: Number, attribute: "fade-duration" })
|
|
209
285
|
], FlowUiMap.prototype, "fadeDuration", 2);
|
|
286
|
+
__decorateClass([
|
|
287
|
+
property({ type: Boolean, attribute: "keep-alive" })
|
|
288
|
+
], FlowUiMap.prototype, "keepAlive", 2);
|
|
210
289
|
__decorateClass([
|
|
211
290
|
watch(["center", "zoom", "bearing", "pitch"])
|
|
212
291
|
], FlowUiMap.prototype, "handleCenterChange", 1);
|
|
@@ -74,7 +74,9 @@ class FlowUiMutationObserver extends FlowRdfElement {
|
|
|
74
74
|
}
|
|
75
75
|
handleChange() {
|
|
76
76
|
this.stopObserver();
|
|
77
|
-
this.
|
|
77
|
+
if (!this.disabled) {
|
|
78
|
+
this.startObserver();
|
|
79
|
+
}
|
|
78
80
|
}
|
|
79
81
|
render() {
|
|
80
82
|
return html`
|
|
@@ -106,11 +108,7 @@ __decorateClass([
|
|
|
106
108
|
watch("disabled")
|
|
107
109
|
], FlowUiMutationObserver.prototype, "handleDisabledChange", 1);
|
|
108
110
|
__decorateClass([
|
|
109
|
-
watch("attr", { waitUntilFirstUpdate: true })
|
|
110
|
-
watch("attr-old-value", { waitUntilFirstUpdate: true }),
|
|
111
|
-
watch("char-data", { waitUntilFirstUpdate: true }),
|
|
112
|
-
watch("char-data-old-value", { waitUntilFirstUpdate: true }),
|
|
113
|
-
watch("childList", { waitUntilFirstUpdate: true })
|
|
111
|
+
watch(["attr", "attrOldValue", "charData", "charDataOldValue", "childList"], { waitUntilFirstUpdate: true })
|
|
114
112
|
], FlowUiMutationObserver.prototype, "handleChange", 1);
|
|
115
113
|
|
|
116
114
|
export { FlowUiMutationObserver as default };
|
|
@@ -51,6 +51,7 @@ class FlowUiPanelHeader extends FlowRdfElement {
|
|
|
51
51
|
if (this.fixed) {
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
|
+
const wasClosed = this.closed;
|
|
54
55
|
if (event.key === "Enter" || event.key === " ") {
|
|
55
56
|
event.preventDefault();
|
|
56
57
|
this.closed = !this.closed;
|
|
@@ -63,7 +64,9 @@ class FlowUiPanelHeader extends FlowRdfElement {
|
|
|
63
64
|
event.preventDefault();
|
|
64
65
|
this.closed = false;
|
|
65
66
|
}
|
|
66
|
-
|
|
67
|
+
if (this.closed !== wasClosed) {
|
|
68
|
+
this.emit(this.closed ? "flow-ui-collapse" : "flow-ui-expand");
|
|
69
|
+
}
|
|
67
70
|
}
|
|
68
71
|
handleExpandCollapse() {
|
|
69
72
|
this.closed = this.toggleButton.closed;
|
|
@@ -109,13 +112,13 @@ class FlowUiPanelHeader extends FlowRdfElement {
|
|
|
109
112
|
@keydown=${this.handleHeaderKeyDown}
|
|
110
113
|
></slot>
|
|
111
114
|
${this.fixed ? nothing : html`
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
<flow-ui-split-view-toggle-button
|
|
116
|
+
class="panel-header__toggle-button"
|
|
117
|
+
position="top"
|
|
118
|
+
?closed=${this.closed}
|
|
119
|
+
@click=${this.handleToggleClick}
|
|
120
|
+
></flow-ui-split-view-toggle-button>
|
|
121
|
+
`}
|
|
119
122
|
</div>
|
|
120
123
|
`;
|
|
121
124
|
}
|
|
@@ -46,14 +46,14 @@ class FlowUiPopup extends FlowRdfElement {
|
|
|
46
46
|
const anchorRect = this.anchorEl.getBoundingClientRect();
|
|
47
47
|
const popupRect = this.popup.getBoundingClientRect();
|
|
48
48
|
const isVertical = this.placement.includes("top") || this.placement.includes("bottom");
|
|
49
|
-
let topLeftX
|
|
50
|
-
let topLeftY
|
|
51
|
-
let topRightX
|
|
52
|
-
let topRightY
|
|
53
|
-
let bottomLeftX
|
|
54
|
-
let bottomLeftY
|
|
55
|
-
let bottomRightX
|
|
56
|
-
let bottomRightY
|
|
49
|
+
let topLeftX;
|
|
50
|
+
let topLeftY;
|
|
51
|
+
let topRightX;
|
|
52
|
+
let topRightY;
|
|
53
|
+
let bottomLeftX;
|
|
54
|
+
let bottomLeftY;
|
|
55
|
+
let bottomRightX;
|
|
56
|
+
let bottomRightY;
|
|
57
57
|
if (isVertical) {
|
|
58
58
|
if (anchorRect.top < popupRect.top) {
|
|
59
59
|
topLeftX = anchorRect.left;
|
|
@@ -274,7 +274,7 @@ class FlowUiPopup extends FlowRdfElement {
|
|
|
274
274
|
let top = "";
|
|
275
275
|
let right = "";
|
|
276
276
|
let bottom = "";
|
|
277
|
-
let left
|
|
277
|
+
let left;
|
|
278
278
|
if (this.arrowPlacement === "start") {
|
|
279
279
|
const value = typeof arrowX === "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
|
|
280
280
|
top = typeof arrowY === "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
|
|
@@ -327,8 +327,8 @@ class FlowUiPopup extends FlowRdfElement {
|
|
|
327
327
|
>
|
|
328
328
|
<slot></slot>
|
|
329
329
|
${this.arrow ? html`
|
|
330
|
-
|
|
331
|
-
|
|
330
|
+
<div part="arrow" class="popup__arrow" role="presentation"></div>
|
|
331
|
+
` : ""}
|
|
332
332
|
</div>
|
|
333
333
|
`;
|
|
334
334
|
}
|
|
@@ -47,8 +47,8 @@ class FlowUiProgressBar extends FlowRdfElement {
|
|
|
47
47
|
</div>
|
|
48
48
|
<div class="progress-bar__label-container">
|
|
49
49
|
${!this.indeterminate ? html`
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
<slot part="label" class="progress-bar__label"></slot>
|
|
51
|
+
` : ""}
|
|
52
52
|
</div>
|
|
53
53
|
`;
|
|
54
54
|
}
|
|
@@ -41,10 +41,6 @@ function rulesetToJavascript(rule, config, options) {
|
|
|
41
41
|
console.warn(`JavascriptFilterConverter: Skipping nil field '${rule.field}' in rule (non-nullable)`, rule);
|
|
42
42
|
return void 0;
|
|
43
43
|
}
|
|
44
|
-
let fieldName = rule.field;
|
|
45
|
-
if (options?.renameFields && fieldName in options.renameFields) {
|
|
46
|
-
fieldName = options.renameFields[fieldName];
|
|
47
|
-
}
|
|
48
44
|
return predicateFromRule(rule, config, options);
|
|
49
45
|
} else if (isRuleSet(rule)) {
|
|
50
46
|
const condition = rule.condition === "and" ? " && " : " || ";
|
|
@@ -20,10 +20,6 @@ function mapLayerFilterFromRuleSet(rule, config, options) {
|
|
|
20
20
|
console.warn(`mapLayerFilterConverter: Skipping nil field '${rule.field}' in rule (non-nullable)`, rule);
|
|
21
21
|
return void 0;
|
|
22
22
|
}
|
|
23
|
-
let fieldName = rule.field;
|
|
24
|
-
if (options?.renameFields && fieldName in options.renameFields) {
|
|
25
|
-
fieldName = options.renameFields[fieldName];
|
|
26
|
-
}
|
|
27
23
|
return predicateFromRule(rule, config, options);
|
|
28
24
|
} else if (isRuleSet(rule)) {
|
|
29
25
|
const condition = rule.condition === "and" ? " && " : " || ";
|
|
@@ -280,10 +280,10 @@ const _FlowUiQueryBuilder = class _FlowUiQueryBuilder extends FlowRdfElement {
|
|
|
280
280
|
<div class="spacer"></div>
|
|
281
281
|
|
|
282
282
|
${this.hasSlotController.test("header-accessory") ? html`
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
283
|
+
<div part="header-accessories" class="query-builder__header-accessories">
|
|
284
|
+
<slot name="header-accessory"></slot>
|
|
285
|
+
</div>
|
|
286
|
+
` : nothing}
|
|
287
287
|
|
|
288
288
|
<flow-ui-dropdown placement="bottom-end" class="query-builder__menu-dropdown">
|
|
289
289
|
<flow-ui-icon-button
|
|
@@ -294,20 +294,20 @@ const _FlowUiQueryBuilder = class _FlowUiQueryBuilder extends FlowRdfElement {
|
|
|
294
294
|
></flow-ui-icon-button>
|
|
295
295
|
<flow-ui-menu @flow-ui-select=${(ev) => this.handleToolbarMenuSelect(ev)}>
|
|
296
296
|
${this.hasSlotController.test("menu") ? html`
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
297
|
+
<slot name="menu"></slot>
|
|
298
|
+
<flow-ui-divider></flow-ui-divider>
|
|
299
|
+
` : nothing}
|
|
300
300
|
<flow-ui-menu-item value="add-group">Add Filter Group</flow-ui-menu-item>
|
|
301
301
|
${this.subQueryBuilder ? html`
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
302
|
+
<flow-ui-divider></flow-ui-divider>
|
|
303
|
+
<flow-ui-menu-item value="delete-group" class="menu-item--danger">
|
|
304
|
+
Delete Filter Group
|
|
305
|
+
</flow-ui-menu-item>
|
|
306
|
+
` : nothing}
|
|
307
307
|
${this.subQueryBuilder ? nothing : html`
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
308
|
+
<flow-ui-divider></flow-ui-divider>
|
|
309
|
+
<flow-ui-menu-item value="clear-filters" class="menu-item--danger">Clear Filters</flow-ui-menu-item>
|
|
310
|
+
`}
|
|
311
311
|
</flow-ui-menu>
|
|
312
312
|
</flow-ui-dropdown>
|
|
313
313
|
</div>
|
|
@@ -99,13 +99,13 @@ class FlowUiRadio extends FlowRdfElement {
|
|
|
99
99
|
>
|
|
100
100
|
<span part="${`control${this.checked ? " control--checked" : ""}`}" class="radio__control">
|
|
101
101
|
${this.checked ? html`
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
<flow-ui-icon
|
|
103
|
+
part="checked-icon"
|
|
104
|
+
class="radio__checked-icon"
|
|
105
|
+
library="system"
|
|
106
|
+
name="radio"
|
|
107
|
+
></flow-ui-icon>
|
|
108
|
+
` : ""}
|
|
109
109
|
</span>
|
|
110
110
|
|
|
111
111
|
<slot part="label" class="radio__label"></slot>
|
|
@@ -136,7 +136,7 @@ class FlowUiRadioGroup extends FlowRdfFormControl {
|
|
|
136
136
|
radio.reverse = this.reverse;
|
|
137
137
|
radio.size = this.size;
|
|
138
138
|
});
|
|
139
|
-
if (!radios.some((radio) => radio.checked)) {
|
|
139
|
+
if (radios.length > 0 && !radios.some((radio) => radio.checked)) {
|
|
140
140
|
radios[0].tabIndex = 0;
|
|
141
141
|
}
|
|
142
142
|
} else {
|
|
@@ -34,23 +34,36 @@ const styles = css`
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.os-scrollbar.os-theme-flow {
|
|
37
|
-
transition:
|
|
38
|
-
|
|
37
|
+
transition:
|
|
38
|
+
opacity var(--transition-speed),
|
|
39
|
+
visibility var(--transition-speed),
|
|
40
|
+
top var(--transition-speed),
|
|
41
|
+
right var(--transition-speed),
|
|
42
|
+
bottom var(--transition-speed),
|
|
43
|
+
left var(--transition-speed);
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
.os-scrollbar.os-theme-flow .os-scrollbar-track {
|
|
42
|
-
transition:
|
|
47
|
+
transition:
|
|
48
|
+
opacity var(--transition-speed),
|
|
49
|
+
background-color var(--transition-speed),
|
|
43
50
|
border-color var(--transition-speed);
|
|
44
51
|
}
|
|
45
52
|
|
|
46
53
|
.os-scrollbar-horizontal.os-theme-flow .os-scrollbar-handle {
|
|
47
|
-
transition:
|
|
48
|
-
|
|
54
|
+
transition:
|
|
55
|
+
opacity var(--transition-speed),
|
|
56
|
+
background-color var(--transition-speed),
|
|
57
|
+
border-color var(--transition-speed),
|
|
58
|
+
height var(--transition-speed);
|
|
49
59
|
}
|
|
50
60
|
|
|
51
61
|
.os-scrollbar-vertical.os-theme-flow .os-scrollbar-handle {
|
|
52
|
-
transition:
|
|
53
|
-
|
|
62
|
+
transition:
|
|
63
|
+
opacity var(--transition-speed),
|
|
64
|
+
background-color var(--transition-speed),
|
|
65
|
+
border-colorvar(--transition-speed),
|
|
66
|
+
width var(--transition-speed);
|
|
54
67
|
}
|
|
55
68
|
`;
|
|
56
69
|
|
|
@@ -626,8 +626,8 @@ class FlowUiSelect extends FlowRdfFormControl {
|
|
|
626
626
|
</div>
|
|
627
627
|
|
|
628
628
|
${this.multiple ? html`
|
|
629
|
-
|
|
630
|
-
|
|
629
|
+
<div part="tags" class="select__tags">${this.tags}</div>
|
|
630
|
+
` : ""}
|
|
631
631
|
|
|
632
632
|
<input
|
|
633
633
|
class="select__value-input"
|
|
@@ -642,20 +642,20 @@ class FlowUiSelect extends FlowRdfFormControl {
|
|
|
642
642
|
/>
|
|
643
643
|
|
|
644
644
|
${hasClearIcon ? html`
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
645
|
+
<button
|
|
646
|
+
part="clear-button"
|
|
647
|
+
class="select__clear"
|
|
648
|
+
type="button"
|
|
649
|
+
aria-label=${this.localize.term("clearEntry")}
|
|
650
|
+
@mousedown=${this.handleClearMouseDown}
|
|
651
|
+
@click=${this.handleClearClick}
|
|
652
|
+
tabindex="-1"
|
|
653
|
+
>
|
|
654
|
+
<slot name="clear-icon">
|
|
655
|
+
<flow-ui-icon name="x-circle-fill" library="system"></flow-ui-icon>
|
|
656
|
+
</slot>
|
|
657
|
+
</button>
|
|
658
|
+
` : ""}
|
|
659
659
|
|
|
660
660
|
<slot name="suffix" part="suffix" class="select__suffix"></slot>
|
|
661
661
|
|
|
@@ -9,17 +9,17 @@ const styles = css`
|
|
|
9
9
|
--open-rotation: 180deg;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
:host([position='right'])
|
|
12
|
+
:host([position='right']) {
|
|
13
13
|
--closed-rotation: 180deg;
|
|
14
14
|
--open-rotation: 0deg;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
:host([position='top'])
|
|
17
|
+
:host([position='top']) {
|
|
18
18
|
--closed-rotation: 0deg;
|
|
19
19
|
--open-rotation: 90deg;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
:host([position='bottom'])
|
|
22
|
+
:host([position='bottom']) {
|
|
23
23
|
--closed-rotation: 0deg;
|
|
24
24
|
--open-rotation: 90deg;
|
|
25
25
|
}
|
|
@@ -96,8 +96,8 @@ class FlowUiStepper extends FlowRdfElement {
|
|
|
96
96
|
<div class="stepper__header-item-label">
|
|
97
97
|
<div class="stepper__header-item-title">${capitalize(panel.name)}</div>
|
|
98
98
|
${panel.subTitle ? html`
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
<div class="stepper__header-item-subtitle">${panel.subTitle}</div>
|
|
100
|
+
` : nothing}
|
|
101
101
|
</div>
|
|
102
102
|
</div>
|
|
103
103
|
`;
|
|
@@ -36,7 +36,7 @@ class FlowUiStepperPanel extends FlowRdfElement {
|
|
|
36
36
|
this.id = isStringFull(this.id) ? this.id : this.componentId;
|
|
37
37
|
this.setAttribute("role", "tabpanel");
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
handleActiveChange() {
|
|
40
40
|
this.setAttribute("aria-hidden", this.active ? "false" : "true");
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
@@ -67,7 +67,7 @@ __decorateClass([
|
|
|
67
67
|
property({ reflect: true, type: Boolean })
|
|
68
68
|
], FlowUiStepperPanel.prototype, "complete", 2);
|
|
69
69
|
__decorateClass([
|
|
70
|
-
watch("
|
|
71
|
-
], FlowUiStepperPanel.prototype, "
|
|
70
|
+
watch("active")
|
|
71
|
+
], FlowUiStepperPanel.prototype, "handleActiveChange", 1);
|
|
72
72
|
|
|
73
73
|
export { FlowUiStepperPanel as default };
|
|
@@ -81,15 +81,13 @@ class FlowUiSwitch extends FlowRdfFormControl {
|
|
|
81
81
|
this.emit("flow-ui-focus");
|
|
82
82
|
}
|
|
83
83
|
handleKeyDown(event) {
|
|
84
|
-
if (event.key
|
|
85
|
-
|
|
86
|
-
this.checked = false;
|
|
87
|
-
this.emit("flow-ui-change");
|
|
88
|
-
this.emit("flow-ui-input");
|
|
84
|
+
if (event.key !== "ArrowLeft" && event.key !== "ArrowRight") {
|
|
85
|
+
return;
|
|
89
86
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
event.preventDefault();
|
|
88
|
+
const checked = event.key === "ArrowRight";
|
|
89
|
+
if (this.checked !== checked) {
|
|
90
|
+
this.checked = checked;
|
|
93
91
|
this.emit("flow-ui-change");
|
|
94
92
|
this.emit("flow-ui-input");
|
|
95
93
|
}
|
|
@@ -82,26 +82,26 @@ class FlowUiTab extends FlowRdfElement {
|
|
|
82
82
|
>
|
|
83
83
|
<div class="tab__label-wrapper">
|
|
84
84
|
${hasIcon ? html`
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
<div class="tab__icon" part="icon"><slot name="icon"></slot></div>
|
|
86
|
+
` : ""}
|
|
87
87
|
${this.iconOnly ? "" : html`
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
<div class="tab__label" part="label">
|
|
89
|
+
<slot></slot>
|
|
90
|
+
</div>
|
|
91
|
+
`}
|
|
92
92
|
</div>
|
|
93
93
|
${this.closable ? html`
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
94
|
+
<flow-ui-icon-button
|
|
95
|
+
part="close-button"
|
|
96
|
+
exportparts="base:close-button__base"
|
|
97
|
+
name="x-lg"
|
|
98
|
+
library="system"
|
|
99
|
+
label=${this.localize.term("close")}
|
|
100
|
+
class="tab__close-button"
|
|
101
|
+
@click=${this.handleCloseClick}
|
|
102
|
+
tabindex="-1"
|
|
103
|
+
></flow-ui-icon-button>
|
|
104
|
+
` : ""}
|
|
105
105
|
</div>
|
|
106
106
|
`;
|
|
107
107
|
if (this.iconOnly) {
|