@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.
- package/dist/dialtone-vue.common.js +103 -221
- package/dist/dialtone-vue.umd.js +103 -221
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/dist/emoji.common.js +23 -173
- package/dist/emoji.umd.js +23 -173
- package/dist/emoji.umd.min.js +1 -1
- package/package.json +1 -1
|
@@ -1566,9 +1566,11 @@ var content = __webpack_require__(951);
|
|
|
1566
1566
|
if(content.__esModule) content = content.default;
|
|
1567
1567
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1568
1568
|
if(content.locals) module.exports = content.locals;
|
|
1569
|
-
// add
|
|
1570
|
-
var add = (__webpack_require__(
|
|
1571
|
-
|
|
1569
|
+
// add CSS to Shadow Root
|
|
1570
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
1571
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
1572
|
+
add("e1cef0bc", content, shadowRoot)
|
|
1573
|
+
};
|
|
1572
1574
|
|
|
1573
1575
|
/***/ }),
|
|
1574
1576
|
|
|
@@ -1582,9 +1584,11 @@ var content = __webpack_require__(794);
|
|
|
1582
1584
|
if(content.__esModule) content = content.default;
|
|
1583
1585
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1584
1586
|
if(content.locals) module.exports = content.locals;
|
|
1585
|
-
// add
|
|
1586
|
-
var add = (__webpack_require__(
|
|
1587
|
-
|
|
1587
|
+
// add CSS to Shadow Root
|
|
1588
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
1589
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
1590
|
+
add("7b0d71b4", content, shadowRoot)
|
|
1591
|
+
};
|
|
1588
1592
|
|
|
1589
1593
|
/***/ }),
|
|
1590
1594
|
|
|
@@ -1598,9 +1602,11 @@ var content = __webpack_require__(869);
|
|
|
1598
1602
|
if(content.__esModule) content = content.default;
|
|
1599
1603
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1600
1604
|
if(content.locals) module.exports = content.locals;
|
|
1601
|
-
// add
|
|
1602
|
-
var add = (__webpack_require__(
|
|
1603
|
-
|
|
1605
|
+
// add CSS to Shadow Root
|
|
1606
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
1607
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
1608
|
+
add("5ed8c6c8", content, shadowRoot)
|
|
1609
|
+
};
|
|
1604
1610
|
|
|
1605
1611
|
/***/ }),
|
|
1606
1612
|
|
|
@@ -1614,9 +1620,11 @@ var content = __webpack_require__(515);
|
|
|
1614
1620
|
if(content.__esModule) content = content.default;
|
|
1615
1621
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1616
1622
|
if(content.locals) module.exports = content.locals;
|
|
1617
|
-
// add
|
|
1618
|
-
var add = (__webpack_require__(
|
|
1619
|
-
|
|
1623
|
+
// add CSS to Shadow Root
|
|
1624
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
1625
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
1626
|
+
add("4b0828d7", content, shadowRoot)
|
|
1627
|
+
};
|
|
1620
1628
|
|
|
1621
1629
|
/***/ }),
|
|
1622
1630
|
|
|
@@ -1630,9 +1638,11 @@ var content = __webpack_require__(317);
|
|
|
1630
1638
|
if(content.__esModule) content = content.default;
|
|
1631
1639
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1632
1640
|
if(content.locals) module.exports = content.locals;
|
|
1633
|
-
// add
|
|
1634
|
-
var add = (__webpack_require__(
|
|
1635
|
-
|
|
1641
|
+
// add CSS to Shadow Root
|
|
1642
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
1643
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
1644
|
+
add("eb4c37f0", content, shadowRoot)
|
|
1645
|
+
};
|
|
1636
1646
|
|
|
1637
1647
|
/***/ }),
|
|
1638
1648
|
|
|
@@ -1646,9 +1656,11 @@ var content = __webpack_require__(728);
|
|
|
1646
1656
|
if(content.__esModule) content = content.default;
|
|
1647
1657
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1648
1658
|
if(content.locals) module.exports = content.locals;
|
|
1649
|
-
// add
|
|
1650
|
-
var add = (__webpack_require__(
|
|
1651
|
-
|
|
1659
|
+
// add CSS to Shadow Root
|
|
1660
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
1661
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
1662
|
+
add("0c78fb76", content, shadowRoot)
|
|
1663
|
+
};
|
|
1652
1664
|
|
|
1653
1665
|
/***/ }),
|
|
1654
1666
|
|
|
@@ -1662,9 +1674,11 @@ var content = __webpack_require__(399);
|
|
|
1662
1674
|
if(content.__esModule) content = content.default;
|
|
1663
1675
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1664
1676
|
if(content.locals) module.exports = content.locals;
|
|
1665
|
-
// add
|
|
1666
|
-
var add = (__webpack_require__(
|
|
1667
|
-
|
|
1677
|
+
// add CSS to Shadow Root
|
|
1678
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
1679
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
1680
|
+
add("61c1a254", content, shadowRoot)
|
|
1681
|
+
};
|
|
1668
1682
|
|
|
1669
1683
|
/***/ }),
|
|
1670
1684
|
|
|
@@ -1678,9 +1692,11 @@ var content = __webpack_require__(265);
|
|
|
1678
1692
|
if(content.__esModule) content = content.default;
|
|
1679
1693
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1680
1694
|
if(content.locals) module.exports = content.locals;
|
|
1681
|
-
// add
|
|
1682
|
-
var add = (__webpack_require__(
|
|
1683
|
-
|
|
1695
|
+
// add CSS to Shadow Root
|
|
1696
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
1697
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
1698
|
+
add("4d925410", content, shadowRoot)
|
|
1699
|
+
};
|
|
1684
1700
|
|
|
1685
1701
|
/***/ }),
|
|
1686
1702
|
|
|
@@ -1694,9 +1710,11 @@ var content = __webpack_require__(273);
|
|
|
1694
1710
|
if(content.__esModule) content = content.default;
|
|
1695
1711
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1696
1712
|
if(content.locals) module.exports = content.locals;
|
|
1697
|
-
// add
|
|
1698
|
-
var add = (__webpack_require__(
|
|
1699
|
-
|
|
1713
|
+
// add CSS to Shadow Root
|
|
1714
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
1715
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
1716
|
+
add("5f7d7664", content, shadowRoot)
|
|
1717
|
+
};
|
|
1700
1718
|
|
|
1701
1719
|
/***/ }),
|
|
1702
1720
|
|
|
@@ -1710,9 +1728,11 @@ var content = __webpack_require__(298);
|
|
|
1710
1728
|
if(content.__esModule) content = content.default;
|
|
1711
1729
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1712
1730
|
if(content.locals) module.exports = content.locals;
|
|
1713
|
-
// add
|
|
1714
|
-
var add = (__webpack_require__(
|
|
1715
|
-
|
|
1731
|
+
// add CSS to Shadow Root
|
|
1732
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
1733
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
1734
|
+
add("0868b640", content, shadowRoot)
|
|
1735
|
+
};
|
|
1716
1736
|
|
|
1717
1737
|
/***/ }),
|
|
1718
1738
|
|
|
@@ -1726,9 +1746,11 @@ var content = __webpack_require__(691);
|
|
|
1726
1746
|
if(content.__esModule) content = content.default;
|
|
1727
1747
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1728
1748
|
if(content.locals) module.exports = content.locals;
|
|
1729
|
-
// add
|
|
1730
|
-
var add = (__webpack_require__(
|
|
1731
|
-
|
|
1749
|
+
// add CSS to Shadow Root
|
|
1750
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
1751
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
1752
|
+
add("578174fd", content, shadowRoot)
|
|
1753
|
+
};
|
|
1732
1754
|
|
|
1733
1755
|
/***/ }),
|
|
1734
1756
|
|
|
@@ -1742,9 +1764,11 @@ var content = __webpack_require__(141);
|
|
|
1742
1764
|
if(content.__esModule) content = content.default;
|
|
1743
1765
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1744
1766
|
if(content.locals) module.exports = content.locals;
|
|
1745
|
-
// add
|
|
1746
|
-
var add = (__webpack_require__(
|
|
1747
|
-
|
|
1767
|
+
// add CSS to Shadow Root
|
|
1768
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
1769
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
1770
|
+
add("3230f382", content, shadowRoot)
|
|
1771
|
+
};
|
|
1748
1772
|
|
|
1749
1773
|
/***/ }),
|
|
1750
1774
|
|
|
@@ -1758,9 +1782,11 @@ var content = __webpack_require__(6);
|
|
|
1758
1782
|
if(content.__esModule) content = content.default;
|
|
1759
1783
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1760
1784
|
if(content.locals) module.exports = content.locals;
|
|
1761
|
-
// add
|
|
1762
|
-
var add = (__webpack_require__(
|
|
1763
|
-
|
|
1785
|
+
// add CSS to Shadow Root
|
|
1786
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
1787
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
1788
|
+
add("6f07a584", content, shadowRoot)
|
|
1789
|
+
};
|
|
1764
1790
|
|
|
1765
1791
|
/***/ }),
|
|
1766
1792
|
|
|
@@ -1774,9 +1800,11 @@ var content = __webpack_require__(647);
|
|
|
1774
1800
|
if(content.__esModule) content = content.default;
|
|
1775
1801
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1776
1802
|
if(content.locals) module.exports = content.locals;
|
|
1777
|
-
// add
|
|
1778
|
-
var add = (__webpack_require__(
|
|
1779
|
-
|
|
1803
|
+
// add CSS to Shadow Root
|
|
1804
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
1805
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
1806
|
+
add("4994410c", content, shadowRoot)
|
|
1807
|
+
};
|
|
1780
1808
|
|
|
1781
1809
|
/***/ }),
|
|
1782
1810
|
|
|
@@ -1790,9 +1818,11 @@ var content = __webpack_require__(297);
|
|
|
1790
1818
|
if(content.__esModule) content = content.default;
|
|
1791
1819
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1792
1820
|
if(content.locals) module.exports = content.locals;
|
|
1793
|
-
// add
|
|
1794
|
-
var add = (__webpack_require__(
|
|
1795
|
-
|
|
1821
|
+
// add CSS to Shadow Root
|
|
1822
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
1823
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
1824
|
+
add("1d7a8b7e", content, shadowRoot)
|
|
1825
|
+
};
|
|
1796
1826
|
|
|
1797
1827
|
/***/ }),
|
|
1798
1828
|
|
|
@@ -1806,9 +1836,11 @@ var content = __webpack_require__(568);
|
|
|
1806
1836
|
if(content.__esModule) content = content.default;
|
|
1807
1837
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1808
1838
|
if(content.locals) module.exports = content.locals;
|
|
1809
|
-
// add
|
|
1810
|
-
var add = (__webpack_require__(
|
|
1811
|
-
|
|
1839
|
+
// add CSS to Shadow Root
|
|
1840
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
1841
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
1842
|
+
add("6a465747", content, shadowRoot)
|
|
1843
|
+
};
|
|
1812
1844
|
|
|
1813
1845
|
/***/ }),
|
|
1814
1846
|
|
|
@@ -1822,20 +1854,22 @@ var content = __webpack_require__(406);
|
|
|
1822
1854
|
if(content.__esModule) content = content.default;
|
|
1823
1855
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1824
1856
|
if(content.locals) module.exports = content.locals;
|
|
1825
|
-
// add
|
|
1826
|
-
var add = (__webpack_require__(
|
|
1827
|
-
|
|
1857
|
+
// add CSS to Shadow Root
|
|
1858
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
1859
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
1860
|
+
add("074f9abe", content, shadowRoot)
|
|
1861
|
+
};
|
|
1828
1862
|
|
|
1829
1863
|
/***/ }),
|
|
1830
1864
|
|
|
1831
|
-
/***/
|
|
1865
|
+
/***/ 339:
|
|
1832
1866
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1833
1867
|
|
|
1834
1868
|
"use strict";
|
|
1835
1869
|
|
|
1836
1870
|
// EXPORTS
|
|
1837
1871
|
__webpack_require__.d(__webpack_exports__, {
|
|
1838
|
-
"Z": () => (/* binding */
|
|
1872
|
+
"Z": () => (/* binding */ addStylesToShadowDOM)
|
|
1839
1873
|
});
|
|
1840
1874
|
|
|
1841
1875
|
;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
|
|
@@ -1867,23 +1901,12 @@ function listToStyles (parentId, list) {
|
|
|
1867
1901
|
return styles
|
|
1868
1902
|
}
|
|
1869
1903
|
|
|
1870
|
-
;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/
|
|
1871
|
-
/*
|
|
1872
|
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
1873
|
-
Author Tobias Koppers @sokra
|
|
1874
|
-
Modified by Evan You @yyx990803
|
|
1875
|
-
*/
|
|
1876
|
-
|
|
1877
|
-
|
|
1904
|
+
;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesShadow.js
|
|
1878
1905
|
|
|
1879
|
-
var hasDocument = typeof document !== 'undefined'
|
|
1880
1906
|
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
'vue-style-loader cannot be used in a non-browser environment. ' +
|
|
1885
|
-
"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
|
|
1886
|
-
) }
|
|
1907
|
+
function addStylesToShadowDOM (parentId, list, shadowRoot) {
|
|
1908
|
+
var styles = listToStyles(parentId, list)
|
|
1909
|
+
addStyles(styles, shadowRoot)
|
|
1887
1910
|
}
|
|
1888
1911
|
|
|
1889
1912
|
/*
|
|
@@ -1899,169 +1922,31 @@ type StyleObjectPart = {
|
|
|
1899
1922
|
}
|
|
1900
1923
|
*/
|
|
1901
1924
|
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
parts: Array<(obj?: StyleObjectPart) => void>
|
|
1907
|
-
}
|
|
1908
|
-
*/}
|
|
1909
|
-
|
|
1910
|
-
var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
|
|
1911
|
-
var singletonElement = null
|
|
1912
|
-
var singletonCounter = 0
|
|
1913
|
-
var isProduction = false
|
|
1914
|
-
var noop = function () {}
|
|
1915
|
-
var options = null
|
|
1916
|
-
var ssrIdKey = 'data-vue-ssr-id'
|
|
1917
|
-
|
|
1918
|
-
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
|
1919
|
-
// tags it will allow on a page
|
|
1920
|
-
var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
|
|
1921
|
-
|
|
1922
|
-
function addStylesClient (parentId, list, _isProduction, _options) {
|
|
1923
|
-
isProduction = _isProduction
|
|
1924
|
-
|
|
1925
|
-
options = _options || {}
|
|
1926
|
-
|
|
1927
|
-
var styles = listToStyles(parentId, list)
|
|
1928
|
-
addStylesToDom(styles)
|
|
1929
|
-
|
|
1930
|
-
return function update (newList) {
|
|
1931
|
-
var mayRemove = []
|
|
1932
|
-
for (var i = 0; i < styles.length; i++) {
|
|
1933
|
-
var item = styles[i]
|
|
1934
|
-
var domStyle = stylesInDom[item.id]
|
|
1935
|
-
domStyle.refs--
|
|
1936
|
-
mayRemove.push(domStyle)
|
|
1937
|
-
}
|
|
1938
|
-
if (newList) {
|
|
1939
|
-
styles = listToStyles(parentId, newList)
|
|
1940
|
-
addStylesToDom(styles)
|
|
1941
|
-
} else {
|
|
1942
|
-
styles = []
|
|
1943
|
-
}
|
|
1944
|
-
for (var i = 0; i < mayRemove.length; i++) {
|
|
1945
|
-
var domStyle = mayRemove[i]
|
|
1946
|
-
if (domStyle.refs === 0) {
|
|
1947
|
-
for (var j = 0; j < domStyle.parts.length; j++) {
|
|
1948
|
-
domStyle.parts[j]()
|
|
1949
|
-
}
|
|
1950
|
-
delete stylesInDom[domStyle.id]
|
|
1951
|
-
}
|
|
1952
|
-
}
|
|
1953
|
-
}
|
|
1954
|
-
}
|
|
1955
|
-
|
|
1956
|
-
function addStylesToDom (styles /* Array<StyleObject> */) {
|
|
1925
|
+
function addStyles (styles /* Array<StyleObject> */, shadowRoot) {
|
|
1926
|
+
const injectedStyles =
|
|
1927
|
+
shadowRoot._injectedStyles ||
|
|
1928
|
+
(shadowRoot._injectedStyles = {})
|
|
1957
1929
|
for (var i = 0; i < styles.length; i++) {
|
|
1958
1930
|
var item = styles[i]
|
|
1959
|
-
var
|
|
1960
|
-
if (
|
|
1961
|
-
domStyle.refs++
|
|
1962
|
-
for (var j = 0; j < domStyle.parts.length; j++) {
|
|
1963
|
-
domStyle.parts[j](item.parts[j])
|
|
1964
|
-
}
|
|
1965
|
-
for (; j < item.parts.length; j++) {
|
|
1966
|
-
domStyle.parts.push(addStyle(item.parts[j]))
|
|
1967
|
-
}
|
|
1968
|
-
if (domStyle.parts.length > item.parts.length) {
|
|
1969
|
-
domStyle.parts.length = item.parts.length
|
|
1970
|
-
}
|
|
1971
|
-
} else {
|
|
1972
|
-
var parts = []
|
|
1931
|
+
var style = injectedStyles[item.id]
|
|
1932
|
+
if (!style) {
|
|
1973
1933
|
for (var j = 0; j < item.parts.length; j++) {
|
|
1974
|
-
|
|
1934
|
+
addStyle(item.parts[j], shadowRoot)
|
|
1975
1935
|
}
|
|
1976
|
-
|
|
1936
|
+
injectedStyles[item.id] = true
|
|
1977
1937
|
}
|
|
1978
1938
|
}
|
|
1979
1939
|
}
|
|
1980
1940
|
|
|
1981
|
-
function createStyleElement () {
|
|
1941
|
+
function createStyleElement (shadowRoot) {
|
|
1982
1942
|
var styleElement = document.createElement('style')
|
|
1983
1943
|
styleElement.type = 'text/css'
|
|
1984
|
-
|
|
1944
|
+
shadowRoot.appendChild(styleElement)
|
|
1985
1945
|
return styleElement
|
|
1986
1946
|
}
|
|
1987
1947
|
|
|
1988
|
-
function addStyle (obj /* StyleObjectPart
|
|
1989
|
-
var
|
|
1990
|
-
var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')
|
|
1991
|
-
|
|
1992
|
-
if (styleElement) {
|
|
1993
|
-
if (isProduction) {
|
|
1994
|
-
// has SSR styles and in production mode.
|
|
1995
|
-
// simply do nothing.
|
|
1996
|
-
return noop
|
|
1997
|
-
} else {
|
|
1998
|
-
// has SSR styles but in dev mode.
|
|
1999
|
-
// for some reason Chrome can't handle source map in server-rendered
|
|
2000
|
-
// style tags - source maps in <style> only works if the style tag is
|
|
2001
|
-
// created and inserted dynamically. So we remove the server rendered
|
|
2002
|
-
// styles and inject new ones.
|
|
2003
|
-
styleElement.parentNode.removeChild(styleElement)
|
|
2004
|
-
}
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
|
-
if (isOldIE) {
|
|
2008
|
-
// use singleton mode for IE9.
|
|
2009
|
-
var styleIndex = singletonCounter++
|
|
2010
|
-
styleElement = singletonElement || (singletonElement = createStyleElement())
|
|
2011
|
-
update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
|
|
2012
|
-
remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
|
|
2013
|
-
} else {
|
|
2014
|
-
// use multi-style-tag mode in all other cases
|
|
2015
|
-
styleElement = createStyleElement()
|
|
2016
|
-
update = applyToTag.bind(null, styleElement)
|
|
2017
|
-
remove = function () {
|
|
2018
|
-
styleElement.parentNode.removeChild(styleElement)
|
|
2019
|
-
}
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
update(obj)
|
|
2023
|
-
|
|
2024
|
-
return function updateStyle (newObj /* StyleObjectPart */) {
|
|
2025
|
-
if (newObj) {
|
|
2026
|
-
if (newObj.css === obj.css &&
|
|
2027
|
-
newObj.media === obj.media &&
|
|
2028
|
-
newObj.sourceMap === obj.sourceMap) {
|
|
2029
|
-
return
|
|
2030
|
-
}
|
|
2031
|
-
update(obj = newObj)
|
|
2032
|
-
} else {
|
|
2033
|
-
remove()
|
|
2034
|
-
}
|
|
2035
|
-
}
|
|
2036
|
-
}
|
|
2037
|
-
|
|
2038
|
-
var replaceText = (function () {
|
|
2039
|
-
var textStore = []
|
|
2040
|
-
|
|
2041
|
-
return function (index, replacement) {
|
|
2042
|
-
textStore[index] = replacement
|
|
2043
|
-
return textStore.filter(Boolean).join('\n')
|
|
2044
|
-
}
|
|
2045
|
-
})()
|
|
2046
|
-
|
|
2047
|
-
function applyToSingletonTag (styleElement, index, remove, obj) {
|
|
2048
|
-
var css = remove ? '' : obj.css
|
|
2049
|
-
|
|
2050
|
-
if (styleElement.styleSheet) {
|
|
2051
|
-
styleElement.styleSheet.cssText = replaceText(index, css)
|
|
2052
|
-
} else {
|
|
2053
|
-
var cssNode = document.createTextNode(css)
|
|
2054
|
-
var childNodes = styleElement.childNodes
|
|
2055
|
-
if (childNodes[index]) styleElement.removeChild(childNodes[index])
|
|
2056
|
-
if (childNodes.length) {
|
|
2057
|
-
styleElement.insertBefore(cssNode, childNodes[index])
|
|
2058
|
-
} else {
|
|
2059
|
-
styleElement.appendChild(cssNode)
|
|
2060
|
-
}
|
|
2061
|
-
}
|
|
2062
|
-
}
|
|
2063
|
-
|
|
2064
|
-
function applyToTag (styleElement, obj) {
|
|
1948
|
+
function addStyle (obj /* StyleObjectPart */, shadowRoot) {
|
|
1949
|
+
var styleElement = createStyleElement(shadowRoot)
|
|
2065
1950
|
var css = obj.css
|
|
2066
1951
|
var media = obj.media
|
|
2067
1952
|
var sourceMap = obj.sourceMap
|
|
@@ -2069,9 +1954,6 @@ function applyToTag (styleElement, obj) {
|
|
|
2069
1954
|
if (media) {
|
|
2070
1955
|
styleElement.setAttribute('media', media)
|
|
2071
1956
|
}
|
|
2072
|
-
if (options.ssrId) {
|
|
2073
|
-
styleElement.setAttribute(ssrIdKey, obj.id)
|
|
2074
|
-
}
|
|
2075
1957
|
|
|
2076
1958
|
if (sourceMap) {
|
|
2077
1959
|
// https://developer.chrome.com/devtools/docs/javascript-debugging
|