@ixfx/components 0.5.4 → 0.5.6
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/bundle/index.d.ts +57 -7
- package/bundle/index.d.ts.map +1 -1
- package/bundle/index.js +301 -37
- package/bundle/index.js.map +1 -1
- package/dist/{button-CTE8crYn.js → button-CU8eLcxB.js} +15 -1
- package/dist/button-CU8eLcxB.js.map +1 -0
- package/dist/button.d.ts +1 -0
- package/dist/button.d.ts.map +1 -1
- package/dist/button.js +1 -1
- package/dist/{colour-picker-C3Ag4uh-.js → colour-picker-Bb795sjX.js} +2 -2
- package/dist/{colour-picker-C3Ag4uh-.js.map → colour-picker-Bb795sjX.js.map} +1 -1
- package/dist/colour-picker.js +1 -1
- package/dist/crumbs.js +1 -1
- package/dist/index.d.ts +56 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +285 -38
- package/dist/index.js.map +1 -1
- package/dist/{menu-g6yd7ddN.js → menu-BYyeCAF7.js} +2 -2
- package/dist/{menu-g6yd7ddN.js.map → menu-BYyeCAF7.js.map} +1 -1
- package/dist/{menu-item-NUKwJ4s5.js → menu-item-BttvL89f.js} +3 -2
- package/dist/menu-item-BttvL89f.js.map +1 -0
- package/dist/menu-item-DSyf9f_L.d.ts.map +1 -1
- package/dist/menu.js +2 -2
- package/dist/{popup-DiWMxsWj.js → popup-D80sj2QC.js} +5 -3
- package/dist/popup-D80sj2QC.js.map +1 -0
- package/docs-user/README.md +1 -0
- package/docs-user/button.md +22 -1
- package/docs-user/snackbar.md +92 -0
- package/docs-user/vertical-list.md +37 -1
- package/package.json +1 -1
- package/dist/button-CTE8crYn.js.map +0 -1
- package/dist/menu-item-NUKwJ4s5.js.map +0 -1
- package/dist/popup-DiWMxsWj.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -9,11 +9,11 @@ import { a as createFuzzySearch, i as createAcCompletionProvider, n as IncrSearc
|
|
|
9
9
|
import { i as ICON_CLOSE, n as ICON_CHECK, r as ICON_CHEVRON_DOWN, t as ICON_CARET_RIGHT } from "./defaults-DcE8RQJc.js";
|
|
10
10
|
import "./icons.js";
|
|
11
11
|
import { t as prominenceStyles } from "./prominence-DlFShic3.js";
|
|
12
|
-
import { n as buttonStyles, t as ButtonElement } from "./button-
|
|
13
|
-
import { t as popupSurfaceStyles } from "./popup-
|
|
14
|
-
import "./menu-item-
|
|
12
|
+
import { n as buttonStyles, t as ButtonElement } from "./button-CU8eLcxB.js";
|
|
13
|
+
import { t as popupSurfaceStyles } from "./popup-D80sj2QC.js";
|
|
14
|
+
import "./menu-item-BttvL89f.js";
|
|
15
15
|
import { Checkbox } from "./checkbox.js";
|
|
16
|
-
import { n as ColourPicker, t as ColourPickerPopup } from "./colour-picker-
|
|
16
|
+
import { n as ColourPicker, t as ColourPickerPopup } from "./colour-picker-Bb795sjX.js";
|
|
17
17
|
import { LabelledRangeInput } from "./labelled-range-input.js";
|
|
18
18
|
import { t as collectDataResult } from "./data-provider-35TyWclX.js";
|
|
19
19
|
import { i as TreeDataModel, n as TreeListElement, r as TreeBaseElement, t as TreeController } from "./tree-BnvzhsAw.js";
|
|
@@ -28,7 +28,7 @@ import { t as IxfxHexEditorElement } from "./hex-editor-Bk6rxhfg.js";
|
|
|
28
28
|
import { t as RadialInputElement } from "./radial-input-DxCrt_NE.js";
|
|
29
29
|
import { LabelledRadialInput } from "./labelled-radial-input.js";
|
|
30
30
|
import { LedElement } from "./led.js";
|
|
31
|
-
import { t as menu_exports } from "./menu-
|
|
31
|
+
import { t as menu_exports } from "./menu-BYyeCAF7.js";
|
|
32
32
|
import { MillerBaseElement, MillerListElement, MillerTreeController } from "./miller.js";
|
|
33
33
|
import { a as TooltipElement, c as computeColour, i as PlotMultiAxis, l as parseColourScaleAttr, n as PlotSingleAxis, o as PlotDataSeries, r as PlotHistogram, s as applyAgeModification, t as PlotXyAxis, u as readBaseColour } from "./xy-axis-CxHC8z5E.js";
|
|
34
34
|
import { PolarPad } from "./polar-pad.js";
|
|
@@ -1184,7 +1184,6 @@ let SplitButton = class SplitButton extends ButtonElement {
|
|
|
1184
1184
|
super(..._args);
|
|
1185
1185
|
this.mode = `default`;
|
|
1186
1186
|
this.defaultValue = ``;
|
|
1187
|
-
this._compact = false;
|
|
1188
1187
|
this._selectedCommand = ``;
|
|
1189
1188
|
this._selectedLabel = ``;
|
|
1190
1189
|
this._selectedIcon = ``;
|
|
@@ -1192,7 +1191,6 @@ let SplitButton = class SplitButton extends ButtonElement {
|
|
|
1192
1191
|
this._dynamicItems = [];
|
|
1193
1192
|
this._loadingItems = false;
|
|
1194
1193
|
this._menuHasItems = false;
|
|
1195
|
-
this._widthNeeded = 0;
|
|
1196
1194
|
this._onDefaultMenuSlotChange = (e) => {
|
|
1197
1195
|
const slot = e.target;
|
|
1198
1196
|
this._menuHasItems = slot.assignedElements({ flatten: true }).length > 0;
|
|
@@ -1266,19 +1264,8 @@ let SplitButton = class SplitButton extends ButtonElement {
|
|
|
1266
1264
|
}
|
|
1267
1265
|
};
|
|
1268
1266
|
}
|
|
1269
|
-
connectedCallback() {
|
|
1270
|
-
super.connectedCallback();
|
|
1271
|
-
this._resizeObserver = new ResizeObserver(([entry]) => {
|
|
1272
|
-
if (this._compact) {
|
|
1273
|
-
if (this._widthNeeded > 0 && entry.contentRect.width >= this._widthNeeded) this._compact = false;
|
|
1274
|
-
} else this._checkOverflow();
|
|
1275
|
-
});
|
|
1276
|
-
this._resizeObserver.observe(this);
|
|
1277
|
-
}
|
|
1278
1267
|
disconnectedCallback() {
|
|
1279
1268
|
super.disconnectedCallback();
|
|
1280
|
-
this._resizeObserver?.disconnect();
|
|
1281
|
-
this._resizeObserver = void 0;
|
|
1282
1269
|
this._menuTrigger?.removeEventListener(`menu-command`, this._handleSwitcherMenuCommand);
|
|
1283
1270
|
}
|
|
1284
1271
|
firstUpdated() {
|
|
@@ -1288,19 +1275,8 @@ let SplitButton = class SplitButton extends ButtonElement {
|
|
|
1288
1275
|
}
|
|
1289
1276
|
updated(changedProperties) {
|
|
1290
1277
|
super.updated(changedProperties);
|
|
1291
|
-
this._checkOverflow();
|
|
1292
1278
|
if ((changedProperties.has(`items`) || changedProperties.has(`mode`)) && this.items && !this.itemsProvider) this._applyItems(this.items);
|
|
1293
1279
|
}
|
|
1294
|
-
_checkOverflow() {
|
|
1295
|
-
if (this._compact) return;
|
|
1296
|
-
const primary = this.shadowRoot?.querySelector(`button.primary`);
|
|
1297
|
-
if (!primary) return;
|
|
1298
|
-
if (primary.scrollWidth > primary.offsetWidth + 1) {
|
|
1299
|
-
const caret = this.shadowRoot?.querySelector(`button.caret`);
|
|
1300
|
-
this._widthNeeded = primary.scrollWidth + (caret?.offsetWidth ?? 32) + 4;
|
|
1301
|
-
this._compact = true;
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
1280
|
_applyItems(items) {
|
|
1305
1281
|
if (this.mode === `switcher`) this._applySwitcherItems(items.map((i) => ({
|
|
1306
1282
|
command: i.command,
|
|
@@ -1370,7 +1346,7 @@ let SplitButton = class SplitButton extends ButtonElement {
|
|
|
1370
1346
|
`);
|
|
1371
1347
|
}
|
|
1372
1348
|
_renderDefault() {
|
|
1373
|
-
const label =
|
|
1349
|
+
const label = this.hideLabel ? nothing : html`<span class="button-label"><slot></slot></span>`;
|
|
1374
1350
|
const menuContent = this.itemsProvider ? html`
|
|
1375
1351
|
<ixfx-menu-container slot="menu">
|
|
1376
1352
|
${this._renderLoadingOrItems(this._dynamicItems)}
|
|
@@ -1394,9 +1370,8 @@ let SplitButton = class SplitButton extends ButtonElement {
|
|
|
1394
1370
|
`;
|
|
1395
1371
|
}
|
|
1396
1372
|
_renderSwitcher() {
|
|
1397
|
-
const showLabel = !this.hideLabel && !this._compact;
|
|
1398
1373
|
const primaryIcon = this._selectedIcon ? html`<ixfx-icon class="button-icon" name="${this._selectedIcon}"></ixfx-icon>` : nothing;
|
|
1399
|
-
const primaryLabel =
|
|
1374
|
+
const primaryLabel = this.hideLabel ? nothing : html`<span class="button-label">${this._selectedLabel}</span>`;
|
|
1400
1375
|
const popupItems = this.itemsProvider ? this._renderLoadingOrItems(this._dynamicItems) : this._switcherItems.filter((i) => i.command !== this._selectedCommand).map((i) => html`
|
|
1401
1376
|
<ixfx-menu-item
|
|
1402
1377
|
command=${i.command}
|
|
@@ -1435,6 +1410,7 @@ let SplitButton = class SplitButton extends ButtonElement {
|
|
|
1435
1410
|
:host {
|
|
1436
1411
|
display: inline-flex;
|
|
1437
1412
|
max-width: 100%;
|
|
1413
|
+
min-width: var(--ixfx-split-button-min-width, 0);
|
|
1438
1414
|
vertical-align: middle;
|
|
1439
1415
|
}
|
|
1440
1416
|
|
|
@@ -1504,12 +1480,20 @@ let SplitButton = class SplitButton extends ButtonElement {
|
|
|
1504
1480
|
|
|
1505
1481
|
button.primary {
|
|
1506
1482
|
flex: 1;
|
|
1483
|
+
min-width: 0;
|
|
1507
1484
|
padding: var(--space-m, 8px) var(--space-l, 12px);
|
|
1508
1485
|
gap: 0.5em;
|
|
1509
1486
|
overflow: hidden;
|
|
1510
1487
|
white-space: nowrap;
|
|
1511
1488
|
}
|
|
1512
1489
|
|
|
1490
|
+
button.primary .button-label {
|
|
1491
|
+
flex: 0 1 auto;
|
|
1492
|
+
min-width: 0;
|
|
1493
|
+
overflow: hidden;
|
|
1494
|
+
text-overflow: ellipsis;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1513
1497
|
button.caret {
|
|
1514
1498
|
padding: var(--space-m, 8px) var(--space-s, 6px);
|
|
1515
1499
|
border-inline-start: var(--border, 1px solid #999);
|
|
@@ -1540,6 +1524,22 @@ let SplitButton = class SplitButton extends ButtonElement {
|
|
|
1540
1524
|
outline-offset: -2px;
|
|
1541
1525
|
}
|
|
1542
1526
|
|
|
1527
|
+
:host([subtle]) button.primary,
|
|
1528
|
+
:host([subtle]) button.caret,
|
|
1529
|
+
:host([subtle]) button.primary:hover:not(:disabled),
|
|
1530
|
+
:host([subtle]) button.caret:hover:not(:disabled) {
|
|
1531
|
+
background: none;
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
:host([subtle]) .split {
|
|
1535
|
+
background: color-mix(in oklch, var(--surface-3, #ccc) 40%, transparent);
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
:host([subtle]) .split:has(button:hover:not(:disabled)),
|
|
1539
|
+
:host([subtle]) .split:has(button:focus-visible:not(:disabled)) {
|
|
1540
|
+
background: color-mix(in oklch, var(--surface-3, #ccc) 70%, transparent);
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
1543
|
ixfx-menu-trigger {
|
|
1544
1544
|
display: inline-flex;
|
|
1545
1545
|
align-items: stretch;
|
|
@@ -1558,7 +1558,6 @@ __decorate([property({
|
|
|
1558
1558
|
__decorate([property({ attribute: false })], SplitButton.prototype, "itemsProvider", void 0);
|
|
1559
1559
|
__decorate([property({ attribute: false })], SplitButton.prototype, "items", void 0);
|
|
1560
1560
|
__decorate([query(`ixfx-menu-trigger`)], SplitButton.prototype, "_menuTrigger", void 0);
|
|
1561
|
-
__decorate([state()], SplitButton.prototype, "_compact", void 0);
|
|
1562
1561
|
__decorate([state()], SplitButton.prototype, "_selectedCommand", void 0);
|
|
1563
1562
|
__decorate([state()], SplitButton.prototype, "_selectedLabel", void 0);
|
|
1564
1563
|
__decorate([state()], SplitButton.prototype, "_selectedIcon", void 0);
|
|
@@ -3321,7 +3320,7 @@ function createTreeListAdapter(toTreeItem, options) {
|
|
|
3321
3320
|
//#region src/vertical-list/vertical-list.ts
|
|
3322
3321
|
const ITEM_SELECTOR = `li, [data-list-item]`;
|
|
3323
3322
|
function isMultiMode(mode) {
|
|
3324
|
-
return mode === `checked` || mode === `vscode` || mode === `standard`;
|
|
3323
|
+
return mode === `checked` || mode === `sticky` || mode === `vscode` || mode === `standard`;
|
|
3325
3324
|
}
|
|
3326
3325
|
let VerticalListElement = class VerticalListElement extends LitElement {
|
|
3327
3326
|
constructor(..._args2) {
|
|
@@ -3582,7 +3581,7 @@ let VerticalListElement = class VerticalListElement extends LitElement {
|
|
|
3582
3581
|
_toggleItem(item) {
|
|
3583
3582
|
if (!this._isCheckable(item)) return;
|
|
3584
3583
|
const effectiveMultiple = this.selectionMode === `multiple` || isMultiMode(this.interactionMode);
|
|
3585
|
-
if (this.selectionMode === `none` && this.interactionMode !== `checked`) return;
|
|
3584
|
+
if (this.selectionMode === `none` && this.interactionMode !== `checked` && this.interactionMode !== `sticky`) return;
|
|
3586
3585
|
const previous = this._selectedItems;
|
|
3587
3586
|
const next = new Set(this._selectedItems);
|
|
3588
3587
|
if (next.has(item)) next.delete(item);
|
|
@@ -3647,7 +3646,7 @@ let VerticalListElement = class VerticalListElement extends LitElement {
|
|
|
3647
3646
|
_handleClickSelection(item, e) {
|
|
3648
3647
|
const mode = this.interactionMode;
|
|
3649
3648
|
if (mode === `manual`) return;
|
|
3650
|
-
if (this.selectionMode === `none` && mode !== `checked`) return;
|
|
3649
|
+
if (this.selectionMode === `none` && mode !== `checked` && mode !== `sticky`) return;
|
|
3651
3650
|
switch (mode) {
|
|
3652
3651
|
case `implicit`:
|
|
3653
3652
|
this._replaceSelection(item);
|
|
@@ -3659,7 +3658,8 @@ let VerticalListElement = class VerticalListElement extends LitElement {
|
|
|
3659
3658
|
} else if (e.shiftKey && (this.selectionMode === `multiple` || mode === `vscode`)) this._rangeSelectTo(item);
|
|
3660
3659
|
else this._replaceSelection(item);
|
|
3661
3660
|
break;
|
|
3662
|
-
case `checked`:
|
|
3661
|
+
case `checked`: break;
|
|
3662
|
+
case `sticky`: this._toggleItem(item);
|
|
3663
3663
|
}
|
|
3664
3664
|
}
|
|
3665
3665
|
_handleSpaceKey(item) {
|
|
@@ -5194,6 +5194,253 @@ __decorate([eventOptions({ capture: true })], RangeMultiElement.prototype, "_onI
|
|
|
5194
5194
|
__decorate([eventOptions({ capture: true })], RangeMultiElement.prototype, "_onPointerDown", null);
|
|
5195
5195
|
RangeMultiElement = __decorate([safeCustomElement(`ixfx-range-multi`)], RangeMultiElement);
|
|
5196
5196
|
//#endregion
|
|
5197
|
+
//#region src/snackbar/snackbar.ts
|
|
5198
|
+
let _instanceCounter = 0;
|
|
5199
|
+
let SnackbarElement = class SnackbarElement extends LitElement {
|
|
5200
|
+
constructor(..._args) {
|
|
5201
|
+
super(..._args);
|
|
5202
|
+
this.for = ``;
|
|
5203
|
+
this.mode = `explicit`;
|
|
5204
|
+
this.placement = `top`;
|
|
5205
|
+
this.dismiss = `auto`;
|
|
5206
|
+
this.showDelay = 150;
|
|
5207
|
+
this.hideDelay = 500;
|
|
5208
|
+
this._isOpen = false;
|
|
5209
|
+
this._anchorName = `--ixfx-snackbar-anchor-${++_instanceCounter}`;
|
|
5210
|
+
this._addedTabindex = false;
|
|
5211
|
+
this._addedRole = false;
|
|
5212
|
+
this._onTargetClick = () => this.toggle();
|
|
5213
|
+
this._onTargetKeydown = (e) => {
|
|
5214
|
+
if (e.key !== `Enter` && e.key !== ` `) return;
|
|
5215
|
+
e.preventDefault();
|
|
5216
|
+
this.toggle();
|
|
5217
|
+
};
|
|
5218
|
+
this._onTickleIn = () => this._scheduleShow();
|
|
5219
|
+
this._onTickleOut = () => this._scheduleHide();
|
|
5220
|
+
this._onPanelClick = () => {
|
|
5221
|
+
if (this.dismiss === `auto`) this.hide();
|
|
5222
|
+
};
|
|
5223
|
+
this._onToggle = (e) => {
|
|
5224
|
+
const { newState } = e;
|
|
5225
|
+
this._isOpen = newState === `open`;
|
|
5226
|
+
if (newState === `closed` && this.contains(document.activeElement)) this._target?.focus();
|
|
5227
|
+
};
|
|
5228
|
+
}
|
|
5229
|
+
get isOpen() {
|
|
5230
|
+
return this._isOpen;
|
|
5231
|
+
}
|
|
5232
|
+
show() {
|
|
5233
|
+
if (!this.popover) return;
|
|
5234
|
+
try {
|
|
5235
|
+
this.showPopover();
|
|
5236
|
+
} catch {}
|
|
5237
|
+
}
|
|
5238
|
+
hide() {
|
|
5239
|
+
if (!this.popover) return;
|
|
5240
|
+
try {
|
|
5241
|
+
this.hidePopover();
|
|
5242
|
+
} catch {}
|
|
5243
|
+
}
|
|
5244
|
+
toggle() {
|
|
5245
|
+
if (!this.popover) return;
|
|
5246
|
+
try {
|
|
5247
|
+
this.togglePopover();
|
|
5248
|
+
} catch {}
|
|
5249
|
+
}
|
|
5250
|
+
connectedCallback() {
|
|
5251
|
+
super.connectedCallback();
|
|
5252
|
+
if (!this.hasAttribute(`popover`)) this.popover = `auto`;
|
|
5253
|
+
this.classList.add(`popup-surface`);
|
|
5254
|
+
this.addEventListener(`toggle`, this._onToggle);
|
|
5255
|
+
this.addEventListener(`click`, this._onPanelClick);
|
|
5256
|
+
this.style.setProperty(`position-anchor`, this._anchorName);
|
|
5257
|
+
this._attachToTarget();
|
|
5258
|
+
}
|
|
5259
|
+
disconnectedCallback() {
|
|
5260
|
+
super.disconnectedCallback();
|
|
5261
|
+
this.removeEventListener(`toggle`, this._onToggle);
|
|
5262
|
+
this.removeEventListener(`click`, this._onPanelClick);
|
|
5263
|
+
this._detachFromTarget();
|
|
5264
|
+
this._cancelShow();
|
|
5265
|
+
this._cancelHide();
|
|
5266
|
+
}
|
|
5267
|
+
updated(changed) {
|
|
5268
|
+
super.updated(changed);
|
|
5269
|
+
if (changed.has(`for`) || changed.has(`mode`)) this._attachToTarget();
|
|
5270
|
+
}
|
|
5271
|
+
_resolveTarget() {
|
|
5272
|
+
if (!this.for) return void 0;
|
|
5273
|
+
return this.getRootNode().getElementById(this.for) ?? void 0;
|
|
5274
|
+
}
|
|
5275
|
+
_attachToTarget() {
|
|
5276
|
+
this._detachFromTarget();
|
|
5277
|
+
const target = this._resolveTarget();
|
|
5278
|
+
if (!target) {
|
|
5279
|
+
if (this.for) console.warn(`ixfx-snackbar: no element found with id "${this.for}"`);
|
|
5280
|
+
return;
|
|
5281
|
+
}
|
|
5282
|
+
this._target = target;
|
|
5283
|
+
target.style.setProperty(`anchor-name`, this._anchorName);
|
|
5284
|
+
if (this.mode === `explicit`) {
|
|
5285
|
+
const alreadyFocusable = target.tabIndex >= 0;
|
|
5286
|
+
if (!alreadyFocusable) {
|
|
5287
|
+
target.setAttribute(`tabindex`, `0`);
|
|
5288
|
+
this._addedTabindex = true;
|
|
5289
|
+
}
|
|
5290
|
+
if (!target.hasAttribute(`role`) && !alreadyFocusable) {
|
|
5291
|
+
target.setAttribute(`role`, `button`);
|
|
5292
|
+
this._addedRole = true;
|
|
5293
|
+
}
|
|
5294
|
+
target.setAttribute(`aria-haspopup`, `true`);
|
|
5295
|
+
target.addEventListener(`click`, this._onTargetClick);
|
|
5296
|
+
if (!alreadyFocusable) target.addEventListener(`keydown`, this._onTargetKeydown);
|
|
5297
|
+
} else if (this.mode === `implicit`) {
|
|
5298
|
+
target.addEventListener(`pointerenter`, this._onTickleIn);
|
|
5299
|
+
target.addEventListener(`focus`, this._onTickleIn);
|
|
5300
|
+
target.addEventListener(`pointerleave`, this._onTickleOut);
|
|
5301
|
+
target.addEventListener(`blur`, this._onTickleOut);
|
|
5302
|
+
this.addEventListener(`pointerenter`, this._onTickleIn);
|
|
5303
|
+
this.addEventListener(`focusin`, this._onTickleIn);
|
|
5304
|
+
this.addEventListener(`pointerleave`, this._onTickleOut);
|
|
5305
|
+
this.addEventListener(`focusout`, this._onTickleOut);
|
|
5306
|
+
}
|
|
5307
|
+
}
|
|
5308
|
+
_detachFromTarget() {
|
|
5309
|
+
const target = this._target;
|
|
5310
|
+
if (!target) return;
|
|
5311
|
+
target.style.removeProperty(`anchor-name`);
|
|
5312
|
+
if (this._addedTabindex) {
|
|
5313
|
+
target.removeAttribute(`tabindex`);
|
|
5314
|
+
this._addedTabindex = false;
|
|
5315
|
+
}
|
|
5316
|
+
if (this._addedRole) {
|
|
5317
|
+
target.removeAttribute(`role`);
|
|
5318
|
+
this._addedRole = false;
|
|
5319
|
+
}
|
|
5320
|
+
target.removeAttribute(`aria-haspopup`);
|
|
5321
|
+
target.removeEventListener(`click`, this._onTargetClick);
|
|
5322
|
+
target.removeEventListener(`keydown`, this._onTargetKeydown);
|
|
5323
|
+
target.removeEventListener(`pointerenter`, this._onTickleIn);
|
|
5324
|
+
target.removeEventListener(`focus`, this._onTickleIn);
|
|
5325
|
+
target.removeEventListener(`pointerleave`, this._onTickleOut);
|
|
5326
|
+
target.removeEventListener(`blur`, this._onTickleOut);
|
|
5327
|
+
this.removeEventListener(`pointerenter`, this._onTickleIn);
|
|
5328
|
+
this.removeEventListener(`focusin`, this._onTickleIn);
|
|
5329
|
+
this.removeEventListener(`pointerleave`, this._onTickleOut);
|
|
5330
|
+
this.removeEventListener(`focusout`, this._onTickleOut);
|
|
5331
|
+
this._target = void 0;
|
|
5332
|
+
}
|
|
5333
|
+
_scheduleShow() {
|
|
5334
|
+
this._cancelHide();
|
|
5335
|
+
this._cancelShow();
|
|
5336
|
+
if (this.showDelay <= 0) {
|
|
5337
|
+
this.show();
|
|
5338
|
+
return;
|
|
5339
|
+
}
|
|
5340
|
+
this._showTimeout = window.setTimeout(() => this.show(), this.showDelay);
|
|
5341
|
+
}
|
|
5342
|
+
_scheduleHide() {
|
|
5343
|
+
this._cancelShow();
|
|
5344
|
+
this._cancelHide();
|
|
5345
|
+
if (this.hideDelay <= 0) {
|
|
5346
|
+
this.hide();
|
|
5347
|
+
return;
|
|
5348
|
+
}
|
|
5349
|
+
this._hideTimeout = window.setTimeout(() => this.hide(), this.hideDelay);
|
|
5350
|
+
}
|
|
5351
|
+
_cancelShow() {
|
|
5352
|
+
if (this._showTimeout !== void 0) {
|
|
5353
|
+
window.clearTimeout(this._showTimeout);
|
|
5354
|
+
this._showTimeout = void 0;
|
|
5355
|
+
}
|
|
5356
|
+
}
|
|
5357
|
+
_cancelHide() {
|
|
5358
|
+
if (this._hideTimeout !== void 0) {
|
|
5359
|
+
window.clearTimeout(this._hideTimeout);
|
|
5360
|
+
this._hideTimeout = void 0;
|
|
5361
|
+
}
|
|
5362
|
+
}
|
|
5363
|
+
static {
|
|
5364
|
+
this.styles = [
|
|
5365
|
+
themeFallbacks,
|
|
5366
|
+
popupSurfaceStyles,
|
|
5367
|
+
css`
|
|
5368
|
+
:host {
|
|
5369
|
+
display: flex;
|
|
5370
|
+
align-items: center;
|
|
5371
|
+
gap: var(--space-s);
|
|
5372
|
+
padding: var(--space-s);
|
|
5373
|
+
|
|
5374
|
+
position: fixed;
|
|
5375
|
+
inset: unset;
|
|
5376
|
+
margin: 0;
|
|
5377
|
+
z-index: 100;
|
|
5378
|
+
position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
|
|
5379
|
+
|
|
5380
|
+
opacity: 0;
|
|
5381
|
+
scale: 0.97;
|
|
5382
|
+
pointer-events: none;
|
|
5383
|
+
transition: opacity 0.12s ease-out, scale 0.12s ease-out,
|
|
5384
|
+
display 0.12s allow-discrete, overlay 0.12s allow-discrete;
|
|
5385
|
+
}
|
|
5386
|
+
|
|
5387
|
+
:host(:popover-open) {
|
|
5388
|
+
opacity: 1;
|
|
5389
|
+
scale: 1;
|
|
5390
|
+
pointer-events: auto;
|
|
5391
|
+
}
|
|
5392
|
+
|
|
5393
|
+
@starting-style {
|
|
5394
|
+
:host(:popover-open) {
|
|
5395
|
+
opacity: 0;
|
|
5396
|
+
scale: 0.97;
|
|
5397
|
+
}
|
|
5398
|
+
}
|
|
5399
|
+
|
|
5400
|
+
:host([placement="top"]) {
|
|
5401
|
+
position-area: block-start;
|
|
5402
|
+
margin-block-end: var(--space-s);
|
|
5403
|
+
}
|
|
5404
|
+
|
|
5405
|
+
:host([placement="bottom"]) {
|
|
5406
|
+
position-area: block-end;
|
|
5407
|
+
margin-block-start: var(--space-s);
|
|
5408
|
+
}
|
|
5409
|
+
|
|
5410
|
+
:host([placement="left"]) {
|
|
5411
|
+
position-area: inline-start;
|
|
5412
|
+
margin-inline-end: var(--space-s);
|
|
5413
|
+
}
|
|
5414
|
+
|
|
5415
|
+
:host([placement="right"]) {
|
|
5416
|
+
position-area: inline-end;
|
|
5417
|
+
margin-inline-start: var(--space-s);
|
|
5418
|
+
}
|
|
5419
|
+
`
|
|
5420
|
+
];
|
|
5421
|
+
}
|
|
5422
|
+
render() {
|
|
5423
|
+
return html`<slot></slot>`;
|
|
5424
|
+
}
|
|
5425
|
+
};
|
|
5426
|
+
__decorate([property({ type: String })], SnackbarElement.prototype, "for", void 0);
|
|
5427
|
+
__decorate([property({ type: String })], SnackbarElement.prototype, "mode", void 0);
|
|
5428
|
+
__decorate([property({
|
|
5429
|
+
type: String,
|
|
5430
|
+
reflect: true
|
|
5431
|
+
})], SnackbarElement.prototype, "placement", void 0);
|
|
5432
|
+
__decorate([property({ type: String })], SnackbarElement.prototype, "dismiss", void 0);
|
|
5433
|
+
__decorate([property({
|
|
5434
|
+
type: Number,
|
|
5435
|
+
attribute: `show-delay`
|
|
5436
|
+
})], SnackbarElement.prototype, "showDelay", void 0);
|
|
5437
|
+
__decorate([property({
|
|
5438
|
+
type: Number,
|
|
5439
|
+
attribute: `hide-delay`
|
|
5440
|
+
})], SnackbarElement.prototype, "hideDelay", void 0);
|
|
5441
|
+
__decorate([state()], SnackbarElement.prototype, "_isOpen", void 0);
|
|
5442
|
+
SnackbarElement = __decorate([safeCustomElement(`ixfx-snackbar`)], SnackbarElement);
|
|
5443
|
+
//#endregion
|
|
5197
5444
|
//#region src/tabs/tab-list-item.ts
|
|
5198
5445
|
let TabListItemElement = class TabListItemElement extends LitElement {
|
|
5199
5446
|
constructor(..._args) {
|
|
@@ -6112,6 +6359,6 @@ function init() {
|
|
|
6112
6359
|
console.log(`Init`);
|
|
6113
6360
|
}
|
|
6114
6361
|
//#endregion
|
|
6115
|
-
export { AcTextElement, AcTokenElement, ButtonElement, Checkbox, ColourPicker, ColourPickerPopup, CrumbNavigationElement, CrumbPathController, CrumbPathElement, DataController, DataDisplayComponent, EditableLabel, EditableNumber, FormElement, FormGroupElement, FormPartElement, GroupedItemListerElement, ICON_CARET_RIGHT, ICON_CHECK, ICON_CHEVRON_DOWN, ICON_CLOSE, IncrSearchTreeController as IncrSearchMillerController, IncrSearchTreeController, IxfxHexEditorElement, IxfxIconElement, IxfxTimelineElement, LabelledRadialInput, LabelledRangeInput, LedElement, menu_exports as Menu, MillerBaseElement, MillerListElement, MillerTreeController, NarrowedTextElement, NotificationManager, NotificationPillElement, PanelElement, PanelGroupElement, PlotDataSeries, PlotHistogram, PlotMultiAxis, PlotSingleAxis, PlotXyAxis, PolarPad, RadialInputElement, RadioGroup, RangeElement, RangeInput, RangeMultiElement, SelectHorizontalElement, SliderInputElement, SnapContainer, SplitButton, SplitLayoutElement, SwipeElement, TabController, TabListElement, TabListItemElement, TabPanelElement, TabPanelsElement, TimelineController, TimelineTrackTabElement, TooltipElement, TransitoryLabelElement, TreeBaseElement, TreeController, TreeDataModel, TreeListElement, VerticalListElement, XyPad, applyAgeModification, applyHighlights, attachTimelineInteractions, buildHighlightTargets, clearHighlights, collectDataResult, computeColour, createAcCompletionProvider, createElementIncrSearch, createFuzzySearch, createIncrSearch, createPillRenderer, createTreeListAdapter, createVerticalListAdapter, getIcon, hasIcon, iconBus, init, monitorIndeterminate, parseColourScaleAttr, readBaseColour, registerIcon, resolveCssVars, resolveGrid, svgToDataUri, timelineStyles };
|
|
6362
|
+
export { AcTextElement, AcTokenElement, ButtonElement, Checkbox, ColourPicker, ColourPickerPopup, CrumbNavigationElement, CrumbPathController, CrumbPathElement, DataController, DataDisplayComponent, EditableLabel, EditableNumber, FormElement, FormGroupElement, FormPartElement, GroupedItemListerElement, ICON_CARET_RIGHT, ICON_CHECK, ICON_CHEVRON_DOWN, ICON_CLOSE, IncrSearchTreeController as IncrSearchMillerController, IncrSearchTreeController, IxfxHexEditorElement, IxfxIconElement, IxfxTimelineElement, LabelledRadialInput, LabelledRangeInput, LedElement, menu_exports as Menu, MillerBaseElement, MillerListElement, MillerTreeController, NarrowedTextElement, NotificationManager, NotificationPillElement, PanelElement, PanelGroupElement, PlotDataSeries, PlotHistogram, PlotMultiAxis, PlotSingleAxis, PlotXyAxis, PolarPad, RadialInputElement, RadioGroup, RangeElement, RangeInput, RangeMultiElement, SelectHorizontalElement, SliderInputElement, SnackbarElement, SnapContainer, SplitButton, SplitLayoutElement, SwipeElement, TabController, TabListElement, TabListItemElement, TabPanelElement, TabPanelsElement, TimelineController, TimelineTrackTabElement, TooltipElement, TransitoryLabelElement, TreeBaseElement, TreeController, TreeDataModel, TreeListElement, VerticalListElement, XyPad, applyAgeModification, applyHighlights, attachTimelineInteractions, buildHighlightTargets, clearHighlights, collectDataResult, computeColour, createAcCompletionProvider, createElementIncrSearch, createFuzzySearch, createIncrSearch, createPillRenderer, createTreeListAdapter, createVerticalListAdapter, getIcon, hasIcon, iconBus, init, monitorIndeterminate, parseColourScaleAttr, readBaseColour, registerIcon, resolveCssVars, resolveGrid, svgToDataUri, timelineStyles };
|
|
6116
6363
|
|
|
6117
6364
|
//# sourceMappingURL=index.js.map
|