@vonage/vivid 4.8.0 → 4.9.0

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.
@@ -36,6 +36,28 @@ class SideDrawer extends index.FoundationElement {
36
36
  #open() {
37
37
  this.$emit("open", void 0, { bubbles: false });
38
38
  }
39
+ /**
40
+ * @internal
41
+ */
42
+ _onKeydown(event) {
43
+ if (index$1.handleEscapeKeyAndStopPropogation(event)) {
44
+ this._handleCloseRequest();
45
+ return void 0;
46
+ } else {
47
+ return true;
48
+ }
49
+ }
50
+ /**
51
+ * @internal
52
+ */
53
+ _handleCloseRequest() {
54
+ if (this.$emit("cancel", void 0, {
55
+ bubbles: false,
56
+ cancelable: true
57
+ })) {
58
+ this.open = false;
59
+ }
60
+ }
39
61
  }
40
62
  __decorateClass([
41
63
  index.attr({
@@ -72,7 +94,7 @@ const sideDrawerTemplate = () => index.html`
72
94
  class="${getClasses}"
73
95
  ?inert="${(x) => !x.open}"
74
96
  part="base ${(x) => x.alternate ? "vvd-theme-alternate" : ""}"
75
- @keydown="${(x, c) => handleKeydown(x, c.event)}"
97
+ @keydown="${(x, c) => x._onKeydown(c.event)}"
76
98
  >
77
99
  <slot></slot>
78
100
  </div>
@@ -85,17 +107,10 @@ const sideDrawerTemplate = () => index.html`
85
107
  (x) => x.modal,
86
108
  index.html`<div
87
109
  class="${getScrimClasses}"
88
- @click="${(x) => x.open = false}"
110
+ @click="${(x) => x._handleCloseRequest()}"
89
111
  ></div>`
90
112
  )}
91
113
  `;
92
- const handleKeydown = (x, event) => {
93
- if (index$1.handleEscapeKeyAndStopPropogation(event)) {
94
- x.open = false;
95
- } else {
96
- return true;
97
- }
98
- };
99
114
 
100
115
  const sideDrawerDefinition = SideDrawer.compose({
101
116
  baseName: "side-drawer",
@@ -34,6 +34,28 @@ class SideDrawer extends FoundationElement {
34
34
  #open() {
35
35
  this.$emit("open", void 0, { bubbles: false });
36
36
  }
37
+ /**
38
+ * @internal
39
+ */
40
+ _onKeydown(event) {
41
+ if (handleEscapeKeyAndStopPropogation(event)) {
42
+ this._handleCloseRequest();
43
+ return void 0;
44
+ } else {
45
+ return true;
46
+ }
47
+ }
48
+ /**
49
+ * @internal
50
+ */
51
+ _handleCloseRequest() {
52
+ if (this.$emit("cancel", void 0, {
53
+ bubbles: false,
54
+ cancelable: true
55
+ })) {
56
+ this.open = false;
57
+ }
58
+ }
37
59
  }
38
60
  __decorateClass([
39
61
  attr({
@@ -70,7 +92,7 @@ const sideDrawerTemplate = () => html`
70
92
  class="${getClasses}"
71
93
  ?inert="${(x) => !x.open}"
72
94
  part="base ${(x) => x.alternate ? "vvd-theme-alternate" : ""}"
73
- @keydown="${(x, c) => handleKeydown(x, c.event)}"
95
+ @keydown="${(x, c) => x._onKeydown(c.event)}"
74
96
  >
75
97
  <slot></slot>
76
98
  </div>
@@ -83,17 +105,10 @@ const sideDrawerTemplate = () => html`
83
105
  (x) => x.modal,
84
106
  html`<div
85
107
  class="${getScrimClasses}"
86
- @click="${(x) => x.open = false}"
108
+ @click="${(x) => x._handleCloseRequest()}"
87
109
  ></div>`
88
110
  )}
89
111
  `;
90
- const handleKeydown = (x, event) => {
91
- if (handleEscapeKeyAndStopPropogation(event)) {
92
- x.open = false;
93
- } else {
94
- return true;
95
- }
96
- };
97
112
 
98
113
  const sideDrawerDefinition = SideDrawer.compose({
99
114
  baseName: "side-drawer",
@@ -10,24 +10,6 @@ const classNames = require('./class-names.cjs');
10
10
 
11
11
  const styles = ".base{display:flex;align-items:center;color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base)}.base .separator{margin:0 16px;color:var(--vvd-color-neutral-600);font-size:12px}.control{border-radius:2px;font:inherit}.control:focus-visible{box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent;--focus-inset: -4px}.control:any-link{color:var(--vvd-color-cta-600);text-decoration:none}.control:any-link:hover{text-decoration:underline}";
12
12
 
13
- var __defProp = Object.defineProperty;
14
- var __decorateClass = (decorators, target, key, kind) => {
15
- var result = void 0 ;
16
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
17
- if (decorator = decorators[i])
18
- result = (decorator(target, key, result) ) || result;
19
- if (result) __defProp(target, key, result);
20
- return result;
21
- };
22
- class BreadcrumbItem extends breadcrumbItem.BreadcrumbItem {
23
- constructor() {
24
- super();
25
- }
26
- }
27
- __decorateClass([
28
- index.attr
29
- ], BreadcrumbItem.prototype, "text");
30
-
31
13
  const getClasses = (_) => classNames.classNames("base");
32
14
  const BreadcrumbItemTemplate = (context, definition) => {
33
15
  const iconTag = context.tagFor(icon.Icon);
@@ -44,7 +26,7 @@ const BreadcrumbItemTemplate = (context, definition) => {
44
26
  </div>`;
45
27
  };
46
28
 
47
- const breadcrumbItemDefinition = BreadcrumbItem.compose({
29
+ const breadcrumbItemDefinition = breadcrumbItem.BreadcrumbItem.compose({
48
30
  baseName: "breadcrumb-item",
49
31
  template: BreadcrumbItemTemplate,
50
32
  styles,
@@ -1,6 +1,6 @@
1
- import { a as attr, h as html, r as registerFactory } from './index.js';
1
+ import { h as html, r as registerFactory } from './index.js';
2
2
  import { a as iconRegistries } from './definition27.js';
3
- import { B as BreadcrumbItem$1 } from './breadcrumb-item.js';
3
+ import { B as BreadcrumbItem } from './breadcrumb-item.js';
4
4
  import { t as textAnchorTemplate } from './text-anchor.template.js';
5
5
  import { I as Icon } from './icon.js';
6
6
  import { w as when } from './when.js';
@@ -8,24 +8,6 @@ import { c as classNames } from './class-names.js';
8
8
 
9
9
  const styles = ".base{display:flex;align-items:center;color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base)}.base .separator{margin:0 16px;color:var(--vvd-color-neutral-600);font-size:12px}.control{border-radius:2px;font:inherit}.control:focus-visible{box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent;--focus-inset: -4px}.control:any-link{color:var(--vvd-color-cta-600);text-decoration:none}.control:any-link:hover{text-decoration:underline}";
10
10
 
11
- var __defProp = Object.defineProperty;
12
- var __decorateClass = (decorators, target, key, kind) => {
13
- var result = void 0 ;
14
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
15
- if (decorator = decorators[i])
16
- result = (decorator(target, key, result) ) || result;
17
- if (result) __defProp(target, key, result);
18
- return result;
19
- };
20
- class BreadcrumbItem extends BreadcrumbItem$1 {
21
- constructor() {
22
- super();
23
- }
24
- }
25
- __decorateClass([
26
- attr
27
- ], BreadcrumbItem.prototype, "text");
28
-
29
11
  const getClasses = (_) => classNames("base");
30
12
  const BreadcrumbItemTemplate = (context, definition) => {
31
13
  const iconTag = context.tagFor(Icon);
@@ -0,0 +1,18 @@
1
+ import { ARIAGlobalStatesAndProperties } from './aria-global';
2
+ export declare class Anchor {
3
+ download: string;
4
+ href: string;
5
+ hreflang: string;
6
+ ping: string;
7
+ referrerpolicy: string;
8
+ rel: string;
9
+ target: '_self' | '_blank' | '_parent' | '_top';
10
+ type: string;
11
+ }
12
+ export declare class DelegatesARIALink {
13
+ ariaExpanded: 'true' | 'false' | string | null;
14
+ }
15
+ export interface DelegatesARIALink extends ARIAGlobalStatesAndProperties {
16
+ }
17
+ export interface Anchor extends DelegatesARIALink {
18
+ }
@@ -14,10 +14,10 @@ export declare function anchored<T extends {
14
14
  _slottedAnchor?: HTMLElement[] | undefined;
15
15
  _slottedAnchorChanged(): void;
16
16
  _anchorEl?: HTMLElement | undefined;
17
- "__#6@#updateAnchorEl": () => void;
18
- "__#6@#observer"?: MutationObserver | undefined;
19
- "__#6@#observeMissingAnchor": (anchorId: string) => void;
20
- "__#6@#cleanupObserverIfNeeded": () => void;
17
+ "__#7@#updateAnchorEl": () => void;
18
+ "__#7@#observer"?: MutationObserver | undefined;
19
+ "__#7@#observeMissingAnchor": (anchorId: string) => void;
20
+ "__#7@#cleanupObserverIfNeeded": () => void;
21
21
  connectedCallback(): void;
22
22
  disconnectedCallback(): void;
23
23
  };
@@ -0,0 +1,21 @@
1
+ export declare class ARIAGlobalStatesAndProperties {
2
+ ariaAtomic: 'true' | 'false' | string | null;
3
+ ariaBusy: 'true' | 'false' | string | null;
4
+ ariaControls: string | null;
5
+ ariaCurrent: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false' | string | null;
6
+ ariaDescribedby: string | null;
7
+ ariaDetails: string | null;
8
+ ariaDisabled: 'true' | 'false' | string | null;
9
+ ariaErrormessage: string | null;
10
+ ariaFlowto: string | null;
11
+ ariaHaspopup: 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | string | null;
12
+ ariaHidden: 'false' | 'true' | string | null;
13
+ ariaInvalid: 'false' | 'true' | 'grammar' | 'spelling' | string | null;
14
+ ariaKeyshortcuts: string | null;
15
+ ariaLabel: string | null;
16
+ ariaLabelledby: string | null;
17
+ ariaLive: 'assertive' | 'off' | 'polite' | string | null;
18
+ ariaOwns: string | null;
19
+ ariaRelevant: 'additions' | 'additions text' | 'all' | 'removals' | 'text' | string | null;
20
+ ariaRoledescription: string | null;
21
+ }
@@ -1,9 +1,91 @@
1
1
  'use strict';
2
2
 
3
3
  const affix = require('./affix.cjs');
4
- const anchor = require('./anchor.cjs');
5
4
  const index = require('./index.cjs');
6
5
  const applyMixins = require('./apply-mixins.cjs');
6
+ const ariaGlobal = require('./aria-global.cjs');
7
+ const startEnd = require('./start-end.cjs');
8
+
9
+ /**
10
+ * An Anchor Custom HTML Element.
11
+ * Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element }.
12
+ *
13
+ * @slot start - Content which can be provided before the anchor content
14
+ * @slot end - Content which can be provided after the anchor content
15
+ * @slot - The default slot for anchor content
16
+ * @csspart control - The anchor element
17
+ * @csspart content - The element wrapping anchor content
18
+ *
19
+ * @public
20
+ */
21
+ class Anchor extends index.FoundationElement {
22
+ constructor() {
23
+ super(...arguments);
24
+ /**
25
+ * Overrides the focus call for where delegatesFocus is unsupported.
26
+ * This check works for Chrome, Edge Chromium, FireFox, and Safari
27
+ * Relevant PR on the Firefox browser: https://phabricator.services.mozilla.com/D123858
28
+ */
29
+ this.handleUnsupportedDelegatesFocus = () => {
30
+ var _a;
31
+ // Check to see if delegatesFocus is supported
32
+ if (window.ShadowRoot &&
33
+ !window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
34
+ ((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
35
+ this.focus = () => {
36
+ var _a;
37
+ (_a = this.control) === null || _a === void 0 ? void 0 : _a.focus();
38
+ };
39
+ }
40
+ };
41
+ }
42
+ /**
43
+ * @internal
44
+ */
45
+ connectedCallback() {
46
+ super.connectedCallback();
47
+ this.handleUnsupportedDelegatesFocus();
48
+ }
49
+ }
50
+ index.__decorate([
51
+ index.attr
52
+ ], Anchor.prototype, "download", void 0);
53
+ index.__decorate([
54
+ index.attr
55
+ ], Anchor.prototype, "href", void 0);
56
+ index.__decorate([
57
+ index.attr
58
+ ], Anchor.prototype, "hreflang", void 0);
59
+ index.__decorate([
60
+ index.attr
61
+ ], Anchor.prototype, "ping", void 0);
62
+ index.__decorate([
63
+ index.attr
64
+ ], Anchor.prototype, "referrerpolicy", void 0);
65
+ index.__decorate([
66
+ index.attr
67
+ ], Anchor.prototype, "rel", void 0);
68
+ index.__decorate([
69
+ index.attr
70
+ ], Anchor.prototype, "target", void 0);
71
+ index.__decorate([
72
+ index.attr
73
+ ], Anchor.prototype, "type", void 0);
74
+ index.__decorate([
75
+ index.observable
76
+ ], Anchor.prototype, "defaultSlottedContent", void 0);
77
+ /**
78
+ * Includes ARIA states and properties relating to the ARIA link role
79
+ *
80
+ * @public
81
+ */
82
+ class DelegatesARIALink {
83
+ }
84
+ index.__decorate([
85
+ index.attr({ attribute: "aria-expanded" })
86
+ ], DelegatesARIALink.prototype, "ariaExpanded", void 0);
87
+ applyMixins.applyMixins(DelegatesARIALink, ariaGlobal.ARIAGlobalStatesAndProperties);
88
+ applyMixins.applyMixins(Anchor, startEnd.StartEnd, DelegatesARIALink);
7
89
 
8
90
  var __defProp = Object.defineProperty;
9
91
  var __decorateClass = (decorators, target, key, kind) => {
@@ -14,7 +96,7 @@ var __decorateClass = (decorators, target, key, kind) => {
14
96
  if (result) __defProp(target, key, result);
15
97
  return result;
16
98
  };
17
- class TextAnchor extends anchor.Anchor {
99
+ class TextAnchor extends Anchor {
18
100
  /**
19
101
  * Allows subclasses to provide a body template that will be rendered inside the anchor.
20
102
  * @internal
@@ -1,7 +1,89 @@
1
1
  import { A as AffixIcon } from './affix.js';
2
- import { A as Anchor } from './anchor.js';
3
- import { a as attr } from './index.js';
2
+ import { F as FoundationElement, _ as __decorate, a as attr, o as observable } from './index.js';
4
3
  import { a as applyMixins } from './apply-mixins.js';
4
+ import { A as ARIAGlobalStatesAndProperties } from './aria-global.js';
5
+ import { S as StartEnd } from './start-end.js';
6
+
7
+ /**
8
+ * An Anchor Custom HTML Element.
9
+ * Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element }.
10
+ *
11
+ * @slot start - Content which can be provided before the anchor content
12
+ * @slot end - Content which can be provided after the anchor content
13
+ * @slot - The default slot for anchor content
14
+ * @csspart control - The anchor element
15
+ * @csspart content - The element wrapping anchor content
16
+ *
17
+ * @public
18
+ */
19
+ class Anchor extends FoundationElement {
20
+ constructor() {
21
+ super(...arguments);
22
+ /**
23
+ * Overrides the focus call for where delegatesFocus is unsupported.
24
+ * This check works for Chrome, Edge Chromium, FireFox, and Safari
25
+ * Relevant PR on the Firefox browser: https://phabricator.services.mozilla.com/D123858
26
+ */
27
+ this.handleUnsupportedDelegatesFocus = () => {
28
+ var _a;
29
+ // Check to see if delegatesFocus is supported
30
+ if (window.ShadowRoot &&
31
+ !window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
32
+ ((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
33
+ this.focus = () => {
34
+ var _a;
35
+ (_a = this.control) === null || _a === void 0 ? void 0 : _a.focus();
36
+ };
37
+ }
38
+ };
39
+ }
40
+ /**
41
+ * @internal
42
+ */
43
+ connectedCallback() {
44
+ super.connectedCallback();
45
+ this.handleUnsupportedDelegatesFocus();
46
+ }
47
+ }
48
+ __decorate([
49
+ attr
50
+ ], Anchor.prototype, "download", void 0);
51
+ __decorate([
52
+ attr
53
+ ], Anchor.prototype, "href", void 0);
54
+ __decorate([
55
+ attr
56
+ ], Anchor.prototype, "hreflang", void 0);
57
+ __decorate([
58
+ attr
59
+ ], Anchor.prototype, "ping", void 0);
60
+ __decorate([
61
+ attr
62
+ ], Anchor.prototype, "referrerpolicy", void 0);
63
+ __decorate([
64
+ attr
65
+ ], Anchor.prototype, "rel", void 0);
66
+ __decorate([
67
+ attr
68
+ ], Anchor.prototype, "target", void 0);
69
+ __decorate([
70
+ attr
71
+ ], Anchor.prototype, "type", void 0);
72
+ __decorate([
73
+ observable
74
+ ], Anchor.prototype, "defaultSlottedContent", void 0);
75
+ /**
76
+ * Includes ARIA states and properties relating to the ARIA link role
77
+ *
78
+ * @public
79
+ */
80
+ class DelegatesARIALink {
81
+ }
82
+ __decorate([
83
+ attr({ attribute: "aria-expanded" })
84
+ ], DelegatesARIALink.prototype, "ariaExpanded", void 0);
85
+ applyMixins(DelegatesARIALink, ARIAGlobalStatesAndProperties);
86
+ applyMixins(Anchor, StartEnd, DelegatesARIALink);
5
87
 
6
88
  var __defProp = Object.defineProperty;
7
89
  var __decorateClass = (decorators, target, key, kind) => {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 09 Oct 2024 14:15:03 GMT
3
+ * Generated on Thu, 10 Oct 2024 12:10:49 GMT
4
4
  */
5
5
  .vvd-root {
6
6
  color-scheme: var(--vvd-color-scheme);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 09 Oct 2024 14:15:03 GMT
3
+ * Generated on Thu, 10 Oct 2024 12:10:49 GMT
4
4
  */
5
5
  .vvd-root {
6
6
  color-scheme: var(--vvd-color-scheme);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 09 Oct 2024 14:15:03 GMT
3
+ * Generated on Thu, 10 Oct 2024 12:10:49 GMT
4
4
  */
5
5
  .vvd-root:root {
6
6
  --vvd-size-font-scale-base: 1rem;
@@ -1,18 +1,18 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 09 Oct 2024 14:15:03 GMT
3
+ * Generated on Thu, 10 Oct 2024 12:10:49 GMT
4
4
  */
5
5
  /**
6
6
  * Do not edit directly
7
- * Generated on Wed, 09 Oct 2024 14:15:03 GMT
7
+ * Generated on Thu, 10 Oct 2024 12:10:49 GMT
8
8
  */
9
9
  /**
10
10
  * Do not edit directly
11
- * Generated on Wed, 09 Oct 2024 14:15:03 GMT
11
+ * Generated on Thu, 10 Oct 2024 12:10:49 GMT
12
12
  */
13
13
  /**
14
14
  * Do not edit directly
15
- * Generated on Wed, 09 Oct 2024 14:15:03 GMT
15
+ * Generated on Thu, 10 Oct 2024 12:10:49 GMT
16
16
  */
17
17
  @property --vvd-size-density {
18
18
  syntax: "<integer>";
@@ -1,18 +1,18 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 09 Oct 2024 14:15:03 GMT
3
+ * Generated on Thu, 10 Oct 2024 12:10:49 GMT
4
4
  */
5
5
  /**
6
6
  * Do not edit directly
7
- * Generated on Wed, 09 Oct 2024 14:15:03 GMT
7
+ * Generated on Thu, 10 Oct 2024 12:10:49 GMT
8
8
  */
9
9
  /**
10
10
  * Do not edit directly
11
- * Generated on Wed, 09 Oct 2024 14:15:03 GMT
11
+ * Generated on Thu, 10 Oct 2024 12:10:49 GMT
12
12
  */
13
13
  /**
14
14
  * Do not edit directly
15
- * Generated on Wed, 09 Oct 2024 14:15:03 GMT
15
+ * Generated on Thu, 10 Oct 2024 12:10:49 GMT
16
16
  */
17
17
  @property --vvd-size-density {
18
18
  syntax: "<integer>";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 09 Oct 2024 14:15:03 GMT
3
+ * Generated on Thu, 10 Oct 2024 12:10:49 GMT
4
4
  */
5
5
  .vvd-root, ::part(vvd-root),
6
6
  .vvd-theme-alternate, ::part(vvd-theme-alternate) {
package/shared/anchor.cjs DELETED
@@ -1,90 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index.cjs');
4
- const applyMixins = require('./apply-mixins.cjs');
5
- const ariaGlobal = require('./aria-global.cjs');
6
- const startEnd = require('./start-end.cjs');
7
-
8
- /**
9
- * An Anchor Custom HTML Element.
10
- * Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element }.
11
- *
12
- * @slot start - Content which can be provided before the anchor content
13
- * @slot end - Content which can be provided after the anchor content
14
- * @slot - The default slot for anchor content
15
- * @csspart control - The anchor element
16
- * @csspart content - The element wrapping anchor content
17
- *
18
- * @public
19
- */
20
- class Anchor extends index.FoundationElement {
21
- constructor() {
22
- super(...arguments);
23
- /**
24
- * Overrides the focus call for where delegatesFocus is unsupported.
25
- * This check works for Chrome, Edge Chromium, FireFox, and Safari
26
- * Relevant PR on the Firefox browser: https://phabricator.services.mozilla.com/D123858
27
- */
28
- this.handleUnsupportedDelegatesFocus = () => {
29
- var _a;
30
- // Check to see if delegatesFocus is supported
31
- if (window.ShadowRoot &&
32
- !window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
33
- ((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
34
- this.focus = () => {
35
- var _a;
36
- (_a = this.control) === null || _a === void 0 ? void 0 : _a.focus();
37
- };
38
- }
39
- };
40
- }
41
- /**
42
- * @internal
43
- */
44
- connectedCallback() {
45
- super.connectedCallback();
46
- this.handleUnsupportedDelegatesFocus();
47
- }
48
- }
49
- index.__decorate([
50
- index.attr
51
- ], Anchor.prototype, "download", void 0);
52
- index.__decorate([
53
- index.attr
54
- ], Anchor.prototype, "href", void 0);
55
- index.__decorate([
56
- index.attr
57
- ], Anchor.prototype, "hreflang", void 0);
58
- index.__decorate([
59
- index.attr
60
- ], Anchor.prototype, "ping", void 0);
61
- index.__decorate([
62
- index.attr
63
- ], Anchor.prototype, "referrerpolicy", void 0);
64
- index.__decorate([
65
- index.attr
66
- ], Anchor.prototype, "rel", void 0);
67
- index.__decorate([
68
- index.attr
69
- ], Anchor.prototype, "target", void 0);
70
- index.__decorate([
71
- index.attr
72
- ], Anchor.prototype, "type", void 0);
73
- index.__decorate([
74
- index.observable
75
- ], Anchor.prototype, "defaultSlottedContent", void 0);
76
- /**
77
- * Includes ARIA states and properties relating to the ARIA link role
78
- *
79
- * @public
80
- */
81
- class DelegatesARIALink {
82
- }
83
- index.__decorate([
84
- index.attr({ attribute: "aria-expanded" })
85
- ], DelegatesARIALink.prototype, "ariaExpanded", void 0);
86
- applyMixins.applyMixins(DelegatesARIALink, ariaGlobal.ARIAGlobalStatesAndProperties);
87
- applyMixins.applyMixins(Anchor, startEnd.StartEnd, DelegatesARIALink);
88
-
89
- exports.Anchor = Anchor;
90
- exports.DelegatesARIALink = DelegatesARIALink;