@emuanalytics/flow-rdf-ui 4.0.0-preview.8 → 4.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/custom-elements.json +1654 -2384
- package/dist/index.cjs +73 -68
- package/dist/index.d.cts +514 -139
- package/dist/index.d.mts +514 -139
- package/dist/index.d.ts +514 -139
- package/dist/index.mjs +75 -68
- package/dist/vscode.html-custom-data.json +373 -209
- package/package.json +12 -5
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const chart_js = require('chart.js');
|
|
4
|
+
const chartjsChartMatrix = require('chartjs-chart-matrix');
|
|
5
|
+
const AnnotationPlugin = require('chartjs-plugin-annotation');
|
|
6
|
+
const d3Scale = require('d3-scale');
|
|
3
7
|
const lit = require('lit');
|
|
4
8
|
const decorators_js = require('lit/decorators.js');
|
|
5
9
|
const classMap_js = require('lit/directives/class-map.js');
|
|
@@ -8,11 +12,7 @@ const staticHtml_js = require('lit/static-html.js');
|
|
|
8
12
|
const luxon = require('luxon');
|
|
9
13
|
const map_js = require('lit/directives/map.js');
|
|
10
14
|
const range_js = require('lit/directives/range.js');
|
|
11
|
-
const chart_js = require('chart.js');
|
|
12
15
|
const ref_js = require('lit/directives/ref.js');
|
|
13
|
-
const chartjsChartMatrix = require('chartjs-chart-matrix');
|
|
14
|
-
const AnnotationPlugin = require('chartjs-plugin-annotation');
|
|
15
|
-
const d3Scale = require('d3-scale');
|
|
16
16
|
const live_js = require('lit/directives/live.js');
|
|
17
17
|
const tinycolor = require('@ctrl/tinycolor');
|
|
18
18
|
const styleMap_js = require('lit/directives/style-map.js');
|
|
@@ -901,30 +901,6 @@ function getEasingNames() {
|
|
|
901
901
|
return Object.entries(easings).map(([name]) => name);
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
-
let basePath = "";
|
|
905
|
-
function setBasePath(path) {
|
|
906
|
-
basePath = path;
|
|
907
|
-
}
|
|
908
|
-
function getBasePath(subpath = "") {
|
|
909
|
-
if (!basePath) {
|
|
910
|
-
const scripts = [...document.getElementsByTagName("script")];
|
|
911
|
-
const configScript = scripts.find((script) => script.hasAttribute("data-flow-ui-rdf-ui"));
|
|
912
|
-
if (configScript) {
|
|
913
|
-
setBasePath(configScript.getAttribute("data-flow-ui-rdf-ui"));
|
|
914
|
-
} else {
|
|
915
|
-
const fallbackScript = scripts.find((s) => {
|
|
916
|
-
return /flow-ui-rdf-ui(\.min)?\.js($|\?)/.test(s.src) || /flow-ui-rdf-autoloader(\.min)?\.js($|\?)/.test(s.src);
|
|
917
|
-
});
|
|
918
|
-
let path = "";
|
|
919
|
-
if (fallbackScript) {
|
|
920
|
-
path = fallbackScript.getAttribute("src");
|
|
921
|
-
}
|
|
922
|
-
setBasePath(path.split("/").slice(0, -1).join("/"));
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
return basePath.replace(/\/$/, "") + (subpath ? `/${subpath.replace(/^\//, "")}` : ``);
|
|
926
|
-
}
|
|
927
|
-
|
|
928
904
|
const isUndefined = (val) => typeof val === "undefined";
|
|
929
905
|
const isNull = (val) => val === null;
|
|
930
906
|
const isNil = (val) => isUndefined(val) || isNull(val);
|
|
@@ -1475,8 +1451,8 @@ function unregisterIconLibrary(name) {
|
|
|
1475
1451
|
function setDefaultLocale(locale) {
|
|
1476
1452
|
luxon.Settings.defaultLocale = locale;
|
|
1477
1453
|
}
|
|
1478
|
-
function setDefaultTimeZone(
|
|
1479
|
-
luxon.Settings.defaultZone =
|
|
1454
|
+
function setDefaultTimeZone(timezone) {
|
|
1455
|
+
luxon.Settings.defaultZone = timezone;
|
|
1480
1456
|
}
|
|
1481
1457
|
|
|
1482
1458
|
function filterRuleSet(ruleset, options) {
|
|
@@ -1623,7 +1599,7 @@ const converter$2 = (ruleset, config, options) => {
|
|
|
1623
1599
|
};
|
|
1624
1600
|
const converter$3 = converter$2;
|
|
1625
1601
|
|
|
1626
|
-
function ensureArray(a, ...
|
|
1602
|
+
function ensureArray(a, ..._rest) {
|
|
1627
1603
|
if (arguments.length === 0) {
|
|
1628
1604
|
return [];
|
|
1629
1605
|
}
|
|
@@ -1963,7 +1939,6 @@ function getAnimation(el, animationName, options) {
|
|
|
1963
1939
|
|
|
1964
1940
|
const connectedElements = /* @__PURE__ */ new Set();
|
|
1965
1941
|
const translations = /* @__PURE__ */ new Map();
|
|
1966
|
-
const isClient = isDefined(MutationObserver) && isDefined(document) && isDefined(document.documentElement);
|
|
1967
1942
|
let fallback;
|
|
1968
1943
|
let documentDirection = "ltr";
|
|
1969
1944
|
let documentLanguage = "en";
|
|
@@ -1977,8 +1952,8 @@ function registerTranslation(...translation) {
|
|
|
1977
1952
|
}
|
|
1978
1953
|
if (!fallback) {
|
|
1979
1954
|
fallback = t;
|
|
1980
|
-
const
|
|
1981
|
-
if (
|
|
1955
|
+
const isClient = isDefined(MutationObserver) && isDefined(document) && isDefined(document.documentElement);
|
|
1956
|
+
if (isClient) {
|
|
1982
1957
|
const documentElementObserver = new MutationObserver(update);
|
|
1983
1958
|
documentDirection = document.documentElement.dir || "ltr";
|
|
1984
1959
|
documentLanguage = document.documentElement.lang || navigator.language;
|
|
@@ -1992,6 +1967,7 @@ function registerTranslation(...translation) {
|
|
|
1992
1967
|
update();
|
|
1993
1968
|
}
|
|
1994
1969
|
function update() {
|
|
1970
|
+
const isClient = isDefined(document) && isDefined(document.documentElement);
|
|
1995
1971
|
if (isClient) {
|
|
1996
1972
|
documentDirection = document.documentElement.dir || "ltr";
|
|
1997
1973
|
documentLanguage = document.documentElement.lang || navigator.language;
|
|
@@ -2443,6 +2419,7 @@ class FlowUiPopup extends FlowRdfElement {
|
|
|
2443
2419
|
super.disconnectedCallback();
|
|
2444
2420
|
this.stop();
|
|
2445
2421
|
}
|
|
2422
|
+
/** @internal */
|
|
2446
2423
|
async updated(changedProps) {
|
|
2447
2424
|
super.updated(changedProps);
|
|
2448
2425
|
if (changedProps.has("active")) {
|
|
@@ -3448,7 +3425,7 @@ var __decorateClass$U = (decorators, target, key, kind) => {
|
|
|
3448
3425
|
__defProp$U(target, key, result);
|
|
3449
3426
|
return result;
|
|
3450
3427
|
};
|
|
3451
|
-
|
|
3428
|
+
let toastStack;
|
|
3452
3429
|
class FlowUiAlert extends FlowRdfElement {
|
|
3453
3430
|
constructor() {
|
|
3454
3431
|
super(...arguments);
|
|
@@ -3525,6 +3502,9 @@ class FlowUiAlert extends FlowRdfElement {
|
|
|
3525
3502
|
*/
|
|
3526
3503
|
async toast() {
|
|
3527
3504
|
return new Promise((resolve) => {
|
|
3505
|
+
if (!toastStack) {
|
|
3506
|
+
toastStack = Object.assign(document.createElement("div"), { className: "flow-ui-toast-stack" });
|
|
3507
|
+
}
|
|
3528
3508
|
if (toastStack.parentElement === null) {
|
|
3529
3509
|
document.body.append(toastStack);
|
|
3530
3510
|
}
|
|
@@ -3697,7 +3677,7 @@ class FlowUiAnimation extends FlowRdfElement {
|
|
|
3697
3677
|
}
|
|
3698
3678
|
this.destroyAnimation();
|
|
3699
3679
|
this.animation = element.animate(keyframes, {
|
|
3700
|
-
delay: this.delay,
|
|
3680
|
+
delay: +this.delay,
|
|
3701
3681
|
direction: this.direction,
|
|
3702
3682
|
duration: this.duration,
|
|
3703
3683
|
easing,
|
|
@@ -4008,6 +3988,11 @@ const styles$U = lit.css`
|
|
|
4008
3988
|
color: var(--flow-ui-color-neutral-0);
|
|
4009
3989
|
}
|
|
4010
3990
|
|
|
3991
|
+
.badge--secondary {
|
|
3992
|
+
background-color: var(--flow-ui-color-secondary-500);
|
|
3993
|
+
color: var(--flow-ui-color-neutral-0);
|
|
3994
|
+
}
|
|
3995
|
+
|
|
4011
3996
|
.badge--success {
|
|
4012
3997
|
background-color: var(--flow-ui-color-success-600);
|
|
4013
3998
|
color: var(--flow-ui-color-neutral-0);
|
|
@@ -4042,6 +4027,10 @@ const styles$U = lit.css`
|
|
|
4042
4027
|
--pulse-color: var(--flow-ui-color-primary-500);
|
|
4043
4028
|
}
|
|
4044
4029
|
|
|
4030
|
+
.badge--pulse.badge--secondary {
|
|
4031
|
+
--pulse-color: var(--flow-ui-color-secondary-500);
|
|
4032
|
+
}
|
|
4033
|
+
|
|
4045
4034
|
.badge--pulse.badge--success {
|
|
4046
4035
|
--pulse-color: var(--flow-ui-color-success-600);
|
|
4047
4036
|
}
|
|
@@ -4101,6 +4090,7 @@ class FlowUiBadge extends FlowRdfElement {
|
|
|
4101
4090
|
class=${classMap_js.classMap({
|
|
4102
4091
|
badge: true,
|
|
4103
4092
|
"badge--primary": this.variant === "primary",
|
|
4093
|
+
"badge--secondary": this.variant === "secondary",
|
|
4104
4094
|
"badge--success": this.variant === "success",
|
|
4105
4095
|
"badge--neutral": this.variant === "neutral",
|
|
4106
4096
|
"badge--warning": this.variant === "warning",
|
|
@@ -6373,6 +6363,7 @@ const styles$N = lit.css`
|
|
|
6373
6363
|
`;
|
|
6374
6364
|
|
|
6375
6365
|
class FlowUiCarouselItem extends FlowRdfElement {
|
|
6366
|
+
/** @internal */
|
|
6376
6367
|
static isCarouselItem(node) {
|
|
6377
6368
|
return node instanceof Element && node.getAttribute("aria-roledescription") === "slide";
|
|
6378
6369
|
}
|
|
@@ -8042,9 +8033,6 @@ __decorateClass$H([
|
|
|
8042
8033
|
__decorateClass$H([
|
|
8043
8034
|
decorators_js.query(".dialog-info")
|
|
8044
8035
|
], FlowUiColorMapper.prototype, "infoDialog", 2);
|
|
8045
|
-
__decorateClass$H([
|
|
8046
|
-
decorators_js.property()
|
|
8047
|
-
], FlowUiColorMapper.prototype, "field", 2);
|
|
8048
8036
|
__decorateClass$H([
|
|
8049
8037
|
decorators_js.property({ type: Object })
|
|
8050
8038
|
], FlowUiColorMapper.prototype, "options", 2);
|
|
@@ -8285,15 +8273,18 @@ class FlowUiDropdown extends FlowRdfElement {
|
|
|
8285
8273
|
this.removeOpenListeners();
|
|
8286
8274
|
this.hide();
|
|
8287
8275
|
}
|
|
8276
|
+
/** @internal */
|
|
8288
8277
|
focusOnTrigger() {
|
|
8289
8278
|
const trigger = this.trigger.assignedElements({ flatten: true })[0];
|
|
8290
8279
|
if (typeof trigger?.focus === "function") {
|
|
8291
8280
|
trigger.focus();
|
|
8292
8281
|
}
|
|
8293
8282
|
}
|
|
8283
|
+
/** @internal */
|
|
8294
8284
|
getMenu() {
|
|
8295
8285
|
return this.panel.assignedElements({ flatten: true }).find((el) => el.tagName.toLowerCase() === "flow-ui-menu");
|
|
8296
8286
|
}
|
|
8287
|
+
/** @internal */
|
|
8297
8288
|
handleTriggerClick() {
|
|
8298
8289
|
if (this.open) {
|
|
8299
8290
|
this.hide();
|
|
@@ -8302,6 +8293,7 @@ class FlowUiDropdown extends FlowRdfElement {
|
|
|
8302
8293
|
this.focusOnTrigger();
|
|
8303
8294
|
}
|
|
8304
8295
|
}
|
|
8296
|
+
/** @internal */
|
|
8305
8297
|
async handleTriggerKeyDown(event) {
|
|
8306
8298
|
if ([" ", "Enter"].includes(event.key)) {
|
|
8307
8299
|
event.preventDefault();
|
|
@@ -8334,11 +8326,13 @@ class FlowUiDropdown extends FlowRdfElement {
|
|
|
8334
8326
|
}
|
|
8335
8327
|
}
|
|
8336
8328
|
}
|
|
8329
|
+
/** @internal */
|
|
8337
8330
|
handleTriggerKeyUp(event) {
|
|
8338
8331
|
if (event.key === " ") {
|
|
8339
8332
|
event.preventDefault();
|
|
8340
8333
|
}
|
|
8341
8334
|
}
|
|
8335
|
+
/** @internal */
|
|
8342
8336
|
handleTriggerSlotChange() {
|
|
8343
8337
|
this.updateAccessibleTrigger();
|
|
8344
8338
|
}
|
|
@@ -8352,6 +8346,7 @@ class FlowUiDropdown extends FlowRdfElement {
|
|
|
8352
8346
|
//
|
|
8353
8347
|
// To determine this, we assume the first tabbable element in the trigger slot is the "accessible trigger."
|
|
8354
8348
|
//
|
|
8349
|
+
/** @internal */
|
|
8355
8350
|
updateAccessibleTrigger() {
|
|
8356
8351
|
const assignedElements = this.trigger.assignedElements({ flatten: true });
|
|
8357
8352
|
const accessibleTrigger = assignedElements.find((el) => getTabbableBoundary(el).start);
|
|
@@ -8392,6 +8387,7 @@ class FlowUiDropdown extends FlowRdfElement {
|
|
|
8392
8387
|
reposition() {
|
|
8393
8388
|
this.popup.reposition();
|
|
8394
8389
|
}
|
|
8390
|
+
/** @internal */
|
|
8395
8391
|
addOpenListeners() {
|
|
8396
8392
|
this.panel.addEventListener("flow-ui-select", this.handlePanelSelect);
|
|
8397
8393
|
if ("CloseWatcher" in window) {
|
|
@@ -8407,6 +8403,7 @@ class FlowUiDropdown extends FlowRdfElement {
|
|
|
8407
8403
|
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
8408
8404
|
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
8409
8405
|
}
|
|
8406
|
+
/** @internal */
|
|
8410
8407
|
removeOpenListeners() {
|
|
8411
8408
|
if (this.panel) {
|
|
8412
8409
|
this.panel.removeEventListener("flow-ui-select", this.handlePanelSelect);
|
|
@@ -9814,7 +9811,7 @@ var __decorateClass$E = (decorators, target, key, kind) => {
|
|
|
9814
9811
|
__defProp$E(target, key, result);
|
|
9815
9812
|
return result;
|
|
9816
9813
|
};
|
|
9817
|
-
const hasEyeDropper = "EyeDropper" in window;
|
|
9814
|
+
const hasEyeDropper = typeof window !== "undefined" && "EyeDropper" in window;
|
|
9818
9815
|
class FlowUiColorPicker extends FlowRdfElement {
|
|
9819
9816
|
constructor() {
|
|
9820
9817
|
super(...arguments);
|
|
@@ -10835,23 +10832,28 @@ class FlowUiColorStop extends FlowRdfElement {
|
|
|
10835
10832
|
this.placeholder = boolean(this.placeholder, true);
|
|
10836
10833
|
this.required = boolean(this.required, true);
|
|
10837
10834
|
}
|
|
10838
|
-
|
|
10835
|
+
/** Gets the validity state object. */
|
|
10839
10836
|
get validity() {
|
|
10840
10837
|
return this.validate() ? validValidityState : customErrorValidityState;
|
|
10841
10838
|
}
|
|
10839
|
+
/** Gets the validation message. */
|
|
10842
10840
|
get validationMessage() {
|
|
10843
10841
|
return this.validate() ? "" : "Invalid regular expression";
|
|
10844
10842
|
}
|
|
10843
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
10845
10844
|
checkValidity() {
|
|
10846
10845
|
return this.validate();
|
|
10847
10846
|
}
|
|
10847
|
+
/** Gets the associated form, if one exists. */
|
|
10848
10848
|
getForm() {
|
|
10849
10849
|
return this.formControlController.getForm();
|
|
10850
10850
|
}
|
|
10851
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
10851
10852
|
reportValidity() {
|
|
10852
10853
|
this.input.setCustomValidity(this.validationMessage);
|
|
10853
10854
|
return this.input.reportValidity();
|
|
10854
10855
|
}
|
|
10856
|
+
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
10855
10857
|
setCustomValidity(message) {
|
|
10856
10858
|
this.input.setCustomValidity(message);
|
|
10857
10859
|
this.formControlController.updateValidity();
|
|
@@ -11741,7 +11743,7 @@ class FlowUiDateTimePicker extends FlowRdfElement {
|
|
|
11741
11743
|
this.emit("flow-ui-after-hide");
|
|
11742
11744
|
}
|
|
11743
11745
|
}
|
|
11744
|
-
/** Shows the
|
|
11746
|
+
/** Shows the calendar. */
|
|
11745
11747
|
async show() {
|
|
11746
11748
|
if (this.open || this.disabled) {
|
|
11747
11749
|
this.open = false;
|
|
@@ -11750,7 +11752,7 @@ class FlowUiDateTimePicker extends FlowRdfElement {
|
|
|
11750
11752
|
this.open = true;
|
|
11751
11753
|
return waitForEvent(this, "flow-ui-after-show");
|
|
11752
11754
|
}
|
|
11753
|
-
/** Hides the
|
|
11755
|
+
/** Hides the calendar. */
|
|
11754
11756
|
async hide() {
|
|
11755
11757
|
if (!this.open || this.disabled) {
|
|
11756
11758
|
this.open = false;
|
|
@@ -11941,9 +11943,6 @@ FlowUiDateTimePicker.styles = styles$D;
|
|
|
11941
11943
|
__decorateClass$B([
|
|
11942
11944
|
decorators_js.query(".datepicker")
|
|
11943
11945
|
], FlowUiDateTimePicker.prototype, "popup", 2);
|
|
11944
|
-
__decorateClass$B([
|
|
11945
|
-
decorators_js.query(".datepicker__combobox")
|
|
11946
|
-
], FlowUiDateTimePicker.prototype, "combobox", 2);
|
|
11947
11946
|
__decorateClass$B([
|
|
11948
11947
|
decorators_js.query(".datepicker__display-input")
|
|
11949
11948
|
], FlowUiDateTimePicker.prototype, "displayInput", 2);
|
|
@@ -13393,13 +13392,13 @@ const styles$y = lit.css`
|
|
|
13393
13392
|
}
|
|
13394
13393
|
|
|
13395
13394
|
/* Wrapper needed to support text ellipsis in flex item */
|
|
13396
|
-
.
|
|
13395
|
+
.gauge__title-wrapper {
|
|
13397
13396
|
flex: 1;
|
|
13398
13397
|
min-width: 0;
|
|
13399
13398
|
display: flex;
|
|
13400
13399
|
}
|
|
13401
13400
|
|
|
13402
|
-
.
|
|
13401
|
+
.gauge__title {
|
|
13403
13402
|
text-overflow: ellipsis;
|
|
13404
13403
|
white-space: nowrap;
|
|
13405
13404
|
overflow: hidden;
|
|
@@ -13431,6 +13430,7 @@ const styles$y = lit.css`
|
|
|
13431
13430
|
text-overflow: ellipsis;
|
|
13432
13431
|
white-space: nowrap;
|
|
13433
13432
|
overflow: hidden;
|
|
13433
|
+
line-height: 1.2;
|
|
13434
13434
|
}
|
|
13435
13435
|
|
|
13436
13436
|
.gauge__value {
|
|
@@ -13509,6 +13509,7 @@ class FlowUiGauge extends FlowRdfElement {
|
|
|
13509
13509
|
headerIconTemplate() {
|
|
13510
13510
|
return this.icon ? lit.html`
|
|
13511
13511
|
<flow-ui-icon
|
|
13512
|
+
part="header-icon"
|
|
13512
13513
|
class="gauge__header-icon"
|
|
13513
13514
|
name=${this.icon}
|
|
13514
13515
|
library=${ifDefined_js.ifDefined(this.iconLibrary)}
|
|
@@ -13531,7 +13532,7 @@ class FlowUiGauge extends FlowRdfElement {
|
|
|
13531
13532
|
<flow-ui-dialog class="gauge__info-dialog">
|
|
13532
13533
|
<div slot="label" class="gauge__info-dialog-label">
|
|
13533
13534
|
${this.headerIconTemplate()}
|
|
13534
|
-
<slot name="
|
|
13535
|
+
<slot name="title-text">${this.title}</slot>
|
|
13535
13536
|
</div>
|
|
13536
13537
|
<slot name="info"></slot>
|
|
13537
13538
|
<div slot="footer">
|
|
@@ -13551,9 +13552,9 @@ class FlowUiGauge extends FlowRdfElement {
|
|
|
13551
13552
|
>
|
|
13552
13553
|
<div part="header" class="gauge__header">
|
|
13553
13554
|
${this.headerIconTemplate()}
|
|
13554
|
-
<span class="
|
|
13555
|
-
<span part="
|
|
13556
|
-
<slot name="
|
|
13555
|
+
<span class="gauge__title-wrapper">
|
|
13556
|
+
<span part="title" class="gauge__title">
|
|
13557
|
+
<slot name="title">${this.title}</slot>
|
|
13557
13558
|
</span>
|
|
13558
13559
|
</span>
|
|
13559
13560
|
${hasInfo ? this.infoButtonTemplate() : lit.nothing}
|
|
@@ -13578,7 +13579,7 @@ __decorateClass$w([
|
|
|
13578
13579
|
], FlowUiGauge.prototype, "_infoDialog", 2);
|
|
13579
13580
|
__decorateClass$w([
|
|
13580
13581
|
decorators_js.property()
|
|
13581
|
-
], FlowUiGauge.prototype, "
|
|
13582
|
+
], FlowUiGauge.prototype, "title", 2);
|
|
13582
13583
|
__decorateClass$w([
|
|
13583
13584
|
decorators_js.property()
|
|
13584
13585
|
], FlowUiGauge.prototype, "units", 2);
|
|
@@ -14040,7 +14041,7 @@ class FlowUiMenuItem extends FlowRdfElement {
|
|
|
14040
14041
|
this.removeAttribute("aria-checked");
|
|
14041
14042
|
}
|
|
14042
14043
|
}
|
|
14043
|
-
/** Returns a text label based on the contents of the menu item's default slot. */
|
|
14044
|
+
/** @internal Returns a text label based on the contents of the menu item's default slot. */
|
|
14044
14045
|
getTextLabel() {
|
|
14045
14046
|
return getTextContent(this.defaultSlot);
|
|
14046
14047
|
}
|
|
@@ -14543,7 +14544,7 @@ class FlowUiOption extends FlowRdfElement {
|
|
|
14543
14544
|
this.value = this.value.replace(/ /g, "_");
|
|
14544
14545
|
}
|
|
14545
14546
|
}
|
|
14546
|
-
/** Returns a plain text label based on the option's content. */
|
|
14547
|
+
/** @internal Returns a plain text label based on the option's content. */
|
|
14547
14548
|
getTextLabel() {
|
|
14548
14549
|
const nodes = this.childNodes;
|
|
14549
14550
|
let label = "";
|
|
@@ -14876,7 +14877,7 @@ class FlowUiPanel extends FlowRdfElement {
|
|
|
14876
14877
|
disconnectedCallback() {
|
|
14877
14878
|
super.disconnectedCallback();
|
|
14878
14879
|
}
|
|
14879
|
-
/**
|
|
14880
|
+
/** Open the panel */
|
|
14880
14881
|
async expand(emitEvent = true) {
|
|
14881
14882
|
if (this.closed) {
|
|
14882
14883
|
this.closed = false;
|
|
@@ -14885,7 +14886,7 @@ class FlowUiPanel extends FlowRdfElement {
|
|
|
14885
14886
|
}
|
|
14886
14887
|
}
|
|
14887
14888
|
}
|
|
14888
|
-
/**
|
|
14889
|
+
/** Close the panel */
|
|
14889
14890
|
async collapse(emitEvent = true) {
|
|
14890
14891
|
if (!this.closed) {
|
|
14891
14892
|
this.closed = true;
|
|
@@ -19343,6 +19344,7 @@ class FlowUiSplitViewDivider extends FlowRdfElement {
|
|
|
19343
19344
|
disconnectedCallback() {
|
|
19344
19345
|
super.disconnectedCallback();
|
|
19345
19346
|
}
|
|
19347
|
+
/** @internal */
|
|
19346
19348
|
cancelDrag() {
|
|
19347
19349
|
if (this.dragCanceller) {
|
|
19348
19350
|
this.dragCanceller();
|
|
@@ -19480,12 +19482,13 @@ class FlowUiSplitViewPane extends FlowRdfElement {
|
|
|
19480
19482
|
disconnectedCallback() {
|
|
19481
19483
|
super.disconnectedCallback();
|
|
19482
19484
|
}
|
|
19485
|
+
/** @internal */
|
|
19483
19486
|
cancelDrag() {
|
|
19484
19487
|
if (this.dividerComponent) {
|
|
19485
19488
|
this.dividerComponent.cancelDrag();
|
|
19486
19489
|
}
|
|
19487
19490
|
}
|
|
19488
|
-
/**
|
|
19491
|
+
/** Open the split pane. */
|
|
19489
19492
|
async expand(emitEvent = true) {
|
|
19490
19493
|
if (this.closed) {
|
|
19491
19494
|
this.closed = false;
|
|
@@ -19494,7 +19497,7 @@ class FlowUiSplitViewPane extends FlowRdfElement {
|
|
|
19494
19497
|
}
|
|
19495
19498
|
}
|
|
19496
19499
|
}
|
|
19497
|
-
/**
|
|
19500
|
+
/** Close the split pane. */
|
|
19498
19501
|
async collapse(emitEvent = true) {
|
|
19499
19502
|
if (!this.closed) {
|
|
19500
19503
|
this.closed = true;
|
|
@@ -20171,6 +20174,12 @@ FlowUiSplitView.styles = styles$d;
|
|
|
20171
20174
|
__decorateClass$c([
|
|
20172
20175
|
decorators_js.state()
|
|
20173
20176
|
], FlowUiSplitView.prototype, "animatingPanelIndex", 2);
|
|
20177
|
+
__decorateClass$c([
|
|
20178
|
+
decorators_js.query(".split-view__panel-slot")
|
|
20179
|
+
], FlowUiSplitView.prototype, "panelSlot", 2);
|
|
20180
|
+
__decorateClass$c([
|
|
20181
|
+
decorators_js.query(".split-view")
|
|
20182
|
+
], FlowUiSplitView.prototype, "splitView", 2);
|
|
20174
20183
|
__decorateClass$c([
|
|
20175
20184
|
decorators_js.property({ attribute: "no-drag-close", type: Boolean })
|
|
20176
20185
|
], FlowUiSplitView.prototype, "noDragClose", 2);
|
|
@@ -20180,12 +20189,6 @@ __decorateClass$c([
|
|
|
20180
20189
|
__decorateClass$c([
|
|
20181
20190
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
20182
20191
|
], FlowUiSplitView.prototype, "vertical", 2);
|
|
20183
|
-
__decorateClass$c([
|
|
20184
|
-
decorators_js.query(".split-view__panel-slot")
|
|
20185
|
-
], FlowUiSplitView.prototype, "panelSlot", 2);
|
|
20186
|
-
__decorateClass$c([
|
|
20187
|
-
decorators_js.query(".split-view")
|
|
20188
|
-
], FlowUiSplitView.prototype, "splitView", 2);
|
|
20189
20192
|
__decorateClass$c([
|
|
20190
20193
|
decorators_js.property({ reflect: true, type: Boolean })
|
|
20191
20194
|
], FlowUiSplitView.prototype, "dragging", 2);
|
|
@@ -20402,6 +20405,7 @@ class FlowUiStepper extends FlowRdfElement {
|
|
|
20402
20405
|
this.mutationObserver.observe(this, { attributes: true, childList: true, subtree: true });
|
|
20403
20406
|
});
|
|
20404
20407
|
}
|
|
20408
|
+
/** Mark the specified panel as `complete` */
|
|
20405
20409
|
setComplete(panelName, complete = true) {
|
|
20406
20410
|
const panel = this.panels.find((el) => el.name === panelName);
|
|
20407
20411
|
if (panel && panel.complete !== complete) {
|
|
@@ -23385,6 +23389,7 @@ const styles$3 = lit.css`
|
|
|
23385
23389
|
--background-color: var(--flow-ui-color-primary-50);
|
|
23386
23390
|
--border-color: var(--flow-ui-color-primary-300);
|
|
23387
23391
|
--color: var(--flow-ui-color-primary-500);
|
|
23392
|
+
--flow-ui-button-text-transform: none;
|
|
23388
23393
|
}
|
|
23389
23394
|
|
|
23390
23395
|
.button {
|
|
@@ -24021,6 +24026,7 @@ const _FlowUiTreeItem = class _FlowUiTreeItem extends FlowRdfElement {
|
|
|
24021
24026
|
this.lazy = false;
|
|
24022
24027
|
this.size = "medium";
|
|
24023
24028
|
}
|
|
24029
|
+
/** @internal */
|
|
24024
24030
|
static isTreeItem(node) {
|
|
24025
24031
|
return node instanceof Element && node.getAttribute("role") === "treeitem";
|
|
24026
24032
|
}
|
|
@@ -24778,7 +24784,7 @@ function registerComponents() {
|
|
|
24778
24784
|
FlowUiVisuallyHidden.define("flow-ui-visually-hidden");
|
|
24779
24785
|
}
|
|
24780
24786
|
|
|
24781
|
-
const version = "4.0.0
|
|
24787
|
+
const version = "4.0.0";
|
|
24782
24788
|
|
|
24783
24789
|
const CONSOLE_HIGHLIGHT_STYLE = `
|
|
24784
24790
|
padding: 2px 4px;
|
|
@@ -24865,6 +24871,7 @@ const translation = {
|
|
|
24865
24871
|
const es = translation;
|
|
24866
24872
|
|
|
24867
24873
|
function initialize() {
|
|
24874
|
+
initializeChartJs();
|
|
24868
24875
|
registerTranslation(en);
|
|
24869
24876
|
registerTranslation(enGB);
|
|
24870
24877
|
registerTranslation(es);
|
|
@@ -24942,7 +24949,6 @@ exports.addIcons = addIcons;
|
|
|
24942
24949
|
exports.filterRuleSet = filterRuleSet;
|
|
24943
24950
|
exports.flowQueryConverter = converter$3;
|
|
24944
24951
|
exports.getAnimationNames = getAnimationNames;
|
|
24945
|
-
exports.getBasePath = getBasePath;
|
|
24946
24952
|
exports.getEasingNames = getEasingNames;
|
|
24947
24953
|
exports.initialize = initialize;
|
|
24948
24954
|
exports.initializeChartJs = initializeChartJs;
|
|
@@ -24955,7 +24961,6 @@ exports.registerComponents = registerComponents;
|
|
|
24955
24961
|
exports.registerIconLibrary = registerIconLibrary;
|
|
24956
24962
|
exports.registerTranslation = registerTranslation;
|
|
24957
24963
|
exports.renameRuleSetFields = renameRuleSetFields;
|
|
24958
|
-
exports.setBasePath = setBasePath;
|
|
24959
24964
|
exports.setDefaultLocale = setDefaultLocale;
|
|
24960
24965
|
exports.setDefaultTimeZone = setDefaultTimeZone;
|
|
24961
24966
|
exports.transformRuleSet = transformRuleSet;
|