@limetech/lime-elements 40.6.2 → 40.6.3
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/CHANGELOG.md +9 -0
- package/dist/cjs/limel-tab-bar.cjs.entry.js +4 -43
- package/dist/collection/components/tab-bar/tab-bar.css +145 -434
- package/dist/collection/components/tab-bar/tab-bar.js +3 -41
- package/dist/esm/limel-tab-bar.entry.js +4 -43
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-b35a912c.entry.js +1 -0
- package/dist/types/components/tab-bar/tab-bar.d.ts +0 -8
- package/package.json +1 -1
- package/dist/lime-elements/p-9e084e7c.entry.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [40.6.3](https://github.com/Lundalogik/lime-elements/compare/v40.6.2...v40.6.3) (2026-10-08)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* **tab-bar:** draw the tabs with our own styles instead of MDC's ([95f419c](https://github.com/Lundalogik/lime-elements/commit/95f419c31f2def04fa1be08a316d1441d4fc6a7b))
|
|
7
|
+
* **tab-bar:** give the selected tab's icon the same accent as its text ([73eff2d](https://github.com/Lundalogik/lime-elements/commit/73eff2d09e651a5d877a9690b165cb42d47d1416))
|
|
8
|
+
* **tab-bar:** show keyboard focus with the focus shadow, not a tint ([ed04bf4](https://github.com/Lundalogik/lime-elements/commit/ed04bf48e811ada396daf7aeee4de9850f825e86))
|
|
9
|
+
|
|
1
10
|
## [40.6.2](https://github.com/Lundalogik/lime-elements/compare/v40.6.1...v40.6.2) (2026-10-08)
|
|
2
11
|
|
|
3
12
|
### Bug Fixes
|
|
@@ -4,10 +4,8 @@ var index = require('./index-BlsqxTB1.js');
|
|
|
4
4
|
var getIconProps = require('./get-icon-props-CwpDdQDI.js');
|
|
5
5
|
var keycodes = require('./keycodes-BQ_AERli.js');
|
|
6
6
|
var isEqual = require('./isEqual-D3eFkhqd.js');
|
|
7
|
-
var component = require('./component-GW2n79GH.js');
|
|
8
7
|
var _baseIsEqual = require('./_baseIsEqual-zzV9DKMv.js');
|
|
9
8
|
var isArrayLikeObject = require('./isArrayLikeObject-U2Ddbw4n.js');
|
|
10
|
-
require('./ponyfill-CHp7Zocr.js');
|
|
11
9
|
require('./eq-DFcUoVzv.js');
|
|
12
10
|
require('./_getTag-BC28Za7d.js');
|
|
13
11
|
require('./isObject-B6Osvvqp.js');
|
|
@@ -261,7 +259,7 @@ function findReachable(count, start, step, wrap, canMoveTo) {
|
|
|
261
259
|
return NO_NAVIGATION_TARGET;
|
|
262
260
|
}
|
|
263
261
|
|
|
264
|
-
const tabBarCss = () => `.mdc-tab-bar{width:100%}.mdc-tab{height:48px}.mdc-tab--stacked{height:72px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-tab-indicator .mdc-tab-indicator__content--icon{color:#018786;color:var(--mdc-theme-secondary, #018786)}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mdc-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform, uppercase)}.mdc-tab .mdc-tab__text-label{color:rgba(0, 0, 0, 0.6)}.mdc-tab .mdc-tab__icon{color:rgba(0, 0, 0, 0.54);fill:currentColor}.mdc-tab{position:relative}.mdc-tab__content{position:relative}.mdc-tab__icon{width:24px;height:24px;font-size:24px}.mdc-tab--active .mdc-tab__text-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-tab--active .mdc-tab__icon{color:#6200ee;color:var(--mdc-theme-primary, #6200ee);fill:currentColor}.mdc-tab{background:none}.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px;}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-tab{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-tab .mdc-tab__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-tab .mdc-tab__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-tab.mdc-ripple-upgraded--unbounded .mdc-tab__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-tab.mdc-ripple-upgraded--foreground-activation .mdc-tab__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-tab.mdc-ripple-upgraded--foreground-deactivation .mdc-tab__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-tab:hover .mdc-tab__ripple::before,.mdc-tab.mdc-ripple-surface--hover .mdc-tab__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-tab.mdc-ripple-upgraded--background-focused .mdc-tab__ripple::before,.mdc-tab:not(.mdc-ripple-upgraded):focus .mdc-tab__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-tab:not(.mdc-ripple-upgraded) .mdc-tab__ripple::after{transition:opacity 150ms linear}.mdc-tab:not(.mdc-ripple-upgraded):active .mdc-tab__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-tab.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-tab__ripple{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;will-change:transform, opacity}:host(limel-tab-bar){--limel-tab-background-color:var(--contrast-300);--limel-tab-border-radius:0.625rem;--limel-active-tab-background-color:var( --tab-panel-background-color, rgb(var(--contrast-100)) );--limel-tab-active-outer-edge-curve-size:0.75rem;--limel-tab-separator-width:0.125rem;--limel-tab-separator-background-color:rgb(var(--contrast-600));isolation:isolate;display:block;position:relative}limel-scroller{--limel-scroller-fade-color:var(--limel-tab-background-color);--limel-scroller-content-padding:0.25rem var(--limel-tab-active-outer-edge-curve-size) 0;background-color:rgb(var(--limel-tab-background-color))}:host(.has-tabs-with-equal-width) .mdc-tab{flex:1 0 auto}.mdc-tab{font-family:inherit;font-weight:400;letter-spacing:normal;font-size:var(--limel-theme-default-font-size);text-transform:none}.mdc-tab-indicator .mdc-tab-indicator__content{border:none}.mdc-tab__ripple{box-sizing:border-box;border-radius:var(--limel-tab-border-radius);border-style:solid;border-color:transparent;border-width:0.25rem;opacity:0.7}.mdc-tab__ripple:before,.mdc-tab__ripple:after{transition:background-color 0.5s ease}.mdc-tab{border-radius:0;padding-right:1rem;padding-left:1rem;min-width:2.5rem;background-color:transparent;flex:0 0 auto;height:2.5rem}.mdc-tab:not(.mdc-tab--active):after{content:"";display:block;background-color:var(--limel-tab-separator-background-color);width:var(--limel-tab-separator-width);height:1rem;margin:auto;position:absolute;top:0;bottom:0;border-radius:1rem;right:calc(-1 * var(--limel-tab-separator-width))}.mdc-tab:not(.mdc-tab--active):last-of-type:after{display:none}.mdc-tab .mdc-tab__icon{color:rgb(var(--contrast-800));margin-left:-0.25rem}.mdc-tab limel-badge{margin-right:-0.25rem;box-shadow:0 0 0 1px rgb(var(--contrast-600))}.mdc-tab--active{border-radius:var(--limel-tab-border-radius) var(--limel-tab-border-radius) 0 0;background-color:var(--limel-active-tab-background-color);z-index:2}.mdc-tab--active:before,.mdc-tab--active:after{content:"";display:block;width:var(--limel-tab-active-outer-edge-curve-size);height:var(--limel-tab-active-outer-edge-curve-size);position:absolute;bottom:0;background-color:var(--limel-active-tab-background-color);-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E")}.mdc-tab--active:before{left:calc(-1 * var(--limel-tab-active-outer-edge-curve-size));transform:rotateY(180deg)}.mdc-tab--active:after{right:calc(-1 * var(--limel-tab-active-outer-edge-curve-size))}.mdc-tab--active .mdc-ripple-upgraded--background-focused:before{background-color:transparent;transition:background-color 1s ease}.mdc-tab--active .mdc-tab__icon{color:var(--mdc-theme-primary)}.mdc-tab__content{gap:0.375rem}.mdc-tab .mdc-tab__text-label{transition:color 0.2s ease;padding-left:0 !important;color:var(--limel-theme-on-surface-color)}.mdc-tab:hover .mdc-tab__text-label{color:var(--limel-theme-text-primary-on-background-color)}.mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--lime-primary-color, var(--limel-theme-primary-color))}`;
|
|
262
|
+
const tabBarCss = () => `@charset "UTF-8";:host(limel-tab-bar){--limel-tab-background-color:var(--contrast-300);--limel-tab-border-radius:0.625rem;--limel-tab-content-inset:0.25rem;--limel-active-tab-background-color:var( --tab-panel-background-color, rgb(var(--contrast-100)) );--limel-active-tab-color:var( --lime-primary-color, var(--limel-theme-primary-color) );--limel-tab-active-outer-edge-curve-size:0.75rem;--limel-tab-separator-width:0.125rem;--limel-tab-separator-background-color:rgb(var(--contrast-600));isolation:isolate;display:block;position:relative}limel-scroller{--limel-scroller-fade-color:var(--limel-tab-background-color);--limel-scroller-content-padding:0.25rem var(--limel-tab-active-outer-edge-curve-size) 0;background-color:rgb(var(--limel-tab-background-color))}:host(.has-tabs-with-equal-width) button{flex:1 0 auto}button{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;position:relative;display:flex;box-sizing:border-box;border-radius:0;padding:var(--limel-tab-content-inset);min-width:2.5rem;background-color:transparent;flex:0 0 auto;height:2.5rem;outline:none;cursor:pointer;white-space:nowrap;font-size:var(--limel-theme-default-font-size)}button:not([aria-selected=true]):after{content:"";display:block;background-color:var(--limel-tab-separator-background-color);width:var(--limel-tab-separator-width);height:1rem;margin:auto;position:absolute;top:0;bottom:0;border-radius:1rem;right:calc(-1 * var(--limel-tab-separator-width))}button:not([aria-selected=true]):last-of-type:after{display:none}button limel-icon{transition:color 0.2s ease;color:rgb(var(--contrast-800));margin-left:-0.25rem}button span.text{transition:color 0.2s ease;line-height:1;color:var(--limel-theme-on-surface-color)}button:hover span.text{color:var(--limel-theme-text-primary-on-background-color)}button limel-badge{margin-right:-0.25rem;box-shadow:0 0 0 1px rgb(var(--contrast-600));pointer-events:none}button[aria-selected=true]{border-radius:var(--limel-tab-border-radius) var(--limel-tab-border-radius) 0 0;background-color:var(--limel-active-tab-background-color);z-index:2}button[aria-selected=true]:before,button[aria-selected=true]:after{content:"";display:block;width:var(--limel-tab-active-outer-edge-curve-size);height:var(--limel-tab-active-outer-edge-curve-size);position:absolute;bottom:0;background-color:var(--limel-active-tab-background-color);-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E")}button[aria-selected=true]:before{left:calc(-1 * var(--limel-tab-active-outer-edge-curve-size));transform:rotateY(180deg)}button[aria-selected=true]:after{right:calc(-1 * var(--limel-tab-active-outer-edge-curve-size))}button[aria-selected=true] limel-icon{color:var(--limel-active-tab-color)}button[aria-selected=true] span.text{color:var(--limel-active-tab-color)}span.content{transition:box-shadow 0.2s ease;display:flex;flex-grow:1;align-items:center;justify-content:center;gap:0.375rem;padding:0 0.75rem;border-radius:calc(var(--limel-tab-border-radius) - var(--limel-tab-content-inset))}button:focus-visible span.content{transition-duration:0.3s;box-shadow:var(--shadow-depth-8-focused)}`;
|
|
265
263
|
|
|
266
264
|
const NAVIGATION = {
|
|
267
265
|
orientation: 'horizontal',
|
|
@@ -275,7 +273,6 @@ const TabBar = class {
|
|
|
275
273
|
* List of tabs to display
|
|
276
274
|
*/
|
|
277
275
|
this.tabs = [];
|
|
278
|
-
this.ripples = new Map();
|
|
279
276
|
this.hasLoaded = false;
|
|
280
277
|
this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
281
278
|
}
|
|
@@ -285,7 +282,6 @@ const TabBar = class {
|
|
|
285
282
|
if (!this.hasLoaded) {
|
|
286
283
|
return;
|
|
287
284
|
}
|
|
288
|
-
this.updateRipples();
|
|
289
285
|
this.revealedTabId = undefined;
|
|
290
286
|
await this.revealActiveTab('auto');
|
|
291
287
|
}
|
|
@@ -294,15 +290,11 @@ const TabBar = class {
|
|
|
294
290
|
this.triggerIconColorWarning();
|
|
295
291
|
}
|
|
296
292
|
async componentDidRender() {
|
|
297
|
-
this.updateRipples();
|
|
298
293
|
await this.revealActiveTab(this.hasLoaded ? undefined : 'auto');
|
|
299
294
|
}
|
|
300
|
-
disconnectedCallback() {
|
|
301
|
-
this.destroyRipples();
|
|
302
|
-
}
|
|
303
295
|
render() {
|
|
304
296
|
const tabStop = findTabStop(this.tabs, this.tabs.findIndex((tab) => tab.active), NAVIGATION);
|
|
305
|
-
return (index.h("div", { key: '
|
|
297
|
+
return (index.h("div", { key: '9998014061ef483531099bfe9b9b30904bb1090d', role: "tablist", onKeyDown: this.handleKeyDown }, index.h("limel-scroller", { key: 'e09578e9daaeef1a3d05b4f0258fdd40e97ec39b' }, this.tabs.map((tab, index) => this.renderTab(tab, index, index === tabStop)))));
|
|
306
298
|
}
|
|
307
299
|
tabsChanged(newTabs = [], oldTabs = []) {
|
|
308
300
|
const newIds = newTabs.map((tab) => tab.id);
|
|
@@ -317,31 +309,6 @@ const TabBar = class {
|
|
|
317
309
|
...this.host.shadowRoot.querySelectorAll('button[role="tab"]'),
|
|
318
310
|
];
|
|
319
311
|
}
|
|
320
|
-
/**
|
|
321
|
-
* Gives every tab MDC's ripple, which is the feedback when a tab is
|
|
322
|
-
* pressed. Tabs that are gone lose theirs.
|
|
323
|
-
*/
|
|
324
|
-
updateRipples() {
|
|
325
|
-
const tabs = this.getTabElements();
|
|
326
|
-
for (const [tab, ripple] of this.ripples) {
|
|
327
|
-
if (tabs.includes(tab)) {
|
|
328
|
-
continue;
|
|
329
|
-
}
|
|
330
|
-
ripple.destroy();
|
|
331
|
-
this.ripples.delete(tab);
|
|
332
|
-
}
|
|
333
|
-
for (const tab of tabs) {
|
|
334
|
-
if (!this.ripples.has(tab)) {
|
|
335
|
-
this.ripples.set(tab, new component.MDCRipple(tab));
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
destroyRipples() {
|
|
340
|
-
for (const ripple of this.ripples.values()) {
|
|
341
|
-
ripple.destroy();
|
|
342
|
-
}
|
|
343
|
-
this.ripples.clear();
|
|
344
|
-
}
|
|
345
312
|
/**
|
|
346
313
|
* A tab that is activated by the user has focus, and the scroller reveals
|
|
347
314
|
* what has focus. This is for a tab that becomes active without it.
|
|
@@ -405,16 +372,10 @@ const TabBar = class {
|
|
|
405
372
|
if (color) {
|
|
406
373
|
style.color = color;
|
|
407
374
|
}
|
|
408
|
-
return (index.h("limel-icon", {
|
|
375
|
+
return (index.h("limel-icon", { name: name, style: style, size: "small", "aria-hidden": "true" }));
|
|
409
376
|
}
|
|
410
377
|
renderTab(tab, index$1, isTabStop) {
|
|
411
|
-
return (index.h("button", { class: {
|
|
412
|
-
'mdc-tab': true,
|
|
413
|
-
'mdc-tab--active': !!tab.active,
|
|
414
|
-
}, role: "tab", "aria-selected": tab.active ? 'true' : 'false', tabindex: isTabStop ? 0 : -1, onClick: () => this.activateTab(index$1) }, index.h("span", { class: "mdc-tab__content" }, this.renderIcon(tab), index.h("span", { class: "mdc-tab__text-label" }, tab.text), tab.badge ? index.h("limel-badge", { label: tab.badge }) : ''), index.h("span", { class: {
|
|
415
|
-
'mdc-tab-indicator': true,
|
|
416
|
-
'mdc-tab-indicator--active': !!tab.active,
|
|
417
|
-
} }, index.h("span", { class: "mdc-tab-indicator__content mdc-tab-indicator__content--underline" })), index.h("span", { class: "mdc-tab__ripple" })));
|
|
378
|
+
return (index.h("button", { role: "tab", "aria-selected": tab.active ? 'true' : 'false', tabindex: isTabStop ? 0 : -1, onClick: () => this.activateTab(index$1) }, index.h("span", { class: "content" }, this.renderIcon(tab), index.h("span", { class: "text" }, tab.text), tab.badge ? index.h("limel-badge", { label: tab.badge }) : '')));
|
|
418
379
|
}
|
|
419
380
|
triggerIconColorWarning() {
|
|
420
381
|
if (this.tabs.some((tab) => tab.iconColor)) {
|
|
@@ -1,401 +1,114 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
3
|
+
* Note! This file is forwarded via `src/style/exports.scss`
|
|
4
|
+
* and exposed to consumers through the root `index.scss`.
|
|
4
5
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* in the Software without restriction, including without limitation the rights
|
|
8
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
* furnished to do so, subject to the following conditions:
|
|
6
|
+
* Consumers import it using:
|
|
7
|
+
* `@use '@limetech/lime-elements' as lime-elements;`
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
* THE SOFTWARE.
|
|
9
|
+
* Legacy import paths (`dist/scss/mixins`) are maintained
|
|
10
|
+
* for backward compatibility via copy rules in the Stencil config.
|
|
22
11
|
*/
|
|
23
|
-
.mdc-tab-bar {
|
|
24
|
-
width: 100%;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.mdc-tab {
|
|
28
|
-
height: 48px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.mdc-tab--stacked {
|
|
32
|
-
height: 72px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
12
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
41
|
-
* in the Software without restriction, including without limitation the rights
|
|
42
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
43
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
44
|
-
* furnished to do so, subject to the following conditions:
|
|
13
|
+
* Neutralizes the user-agent styles that browsers apply to `<button>` elements
|
|
14
|
+
* (their default background, border, padding, font, etc.), without stripping
|
|
15
|
+
* the useful defaults that `all: unset;` would also remove
|
|
16
|
+
* (such as `display`, `cursor`, and focus behavior).
|
|
45
17
|
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
18
|
+
* Prefer this mixin over `all: unset;` on `<button>` elements, then layer
|
|
19
|
+
* the styling you want on top — often one of the `is-*-clickable` mixins.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* This can be used on a trigger element that opens a dropdown menu or a popover.
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* This mixin will mask out the content that is close to
|
|
26
|
+
* the edges of a scrollable area.
|
|
27
|
+
* - If the scrollable content has `overflow-y`, use `vertically`
|
|
28
|
+
* as an argument for `$direction`.
|
|
29
|
+
- If the scrollable content has `overflow-x`, use `horizontally`
|
|
30
|
+
* as an argument for `$direction`.
|
|
31
|
+
*
|
|
32
|
+
* For the visual effect to work smoothly, we need to make sure that
|
|
33
|
+
* the size of the fade-out edge effect is the same as the
|
|
34
|
+
* internal paddings of the scrollable area. Otherwise, content of a
|
|
35
|
+
* scrollable area that does not have a padding will fade out before
|
|
36
|
+
* any scrolling has been done.
|
|
37
|
+
* This is why this mixin already adds paddings, which automatically
|
|
38
|
+
* default to the size of the fade-out effect.
|
|
39
|
+
* This size defaults to `1rem`, but to override the size use
|
|
40
|
+
* `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
|
|
41
|
+
* when `vertically` argument is set, and use
|
|
42
|
+
* `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
|
|
43
|
+
* when `horizontally` argument is set.
|
|
44
|
+
* Of course you can also programmatically increase and decrease the
|
|
45
|
+
* size of these variables for each edge, based on the amount of
|
|
46
|
+
* scrolling that has been done by the user. In this case, make sure
|
|
47
|
+
* to add a custom padding where the mixin is used, to override
|
|
48
|
+
* the paddings that are automatically added by the mixin in the
|
|
49
|
+
* compiled CSS code.
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* This mixin will add an animated underline to the bottom of an `a` elements.
|
|
53
|
+
* Note that you may need to add `all: unset;` –depending on your use case–
|
|
54
|
+
* before using this mixin.
|
|
55
|
+
*/
|
|
56
|
+
/**
|
|
57
|
+
* This mixin creates a cross-browser font stack.
|
|
58
|
+
* - `sans-serif` can be used for the UI of the components.
|
|
59
|
+
* - `monospace` can be used for code.
|
|
48
60
|
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
54
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
55
|
-
* THE SOFTWARE.
|
|
61
|
+
* ⚠️ If we change the font stacks, we need to update
|
|
62
|
+
* 1. the consumer documentation in `README.md`, and
|
|
63
|
+
* 2. the CSS variables of `--kompendium-example-font-family`
|
|
64
|
+
* in the `<style>` tag of `index.html`.
|
|
56
65
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
.mdc-tab-indicator__content--underline {
|
|
93
|
-
align-self: flex-end;
|
|
94
|
-
box-sizing: border-box;
|
|
95
|
-
width: 100%;
|
|
96
|
-
border-top-style: solid;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.mdc-tab-indicator__content--icon {
|
|
100
|
-
align-self: center;
|
|
101
|
-
margin: 0 auto;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.mdc-tab-indicator--active .mdc-tab-indicator__content {
|
|
105
|
-
opacity: 1;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.mdc-tab-indicator .mdc-tab-indicator__content {
|
|
109
|
-
transition: 250ms transform cubic-bezier(0.4, 0, 0.2, 1);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.mdc-tab-indicator--no-transition .mdc-tab-indicator__content {
|
|
113
|
-
transition: none;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.mdc-tab-indicator--fade .mdc-tab-indicator__content {
|
|
117
|
-
transition: 150ms opacity linear;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content {
|
|
121
|
-
transition-delay: 100ms;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.mdc-tab {
|
|
125
|
-
-moz-osx-font-smoothing: grayscale;
|
|
126
|
-
-webkit-font-smoothing: antialiased;
|
|
127
|
-
font-family: Roboto, sans-serif;
|
|
128
|
-
/* @alternate */
|
|
129
|
-
font-family: var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));
|
|
130
|
-
font-size: 0.875rem;
|
|
131
|
-
/* @alternate */
|
|
132
|
-
font-size: var(--mdc-typography-button-font-size, 0.875rem);
|
|
133
|
-
line-height: 2.25rem;
|
|
134
|
-
/* @alternate */
|
|
135
|
-
line-height: var(--mdc-typography-button-line-height, 2.25rem);
|
|
136
|
-
font-weight: 500;
|
|
137
|
-
/* @alternate */
|
|
138
|
-
font-weight: var(--mdc-typography-button-font-weight, 500);
|
|
139
|
-
letter-spacing: 0.0892857143em;
|
|
140
|
-
/* @alternate */
|
|
141
|
-
letter-spacing: var(--mdc-typography-button-letter-spacing, 0.0892857143em);
|
|
142
|
-
text-decoration: none;
|
|
143
|
-
/* @alternate */
|
|
144
|
-
text-decoration: var(--mdc-typography-button-text-decoration, none);
|
|
145
|
-
text-transform: uppercase;
|
|
146
|
-
/* @alternate */
|
|
147
|
-
text-transform: var(--mdc-typography-button-text-transform, uppercase);
|
|
148
|
-
}
|
|
149
|
-
.mdc-tab .mdc-tab__text-label {
|
|
150
|
-
color: rgba(0, 0, 0, 0.6);
|
|
151
|
-
}
|
|
152
|
-
.mdc-tab .mdc-tab__icon {
|
|
153
|
-
color: rgba(0, 0, 0, 0.54);
|
|
154
|
-
fill: currentColor;
|
|
155
|
-
}
|
|
156
|
-
.mdc-tab {
|
|
157
|
-
position: relative;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.mdc-tab__content {
|
|
161
|
-
position: relative;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.mdc-tab__icon {
|
|
165
|
-
width: 24px;
|
|
166
|
-
height: 24px;
|
|
167
|
-
font-size: 24px;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.mdc-tab--active .mdc-tab__text-label {
|
|
171
|
-
color: #6200ee;
|
|
172
|
-
/* @alternate */
|
|
173
|
-
color: var(--mdc-theme-primary, #6200ee);
|
|
174
|
-
}
|
|
175
|
-
.mdc-tab--active .mdc-tab__icon {
|
|
176
|
-
color: #6200ee;
|
|
177
|
-
/* @alternate */
|
|
178
|
-
color: var(--mdc-theme-primary, #6200ee);
|
|
179
|
-
fill: currentColor;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.mdc-tab {
|
|
183
|
-
background: none;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.mdc-tab {
|
|
187
|
-
min-width: 90px;
|
|
188
|
-
padding-right: 24px;
|
|
189
|
-
padding-left: 24px;
|
|
190
|
-
display: flex;
|
|
191
|
-
flex: 1 0 auto;
|
|
192
|
-
justify-content: center;
|
|
193
|
-
box-sizing: border-box;
|
|
194
|
-
margin: 0;
|
|
195
|
-
padding-top: 0;
|
|
196
|
-
padding-bottom: 0;
|
|
197
|
-
border: none;
|
|
198
|
-
outline: none;
|
|
199
|
-
text-align: center;
|
|
200
|
-
white-space: nowrap;
|
|
201
|
-
cursor: pointer;
|
|
202
|
-
-webkit-appearance: none;
|
|
203
|
-
z-index: 1;
|
|
204
|
-
}
|
|
205
|
-
.mdc-tab::-moz-focus-inner {
|
|
206
|
-
padding: 0;
|
|
207
|
-
border: 0;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.mdc-tab--min-width {
|
|
211
|
-
flex: 0 1 auto;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.mdc-tab__content {
|
|
215
|
-
display: flex;
|
|
216
|
-
align-items: center;
|
|
217
|
-
justify-content: center;
|
|
218
|
-
height: inherit;
|
|
219
|
-
pointer-events: none;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.mdc-tab__text-label {
|
|
223
|
-
transition: 150ms color linear;
|
|
224
|
-
display: inline-block;
|
|
225
|
-
line-height: 1;
|
|
226
|
-
z-index: 2;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.mdc-tab__icon {
|
|
230
|
-
transition: 150ms color linear;
|
|
231
|
-
z-index: 2;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.mdc-tab--stacked .mdc-tab__content {
|
|
235
|
-
flex-direction: column;
|
|
236
|
-
align-items: center;
|
|
237
|
-
justify-content: center;
|
|
238
|
-
}
|
|
239
|
-
.mdc-tab--stacked .mdc-tab__text-label {
|
|
240
|
-
padding-top: 6px;
|
|
241
|
-
padding-bottom: 4px;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
.mdc-tab--active .mdc-tab__text-label,
|
|
245
|
-
.mdc-tab--active .mdc-tab__icon {
|
|
246
|
-
transition-delay: 100ms;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon + .mdc-tab__text-label {
|
|
250
|
-
/* @noflip */ /*rtl:ignore*/
|
|
251
|
-
padding-left: 8px;
|
|
252
|
-
/* @noflip */ /*rtl:ignore*/
|
|
253
|
-
padding-right: 0;
|
|
254
|
-
}
|
|
255
|
-
[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon + .mdc-tab__text-label, .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon + .mdc-tab__text-label[dir=rtl] {
|
|
256
|
-
/*rtl:begin:ignore*/
|
|
257
|
-
/* @noflip */ /*rtl:ignore*/
|
|
258
|
-
padding-left: 0;
|
|
259
|
-
/* @noflip */ /*rtl:ignore*/
|
|
260
|
-
padding-right: 8px;
|
|
261
|
-
/*rtl:end:ignore*/
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
@keyframes mdc-ripple-fg-radius-in {
|
|
265
|
-
from {
|
|
266
|
-
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
267
|
-
transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);
|
|
268
|
-
}
|
|
269
|
-
to {
|
|
270
|
-
transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
@keyframes mdc-ripple-fg-opacity-in {
|
|
274
|
-
from {
|
|
275
|
-
animation-timing-function: linear;
|
|
276
|
-
opacity: 0;
|
|
277
|
-
}
|
|
278
|
-
to {
|
|
279
|
-
opacity: var(--mdc-ripple-fg-opacity, 0);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
@keyframes mdc-ripple-fg-opacity-out {
|
|
283
|
-
from {
|
|
284
|
-
animation-timing-function: linear;
|
|
285
|
-
opacity: var(--mdc-ripple-fg-opacity, 0);
|
|
286
|
-
}
|
|
287
|
-
to {
|
|
288
|
-
opacity: 0;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
.mdc-tab {
|
|
292
|
-
--mdc-ripple-fg-size: 0;
|
|
293
|
-
--mdc-ripple-left: 0;
|
|
294
|
-
--mdc-ripple-top: 0;
|
|
295
|
-
--mdc-ripple-fg-scale: 1;
|
|
296
|
-
--mdc-ripple-fg-translate-end: 0;
|
|
297
|
-
--mdc-ripple-fg-translate-start: 0;
|
|
298
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
299
|
-
}
|
|
300
|
-
.mdc-tab .mdc-tab__ripple::before,
|
|
301
|
-
.mdc-tab .mdc-tab__ripple::after {
|
|
302
|
-
position: absolute;
|
|
303
|
-
border-radius: 50%;
|
|
304
|
-
opacity: 0;
|
|
305
|
-
pointer-events: none;
|
|
306
|
-
content: "";
|
|
307
|
-
}
|
|
308
|
-
.mdc-tab .mdc-tab__ripple::before {
|
|
309
|
-
transition: opacity 15ms linear, background-color 15ms linear;
|
|
310
|
-
z-index: 1;
|
|
311
|
-
/* @alternate */
|
|
312
|
-
z-index: var(--mdc-ripple-z-index, 1);
|
|
313
|
-
}
|
|
314
|
-
.mdc-tab .mdc-tab__ripple::after {
|
|
315
|
-
z-index: 0;
|
|
316
|
-
/* @alternate */
|
|
317
|
-
z-index: var(--mdc-ripple-z-index, 0);
|
|
318
|
-
}
|
|
319
|
-
.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::before {
|
|
320
|
-
transform: scale(var(--mdc-ripple-fg-scale, 1));
|
|
321
|
-
}
|
|
322
|
-
.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after {
|
|
323
|
-
top: 0;
|
|
324
|
-
/* @noflip */ /*rtl:ignore*/
|
|
325
|
-
left: 0;
|
|
326
|
-
transform: scale(0);
|
|
327
|
-
transform-origin: center center;
|
|
328
|
-
}
|
|
329
|
-
.mdc-tab.mdc-ripple-upgraded--unbounded .mdc-tab__ripple::after {
|
|
330
|
-
top: var(--mdc-ripple-top, 0);
|
|
331
|
-
/* @noflip */ /*rtl:ignore*/
|
|
332
|
-
left: var(--mdc-ripple-left, 0);
|
|
333
|
-
}
|
|
334
|
-
.mdc-tab.mdc-ripple-upgraded--foreground-activation .mdc-tab__ripple::after {
|
|
335
|
-
animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;
|
|
336
|
-
}
|
|
337
|
-
.mdc-tab.mdc-ripple-upgraded--foreground-deactivation .mdc-tab__ripple::after {
|
|
338
|
-
animation: mdc-ripple-fg-opacity-out 150ms;
|
|
339
|
-
transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));
|
|
340
|
-
}
|
|
341
|
-
.mdc-tab .mdc-tab__ripple::before,
|
|
342
|
-
.mdc-tab .mdc-tab__ripple::after {
|
|
343
|
-
top: calc(50% - 100%);
|
|
344
|
-
/* @noflip */ /*rtl:ignore*/
|
|
345
|
-
left: calc(50% - 100%);
|
|
346
|
-
width: 200%;
|
|
347
|
-
height: 200%;
|
|
348
|
-
}
|
|
349
|
-
.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after {
|
|
350
|
-
width: var(--mdc-ripple-fg-size, 100%);
|
|
351
|
-
height: var(--mdc-ripple-fg-size, 100%);
|
|
352
|
-
}
|
|
353
|
-
.mdc-tab .mdc-tab__ripple::before, .mdc-tab .mdc-tab__ripple::after {
|
|
354
|
-
background-color: #6200ee;
|
|
355
|
-
/* @alternate */
|
|
356
|
-
background-color: var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee));
|
|
357
|
-
}
|
|
358
|
-
.mdc-tab:hover .mdc-tab__ripple::before, .mdc-tab.mdc-ripple-surface--hover .mdc-tab__ripple::before {
|
|
359
|
-
opacity: 0.04;
|
|
360
|
-
/* @alternate */
|
|
361
|
-
opacity: var(--mdc-ripple-hover-opacity, 0.04);
|
|
362
|
-
}
|
|
363
|
-
.mdc-tab.mdc-ripple-upgraded--background-focused .mdc-tab__ripple::before, .mdc-tab:not(.mdc-ripple-upgraded):focus .mdc-tab__ripple::before {
|
|
364
|
-
transition-duration: 75ms;
|
|
365
|
-
opacity: 0.12;
|
|
366
|
-
/* @alternate */
|
|
367
|
-
opacity: var(--mdc-ripple-focus-opacity, 0.12);
|
|
368
|
-
}
|
|
369
|
-
.mdc-tab:not(.mdc-ripple-upgraded) .mdc-tab__ripple::after {
|
|
370
|
-
transition: opacity 150ms linear;
|
|
371
|
-
}
|
|
372
|
-
.mdc-tab:not(.mdc-ripple-upgraded):active .mdc-tab__ripple::after {
|
|
373
|
-
transition-duration: 75ms;
|
|
374
|
-
opacity: 0.12;
|
|
375
|
-
/* @alternate */
|
|
376
|
-
opacity: var(--mdc-ripple-press-opacity, 0.12);
|
|
377
|
-
}
|
|
378
|
-
.mdc-tab.mdc-ripple-upgraded {
|
|
379
|
-
--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.mdc-tab__ripple {
|
|
383
|
-
position: absolute;
|
|
384
|
-
top: 0;
|
|
385
|
-
left: 0;
|
|
386
|
-
width: 100%;
|
|
387
|
-
height: 100%;
|
|
388
|
-
overflow: hidden;
|
|
389
|
-
will-change: transform, opacity;
|
|
390
|
-
}
|
|
391
|
-
|
|
66
|
+
/**
|
|
67
|
+
* This mixin is a hack, using old CSS syntax
|
|
68
|
+
* to enable you to truncate a piece of text,
|
|
69
|
+
* after a certain number of lines.
|
|
70
|
+
*/
|
|
71
|
+
/**
|
|
72
|
+
* This mixin will add a chessboard background pattern,
|
|
73
|
+
* typically used to visualize transparency.
|
|
74
|
+
*/
|
|
75
|
+
/**
|
|
76
|
+
* Make a container resizable by the user.
|
|
77
|
+
* This is used in the documentations and examples
|
|
78
|
+
* of some components, to demonstrate how the component
|
|
79
|
+
* behaves in a resizable container.
|
|
80
|
+
*/
|
|
81
|
+
/**
|
|
82
|
+
* Drag to reorder mixins
|
|
83
|
+
*/
|
|
84
|
+
/**
|
|
85
|
+
* The breakpoints below are used to create responsive designs
|
|
86
|
+
* in Lime's products. Therefore, they are here to get distributed
|
|
87
|
+
* to all components in other private repos, which rely on this `mixins`
|
|
88
|
+
* file, to create consistent styles.
|
|
89
|
+
*
|
|
90
|
+
* :::important
|
|
91
|
+
* In very rare cases you should used media queries!
|
|
92
|
+
* Nowadays, there are many better ways of achieving responsive design
|
|
93
|
+
* without media queries. For example, using CSS Grid, Flexbox, and their features.
|
|
94
|
+
* :::
|
|
95
|
+
*/
|
|
96
|
+
/**
|
|
97
|
+
* Media query mixins for responsive design based on screen width.
|
|
98
|
+
* Note that these mixins do not detect the device type!
|
|
99
|
+
*/
|
|
392
100
|
:host(limel-tab-bar) {
|
|
393
101
|
--limel-tab-background-color: var(--contrast-300);
|
|
394
102
|
--limel-tab-border-radius: 0.625rem;
|
|
103
|
+
--limel-tab-content-inset: 0.25rem;
|
|
395
104
|
--limel-active-tab-background-color: var(
|
|
396
105
|
--tab-panel-background-color,
|
|
397
106
|
rgb(var(--contrast-100))
|
|
398
107
|
);
|
|
108
|
+
--limel-active-tab-color: var(
|
|
109
|
+
--lime-primary-color,
|
|
110
|
+
var(--limel-theme-primary-color)
|
|
111
|
+
);
|
|
399
112
|
--limel-tab-active-outer-edge-curve-size: 0.75rem;
|
|
400
113
|
--limel-tab-separator-width: 0.125rem;
|
|
401
114
|
--limel-tab-separator-background-color: rgb(var(--contrast-600));
|
|
@@ -411,44 +124,34 @@ limel-scroller {
|
|
|
411
124
|
background-color: rgb(var(--limel-tab-background-color));
|
|
412
125
|
}
|
|
413
126
|
|
|
414
|
-
:host(.has-tabs-with-equal-width)
|
|
127
|
+
:host(.has-tabs-with-equal-width) button {
|
|
415
128
|
flex: 1 0 auto;
|
|
416
129
|
}
|
|
417
130
|
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
letter-spacing: normal;
|
|
422
|
-
font-size: var(--limel-theme-default-font-size);
|
|
423
|
-
text-transform: none;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
.mdc-tab-indicator .mdc-tab-indicator__content {
|
|
131
|
+
button {
|
|
132
|
+
appearance: none;
|
|
133
|
+
background: none;
|
|
427
134
|
border: none;
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
135
|
+
padding: 0;
|
|
136
|
+
margin: 0;
|
|
137
|
+
font: inherit;
|
|
138
|
+
color: inherit;
|
|
139
|
+
text-align: inherit;
|
|
140
|
+
position: relative;
|
|
141
|
+
display: flex;
|
|
431
142
|
box-sizing: border-box;
|
|
432
|
-
border-radius: var(--limel-tab-border-radius);
|
|
433
|
-
border-style: solid;
|
|
434
|
-
border-color: transparent;
|
|
435
|
-
border-width: 0.25rem;
|
|
436
|
-
opacity: 0.7;
|
|
437
|
-
}
|
|
438
|
-
.mdc-tab__ripple:before, .mdc-tab__ripple:after {
|
|
439
|
-
transition: background-color 0.5s ease;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
.mdc-tab {
|
|
443
143
|
border-radius: 0;
|
|
444
|
-
padding
|
|
445
|
-
padding-left: 1rem;
|
|
144
|
+
padding: var(--limel-tab-content-inset);
|
|
446
145
|
min-width: 2.5rem;
|
|
447
146
|
background-color: transparent;
|
|
448
147
|
flex: 0 0 auto;
|
|
449
148
|
height: 2.5rem;
|
|
149
|
+
outline: none;
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
white-space: nowrap;
|
|
152
|
+
font-size: var(--limel-theme-default-font-size);
|
|
450
153
|
}
|
|
451
|
-
|
|
154
|
+
button:not([aria-selected=true]):after {
|
|
452
155
|
content: "";
|
|
453
156
|
display: block;
|
|
454
157
|
background-color: var(--limel-tab-separator-background-color);
|
|
@@ -461,24 +164,34 @@ limel-scroller {
|
|
|
461
164
|
border-radius: 1rem;
|
|
462
165
|
right: calc(-1 * var(--limel-tab-separator-width));
|
|
463
166
|
}
|
|
464
|
-
|
|
167
|
+
button:not([aria-selected=true]):last-of-type:after {
|
|
465
168
|
display: none;
|
|
466
169
|
}
|
|
467
|
-
|
|
170
|
+
button limel-icon {
|
|
171
|
+
transition: color 0.2s ease;
|
|
468
172
|
color: rgb(var(--contrast-800));
|
|
469
173
|
margin-left: -0.25rem;
|
|
470
174
|
}
|
|
471
|
-
.
|
|
175
|
+
button span.text {
|
|
176
|
+
transition: color 0.2s ease;
|
|
177
|
+
line-height: 1;
|
|
178
|
+
color: var(--limel-theme-on-surface-color);
|
|
179
|
+
}
|
|
180
|
+
button:hover span.text {
|
|
181
|
+
color: var(--limel-theme-text-primary-on-background-color);
|
|
182
|
+
}
|
|
183
|
+
button limel-badge {
|
|
472
184
|
margin-right: -0.25rem;
|
|
473
185
|
box-shadow: 0 0 0 1px rgb(var(--contrast-600));
|
|
186
|
+
pointer-events: none;
|
|
474
187
|
}
|
|
475
188
|
|
|
476
|
-
|
|
189
|
+
button[aria-selected=true] {
|
|
477
190
|
border-radius: var(--limel-tab-border-radius) var(--limel-tab-border-radius) 0 0;
|
|
478
191
|
background-color: var(--limel-active-tab-background-color);
|
|
479
192
|
z-index: 2;
|
|
480
193
|
}
|
|
481
|
-
|
|
194
|
+
button[aria-selected=true]:before, button[aria-selected=true]:after {
|
|
482
195
|
content: "";
|
|
483
196
|
display: block;
|
|
484
197
|
width: var(--limel-tab-active-outer-edge-curve-size);
|
|
@@ -489,33 +202,31 @@ limel-scroller {
|
|
|
489
202
|
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E");
|
|
490
203
|
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E");
|
|
491
204
|
}
|
|
492
|
-
|
|
205
|
+
button[aria-selected=true]:before {
|
|
493
206
|
left: calc(-1 * var(--limel-tab-active-outer-edge-curve-size));
|
|
494
207
|
transform: rotateY(180deg);
|
|
495
208
|
}
|
|
496
|
-
|
|
209
|
+
button[aria-selected=true]:after {
|
|
497
210
|
right: calc(-1 * var(--limel-tab-active-outer-edge-curve-size));
|
|
498
211
|
}
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
transition: background-color 1s ease;
|
|
212
|
+
button[aria-selected=true] limel-icon {
|
|
213
|
+
color: var(--limel-active-tab-color);
|
|
502
214
|
}
|
|
503
|
-
|
|
504
|
-
color: var(--
|
|
215
|
+
button[aria-selected=true] span.text {
|
|
216
|
+
color: var(--limel-active-tab-color);
|
|
505
217
|
}
|
|
506
218
|
|
|
507
|
-
.
|
|
219
|
+
span.content {
|
|
220
|
+
transition: box-shadow 0.2s ease;
|
|
221
|
+
display: flex;
|
|
222
|
+
flex-grow: 1;
|
|
223
|
+
align-items: center;
|
|
224
|
+
justify-content: center;
|
|
508
225
|
gap: 0.375rem;
|
|
226
|
+
padding: 0 0.75rem;
|
|
227
|
+
border-radius: calc(var(--limel-tab-border-radius) - var(--limel-tab-content-inset));
|
|
509
228
|
}
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
padding-left: 0 !important;
|
|
514
|
-
color: var(--limel-theme-on-surface-color);
|
|
515
|
-
}
|
|
516
|
-
.mdc-tab:hover .mdc-tab__text-label {
|
|
517
|
-
color: var(--limel-theme-text-primary-on-background-color);
|
|
518
|
-
}
|
|
519
|
-
.mdc-tab.mdc-tab--active .mdc-tab__text-label {
|
|
520
|
-
color: var(--lime-primary-color, var(--limel-theme-primary-color));
|
|
229
|
+
button:focus-visible span.content {
|
|
230
|
+
transition-duration: 0.3s;
|
|
231
|
+
box-shadow: var(--shadow-depth-8-focused);
|
|
521
232
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { h, } from "@stencil/core";
|
|
2
|
-
import { MDCRipple } from "@material/ripple";
|
|
3
2
|
import { isEqual, difference } from "lodash-es";
|
|
4
3
|
import { setActiveTab } from "./tabs";
|
|
5
4
|
import { getIconColor, getIconName } from "../icon/get-icon-props";
|
|
@@ -36,7 +35,6 @@ export class TabBar {
|
|
|
36
35
|
* List of tabs to display
|
|
37
36
|
*/
|
|
38
37
|
this.tabs = [];
|
|
39
|
-
this.ripples = new Map();
|
|
40
38
|
this.hasLoaded = false;
|
|
41
39
|
this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
42
40
|
}
|
|
@@ -46,7 +44,6 @@ export class TabBar {
|
|
|
46
44
|
if (!this.hasLoaded) {
|
|
47
45
|
return;
|
|
48
46
|
}
|
|
49
|
-
this.updateRipples();
|
|
50
47
|
this.revealedTabId = undefined;
|
|
51
48
|
await this.revealActiveTab('auto');
|
|
52
49
|
}
|
|
@@ -55,15 +52,11 @@ export class TabBar {
|
|
|
55
52
|
this.triggerIconColorWarning();
|
|
56
53
|
}
|
|
57
54
|
async componentDidRender() {
|
|
58
|
-
this.updateRipples();
|
|
59
55
|
await this.revealActiveTab(this.hasLoaded ? undefined : 'auto');
|
|
60
56
|
}
|
|
61
|
-
disconnectedCallback() {
|
|
62
|
-
this.destroyRipples();
|
|
63
|
-
}
|
|
64
57
|
render() {
|
|
65
58
|
const tabStop = findTabStop(this.tabs, this.tabs.findIndex((tab) => tab.active), NAVIGATION);
|
|
66
|
-
return (h("div", { key: '
|
|
59
|
+
return (h("div", { key: '9998014061ef483531099bfe9b9b30904bb1090d', role: "tablist", onKeyDown: this.handleKeyDown }, h("limel-scroller", { key: 'e09578e9daaeef1a3d05b4f0258fdd40e97ec39b' }, this.tabs.map((tab, index) => this.renderTab(tab, index, index === tabStop)))));
|
|
67
60
|
}
|
|
68
61
|
tabsChanged(newTabs = [], oldTabs = []) {
|
|
69
62
|
const newIds = newTabs.map((tab) => tab.id);
|
|
@@ -78,31 +71,6 @@ export class TabBar {
|
|
|
78
71
|
...this.host.shadowRoot.querySelectorAll('button[role="tab"]'),
|
|
79
72
|
];
|
|
80
73
|
}
|
|
81
|
-
/**
|
|
82
|
-
* Gives every tab MDC's ripple, which is the feedback when a tab is
|
|
83
|
-
* pressed. Tabs that are gone lose theirs.
|
|
84
|
-
*/
|
|
85
|
-
updateRipples() {
|
|
86
|
-
const tabs = this.getTabElements();
|
|
87
|
-
for (const [tab, ripple] of this.ripples) {
|
|
88
|
-
if (tabs.includes(tab)) {
|
|
89
|
-
continue;
|
|
90
|
-
}
|
|
91
|
-
ripple.destroy();
|
|
92
|
-
this.ripples.delete(tab);
|
|
93
|
-
}
|
|
94
|
-
for (const tab of tabs) {
|
|
95
|
-
if (!this.ripples.has(tab)) {
|
|
96
|
-
this.ripples.set(tab, new MDCRipple(tab));
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
destroyRipples() {
|
|
101
|
-
for (const ripple of this.ripples.values()) {
|
|
102
|
-
ripple.destroy();
|
|
103
|
-
}
|
|
104
|
-
this.ripples.clear();
|
|
105
|
-
}
|
|
106
74
|
/**
|
|
107
75
|
* A tab that is activated by the user has focus, and the scroller reveals
|
|
108
76
|
* what has focus. This is for a tab that becomes active without it.
|
|
@@ -166,16 +134,10 @@ export class TabBar {
|
|
|
166
134
|
if (color) {
|
|
167
135
|
style.color = color;
|
|
168
136
|
}
|
|
169
|
-
return (h("limel-icon", {
|
|
137
|
+
return (h("limel-icon", { name: name, style: style, size: "small", "aria-hidden": "true" }));
|
|
170
138
|
}
|
|
171
139
|
renderTab(tab, index, isTabStop) {
|
|
172
|
-
return (h("button", { class: {
|
|
173
|
-
'mdc-tab': true,
|
|
174
|
-
'mdc-tab--active': !!tab.active,
|
|
175
|
-
}, role: "tab", "aria-selected": tab.active ? 'true' : 'false', tabindex: isTabStop ? 0 : -1, onClick: () => this.activateTab(index) }, h("span", { class: "mdc-tab__content" }, this.renderIcon(tab), h("span", { class: "mdc-tab__text-label" }, tab.text), tab.badge ? h("limel-badge", { label: tab.badge }) : ''), h("span", { class: {
|
|
176
|
-
'mdc-tab-indicator': true,
|
|
177
|
-
'mdc-tab-indicator--active': !!tab.active,
|
|
178
|
-
} }, h("span", { class: "mdc-tab-indicator__content mdc-tab-indicator__content--underline" })), h("span", { class: "mdc-tab__ripple" })));
|
|
140
|
+
return (h("button", { role: "tab", "aria-selected": tab.active ? 'true' : 'false', tabindex: isTabStop ? 0 : -1, onClick: () => this.activateTab(index) }, h("span", { class: "content" }, this.renderIcon(tab), h("span", { class: "text" }, tab.text), tab.badge ? h("limel-badge", { label: tab.badge }) : '')));
|
|
179
141
|
}
|
|
180
142
|
triggerIconColorWarning() {
|
|
181
143
|
if (this.tabs.some((tab) => tab.iconColor)) {
|
|
@@ -2,10 +2,8 @@ import { r as registerInstance, c as createEvent, h, a as getElement } from './i
|
|
|
2
2
|
import { g as getIconName, b as getIconColor } from './get-icon-props-CgNJbSP4.js';
|
|
3
3
|
import { A as ARROW_UP, b as ARROW_DOWN, H as HOME, c as END, d as ARROW_LEFT, e as ARROW_RIGHT } from './keycodes-DQ5DmW_Y.js';
|
|
4
4
|
import { i as isEqual } from './isEqual-CE83yS8T.js';
|
|
5
|
-
import { M as MDCRipple } from './component-CrjPGt1I.js';
|
|
6
5
|
import { S as SetCache, c as cacheHas } from './_baseIsEqual-CyF4P8uM.js';
|
|
7
6
|
import { a as arrayIncludes, b as baseRest, i as isArrayLikeObject, c as baseFlatten } from './isArrayLikeObject-CJB8HbtH.js';
|
|
8
|
-
import './ponyfill-6YuZiAPi.js';
|
|
9
7
|
import './eq-CZ30nDJE.js';
|
|
10
8
|
import './_getTag-BiAaLWvH.js';
|
|
11
9
|
import './isObject-BJQylLSL.js';
|
|
@@ -259,7 +257,7 @@ function findReachable(count, start, step, wrap, canMoveTo) {
|
|
|
259
257
|
return NO_NAVIGATION_TARGET;
|
|
260
258
|
}
|
|
261
259
|
|
|
262
|
-
const tabBarCss = () => `.mdc-tab-bar{width:100%}.mdc-tab{height:48px}.mdc-tab--stacked{height:72px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-tab-indicator .mdc-tab-indicator__content--icon{color:#018786;color:var(--mdc-theme-secondary, #018786)}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mdc-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform, uppercase)}.mdc-tab .mdc-tab__text-label{color:rgba(0, 0, 0, 0.6)}.mdc-tab .mdc-tab__icon{color:rgba(0, 0, 0, 0.54);fill:currentColor}.mdc-tab{position:relative}.mdc-tab__content{position:relative}.mdc-tab__icon{width:24px;height:24px;font-size:24px}.mdc-tab--active .mdc-tab__text-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-tab--active .mdc-tab__icon{color:#6200ee;color:var(--mdc-theme-primary, #6200ee);fill:currentColor}.mdc-tab{background:none}.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px;}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-tab{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-tab .mdc-tab__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-tab .mdc-tab__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-tab.mdc-ripple-upgraded--unbounded .mdc-tab__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-tab.mdc-ripple-upgraded--foreground-activation .mdc-tab__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-tab.mdc-ripple-upgraded--foreground-deactivation .mdc-tab__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-tab:hover .mdc-tab__ripple::before,.mdc-tab.mdc-ripple-surface--hover .mdc-tab__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-tab.mdc-ripple-upgraded--background-focused .mdc-tab__ripple::before,.mdc-tab:not(.mdc-ripple-upgraded):focus .mdc-tab__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-tab:not(.mdc-ripple-upgraded) .mdc-tab__ripple::after{transition:opacity 150ms linear}.mdc-tab:not(.mdc-ripple-upgraded):active .mdc-tab__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-tab.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-tab__ripple{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;will-change:transform, opacity}:host(limel-tab-bar){--limel-tab-background-color:var(--contrast-300);--limel-tab-border-radius:0.625rem;--limel-active-tab-background-color:var( --tab-panel-background-color, rgb(var(--contrast-100)) );--limel-tab-active-outer-edge-curve-size:0.75rem;--limel-tab-separator-width:0.125rem;--limel-tab-separator-background-color:rgb(var(--contrast-600));isolation:isolate;display:block;position:relative}limel-scroller{--limel-scroller-fade-color:var(--limel-tab-background-color);--limel-scroller-content-padding:0.25rem var(--limel-tab-active-outer-edge-curve-size) 0;background-color:rgb(var(--limel-tab-background-color))}:host(.has-tabs-with-equal-width) .mdc-tab{flex:1 0 auto}.mdc-tab{font-family:inherit;font-weight:400;letter-spacing:normal;font-size:var(--limel-theme-default-font-size);text-transform:none}.mdc-tab-indicator .mdc-tab-indicator__content{border:none}.mdc-tab__ripple{box-sizing:border-box;border-radius:var(--limel-tab-border-radius);border-style:solid;border-color:transparent;border-width:0.25rem;opacity:0.7}.mdc-tab__ripple:before,.mdc-tab__ripple:after{transition:background-color 0.5s ease}.mdc-tab{border-radius:0;padding-right:1rem;padding-left:1rem;min-width:2.5rem;background-color:transparent;flex:0 0 auto;height:2.5rem}.mdc-tab:not(.mdc-tab--active):after{content:"";display:block;background-color:var(--limel-tab-separator-background-color);width:var(--limel-tab-separator-width);height:1rem;margin:auto;position:absolute;top:0;bottom:0;border-radius:1rem;right:calc(-1 * var(--limel-tab-separator-width))}.mdc-tab:not(.mdc-tab--active):last-of-type:after{display:none}.mdc-tab .mdc-tab__icon{color:rgb(var(--contrast-800));margin-left:-0.25rem}.mdc-tab limel-badge{margin-right:-0.25rem;box-shadow:0 0 0 1px rgb(var(--contrast-600))}.mdc-tab--active{border-radius:var(--limel-tab-border-radius) var(--limel-tab-border-radius) 0 0;background-color:var(--limel-active-tab-background-color);z-index:2}.mdc-tab--active:before,.mdc-tab--active:after{content:"";display:block;width:var(--limel-tab-active-outer-edge-curve-size);height:var(--limel-tab-active-outer-edge-curve-size);position:absolute;bottom:0;background-color:var(--limel-active-tab-background-color);-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E")}.mdc-tab--active:before{left:calc(-1 * var(--limel-tab-active-outer-edge-curve-size));transform:rotateY(180deg)}.mdc-tab--active:after{right:calc(-1 * var(--limel-tab-active-outer-edge-curve-size))}.mdc-tab--active .mdc-ripple-upgraded--background-focused:before{background-color:transparent;transition:background-color 1s ease}.mdc-tab--active .mdc-tab__icon{color:var(--mdc-theme-primary)}.mdc-tab__content{gap:0.375rem}.mdc-tab .mdc-tab__text-label{transition:color 0.2s ease;padding-left:0 !important;color:var(--limel-theme-on-surface-color)}.mdc-tab:hover .mdc-tab__text-label{color:var(--limel-theme-text-primary-on-background-color)}.mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--lime-primary-color, var(--limel-theme-primary-color))}`;
|
|
260
|
+
const tabBarCss = () => `@charset "UTF-8";:host(limel-tab-bar){--limel-tab-background-color:var(--contrast-300);--limel-tab-border-radius:0.625rem;--limel-tab-content-inset:0.25rem;--limel-active-tab-background-color:var( --tab-panel-background-color, rgb(var(--contrast-100)) );--limel-active-tab-color:var( --lime-primary-color, var(--limel-theme-primary-color) );--limel-tab-active-outer-edge-curve-size:0.75rem;--limel-tab-separator-width:0.125rem;--limel-tab-separator-background-color:rgb(var(--contrast-600));isolation:isolate;display:block;position:relative}limel-scroller{--limel-scroller-fade-color:var(--limel-tab-background-color);--limel-scroller-content-padding:0.25rem var(--limel-tab-active-outer-edge-curve-size) 0;background-color:rgb(var(--limel-tab-background-color))}:host(.has-tabs-with-equal-width) button{flex:1 0 auto}button{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;position:relative;display:flex;box-sizing:border-box;border-radius:0;padding:var(--limel-tab-content-inset);min-width:2.5rem;background-color:transparent;flex:0 0 auto;height:2.5rem;outline:none;cursor:pointer;white-space:nowrap;font-size:var(--limel-theme-default-font-size)}button:not([aria-selected=true]):after{content:"";display:block;background-color:var(--limel-tab-separator-background-color);width:var(--limel-tab-separator-width);height:1rem;margin:auto;position:absolute;top:0;bottom:0;border-radius:1rem;right:calc(-1 * var(--limel-tab-separator-width))}button:not([aria-selected=true]):last-of-type:after{display:none}button limel-icon{transition:color 0.2s ease;color:rgb(var(--contrast-800));margin-left:-0.25rem}button span.text{transition:color 0.2s ease;line-height:1;color:var(--limel-theme-on-surface-color)}button:hover span.text{color:var(--limel-theme-text-primary-on-background-color)}button limel-badge{margin-right:-0.25rem;box-shadow:0 0 0 1px rgb(var(--contrast-600));pointer-events:none}button[aria-selected=true]{border-radius:var(--limel-tab-border-radius) var(--limel-tab-border-radius) 0 0;background-color:var(--limel-active-tab-background-color);z-index:2}button[aria-selected=true]:before,button[aria-selected=true]:after{content:"";display:block;width:var(--limel-tab-active-outer-edge-curve-size);height:var(--limel-tab-active-outer-edge-curve-size);position:absolute;bottom:0;background-color:var(--limel-active-tab-background-color);-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E")}button[aria-selected=true]:before{left:calc(-1 * var(--limel-tab-active-outer-edge-curve-size));transform:rotateY(180deg)}button[aria-selected=true]:after{right:calc(-1 * var(--limel-tab-active-outer-edge-curve-size))}button[aria-selected=true] limel-icon{color:var(--limel-active-tab-color)}button[aria-selected=true] span.text{color:var(--limel-active-tab-color)}span.content{transition:box-shadow 0.2s ease;display:flex;flex-grow:1;align-items:center;justify-content:center;gap:0.375rem;padding:0 0.75rem;border-radius:calc(var(--limel-tab-border-radius) - var(--limel-tab-content-inset))}button:focus-visible span.content{transition-duration:0.3s;box-shadow:var(--shadow-depth-8-focused)}`;
|
|
263
261
|
|
|
264
262
|
const NAVIGATION = {
|
|
265
263
|
orientation: 'horizontal',
|
|
@@ -273,7 +271,6 @@ const TabBar = class {
|
|
|
273
271
|
* List of tabs to display
|
|
274
272
|
*/
|
|
275
273
|
this.tabs = [];
|
|
276
|
-
this.ripples = new Map();
|
|
277
274
|
this.hasLoaded = false;
|
|
278
275
|
this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
279
276
|
}
|
|
@@ -283,7 +280,6 @@ const TabBar = class {
|
|
|
283
280
|
if (!this.hasLoaded) {
|
|
284
281
|
return;
|
|
285
282
|
}
|
|
286
|
-
this.updateRipples();
|
|
287
283
|
this.revealedTabId = undefined;
|
|
288
284
|
await this.revealActiveTab('auto');
|
|
289
285
|
}
|
|
@@ -292,15 +288,11 @@ const TabBar = class {
|
|
|
292
288
|
this.triggerIconColorWarning();
|
|
293
289
|
}
|
|
294
290
|
async componentDidRender() {
|
|
295
|
-
this.updateRipples();
|
|
296
291
|
await this.revealActiveTab(this.hasLoaded ? undefined : 'auto');
|
|
297
292
|
}
|
|
298
|
-
disconnectedCallback() {
|
|
299
|
-
this.destroyRipples();
|
|
300
|
-
}
|
|
301
293
|
render() {
|
|
302
294
|
const tabStop = findTabStop(this.tabs, this.tabs.findIndex((tab) => tab.active), NAVIGATION);
|
|
303
|
-
return (h("div", { key: '
|
|
295
|
+
return (h("div", { key: '9998014061ef483531099bfe9b9b30904bb1090d', role: "tablist", onKeyDown: this.handleKeyDown }, h("limel-scroller", { key: 'e09578e9daaeef1a3d05b4f0258fdd40e97ec39b' }, this.tabs.map((tab, index) => this.renderTab(tab, index, index === tabStop)))));
|
|
304
296
|
}
|
|
305
297
|
tabsChanged(newTabs = [], oldTabs = []) {
|
|
306
298
|
const newIds = newTabs.map((tab) => tab.id);
|
|
@@ -315,31 +307,6 @@ const TabBar = class {
|
|
|
315
307
|
...this.host.shadowRoot.querySelectorAll('button[role="tab"]'),
|
|
316
308
|
];
|
|
317
309
|
}
|
|
318
|
-
/**
|
|
319
|
-
* Gives every tab MDC's ripple, which is the feedback when a tab is
|
|
320
|
-
* pressed. Tabs that are gone lose theirs.
|
|
321
|
-
*/
|
|
322
|
-
updateRipples() {
|
|
323
|
-
const tabs = this.getTabElements();
|
|
324
|
-
for (const [tab, ripple] of this.ripples) {
|
|
325
|
-
if (tabs.includes(tab)) {
|
|
326
|
-
continue;
|
|
327
|
-
}
|
|
328
|
-
ripple.destroy();
|
|
329
|
-
this.ripples.delete(tab);
|
|
330
|
-
}
|
|
331
|
-
for (const tab of tabs) {
|
|
332
|
-
if (!this.ripples.has(tab)) {
|
|
333
|
-
this.ripples.set(tab, new MDCRipple(tab));
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
destroyRipples() {
|
|
338
|
-
for (const ripple of this.ripples.values()) {
|
|
339
|
-
ripple.destroy();
|
|
340
|
-
}
|
|
341
|
-
this.ripples.clear();
|
|
342
|
-
}
|
|
343
310
|
/**
|
|
344
311
|
* A tab that is activated by the user has focus, and the scroller reveals
|
|
345
312
|
* what has focus. This is for a tab that becomes active without it.
|
|
@@ -403,16 +370,10 @@ const TabBar = class {
|
|
|
403
370
|
if (color) {
|
|
404
371
|
style.color = color;
|
|
405
372
|
}
|
|
406
|
-
return (h("limel-icon", {
|
|
373
|
+
return (h("limel-icon", { name: name, style: style, size: "small", "aria-hidden": "true" }));
|
|
407
374
|
}
|
|
408
375
|
renderTab(tab, index, isTabStop) {
|
|
409
|
-
return (h("button", { class: {
|
|
410
|
-
'mdc-tab': true,
|
|
411
|
-
'mdc-tab--active': !!tab.active,
|
|
412
|
-
}, role: "tab", "aria-selected": tab.active ? 'true' : 'false', tabindex: isTabStop ? 0 : -1, onClick: () => this.activateTab(index) }, h("span", { class: "mdc-tab__content" }, this.renderIcon(tab), h("span", { class: "mdc-tab__text-label" }, tab.text), tab.badge ? h("limel-badge", { label: tab.badge }) : ''), h("span", { class: {
|
|
413
|
-
'mdc-tab-indicator': true,
|
|
414
|
-
'mdc-tab-indicator--active': !!tab.active,
|
|
415
|
-
} }, h("span", { class: "mdc-tab-indicator__content mdc-tab-indicator__content--underline" })), h("span", { class: "mdc-tab__ripple" })));
|
|
376
|
+
return (h("button", { role: "tab", "aria-selected": tab.active ? 'true' : 'false', tabindex: isTabStop ? 0 : -1, onClick: () => this.activateTab(index) }, h("span", { class: "content" }, this.renderIcon(tab), h("span", { class: "text" }, tab.text), tab.badge ? h("limel-badge", { label: tab.badge }) : '')));
|
|
416
377
|
}
|
|
417
378
|
triggerIconColorWarning() {
|
|
418
379
|
if (this.tabs.some((tab) => tab.iconColor)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,g as l,b as a}from"./p-BU9IJqli.js";export{s as setNonce}from"./p-BU9IJqli.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await l(),a(JSON.parse('[["p-0e13ec91",[[1,"limel-icon",{"size":[513],"name":[513],"badge":[516],"svgClass":[513,"svg-class"]},null,{"name":[{"loadIcon":0}],"svgClass":[{"applySvgClass":0}]}]]],["p-22fd1c87",[[17,"limel-prosemirror-adapter",{"contentType":[1,"content-type"],"value":[1],"language":[513],"disabled":[516],"customElements":[16],"inlineImages":[16],"triggerCharacters":[16],"ui":[1],"view":[32],"actionBarItems":[32],"link":[32],"isLinkMenuOpen":[32],"flushPendingChanges":[64],"clear":[64]},null,{"value":[{"watchValue":0}]}]]],["p-fdd674fc",[[17,"limel-text-editor",{"contentType":[1,"content-type"],"language":[513],"disabled":[516],"readonly":[516],"helperText":[513,"helper-text"],"placeholder":[513],"label":[513],"invalid":[516],"value":[513],"customElements":[16],"inlineImages":[16],"triggers":[16],"required":[516],"allowResize":[516,"allow-resize"],"ui":[513],"flushPendingChanges":[64],"clear":[64]}]]],["p-a550ba18",[[1,"limel-file-viewer",{"url":[513],"filename":[513],"alt":[513],"allowFullscreen":[516,"allow-fullscreen"],"allowOpenInNewTab":[516,"allow-open-in-new-tab"],"allowDownload":[516,"allow-download"],"language":[1],"officeViewer":[513,"office-viewer"],"actions":[16],"isFullscreen":[32],"fileType":[32],"loading":[32],"fileUrl":[32],"email":[32]},null,{"url":[{"watchUrl":0}]}]]],["p-a1c69e0c",[[257,"limel-card",{"heading":[513],"subheading":[513],"image":[16],"icon":[513],"value":[1],"actions":[16],"clickable":[516],"orientation":[513],"selected":[516],"show3dEffect":[516,"show-3d-effect"],"canScrollUp":[32],"canScrollDown":[32]}]]],["p-48afa6b7",[[1,"limel-file",{"value":[16],"label":[513],"helperText":[513,"helper-text"],"required":[516],"disabled":[516],"readonly":[516],"invalid":[516],"loading":[516],"accept":[513],"resizeImage":[16],"language":[1],"resizingFile":[32]},null,{"value":[{"handleValueChange":0}]}]]],["p-45fde7a1",[[1,"limel-code-diff",{"oldValue":[1,"old-value"],"newValue":[1,"new-value"],"oldHeading":[513,"old-heading"],"newHeading":[513,"new-heading"],"layout":[513],"contextLines":[514,"context-lines"],"lineWrapping":[516,"line-wrapping"],"language":[513],"reformatJson":[516,"reformat-json"],"translationLanguage":[513,"translation-language"],"diffResult":[32],"liveAnnouncement":[32],"copyState":[32],"searchVisible":[32],"searchTerm":[32],"currentMatchIndex":[32]},null,{"oldValue":[{"watchInputs":0}],"newValue":[{"watchInputs":0}],"contextLines":[{"watchInputs":0}],"reformatJson":[{"watchInputs":0}],"layout":[{"watchInputs":0}]}]]],["p-4a88d365",[[0,"limel-list-item",{"language":[513],"value":[8],"text":[513],"secondaryText":[513,"secondary-text"],"disabled":[516],"icon":[1],"iconSize":[513,"icon-size"],"badgeIcon":[516,"badge-icon"],"selected":[516],"actions":[16],"primaryComponent":[16],"image":[16],"type":[513]}]]],["p-02a06cf7",[[17,"limel-picker",{"disabled":[4],"readonly":[516],"label":[1],"searchLabel":[1,"search-label"],"helperText":[513,"helper-text"],"leadingIcon":[1,"leading-icon"],"emptyResultMessage":[1,"empty-result-message"],"language":[1],"required":[4],"invalid":[516],"value":[16],"searcher":[16],"allItems":[16],"multiple":[4],"delimiter":[513],"actions":[16],"actionPosition":[1,"action-position"],"actionScrollBehavior":[1,"action-scroll-behavior"],"badgeIcons":[516,"badge-icons"],"items":[32],"textValue":[32],"loading":[32],"chips":[32]},null,{"disabled":[{"onDisabledChange":0}],"value":[{"onChangeValue":0}]}]]],["p-7eab1341",[[17,"limel-split-button",{"label":[513],"primary":[516],"icon":[513],"disabled":[516],"loading":[516],"loadingFailed":[516,"loading-failed"],"items":[16]}]]],["p-3cfe0eaf",[[1,"limel-pagination",{"page":[2],"pageSize":[514,"page-size"],"totalItems":[514,"total-items"],"loading":[516],"language":[513],"liveMessage":[32],"openGap":[32]},null,{"language":[{"handleLanguageChange":0}]}]]],["p-ff1a8b2e",[[1,"limel-color-picker",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"tooltipLabel":[513,"tooltip-label"],"required":[516],"disabled":[516],"readonly":[516],"invalid":[516],"placeholder":[513],"manualInput":[516,"manual-input"],"palette":[16],"paletteColumnCount":[514,"palette-column-count"],"isOpen":[32]}]]],["p-a65eb58e",[[1,"limel-profile-picture",{"language":[513],"label":[513],"icon":[1],"helperText":[1,"helper-text"],"disabled":[516],"readonly":[516],"required":[516],"invalid":[516],"loading":[516],"value":[1],"imageFit":[513,"image-fit"],"accept":[513],"resize":[16],"objectUrl":[32],"imageError":[32],"isErrorMessagePopoverOpen":[32]},null,{"value":[{"handleValueChange":0}]}]]],["p-e02e2c5f",[[1,"limel-dock",{"dockItems":[16],"dockFooterItems":[16],"accessibleLabel":[513,"accessible-label"],"expanded":[516],"allowResize":[516,"allow-resize"],"mobileBreakPoint":[514,"mobile-break-point"],"useMobileLayout":[32]}]]],["p-9218fa6a",[[1,"limel-snackbar",{"open":[516],"message":[1],"timeout":[514],"actionText":[1,"action-text"],"dismissible":[4],"multiline":[4],"language":[1],"offset":[32],"isOpen":[32],"closing":[32],"show":[64]},[[0,"changeOffset","onChangeIndex"]],{"open":[{"watchOpen":0}]}]]],["p-958396b5",[[1,"limel-date-picker",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"required":[516],"value":[16],"type":[513],"format":[513],"language":[513],"formatter":[16],"internalFormat":[32],"showPortal":[32]}]]],["p-fdec09e9",[[1,"limel-button-group",{"value":[16],"disabled":[516],"selectedButtonId":[32]},null,{"value":[{"valueChanged":0}]}]]],["p-2b2253d4",[[1,"limel-chart",{"language":[513],"accessibleLabel":[513,"accessible-label"],"accessibleItemsLabel":[513,"accessible-items-label"],"accessibleValuesLabel":[513,"accessible-values-label"],"displayAxisLabels":[516,"display-axis-labels"],"displayItemText":[516,"display-item-text"],"displayItemValue":[516,"display-item-value"],"displayItemPercentage":[516,"display-item-percentage"],"items":[16],"type":[513],"orientation":[513],"maxValue":[514,"max-value"],"axisIncrement":[514,"axis-increment"],"loading":[516]},null,{"items":[{"handleChange":0}],"axisIncrement":[{"handleChange":0}],"maxValue":[{"handleChange":0}],"type":[{"handleChange":0}]}]]],["p-7fa85785",[[1,"limel-select",{"disabled":[516],"readonly":[516],"invalid":[516],"required":[516],"label":[513],"helperText":[513,"helper-text"],"value":[16],"options":[16],"multiple":[4],"menuOpen":[32]},null,{"value":[{"resetHasChanged":0}],"options":[{"resetHasChanged":0},{"updateHasRichOptions":0},{"resetTypeaheadOnItemsChange":0}],"required":[{"resetTypeaheadOnItemsChange":0}],"menuOpen":[{"watchOpen":0}]}]]],["p-2a902e77",[[1,"limel-slider",{"disabled":[516],"readonly":[516],"factor":[514],"label":[513],"helperText":[513,"helper-text"],"required":[516],"invalid":[516],"displaysPercentageColors":[516,"displays-percentage-colors"],"unit":[513],"language":[513],"value":[514],"valuemax":[514],"valuemin":[514],"step":[514],"percentageClass":[32],"displayValue":[32],"isUnset":[32]},null,{"value":[{"watchValue":0}]}]]],["p-d1e5dd12",[[1,"limel-help",{"value":[1],"trigger":[1],"readMoreLink":[16],"openDirection":[513,"open-direction"],"isOpen":[32]}]]],["p-32a050a3",[[257,"limel-info-tile",{"value":[520],"icon":[1],"label":[513],"prefix":[513],"suffix":[513],"disabled":[516],"reducedPresence":[516,"reduced-presence"],"badge":[520],"loading":[516],"link":[16],"progress":[16],"hasPrimarySlot":[32]}]]],["p-0ece667e",[[1,"limel-pagination-jump",{"open":[516],"page":[2],"pageCount":[2,"page-count"],"loading":[4],"language":[1],"value":[32]},null,{"language":[{"handleLanguageChange":0}],"open":[{"handleOpenChange":0}]}]]],["p-f3cae1e7",[[0,"limel-dock-button",{"item":[16],"expanded":[516],"useMobileLayout":[516,"use-mobile-layout"],"isOpen":[32]},null,{"isOpen":[{"openWatcher":0}]}]]],["p-03cb609e",[[1,"limel-checkbox",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"helperText":[513,"helper-text"],"checked":[516],"indeterminate":[516],"required":[516],"readonlyLabels":[16],"modified":[32]},null,{"checked":[{"handleCheckedChange":0}],"indeterminate":[{"handleIndeterminateChange":0}],"readonly":[{"handleReadonlyChange":0}]}]]],["p-95ccd9e7",[[1,"limel-table",{"data":[16],"columns":[16],"mode":[513],"layout":[513],"pageSize":[514,"page-size"],"totalRows":[514,"total-rows"],"sorting":[16],"activeRow":[1040],"movableColumns":[516,"movable-columns"],"movableRows":[516,"movable-rows"],"sortableColumns":[516,"sortable-columns"],"loading":[516],"page":[514],"emptyMessage":[1,"empty-message"],"aggregates":[16],"selectable":[516],"selection":[16],"language":[513],"paginationLocation":[513,"pagination-location"]},null,{"totalRows":[{"totalRowsChanged":0}],"pageSize":[{"pageSizeChanged":0}],"page":[{"pageChanged":0}],"activeRow":[{"activeRowChanged":0}],"data":[{"updateData":0}],"columns":[{"updateColumns":0}],"aggregates":[{"updateAggregates":0}],"selection":[{"updateSelection":0}],"selectable":[{"updateSelectable":0}],"movableRows":[{"updateMovableRows":0}],"sortableColumns":[{"updateSortableColumns":0}],"sorting":[{"updateSorting":0}]}]]],["p-fe492ff3",[[0,"limel-drag-handle",{"dragDirection":[513,"drag-direction"],"tooltipOpenDirection":[513,"tooltip-open-direction"],"language":[513]}]]],["p-2e33d2a4",[[257,"limel-tab-panel",{"tabs":[1040]},null,{"tabs":[{"tabsChanged":0}]}]]],["p-ee719744",[[1,"limel-shortcut",{"icon":[513],"label":[513],"disabled":[516],"badge":[520],"link":[16]}]]],["p-9afa4721",[[1,"limel-switch",{"label":[513],"disabled":[516],"readonly":[516],"invalid":[516],"value":[516],"helperText":[513,"helper-text"],"readonlyLabels":[16],"fieldId":[32]}]]],["p-54a9f48f",[[1,"limel-code-editor",{"value":[1],"language":[1],"readonly":[516],"disabled":[516],"invalid":[516],"required":[516],"label":[513],"helperText":[513,"helper-text"],"lineNumbers":[516,"line-numbers"],"lineWrapping":[516,"line-wrapping"],"fold":[516],"lint":[516],"colorScheme":[513,"color-scheme"],"translationLanguage":[513,"translation-language"],"showCopyButton":[516,"show-copy-button"],"random":[32],"wasCopied":[32]},null,{"value":[{"watchValue":0}],"disabled":[{"watchDisabled":0}],"readonly":[{"watchReadonly":0}],"invalid":[{"watchInvalid":0}],"required":[{"watchRequired":0}],"helperText":[{"watchHelperText":0}]}]]],["p-d1b7cc55",[[257,"limel-dialog",{"heading":[1],"fullscreen":[516],"open":[1540],"closingActions":[16]},null,{"open":[{"watchHandler":0}],"closingActions":[{"closingActionsChanged":0}]}]]],["p-e6a34047",[[1,"limel-menu-item-meta",{"commandText":[513,"command-text"],"hotkey":[513],"disabled":[516],"badge":[8],"showChevron":[4,"show-chevron"]}]]],["p-271662d4",[[1,"limel-progress-flow",{"flowItems":[16],"disabled":[4],"readonly":[4]}]]],["p-b22b52a1",[[257,"limel-banner",{"message":[513],"icon":[513],"isOpen":[32],"open":[64],"close":[64]}]]],["p-107654bb",[[1,"limel-form",{"schema":[16],"value":[16],"disabled":[4],"propsFactory":[16],"transformErrors":[16],"errors":[16],"revealErrors":[4,"reveal-errors"]}]]],["p-8ac79ef5",[[0,"limel-radio-button-group",{"items":[16],"selectedItem":[16],"disabled":[516],"badgeIcons":[516,"badge-icons"],"maxLinesSecondaryText":[514,"max-lines-secondary-text"]}]]],["p-f82f72e7",[[1,"limel-ai-avatar",{"isThinking":[516,"is-thinking"],"mode":[513],"variant":[513],"language":[513]},null,{"isThinking":[{"onIsThinkingChange":0}]}]]],["p-4b75e653",[[1,"limel-config",{"config":[16]}]]],["p-f4a0b1bc",[[257,"limel-flex-container",{"direction":[513],"justify":[513],"align":[513],"reverse":[516]}]]],["p-29c73bdf",[[257,"limel-grid"]]],["p-0d6925f4",[[257,"limel-masonry-layout",{"ordered":[516],"containerHeight":[32]},null,{"ordered":[{"onOrderedChange":0}]}]]],["p-4ecbc9f4",[[257,"limel-email-viewer",{"email":[16],"fallbackUrl":[513,"fallback-url"],"language":[513],"allowRemoteImages":[4,"allow-remote-images"],"allowRemoteImagesState":[32]},null,{"email":[{"resetAllowRemoteImages":0}]}]]],["p-9415411e",[[17,"limel-color-picker-palette",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"placeholder":[513],"required":[516],"invalid":[516],"manualInput":[516,"manual-input"],"columnCount":[514,"column-count"],"palette":[16]}]]],["p-9e084e7c",[[1,"limel-tab-bar",{"tabs":[1040]},null,{"tabs":[{"tabsChanged":0}]}]]],["p-3d3bdf45",[[257,"limel-callout",{"heading":[513],"icon":[513],"type":[513],"language":[1]}]]],["p-7b4351f6",[[257,"limel-header",{"icon":[1],"heading":[1],"subheading":[1],"supportingText":[1,"supporting-text"],"subheadingDivider":[1,"subheading-divider"]}]]],["p-5f5c6e7d",[[1,"limel-help-content",{"value":[1],"readMoreLink":[16]}]]],["p-f97ec7a5",[[0,"limel-progress-flow-item",{"item":[16],"disabled":[4],"readonly":[4],"currentStep":[4,"current-step"]}]]],["p-b6d39581",[[1,"limel-circular-progress",{"value":[2],"maxValue":[2,"max-value"],"prefix":[513],"suffix":[1],"displayPercentageColors":[4,"display-percentage-colors"],"size":[513]}]]],["p-5df21b25",[[1,"limel-flatpickr-adapter",{"value":[16],"type":[1],"format":[1],"isOpen":[4,"is-open"],"inputElement":[16],"language":[1],"formatter":[16]}]]],["p-2b033dfa",[[0,"limel-radio-button",{"checked":[516],"disabled":[516],"id":[1],"label":[1],"onChange":[16]}]]],["p-a1d1470c",[[1,"limel-tooltip",{"elementId":[513,"element-id"],"label":[513],"helperLabel":[513,"helper-label"],"hotkey":[513],"maxlength":[514],"openDirection":[513,"open-direction"],"open":[32]}],[1,"limel-tooltip-content",{"label":[513],"helperLabel":[513,"helper-label"],"maxlength":[514],"hotkey":[513]}],[1,"limel-hotkey",{"value":[513],"disabled":[516]}],[257,"limel-portal",{"openDirection":[513,"open-direction"],"position":[513],"containerId":[513,"container-id"],"containerStyle":[16],"inheritParentWidth":[516,"inherit-parent-width"],"visible":[516],"anchor":[16]},null,{"visible":[{"onVisible":0}]}]]],["p-120ca628",[[17,"limel-chip-set",{"value":[16],"type":[513],"label":[513],"helperText":[513,"helper-text"],"disabled":[516],"readonly":[516],"invalid":[516],"inputType":[513,"input-type"],"maxItems":[514,"max-items"],"required":[516],"searchLabel":[513,"search-label"],"emptyInputOnBlur":[516,"empty-input-on-blur"],"emptyInputOnChange":[516,"empty-input-on-change"],"clearAllButton":[4,"clear-all-button"],"leadingIcon":[513,"leading-icon"],"delimiter":[513],"autocomplete":[513],"language":[1],"editMode":[32],"textValue":[32],"blurred":[32],"inputChipIndexSelected":[32],"selectedChipIds":[32],"getEditMode":[64],"setFocus":[64],"emptyInput":[64]},null,{"value":[{"handleChangeChips":0}]}]]],["p-5e448070",[[1,"limel-text-editor-link-menu",{"link":[16],"language":[513],"isOpen":[516,"is-open"]}]]],["p-6d9961f7",[[257,"limel-collapsible-section",{"isOpen":[1540,"is-open"],"header":[513],"icon":[1],"invalid":[516],"actions":[16],"language":[513]}]]],["p-d19c7a3a",[[257,"limel-scroller",{"orientation":[513],"canScrollToStart":[32],"canScrollToEnd":[32],"reveal":[64]}]]],["p-9c8c2fb7",[[1,"limel-3d-hover-effect-glow"]]],["p-a2e6f16e",[[257,"limel-file-dropzone",{"accept":[513],"disabled":[4],"text":[1],"helperText":[1,"helper-text"],"hasFileToDrop":[32]}],[257,"limel-file-input",{"accept":[513],"disabled":[516],"multiple":[516]}]]],["p-85318636",[[1,"limel-dynamic-label",{"value":[8],"defaultLabel":[16],"labels":[16]}]]],["p-681cb6de",[[17,"limel-icon-button",{"icon":[1],"elevated":[516],"label":[513],"helperLabel":[513,"helper-label"],"disabled":[516]}]]],["p-74060535",[[257,"limel-menu",{"items":[16],"disabled":[516],"openDirection":[513,"open-direction"],"surfaceWidth":[513,"surface-width"],"open":[1540],"badgeIcons":[516,"badge-icons"],"gridLayout":[516,"grid-layout"],"loading":[516],"currentSubMenu":[1040],"rootItem":[16],"searcher":[16],"searchPlaceholder":[1,"search-placeholder"],"emptyResultMessage":[1,"empty-result-message"],"keepOpenOnSelect":[516,"keep-open-on-select"],"loadingSubItems":[32],"searchValue":[32],"searchResults":[32]},null,{"items":[{"itemsWatcher":0}],"open":[{"openWatcher":0}]}],[1,"limel-breadcrumbs",{"items":[16],"divider":[1]}],[17,"limel-menu-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"]},null,{"items":[{"itemsChanged":0}]}],[17,"limel-input-field",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"prefix":[513],"suffix":[513],"required":[516],"value":[513],"trailingIcon":[513,"trailing-icon"],"leadingIcon":[513,"leading-icon"],"pattern":[513],"type":[513],"formatNumber":[516,"format-number"],"step":[520],"max":[514],"min":[514],"maxlength":[514],"minlength":[514],"completions":[16],"showLink":[516,"show-link"],"locale":[513],"isFocused":[32],"wasInvalid":[32],"showCompletions":[32],"getSelectionStart":[64],"getSelectionEnd":[64],"getSelectionDirection":[64]},null,{"value":[{"valueWatcher":0}],"completions":[{"completionsWatcher":0}]}],[257,"limel-menu-surface",{"open":[4],"allowClicksElement":[16]}],[1,"limel-spinner",{"size":[513],"limeBranded":[4,"lime-branded"]}]]],["p-de4719a6",[[17,"limel-button",{"label":[513],"primary":[516],"outlined":[516],"icon":[513],"disabled":[516],"loading":[516],"loadingFailed":[516,"loading-failed"],"justLoaded":[32]},null,{"loading":[{"loadingWatcher":0}]}]]],["p-05038bbb",[[1,"limel-markdown",{"value":[1],"whitelist":[16],"lazyLoadImages":[516,"lazy-load-images"],"removeEmptyParagraphs":[516,"remove-empty-paragraphs"],"adaptColorContrast":[516,"adapt-color-contrast"],"toMarkdown":[64]},null,{"value":[{"textChanged":0}],"whitelist":[{"handleWhitelistChange":0}],"removeEmptyParagraphs":[{"handleRemoveEmptyParagraphsChange":0}],"adaptColorContrast":[{"handleAdaptColorContrastChange":0}]}]]],["p-c439b68b",[[1,"limel-badge",{"label":[520]}]]],["p-a42f8c2d",[[17,"limel-chip",{"language":[513],"text":[513],"icon":[1],"image":[16],"link":[16],"badge":[520],"disabled":[516],"readonly":[516],"selected":[516],"invalid":[516],"removable":[516],"type":[513],"loading":[516],"progress":[514],"identifier":[520],"size":[513],"menuItems":[16]}],[1,"limel-linear-progress",{"language":[513],"value":[514],"indeterminate":[516],"accessibleLabel":[513,"accessible-label"]},null,{"value":[{"watchValue":0}]}]]],["p-970e0810",[[257,"limel-popover",{"open":[4],"openDirection":[513,"open-direction"]},null,{"open":[{"watchOpen":0}]}],[1,"limel-popover-surface",{"contentCollection":[16]}]]],["p-45461ec5",[[17,"limel-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]},null,{"type":[{"handleType":0}],"items":[{"itemsChanged":0}]}],[260,"limel-notched-outline",{"required":[516],"readonly":[516],"invalid":[516],"disabled":[516],"label":[513],"labelId":[513,"label-id"],"hasValue":[516,"has-value"],"hasLeadingIcon":[516,"has-leading-icon"],"hasFloatingLabel":[516,"has-floating-label"]}],[1,"limel-helper-line",{"helperText":[513,"helper-text"],"length":[514],"maxLength":[514,"max-length"],"invalid":[516],"helperTextId":[513,"helper-text-id"]}]]],["p-45c39fb4",[[1,"limel-action-bar",{"actions":[16],"accessibleLabel":[513,"accessible-label"],"language":[1],"layout":[513],"collapsible":[516],"openDirection":[513,"open-direction"],"overflowCutoff":[32]}],[0,"limel-action-bar-overflow-menu",{"items":[16],"openDirection":[513,"open-direction"]}],[0,"limel-action-bar-item",{"item":[16],"isVisible":[516,"is-visible"],"selected":[516]}]]]]'),e))));
|
|
1
|
+
import{p as e,g as l,b as a}from"./p-BU9IJqli.js";export{s as setNonce}from"./p-BU9IJqli.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await l(),a(JSON.parse('[["p-0e13ec91",[[1,"limel-icon",{"size":[513],"name":[513],"badge":[516],"svgClass":[513,"svg-class"]},null,{"name":[{"loadIcon":0}],"svgClass":[{"applySvgClass":0}]}]]],["p-22fd1c87",[[17,"limel-prosemirror-adapter",{"contentType":[1,"content-type"],"value":[1],"language":[513],"disabled":[516],"customElements":[16],"inlineImages":[16],"triggerCharacters":[16],"ui":[1],"view":[32],"actionBarItems":[32],"link":[32],"isLinkMenuOpen":[32],"flushPendingChanges":[64],"clear":[64]},null,{"value":[{"watchValue":0}]}]]],["p-fdd674fc",[[17,"limel-text-editor",{"contentType":[1,"content-type"],"language":[513],"disabled":[516],"readonly":[516],"helperText":[513,"helper-text"],"placeholder":[513],"label":[513],"invalid":[516],"value":[513],"customElements":[16],"inlineImages":[16],"triggers":[16],"required":[516],"allowResize":[516,"allow-resize"],"ui":[513],"flushPendingChanges":[64],"clear":[64]}]]],["p-a550ba18",[[1,"limel-file-viewer",{"url":[513],"filename":[513],"alt":[513],"allowFullscreen":[516,"allow-fullscreen"],"allowOpenInNewTab":[516,"allow-open-in-new-tab"],"allowDownload":[516,"allow-download"],"language":[1],"officeViewer":[513,"office-viewer"],"actions":[16],"isFullscreen":[32],"fileType":[32],"loading":[32],"fileUrl":[32],"email":[32]},null,{"url":[{"watchUrl":0}]}]]],["p-a1c69e0c",[[257,"limel-card",{"heading":[513],"subheading":[513],"image":[16],"icon":[513],"value":[1],"actions":[16],"clickable":[516],"orientation":[513],"selected":[516],"show3dEffect":[516,"show-3d-effect"],"canScrollUp":[32],"canScrollDown":[32]}]]],["p-48afa6b7",[[1,"limel-file",{"value":[16],"label":[513],"helperText":[513,"helper-text"],"required":[516],"disabled":[516],"readonly":[516],"invalid":[516],"loading":[516],"accept":[513],"resizeImage":[16],"language":[1],"resizingFile":[32]},null,{"value":[{"handleValueChange":0}]}]]],["p-45fde7a1",[[1,"limel-code-diff",{"oldValue":[1,"old-value"],"newValue":[1,"new-value"],"oldHeading":[513,"old-heading"],"newHeading":[513,"new-heading"],"layout":[513],"contextLines":[514,"context-lines"],"lineWrapping":[516,"line-wrapping"],"language":[513],"reformatJson":[516,"reformat-json"],"translationLanguage":[513,"translation-language"],"diffResult":[32],"liveAnnouncement":[32],"copyState":[32],"searchVisible":[32],"searchTerm":[32],"currentMatchIndex":[32]},null,{"oldValue":[{"watchInputs":0}],"newValue":[{"watchInputs":0}],"contextLines":[{"watchInputs":0}],"reformatJson":[{"watchInputs":0}],"layout":[{"watchInputs":0}]}]]],["p-4a88d365",[[0,"limel-list-item",{"language":[513],"value":[8],"text":[513],"secondaryText":[513,"secondary-text"],"disabled":[516],"icon":[1],"iconSize":[513,"icon-size"],"badgeIcon":[516,"badge-icon"],"selected":[516],"actions":[16],"primaryComponent":[16],"image":[16],"type":[513]}]]],["p-02a06cf7",[[17,"limel-picker",{"disabled":[4],"readonly":[516],"label":[1],"searchLabel":[1,"search-label"],"helperText":[513,"helper-text"],"leadingIcon":[1,"leading-icon"],"emptyResultMessage":[1,"empty-result-message"],"language":[1],"required":[4],"invalid":[516],"value":[16],"searcher":[16],"allItems":[16],"multiple":[4],"delimiter":[513],"actions":[16],"actionPosition":[1,"action-position"],"actionScrollBehavior":[1,"action-scroll-behavior"],"badgeIcons":[516,"badge-icons"],"items":[32],"textValue":[32],"loading":[32],"chips":[32]},null,{"disabled":[{"onDisabledChange":0}],"value":[{"onChangeValue":0}]}]]],["p-7eab1341",[[17,"limel-split-button",{"label":[513],"primary":[516],"icon":[513],"disabled":[516],"loading":[516],"loadingFailed":[516,"loading-failed"],"items":[16]}]]],["p-3cfe0eaf",[[1,"limel-pagination",{"page":[2],"pageSize":[514,"page-size"],"totalItems":[514,"total-items"],"loading":[516],"language":[513],"liveMessage":[32],"openGap":[32]},null,{"language":[{"handleLanguageChange":0}]}]]],["p-ff1a8b2e",[[1,"limel-color-picker",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"tooltipLabel":[513,"tooltip-label"],"required":[516],"disabled":[516],"readonly":[516],"invalid":[516],"placeholder":[513],"manualInput":[516,"manual-input"],"palette":[16],"paletteColumnCount":[514,"palette-column-count"],"isOpen":[32]}]]],["p-a65eb58e",[[1,"limel-profile-picture",{"language":[513],"label":[513],"icon":[1],"helperText":[1,"helper-text"],"disabled":[516],"readonly":[516],"required":[516],"invalid":[516],"loading":[516],"value":[1],"imageFit":[513,"image-fit"],"accept":[513],"resize":[16],"objectUrl":[32],"imageError":[32],"isErrorMessagePopoverOpen":[32]},null,{"value":[{"handleValueChange":0}]}]]],["p-e02e2c5f",[[1,"limel-dock",{"dockItems":[16],"dockFooterItems":[16],"accessibleLabel":[513,"accessible-label"],"expanded":[516],"allowResize":[516,"allow-resize"],"mobileBreakPoint":[514,"mobile-break-point"],"useMobileLayout":[32]}]]],["p-9218fa6a",[[1,"limel-snackbar",{"open":[516],"message":[1],"timeout":[514],"actionText":[1,"action-text"],"dismissible":[4],"multiline":[4],"language":[1],"offset":[32],"isOpen":[32],"closing":[32],"show":[64]},[[0,"changeOffset","onChangeIndex"]],{"open":[{"watchOpen":0}]}]]],["p-958396b5",[[1,"limel-date-picker",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"required":[516],"value":[16],"type":[513],"format":[513],"language":[513],"formatter":[16],"internalFormat":[32],"showPortal":[32]}]]],["p-fdec09e9",[[1,"limel-button-group",{"value":[16],"disabled":[516],"selectedButtonId":[32]},null,{"value":[{"valueChanged":0}]}]]],["p-2b2253d4",[[1,"limel-chart",{"language":[513],"accessibleLabel":[513,"accessible-label"],"accessibleItemsLabel":[513,"accessible-items-label"],"accessibleValuesLabel":[513,"accessible-values-label"],"displayAxisLabels":[516,"display-axis-labels"],"displayItemText":[516,"display-item-text"],"displayItemValue":[516,"display-item-value"],"displayItemPercentage":[516,"display-item-percentage"],"items":[16],"type":[513],"orientation":[513],"maxValue":[514,"max-value"],"axisIncrement":[514,"axis-increment"],"loading":[516]},null,{"items":[{"handleChange":0}],"axisIncrement":[{"handleChange":0}],"maxValue":[{"handleChange":0}],"type":[{"handleChange":0}]}]]],["p-7fa85785",[[1,"limel-select",{"disabled":[516],"readonly":[516],"invalid":[516],"required":[516],"label":[513],"helperText":[513,"helper-text"],"value":[16],"options":[16],"multiple":[4],"menuOpen":[32]},null,{"value":[{"resetHasChanged":0}],"options":[{"resetHasChanged":0},{"updateHasRichOptions":0},{"resetTypeaheadOnItemsChange":0}],"required":[{"resetTypeaheadOnItemsChange":0}],"menuOpen":[{"watchOpen":0}]}]]],["p-2a902e77",[[1,"limel-slider",{"disabled":[516],"readonly":[516],"factor":[514],"label":[513],"helperText":[513,"helper-text"],"required":[516],"invalid":[516],"displaysPercentageColors":[516,"displays-percentage-colors"],"unit":[513],"language":[513],"value":[514],"valuemax":[514],"valuemin":[514],"step":[514],"percentageClass":[32],"displayValue":[32],"isUnset":[32]},null,{"value":[{"watchValue":0}]}]]],["p-d1e5dd12",[[1,"limel-help",{"value":[1],"trigger":[1],"readMoreLink":[16],"openDirection":[513,"open-direction"],"isOpen":[32]}]]],["p-32a050a3",[[257,"limel-info-tile",{"value":[520],"icon":[1],"label":[513],"prefix":[513],"suffix":[513],"disabled":[516],"reducedPresence":[516,"reduced-presence"],"badge":[520],"loading":[516],"link":[16],"progress":[16],"hasPrimarySlot":[32]}]]],["p-0ece667e",[[1,"limel-pagination-jump",{"open":[516],"page":[2],"pageCount":[2,"page-count"],"loading":[4],"language":[1],"value":[32]},null,{"language":[{"handleLanguageChange":0}],"open":[{"handleOpenChange":0}]}]]],["p-f3cae1e7",[[0,"limel-dock-button",{"item":[16],"expanded":[516],"useMobileLayout":[516,"use-mobile-layout"],"isOpen":[32]},null,{"isOpen":[{"openWatcher":0}]}]]],["p-03cb609e",[[1,"limel-checkbox",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"helperText":[513,"helper-text"],"checked":[516],"indeterminate":[516],"required":[516],"readonlyLabels":[16],"modified":[32]},null,{"checked":[{"handleCheckedChange":0}],"indeterminate":[{"handleIndeterminateChange":0}],"readonly":[{"handleReadonlyChange":0}]}]]],["p-95ccd9e7",[[1,"limel-table",{"data":[16],"columns":[16],"mode":[513],"layout":[513],"pageSize":[514,"page-size"],"totalRows":[514,"total-rows"],"sorting":[16],"activeRow":[1040],"movableColumns":[516,"movable-columns"],"movableRows":[516,"movable-rows"],"sortableColumns":[516,"sortable-columns"],"loading":[516],"page":[514],"emptyMessage":[1,"empty-message"],"aggregates":[16],"selectable":[516],"selection":[16],"language":[513],"paginationLocation":[513,"pagination-location"]},null,{"totalRows":[{"totalRowsChanged":0}],"pageSize":[{"pageSizeChanged":0}],"page":[{"pageChanged":0}],"activeRow":[{"activeRowChanged":0}],"data":[{"updateData":0}],"columns":[{"updateColumns":0}],"aggregates":[{"updateAggregates":0}],"selection":[{"updateSelection":0}],"selectable":[{"updateSelectable":0}],"movableRows":[{"updateMovableRows":0}],"sortableColumns":[{"updateSortableColumns":0}],"sorting":[{"updateSorting":0}]}]]],["p-fe492ff3",[[0,"limel-drag-handle",{"dragDirection":[513,"drag-direction"],"tooltipOpenDirection":[513,"tooltip-open-direction"],"language":[513]}]]],["p-2e33d2a4",[[257,"limel-tab-panel",{"tabs":[1040]},null,{"tabs":[{"tabsChanged":0}]}]]],["p-ee719744",[[1,"limel-shortcut",{"icon":[513],"label":[513],"disabled":[516],"badge":[520],"link":[16]}]]],["p-9afa4721",[[1,"limel-switch",{"label":[513],"disabled":[516],"readonly":[516],"invalid":[516],"value":[516],"helperText":[513,"helper-text"],"readonlyLabels":[16],"fieldId":[32]}]]],["p-54a9f48f",[[1,"limel-code-editor",{"value":[1],"language":[1],"readonly":[516],"disabled":[516],"invalid":[516],"required":[516],"label":[513],"helperText":[513,"helper-text"],"lineNumbers":[516,"line-numbers"],"lineWrapping":[516,"line-wrapping"],"fold":[516],"lint":[516],"colorScheme":[513,"color-scheme"],"translationLanguage":[513,"translation-language"],"showCopyButton":[516,"show-copy-button"],"random":[32],"wasCopied":[32]},null,{"value":[{"watchValue":0}],"disabled":[{"watchDisabled":0}],"readonly":[{"watchReadonly":0}],"invalid":[{"watchInvalid":0}],"required":[{"watchRequired":0}],"helperText":[{"watchHelperText":0}]}]]],["p-d1b7cc55",[[257,"limel-dialog",{"heading":[1],"fullscreen":[516],"open":[1540],"closingActions":[16]},null,{"open":[{"watchHandler":0}],"closingActions":[{"closingActionsChanged":0}]}]]],["p-e6a34047",[[1,"limel-menu-item-meta",{"commandText":[513,"command-text"],"hotkey":[513],"disabled":[516],"badge":[8],"showChevron":[4,"show-chevron"]}]]],["p-271662d4",[[1,"limel-progress-flow",{"flowItems":[16],"disabled":[4],"readonly":[4]}]]],["p-b22b52a1",[[257,"limel-banner",{"message":[513],"icon":[513],"isOpen":[32],"open":[64],"close":[64]}]]],["p-107654bb",[[1,"limel-form",{"schema":[16],"value":[16],"disabled":[4],"propsFactory":[16],"transformErrors":[16],"errors":[16],"revealErrors":[4,"reveal-errors"]}]]],["p-8ac79ef5",[[0,"limel-radio-button-group",{"items":[16],"selectedItem":[16],"disabled":[516],"badgeIcons":[516,"badge-icons"],"maxLinesSecondaryText":[514,"max-lines-secondary-text"]}]]],["p-f82f72e7",[[1,"limel-ai-avatar",{"isThinking":[516,"is-thinking"],"mode":[513],"variant":[513],"language":[513]},null,{"isThinking":[{"onIsThinkingChange":0}]}]]],["p-4b75e653",[[1,"limel-config",{"config":[16]}]]],["p-f4a0b1bc",[[257,"limel-flex-container",{"direction":[513],"justify":[513],"align":[513],"reverse":[516]}]]],["p-29c73bdf",[[257,"limel-grid"]]],["p-0d6925f4",[[257,"limel-masonry-layout",{"ordered":[516],"containerHeight":[32]},null,{"ordered":[{"onOrderedChange":0}]}]]],["p-4ecbc9f4",[[257,"limel-email-viewer",{"email":[16],"fallbackUrl":[513,"fallback-url"],"language":[513],"allowRemoteImages":[4,"allow-remote-images"],"allowRemoteImagesState":[32]},null,{"email":[{"resetAllowRemoteImages":0}]}]]],["p-9415411e",[[17,"limel-color-picker-palette",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"placeholder":[513],"required":[516],"invalid":[516],"manualInput":[516,"manual-input"],"columnCount":[514,"column-count"],"palette":[16]}]]],["p-b35a912c",[[1,"limel-tab-bar",{"tabs":[1040]},null,{"tabs":[{"tabsChanged":0}]}]]],["p-3d3bdf45",[[257,"limel-callout",{"heading":[513],"icon":[513],"type":[513],"language":[1]}]]],["p-7b4351f6",[[257,"limel-header",{"icon":[1],"heading":[1],"subheading":[1],"supportingText":[1,"supporting-text"],"subheadingDivider":[1,"subheading-divider"]}]]],["p-5f5c6e7d",[[1,"limel-help-content",{"value":[1],"readMoreLink":[16]}]]],["p-f97ec7a5",[[0,"limel-progress-flow-item",{"item":[16],"disabled":[4],"readonly":[4],"currentStep":[4,"current-step"]}]]],["p-b6d39581",[[1,"limel-circular-progress",{"value":[2],"maxValue":[2,"max-value"],"prefix":[513],"suffix":[1],"displayPercentageColors":[4,"display-percentage-colors"],"size":[513]}]]],["p-5df21b25",[[1,"limel-flatpickr-adapter",{"value":[16],"type":[1],"format":[1],"isOpen":[4,"is-open"],"inputElement":[16],"language":[1],"formatter":[16]}]]],["p-2b033dfa",[[0,"limel-radio-button",{"checked":[516],"disabled":[516],"id":[1],"label":[1],"onChange":[16]}]]],["p-a1d1470c",[[1,"limel-tooltip",{"elementId":[513,"element-id"],"label":[513],"helperLabel":[513,"helper-label"],"hotkey":[513],"maxlength":[514],"openDirection":[513,"open-direction"],"open":[32]}],[1,"limel-tooltip-content",{"label":[513],"helperLabel":[513,"helper-label"],"maxlength":[514],"hotkey":[513]}],[1,"limel-hotkey",{"value":[513],"disabled":[516]}],[257,"limel-portal",{"openDirection":[513,"open-direction"],"position":[513],"containerId":[513,"container-id"],"containerStyle":[16],"inheritParentWidth":[516,"inherit-parent-width"],"visible":[516],"anchor":[16]},null,{"visible":[{"onVisible":0}]}]]],["p-120ca628",[[17,"limel-chip-set",{"value":[16],"type":[513],"label":[513],"helperText":[513,"helper-text"],"disabled":[516],"readonly":[516],"invalid":[516],"inputType":[513,"input-type"],"maxItems":[514,"max-items"],"required":[516],"searchLabel":[513,"search-label"],"emptyInputOnBlur":[516,"empty-input-on-blur"],"emptyInputOnChange":[516,"empty-input-on-change"],"clearAllButton":[4,"clear-all-button"],"leadingIcon":[513,"leading-icon"],"delimiter":[513],"autocomplete":[513],"language":[1],"editMode":[32],"textValue":[32],"blurred":[32],"inputChipIndexSelected":[32],"selectedChipIds":[32],"getEditMode":[64],"setFocus":[64],"emptyInput":[64]},null,{"value":[{"handleChangeChips":0}]}]]],["p-5e448070",[[1,"limel-text-editor-link-menu",{"link":[16],"language":[513],"isOpen":[516,"is-open"]}]]],["p-6d9961f7",[[257,"limel-collapsible-section",{"isOpen":[1540,"is-open"],"header":[513],"icon":[1],"invalid":[516],"actions":[16],"language":[513]}]]],["p-d19c7a3a",[[257,"limel-scroller",{"orientation":[513],"canScrollToStart":[32],"canScrollToEnd":[32],"reveal":[64]}]]],["p-9c8c2fb7",[[1,"limel-3d-hover-effect-glow"]]],["p-a2e6f16e",[[257,"limel-file-dropzone",{"accept":[513],"disabled":[4],"text":[1],"helperText":[1,"helper-text"],"hasFileToDrop":[32]}],[257,"limel-file-input",{"accept":[513],"disabled":[516],"multiple":[516]}]]],["p-85318636",[[1,"limel-dynamic-label",{"value":[8],"defaultLabel":[16],"labels":[16]}]]],["p-681cb6de",[[17,"limel-icon-button",{"icon":[1],"elevated":[516],"label":[513],"helperLabel":[513,"helper-label"],"disabled":[516]}]]],["p-74060535",[[257,"limel-menu",{"items":[16],"disabled":[516],"openDirection":[513,"open-direction"],"surfaceWidth":[513,"surface-width"],"open":[1540],"badgeIcons":[516,"badge-icons"],"gridLayout":[516,"grid-layout"],"loading":[516],"currentSubMenu":[1040],"rootItem":[16],"searcher":[16],"searchPlaceholder":[1,"search-placeholder"],"emptyResultMessage":[1,"empty-result-message"],"keepOpenOnSelect":[516,"keep-open-on-select"],"loadingSubItems":[32],"searchValue":[32],"searchResults":[32]},null,{"items":[{"itemsWatcher":0}],"open":[{"openWatcher":0}]}],[1,"limel-breadcrumbs",{"items":[16],"divider":[1]}],[17,"limel-menu-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"]},null,{"items":[{"itemsChanged":0}]}],[17,"limel-input-field",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"prefix":[513],"suffix":[513],"required":[516],"value":[513],"trailingIcon":[513,"trailing-icon"],"leadingIcon":[513,"leading-icon"],"pattern":[513],"type":[513],"formatNumber":[516,"format-number"],"step":[520],"max":[514],"min":[514],"maxlength":[514],"minlength":[514],"completions":[16],"showLink":[516,"show-link"],"locale":[513],"isFocused":[32],"wasInvalid":[32],"showCompletions":[32],"getSelectionStart":[64],"getSelectionEnd":[64],"getSelectionDirection":[64]},null,{"value":[{"valueWatcher":0}],"completions":[{"completionsWatcher":0}]}],[257,"limel-menu-surface",{"open":[4],"allowClicksElement":[16]}],[1,"limel-spinner",{"size":[513],"limeBranded":[4,"lime-branded"]}]]],["p-de4719a6",[[17,"limel-button",{"label":[513],"primary":[516],"outlined":[516],"icon":[513],"disabled":[516],"loading":[516],"loadingFailed":[516,"loading-failed"],"justLoaded":[32]},null,{"loading":[{"loadingWatcher":0}]}]]],["p-05038bbb",[[1,"limel-markdown",{"value":[1],"whitelist":[16],"lazyLoadImages":[516,"lazy-load-images"],"removeEmptyParagraphs":[516,"remove-empty-paragraphs"],"adaptColorContrast":[516,"adapt-color-contrast"],"toMarkdown":[64]},null,{"value":[{"textChanged":0}],"whitelist":[{"handleWhitelistChange":0}],"removeEmptyParagraphs":[{"handleRemoveEmptyParagraphsChange":0}],"adaptColorContrast":[{"handleAdaptColorContrastChange":0}]}]]],["p-c439b68b",[[1,"limel-badge",{"label":[520]}]]],["p-a42f8c2d",[[17,"limel-chip",{"language":[513],"text":[513],"icon":[1],"image":[16],"link":[16],"badge":[520],"disabled":[516],"readonly":[516],"selected":[516],"invalid":[516],"removable":[516],"type":[513],"loading":[516],"progress":[514],"identifier":[520],"size":[513],"menuItems":[16]}],[1,"limel-linear-progress",{"language":[513],"value":[514],"indeterminate":[516],"accessibleLabel":[513,"accessible-label"]},null,{"value":[{"watchValue":0}]}]]],["p-970e0810",[[257,"limel-popover",{"open":[4],"openDirection":[513,"open-direction"]},null,{"open":[{"watchOpen":0}]}],[1,"limel-popover-surface",{"contentCollection":[16]}]]],["p-45461ec5",[[17,"limel-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]},null,{"type":[{"handleType":0}],"items":[{"itemsChanged":0}]}],[260,"limel-notched-outline",{"required":[516],"readonly":[516],"invalid":[516],"disabled":[516],"label":[513],"labelId":[513,"label-id"],"hasValue":[516,"has-value"],"hasLeadingIcon":[516,"has-leading-icon"],"hasFloatingLabel":[516,"has-floating-label"]}],[1,"limel-helper-line",{"helperText":[513,"helper-text"],"length":[514],"maxLength":[514,"max-length"],"invalid":[516],"helperTextId":[513,"helper-text-id"]}]]],["p-45c39fb4",[[1,"limel-action-bar",{"actions":[16],"accessibleLabel":[513,"accessible-label"],"language":[1],"layout":[513],"collapsible":[516],"openDirection":[513,"open-direction"],"overflowCutoff":[32]}],[0,"limel-action-bar-overflow-menu",{"items":[16],"openDirection":[513,"open-direction"]}],[0,"limel-action-bar-item",{"item":[16],"isVisible":[516,"is-visible"],"selected":[516]}]]]]'),e))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as r,a as o}from"./p-BU9IJqli.js";import{g as a,b as i}from"./p-CgNJbSP4.js";import{A as n,b as s,H as l,c,d as u,e as d}from"./p-DQ5DmW_Y.js";import{i as b}from"./p-COdirXg1.js";import{S as m,c as h}from"./p-B6-3WXAv.js";import{a as p,b as v,i as f,c as g}from"./p-pk5KIdKH.js";import"./p-CZ30nDJE.js";import"./p-DK0pjX-Y.js";import"./p-BJQylLSL.js";import"./p-oiMYqRQ0.js";import"./p-BYfPV0O4.js";import"./p-BcJ-TDVt.js";import"./p-DbBZn7JO.js";import"./p-B8VKuhvH.js";import"./p-B--C3qwe.js";import"./p-CK4jS9_E.js";import"./p-9W8bTt2G.js";var w=v((function(t,e){return f(t)?function(t,e){var r=-1,o=p,a=!0,i=t.length,n=[],s=e.length;if(!i)return n;e.length>=200&&(o=h,a=!1,e=new m(e));t:for(;++r<i;){var l=t[r],c=l;if(l=0!==l?l:0,a&&c==c){for(var u=s;u--;)if(e[u]===c)continue t;n.push(l)}else o(e,c,undefined)||n.push(l)}return n}(t,g(e,1,f)):[]}));const k={horizontal:new Map([[u,"previous"],[d,"next"],[l,"first"],[c,"last"]]),vertical:new Map([[n,"previous"],[s,"next"],[l,"first"],[c,"last"]])};function x(t,e){return t>=0&&t<e}function j(t,e){return r=>{var o;return!(null===(o=null==e?void 0:e.isDisabled)||void 0===o?void 0:o.call(e,t[r]))}}function y(t,e,r,o,a){for(let i=0;i<t;i+=1){const n=e+r*i;if(!o&&!x(n,t))break;const s=(n%t+t)%t;if(a(s))return s}return-1}const C={orientation:"horizontal",wrap:!0},z=class{constructor(r){t(this,r),this.changeTab=e(this,"changeTab",7),this.tabs=[],this.hasLoaded=!1,this.handleKeyDown=this.handleKeyDown.bind(this)}async connectedCallback(){this.hasLoaded&&(this.revealedTabId=void 0,await this.revealActiveTab("auto"))}componentDidLoad(){this.hasLoaded=!0,this.triggerIconColorWarning()}async componentDidRender(){await this.revealActiveTab(this.hasLoaded?void 0:"auto")}render(){const t=function(t,e){const r=t.length,o=j(t,C);return x(e,r)&&o(e)?e:y(r,0,1,!1,o)}(this.tabs,this.tabs.findIndex((t=>t.active)));return r("div",{key:"9998014061ef483531099bfe9b9b30904bb1090d",role:"tablist",onKeyDown:this.handleKeyDown},r("limel-scroller",{key:"e09578e9daaeef1a3d05b4f0258fdd40e97ec39b"},this.tabs.map(((e,r)=>this.renderTab(e,r,r===t)))))}tabsChanged(t=[],e=[]){const r=t.map((t=>t.id)),o=e.map((t=>t.id));b(r,o)||(this.revealedTabId=void 0)}getTabElements(){return[...this.host.shadowRoot.querySelectorAll('button[role="tab"]')]}async revealActiveTab(t){const e=this.tabs.findIndex((t=>t.active));if(-1===e)return void(this.revealedTabId=void 0);if(this.tabs[e].id===this.revealedTabId)return;this.revealedTabId=this.tabs[e].id;const r=this.getTabElements()[e],o=this.host.shadowRoot.querySelector("limel-scroller");r&&o&&!r.matches(":focus")&&(await o.componentOnReady(),await o.reveal(r,t))}handleKeyDown(t){if(!function(t){return!(t.altKey||t.ctrlKey||t.metaKey)&&k[C.orientation].has(t.key)}(t))return;t.preventDefault();const e=this.getTabElements().indexOf(t.target);this.activateTab(function(t,e,r,o){const a=k[o.orientation].get(e),i=t.length,n=j(t,o),s=y(i,0,1,!1,n);if(!a||-1===s)return-1;if("first"===a)return s;const l=y(i,i-1,-1,!1,n);if("last"===a)return l;if(!x(r,i))return"next"===a?s:l;const c="next"===a?1:-1,u=y(i,r+c,c,Boolean(o.wrap),n);return-1===u?r:u}(this.tabs,t.key,e,C))}activateTab(t){if(-1===t)return;if(this.getTabElements()[t].focus(),t===this.tabs.findIndex((t=>t.active)))return;const e=function(t,e){const r=t.findIndex((t=>!0===t.active)),o=[...t];return-1!==r&&(o[r]=Object.assign(Object.assign({},t[r]),{active:!1})),o[e]=Object.assign(Object.assign({},t[e]),{active:!0}),o}(this.tabs,t),r=w(e,this.tabs).sort(this.sortByInactive);for(const t of r)this.changeTab.emit(t);this.tabs=e}sortByInactive(t,e){return Number(t.active)-Number(e.active)}renderIcon(t){if(!t.icon)return;const e=a(t.icon),o=i(t.icon,t.iconColor),n={color:""};return o&&(n.color=o),r("limel-icon",{name:e,style:n,size:"small","aria-hidden":"true"})}renderTab(t,e,o){return r("button",{role:"tab","aria-selected":t.active?"true":"false",tabindex:o?0:-1,onClick:()=>this.activateTab(e)},r("span",{class:"content"},this.renderIcon(t),r("span",{class:"text"},t.text),t.badge?r("limel-badge",{label:t.badge}):""))}triggerIconColorWarning(){this.tabs.some((t=>t.iconColor))&&console.warn("The `iconColor` prop is deprecated now! Use the new `Icon` interface and instead of `iconColor: 'color-name'` write `icon {name: 'icon-name', color: 'color-name'}`.")}get host(){return o(this)}static get watchers(){return{tabs:[{tabsChanged:0}]}}};z.style="@charset \"UTF-8\";:host(limel-tab-bar){--limel-tab-background-color:var(--contrast-300);--limel-tab-border-radius:0.625rem;--limel-tab-content-inset:0.25rem;--limel-active-tab-background-color:var( --tab-panel-background-color, rgb(var(--contrast-100)) );--limel-active-tab-color:var( --lime-primary-color, var(--limel-theme-primary-color) );--limel-tab-active-outer-edge-curve-size:0.75rem;--limel-tab-separator-width:0.125rem;--limel-tab-separator-background-color:rgb(var(--contrast-600));isolation:isolate;display:block;position:relative}limel-scroller{--limel-scroller-fade-color:var(--limel-tab-background-color);--limel-scroller-content-padding:0.25rem var(--limel-tab-active-outer-edge-curve-size) 0;background-color:rgb(var(--limel-tab-background-color))}:host(.has-tabs-with-equal-width) button{flex:1 0 auto}button{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;position:relative;display:flex;box-sizing:border-box;border-radius:0;padding:var(--limel-tab-content-inset);min-width:2.5rem;background-color:transparent;flex:0 0 auto;height:2.5rem;outline:none;cursor:pointer;white-space:nowrap;font-size:var(--limel-theme-default-font-size)}button:not([aria-selected=true]):after{content:\"\";display:block;background-color:var(--limel-tab-separator-background-color);width:var(--limel-tab-separator-width);height:1rem;margin:auto;position:absolute;top:0;bottom:0;border-radius:1rem;right:calc(-1 * var(--limel-tab-separator-width))}button:not([aria-selected=true]):last-of-type:after{display:none}button limel-icon{transition:color 0.2s ease;color:rgb(var(--contrast-800));margin-left:-0.25rem}button span.text{transition:color 0.2s ease;line-height:1;color:var(--limel-theme-on-surface-color)}button:hover span.text{color:var(--limel-theme-text-primary-on-background-color)}button limel-badge{margin-right:-0.25rem;box-shadow:0 0 0 1px rgb(var(--contrast-600));pointer-events:none}button[aria-selected=true]{border-radius:var(--limel-tab-border-radius) var(--limel-tab-border-radius) 0 0;background-color:var(--limel-active-tab-background-color);z-index:2}button[aria-selected=true]:before,button[aria-selected=true]:after{content:\"\";display:block;width:var(--limel-tab-active-outer-edge-curve-size);height:var(--limel-tab-active-outer-edge-curve-size);position:absolute;bottom:0;background-color:var(--limel-active-tab-background-color);-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E\")}button[aria-selected=true]:before{left:calc(-1 * var(--limel-tab-active-outer-edge-curve-size));transform:rotateY(180deg)}button[aria-selected=true]:after{right:calc(-1 * var(--limel-tab-active-outer-edge-curve-size))}button[aria-selected=true] limel-icon{color:var(--limel-active-tab-color)}button[aria-selected=true] span.text{color:var(--limel-active-tab-color)}span.content{transition:box-shadow 0.2s ease;display:flex;flex-grow:1;align-items:center;justify-content:center;gap:0.375rem;padding:0 0.75rem;border-radius:calc(var(--limel-tab-border-radius) - var(--limel-tab-content-inset))}button:focus-visible span.content{transition-duration:0.3s;box-shadow:var(--shadow-depth-8-focused)}";export{z as limel_tab_bar}
|
|
@@ -31,23 +31,15 @@ export declare class TabBar {
|
|
|
31
31
|
*/
|
|
32
32
|
private changeTab;
|
|
33
33
|
private host;
|
|
34
|
-
private ripples;
|
|
35
34
|
private revealedTabId?;
|
|
36
35
|
private hasLoaded;
|
|
37
36
|
constructor();
|
|
38
37
|
connectedCallback(): Promise<void>;
|
|
39
38
|
componentDidLoad(): void;
|
|
40
39
|
componentDidRender(): Promise<void>;
|
|
41
|
-
disconnectedCallback(): void;
|
|
42
40
|
render(): any;
|
|
43
41
|
protected tabsChanged(newTabs?: Tab[], oldTabs?: Tab[]): void;
|
|
44
42
|
private getTabElements;
|
|
45
|
-
/**
|
|
46
|
-
* Gives every tab MDC's ripple, which is the feedback when a tab is
|
|
47
|
-
* pressed. Tabs that are gone lose theirs.
|
|
48
|
-
*/
|
|
49
|
-
private updateRipples;
|
|
50
|
-
private destroyRipples;
|
|
51
43
|
/**
|
|
52
44
|
* A tab that is activated by the user has focus, and the scroller reveals
|
|
53
45
|
* what has focus. This is for a tab that becomes active without it.
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as a,a as r}from"./p-BU9IJqli.js";import{g as i,b as o}from"./p-CgNJbSP4.js";import{A as c,b as n,H as d,c as l,d as m,e as s}from"./p-DQ5DmW_Y.js";import{i as p}from"./p-COdirXg1.js";import{M as b}from"./p-BZXGwiAr.js";import{S as f,c as g}from"./p-B6-3WXAv.js";import{a as u,b as h,i as v,c as _}from"./p-pk5KIdKH.js";import"./p-6YuZiAPi.js";import"./p-CZ30nDJE.js";import"./p-DK0pjX-Y.js";import"./p-BJQylLSL.js";import"./p-oiMYqRQ0.js";import"./p-BYfPV0O4.js";import"./p-BcJ-TDVt.js";import"./p-DbBZn7JO.js";import"./p-B8VKuhvH.js";import"./p-B--C3qwe.js";import"./p-CK4jS9_E.js";import"./p-9W8bTt2G.js";var y=h((function(t,e){return v(t)?function(t,e){var a=-1,r=u,i=!0,o=t.length,c=[],n=e.length;if(!o)return c;e.length>=200&&(r=g,i=!1,e=new f(e));t:for(;++a<o;){var d=t[a],l=d;if(d=0!==d?d:0,i&&l==l){for(var m=n;m--;)if(e[m]===l)continue t;c.push(d)}else r(e,l,undefined)||c.push(d)}return c}(t,_(e,1,v)):[]}));const x={horizontal:new Map([[m,"previous"],[s,"next"],[d,"first"],[l,"last"]]),vertical:new Map([[c,"previous"],[n,"next"],[d,"first"],[l,"last"]])};function w(t,e){return t>=0&&t<e}function k(t,e){return a=>{var r;return!(null===(r=null==e?void 0:e.isDisabled)||void 0===r?void 0:r.call(e,t[a]))}}function z(t,e,a,r,i){for(let o=0;o<t;o+=1){const c=e+a*o;if(!r&&!w(c,t))break;const n=(c%t+t)%t;if(i(n))return n}return-1}const j={orientation:"horizontal",wrap:!0},C=class{constructor(a){t(this,a),this.changeTab=e(this,"changeTab",7),this.tabs=[],this.ripples=new Map,this.hasLoaded=!1,this.handleKeyDown=this.handleKeyDown.bind(this)}async connectedCallback(){this.hasLoaded&&(this.updateRipples(),this.revealedTabId=void 0,await this.revealActiveTab("auto"))}componentDidLoad(){this.hasLoaded=!0,this.triggerIconColorWarning()}async componentDidRender(){this.updateRipples(),await this.revealActiveTab(this.hasLoaded?void 0:"auto")}disconnectedCallback(){this.destroyRipples()}render(){const t=function(t,e){const a=t.length,r=k(t,j);return w(e,a)&&r(e)?e:z(a,0,1,!1,r)}(this.tabs,this.tabs.findIndex((t=>t.active)));return a("div",{key:"7ab809d50e3605613f027a1782d54511e734de93",class:"mdc-tab-bar",role:"tablist",onKeyDown:this.handleKeyDown},a("limel-scroller",{key:"d6ac2c90e6da77a239292ac0e90288c3e70b62f8"},this.tabs.map(((e,a)=>this.renderTab(e,a,a===t)))))}tabsChanged(t=[],e=[]){const a=t.map((t=>t.id)),r=e.map((t=>t.id));p(a,r)||(this.revealedTabId=void 0)}getTabElements(){return[...this.host.shadowRoot.querySelectorAll('button[role="tab"]')]}updateRipples(){const t=this.getTabElements();for(const[e,a]of this.ripples)t.includes(e)||(a.destroy(),this.ripples.delete(e));for(const e of t)this.ripples.has(e)||this.ripples.set(e,new b(e))}destroyRipples(){for(const t of this.ripples.values())t.destroy();this.ripples.clear()}async revealActiveTab(t){const e=this.tabs.findIndex((t=>t.active));if(-1===e)return void(this.revealedTabId=void 0);if(this.tabs[e].id===this.revealedTabId)return;this.revealedTabId=this.tabs[e].id;const a=this.getTabElements()[e],r=this.host.shadowRoot.querySelector("limel-scroller");a&&r&&!a.matches(":focus")&&(await r.componentOnReady(),await r.reveal(a,t))}handleKeyDown(t){if(!function(t){return!(t.altKey||t.ctrlKey||t.metaKey)&&x[j.orientation].has(t.key)}(t))return;t.preventDefault();const e=this.getTabElements().indexOf(t.target);this.activateTab(function(t,e,a,r){const i=x[r.orientation].get(e),o=t.length,c=k(t,r),n=z(o,0,1,!1,c);if(!i||-1===n)return-1;if("first"===i)return n;const d=z(o,o-1,-1,!1,c);if("last"===i)return d;if(!w(a,o))return"next"===i?n:d;const l="next"===i?1:-1,m=z(o,a+l,l,Boolean(r.wrap),c);return-1===m?a:m}(this.tabs,t.key,e,j))}activateTab(t){if(-1===t)return;if(this.getTabElements()[t].focus(),t===this.tabs.findIndex((t=>t.active)))return;const e=function(t,e){const a=t.findIndex((t=>!0===t.active)),r=[...t];return-1!==a&&(r[a]=Object.assign(Object.assign({},t[a]),{active:!1})),r[e]=Object.assign(Object.assign({},t[e]),{active:!0}),r}(this.tabs,t),a=y(e,this.tabs).sort(this.sortByInactive);for(const t of a)this.changeTab.emit(t);this.tabs=e}sortByInactive(t,e){return Number(t.active)-Number(e.active)}renderIcon(t){if(!t.icon)return;const e=i(t.icon),r=o(t.icon,t.iconColor),c={color:""};return r&&(c.color=r),a("limel-icon",{class:"mdc-tab__icon",name:e,style:c,size:"small","aria-hidden":"true"})}renderTab(t,e,r){return a("button",{class:{"mdc-tab":!0,"mdc-tab--active":!!t.active},role:"tab","aria-selected":t.active?"true":"false",tabindex:r?0:-1,onClick:()=>this.activateTab(e)},a("span",{class:"mdc-tab__content"},this.renderIcon(t),a("span",{class:"mdc-tab__text-label"},t.text),t.badge?a("limel-badge",{label:t.badge}):""),a("span",{class:{"mdc-tab-indicator":!0,"mdc-tab-indicator--active":!!t.active}},a("span",{class:"mdc-tab-indicator__content mdc-tab-indicator__content--underline"})),a("span",{class:"mdc-tab__ripple"}))}triggerIconColorWarning(){this.tabs.some((t=>t.iconColor))&&console.warn("The `iconColor` prop is deprecated now! Use the new `Icon` interface and instead of `iconColor: 'color-name'` write `icon {name: 'icon-name', color: 'color-name'}`.")}get host(){return r(this)}static get watchers(){return{tabs:[{tabsChanged:0}]}}};C.style=".mdc-tab-bar{width:100%}.mdc-tab{height:48px}.mdc-tab--stacked{height:72px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-tab-indicator .mdc-tab-indicator__content--icon{color:#018786;color:var(--mdc-theme-secondary, #018786)}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mdc-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform, uppercase)}.mdc-tab .mdc-tab__text-label{color:rgba(0, 0, 0, 0.6)}.mdc-tab .mdc-tab__icon{color:rgba(0, 0, 0, 0.54);fill:currentColor}.mdc-tab{position:relative}.mdc-tab__content{position:relative}.mdc-tab__icon{width:24px;height:24px;font-size:24px}.mdc-tab--active .mdc-tab__text-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-tab--active .mdc-tab__icon{color:#6200ee;color:var(--mdc-theme-primary, #6200ee);fill:currentColor}.mdc-tab{background:none}.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px;}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-tab{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}.mdc-tab .mdc-tab__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-tab .mdc-tab__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-tab.mdc-ripple-upgraded--unbounded .mdc-tab__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-tab.mdc-ripple-upgraded--foreground-activation .mdc-tab__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-tab.mdc-ripple-upgraded--foreground-deactivation .mdc-tab__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-tab:hover .mdc-tab__ripple::before,.mdc-tab.mdc-ripple-surface--hover .mdc-tab__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-tab.mdc-ripple-upgraded--background-focused .mdc-tab__ripple::before,.mdc-tab:not(.mdc-ripple-upgraded):focus .mdc-tab__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-tab:not(.mdc-ripple-upgraded) .mdc-tab__ripple::after{transition:opacity 150ms linear}.mdc-tab:not(.mdc-ripple-upgraded):active .mdc-tab__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-tab.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-tab__ripple{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;will-change:transform, opacity}:host(limel-tab-bar){--limel-tab-background-color:var(--contrast-300);--limel-tab-border-radius:0.625rem;--limel-active-tab-background-color:var( --tab-panel-background-color, rgb(var(--contrast-100)) );--limel-tab-active-outer-edge-curve-size:0.75rem;--limel-tab-separator-width:0.125rem;--limel-tab-separator-background-color:rgb(var(--contrast-600));isolation:isolate;display:block;position:relative}limel-scroller{--limel-scroller-fade-color:var(--limel-tab-background-color);--limel-scroller-content-padding:0.25rem var(--limel-tab-active-outer-edge-curve-size) 0;background-color:rgb(var(--limel-tab-background-color))}:host(.has-tabs-with-equal-width) .mdc-tab{flex:1 0 auto}.mdc-tab{font-family:inherit;font-weight:400;letter-spacing:normal;font-size:var(--limel-theme-default-font-size);text-transform:none}.mdc-tab-indicator .mdc-tab-indicator__content{border:none}.mdc-tab__ripple{box-sizing:border-box;border-radius:var(--limel-tab-border-radius);border-style:solid;border-color:transparent;border-width:0.25rem;opacity:0.7}.mdc-tab__ripple:before,.mdc-tab__ripple:after{transition:background-color 0.5s ease}.mdc-tab{border-radius:0;padding-right:1rem;padding-left:1rem;min-width:2.5rem;background-color:transparent;flex:0 0 auto;height:2.5rem}.mdc-tab:not(.mdc-tab--active):after{content:\"\";display:block;background-color:var(--limel-tab-separator-background-color);width:var(--limel-tab-separator-width);height:1rem;margin:auto;position:absolute;top:0;bottom:0;border-radius:1rem;right:calc(-1 * var(--limel-tab-separator-width))}.mdc-tab:not(.mdc-tab--active):last-of-type:after{display:none}.mdc-tab .mdc-tab__icon{color:rgb(var(--contrast-800));margin-left:-0.25rem}.mdc-tab limel-badge{margin-right:-0.25rem;box-shadow:0 0 0 1px rgb(var(--contrast-600))}.mdc-tab--active{border-radius:var(--limel-tab-border-radius) var(--limel-tab-border-radius) 0 0;background-color:var(--limel-active-tab-background-color);z-index:2}.mdc-tab--active:before,.mdc-tab--active:after{content:\"\";display:block;width:var(--limel-tab-active-outer-edge-curve-size);height:var(--limel-tab-active-outer-edge-curve-size);position:absolute;bottom:0;background-color:var(--limel-active-tab-background-color);-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E\")}.mdc-tab--active:before{left:calc(-1 * var(--limel-tab-active-outer-edge-curve-size));transform:rotateY(180deg)}.mdc-tab--active:after{right:calc(-1 * var(--limel-tab-active-outer-edge-curve-size))}.mdc-tab--active .mdc-ripple-upgraded--background-focused:before{background-color:transparent;transition:background-color 1s ease}.mdc-tab--active .mdc-tab__icon{color:var(--mdc-theme-primary)}.mdc-tab__content{gap:0.375rem}.mdc-tab .mdc-tab__text-label{transition:color 0.2s ease;padding-left:0 !important;color:var(--limel-theme-on-surface-color)}.mdc-tab:hover .mdc-tab__text-label{color:var(--limel-theme-text-primary-on-background-color)}.mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--lime-primary-color, var(--limel-theme-primary-color))}";export{C as limel_tab_bar}
|