@vonage/vivid 3.0.0-next.43 → 3.0.0-next.44
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/package.json +1 -1
- package/popup/index.js +13 -11
- package/progress-ring/index.js +1 -1
package/package.json
CHANGED
package/popup/index.js
CHANGED
|
@@ -1944,27 +1944,35 @@ class Popup extends FoundationElement {
|
|
|
1944
1944
|
this.arrow = false;
|
|
1945
1945
|
this.alternate = false;
|
|
1946
1946
|
this.placement = 'left';
|
|
1947
|
+
|
|
1948
|
+
_Popup_handleKeydown.set(this, event => {
|
|
1949
|
+
if (event.key === keyEscape) {
|
|
1950
|
+
this.open = false;
|
|
1951
|
+
}
|
|
1952
|
+
});
|
|
1947
1953
|
}
|
|
1948
1954
|
|
|
1949
1955
|
disconnectedCallback() {
|
|
1950
1956
|
var _a, _b;
|
|
1951
1957
|
|
|
1952
1958
|
super.disconnectedCallback();
|
|
1953
|
-
(_a = __classPrivateFieldGet(this, _Popup_anchorEl, "f")) === null || _a === void 0 ? void 0 : _a.removeEventListener('keydown',
|
|
1959
|
+
(_a = __classPrivateFieldGet(this, _Popup_anchorEl, "f")) === null || _a === void 0 ? void 0 : _a.removeEventListener('keydown', __classPrivateFieldGet(this, _Popup_handleKeydown, "f"));
|
|
1954
1960
|
(_b = __classPrivateFieldGet(this, _Popup_cleanup, "f")) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
1955
1961
|
}
|
|
1956
1962
|
|
|
1957
1963
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
1958
|
-
var _a, _b;
|
|
1964
|
+
var _a, _b, _c;
|
|
1959
1965
|
|
|
1960
1966
|
super.attributeChangedCallback(name, oldValue, newValue);
|
|
1961
1967
|
|
|
1962
1968
|
switch (name) {
|
|
1963
1969
|
case 'anchor':
|
|
1964
1970
|
{
|
|
1971
|
+
(_a = __classPrivateFieldGet(this, _Popup_anchorEl, "f")) === null || _a === void 0 ? void 0 : _a.removeEventListener('keydown', __classPrivateFieldGet(this, _Popup_handleKeydown, "f"));
|
|
1972
|
+
|
|
1965
1973
|
__classPrivateFieldSet(this, _Popup_anchorEl, __classPrivateFieldGet(this, _Popup_instances, "m", _Popup_getAnchorById).call(this), "f");
|
|
1966
1974
|
|
|
1967
|
-
(
|
|
1975
|
+
(_b = __classPrivateFieldGet(this, _Popup_anchorEl, "f")) === null || _b === void 0 ? void 0 : _b.addEventListener('keydown', __classPrivateFieldGet(this, _Popup_handleKeydown, "f"));
|
|
1968
1976
|
break;
|
|
1969
1977
|
}
|
|
1970
1978
|
}
|
|
@@ -1972,7 +1980,7 @@ class Popup extends FoundationElement {
|
|
|
1972
1980
|
if (__classPrivateFieldGet(this, _Popup_anchorEl, "f") && this.popupEl) {
|
|
1973
1981
|
__classPrivateFieldSet(this, _Popup_cleanup, autoUpdate(__classPrivateFieldGet(this, _Popup_anchorEl, "f"), this.popupEl, () => this.updatePosition()), "f");
|
|
1974
1982
|
} else {
|
|
1975
|
-
(
|
|
1983
|
+
(_c = __classPrivateFieldGet(this, _Popup_cleanup, "f")) === null || _c === void 0 ? void 0 : _c.call(this);
|
|
1976
1984
|
}
|
|
1977
1985
|
}
|
|
1978
1986
|
|
|
@@ -1995,7 +2003,7 @@ class Popup extends FoundationElement {
|
|
|
1995
2003
|
}
|
|
1996
2004
|
|
|
1997
2005
|
}
|
|
1998
|
-
_Popup_cleanup = new WeakMap(), _Popup_anchorEl = new WeakMap(), _Popup_instances = new WeakSet(), _Popup_arrowPosition_get = function _Popup_arrowPosition_get() {
|
|
2006
|
+
_Popup_cleanup = new WeakMap(), _Popup_anchorEl = new WeakMap(), _Popup_handleKeydown = new WeakMap(), _Popup_instances = new WeakSet(), _Popup_arrowPosition_get = function _Popup_arrowPosition_get() {
|
|
1999
2007
|
return {
|
|
2000
2008
|
top: 'bottom',
|
|
2001
2009
|
right: 'left',
|
|
@@ -2049,12 +2057,6 @@ _Popup_cleanup = new WeakMap(), _Popup_anchorEl = new WeakMap(), _Popup_instance
|
|
|
2049
2057
|
});
|
|
2050
2058
|
}, _Popup_getAnchorById = function _Popup_getAnchorById() {
|
|
2051
2059
|
return document.getElementById(this.anchor);
|
|
2052
|
-
}, _Popup_handleKeydown = function _Popup_handleKeydown({
|
|
2053
|
-
key
|
|
2054
|
-
}) {
|
|
2055
|
-
if (key === keyEscape) {
|
|
2056
|
-
this.open = false;
|
|
2057
|
-
}
|
|
2058
2060
|
};
|
|
2059
2061
|
|
|
2060
2062
|
__decorate([attr({
|
package/progress-ring/index.js
CHANGED
|
@@ -22,7 +22,7 @@ const getClasses = ({
|
|
|
22
22
|
connotation,
|
|
23
23
|
density,
|
|
24
24
|
paused
|
|
25
|
-
}) => classNames('base', ['disabled', !!paused], [`connotation-${connotation}`, !!connotation], [`density-${(density ? Number(density) : 0) +
|
|
25
|
+
}) => classNames('base', ['disabled', !!paused], [`connotation-${connotation}`, !!connotation], [`density-${(density ? Number(density) : 0) + 10}`, !!density]);
|
|
26
26
|
|
|
27
27
|
const progressSegments = 44;
|
|
28
28
|
const ProgressRingTemplate = _ => html(_t || (_t = _2`
|