@dialpad/dialtone-vue 3.36.0 → 3.37.0-beta.1

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.
@@ -1576,9 +1576,11 @@ var content = __webpack_require__(485);
1576
1576
  if(content.__esModule) content = content.default;
1577
1577
  if(typeof content === 'string') content = [[module.id, content, '']];
1578
1578
  if(content.locals) module.exports = content.locals;
1579
- // add the styles to the DOM
1580
- var add = (__webpack_require__(402)/* ["default"] */ .Z)
1581
- var update = add("d75292b8", content, true, {"sourceMap":false,"shadowMode":false});
1579
+ // add CSS to Shadow Root
1580
+ var add = (__webpack_require__(339)/* ["default"] */ .Z)
1581
+ module.exports.__inject__ = function (shadowRoot) {
1582
+ add("d75292b8", content, shadowRoot)
1583
+ };
1582
1584
 
1583
1585
  /***/ }),
1584
1586
 
@@ -1592,9 +1594,11 @@ var content = __webpack_require__(316);
1592
1594
  if(content.__esModule) content = content.default;
1593
1595
  if(typeof content === 'string') content = [[module.id, content, '']];
1594
1596
  if(content.locals) module.exports = content.locals;
1595
- // add the styles to the DOM
1596
- var add = (__webpack_require__(402)/* ["default"] */ .Z)
1597
- var update = add("04be0210", content, true, {"sourceMap":false,"shadowMode":false});
1597
+ // add CSS to Shadow Root
1598
+ var add = (__webpack_require__(339)/* ["default"] */ .Z)
1599
+ module.exports.__inject__ = function (shadowRoot) {
1600
+ add("04be0210", content, shadowRoot)
1601
+ };
1598
1602
 
1599
1603
  /***/ }),
1600
1604
 
@@ -1608,9 +1612,11 @@ var content = __webpack_require__(6);
1608
1612
  if(content.__esModule) content = content.default;
1609
1613
  if(typeof content === 'string') content = [[module.id, content, '']];
1610
1614
  if(content.locals) module.exports = content.locals;
1611
- // add the styles to the DOM
1612
- var add = (__webpack_require__(402)/* ["default"] */ .Z)
1613
- var update = add("10ff860c", content, true, {"sourceMap":false,"shadowMode":false});
1615
+ // add CSS to Shadow Root
1616
+ var add = (__webpack_require__(339)/* ["default"] */ .Z)
1617
+ module.exports.__inject__ = function (shadowRoot) {
1618
+ add("10ff860c", content, shadowRoot)
1619
+ };
1614
1620
 
1615
1621
  /***/ }),
1616
1622
 
@@ -1624,9 +1630,11 @@ var content = __webpack_require__(833);
1624
1630
  if(content.__esModule) content = content.default;
1625
1631
  if(typeof content === 'string') content = [[module.id, content, '']];
1626
1632
  if(content.locals) module.exports = content.locals;
1627
- // add the styles to the DOM
1628
- var add = (__webpack_require__(402)/* ["default"] */ .Z)
1629
- var update = add("2f25b31b", content, true, {"sourceMap":false,"shadowMode":false});
1633
+ // add CSS to Shadow Root
1634
+ var add = (__webpack_require__(339)/* ["default"] */ .Z)
1635
+ module.exports.__inject__ = function (shadowRoot) {
1636
+ add("2f25b31b", content, shadowRoot)
1637
+ };
1630
1638
 
1631
1639
  /***/ }),
1632
1640
 
@@ -1640,9 +1648,11 @@ var content = __webpack_require__(394);
1640
1648
  if(content.__esModule) content = content.default;
1641
1649
  if(typeof content === 'string') content = [[module.id, content, '']];
1642
1650
  if(content.locals) module.exports = content.locals;
1643
- // add the styles to the DOM
1644
- var add = (__webpack_require__(402)/* ["default"] */ .Z)
1645
- var update = add("0aefa44c", content, true, {"sourceMap":false,"shadowMode":false});
1651
+ // add CSS to Shadow Root
1652
+ var add = (__webpack_require__(339)/* ["default"] */ .Z)
1653
+ module.exports.__inject__ = function (shadowRoot) {
1654
+ add("0aefa44c", content, shadowRoot)
1655
+ };
1646
1656
 
1647
1657
  /***/ }),
1648
1658
 
@@ -1656,9 +1666,11 @@ var content = __webpack_require__(703);
1656
1666
  if(content.__esModule) content = content.default;
1657
1667
  if(typeof content === 'string') content = [[module.id, content, '']];
1658
1668
  if(content.locals) module.exports = content.locals;
1659
- // add the styles to the DOM
1660
- var add = (__webpack_require__(402)/* ["default"] */ .Z)
1661
- var update = add("946fba9c", content, true, {"sourceMap":false,"shadowMode":false});
1669
+ // add CSS to Shadow Root
1670
+ var add = (__webpack_require__(339)/* ["default"] */ .Z)
1671
+ module.exports.__inject__ = function (shadowRoot) {
1672
+ add("946fba9c", content, shadowRoot)
1673
+ };
1662
1674
 
1663
1675
  /***/ }),
1664
1676
 
@@ -1672,9 +1684,11 @@ var content = __webpack_require__(731);
1672
1684
  if(content.__esModule) content = content.default;
1673
1685
  if(typeof content === 'string') content = [[module.id, content, '']];
1674
1686
  if(content.locals) module.exports = content.locals;
1675
- // add the styles to the DOM
1676
- var add = (__webpack_require__(402)/* ["default"] */ .Z)
1677
- var update = add("6b5ec190", content, true, {"sourceMap":false,"shadowMode":false});
1687
+ // add CSS to Shadow Root
1688
+ var add = (__webpack_require__(339)/* ["default"] */ .Z)
1689
+ module.exports.__inject__ = function (shadowRoot) {
1690
+ add("6b5ec190", content, shadowRoot)
1691
+ };
1678
1692
 
1679
1693
  /***/ }),
1680
1694
 
@@ -1688,9 +1702,11 @@ var content = __webpack_require__(504);
1688
1702
  if(content.__esModule) content = content.default;
1689
1703
  if(typeof content === 'string') content = [[module.id, content, '']];
1690
1704
  if(content.locals) module.exports = content.locals;
1691
- // add the styles to the DOM
1692
- var add = (__webpack_require__(402)/* ["default"] */ .Z)
1693
- var update = add("2b02cf58", content, true, {"sourceMap":false,"shadowMode":false});
1705
+ // add CSS to Shadow Root
1706
+ var add = (__webpack_require__(339)/* ["default"] */ .Z)
1707
+ module.exports.__inject__ = function (shadowRoot) {
1708
+ add("2b02cf58", content, shadowRoot)
1709
+ };
1694
1710
 
1695
1711
  /***/ }),
1696
1712
 
@@ -1704,9 +1720,11 @@ var content = __webpack_require__(752);
1704
1720
  if(content.__esModule) content = content.default;
1705
1721
  if(typeof content === 'string') content = [[module.id, content, '']];
1706
1722
  if(content.locals) module.exports = content.locals;
1707
- // add the styles to the DOM
1708
- var add = (__webpack_require__(402)/* ["default"] */ .Z)
1709
- var update = add("2105810a", content, true, {"sourceMap":false,"shadowMode":false});
1723
+ // add CSS to Shadow Root
1724
+ var add = (__webpack_require__(339)/* ["default"] */ .Z)
1725
+ module.exports.__inject__ = function (shadowRoot) {
1726
+ add("2105810a", content, shadowRoot)
1727
+ };
1710
1728
 
1711
1729
  /***/ }),
1712
1730
 
@@ -1720,9 +1738,11 @@ var content = __webpack_require__(93);
1720
1738
  if(content.__esModule) content = content.default;
1721
1739
  if(typeof content === 'string') content = [[module.id, content, '']];
1722
1740
  if(content.locals) module.exports = content.locals;
1723
- // add the styles to the DOM
1724
- var add = (__webpack_require__(402)/* ["default"] */ .Z)
1725
- var update = add("3a6931c8", content, true, {"sourceMap":false,"shadowMode":false});
1741
+ // add CSS to Shadow Root
1742
+ var add = (__webpack_require__(339)/* ["default"] */ .Z)
1743
+ module.exports.__inject__ = function (shadowRoot) {
1744
+ add("3a6931c8", content, shadowRoot)
1745
+ };
1726
1746
 
1727
1747
  /***/ }),
1728
1748
 
@@ -1736,9 +1756,11 @@ var content = __webpack_require__(293);
1736
1756
  if(content.__esModule) content = content.default;
1737
1757
  if(typeof content === 'string') content = [[module.id, content, '']];
1738
1758
  if(content.locals) module.exports = content.locals;
1739
- // add the styles to the DOM
1740
- var add = (__webpack_require__(402)/* ["default"] */ .Z)
1741
- var update = add("00d09c39", content, true, {"sourceMap":false,"shadowMode":false});
1759
+ // add CSS to Shadow Root
1760
+ var add = (__webpack_require__(339)/* ["default"] */ .Z)
1761
+ module.exports.__inject__ = function (shadowRoot) {
1762
+ add("00d09c39", content, shadowRoot)
1763
+ };
1742
1764
 
1743
1765
  /***/ }),
1744
1766
 
@@ -1752,9 +1774,11 @@ var content = __webpack_require__(615);
1752
1774
  if(content.__esModule) content = content.default;
1753
1775
  if(typeof content === 'string') content = [[module.id, content, '']];
1754
1776
  if(content.locals) module.exports = content.locals;
1755
- // add the styles to the DOM
1756
- var add = (__webpack_require__(402)/* ["default"] */ .Z)
1757
- var update = add("69f5defa", content, true, {"sourceMap":false,"shadowMode":false});
1777
+ // add CSS to Shadow Root
1778
+ var add = (__webpack_require__(339)/* ["default"] */ .Z)
1779
+ module.exports.__inject__ = function (shadowRoot) {
1780
+ add("69f5defa", content, shadowRoot)
1781
+ };
1758
1782
 
1759
1783
  /***/ }),
1760
1784
 
@@ -1768,9 +1792,11 @@ var content = __webpack_require__(173);
1768
1792
  if(content.__esModule) content = content.default;
1769
1793
  if(typeof content === 'string') content = [[module.id, content, '']];
1770
1794
  if(content.locals) module.exports = content.locals;
1771
- // add the styles to the DOM
1772
- var add = (__webpack_require__(402)/* ["default"] */ .Z)
1773
- var update = add("1940697a", content, true, {"sourceMap":false,"shadowMode":false});
1795
+ // add CSS to Shadow Root
1796
+ var add = (__webpack_require__(339)/* ["default"] */ .Z)
1797
+ module.exports.__inject__ = function (shadowRoot) {
1798
+ add("1940697a", content, shadowRoot)
1799
+ };
1774
1800
 
1775
1801
  /***/ }),
1776
1802
 
@@ -1784,9 +1810,11 @@ var content = __webpack_require__(99);
1784
1810
  if(content.__esModule) content = content.default;
1785
1811
  if(typeof content === 'string') content = [[module.id, content, '']];
1786
1812
  if(content.locals) module.exports = content.locals;
1787
- // add the styles to the DOM
1788
- var add = (__webpack_require__(402)/* ["default"] */ .Z)
1789
- var update = add("3a4b387a", content, true, {"sourceMap":false,"shadowMode":false});
1813
+ // add CSS to Shadow Root
1814
+ var add = (__webpack_require__(339)/* ["default"] */ .Z)
1815
+ module.exports.__inject__ = function (shadowRoot) {
1816
+ add("3a4b387a", content, shadowRoot)
1817
+ };
1790
1818
 
1791
1819
  /***/ }),
1792
1820
 
@@ -1800,9 +1828,11 @@ var content = __webpack_require__(490);
1800
1828
  if(content.__esModule) content = content.default;
1801
1829
  if(typeof content === 'string') content = [[module.id, content, '']];
1802
1830
  if(content.locals) module.exports = content.locals;
1803
- // add the styles to the DOM
1804
- var add = (__webpack_require__(402)/* ["default"] */ .Z)
1805
- var update = add("45697d7e", content, true, {"sourceMap":false,"shadowMode":false});
1831
+ // add CSS to Shadow Root
1832
+ var add = (__webpack_require__(339)/* ["default"] */ .Z)
1833
+ module.exports.__inject__ = function (shadowRoot) {
1834
+ add("45697d7e", content, shadowRoot)
1835
+ };
1806
1836
 
1807
1837
  /***/ }),
1808
1838
 
@@ -1816,9 +1846,11 @@ var content = __webpack_require__(743);
1816
1846
  if(content.__esModule) content = content.default;
1817
1847
  if(typeof content === 'string') content = [[module.id, content, '']];
1818
1848
  if(content.locals) module.exports = content.locals;
1819
- // add the styles to the DOM
1820
- var add = (__webpack_require__(402)/* ["default"] */ .Z)
1821
- var update = add("2cc23047", content, true, {"sourceMap":false,"shadowMode":false});
1849
+ // add CSS to Shadow Root
1850
+ var add = (__webpack_require__(339)/* ["default"] */ .Z)
1851
+ module.exports.__inject__ = function (shadowRoot) {
1852
+ add("2cc23047", content, shadowRoot)
1853
+ };
1822
1854
 
1823
1855
  /***/ }),
1824
1856
 
@@ -1832,20 +1864,22 @@ var content = __webpack_require__(792);
1832
1864
  if(content.__esModule) content = content.default;
1833
1865
  if(typeof content === 'string') content = [[module.id, content, '']];
1834
1866
  if(content.locals) module.exports = content.locals;
1835
- // add the styles to the DOM
1836
- var add = (__webpack_require__(402)/* ["default"] */ .Z)
1837
- var update = add("06e0bc84", content, true, {"sourceMap":false,"shadowMode":false});
1867
+ // add CSS to Shadow Root
1868
+ var add = (__webpack_require__(339)/* ["default"] */ .Z)
1869
+ module.exports.__inject__ = function (shadowRoot) {
1870
+ add("06e0bc84", content, shadowRoot)
1871
+ };
1838
1872
 
1839
1873
  /***/ }),
1840
1874
 
1841
- /***/ 402:
1875
+ /***/ 339:
1842
1876
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1843
1877
 
1844
1878
  "use strict";
1845
1879
 
1846
1880
  // EXPORTS
1847
1881
  __webpack_require__.d(__webpack_exports__, {
1848
- "Z": () => (/* binding */ addStylesClient)
1882
+ "Z": () => (/* binding */ addStylesToShadowDOM)
1849
1883
  });
1850
1884
 
1851
1885
  ;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
@@ -1877,23 +1911,12 @@ function listToStyles (parentId, list) {
1877
1911
  return styles
1878
1912
  }
1879
1913
 
1880
- ;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesClient.js
1881
- /*
1882
- MIT License http://www.opensource.org/licenses/mit-license.php
1883
- Author Tobias Koppers @sokra
1884
- Modified by Evan You @yyx990803
1885
- */
1886
-
1887
-
1914
+ ;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesShadow.js
1888
1915
 
1889
- var hasDocument = typeof document !== 'undefined'
1890
1916
 
1891
- if (typeof DEBUG !== 'undefined' && DEBUG) {
1892
- if (!hasDocument) {
1893
- throw new Error(
1894
- 'vue-style-loader cannot be used in a non-browser environment. ' +
1895
- "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
1896
- ) }
1917
+ function addStylesToShadowDOM (parentId, list, shadowRoot) {
1918
+ var styles = listToStyles(parentId, list)
1919
+ addStyles(styles, shadowRoot)
1897
1920
  }
1898
1921
 
1899
1922
  /*
@@ -1909,169 +1932,31 @@ type StyleObjectPart = {
1909
1932
  }
1910
1933
  */
1911
1934
 
1912
- var stylesInDom = {/*
1913
- [id: number]: {
1914
- id: number,
1915
- refs: number,
1916
- parts: Array<(obj?: StyleObjectPart) => void>
1917
- }
1918
- */}
1919
-
1920
- var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
1921
- var singletonElement = null
1922
- var singletonCounter = 0
1923
- var isProduction = false
1924
- var noop = function () {}
1925
- var options = null
1926
- var ssrIdKey = 'data-vue-ssr-id'
1927
-
1928
- // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
1929
- // tags it will allow on a page
1930
- var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
1931
-
1932
- function addStylesClient (parentId, list, _isProduction, _options) {
1933
- isProduction = _isProduction
1934
-
1935
- options = _options || {}
1936
-
1937
- var styles = listToStyles(parentId, list)
1938
- addStylesToDom(styles)
1939
-
1940
- return function update (newList) {
1941
- var mayRemove = []
1942
- for (var i = 0; i < styles.length; i++) {
1943
- var item = styles[i]
1944
- var domStyle = stylesInDom[item.id]
1945
- domStyle.refs--
1946
- mayRemove.push(domStyle)
1947
- }
1948
- if (newList) {
1949
- styles = listToStyles(parentId, newList)
1950
- addStylesToDom(styles)
1951
- } else {
1952
- styles = []
1953
- }
1954
- for (var i = 0; i < mayRemove.length; i++) {
1955
- var domStyle = mayRemove[i]
1956
- if (domStyle.refs === 0) {
1957
- for (var j = 0; j < domStyle.parts.length; j++) {
1958
- domStyle.parts[j]()
1959
- }
1960
- delete stylesInDom[domStyle.id]
1961
- }
1962
- }
1963
- }
1964
- }
1965
-
1966
- function addStylesToDom (styles /* Array<StyleObject> */) {
1935
+ function addStyles (styles /* Array<StyleObject> */, shadowRoot) {
1936
+ const injectedStyles =
1937
+ shadowRoot._injectedStyles ||
1938
+ (shadowRoot._injectedStyles = {})
1967
1939
  for (var i = 0; i < styles.length; i++) {
1968
1940
  var item = styles[i]
1969
- var domStyle = stylesInDom[item.id]
1970
- if (domStyle) {
1971
- domStyle.refs++
1972
- for (var j = 0; j < domStyle.parts.length; j++) {
1973
- domStyle.parts[j](item.parts[j])
1974
- }
1975
- for (; j < item.parts.length; j++) {
1976
- domStyle.parts.push(addStyle(item.parts[j]))
1977
- }
1978
- if (domStyle.parts.length > item.parts.length) {
1979
- domStyle.parts.length = item.parts.length
1980
- }
1981
- } else {
1982
- var parts = []
1941
+ var style = injectedStyles[item.id]
1942
+ if (!style) {
1983
1943
  for (var j = 0; j < item.parts.length; j++) {
1984
- parts.push(addStyle(item.parts[j]))
1944
+ addStyle(item.parts[j], shadowRoot)
1985
1945
  }
1986
- stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
1946
+ injectedStyles[item.id] = true
1987
1947
  }
1988
1948
  }
1989
1949
  }
1990
1950
 
1991
- function createStyleElement () {
1951
+ function createStyleElement (shadowRoot) {
1992
1952
  var styleElement = document.createElement('style')
1993
1953
  styleElement.type = 'text/css'
1994
- head.appendChild(styleElement)
1954
+ shadowRoot.appendChild(styleElement)
1995
1955
  return styleElement
1996
1956
  }
1997
1957
 
1998
- function addStyle (obj /* StyleObjectPart */) {
1999
- var update, remove
2000
- var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')
2001
-
2002
- if (styleElement) {
2003
- if (isProduction) {
2004
- // has SSR styles and in production mode.
2005
- // simply do nothing.
2006
- return noop
2007
- } else {
2008
- // has SSR styles but in dev mode.
2009
- // for some reason Chrome can't handle source map in server-rendered
2010
- // style tags - source maps in <style> only works if the style tag is
2011
- // created and inserted dynamically. So we remove the server rendered
2012
- // styles and inject new ones.
2013
- styleElement.parentNode.removeChild(styleElement)
2014
- }
2015
- }
2016
-
2017
- if (isOldIE) {
2018
- // use singleton mode for IE9.
2019
- var styleIndex = singletonCounter++
2020
- styleElement = singletonElement || (singletonElement = createStyleElement())
2021
- update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
2022
- remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
2023
- } else {
2024
- // use multi-style-tag mode in all other cases
2025
- styleElement = createStyleElement()
2026
- update = applyToTag.bind(null, styleElement)
2027
- remove = function () {
2028
- styleElement.parentNode.removeChild(styleElement)
2029
- }
2030
- }
2031
-
2032
- update(obj)
2033
-
2034
- return function updateStyle (newObj /* StyleObjectPart */) {
2035
- if (newObj) {
2036
- if (newObj.css === obj.css &&
2037
- newObj.media === obj.media &&
2038
- newObj.sourceMap === obj.sourceMap) {
2039
- return
2040
- }
2041
- update(obj = newObj)
2042
- } else {
2043
- remove()
2044
- }
2045
- }
2046
- }
2047
-
2048
- var replaceText = (function () {
2049
- var textStore = []
2050
-
2051
- return function (index, replacement) {
2052
- textStore[index] = replacement
2053
- return textStore.filter(Boolean).join('\n')
2054
- }
2055
- })()
2056
-
2057
- function applyToSingletonTag (styleElement, index, remove, obj) {
2058
- var css = remove ? '' : obj.css
2059
-
2060
- if (styleElement.styleSheet) {
2061
- styleElement.styleSheet.cssText = replaceText(index, css)
2062
- } else {
2063
- var cssNode = document.createTextNode(css)
2064
- var childNodes = styleElement.childNodes
2065
- if (childNodes[index]) styleElement.removeChild(childNodes[index])
2066
- if (childNodes.length) {
2067
- styleElement.insertBefore(cssNode, childNodes[index])
2068
- } else {
2069
- styleElement.appendChild(cssNode)
2070
- }
2071
- }
2072
- }
2073
-
2074
- function applyToTag (styleElement, obj) {
1958
+ function addStyle (obj /* StyleObjectPart */, shadowRoot) {
1959
+ var styleElement = createStyleElement(shadowRoot)
2075
1960
  var css = obj.css
2076
1961
  var media = obj.media
2077
1962
  var sourceMap = obj.sourceMap
@@ -2079,9 +1964,6 @@ function applyToTag (styleElement, obj) {
2079
1964
  if (media) {
2080
1965
  styleElement.setAttribute('media', media)
2081
1966
  }
2082
- if (options.ssrId) {
2083
- styleElement.setAttribute(ssrIdKey, obj.id)
2084
- }
2085
1967
 
2086
1968
  if (sourceMap) {
2087
1969
  // https://developer.chrome.com/devtools/docs/javascript-debugging