@ixfx/components 0.5.5 → 0.5.7
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 +60 -1
- package/bundle/index.d.ts.map +1 -1
- package/bundle/index.js +328 -10
- package/bundle/index.js.map +1 -1
- package/dist/ac-text.d.ts +4 -1
- package/dist/ac-text.d.ts.map +1 -1
- package/dist/ac-text.js +34 -5
- package/dist/ac-text.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 +2 -1
- 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.d.ts +1 -1
- package/dist/colour-picker.js +1 -1
- package/dist/crumbs.d.ts +1 -1
- package/dist/crumbs.js +1 -1
- package/dist/{icon-DpA9x2Ve.d.ts → icon-BUwP1CZ1.d.ts} +2 -2
- package/dist/icon-BUwP1CZ1.d.ts.map +1 -0
- package/dist/icons.d.ts +2 -2
- package/dist/{index-DfEkTGvT.d.ts → index-B1UKcA7l.d.ts} +3 -3
- package/dist/{index-DfEkTGvT.d.ts.map → index-B1UKcA7l.d.ts.map} +1 -1
- package/dist/{index-D_ftz_IT.d.ts → index-BKAlRgbq.d.ts} +2 -2
- package/dist/{index-D_ftz_IT.d.ts.map → index-BKAlRgbq.d.ts.map} +1 -1
- package/dist/{index-CoqtMSd9.d.ts → index-BUB5SICW.d.ts} +2 -2
- package/dist/{index-CoqtMSd9.d.ts.map → index-BUB5SICW.d.ts.map} +1 -1
- package/dist/{index-BtGFYfaK.d.ts → index-RqMh1i-O.d.ts} +2 -2
- package/dist/{index-BtGFYfaK.d.ts.map → index-RqMh1i-O.d.ts.map} +1 -1
- package/dist/index.d.ts +64 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +279 -6
- package/dist/index.js.map +1 -1
- package/dist/{labelled-input-base-DiTme1JO.d.ts → labelled-input-base-Dp_9KP0G.d.ts} +2 -2
- package/dist/{labelled-input-base-DiTme1JO.d.ts.map → labelled-input-base-Dp_9KP0G.d.ts.map} +1 -1
- package/dist/labelled-radial-input.d.ts +2 -2
- package/dist/labelled-radial-input.d.ts.map +1 -1
- package/dist/labelled-range-input.d.ts +1 -1
- package/dist/{menu-xPpzkoiW.js → menu-BYyeCAF7.js} +2 -2
- package/dist/{menu-xPpzkoiW.js.map → menu-BYyeCAF7.js.map} +1 -1
- package/dist/{menu-item-CFy8e3G_.js → menu-item-BttvL89f.js} +2 -2
- package/dist/{menu-item-CFy8e3G_.js.map → menu-item-BttvL89f.js.map} +1 -1
- package/dist/{menu-item-DSyf9f_L.d.ts → menu-item-CQ4Qg731.d.ts} +2 -2
- package/dist/{menu-item-DSyf9f_L.d.ts.map → menu-item-CQ4Qg731.d.ts.map} +1 -1
- package/dist/menu.d.ts +2 -2
- package/dist/menu.js +2 -2
- package/dist/panel.d.ts +1 -1
- package/dist/{popup-DiWMxsWj.js → popup-D80sj2QC.js} +5 -3
- package/dist/popup-D80sj2QC.js.map +1 -0
- package/dist/{tab-list-BohmbvqF.d.ts → tab-list-VtWT-_FG.d.ts} +2 -2
- package/dist/{tab-list-BohmbvqF.d.ts.map → tab-list-VtWT-_FG.d.ts.map} +1 -1
- package/dist/tabs.d.ts +1 -1
- package/docs-user/README.md +1 -0
- package/docs-user/button.md +2 -0
- package/docs-user/snackbar.md +94 -0
- package/package.json +1 -1
- package/dist/button-CTE8crYn.js.map +0 -1
- package/dist/icon-DpA9x2Ve.d.ts.map +0 -1
- package/dist/popup-DiWMxsWj.js.map +0 -1
package/bundle/index.js
CHANGED
|
@@ -1257,6 +1257,7 @@ __decorate([property({
|
|
|
1257
1257
|
IxfxIconElement = __decorate([safeCustomElement(`ixfx-icon`)], IxfxIconElement);
|
|
1258
1258
|
//#endregion
|
|
1259
1259
|
//#region src/ac-text/ac-text.ts
|
|
1260
|
+
var _AcTextElement;
|
|
1260
1261
|
const HIGHLIGHT_KEY$1 = `ac-text-highlight`;
|
|
1261
1262
|
function makeLruCache$1(maxSize) {
|
|
1262
1263
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -1272,11 +1273,18 @@ function makeLruCache$1(maxSize) {
|
|
|
1272
1273
|
};
|
|
1273
1274
|
}
|
|
1274
1275
|
let AcTextElement = class AcTextElement extends i {
|
|
1276
|
+
static {
|
|
1277
|
+
_AcTextElement = this;
|
|
1278
|
+
}
|
|
1279
|
+
static {
|
|
1280
|
+
this._count = 0;
|
|
1281
|
+
}
|
|
1275
1282
|
#cache;
|
|
1276
1283
|
#debounceTimer;
|
|
1277
1284
|
#abortController;
|
|
1278
1285
|
constructor() {
|
|
1279
1286
|
super();
|
|
1287
|
+
this._anchorName = `--ac-text-anchor-${_AcTextElement._count++}`;
|
|
1280
1288
|
this.placeholder = ``;
|
|
1281
1289
|
this.cacheSize = 20;
|
|
1282
1290
|
this.debounceMs = 150;
|
|
@@ -1371,6 +1379,9 @@ let AcTextElement = class AcTextElement extends i {
|
|
|
1371
1379
|
this.#cancelPending();
|
|
1372
1380
|
clearHighlights({ key: HIGHLIGHT_KEY$1 });
|
|
1373
1381
|
}
|
|
1382
|
+
firstUpdated() {
|
|
1383
|
+
this.style.setProperty(`--anchor-name`, this._anchorName);
|
|
1384
|
+
}
|
|
1374
1385
|
updated(changedProps) {
|
|
1375
1386
|
if (changedProps.has(`completionProvider`)) this.#cache.clear();
|
|
1376
1387
|
if (changedProps.has(`cacheSize`)) this.#cache = makeLruCache$1(this.cacheSize);
|
|
@@ -1379,6 +1390,18 @@ let AcTextElement = class AcTextElement extends i {
|
|
|
1379
1390
|
if (!input || document.activeElement !== input) this._query = this.value;
|
|
1380
1391
|
}
|
|
1381
1392
|
this.#applyHighlights();
|
|
1393
|
+
this.#syncPopover();
|
|
1394
|
+
}
|
|
1395
|
+
/** Keep the native popover in sync with `_isOpen` (popup is lazily rendered). */
|
|
1396
|
+
#syncPopover() {
|
|
1397
|
+
if (!this.shadowRoot) return;
|
|
1398
|
+
const popup = this.shadowRoot.querySelector(`.popup`);
|
|
1399
|
+
if (!popup) return;
|
|
1400
|
+
try {
|
|
1401
|
+
if (this._isOpen) {
|
|
1402
|
+
if (!popup.matches(`:popover-open`)) popup.showPopover();
|
|
1403
|
+
} else if (popup.matches(`:popover-open`)) popup.hidePopover();
|
|
1404
|
+
} catch {}
|
|
1382
1405
|
}
|
|
1383
1406
|
#applyHighlights() {
|
|
1384
1407
|
if (!this._isOpen || !this.shadowRoot) {
|
|
@@ -1533,6 +1556,7 @@ let AcTextElement = class AcTextElement extends i {
|
|
|
1533
1556
|
return b`
|
|
1534
1557
|
<div
|
|
1535
1558
|
class="popup"
|
|
1559
|
+
popover="manual"
|
|
1536
1560
|
role="listbox"
|
|
1537
1561
|
aria-label="Suggestions"
|
|
1538
1562
|
data-input-mode=${this.tickled.inputMode}
|
|
@@ -1586,6 +1610,7 @@ let AcTextElement = class AcTextElement extends i {
|
|
|
1586
1610
|
display: flex;
|
|
1587
1611
|
align-items: center;
|
|
1588
1612
|
position: relative;
|
|
1613
|
+
anchor-name: var(--anchor-name);
|
|
1589
1614
|
}
|
|
1590
1615
|
|
|
1591
1616
|
input {
|
|
@@ -1633,10 +1658,14 @@ let AcTextElement = class AcTextElement extends i {
|
|
|
1633
1658
|
/* ---- Popup ---- */
|
|
1634
1659
|
|
|
1635
1660
|
.popup {
|
|
1636
|
-
position:
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1661
|
+
position: fixed;
|
|
1662
|
+
inset: unset;
|
|
1663
|
+
margin: 0;
|
|
1664
|
+
width: anchor-size(width);
|
|
1665
|
+
position-anchor: var(--anchor-name);
|
|
1666
|
+
position-area: block-end span-inline-start;
|
|
1667
|
+
margin-block-start: 2px;
|
|
1668
|
+
position-try-fallbacks: flip-block;
|
|
1640
1669
|
z-index: 100;
|
|
1641
1670
|
background: var(--surface-3, var(--surface-2));
|
|
1642
1671
|
border: var(--border);
|
|
@@ -1732,7 +1761,7 @@ __decorate([state()], AcTextElement.prototype, "_query", void 0);
|
|
|
1732
1761
|
__decorate([state()], AcTextElement.prototype, "_results", void 0);
|
|
1733
1762
|
__decorate([state()], AcTextElement.prototype, "_isOpen", void 0);
|
|
1734
1763
|
__decorate([state()], AcTextElement.prototype, "_isLoading", void 0);
|
|
1735
|
-
AcTextElement = __decorate([safeCustomElement(`ixfx-ac-text`)], AcTextElement);
|
|
1764
|
+
AcTextElement = _AcTextElement = __decorate([safeCustomElement(`ixfx-ac-text`)], AcTextElement);
|
|
1736
1765
|
//#endregion
|
|
1737
1766
|
//#region src/common/data-controller.ts
|
|
1738
1767
|
function isAsyncIterable(v) {
|
|
@@ -3066,6 +3095,15 @@ const buttonStyles = i$3`
|
|
|
3066
3095
|
:host([hide-icon]) .button-icon {
|
|
3067
3096
|
display: none;
|
|
3068
3097
|
}
|
|
3098
|
+
|
|
3099
|
+
:host([subtle]) button {
|
|
3100
|
+
background: color-mix(in oklch, var(--surface-4, #ccc) 40%, transparent);
|
|
3101
|
+
}
|
|
3102
|
+
|
|
3103
|
+
:host([subtle]) button:hover:not(:disabled),
|
|
3104
|
+
:host([subtle]) button:focus-visible:not(:disabled) {
|
|
3105
|
+
background: color-mix(in oklch, var(--surface-4, #ccc) 70%, transparent);
|
|
3106
|
+
}
|
|
3069
3107
|
`;
|
|
3070
3108
|
//#endregion
|
|
3071
3109
|
//#region src/button/button.ts
|
|
@@ -3075,6 +3113,7 @@ let ButtonElement = class ButtonElement extends i {
|
|
|
3075
3113
|
this.disabled = false;
|
|
3076
3114
|
this.hideIcon = false;
|
|
3077
3115
|
this.hideLabel = false;
|
|
3116
|
+
this.subtle = false;
|
|
3078
3117
|
}
|
|
3079
3118
|
_renderIcon() {
|
|
3080
3119
|
if (this.hideIcon || !this.icon) return A;
|
|
@@ -3102,6 +3141,10 @@ __decorate([property({
|
|
|
3102
3141
|
attribute: `hide-label`,
|
|
3103
3142
|
reflect: true
|
|
3104
3143
|
})], ButtonElement.prototype, "hideLabel", void 0);
|
|
3144
|
+
__decorate([property({
|
|
3145
|
+
type: Boolean,
|
|
3146
|
+
reflect: true
|
|
3147
|
+
})], ButtonElement.prototype, "subtle", void 0);
|
|
3105
3148
|
ButtonElement = __decorate([safeCustomElement(`ixfx-button`)], ButtonElement);
|
|
3106
3149
|
//#endregion
|
|
3107
3150
|
//#region src/button/radio-group.ts
|
|
@@ -3444,13 +3487,15 @@ RadioGroup = __decorate([safeCustomElement(`ixfx-radio-group`)], RadioGroup);
|
|
|
3444
3487
|
* Canonical surface styles for floating popup elements (menus, dropdowns,
|
|
3445
3488
|
* colour picker, tooltips). Apply by adding `popupSurfaceStyles` to a
|
|
3446
3489
|
* component's `static styles` array and the class `popup-surface` to the
|
|
3447
|
-
* popup container element.
|
|
3490
|
+
* popup container element - or to the host itself (via `this.classList.add`)
|
|
3491
|
+
* when the component's host element is the popup container.
|
|
3448
3492
|
*
|
|
3449
3493
|
* Intentionally omitted (remain per-component): positioning, padding,
|
|
3450
3494
|
* dimensions, z-index, and open/close animations.
|
|
3451
3495
|
*/
|
|
3452
3496
|
const popupSurfaceStyles = i$3`
|
|
3453
|
-
.popup-surface
|
|
3497
|
+
.popup-surface,
|
|
3498
|
+
:host(.popup-surface) {
|
|
3454
3499
|
background: var(--surface-5);
|
|
3455
3500
|
border: 1px solid var(--surface-6);
|
|
3456
3501
|
border-radius: var(--radius-l);
|
|
@@ -4570,6 +4615,22 @@ let SplitButton = class SplitButton extends ButtonElement {
|
|
|
4570
4615
|
outline-offset: -2px;
|
|
4571
4616
|
}
|
|
4572
4617
|
|
|
4618
|
+
:host([subtle]) button.primary,
|
|
4619
|
+
:host([subtle]) button.caret,
|
|
4620
|
+
:host([subtle]) button.primary:hover:not(:disabled),
|
|
4621
|
+
:host([subtle]) button.caret:hover:not(:disabled) {
|
|
4622
|
+
background: none;
|
|
4623
|
+
}
|
|
4624
|
+
|
|
4625
|
+
:host([subtle]) .split {
|
|
4626
|
+
background: color-mix(in oklch, var(--surface-3, #ccc) 40%, transparent);
|
|
4627
|
+
}
|
|
4628
|
+
|
|
4629
|
+
:host([subtle]) .split:has(button:hover:not(:disabled)),
|
|
4630
|
+
:host([subtle]) .split:has(button:focus-visible:not(:disabled)) {
|
|
4631
|
+
background: color-mix(in oklch, var(--surface-3, #ccc) 70%, transparent);
|
|
4632
|
+
}
|
|
4633
|
+
|
|
4573
4634
|
ixfx-menu-trigger {
|
|
4574
4635
|
display: inline-flex;
|
|
4575
4636
|
align-items: stretch;
|
|
@@ -5681,7 +5742,7 @@ __decorate([query(`.preview`)], ColourPicker.prototype, "_previewEl", void 0);
|
|
|
5681
5742
|
ColourPicker = __decorate([safeCustomElement(`ixfx-colour-picker`)], ColourPicker);
|
|
5682
5743
|
//#endregion
|
|
5683
5744
|
//#region src/colour-picker/colour-picker-popup.ts
|
|
5684
|
-
let _instanceCounter = 0;
|
|
5745
|
+
let _instanceCounter$1 = 0;
|
|
5685
5746
|
const PICKER_SIZES = {
|
|
5686
5747
|
small: {
|
|
5687
5748
|
width: 130,
|
|
@@ -5803,7 +5864,7 @@ let ColourPickerPopup = class ColourPickerPopup extends i {
|
|
|
5803
5864
|
this._popupEl.showPopover();
|
|
5804
5865
|
} catch {}
|
|
5805
5866
|
};
|
|
5806
|
-
const id = ++_instanceCounter;
|
|
5867
|
+
const id = ++_instanceCounter$1;
|
|
5807
5868
|
this._uid = `cp-popup-${id}`;
|
|
5808
5869
|
this._anchorName = `--cp-popup-anchor-${id}`;
|
|
5809
5870
|
this._popupId = `cp-popup-panel-${id}`;
|
|
@@ -22677,6 +22738,263 @@ __decorate([property({
|
|
|
22677
22738
|
})], SliderInputElement.prototype, "disabled", void 0);
|
|
22678
22739
|
SliderInputElement = __decorate([safeCustomElement(`ixfx-slider-input`)], SliderInputElement);
|
|
22679
22740
|
//#endregion
|
|
22741
|
+
//#region src/snackbar/snackbar.ts
|
|
22742
|
+
let _instanceCounter = 0;
|
|
22743
|
+
let SnackbarElement = class SnackbarElement extends i {
|
|
22744
|
+
constructor(..._args) {
|
|
22745
|
+
super(..._args);
|
|
22746
|
+
this.for = ``;
|
|
22747
|
+
this.mode = `explicit`;
|
|
22748
|
+
this.placement = `top`;
|
|
22749
|
+
this.dismiss = `auto`;
|
|
22750
|
+
this.showDelay = 150;
|
|
22751
|
+
this.hideDelay = 500;
|
|
22752
|
+
this._isOpen = false;
|
|
22753
|
+
this._anchorName = `--ixfx-snackbar-anchor-${++_instanceCounter}`;
|
|
22754
|
+
this._addedTabindex = false;
|
|
22755
|
+
this._addedRole = false;
|
|
22756
|
+
this._onTargetClick = () => this.toggle();
|
|
22757
|
+
this._onTargetKeydown = (e) => {
|
|
22758
|
+
if (e.key !== `Enter` && e.key !== ` `) return;
|
|
22759
|
+
e.preventDefault();
|
|
22760
|
+
this.toggle();
|
|
22761
|
+
};
|
|
22762
|
+
this._onTickleIn = () => this._scheduleShow();
|
|
22763
|
+
this._onTickleOut = () => this._scheduleHide();
|
|
22764
|
+
this._onPanelClick = () => {
|
|
22765
|
+
if (this.dismiss === `auto`) this.hide();
|
|
22766
|
+
};
|
|
22767
|
+
this._onToggle = (e) => {
|
|
22768
|
+
const { newState } = e;
|
|
22769
|
+
this._isOpen = newState === `open`;
|
|
22770
|
+
if (newState === `closed` && this.contains(document.activeElement)) this._target?.focus();
|
|
22771
|
+
};
|
|
22772
|
+
this._onBeforeToggle = (e) => {
|
|
22773
|
+
const { newState } = e;
|
|
22774
|
+
this._recentCloseAt = newState === `closed` ? performance.now() : void 0;
|
|
22775
|
+
};
|
|
22776
|
+
}
|
|
22777
|
+
get isOpen() {
|
|
22778
|
+
return this._isOpen;
|
|
22779
|
+
}
|
|
22780
|
+
show() {
|
|
22781
|
+
if (!this.popover) return;
|
|
22782
|
+
try {
|
|
22783
|
+
this.showPopover();
|
|
22784
|
+
} catch {}
|
|
22785
|
+
}
|
|
22786
|
+
hide() {
|
|
22787
|
+
if (!this.popover) return;
|
|
22788
|
+
try {
|
|
22789
|
+
this.hidePopover();
|
|
22790
|
+
} catch {}
|
|
22791
|
+
}
|
|
22792
|
+
toggle() {
|
|
22793
|
+
if (!this.popover) return;
|
|
22794
|
+
if (this._recentCloseAt !== void 0 && performance.now() - this._recentCloseAt < 50) {
|
|
22795
|
+
this._recentCloseAt = void 0;
|
|
22796
|
+
return;
|
|
22797
|
+
}
|
|
22798
|
+
try {
|
|
22799
|
+
this.togglePopover();
|
|
22800
|
+
} catch {}
|
|
22801
|
+
}
|
|
22802
|
+
connectedCallback() {
|
|
22803
|
+
super.connectedCallback();
|
|
22804
|
+
if (!this.hasAttribute(`popover`)) this.popover = `auto`;
|
|
22805
|
+
this.classList.add(`popup-surface`);
|
|
22806
|
+
this.addEventListener(`toggle`, this._onToggle);
|
|
22807
|
+
this.addEventListener(`beforetoggle`, this._onBeforeToggle);
|
|
22808
|
+
this.addEventListener(`click`, this._onPanelClick);
|
|
22809
|
+
this.style.setProperty(`position-anchor`, this._anchorName);
|
|
22810
|
+
this._attachToTarget();
|
|
22811
|
+
}
|
|
22812
|
+
disconnectedCallback() {
|
|
22813
|
+
super.disconnectedCallback();
|
|
22814
|
+
this.removeEventListener(`toggle`, this._onToggle);
|
|
22815
|
+
this.removeEventListener(`beforetoggle`, this._onBeforeToggle);
|
|
22816
|
+
this.removeEventListener(`click`, this._onPanelClick);
|
|
22817
|
+
this._detachFromTarget();
|
|
22818
|
+
this._cancelShow();
|
|
22819
|
+
this._cancelHide();
|
|
22820
|
+
}
|
|
22821
|
+
updated(changed) {
|
|
22822
|
+
super.updated(changed);
|
|
22823
|
+
if (changed.has(`for`) || changed.has(`mode`)) this._attachToTarget();
|
|
22824
|
+
}
|
|
22825
|
+
_resolveTarget() {
|
|
22826
|
+
if (!this.for) return void 0;
|
|
22827
|
+
return this.getRootNode().getElementById(this.for) ?? void 0;
|
|
22828
|
+
}
|
|
22829
|
+
_attachToTarget() {
|
|
22830
|
+
this._detachFromTarget();
|
|
22831
|
+
const target = this._resolveTarget();
|
|
22832
|
+
if (!target) {
|
|
22833
|
+
if (this.for) console.warn(`ixfx-snackbar: no element found with id "${this.for}"`);
|
|
22834
|
+
return;
|
|
22835
|
+
}
|
|
22836
|
+
this._target = target;
|
|
22837
|
+
target.style.setProperty(`anchor-name`, this._anchorName);
|
|
22838
|
+
if (this.mode === `explicit`) {
|
|
22839
|
+
const alreadyFocusable = target.tabIndex >= 0;
|
|
22840
|
+
if (!alreadyFocusable) {
|
|
22841
|
+
target.setAttribute(`tabindex`, `0`);
|
|
22842
|
+
this._addedTabindex = true;
|
|
22843
|
+
}
|
|
22844
|
+
if (!target.hasAttribute(`role`) && !alreadyFocusable) {
|
|
22845
|
+
target.setAttribute(`role`, `button`);
|
|
22846
|
+
this._addedRole = true;
|
|
22847
|
+
}
|
|
22848
|
+
target.setAttribute(`aria-haspopup`, `true`);
|
|
22849
|
+
target.addEventListener(`click`, this._onTargetClick);
|
|
22850
|
+
if (!alreadyFocusable) target.addEventListener(`keydown`, this._onTargetKeydown);
|
|
22851
|
+
} else if (this.mode === `implicit`) {
|
|
22852
|
+
target.addEventListener(`pointerenter`, this._onTickleIn);
|
|
22853
|
+
target.addEventListener(`focus`, this._onTickleIn);
|
|
22854
|
+
target.addEventListener(`pointerleave`, this._onTickleOut);
|
|
22855
|
+
target.addEventListener(`blur`, this._onTickleOut);
|
|
22856
|
+
this.addEventListener(`pointerenter`, this._onTickleIn);
|
|
22857
|
+
this.addEventListener(`focusin`, this._onTickleIn);
|
|
22858
|
+
this.addEventListener(`pointerleave`, this._onTickleOut);
|
|
22859
|
+
this.addEventListener(`focusout`, this._onTickleOut);
|
|
22860
|
+
}
|
|
22861
|
+
}
|
|
22862
|
+
_detachFromTarget() {
|
|
22863
|
+
const target = this._target;
|
|
22864
|
+
if (!target) return;
|
|
22865
|
+
target.style.removeProperty(`anchor-name`);
|
|
22866
|
+
if (this._addedTabindex) {
|
|
22867
|
+
target.removeAttribute(`tabindex`);
|
|
22868
|
+
this._addedTabindex = false;
|
|
22869
|
+
}
|
|
22870
|
+
if (this._addedRole) {
|
|
22871
|
+
target.removeAttribute(`role`);
|
|
22872
|
+
this._addedRole = false;
|
|
22873
|
+
}
|
|
22874
|
+
target.removeAttribute(`aria-haspopup`);
|
|
22875
|
+
target.removeEventListener(`click`, this._onTargetClick);
|
|
22876
|
+
target.removeEventListener(`keydown`, this._onTargetKeydown);
|
|
22877
|
+
target.removeEventListener(`pointerenter`, this._onTickleIn);
|
|
22878
|
+
target.removeEventListener(`focus`, this._onTickleIn);
|
|
22879
|
+
target.removeEventListener(`pointerleave`, this._onTickleOut);
|
|
22880
|
+
target.removeEventListener(`blur`, this._onTickleOut);
|
|
22881
|
+
this.removeEventListener(`pointerenter`, this._onTickleIn);
|
|
22882
|
+
this.removeEventListener(`focusin`, this._onTickleIn);
|
|
22883
|
+
this.removeEventListener(`pointerleave`, this._onTickleOut);
|
|
22884
|
+
this.removeEventListener(`focusout`, this._onTickleOut);
|
|
22885
|
+
this._target = void 0;
|
|
22886
|
+
}
|
|
22887
|
+
_scheduleShow() {
|
|
22888
|
+
this._cancelHide();
|
|
22889
|
+
this._cancelShow();
|
|
22890
|
+
if (this.showDelay <= 0) {
|
|
22891
|
+
this.show();
|
|
22892
|
+
return;
|
|
22893
|
+
}
|
|
22894
|
+
this._showTimeout = window.setTimeout(() => this.show(), this.showDelay);
|
|
22895
|
+
}
|
|
22896
|
+
_scheduleHide() {
|
|
22897
|
+
this._cancelShow();
|
|
22898
|
+
this._cancelHide();
|
|
22899
|
+
if (this.hideDelay <= 0) {
|
|
22900
|
+
this.hide();
|
|
22901
|
+
return;
|
|
22902
|
+
}
|
|
22903
|
+
this._hideTimeout = window.setTimeout(() => this.hide(), this.hideDelay);
|
|
22904
|
+
}
|
|
22905
|
+
_cancelShow() {
|
|
22906
|
+
if (this._showTimeout !== void 0) {
|
|
22907
|
+
window.clearTimeout(this._showTimeout);
|
|
22908
|
+
this._showTimeout = void 0;
|
|
22909
|
+
}
|
|
22910
|
+
}
|
|
22911
|
+
_cancelHide() {
|
|
22912
|
+
if (this._hideTimeout !== void 0) {
|
|
22913
|
+
window.clearTimeout(this._hideTimeout);
|
|
22914
|
+
this._hideTimeout = void 0;
|
|
22915
|
+
}
|
|
22916
|
+
}
|
|
22917
|
+
static {
|
|
22918
|
+
this.styles = [
|
|
22919
|
+
themeFallbacks,
|
|
22920
|
+
popupSurfaceStyles,
|
|
22921
|
+
i$3`
|
|
22922
|
+
:host {
|
|
22923
|
+
display: flex;
|
|
22924
|
+
align-items: center;
|
|
22925
|
+
gap: var(--space-s);
|
|
22926
|
+
padding: var(--space-s);
|
|
22927
|
+
|
|
22928
|
+
position: fixed;
|
|
22929
|
+
inset: unset;
|
|
22930
|
+
margin: 0;
|
|
22931
|
+
z-index: 100;
|
|
22932
|
+
position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
|
|
22933
|
+
|
|
22934
|
+
opacity: 0;
|
|
22935
|
+
scale: 0.97;
|
|
22936
|
+
pointer-events: none;
|
|
22937
|
+
transition: opacity 0.12s ease-out, scale 0.12s ease-out,
|
|
22938
|
+
display 0.12s allow-discrete, overlay 0.12s allow-discrete;
|
|
22939
|
+
}
|
|
22940
|
+
|
|
22941
|
+
:host(:popover-open) {
|
|
22942
|
+
opacity: 1;
|
|
22943
|
+
scale: 1;
|
|
22944
|
+
pointer-events: auto;
|
|
22945
|
+
}
|
|
22946
|
+
|
|
22947
|
+
@starting-style {
|
|
22948
|
+
:host(:popover-open) {
|
|
22949
|
+
opacity: 0;
|
|
22950
|
+
scale: 0.97;
|
|
22951
|
+
}
|
|
22952
|
+
}
|
|
22953
|
+
|
|
22954
|
+
:host([placement="top"]) {
|
|
22955
|
+
position-area: block-start;
|
|
22956
|
+
margin-block-end: var(--space-s);
|
|
22957
|
+
}
|
|
22958
|
+
|
|
22959
|
+
:host([placement="bottom"]) {
|
|
22960
|
+
position-area: block-end;
|
|
22961
|
+
margin-block-start: var(--space-s);
|
|
22962
|
+
}
|
|
22963
|
+
|
|
22964
|
+
:host([placement="left"]) {
|
|
22965
|
+
position-area: inline-start;
|
|
22966
|
+
margin-inline-end: var(--space-s);
|
|
22967
|
+
}
|
|
22968
|
+
|
|
22969
|
+
:host([placement="right"]) {
|
|
22970
|
+
position-area: inline-end;
|
|
22971
|
+
margin-inline-start: var(--space-s);
|
|
22972
|
+
}
|
|
22973
|
+
`
|
|
22974
|
+
];
|
|
22975
|
+
}
|
|
22976
|
+
render() {
|
|
22977
|
+
return b`<slot></slot>`;
|
|
22978
|
+
}
|
|
22979
|
+
};
|
|
22980
|
+
__decorate([property({ type: String })], SnackbarElement.prototype, "for", void 0);
|
|
22981
|
+
__decorate([property({ type: String })], SnackbarElement.prototype, "mode", void 0);
|
|
22982
|
+
__decorate([property({
|
|
22983
|
+
type: String,
|
|
22984
|
+
reflect: true
|
|
22985
|
+
})], SnackbarElement.prototype, "placement", void 0);
|
|
22986
|
+
__decorate([property({ type: String })], SnackbarElement.prototype, "dismiss", void 0);
|
|
22987
|
+
__decorate([property({
|
|
22988
|
+
type: Number,
|
|
22989
|
+
attribute: `show-delay`
|
|
22990
|
+
})], SnackbarElement.prototype, "showDelay", void 0);
|
|
22991
|
+
__decorate([property({
|
|
22992
|
+
type: Number,
|
|
22993
|
+
attribute: `hide-delay`
|
|
22994
|
+
})], SnackbarElement.prototype, "hideDelay", void 0);
|
|
22995
|
+
__decorate([state()], SnackbarElement.prototype, "_isOpen", void 0);
|
|
22996
|
+
SnackbarElement = __decorate([safeCustomElement(`ixfx-snackbar`)], SnackbarElement);
|
|
22997
|
+
//#endregion
|
|
22680
22998
|
//#region src/snap-container/snap-container.ts
|
|
22681
22999
|
let SnapContainer = class SnapContainer extends i {
|
|
22682
23000
|
constructor(..._args) {
|
|
@@ -27541,6 +27859,6 @@ function init() {
|
|
|
27541
27859
|
console.log(`Init`);
|
|
27542
27860
|
}
|
|
27543
27861
|
//#endregion
|
|
27544
|
-
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 };
|
|
27862
|
+
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 };
|
|
27545
27863
|
|
|
27546
27864
|
//# sourceMappingURL=index.js.map
|