@dialpad/dialtone-vue 3.35.1 → 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.
@@ -155,7 +155,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".dt-default-list-item,.dt-default-list
155
155
 
156
156
  /***/ }),
157
157
 
158
- /***/ 363:
158
+ /***/ 731:
159
159
  /***/ ((module, __webpack_exports__, __webpack_require__) => {
160
160
 
161
161
  "use strict";
@@ -172,7 +172,7 @@ __webpack_require__.r(__webpack_exports__);
172
172
 
173
173
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
174
174
  // Module
175
- ___CSS_LOADER_EXPORT___.push([module.id, ".dt-list-item:not(.dt-list-item--static){cursor:pointer}.dt-list-item--focusable:focus,.dt-list-item--focusable:focus-within,.dt-list-item--highlighted{background-color:hsla(var(--black-900-h),var(--black-900-s),var(--black-900-l),.05)}.dt-list-item--highlighted:active{background-color:hsla(var(--black-900-h),var(--black-900-s),var(--black-900-l),.1)}.dt-list-item:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--su2) var(--focus-ring)}", ""]);
175
+ ___CSS_LOADER_EXPORT___.push([module.id, ".dt-list-item:not(.dt-list-item--static){cursor:pointer;border-radius:var(--size-300)}.dt-list-item--focusable:focus,.dt-list-item--focusable:focus-within,.dt-list-item--highlighted{background-color:hsla(var(--black-900-h),var(--black-900-s),var(--black-900-l),.05)}.dt-list-item--highlighted:active{background-color:hsla(var(--black-900-h),var(--black-900-s),var(--black-900-l),.1)}.dt-list-item:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--su2) var(--focus-ring)}", ""]);
176
176
  // Exports
177
177
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
178
178
 
@@ -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,25 +1666,29 @@ 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
 
1665
- /***/ 595:
1677
+ /***/ 820:
1666
1678
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1667
1679
 
1668
1680
  // style-loader: Adds some css to the DOM by adding a <style> tag
1669
1681
 
1670
1682
  // load the styles
1671
- var content = __webpack_require__(363);
1683
+ 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("61eb2854", 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
- */
1914
+ ;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesShadow.js
1886
1915
 
1887
1916
 
1888
-
1889
- var hasDocument = typeof document !== 'undefined'
1890
-
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
@@ -5186,9 +5068,9 @@ function combobox_loading_listvue_type_template_id_07d9971d_render(_ctx, _cache,
5186
5068
  }
5187
5069
  ;// CONCATENATED MODULE: ./components/combobox/combobox_loading-list.vue?vue&type=template&id=07d9971d
5188
5070
 
5189
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/list_item/list_item.vue?vue&type=template&id=5817ca14
5071
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/list_item/list_item.vue?vue&type=template&id=65cb4fdd
5190
5072
 
5191
- function list_itemvue_type_template_id_5817ca14_render(_ctx, _cache, $props, $setup, $data, $options) {
5073
+ function list_itemvue_type_template_id_65cb4fdd_render(_ctx, _cache, $props, $setup, $data, $options) {
5192
5074
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveDynamicComponent)($props.elementType), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
5193
5075
  id: $props.id,
5194
5076
  class: ['dt-list-item d-ls-none', {
@@ -5215,7 +5097,7 @@ function list_itemvue_type_template_id_5817ca14_render(_ctx, _cache, $props, $se
5215
5097
  _: 3
5216
5098
  }, 16, ["id", "class", "tabindex", "role", "aria-selected"]);
5217
5099
  }
5218
- ;// CONCATENATED MODULE: ./components/list_item/list_item.vue?vue&type=template&id=5817ca14
5100
+ ;// CONCATENATED MODULE: ./components/list_item/list_item.vue?vue&type=template&id=65cb4fdd
5219
5101
 
5220
5102
  ;// CONCATENATED MODULE: ./components/list_item/list_item_constants.js
5221
5103
  const LIST_ITEM_TYPES = {
@@ -5475,9 +5357,9 @@ const default_list_item_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(
5475
5357
  });
5476
5358
  ;// CONCATENATED MODULE: ./components/list_item/list_item.vue?vue&type=script&lang=js
5477
5359
 
5478
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/list_item/list_item.vue?vue&type=style&index=0&id=5817ca14&lang=less
5479
- var list_itemvue_type_style_index_0_id_5817ca14_lang_less = __webpack_require__(595);
5480
- ;// CONCATENATED MODULE: ./components/list_item/list_item.vue?vue&type=style&index=0&id=5817ca14&lang=less
5360
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/list_item/list_item.vue?vue&type=style&index=0&id=65cb4fdd&lang=less
5361
+ var list_itemvue_type_style_index_0_id_65cb4fdd_lang_less = __webpack_require__(820);
5362
+ ;// CONCATENATED MODULE: ./components/list_item/list_item.vue?vue&type=style&index=0&id=65cb4fdd&lang=less
5481
5363
 
5482
5364
  ;// CONCATENATED MODULE: ./components/list_item/list_item.vue
5483
5365
 
@@ -5487,7 +5369,7 @@ var list_itemvue_type_style_index_0_id_5817ca14_lang_less = __webpack_require__(
5487
5369
  ;
5488
5370
 
5489
5371
 
5490
- const list_item_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(list_itemvue_type_script_lang_js, [['render',list_itemvue_type_template_id_5817ca14_render]])
5372
+ const list_item_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(list_itemvue_type_script_lang_js, [['render',list_itemvue_type_template_id_65cb4fdd_render]])
5491
5373
 
5492
5374
  /* harmony default export */ const list_item = (list_item_exports_);
5493
5375
  ;// CONCATENATED MODULE: ./components/list_item/index.js
@@ -12987,8 +12869,8 @@ const popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(popovervue
12987
12869
  ;// CONCATENATED MODULE: ./components/dropdown/dropdown_constants.js
12988
12870
  const DROPDOWN_PADDING_CLASSES = {
12989
12871
  none: undefined,
12990
- small: 'd-py4',
12991
- large: 'd-py8'
12872
+ small: 'd-py0',
12873
+ large: 'd-py4'
12992
12874
  };
12993
12875
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/dropdown/dropdown.vue?vue&type=script&lang=js
12994
12876
 
@@ -17195,8 +17077,8 @@ const CHIP_CLOSE_BUTTON_SIZE_MODIFIERS = {
17195
17077
  };
17196
17078
  const CHIP_ICON_SIZES = {
17197
17079
  xs: '200',
17198
- sm: '300',
17199
- md: '300'
17080
+ sm: '200',
17081
+ md: '200'
17200
17082
  };
17201
17083
  /* harmony default export */ const chip_constants = ({
17202
17084
  CHIP_SIZE_MODIFIERS,
@@ -18007,25 +17889,25 @@ const toast_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(toastvue_typ
18007
17889
  ;// CONCATENATED MODULE: ./components/toast/index.js
18008
17890
 
18009
17891
 
18010
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/toggle/toggle.vue?vue&type=template&id=54ed4aa0
17892
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/toggle/toggle.vue?vue&type=template&id=2b01a980
18011
17893
 
18012
- const togglevue_type_template_id_54ed4aa0_hoisted_1 = {
17894
+ const togglevue_type_template_id_2b01a980_hoisted_1 = {
18013
17895
  class: "d-d-flex d-ai-center"
18014
17896
  };
18015
- const togglevue_type_template_id_54ed4aa0_hoisted_2 = ["for"];
18016
- const togglevue_type_template_id_54ed4aa0_hoisted_3 = ["id", "role", "aria-checked", "disabled", "aria-disabled"];
18017
- const togglevue_type_template_id_54ed4aa0_hoisted_4 = {
17897
+ const togglevue_type_template_id_2b01a980_hoisted_2 = ["for"];
17898
+ const togglevue_type_template_id_2b01a980_hoisted_3 = ["id", "role", "aria-checked", "disabled", "aria-disabled"];
17899
+ const togglevue_type_template_id_2b01a980_hoisted_4 = {
18018
17900
  key: 0,
18019
17901
  class: "d-toggle__inner"
18020
17902
  };
18021
- function togglevue_type_template_id_54ed4aa0_render(_ctx, _cache, $props, $setup, $data, $options) {
18022
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", togglevue_type_template_id_54ed4aa0_hoisted_1, [_ctx.$slots.default ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("label", (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
17903
+ function togglevue_type_template_id_2b01a980_render(_ctx, _cache, $props, $setup, $data, $options) {
17904
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", togglevue_type_template_id_2b01a980_hoisted_1, [_ctx.$slots.default ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("label", (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
18023
17905
  key: 0,
18024
17906
  class: $props.labelClass,
18025
17907
  for: $props.id
18026
17908
  }, $props.labelChildProps, {
18027
17909
  "data-qa": "toggle-label"
18028
- }), [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 16, togglevue_type_template_id_54ed4aa0_hoisted_2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("button", (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
17910
+ }), [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 16, togglevue_type_template_id_2b01a980_hoisted_2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("button", (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
18029
17911
  id: $props.id,
18030
17912
  role: $options.toggleRole,
18031
17913
  type: "button",
@@ -18033,9 +17915,9 @@ function togglevue_type_template_id_54ed4aa0_render(_ctx, _cache, $props, $setup
18033
17915
  disabled: $props.disabled,
18034
17916
  "aria-disabled": $props.disabled.toString(),
18035
17917
  class: $options.toggleClasses
18036
- }, $options.inputListeners), [$props.showIcon ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", togglevue_type_template_id_54ed4aa0_hoisted_4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 16, togglevue_type_template_id_54ed4aa0_hoisted_3)]);
17918
+ }, $options.inputListeners), [$props.showIcon ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", togglevue_type_template_id_2b01a980_hoisted_4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 16, togglevue_type_template_id_2b01a980_hoisted_3)]);
18037
17919
  }
18038
- ;// CONCATENATED MODULE: ./components/toggle/toggle.vue?vue&type=template&id=54ed4aa0
17920
+ ;// CONCATENATED MODULE: ./components/toggle/toggle.vue?vue&type=template&id=2b01a980
18039
17921
 
18040
17922
  ;// CONCATENATED MODULE: ./components/toggle/toggle_constants.js
18041
17923
  const TOGGLE_SIZE_MODIFIERS = {
@@ -18095,6 +17977,16 @@ const TOGGLE_CHECKED_VALUES = [false, true, 'mixed'];
18095
17977
  validator: v => TOGGLE_CHECKED_VALUES.includes(v)
18096
17978
  },
18097
17979
 
17980
+ /**
17981
+ * Whether the component toggles on click. If you set this to false it means you will handle the toggling manually
17982
+ * via the checked prop or v-model. Change events will still be triggered.
17983
+ * @values true, false
17984
+ */
17985
+ toggleOnClick: {
17986
+ type: Boolean,
17987
+ default: true
17988
+ },
17989
+
18098
17990
  /**
18099
17991
  * The size of the toggle.
18100
17992
  * @values sm, md
@@ -18183,8 +18075,11 @@ const TOGGLE_CHECKED_VALUES = [false, true, 'mixed'];
18183
18075
 
18184
18076
  methods: {
18185
18077
  toggleCheckedValue() {
18186
- this.internalChecked = !this.internalChecked;
18187
- this.$emit('change', this.internalChecked);
18078
+ this.$emit('change', !this.internalChecked);
18079
+
18080
+ if (this.toggleOnClick) {
18081
+ this.internalChecked = !this.internalChecked;
18082
+ }
18188
18083
  },
18189
18084
 
18190
18085
  hasSlotLabel() {
@@ -18211,7 +18106,7 @@ const TOGGLE_CHECKED_VALUES = [false, true, 'mixed'];
18211
18106
 
18212
18107
 
18213
18108
  ;
18214
- const toggle_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(togglevue_type_script_lang_js, [['render',togglevue_type_template_id_54ed4aa0_render]])
18109
+ const toggle_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(togglevue_type_script_lang_js, [['render',togglevue_type_template_id_2b01a980_render]])
18215
18110
 
18216
18111
  /* harmony default export */ const toggle = (toggle_exports_);
18217
18112
  ;// CONCATENATED MODULE: ./components/toggle/index.js