@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
|
@@ -102,6 +102,7 @@ class FlowUiTabGroup extends FlowRdfElement {
|
|
|
102
102
|
updated(changed) {
|
|
103
103
|
super.updated(changed);
|
|
104
104
|
if (changed.has("placement")) {
|
|
105
|
+
this.tabs.forEach((tab) => tab.placement = this.placement);
|
|
105
106
|
this.observeContent();
|
|
106
107
|
} else if (this.contentObserver && changed.has("closed")) {
|
|
107
108
|
dispatchContentResize(this);
|
|
@@ -464,26 +465,29 @@ class FlowUiTabGroup extends FlowRdfElement {
|
|
|
464
465
|
<div class="tab-group__track"></div>
|
|
465
466
|
|
|
466
467
|
${this.hasSlotController.test("nav-accessories-start") ? html`
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
468
|
+
<div
|
|
469
|
+
class="tab-group__nav-accessories tab-group__nav-accessories--start"
|
|
470
|
+
part="nav-accessories-start"
|
|
471
|
+
>
|
|
472
|
+
<slot name="nav-accessories-start"></slot>
|
|
473
|
+
</div>
|
|
474
|
+
<flow-ui-divider
|
|
475
|
+
class="tab-group__accessory-divider"
|
|
476
|
+
part="accessory-divider"
|
|
477
|
+
?vertical=${this.isHorizontal()}
|
|
478
|
+
></flow-ui-divider>
|
|
479
|
+
` : ""}
|
|
476
480
|
${this.hasScrollControls ? html`
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
481
|
+
<flow-ui-icon-button
|
|
482
|
+
part="scroll-button scroll-button--start"
|
|
483
|
+
exportparts="base:scroll-button__base"
|
|
484
|
+
class="tab-group__scroll-button tab-group__scroll-button--start"
|
|
485
|
+
name=${this.isHorizontal() ? isRtl ? "chevron-right" : "chevron-left" : "chevron-up"}
|
|
486
|
+
library="system"
|
|
487
|
+
label=${this.localize.term("scrollToStart")}
|
|
488
|
+
@click=${this.handleScrollToStart}
|
|
489
|
+
></flow-ui-icon-button>
|
|
490
|
+
` : ""}
|
|
487
491
|
|
|
488
492
|
<div class="tab-group__nav">
|
|
489
493
|
<div part="tabs" class="tab-group__tabs" role="tablist">
|
|
@@ -493,26 +497,26 @@ class FlowUiTabGroup extends FlowRdfElement {
|
|
|
493
497
|
</div>
|
|
494
498
|
|
|
495
499
|
${this.hasScrollControls ? html`
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
500
|
+
<flow-ui-icon-button
|
|
501
|
+
part="scroll-button scroll-button--end"
|
|
502
|
+
exportparts="base:scroll-button__base"
|
|
503
|
+
class="tab-group__scroll-button tab-group__scroll-button--end"
|
|
504
|
+
name=${this.isHorizontal() ? isRtl ? "chevron-left" : "chevron-right" : "chevron-down"}
|
|
505
|
+
library="system"
|
|
506
|
+
label=${this.localize.term("scrollToEnd")}
|
|
507
|
+
@click=${this.handleScrollToEnd}
|
|
508
|
+
></flow-ui-icon-button>
|
|
509
|
+
` : ""}
|
|
506
510
|
${this.hasSlotController.test("nav-accessories-end") ? html`
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
511
|
+
<flow-ui-divider
|
|
512
|
+
class="tab-group__accessory-divider"
|
|
513
|
+
part="accessory-divider"
|
|
514
|
+
?vertical=${this.isHorizontal()}
|
|
515
|
+
></flow-ui-divider>
|
|
516
|
+
<div class="tab-group__nav-accessories tab-group__nav-accessories--end" part="nav-accessories-end">
|
|
517
|
+
<slot name="nav-accessories-end"></slot>
|
|
518
|
+
</div>
|
|
519
|
+
` : ""}
|
|
516
520
|
</div>
|
|
517
521
|
|
|
518
522
|
<div
|
|
@@ -61,17 +61,17 @@ class FlowUiTag extends FlowRdfElement {
|
|
|
61
61
|
<slot part="content" class="tag__content"></slot>
|
|
62
62
|
|
|
63
63
|
${this.removable ? html`
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
64
|
+
<flow-ui-icon-button
|
|
65
|
+
part="remove-button"
|
|
66
|
+
exportparts="base:remove-button__base"
|
|
67
|
+
name="x-lg"
|
|
68
|
+
library="system"
|
|
69
|
+
label=${this.localize.term("remove")}
|
|
70
|
+
class="tag__remove"
|
|
71
|
+
@click=${this.handleRemoveClick}
|
|
72
|
+
tabindex="-1"
|
|
73
|
+
></flow-ui-icon-button>
|
|
74
|
+
` : ""}
|
|
75
75
|
</span>
|
|
76
76
|
`;
|
|
77
77
|
}
|
|
@@ -7,6 +7,7 @@ import { boolean } from '../../internal/boolean.mjs';
|
|
|
7
7
|
import { defaultValue } from '../../internal/default-value.mjs';
|
|
8
8
|
import { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element.mjs';
|
|
9
9
|
import { FormControlController } from '../../internal/form.mjs';
|
|
10
|
+
import onOffConverter from '../../internal/on-off-converter.mjs';
|
|
10
11
|
import { HasSlotController } from '../../internal/slot.mjs';
|
|
11
12
|
import { watch } from '../../internal/watch.mjs';
|
|
12
13
|
import styles from './textarea.styles.mjs';
|
|
@@ -138,7 +139,7 @@ class FlowUiTextarea extends FlowRdfFormControl {
|
|
|
138
139
|
}
|
|
139
140
|
return {
|
|
140
141
|
top: this.input.scrollTop,
|
|
141
|
-
left: this.input.
|
|
142
|
+
left: this.input.scrollLeft
|
|
142
143
|
};
|
|
143
144
|
}
|
|
144
145
|
/** Sets the start and end positions of the text selection (0-based). */
|
|
@@ -147,7 +148,11 @@ class FlowUiTextarea extends FlowRdfFormControl {
|
|
|
147
148
|
}
|
|
148
149
|
/** Replaces a range of text with a new string. */
|
|
149
150
|
setRangeText(replacement, start, end, selectMode) {
|
|
150
|
-
|
|
151
|
+
if (start === void 0 || end === void 0) {
|
|
152
|
+
this.input.setRangeText(replacement);
|
|
153
|
+
} else {
|
|
154
|
+
this.input.setRangeText(replacement, start, end, selectMode);
|
|
155
|
+
}
|
|
151
156
|
if (this.value !== this.input.value) {
|
|
152
157
|
this.value = this.input.value;
|
|
153
158
|
}
|
|
@@ -242,7 +247,8 @@ class FlowUiTextarea extends FlowRdfFormControl {
|
|
|
242
247
|
minlength=${ifDefined(this.minlength)}
|
|
243
248
|
maxlength=${ifDefined(this.maxlength)}
|
|
244
249
|
autocapitalize=${ifDefined(this.autocapitalize)}
|
|
245
|
-
|
|
250
|
+
autocomplete=${ifDefined(this.autocomplete)}
|
|
251
|
+
autocorrect=${ifDefined(onOffConverter.toAttribute(this.autocorrect))}
|
|
246
252
|
?autofocus=${this.autofocus}
|
|
247
253
|
spellcheck=${ifDefined(this.spellcheck)}
|
|
248
254
|
enterkeyhint=${ifDefined(this.enterkeyhint)}
|
|
@@ -320,7 +326,7 @@ __decorateClass([
|
|
|
320
326
|
property()
|
|
321
327
|
], FlowUiTextarea.prototype, "autocapitalize", 2);
|
|
322
328
|
__decorateClass([
|
|
323
|
-
property()
|
|
329
|
+
property({ converter: onOffConverter })
|
|
324
330
|
], FlowUiTextarea.prototype, "autocorrect", 2);
|
|
325
331
|
__decorateClass([
|
|
326
332
|
property()
|
|
@@ -61,7 +61,8 @@ class FlowUiTree extends FlowRdfElement {
|
|
|
61
61
|
// Initializes new items by setting the `selectable` property and the expanded/collapsed icons if any
|
|
62
62
|
this.initTreeItem = (item) => {
|
|
63
63
|
item.selectable = this.selectionMode === "multiple";
|
|
64
|
-
item.selected = !!item.value && this.value.includes(item.value);
|
|
64
|
+
item.selected = !!item.value && ensureArray(this.value).includes(item.value);
|
|
65
|
+
item.size = this.size;
|
|
65
66
|
["expand", "collapse"].filter((status) => !!this.querySelector(`[slot="${status}-icon"]`)).forEach((status) => {
|
|
66
67
|
const existingIcon = item.querySelector(`[slot="${status}-icon"]`);
|
|
67
68
|
if (existingIcon === null) {
|
|
@@ -277,7 +278,8 @@ class FlowUiTree extends FlowRdfElement {
|
|
|
277
278
|
);
|
|
278
279
|
}
|
|
279
280
|
}
|
|
280
|
-
handleValueChange(
|
|
281
|
+
handleValueChange(previousValueOrNull) {
|
|
282
|
+
const previousValue = ensureArray(previousValueOrNull);
|
|
281
283
|
this.value = ensureArray(this.value);
|
|
282
284
|
if (previousValue.length !== this.value.length || this.value.some((val) => !previousValue.includes(val)) || previousValue.some((val) => !this.value.includes(val))) {
|
|
283
285
|
const selected = this.value.filter((val) => !previousValue.includes(val));
|