@emuanalytics/flow-rdf-ui 4.1.22 → 4.1.23
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/autocomplete/autocomplete.component.mjs +3 -2
- package/dist/components/list-item/list-item.component.mjs +5 -0
- package/dist/components/option/option.styles.mjs +5 -5
- package/dist/components/query-builder/query-builder.component.mjs +2 -0
- package/dist/custom-elements.json +4388 -4369
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/package.json.mjs +1 -1
- package/dist/vscode.html-custom-data.json +469 -460
- package/package.json +3 -3
- package/themes/dark.css +3 -3
- package/themes/dark.styles.js +3 -3
- package/themes/light.css +3 -3
- package/themes/light.styles.js +3 -3
|
@@ -123,9 +123,10 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
123
123
|
if (this.currentOption) {
|
|
124
124
|
this.currentOption.current = false;
|
|
125
125
|
}
|
|
126
|
+
this.currentOption = option;
|
|
126
127
|
option.current = true;
|
|
128
|
+
option.tabIndex = 0;
|
|
127
129
|
option.focus();
|
|
128
|
-
this.currentOption = option;
|
|
129
130
|
}
|
|
130
131
|
/**
|
|
131
132
|
* @internal
|
|
@@ -252,7 +253,7 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
252
253
|
if (event.key === "Enter" && this.open) {
|
|
253
254
|
event.preventDefault();
|
|
254
255
|
event.stopPropagation();
|
|
255
|
-
if (this.currentOption) {
|
|
256
|
+
if (this.currentOption && !this.currentOption.disabled) {
|
|
256
257
|
this.setSelectedOption(this.currentOption);
|
|
257
258
|
this.setValue(this.currentOption.value, { emitChangeEvent: true });
|
|
258
259
|
}
|
|
@@ -6,6 +6,7 @@ import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
|
6
6
|
import { HasSlotController } from '../../internal/slot.mjs';
|
|
7
7
|
import { watch } from '../../internal/watch.mjs';
|
|
8
8
|
import styles from './list-item.styles.mjs';
|
|
9
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
9
10
|
|
|
10
11
|
var __defProp = Object.defineProperty;
|
|
11
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -201,6 +202,7 @@ class FlowUiListItem extends FlowRdfElement {
|
|
|
201
202
|
class="list-item__input"
|
|
202
203
|
.value=${this.label}
|
|
203
204
|
.readonly=${!this.editable}
|
|
205
|
+
placeholder=${ifDefined(this.placeholder)}
|
|
204
206
|
tabindex=${this.editable ? "0" : "-1"}
|
|
205
207
|
@flow-ui-change=${this.handleInputEvents}
|
|
206
208
|
@flow-ui-input=${this.handleInputEvents}
|
|
@@ -226,6 +228,9 @@ __decorateClass([
|
|
|
226
228
|
__decorateClass([
|
|
227
229
|
property({ attribute: "edit-menu-name" })
|
|
228
230
|
], FlowUiListItem.prototype, "editMenuName", 2);
|
|
231
|
+
__decorateClass([
|
|
232
|
+
property()
|
|
233
|
+
], FlowUiListItem.prototype, "placeholder", 2);
|
|
229
234
|
__decorateClass([
|
|
230
235
|
property({ reflect: true })
|
|
231
236
|
], FlowUiListItem.prototype, "value", 2);
|
|
@@ -39,6 +39,11 @@ const styles = css`
|
|
|
39
39
|
font-size: var(--flow-ui-font-size-large);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
.option--hover:not(.option--current):not(.option--disabled) {
|
|
43
|
+
background-color: var(--flow-ui-menu-background-color-hover);
|
|
44
|
+
color: var(--flow-ui-menu-color-hover);
|
|
45
|
+
}
|
|
46
|
+
|
|
42
47
|
.option--current,
|
|
43
48
|
.option--current.option--disabled {
|
|
44
49
|
background-color: var(--flow-ui-menu-background-color-selected);
|
|
@@ -46,11 +51,6 @@ const styles = css`
|
|
|
46
51
|
opacity: 1;
|
|
47
52
|
}
|
|
48
53
|
|
|
49
|
-
.option--hover:not(.option--disabled) {
|
|
50
|
-
background-color: var(--flow-ui-menu-background-color-hover);
|
|
51
|
-
color: var(--flow-ui-menu-color-hover);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
54
|
.option--disabled {
|
|
55
55
|
outline: none;
|
|
56
56
|
opacity: 0.5;
|
|
@@ -141,6 +141,8 @@ const _FlowUiQueryBuilder = class _FlowUiQueryBuilder extends FlowRdfElement {
|
|
|
141
141
|
if (!rule.field) {
|
|
142
142
|
rule.operator = this.getDefault(fieldConfig.defaultOperator, "=");
|
|
143
143
|
rule.value = this.getDefault(fieldConfig.defaultValue);
|
|
144
|
+
} else {
|
|
145
|
+
rule.value = this.getDefault(fieldConfig.defaultValue);
|
|
144
146
|
}
|
|
145
147
|
rule.field = field;
|
|
146
148
|
this.emitValueChange();
|