@vonage/vivid 3.0.0-next.41 → 3.0.0-next.42
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/action-group/index.js +1 -1
- package/banner/index.js +1 -0
- package/breadcrumb/index.js +1 -0
- package/breadcrumb-item/index.js +1 -0
- package/button/index.js +2 -1
- package/dialog/index.js +1 -0
- package/fab/index.js +2 -1
- package/index.js +1 -0
- package/lib/popup/popup.d.ts +1 -1
- package/lib/sidenav-disclosure/sidenav-disclosure.d.ts +2 -0
- package/lib/tooltip/tooltip.d.ts +1 -1
- package/package.json +1 -1
- package/popup/index.js +5 -4
- package/shared/aria-global.js +3 -40
- package/shared/ref.js +41 -0
- package/shared/text-anchor.template.js +1 -1
- package/sidenav-disclosure/index.js +26 -5
- package/sidenav-item/index.js +1 -0
- package/text-anchor/index.js +1 -0
- package/text-field/index.js +2 -1
- package/tooltip/index.js +4 -3
package/action-group/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import '../shared/export.js';
|
|
|
6
6
|
import '../shared/object-keys.js';
|
|
7
7
|
import '../shared/iterators.js';
|
|
8
8
|
|
|
9
|
-
var css_248z = ":host {\n display: inline-block;\n}\n\n.base {\n position: relative;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n background-color: var(--_appearance-color-fill);\n color: var(--_appearance-color-text);\n inline-size: inherit;\n vertical-align: middle;\n}\n.base {\n --_appearance-color-text: var(--vvd-color-on-canvas);\n --_appearance-color-fill: var(--vvd-color-canvas);\n --_appearance-color-outline: var(--vvd-color-neutral-50);\n}\n.base.appearance-ghost {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.base::before {\n position: absolute;\n z-index: 1;\n border-radius: inherit;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n content: \"\";\n inset: 0;\n pointer-events: none;\n}\n.base:not(.tight) {\n padding: 4px;\n column-gap: 4px;\n}\n\n/* Shape */\n.base:not(.shape-pill) {\n border-radius: 6px;\n}\n\n.base.shape-pill {\n border-radius: 24px;\n}\n\n
|
|
9
|
+
var css_248z = ":host {\n display: inline-block;\n}\n\n.base {\n position: relative;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n background-color: var(--_appearance-color-fill);\n color: var(--_appearance-color-text);\n inline-size: inherit;\n vertical-align: middle;\n}\n.base {\n --_appearance-color-text: var(--vvd-color-on-canvas);\n --_appearance-color-fill: var(--vvd-color-canvas);\n --_appearance-color-outline: var(--vvd-color-neutral-50);\n}\n.base.appearance-ghost {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.base::before {\n position: absolute;\n z-index: 1;\n border-radius: inherit;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n content: \"\";\n inset: 0;\n pointer-events: none;\n}\n.base:not(.tight) {\n padding: 4px;\n column-gap: 4px;\n}\n\n/* Shape */\n.base:not(.shape-pill) {\n border-radius: 6px;\n}\n\n.base.shape-pill {\n border-radius: 24px;\n}\n\n/* Separator */\n::slotted(vwc-divider) {\n align-self: stretch;\n margin-block: 4px;\n}";
|
|
10
10
|
styleInject(css_248z);
|
|
11
11
|
|
|
12
12
|
class ActionGroup extends FoundationElement {
|
package/banner/index.js
CHANGED
package/breadcrumb/index.js
CHANGED
package/breadcrumb-item/index.js
CHANGED
|
@@ -15,6 +15,7 @@ import '../shared/focus.js';
|
|
|
15
15
|
import '../shared/anchor.js';
|
|
16
16
|
import '../shared/apply-mixins.js';
|
|
17
17
|
import '../shared/aria-global.js';
|
|
18
|
+
import '../shared/ref.js';
|
|
18
19
|
import '../shared/affix.js';
|
|
19
20
|
import '../shared/web.dom-collections.iterator.js';
|
|
20
21
|
import '../shared/object-keys.js';
|
package/button/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { B as Button$1 } from '../shared/button.js';
|
|
|
7
7
|
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
8
8
|
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
9
9
|
import { f as focusTemplateFactory } from '../shared/focus2.js';
|
|
10
|
-
import { r as ref } from '../shared/
|
|
10
|
+
import { r as ref } from '../shared/ref.js';
|
|
11
11
|
import { c as classNames } from '../shared/class-names.js';
|
|
12
12
|
import '../shared/icon.js';
|
|
13
13
|
import '../shared/export.js';
|
|
@@ -18,6 +18,7 @@ import '../shared/when.js';
|
|
|
18
18
|
import '../shared/focus.js';
|
|
19
19
|
import '../shared/object-keys.js';
|
|
20
20
|
import '../shared/form-associated.js';
|
|
21
|
+
import '../shared/aria-global.js';
|
|
21
22
|
|
|
22
23
|
class Button extends Button$1 {
|
|
23
24
|
constructor() {
|
package/dialog/index.js
CHANGED
package/fab/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { A as AffixIconWithTrailing, a as affixIconTemplateFactory } from '../sh
|
|
|
6
6
|
import { B as Button } from '../shared/button.js';
|
|
7
7
|
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
8
8
|
import { f as focusTemplateFactory } from '../shared/focus2.js';
|
|
9
|
-
import { r as ref } from '../shared/
|
|
9
|
+
import { r as ref } from '../shared/ref.js';
|
|
10
10
|
import { c as classNames } from '../shared/class-names.js';
|
|
11
11
|
import '../shared/icon.js';
|
|
12
12
|
import '../shared/export.js';
|
|
@@ -18,6 +18,7 @@ import '../shared/focus.js';
|
|
|
18
18
|
import '../shared/web.dom-collections.iterator.js';
|
|
19
19
|
import '../shared/object-keys.js';
|
|
20
20
|
import '../shared/form-associated.js';
|
|
21
|
+
import '../shared/aria-global.js';
|
|
21
22
|
|
|
22
23
|
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control {\n font: 600 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n position: relative;\n display: inline-flex;\n box-sizing: border-box;\n align-items: center;\n border: 0 none;\n background-color: var(--_appearance-color-fill, var(--_elevation-fill));\n block-size: var(--_fab-block-size);\n border-radius: var(--_fab-border-radius);\n color: var(--_appearance-color-text, var(--vvd-color-on-canvas));\n column-gap: var(--fab-icon-gap);\n filter: var(--_elevation-shadow);\n transition: background-color 0.15s linear, filter 0.15s linear;\n vertical-align: middle;\n /* Size */\n}\n.control.connotation-accent {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n --_connotation-color-on-primary: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-neutral-90);\n --_connotation-color-contrast: var(--vvd-color-neutral-90);\n --_connotation-color-fierce: var(--vvd-color-neutral-80);\n --_connotation-color-firm: var(--vvd-color-on-canvas);\n}\n.control.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta);\n --_connotation-color-on-primary: var(--vvd-color-on-cta);\n --_connotation-color-primary-increment: var(--vvd-color-cta-70);\n --_connotation-color-contrast: var(--vvd-color-cta-90);\n --_connotation-color-fierce: var(--vvd-color-cta-80);\n --_connotation-color-firm: var(--vvd-color-cta-70);\n}\n.control {\n --_appearance-color-text: var(--_connotation-color-on-primary);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-on-primary);\n --_appearance-color-fill: var(--_connotation-color-primary-increment);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-50);\n --_appearance-color-fill: var(--vvd-color-neutral-30);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-on-primary);\n --_appearance-color-fill: var(--_connotation-color-fierce);\n --_appearance-color-outline: transaprent;\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n@supports ((-webkit-user-select: none) or (user-select: none)) {\n .control {\n -webkit-user-select: none;\n user-select: none;\n }\n}\n.control.density-extended {\n --_fab-border-radius: 30px;\n --_fab-block-size: 56px;\n}\n.control:not(.density-extended) {\n --_fab-border-radius: 24px;\n --_fab-block-size: 40px;\n}\n.control.icon-only {\n border-radius: 50%;\n padding-inline: 0;\n place-content: center;\n}\n@supports (aspect-ratio: 1) {\n .control.icon-only {\n aspect-ratio: 1;\n }\n}\n@supports not (aspect-ratio: 1) {\n .control.icon-only {\n inline-size: var(--_fab-block-size);\n }\n}\n.control:not(.icon-only) {\n --fab-icon-gap: 10px;\n padding-inline: 20px;\n}\n.control:disabled {\n --_elevation-fill: var(--vvd-color-surface-0dp);\n --_elevation-shadow: var(--vvd-shadow-surface-0dp);\n cursor: not-allowed;\n}\n.control:not(:disabled) {\n --_elevation-fill: var(--vvd-color-surface-4dp);\n --_elevation-shadow: var(--vvd-shadow-surface-4dp);\n cursor: pointer;\n}\n.control:not(:disabled):hover {\n --_elevation-fill: var(--vvd-color-surface-12dp);\n --_elevation-shadow: var(--vvd-shadow-surface-12dp);\n}\n.control:not(:disabled):active {\n --_elevation-fill: var(--vvd-color-surface-24dp);\n --_elevation-shadow: var(--vvd-shadow-surface-24dp);\n}\n\n/* Icon */\n.icon {\n font-size: 20px;\n}\n.icon-trailing .icon {\n order: 1;\n}\n\n:not(:focus-visible) .focus-indicator {\n display: none;\n}";
|
|
23
24
|
styleInject(css_248z);
|
package/index.js
CHANGED
|
@@ -45,6 +45,7 @@ import './shared/enums.js';
|
|
|
45
45
|
import './shared/button.js';
|
|
46
46
|
import './shared/form-associated.js';
|
|
47
47
|
import './shared/aria-global.js';
|
|
48
|
+
import './shared/ref.js';
|
|
48
49
|
import './shared/slotted.js';
|
|
49
50
|
import './shared/breadcrumb-item.js';
|
|
50
51
|
import './shared/anchor.js';
|
package/lib/popup/popup.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
2
|
import { AffixIcon } from '../../shared/patterns/affix';
|
|
3
3
|
export declare class SidenavDisclosure extends FoundationElement {
|
|
4
|
+
#private;
|
|
5
|
+
details: HTMLDetailsElement;
|
|
4
6
|
label?: string;
|
|
5
7
|
open: boolean;
|
|
6
8
|
}
|
package/lib/tooltip/tooltip.d.ts
CHANGED
package/package.json
CHANGED
package/popup/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { t as toString$3 } from '../shared/to-string.js';
|
|
|
9
9
|
import { a as keyEscape } from '../shared/form-associated.js';
|
|
10
10
|
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
11
11
|
import { w as when } from '../shared/when.js';
|
|
12
|
-
import { r as ref } from '../shared/
|
|
12
|
+
import { r as ref } from '../shared/ref.js';
|
|
13
13
|
import { c as classNames } from '../shared/class-names.js';
|
|
14
14
|
import '../icon/index.js';
|
|
15
15
|
import '../shared/iterators.js';
|
|
@@ -19,6 +19,7 @@ import '../shared/focus.js';
|
|
|
19
19
|
import '../shared/affix.js';
|
|
20
20
|
import '../shared/button.js';
|
|
21
21
|
import '../shared/apply-mixins.js';
|
|
22
|
+
import '../shared/aria-global.js';
|
|
22
23
|
import '../shared/focus2.js';
|
|
23
24
|
import '../shared/object-keys.js';
|
|
24
25
|
|
|
@@ -1942,7 +1943,7 @@ class Popup extends FoundationElement {
|
|
|
1942
1943
|
this.dismissible = false;
|
|
1943
1944
|
this.arrow = false;
|
|
1944
1945
|
this.alternate = false;
|
|
1945
|
-
this.
|
|
1946
|
+
this.placement = 'left';
|
|
1946
1947
|
}
|
|
1947
1948
|
|
|
1948
1949
|
disconnectedCallback() {
|
|
@@ -1981,7 +1982,7 @@ class Popup extends FoundationElement {
|
|
|
1981
1982
|
}
|
|
1982
1983
|
|
|
1983
1984
|
const positionData = await computePosition(__classPrivateFieldGet(this, _Popup_anchorEl, "f"), this.popupEl, {
|
|
1984
|
-
placement: this.
|
|
1985
|
+
placement: this.placement,
|
|
1985
1986
|
strategy: __classPrivateFieldGet(this, _Popup_instances, "a", _Popup_strategy_get),
|
|
1986
1987
|
middleware: __classPrivateFieldGet(this, _Popup_instances, "a", _Popup_middleware_get)
|
|
1987
1988
|
});
|
|
@@ -2074,7 +2075,7 @@ __decorate([attr({
|
|
|
2074
2075
|
|
|
2075
2076
|
__decorate([attr({
|
|
2076
2077
|
mode: 'fromView'
|
|
2077
|
-
}), __metadata("design:type", String)], Popup.prototype, "
|
|
2078
|
+
}), __metadata("design:type", String)], Popup.prototype, "placement", void 0);
|
|
2078
2079
|
|
|
2079
2080
|
__decorate([attr, __metadata("design:type", String)], Popup.prototype, "anchor", void 0);
|
|
2080
2081
|
|
package/shared/aria-global.js
CHANGED
|
@@ -1,42 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The runtime behavior for template references.
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
class RefBehavior {
|
|
8
|
-
/**
|
|
9
|
-
* Creates an instance of RefBehavior.
|
|
10
|
-
* @param target - The element to reference.
|
|
11
|
-
* @param propertyName - The name of the property to assign the reference to.
|
|
12
|
-
*/
|
|
13
|
-
constructor(target, propertyName) {
|
|
14
|
-
this.target = target;
|
|
15
|
-
this.propertyName = propertyName;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Bind this behavior to the source.
|
|
19
|
-
* @param source - The source to bind to.
|
|
20
|
-
* @param context - The execution context that the binding is operating within.
|
|
21
|
-
*/
|
|
22
|
-
bind(source) {
|
|
23
|
-
source[this.propertyName] = this.target;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Unbinds this behavior from the source.
|
|
27
|
-
* @param source - The source to unbind from.
|
|
28
|
-
*/
|
|
29
|
-
/* eslint-disable-next-line @typescript-eslint/no-empty-function */
|
|
30
|
-
unbind() { }
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* A directive that observes the updates a property with a reference to the element.
|
|
34
|
-
* @param propertyName - The name of the property to assign the reference to.
|
|
35
|
-
* @public
|
|
36
|
-
*/
|
|
37
|
-
function ref(propertyName) {
|
|
38
|
-
return new AttachedBehaviorHTMLDirective("fast-ref", RefBehavior, propertyName);
|
|
39
|
-
}
|
|
1
|
+
import { h as html, _ as __decorate, a as attr } from './index.js';
|
|
2
|
+
import { r as ref } from './ref.js';
|
|
40
3
|
|
|
41
4
|
/**
|
|
42
5
|
* A mixin class implementing start and end elements.
|
|
@@ -153,4 +116,4 @@ __decorate([
|
|
|
153
116
|
attr({ attribute: "aria-roledescription" })
|
|
154
117
|
], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription", void 0);
|
|
155
118
|
|
|
156
|
-
export { ARIAGlobalStatesAndProperties as A, StartEnd as S
|
|
119
|
+
export { ARIAGlobalStatesAndProperties as A, StartEnd as S };
|
package/shared/ref.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { A as AttachedBehaviorHTMLDirective } from './index.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The runtime behavior for template references.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
class RefBehavior {
|
|
8
|
+
/**
|
|
9
|
+
* Creates an instance of RefBehavior.
|
|
10
|
+
* @param target - The element to reference.
|
|
11
|
+
* @param propertyName - The name of the property to assign the reference to.
|
|
12
|
+
*/
|
|
13
|
+
constructor(target, propertyName) {
|
|
14
|
+
this.target = target;
|
|
15
|
+
this.propertyName = propertyName;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Bind this behavior to the source.
|
|
19
|
+
* @param source - The source to bind to.
|
|
20
|
+
* @param context - The execution context that the binding is operating within.
|
|
21
|
+
*/
|
|
22
|
+
bind(source) {
|
|
23
|
+
source[this.propertyName] = this.target;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Unbinds this behavior from the source.
|
|
27
|
+
* @param source - The source to unbind from.
|
|
28
|
+
*/
|
|
29
|
+
/* eslint-disable-next-line @typescript-eslint/no-empty-function */
|
|
30
|
+
unbind() { }
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A directive that observes the updates a property with a reference to the element.
|
|
34
|
+
* @param propertyName - The name of the property to assign the reference to.
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
function ref(propertyName) {
|
|
38
|
+
return new AttachedBehaviorHTMLDirective("fast-ref", RefBehavior, propertyName);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { ref as r };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as affixIconTemplateFactory } from './affix.js';
|
|
2
2
|
import { f as focusTemplateFactory } from './focus2.js';
|
|
3
3
|
import { h as html } from './index.js';
|
|
4
|
-
import { r as ref } from './
|
|
4
|
+
import { r as ref } from './ref.js';
|
|
5
5
|
import { c as classNames } from './class-names.js';
|
|
6
6
|
|
|
7
7
|
let _ = t => t,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import '../icon/index.js';
|
|
2
2
|
import '../focus/index.js';
|
|
3
|
-
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
3
|
+
import { F as FoundationElement, c as __classPrivateFieldGet, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
4
4
|
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
5
5
|
import '../shared/web.dom-collections.iterator.js';
|
|
6
6
|
import { b as AffixIcon, a as affixIconTemplateFactory } from '../shared/affix.js';
|
|
7
7
|
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
8
8
|
import { f as focusTemplateFactory } from '../shared/focus2.js';
|
|
9
9
|
import { w as when } from '../shared/when.js';
|
|
10
|
+
import { r as ref } from '../shared/ref.js';
|
|
10
11
|
import '../shared/icon.js';
|
|
11
12
|
import '../shared/export.js';
|
|
12
13
|
import '../shared/iterators.js';
|
|
@@ -16,16 +17,34 @@ import '../shared/class-names.js';
|
|
|
16
17
|
import '../shared/focus.js';
|
|
17
18
|
import '../shared/object-keys.js';
|
|
18
19
|
|
|
19
|
-
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n position: relative;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n background-color: var(--_appearance-color-fill);\n border-radius: 6px;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n cursor: pointer;\n gap: 8px;\n -webkit-hyphens: auto;\n hyphens: auto;\n inline-size: 100%;\n min-block-size: 40px;\n padding-inline: 8px;\n text-decoration: none;\n vertical-align: middle;\n word-break: break-word;\n}\n.control {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: transaprent;\n}\n.control:where(.selected, [aria-current]):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: transaprent;\n}\n.control {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n --_connotation-color-faint: var(--vvd-color-neutral-10);\n --_connotation-color-soft: var(--vvd-color-neutral-20);\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n@supports ((-webkit-user-select: none) or (user-select: none)) {\n .control {\n -webkit-user-select: none;\n user-select: none;\n }\n}\n.control .toggleIcon {\n margin-inline-start: auto;\n}\n\n.control:not(:focus-visible) .focus-indicator {\n display: none;\n}\n\n.icon {\n font-size: 20px;\n}\n\n.content {\n border-inline-start: 1px solid var(--vvd-color-neutral-30);\n margin-inline-start:
|
|
20
|
+
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n position: relative;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n background-color: var(--_appearance-color-fill);\n border-radius: 6px;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n cursor: pointer;\n gap: 8px;\n -webkit-hyphens: auto;\n hyphens: auto;\n inline-size: 100%;\n min-block-size: 40px;\n padding-inline: 8px;\n text-decoration: none;\n vertical-align: middle;\n word-break: break-word;\n}\n.control {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: transaprent;\n}\n.control:where(.selected, [aria-current]):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: transaprent;\n}\n.control {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n --_connotation-color-faint: var(--vvd-color-neutral-10);\n --_connotation-color-soft: var(--vvd-color-neutral-20);\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n@supports ((-webkit-user-select: none) or (user-select: none)) {\n .control {\n -webkit-user-select: none;\n user-select: none;\n }\n}\n.control .toggleIcon {\n margin-inline-start: auto;\n}\n\n.control:not(:focus-visible) .focus-indicator {\n display: none;\n}\n\n.icon {\n font-size: 20px;\n}\n\n.content {\n border-inline-start: 1px solid var(--vvd-color-neutral-30);\n margin-inline-start: 20px;\n padding-inline-start: 12px;\n}\n\ndetails > summary {\n list-style: none;\n}\n\ndetails > summary::-webkit-details-marker {\n display: none;\n}";
|
|
20
21
|
styleInject(css_248z);
|
|
21
22
|
|
|
23
|
+
var _SidenavDisclosure_onToggle;
|
|
22
24
|
class SidenavDisclosure extends FoundationElement {
|
|
23
25
|
constructor() {
|
|
24
26
|
super(...arguments);
|
|
25
27
|
this.open = false;
|
|
28
|
+
|
|
29
|
+
_SidenavDisclosure_onToggle.set(this, () => {
|
|
30
|
+
this.open = this.details.open;
|
|
31
|
+
this.$emit('toggle');
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
connectedCallback() {
|
|
36
|
+
super.connectedCallback();
|
|
37
|
+
this.details.addEventListener('toggle', __classPrivateFieldGet(this, _SidenavDisclosure_onToggle, "f"));
|
|
38
|
+
this.details.open = this.open;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
disconnectedCallback() {
|
|
42
|
+
super.disconnectedCallback();
|
|
43
|
+
this.details.removeEventListener('toggle', __classPrivateFieldGet(this, _SidenavDisclosure_onToggle, "f"));
|
|
26
44
|
}
|
|
27
45
|
|
|
28
46
|
}
|
|
47
|
+
_SidenavDisclosure_onToggle = new WeakMap();
|
|
29
48
|
|
|
30
49
|
__decorate([attr, __metadata("design:type", String)], SidenavDisclosure.prototype, "label", void 0);
|
|
31
50
|
|
|
@@ -42,7 +61,7 @@ let _ = t => t,
|
|
|
42
61
|
const SidenavDisclosureTemplate = context => {
|
|
43
62
|
const affixIconTemplate = affixIconTemplateFactory(context);
|
|
44
63
|
const focusTemplate = focusTemplateFactory(context);
|
|
45
|
-
return html(_t || (_t = _`<details class="base" ?open
|
|
64
|
+
return html(_t || (_t = _`<details class="base" ${0} ?open=${0}>
|
|
46
65
|
<summary class="control"
|
|
47
66
|
role="button"
|
|
48
67
|
aria-controls="disclosure-content"
|
|
@@ -54,9 +73,11 @@ const SidenavDisclosureTemplate = context => {
|
|
|
54
73
|
${0}
|
|
55
74
|
${0}
|
|
56
75
|
</summary>
|
|
57
|
-
<div class="content" id="disclosure-content"
|
|
76
|
+
<div class="content" id="disclosure-content">
|
|
77
|
+
<slot></slot>
|
|
78
|
+
</div>
|
|
58
79
|
</details>
|
|
59
|
-
`), x => x.open, x => x.open, x => affixIconTemplate(x.icon), x => x.label, when(x => x.open, html(_t2 || (_t2 = _`<vwc-icon class="toggleIcon" type='chevron-up-solid'></vwc-icon>`))), when(x => !x.open, html(_t3 || (_t3 = _`<vwc-icon class="toggleIcon" type='chevron-down-solid'></vwc-icon>`))), () => focusTemplate);
|
|
80
|
+
`), ref('details'), x => x.open, x => x.open, x => affixIconTemplate(x.icon), x => x.label, when(x => x.open, html(_t2 || (_t2 = _`<vwc-icon class="toggleIcon" type='chevron-up-solid'></vwc-icon>`))), when(x => !x.open, html(_t3 || (_t3 = _`<vwc-icon class="toggleIcon" type='chevron-down-solid'></vwc-icon>`))), () => focusTemplate);
|
|
60
81
|
};
|
|
61
82
|
|
|
62
83
|
const vividSidenavDisclosure = SidenavDisclosure.compose({
|
package/sidenav-item/index.js
CHANGED
|
@@ -18,6 +18,7 @@ import '../shared/web.dom-collections.iterator.js';
|
|
|
18
18
|
import '../shared/object-keys.js';
|
|
19
19
|
import '../shared/anchor.js';
|
|
20
20
|
import '../shared/aria-global.js';
|
|
21
|
+
import '../shared/ref.js';
|
|
21
22
|
import '../shared/focus2.js';
|
|
22
23
|
|
|
23
24
|
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n position: relative;\n display: inline-flex;\n box-sizing: border-box;\n align-items: center;\n background-color: var(--_appearance-color-fill);\n border-radius: 6px;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n gap: 8px;\n -webkit-hyphens: auto;\n hyphens: auto;\n inline-size: 100%;\n min-block-size: 40px;\n padding-block: 10px;\n padding-inline: 8px;\n text-decoration: none;\n vertical-align: middle;\n word-break: break-word;\n}\n.control {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: transaprent;\n}\n.control:where(.selected, [aria-current]):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: transaprent;\n}\n.control {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n --_connotation-color-faint: var(--vvd-color-neutral-10);\n --_connotation-color-soft: var(--vvd-color-neutral-20);\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n.control.icon-only {\n display: flex;\n block-size: 40px;\n inline-size: 40px;\n place-content: center;\n}\n\n.control:not(:focus-visible) .focus-indicator {\n display: none;\n}\n\n.icon {\n font-size: 20px;\n}";
|
package/text-anchor/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import '../shared/_has.js';
|
|
|
12
12
|
import '../shared/anchor.js';
|
|
13
13
|
import '../shared/apply-mixins.js';
|
|
14
14
|
import '../shared/aria-global.js';
|
|
15
|
+
import '../shared/ref.js';
|
|
15
16
|
import '../shared/focus2.js';
|
|
16
17
|
import '../shared/focus.js';
|
|
17
18
|
import '../shared/class-names.js';
|
package/text-field/index.js
CHANGED
|
@@ -6,10 +6,11 @@ import { b as AffixIcon, a as affixIconTemplateFactory } from '../shared/affix.j
|
|
|
6
6
|
import '../shared/focus.js';
|
|
7
7
|
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
8
8
|
import { F as FormAssociated } from '../shared/form-associated.js';
|
|
9
|
-
import { A as ARIAGlobalStatesAndProperties, S as StartEnd
|
|
9
|
+
import { A as ARIAGlobalStatesAndProperties, S as StartEnd } from '../shared/aria-global.js';
|
|
10
10
|
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
11
11
|
import { f as focusTemplateFactory } from '../shared/focus2.js';
|
|
12
12
|
import { w as when } from '../shared/when.js';
|
|
13
|
+
import { r as ref } from '../shared/ref.js';
|
|
13
14
|
import { c as classNames } from '../shared/class-names.js';
|
|
14
15
|
import '../shared/icon.js';
|
|
15
16
|
import '../shared/export.js';
|
package/tooltip/index.js
CHANGED
|
@@ -19,6 +19,7 @@ import '../shared/button.js';
|
|
|
19
19
|
import '../shared/apply-mixins.js';
|
|
20
20
|
import '../shared/form-associated.js';
|
|
21
21
|
import '../shared/aria-global.js';
|
|
22
|
+
import '../shared/ref.js';
|
|
22
23
|
import '../shared/focus2.js';
|
|
23
24
|
import '../shared/object-keys.js';
|
|
24
25
|
import '../shared/es.object.assign.js';
|
|
@@ -40,7 +41,7 @@ __decorate([attr({
|
|
|
40
41
|
mode: 'boolean'
|
|
41
42
|
}), __metadata("design:type", Object)], Tooltip.prototype, "open", void 0);
|
|
42
43
|
|
|
43
|
-
__decorate([attr, __metadata("design:type", String)], Tooltip.prototype, "
|
|
44
|
+
__decorate([attr, __metadata("design:type", String)], Tooltip.prototype, "placement", void 0);
|
|
44
45
|
|
|
45
46
|
__decorate([attr, __metadata("design:type", String)], Tooltip.prototype, "anchor", void 0);
|
|
46
47
|
|
|
@@ -51,14 +52,14 @@ const getClasses = _ => classNames('control');
|
|
|
51
52
|
|
|
52
53
|
const TooltipTemplate = () => html(_t || (_t = _2`
|
|
53
54
|
<vwc-popup class="${0}" arrow alternate
|
|
54
|
-
|
|
55
|
+
placement=${0} open=${0} anchor=${0}
|
|
55
56
|
exportparts="vvd-theme-alternate" role="tooltip">
|
|
56
57
|
<div class="tooltip">
|
|
57
58
|
<header part="vvd-theme-alternate" class="tooltip-header">
|
|
58
59
|
<div class="tooltip-text">${0}</div>
|
|
59
60
|
</header>
|
|
60
61
|
</div>
|
|
61
|
-
</vwc-popup>`), getClasses, x => x.
|
|
62
|
+
</vwc-popup>`), getClasses, x => x.placement, x => x.open, x => x.anchor, x => x.text);
|
|
62
63
|
|
|
63
64
|
const vividTooltip = Tooltip.compose({
|
|
64
65
|
baseName: 'tooltip',
|