@emuanalytics/flow-rdf-ui 0.0.18 → 0.0.20
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 +325 -305
- package/dist/flow-rdf-ui.d.ts +6 -1
- package/dist/flow-rdf-ui.js +311 -30
- package/dist/flow-rdf-ui.umd.cjs +311 -30
- package/dist/vscode.html-custom-data.json +64 -59
- package/package.json +2 -1
package/dist/flow-rdf-ui.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { ChartOptions } from 'chart.js';
|
|
|
6
6
|
import { ChartTypeRegistry } from 'chart.js';
|
|
7
7
|
import { CSSResultGroup } from 'lit';
|
|
8
8
|
import { LitElement } from 'lit';
|
|
9
|
+
import { MatrixDataPoint } from 'chartjs-chart-matrix';
|
|
9
10
|
import { Plugin as Plugin_2 } from 'chart.js';
|
|
10
11
|
import { Point } from 'chart.js';
|
|
11
12
|
import { PropertyValueMap } from 'lit';
|
|
@@ -691,7 +692,7 @@ export declare class FlowChart extends FlowRdfElement {
|
|
|
691
692
|
private _chartRef;
|
|
692
693
|
private _chart;
|
|
693
694
|
/** The Chart.js chart instance. */
|
|
694
|
-
get chart(): ChartJs<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint | null)[], unknown>;
|
|
695
|
+
get chart(): ChartJs<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint | MatrixDataPoint | null)[], unknown>;
|
|
695
696
|
/** The Chart.js chart type (e.g `line`, `bar` or a custom type). */
|
|
696
697
|
type: string;
|
|
697
698
|
/** The Chart.js `options` object. */
|
|
@@ -3215,6 +3216,10 @@ export declare class FlowTabPanel extends FlowRdfElement {
|
|
|
3215
3216
|
name: string;
|
|
3216
3217
|
/** When true, the tab panel will be shown. */
|
|
3217
3218
|
active: boolean;
|
|
3219
|
+
/**
|
|
3220
|
+
* Indicates whether the panel is scrollable. By default overflow is hidden.
|
|
3221
|
+
*/
|
|
3222
|
+
scrollable: boolean;
|
|
3218
3223
|
connectedCallback(): void;
|
|
3219
3224
|
handleActiveChange(): void;
|
|
3220
3225
|
render(): TemplateResult<1>;
|
package/dist/flow-rdf-ui.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
import { DatasetController, Element as Element$1, defaults as defaults$1, Chart, Animations, _adapters, DoughnutController, PolarAreaController, Scale, LinearScale, BarController, LineController, ScatterController, LineElement, PointElement, BarElement, CategoryScale, LogarithmicScale, TimeScale, TimeSeriesScale, Legend, Tooltip, Title, Interaction } from "chart.js";
|
|
2
8
|
import { Chart as Chart2 } from "chart.js";
|
|
3
9
|
/**
|
|
4
10
|
* @license
|
|
@@ -8081,7 +8087,7 @@ const styles$I = i$8`
|
|
|
8081
8087
|
position: relative;
|
|
8082
8088
|
width: 100%;
|
|
8083
8089
|
height: 100%;
|
|
8084
|
-
padding: var(--flow-ui-spacing-x-small);
|
|
8090
|
+
/* padding: var(--flow-ui-spacing-x-small); */
|
|
8085
8091
|
}
|
|
8086
8092
|
`;
|
|
8087
8093
|
/*!
|
|
@@ -9236,6 +9242,216 @@ function _isDomSupported() {
|
|
|
9236
9242
|
}
|
|
9237
9243
|
return passiveSupported;
|
|
9238
9244
|
})();
|
|
9245
|
+
/*!
|
|
9246
|
+
* chartjs-chart-matrix v2.0.1
|
|
9247
|
+
* https://chartjs-chart-matrix.pages.dev/
|
|
9248
|
+
* (c) 2023 Jukka Kurkela
|
|
9249
|
+
* Released under the MIT license
|
|
9250
|
+
*/
|
|
9251
|
+
var version$2 = "2.0.1";
|
|
9252
|
+
class MatrixController extends DatasetController {
|
|
9253
|
+
initialize() {
|
|
9254
|
+
this.enableOptionSharing = true;
|
|
9255
|
+
super.initialize();
|
|
9256
|
+
}
|
|
9257
|
+
update(mode) {
|
|
9258
|
+
const me = this;
|
|
9259
|
+
const meta = me._cachedMeta;
|
|
9260
|
+
me.updateElements(meta.data, 0, meta.data.length, mode);
|
|
9261
|
+
}
|
|
9262
|
+
updateElements(rects, start, count, mode) {
|
|
9263
|
+
const me = this;
|
|
9264
|
+
const reset = mode === "reset";
|
|
9265
|
+
const { xScale, yScale } = me._cachedMeta;
|
|
9266
|
+
const firstOpts = me.resolveDataElementOptions(start, mode);
|
|
9267
|
+
const sharedOptions = me.getSharedOptions(mode, rects[start], firstOpts);
|
|
9268
|
+
for (let i3 = start; i3 < start + count; i3++) {
|
|
9269
|
+
const parsed = !reset && me.getParsed(i3);
|
|
9270
|
+
const x2 = reset ? xScale.getBasePixel() : xScale.getPixelForValue(parsed.x);
|
|
9271
|
+
const y2 = reset ? yScale.getBasePixel() : yScale.getPixelForValue(parsed.y);
|
|
9272
|
+
const options = me.resolveDataElementOptions(i3, mode);
|
|
9273
|
+
const { width, height, anchorX, anchorY } = options;
|
|
9274
|
+
const properties = {
|
|
9275
|
+
x: resolveX(anchorX, x2, width),
|
|
9276
|
+
y: resolveY(anchorY, y2, height),
|
|
9277
|
+
width,
|
|
9278
|
+
height,
|
|
9279
|
+
options
|
|
9280
|
+
};
|
|
9281
|
+
me.updateElement(rects[i3], i3, properties, mode);
|
|
9282
|
+
}
|
|
9283
|
+
me.updateSharedOptions(sharedOptions, mode);
|
|
9284
|
+
}
|
|
9285
|
+
draw() {
|
|
9286
|
+
const me = this;
|
|
9287
|
+
const data = me.getMeta().data || [];
|
|
9288
|
+
let i3, ilen;
|
|
9289
|
+
for (i3 = 0, ilen = data.length; i3 < ilen; ++i3) {
|
|
9290
|
+
data[i3].draw(me._ctx);
|
|
9291
|
+
}
|
|
9292
|
+
}
|
|
9293
|
+
}
|
|
9294
|
+
__publicField(MatrixController, "id", "matrix");
|
|
9295
|
+
__publicField(MatrixController, "version", version$2);
|
|
9296
|
+
__publicField(MatrixController, "defaults", {
|
|
9297
|
+
dataElementType: "matrix",
|
|
9298
|
+
animations: {
|
|
9299
|
+
numbers: {
|
|
9300
|
+
type: "number",
|
|
9301
|
+
properties: ["x", "y", "width", "height"]
|
|
9302
|
+
}
|
|
9303
|
+
}
|
|
9304
|
+
});
|
|
9305
|
+
__publicField(MatrixController, "overrides", {
|
|
9306
|
+
interaction: {
|
|
9307
|
+
mode: "nearest",
|
|
9308
|
+
intersect: true
|
|
9309
|
+
},
|
|
9310
|
+
scales: {
|
|
9311
|
+
x: {
|
|
9312
|
+
type: "linear",
|
|
9313
|
+
offset: true
|
|
9314
|
+
},
|
|
9315
|
+
y: {
|
|
9316
|
+
type: "linear",
|
|
9317
|
+
reverse: true
|
|
9318
|
+
}
|
|
9319
|
+
}
|
|
9320
|
+
});
|
|
9321
|
+
function resolveX(anchorX, x2, width) {
|
|
9322
|
+
if (anchorX === "left" || anchorX === "start") {
|
|
9323
|
+
return x2;
|
|
9324
|
+
}
|
|
9325
|
+
if (anchorX === "right" || anchorX === "end") {
|
|
9326
|
+
return x2 - width;
|
|
9327
|
+
}
|
|
9328
|
+
return x2 - width / 2;
|
|
9329
|
+
}
|
|
9330
|
+
function resolveY(anchorY, y2, height) {
|
|
9331
|
+
if (anchorY === "top" || anchorY === "start") {
|
|
9332
|
+
return y2;
|
|
9333
|
+
}
|
|
9334
|
+
if (anchorY === "bottom" || anchorY === "end") {
|
|
9335
|
+
return y2 - height;
|
|
9336
|
+
}
|
|
9337
|
+
return y2 - height / 2;
|
|
9338
|
+
}
|
|
9339
|
+
function getBounds(rect, useFinalPosition) {
|
|
9340
|
+
const { x: x2, y: y2, width, height } = rect.getProps(["x", "y", "width", "height"], useFinalPosition);
|
|
9341
|
+
return { left: x2, top: y2, right: x2 + width, bottom: y2 + height };
|
|
9342
|
+
}
|
|
9343
|
+
function limit(value, min2, max2) {
|
|
9344
|
+
return Math.max(Math.min(value, max2), min2);
|
|
9345
|
+
}
|
|
9346
|
+
function parseBorderWidth(rect, maxW, maxH) {
|
|
9347
|
+
const value = rect.options.borderWidth;
|
|
9348
|
+
let t2, r2, b2, l2;
|
|
9349
|
+
if (isObject$1(value)) {
|
|
9350
|
+
t2 = +value.top || 0;
|
|
9351
|
+
r2 = +value.right || 0;
|
|
9352
|
+
b2 = +value.bottom || 0;
|
|
9353
|
+
l2 = +value.left || 0;
|
|
9354
|
+
} else {
|
|
9355
|
+
t2 = r2 = b2 = l2 = +value || 0;
|
|
9356
|
+
}
|
|
9357
|
+
return {
|
|
9358
|
+
t: limit(t2, 0, maxH),
|
|
9359
|
+
r: limit(r2, 0, maxW),
|
|
9360
|
+
b: limit(b2, 0, maxH),
|
|
9361
|
+
l: limit(l2, 0, maxW)
|
|
9362
|
+
};
|
|
9363
|
+
}
|
|
9364
|
+
function boundingRects(rect) {
|
|
9365
|
+
const bounds = getBounds(rect);
|
|
9366
|
+
const width = bounds.right - bounds.left;
|
|
9367
|
+
const height = bounds.bottom - bounds.top;
|
|
9368
|
+
const border = parseBorderWidth(rect, width / 2, height / 2);
|
|
9369
|
+
return {
|
|
9370
|
+
outer: {
|
|
9371
|
+
x: bounds.left,
|
|
9372
|
+
y: bounds.top,
|
|
9373
|
+
w: width,
|
|
9374
|
+
h: height
|
|
9375
|
+
},
|
|
9376
|
+
inner: {
|
|
9377
|
+
x: bounds.left + border.l,
|
|
9378
|
+
y: bounds.top + border.t,
|
|
9379
|
+
w: width - border.l - border.r,
|
|
9380
|
+
h: height - border.t - border.b
|
|
9381
|
+
}
|
|
9382
|
+
};
|
|
9383
|
+
}
|
|
9384
|
+
function inRange(rect, x2, y2, useFinalPosition) {
|
|
9385
|
+
const skipX = x2 === null;
|
|
9386
|
+
const skipY = y2 === null;
|
|
9387
|
+
const bounds = !rect || skipX && skipY ? false : getBounds(rect, useFinalPosition);
|
|
9388
|
+
return bounds && (skipX || x2 >= bounds.left && x2 <= bounds.right) && (skipY || y2 >= bounds.top && y2 <= bounds.bottom);
|
|
9389
|
+
}
|
|
9390
|
+
class MatrixElement extends Element$1 {
|
|
9391
|
+
constructor(cfg) {
|
|
9392
|
+
super();
|
|
9393
|
+
this.options = void 0;
|
|
9394
|
+
this.width = void 0;
|
|
9395
|
+
this.height = void 0;
|
|
9396
|
+
if (cfg) {
|
|
9397
|
+
Object.assign(this, cfg);
|
|
9398
|
+
}
|
|
9399
|
+
}
|
|
9400
|
+
draw(ctx) {
|
|
9401
|
+
const options = this.options;
|
|
9402
|
+
const { inner, outer } = boundingRects(this);
|
|
9403
|
+
const radius = toTRBLCorners(options.borderRadius);
|
|
9404
|
+
ctx.save();
|
|
9405
|
+
if (outer.w !== inner.w || outer.h !== inner.h) {
|
|
9406
|
+
ctx.beginPath();
|
|
9407
|
+
addRoundedRectPath(ctx, { x: outer.x, y: outer.y, w: outer.w, h: outer.h, radius });
|
|
9408
|
+
addRoundedRectPath(ctx, { x: inner.x, y: inner.y, w: inner.w, h: inner.h, radius });
|
|
9409
|
+
ctx.fillStyle = options.backgroundColor;
|
|
9410
|
+
ctx.fill();
|
|
9411
|
+
ctx.fillStyle = options.borderColor;
|
|
9412
|
+
ctx.fill("evenodd");
|
|
9413
|
+
} else {
|
|
9414
|
+
ctx.beginPath();
|
|
9415
|
+
addRoundedRectPath(ctx, { x: inner.x, y: inner.y, w: inner.w, h: inner.h, radius });
|
|
9416
|
+
ctx.fillStyle = options.backgroundColor;
|
|
9417
|
+
ctx.fill();
|
|
9418
|
+
}
|
|
9419
|
+
ctx.restore();
|
|
9420
|
+
}
|
|
9421
|
+
inRange(mouseX, mouseY, useFinalPosition) {
|
|
9422
|
+
return inRange(this, mouseX, mouseY, useFinalPosition);
|
|
9423
|
+
}
|
|
9424
|
+
inXRange(mouseX, useFinalPosition) {
|
|
9425
|
+
return inRange(this, mouseX, null, useFinalPosition);
|
|
9426
|
+
}
|
|
9427
|
+
inYRange(mouseY, useFinalPosition) {
|
|
9428
|
+
return inRange(this, null, mouseY, useFinalPosition);
|
|
9429
|
+
}
|
|
9430
|
+
getCenterPoint(useFinalPosition) {
|
|
9431
|
+
const { x: x2, y: y2, width, height } = this.getProps(["x", "y", "width", "height"], useFinalPosition);
|
|
9432
|
+
return {
|
|
9433
|
+
x: x2 + width / 2,
|
|
9434
|
+
y: y2 + height / 2
|
|
9435
|
+
};
|
|
9436
|
+
}
|
|
9437
|
+
tooltipPosition() {
|
|
9438
|
+
return this.getCenterPoint();
|
|
9439
|
+
}
|
|
9440
|
+
getRange(axis) {
|
|
9441
|
+
return axis === "x" ? this.width / 2 : this.height / 2;
|
|
9442
|
+
}
|
|
9443
|
+
}
|
|
9444
|
+
__publicField(MatrixElement, "id", "matrix");
|
|
9445
|
+
__publicField(MatrixElement, "defaults", {
|
|
9446
|
+
backgroundColor: void 0,
|
|
9447
|
+
borderColor: void 0,
|
|
9448
|
+
borderWidth: void 0,
|
|
9449
|
+
borderRadius: 0,
|
|
9450
|
+
anchorX: "center",
|
|
9451
|
+
anchorY: "center",
|
|
9452
|
+
width: 20,
|
|
9453
|
+
height: 20
|
|
9454
|
+
});
|
|
9239
9455
|
/*!
|
|
9240
9456
|
* chartjs-plugin-annotation v3.0.1
|
|
9241
9457
|
* https://www.chartjs.org/chartjs-plugin-annotation/index
|
|
@@ -10044,15 +10260,15 @@ function verifyScaleOptions(annotations, scales) {
|
|
|
10044
10260
|
verifyScaleIDs(annotation2, scales);
|
|
10045
10261
|
}
|
|
10046
10262
|
}
|
|
10047
|
-
function changeScaleLimit(scale, range,
|
|
10048
|
-
if (isNumberFinite(range[
|
|
10049
|
-
const changed = scale[
|
|
10050
|
-
scale[
|
|
10263
|
+
function changeScaleLimit(scale, range, limit2, suggestedLimit) {
|
|
10264
|
+
if (isNumberFinite(range[limit2]) && !scaleLimitDefined(scale.options, limit2, suggestedLimit)) {
|
|
10265
|
+
const changed = scale[limit2] !== range[limit2];
|
|
10266
|
+
scale[limit2] = range[limit2];
|
|
10051
10267
|
return changed;
|
|
10052
10268
|
}
|
|
10053
10269
|
}
|
|
10054
|
-
function scaleLimitDefined(scaleOptions,
|
|
10055
|
-
return defined(scaleOptions[
|
|
10270
|
+
function scaleLimitDefined(scaleOptions, limit2, suggestedLimit) {
|
|
10271
|
+
return defined(scaleOptions[limit2]) || defined(scaleOptions[suggestedLimit]);
|
|
10056
10272
|
}
|
|
10057
10273
|
function verifyScaleIDs(annotation2, scales) {
|
|
10058
10274
|
for (const key of ["scaleID", "xScaleID", "yScaleID"]) {
|
|
@@ -10621,8 +10837,8 @@ LineAnnotation.defaultRoutes = {
|
|
|
10621
10837
|
borderColor: "color"
|
|
10622
10838
|
};
|
|
10623
10839
|
function inAxisRange(element, { mouseX, mouseY }, axis, { hBorderWidth, useFinalPosition }) {
|
|
10624
|
-
const
|
|
10625
|
-
return
|
|
10840
|
+
const limit2 = rangeLimit(mouseX, mouseY, element.getProps(["x", "y", "x2", "y2"], useFinalPosition), axis);
|
|
10841
|
+
return limit2.value >= limit2.start - hBorderWidth && limit2.value <= limit2.end + hBorderWidth || isOnLabel(element, { mouseX, mouseY }, useFinalPosition, axis);
|
|
10626
10842
|
}
|
|
10627
10843
|
function isLineInArea({ x: x2, y: y2, x2: x22, y2: y22 }, { top, right, bottom, left }) {
|
|
10628
10844
|
return !(x2 < left && x22 < left || x2 > right && x22 > right || y2 < top && y22 < top || y2 > bottom && y22 > bottom);
|
|
@@ -10861,9 +11077,9 @@ class EllipseAnnotation extends Element$1 {
|
|
|
10861
11077
|
}
|
|
10862
11078
|
const { x: x2, y: y2, x2: x22, y2: y22 } = this.getProps(["x", "y", "x2", "y2"], useFinalPosition);
|
|
10863
11079
|
const hBorderWidth = borderWidth / 2;
|
|
10864
|
-
const
|
|
11080
|
+
const limit2 = axis === "y" ? { start: y2, end: y22 } : { start: x2, end: x22 };
|
|
10865
11081
|
const rotatedPoint = rotated({ x: mouseX, y: mouseY }, this.getCenterPoint(useFinalPosition), toRadians(-rotation));
|
|
10866
|
-
return rotatedPoint[axis] >=
|
|
11082
|
+
return rotatedPoint[axis] >= limit2.start - hBorderWidth - EPSILON && rotatedPoint[axis] <= limit2.end + hBorderWidth + EPSILON;
|
|
10867
11083
|
}
|
|
10868
11084
|
getCenterPoint(useFinalPosition) {
|
|
10869
11085
|
return getElementCenterPoint(this, useFinalPosition);
|
|
@@ -10946,8 +11162,8 @@ class PointAnnotation extends Element$1 {
|
|
|
10946
11162
|
return inPointRange({ x: mouseX, y: mouseY }, this.getCenterPoint(useFinalPosition), width / 2, borderWidth);
|
|
10947
11163
|
}
|
|
10948
11164
|
const hBorderWidth = borderWidth / 2;
|
|
10949
|
-
const
|
|
10950
|
-
return
|
|
11165
|
+
const limit2 = axis === "y" ? { start: y2, end: y22, value: mouseY } : { start: x2, end: x22, value: mouseX };
|
|
11166
|
+
return limit2.value >= limit2.start - hBorderWidth && limit2.value <= limit2.end + hBorderWidth;
|
|
10951
11167
|
}
|
|
10952
11168
|
getCenterPoint(useFinalPosition) {
|
|
10953
11169
|
return getElementCenterPoint(this, useFinalPosition);
|
|
@@ -13166,16 +13382,27 @@ function initializeChartJs() {
|
|
|
13166
13382
|
Legend,
|
|
13167
13383
|
Tooltip,
|
|
13168
13384
|
Title,
|
|
13169
|
-
annotation
|
|
13385
|
+
annotation,
|
|
13386
|
+
MatrixController,
|
|
13387
|
+
MatrixElement
|
|
13170
13388
|
);
|
|
13171
13389
|
Tooltip.positioners.cursor = CursorPositioner;
|
|
13172
13390
|
Interaction.modes.interpolate = Interpolate;
|
|
13173
13391
|
Chart.defaults.animation = false;
|
|
13174
13392
|
Chart.defaults.responsive = true;
|
|
13175
13393
|
Chart.defaults.maintainAspectRatio = false;
|
|
13394
|
+
Chart.defaults.layout.padding = {
|
|
13395
|
+
top: 5,
|
|
13396
|
+
right: 10,
|
|
13397
|
+
bottom: 5,
|
|
13398
|
+
left: 5
|
|
13399
|
+
};
|
|
13176
13400
|
Chart.defaults.plugins.legend.position = "bottom";
|
|
13177
13401
|
Chart.defaults.plugins.legend.align = "start";
|
|
13178
13402
|
Chart.defaults.plugins.tooltip.position = "cursor";
|
|
13403
|
+
Chart.defaults.plugins.title.font = { size: 12 };
|
|
13404
|
+
Chart.defaults.plugins.title.align = "start";
|
|
13405
|
+
Chart.defaults.plugins.title.padding = { top: 0, bottom: 10 };
|
|
13179
13406
|
}
|
|
13180
13407
|
function registerChartComponent(...components) {
|
|
13181
13408
|
Chart.register(...components);
|
|
@@ -19540,14 +19767,24 @@ const styles$r = i$8`
|
|
|
19540
19767
|
overflow: hidden;
|
|
19541
19768
|
}
|
|
19542
19769
|
|
|
19770
|
+
/* For scrollable panel - enable scroll and (optionally) add padding to scrollable content */
|
|
19543
19771
|
.panel--scrollable .panel__body-wrapper {
|
|
19544
19772
|
overflow-y: auto;
|
|
19545
19773
|
}
|
|
19546
19774
|
|
|
19547
|
-
.panel--with-padding .panel__body {
|
|
19775
|
+
.panel--scrollable.panel--with-padding .panel__body {
|
|
19776
|
+
padding: var(--padding);
|
|
19777
|
+
}
|
|
19778
|
+
|
|
19779
|
+
/* For non-scrollable panel - fix body at 100% and disable scroll. Padding is added to wrapper */
|
|
19780
|
+
.panel.panel--with-padding:not(.panel--scrollable) .panel__body-wrapper {
|
|
19548
19781
|
padding: var(--padding);
|
|
19549
19782
|
}
|
|
19550
19783
|
|
|
19784
|
+
.panel:not(.panel--scrollable) .panel__body {
|
|
19785
|
+
height: 100%;
|
|
19786
|
+
overflow-y: hidden;
|
|
19787
|
+
}
|
|
19551
19788
|
`;
|
|
19552
19789
|
var __defProp$r = Object.defineProperty;
|
|
19553
19790
|
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
@@ -27835,7 +28072,8 @@ const styles$9 = i$8`
|
|
|
27835
28072
|
}
|
|
27836
28073
|
|
|
27837
28074
|
/* Ensure nav is positioned when tab-group is placed in a split panel and the panel is closed */
|
|
27838
|
-
.tab-group--end,
|
|
28075
|
+
.tab-group--end,
|
|
28076
|
+
.tab-group--bottom {
|
|
27839
28077
|
justify-content: end;
|
|
27840
28078
|
}
|
|
27841
28079
|
|
|
@@ -27902,6 +28140,11 @@ const styles$9 = i$8`
|
|
|
27902
28140
|
width: var(--flow-ui-spacing-x-large);
|
|
27903
28141
|
}
|
|
27904
28142
|
|
|
28143
|
+
/* Make tab panels take up full height */
|
|
28144
|
+
::slotted(flow-ui-tab-panel) {
|
|
28145
|
+
height: 100%;
|
|
28146
|
+
}
|
|
28147
|
+
|
|
27905
28148
|
/*
|
|
27906
28149
|
* Top
|
|
27907
28150
|
*/
|
|
@@ -28040,7 +28283,7 @@ const styles$9 = i$8`
|
|
|
28040
28283
|
|
|
28041
28284
|
.tab-group--start .tab-group__track {
|
|
28042
28285
|
height: 100%;
|
|
28043
|
-
right:0;
|
|
28286
|
+
right: 0;
|
|
28044
28287
|
border-right: solid var(--track-width) var(--track-color);
|
|
28045
28288
|
}
|
|
28046
28289
|
|
|
@@ -28181,7 +28424,6 @@ const styles$9 = i$8`
|
|
|
28181
28424
|
top: auto;
|
|
28182
28425
|
bottom: 0;
|
|
28183
28426
|
}
|
|
28184
|
-
|
|
28185
28427
|
`;
|
|
28186
28428
|
var __defProp$9 = Object.defineProperty;
|
|
28187
28429
|
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
@@ -28580,18 +28822,47 @@ const styles$8 = i$8`
|
|
|
28580
28822
|
${componentStyles}
|
|
28581
28823
|
|
|
28582
28824
|
:host {
|
|
28583
|
-
--padding: 0;
|
|
28584
28825
|
display: none;
|
|
28826
|
+
min-height: 0;
|
|
28827
|
+
|
|
28828
|
+
--padding: 0;
|
|
28585
28829
|
}
|
|
28586
28830
|
|
|
28587
28831
|
:host([active]) {
|
|
28588
28832
|
display: block;
|
|
28589
28833
|
}
|
|
28590
28834
|
|
|
28591
|
-
.
|
|
28592
|
-
|
|
28835
|
+
.panel {
|
|
28836
|
+
height: 100%;
|
|
28837
|
+
display: flex;
|
|
28838
|
+
flex-direction: column;
|
|
28839
|
+
}
|
|
28840
|
+
|
|
28841
|
+
/* Body */
|
|
28842
|
+
.panel__body-wrapper {
|
|
28843
|
+
flex: 1;
|
|
28844
|
+
min-height: 0;
|
|
28845
|
+
overflow: hidden;
|
|
28846
|
+
}
|
|
28847
|
+
|
|
28848
|
+
/* For scrollable panel - enable scroll and (optionally) add padding to scrollable content */
|
|
28849
|
+
.panel--scrollable .panel__body-wrapper {
|
|
28850
|
+
overflow-y: auto;
|
|
28851
|
+
}
|
|
28852
|
+
|
|
28853
|
+
.panel--scrollable .panel__body {
|
|
28854
|
+
padding: var(--padding);
|
|
28855
|
+
}
|
|
28856
|
+
|
|
28857
|
+
/* For non-scrollable panel - fix body at 100% and disable scroll. Padding is added to wrapper */
|
|
28858
|
+
.panel:not(.panel--scrollable) .panel__body-wrapper {
|
|
28593
28859
|
padding: var(--padding);
|
|
28594
28860
|
}
|
|
28861
|
+
|
|
28862
|
+
.panel:not(.panel--scrollable) .panel__body {
|
|
28863
|
+
height: 100%;
|
|
28864
|
+
overflow-y: hidden;
|
|
28865
|
+
}
|
|
28595
28866
|
`;
|
|
28596
28867
|
var __defProp$8 = Object.defineProperty;
|
|
28597
28868
|
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
@@ -28612,6 +28883,7 @@ let FlowTabPanel = class extends FlowRdfElement {
|
|
|
28612
28883
|
this.componentId = `flow-ui-tab-panel-${this.attrId}`;
|
|
28613
28884
|
this.name = "";
|
|
28614
28885
|
this.active = false;
|
|
28886
|
+
this.scrollable = false;
|
|
28615
28887
|
}
|
|
28616
28888
|
connectedCallback() {
|
|
28617
28889
|
super.connectedCallback();
|
|
@@ -28623,13 +28895,19 @@ let FlowTabPanel = class extends FlowRdfElement {
|
|
|
28623
28895
|
}
|
|
28624
28896
|
render() {
|
|
28625
28897
|
return x$2`
|
|
28626
|
-
<
|
|
28627
|
-
part="base"
|
|
28898
|
+
<div
|
|
28628
28899
|
class=${o$9({
|
|
28629
|
-
|
|
28630
|
-
"
|
|
28900
|
+
panel: true,
|
|
28901
|
+
"panel--active": this.active,
|
|
28902
|
+
"panel--scrollable": this.scrollable
|
|
28631
28903
|
})}
|
|
28632
|
-
|
|
28904
|
+
>
|
|
28905
|
+
<div class="panel__body-wrapper">
|
|
28906
|
+
<div part="body" class="panel__body">
|
|
28907
|
+
<slot></slot>
|
|
28908
|
+
</div>
|
|
28909
|
+
</div>
|
|
28910
|
+
</div>
|
|
28633
28911
|
`;
|
|
28634
28912
|
}
|
|
28635
28913
|
};
|
|
@@ -28640,6 +28918,9 @@ __decorateClass$8([
|
|
|
28640
28918
|
__decorateClass$8([
|
|
28641
28919
|
n$8({ type: Boolean, reflect: true })
|
|
28642
28920
|
], FlowTabPanel.prototype, "active", 2);
|
|
28921
|
+
__decorateClass$8([
|
|
28922
|
+
n$8({ type: Boolean, reflect: true })
|
|
28923
|
+
], FlowTabPanel.prototype, "scrollable", 2);
|
|
28643
28924
|
__decorateClass$8([
|
|
28644
28925
|
watch("active")
|
|
28645
28926
|
], FlowTabPanel.prototype, "handleActiveChange", 1);
|
|
@@ -31526,7 +31807,7 @@ const styles = i$8`
|
|
|
31526
31807
|
}
|
|
31527
31808
|
|
|
31528
31809
|
`;
|
|
31529
|
-
var
|
|
31810
|
+
var __defProp2 = Object.defineProperty;
|
|
31530
31811
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
31531
31812
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
31532
31813
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
@@ -31534,7 +31815,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
31534
31815
|
if (decorator = decorators[i3])
|
|
31535
31816
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
31536
31817
|
if (kind && result)
|
|
31537
|
-
|
|
31818
|
+
__defProp2(target, key, result);
|
|
31538
31819
|
return result;
|
|
31539
31820
|
};
|
|
31540
31821
|
class FlowToolButton extends FlowRdfElement {
|
|
@@ -31743,7 +32024,7 @@ const translation = {
|
|
|
31743
32024
|
toggleColorFormat: "Toggle color format"
|
|
31744
32025
|
};
|
|
31745
32026
|
registerTranslation(translation);
|
|
31746
|
-
const version = "0.0.
|
|
32027
|
+
const version = "0.0.20";
|
|
31747
32028
|
const CONSOLE_HIGHLIGHT_STYLE = `
|
|
31748
32029
|
padding: 2px 4px;
|
|
31749
32030
|
border-radius: 2px;
|