@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
package/dist/emoji.common.js
CHANGED
|
@@ -176,20 +176,22 @@ var content = __webpack_require__(141);
|
|
|
176
176
|
if(content.__esModule) content = content.default;
|
|
177
177
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
178
178
|
if(content.locals) module.exports = content.locals;
|
|
179
|
-
// add
|
|
180
|
-
var add = (__webpack_require__(
|
|
181
|
-
|
|
179
|
+
// add CSS to Shadow Root
|
|
180
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
181
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
182
|
+
add("3230f382", content, shadowRoot)
|
|
183
|
+
};
|
|
182
184
|
|
|
183
185
|
/***/ }),
|
|
184
186
|
|
|
185
|
-
/***/
|
|
187
|
+
/***/ 339:
|
|
186
188
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
187
189
|
|
|
188
190
|
"use strict";
|
|
189
191
|
|
|
190
192
|
// EXPORTS
|
|
191
193
|
__webpack_require__.d(__webpack_exports__, {
|
|
192
|
-
"Z": () => (/* binding */
|
|
194
|
+
"Z": () => (/* binding */ addStylesToShadowDOM)
|
|
193
195
|
});
|
|
194
196
|
|
|
195
197
|
;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
|
|
@@ -221,23 +223,12 @@ function listToStyles (parentId, list) {
|
|
|
221
223
|
return styles
|
|
222
224
|
}
|
|
223
225
|
|
|
224
|
-
;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/
|
|
225
|
-
/*
|
|
226
|
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
227
|
-
Author Tobias Koppers @sokra
|
|
228
|
-
Modified by Evan You @yyx990803
|
|
229
|
-
*/
|
|
230
|
-
|
|
231
|
-
|
|
226
|
+
;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesShadow.js
|
|
232
227
|
|
|
233
|
-
var hasDocument = typeof document !== 'undefined'
|
|
234
228
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
'vue-style-loader cannot be used in a non-browser environment. ' +
|
|
239
|
-
"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
|
|
240
|
-
) }
|
|
229
|
+
function addStylesToShadowDOM (parentId, list, shadowRoot) {
|
|
230
|
+
var styles = listToStyles(parentId, list)
|
|
231
|
+
addStyles(styles, shadowRoot)
|
|
241
232
|
}
|
|
242
233
|
|
|
243
234
|
/*
|
|
@@ -253,169 +244,31 @@ type StyleObjectPart = {
|
|
|
253
244
|
}
|
|
254
245
|
*/
|
|
255
246
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
parts: Array<(obj?: StyleObjectPart) => void>
|
|
261
|
-
}
|
|
262
|
-
*/}
|
|
263
|
-
|
|
264
|
-
var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
|
|
265
|
-
var singletonElement = null
|
|
266
|
-
var singletonCounter = 0
|
|
267
|
-
var isProduction = false
|
|
268
|
-
var noop = function () {}
|
|
269
|
-
var options = null
|
|
270
|
-
var ssrIdKey = 'data-vue-ssr-id'
|
|
271
|
-
|
|
272
|
-
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
|
273
|
-
// tags it will allow on a page
|
|
274
|
-
var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
|
|
275
|
-
|
|
276
|
-
function addStylesClient (parentId, list, _isProduction, _options) {
|
|
277
|
-
isProduction = _isProduction
|
|
278
|
-
|
|
279
|
-
options = _options || {}
|
|
280
|
-
|
|
281
|
-
var styles = listToStyles(parentId, list)
|
|
282
|
-
addStylesToDom(styles)
|
|
283
|
-
|
|
284
|
-
return function update (newList) {
|
|
285
|
-
var mayRemove = []
|
|
286
|
-
for (var i = 0; i < styles.length; i++) {
|
|
287
|
-
var item = styles[i]
|
|
288
|
-
var domStyle = stylesInDom[item.id]
|
|
289
|
-
domStyle.refs--
|
|
290
|
-
mayRemove.push(domStyle)
|
|
291
|
-
}
|
|
292
|
-
if (newList) {
|
|
293
|
-
styles = listToStyles(parentId, newList)
|
|
294
|
-
addStylesToDom(styles)
|
|
295
|
-
} else {
|
|
296
|
-
styles = []
|
|
297
|
-
}
|
|
298
|
-
for (var i = 0; i < mayRemove.length; i++) {
|
|
299
|
-
var domStyle = mayRemove[i]
|
|
300
|
-
if (domStyle.refs === 0) {
|
|
301
|
-
for (var j = 0; j < domStyle.parts.length; j++) {
|
|
302
|
-
domStyle.parts[j]()
|
|
303
|
-
}
|
|
304
|
-
delete stylesInDom[domStyle.id]
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
function addStylesToDom (styles /* Array<StyleObject> */) {
|
|
247
|
+
function addStyles (styles /* Array<StyleObject> */, shadowRoot) {
|
|
248
|
+
const injectedStyles =
|
|
249
|
+
shadowRoot._injectedStyles ||
|
|
250
|
+
(shadowRoot._injectedStyles = {})
|
|
311
251
|
for (var i = 0; i < styles.length; i++) {
|
|
312
252
|
var item = styles[i]
|
|
313
|
-
var
|
|
314
|
-
if (
|
|
315
|
-
domStyle.refs++
|
|
316
|
-
for (var j = 0; j < domStyle.parts.length; j++) {
|
|
317
|
-
domStyle.parts[j](item.parts[j])
|
|
318
|
-
}
|
|
319
|
-
for (; j < item.parts.length; j++) {
|
|
320
|
-
domStyle.parts.push(addStyle(item.parts[j]))
|
|
321
|
-
}
|
|
322
|
-
if (domStyle.parts.length > item.parts.length) {
|
|
323
|
-
domStyle.parts.length = item.parts.length
|
|
324
|
-
}
|
|
325
|
-
} else {
|
|
326
|
-
var parts = []
|
|
253
|
+
var style = injectedStyles[item.id]
|
|
254
|
+
if (!style) {
|
|
327
255
|
for (var j = 0; j < item.parts.length; j++) {
|
|
328
|
-
|
|
256
|
+
addStyle(item.parts[j], shadowRoot)
|
|
329
257
|
}
|
|
330
|
-
|
|
258
|
+
injectedStyles[item.id] = true
|
|
331
259
|
}
|
|
332
260
|
}
|
|
333
261
|
}
|
|
334
262
|
|
|
335
|
-
function createStyleElement () {
|
|
263
|
+
function createStyleElement (shadowRoot) {
|
|
336
264
|
var styleElement = document.createElement('style')
|
|
337
265
|
styleElement.type = 'text/css'
|
|
338
|
-
|
|
266
|
+
shadowRoot.appendChild(styleElement)
|
|
339
267
|
return styleElement
|
|
340
268
|
}
|
|
341
269
|
|
|
342
|
-
function addStyle (obj /* StyleObjectPart
|
|
343
|
-
var
|
|
344
|
-
var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')
|
|
345
|
-
|
|
346
|
-
if (styleElement) {
|
|
347
|
-
if (isProduction) {
|
|
348
|
-
// has SSR styles and in production mode.
|
|
349
|
-
// simply do nothing.
|
|
350
|
-
return noop
|
|
351
|
-
} else {
|
|
352
|
-
// has SSR styles but in dev mode.
|
|
353
|
-
// for some reason Chrome can't handle source map in server-rendered
|
|
354
|
-
// style tags - source maps in <style> only works if the style tag is
|
|
355
|
-
// created and inserted dynamically. So we remove the server rendered
|
|
356
|
-
// styles and inject new ones.
|
|
357
|
-
styleElement.parentNode.removeChild(styleElement)
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
if (isOldIE) {
|
|
362
|
-
// use singleton mode for IE9.
|
|
363
|
-
var styleIndex = singletonCounter++
|
|
364
|
-
styleElement = singletonElement || (singletonElement = createStyleElement())
|
|
365
|
-
update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
|
|
366
|
-
remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
|
|
367
|
-
} else {
|
|
368
|
-
// use multi-style-tag mode in all other cases
|
|
369
|
-
styleElement = createStyleElement()
|
|
370
|
-
update = applyToTag.bind(null, styleElement)
|
|
371
|
-
remove = function () {
|
|
372
|
-
styleElement.parentNode.removeChild(styleElement)
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
update(obj)
|
|
377
|
-
|
|
378
|
-
return function updateStyle (newObj /* StyleObjectPart */) {
|
|
379
|
-
if (newObj) {
|
|
380
|
-
if (newObj.css === obj.css &&
|
|
381
|
-
newObj.media === obj.media &&
|
|
382
|
-
newObj.sourceMap === obj.sourceMap) {
|
|
383
|
-
return
|
|
384
|
-
}
|
|
385
|
-
update(obj = newObj)
|
|
386
|
-
} else {
|
|
387
|
-
remove()
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
var replaceText = (function () {
|
|
393
|
-
var textStore = []
|
|
394
|
-
|
|
395
|
-
return function (index, replacement) {
|
|
396
|
-
textStore[index] = replacement
|
|
397
|
-
return textStore.filter(Boolean).join('\n')
|
|
398
|
-
}
|
|
399
|
-
})()
|
|
400
|
-
|
|
401
|
-
function applyToSingletonTag (styleElement, index, remove, obj) {
|
|
402
|
-
var css = remove ? '' : obj.css
|
|
403
|
-
|
|
404
|
-
if (styleElement.styleSheet) {
|
|
405
|
-
styleElement.styleSheet.cssText = replaceText(index, css)
|
|
406
|
-
} else {
|
|
407
|
-
var cssNode = document.createTextNode(css)
|
|
408
|
-
var childNodes = styleElement.childNodes
|
|
409
|
-
if (childNodes[index]) styleElement.removeChild(childNodes[index])
|
|
410
|
-
if (childNodes.length) {
|
|
411
|
-
styleElement.insertBefore(cssNode, childNodes[index])
|
|
412
|
-
} else {
|
|
413
|
-
styleElement.appendChild(cssNode)
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
function applyToTag (styleElement, obj) {
|
|
270
|
+
function addStyle (obj /* StyleObjectPart */, shadowRoot) {
|
|
271
|
+
var styleElement = createStyleElement(shadowRoot)
|
|
419
272
|
var css = obj.css
|
|
420
273
|
var media = obj.media
|
|
421
274
|
var sourceMap = obj.sourceMap
|
|
@@ -423,9 +276,6 @@ function applyToTag (styleElement, obj) {
|
|
|
423
276
|
if (media) {
|
|
424
277
|
styleElement.setAttribute('media', media)
|
|
425
278
|
}
|
|
426
|
-
if (options.ssrId) {
|
|
427
|
-
styleElement.setAttribute(ssrIdKey, obj.id)
|
|
428
|
-
}
|
|
429
279
|
|
|
430
280
|
if (sourceMap) {
|
|
431
281
|
// https://developer.chrome.com/devtools/docs/javascript-debugging
|
package/dist/emoji.umd.js
CHANGED
|
@@ -186,20 +186,22 @@ var content = __webpack_require__(615);
|
|
|
186
186
|
if(content.__esModule) content = content.default;
|
|
187
187
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
188
188
|
if(content.locals) module.exports = content.locals;
|
|
189
|
-
// add
|
|
190
|
-
var add = (__webpack_require__(
|
|
191
|
-
|
|
189
|
+
// add CSS to Shadow Root
|
|
190
|
+
var add = (__webpack_require__(339)/* ["default"] */ .Z)
|
|
191
|
+
module.exports.__inject__ = function (shadowRoot) {
|
|
192
|
+
add("69f5defa", content, shadowRoot)
|
|
193
|
+
};
|
|
192
194
|
|
|
193
195
|
/***/ }),
|
|
194
196
|
|
|
195
|
-
/***/
|
|
197
|
+
/***/ 339:
|
|
196
198
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
197
199
|
|
|
198
200
|
"use strict";
|
|
199
201
|
|
|
200
202
|
// EXPORTS
|
|
201
203
|
__webpack_require__.d(__webpack_exports__, {
|
|
202
|
-
"Z": () => (/* binding */
|
|
204
|
+
"Z": () => (/* binding */ addStylesToShadowDOM)
|
|
203
205
|
});
|
|
204
206
|
|
|
205
207
|
;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
|
|
@@ -231,23 +233,12 @@ function listToStyles (parentId, list) {
|
|
|
231
233
|
return styles
|
|
232
234
|
}
|
|
233
235
|
|
|
234
|
-
;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/
|
|
235
|
-
/*
|
|
236
|
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
237
|
-
Author Tobias Koppers @sokra
|
|
238
|
-
Modified by Evan You @yyx990803
|
|
239
|
-
*/
|
|
240
|
-
|
|
241
|
-
|
|
236
|
+
;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesShadow.js
|
|
242
237
|
|
|
243
|
-
var hasDocument = typeof document !== 'undefined'
|
|
244
238
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
'vue-style-loader cannot be used in a non-browser environment. ' +
|
|
249
|
-
"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
|
|
250
|
-
) }
|
|
239
|
+
function addStylesToShadowDOM (parentId, list, shadowRoot) {
|
|
240
|
+
var styles = listToStyles(parentId, list)
|
|
241
|
+
addStyles(styles, shadowRoot)
|
|
251
242
|
}
|
|
252
243
|
|
|
253
244
|
/*
|
|
@@ -263,169 +254,31 @@ type StyleObjectPart = {
|
|
|
263
254
|
}
|
|
264
255
|
*/
|
|
265
256
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
parts: Array<(obj?: StyleObjectPart) => void>
|
|
271
|
-
}
|
|
272
|
-
*/}
|
|
273
|
-
|
|
274
|
-
var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
|
|
275
|
-
var singletonElement = null
|
|
276
|
-
var singletonCounter = 0
|
|
277
|
-
var isProduction = false
|
|
278
|
-
var noop = function () {}
|
|
279
|
-
var options = null
|
|
280
|
-
var ssrIdKey = 'data-vue-ssr-id'
|
|
281
|
-
|
|
282
|
-
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
|
283
|
-
// tags it will allow on a page
|
|
284
|
-
var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
|
|
285
|
-
|
|
286
|
-
function addStylesClient (parentId, list, _isProduction, _options) {
|
|
287
|
-
isProduction = _isProduction
|
|
288
|
-
|
|
289
|
-
options = _options || {}
|
|
290
|
-
|
|
291
|
-
var styles = listToStyles(parentId, list)
|
|
292
|
-
addStylesToDom(styles)
|
|
293
|
-
|
|
294
|
-
return function update (newList) {
|
|
295
|
-
var mayRemove = []
|
|
296
|
-
for (var i = 0; i < styles.length; i++) {
|
|
297
|
-
var item = styles[i]
|
|
298
|
-
var domStyle = stylesInDom[item.id]
|
|
299
|
-
domStyle.refs--
|
|
300
|
-
mayRemove.push(domStyle)
|
|
301
|
-
}
|
|
302
|
-
if (newList) {
|
|
303
|
-
styles = listToStyles(parentId, newList)
|
|
304
|
-
addStylesToDom(styles)
|
|
305
|
-
} else {
|
|
306
|
-
styles = []
|
|
307
|
-
}
|
|
308
|
-
for (var i = 0; i < mayRemove.length; i++) {
|
|
309
|
-
var domStyle = mayRemove[i]
|
|
310
|
-
if (domStyle.refs === 0) {
|
|
311
|
-
for (var j = 0; j < domStyle.parts.length; j++) {
|
|
312
|
-
domStyle.parts[j]()
|
|
313
|
-
}
|
|
314
|
-
delete stylesInDom[domStyle.id]
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
function addStylesToDom (styles /* Array<StyleObject> */) {
|
|
257
|
+
function addStyles (styles /* Array<StyleObject> */, shadowRoot) {
|
|
258
|
+
const injectedStyles =
|
|
259
|
+
shadowRoot._injectedStyles ||
|
|
260
|
+
(shadowRoot._injectedStyles = {})
|
|
321
261
|
for (var i = 0; i < styles.length; i++) {
|
|
322
262
|
var item = styles[i]
|
|
323
|
-
var
|
|
324
|
-
if (
|
|
325
|
-
domStyle.refs++
|
|
326
|
-
for (var j = 0; j < domStyle.parts.length; j++) {
|
|
327
|
-
domStyle.parts[j](item.parts[j])
|
|
328
|
-
}
|
|
329
|
-
for (; j < item.parts.length; j++) {
|
|
330
|
-
domStyle.parts.push(addStyle(item.parts[j]))
|
|
331
|
-
}
|
|
332
|
-
if (domStyle.parts.length > item.parts.length) {
|
|
333
|
-
domStyle.parts.length = item.parts.length
|
|
334
|
-
}
|
|
335
|
-
} else {
|
|
336
|
-
var parts = []
|
|
263
|
+
var style = injectedStyles[item.id]
|
|
264
|
+
if (!style) {
|
|
337
265
|
for (var j = 0; j < item.parts.length; j++) {
|
|
338
|
-
|
|
266
|
+
addStyle(item.parts[j], shadowRoot)
|
|
339
267
|
}
|
|
340
|
-
|
|
268
|
+
injectedStyles[item.id] = true
|
|
341
269
|
}
|
|
342
270
|
}
|
|
343
271
|
}
|
|
344
272
|
|
|
345
|
-
function createStyleElement () {
|
|
273
|
+
function createStyleElement (shadowRoot) {
|
|
346
274
|
var styleElement = document.createElement('style')
|
|
347
275
|
styleElement.type = 'text/css'
|
|
348
|
-
|
|
276
|
+
shadowRoot.appendChild(styleElement)
|
|
349
277
|
return styleElement
|
|
350
278
|
}
|
|
351
279
|
|
|
352
|
-
function addStyle (obj /* StyleObjectPart
|
|
353
|
-
var
|
|
354
|
-
var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')
|
|
355
|
-
|
|
356
|
-
if (styleElement) {
|
|
357
|
-
if (isProduction) {
|
|
358
|
-
// has SSR styles and in production mode.
|
|
359
|
-
// simply do nothing.
|
|
360
|
-
return noop
|
|
361
|
-
} else {
|
|
362
|
-
// has SSR styles but in dev mode.
|
|
363
|
-
// for some reason Chrome can't handle source map in server-rendered
|
|
364
|
-
// style tags - source maps in <style> only works if the style tag is
|
|
365
|
-
// created and inserted dynamically. So we remove the server rendered
|
|
366
|
-
// styles and inject new ones.
|
|
367
|
-
styleElement.parentNode.removeChild(styleElement)
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
if (isOldIE) {
|
|
372
|
-
// use singleton mode for IE9.
|
|
373
|
-
var styleIndex = singletonCounter++
|
|
374
|
-
styleElement = singletonElement || (singletonElement = createStyleElement())
|
|
375
|
-
update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
|
|
376
|
-
remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
|
|
377
|
-
} else {
|
|
378
|
-
// use multi-style-tag mode in all other cases
|
|
379
|
-
styleElement = createStyleElement()
|
|
380
|
-
update = applyToTag.bind(null, styleElement)
|
|
381
|
-
remove = function () {
|
|
382
|
-
styleElement.parentNode.removeChild(styleElement)
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
update(obj)
|
|
387
|
-
|
|
388
|
-
return function updateStyle (newObj /* StyleObjectPart */) {
|
|
389
|
-
if (newObj) {
|
|
390
|
-
if (newObj.css === obj.css &&
|
|
391
|
-
newObj.media === obj.media &&
|
|
392
|
-
newObj.sourceMap === obj.sourceMap) {
|
|
393
|
-
return
|
|
394
|
-
}
|
|
395
|
-
update(obj = newObj)
|
|
396
|
-
} else {
|
|
397
|
-
remove()
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
var replaceText = (function () {
|
|
403
|
-
var textStore = []
|
|
404
|
-
|
|
405
|
-
return function (index, replacement) {
|
|
406
|
-
textStore[index] = replacement
|
|
407
|
-
return textStore.filter(Boolean).join('\n')
|
|
408
|
-
}
|
|
409
|
-
})()
|
|
410
|
-
|
|
411
|
-
function applyToSingletonTag (styleElement, index, remove, obj) {
|
|
412
|
-
var css = remove ? '' : obj.css
|
|
413
|
-
|
|
414
|
-
if (styleElement.styleSheet) {
|
|
415
|
-
styleElement.styleSheet.cssText = replaceText(index, css)
|
|
416
|
-
} else {
|
|
417
|
-
var cssNode = document.createTextNode(css)
|
|
418
|
-
var childNodes = styleElement.childNodes
|
|
419
|
-
if (childNodes[index]) styleElement.removeChild(childNodes[index])
|
|
420
|
-
if (childNodes.length) {
|
|
421
|
-
styleElement.insertBefore(cssNode, childNodes[index])
|
|
422
|
-
} else {
|
|
423
|
-
styleElement.appendChild(cssNode)
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
function applyToTag (styleElement, obj) {
|
|
280
|
+
function addStyle (obj /* StyleObjectPart */, shadowRoot) {
|
|
281
|
+
var styleElement = createStyleElement(shadowRoot)
|
|
429
282
|
var css = obj.css
|
|
430
283
|
var media = obj.media
|
|
431
284
|
var sourceMap = obj.sourceMap
|
|
@@ -433,9 +286,6 @@ function applyToTag (styleElement, obj) {
|
|
|
433
286
|
if (media) {
|
|
434
287
|
styleElement.setAttribute('media', media)
|
|
435
288
|
}
|
|
436
|
-
if (options.ssrId) {
|
|
437
|
-
styleElement.setAttribute(ssrIdKey, obj.id)
|
|
438
|
-
}
|
|
439
289
|
|
|
440
290
|
if (sourceMap) {
|
|
441
291
|
// https://developer.chrome.com/devtools/docs/javascript-debugging
|