@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.
package/shared/anchor.js DELETED
@@ -1,87 +0,0 @@
1
- import { F as FoundationElement, _ as __decorate, a as attr, o as observable } from './index.js';
2
- import { a as applyMixins } from './apply-mixins.js';
3
- import { A as ARIAGlobalStatesAndProperties } from './aria-global.js';
4
- import { S as StartEnd } from './start-end.js';
5
-
6
- /**
7
- * An Anchor Custom HTML Element.
8
- * Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element }.
9
- *
10
- * @slot start - Content which can be provided before the anchor content
11
- * @slot end - Content which can be provided after the anchor content
12
- * @slot - The default slot for anchor content
13
- * @csspart control - The anchor element
14
- * @csspart content - The element wrapping anchor content
15
- *
16
- * @public
17
- */
18
- class Anchor extends FoundationElement {
19
- constructor() {
20
- super(...arguments);
21
- /**
22
- * Overrides the focus call for where delegatesFocus is unsupported.
23
- * This check works for Chrome, Edge Chromium, FireFox, and Safari
24
- * Relevant PR on the Firefox browser: https://phabricator.services.mozilla.com/D123858
25
- */
26
- this.handleUnsupportedDelegatesFocus = () => {
27
- var _a;
28
- // Check to see if delegatesFocus is supported
29
- if (window.ShadowRoot &&
30
- !window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
31
- ((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
32
- this.focus = () => {
33
- var _a;
34
- (_a = this.control) === null || _a === void 0 ? void 0 : _a.focus();
35
- };
36
- }
37
- };
38
- }
39
- /**
40
- * @internal
41
- */
42
- connectedCallback() {
43
- super.connectedCallback();
44
- this.handleUnsupportedDelegatesFocus();
45
- }
46
- }
47
- __decorate([
48
- attr
49
- ], Anchor.prototype, "download", void 0);
50
- __decorate([
51
- attr
52
- ], Anchor.prototype, "href", void 0);
53
- __decorate([
54
- attr
55
- ], Anchor.prototype, "hreflang", void 0);
56
- __decorate([
57
- attr
58
- ], Anchor.prototype, "ping", void 0);
59
- __decorate([
60
- attr
61
- ], Anchor.prototype, "referrerpolicy", void 0);
62
- __decorate([
63
- attr
64
- ], Anchor.prototype, "rel", void 0);
65
- __decorate([
66
- attr
67
- ], Anchor.prototype, "target", void 0);
68
- __decorate([
69
- attr
70
- ], Anchor.prototype, "type", void 0);
71
- __decorate([
72
- observable
73
- ], Anchor.prototype, "defaultSlottedContent", void 0);
74
- /**
75
- * Includes ARIA states and properties relating to the ARIA link role
76
- *
77
- * @public
78
- */
79
- class DelegatesARIALink {
80
- }
81
- __decorate([
82
- attr({ attribute: "aria-expanded" })
83
- ], DelegatesARIALink.prototype, "ariaExpanded", void 0);
84
- applyMixins(DelegatesARIALink, ARIAGlobalStatesAndProperties);
85
- applyMixins(Anchor, StartEnd, DelegatesARIALink);
86
-
87
- export { Anchor as A, DelegatesARIALink as D };