lwc 2.10.0 → 2.11.0
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/engine-dom/esm/es2017/engine-dom.js +4261 -5855
- package/dist/engine-dom/iife/es2017/engine-dom.js +4261 -5855
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +3244 -4594
- package/dist/engine-dom/iife/es5/engine-dom.js +50 -63
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +45 -40
- package/dist/engine-dom/umd/es2017/engine-dom.js +4261 -5855
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +3244 -4594
- package/dist/engine-dom/umd/es5/engine-dom.js +50 -63
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +45 -40
- package/dist/engine-server/commonjs/es2017/engine-server.js +4041 -5380
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +4041 -5380
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +2952 -3673
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +2952 -3673
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +2825 -3532
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +11 -3
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +11 -3
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +2952 -3673
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +2825 -3532
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +11 -3
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +11 -3
- package/dist/wire-service/esm/es2017/wire-service.js +128 -174
- package/dist/wire-service/iife/es2017/wire-service.js +128 -174
- package/dist/wire-service/iife/es2017/wire-service_debug.js +128 -174
- package/dist/wire-service/iife/es5/wire-service.js +2 -2
- package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service.js +128 -174
- package/dist/wire-service/umd/es2017/wire-service_debug.js +128 -174
- package/dist/wire-service/umd/es5/wire-service.js +2 -2
- package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
- package/package.json +7 -7
|
@@ -345,7 +345,7 @@ var LWC = (function (exports) {
|
|
|
345
345
|
var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace';
|
|
346
346
|
var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
|
|
347
347
|
var XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink';
|
|
348
|
-
/** version: 2.
|
|
348
|
+
/** version: 2.11.0 */
|
|
349
349
|
|
|
350
350
|
/*
|
|
351
351
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -448,12 +448,12 @@ var LWC = (function (exports) {
|
|
|
448
448
|
|
|
449
449
|
|
|
450
450
|
var features = {
|
|
451
|
-
DISABLE_MIXED_SHADOW_MODE: null,
|
|
452
451
|
ENABLE_ELEMENT_PATCH: null,
|
|
453
452
|
ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST: null,
|
|
454
453
|
ENABLE_HMR: null,
|
|
455
454
|
ENABLE_HTML_COLLECTIONS_PATCH: null,
|
|
456
455
|
ENABLE_INNER_OUTER_TEXT_PATCH: null,
|
|
456
|
+
ENABLE_MIXED_SHADOW_MODE: null,
|
|
457
457
|
ENABLE_NODE_LIST_PATCH: null,
|
|
458
458
|
ENABLE_NODE_PATCH: null,
|
|
459
459
|
ENABLE_REACTIVE_SETTER: null,
|
|
@@ -515,7 +515,7 @@ var LWC = (function (exports) {
|
|
|
515
515
|
|
|
516
516
|
function setFeatureFlagForTest(name, value) {
|
|
517
517
|
}
|
|
518
|
-
/** version: 2.
|
|
518
|
+
/** version: 2.11.0 */
|
|
519
519
|
|
|
520
520
|
/* proxy-compat-disable */
|
|
521
521
|
|
|
@@ -1051,6 +1051,7 @@ var LWC = (function (exports) {
|
|
|
1051
1051
|
* SPDX-License-Identifier: MIT
|
|
1052
1052
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
1053
1053
|
*/
|
|
1054
|
+
// These properties get added to LWCElement.prototype publicProps automatically
|
|
1054
1055
|
|
|
1055
1056
|
var defaultDefHTMLPropertyNames = ['accessKey', 'dir', 'draggable', 'hidden', 'id', 'lang', 'spellcheck', 'tabIndex', 'title'];
|
|
1056
1057
|
|
|
@@ -2590,13 +2591,6 @@ var LWC = (function (exports) {
|
|
|
2590
2591
|
var meta = signedDecoratorToMetaMap.get(Ctor);
|
|
2591
2592
|
return isUndefined$1(meta) ? defaultMeta : meta;
|
|
2592
2593
|
}
|
|
2593
|
-
/*
|
|
2594
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
2595
|
-
* All rights reserved.
|
|
2596
|
-
* SPDX-License-Identifier: MIT
|
|
2597
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2598
|
-
*/
|
|
2599
|
-
|
|
2600
2594
|
|
|
2601
2595
|
var signedTemplateSet = new Set();
|
|
2602
2596
|
|
|
@@ -2639,6 +2633,7 @@ var LWC = (function (exports) {
|
|
|
2639
2633
|
* SPDX-License-Identifier: MIT
|
|
2640
2634
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2641
2635
|
*/
|
|
2636
|
+
// A bridge descriptor is a descriptor whose job is just to get the component instance
|
|
2642
2637
|
// from the element instance, and get the value or set a new value on the component.
|
|
2643
2638
|
// This means that across different elements, similar names can get the exact same
|
|
2644
2639
|
// descriptor, so we can cache them:
|
|
@@ -3332,6 +3327,7 @@ var LWC = (function (exports) {
|
|
|
3332
3327
|
* SPDX-License-Identifier: MIT
|
|
3333
3328
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
3334
3329
|
*/
|
|
3330
|
+
// The style property is a string when defined via an expression in the template.
|
|
3335
3331
|
|
|
3336
3332
|
|
|
3337
3333
|
function patchStyleAttribute(oldVnode, vnode) {
|
|
@@ -3376,6 +3372,7 @@ var LWC = (function (exports) {
|
|
|
3376
3372
|
* SPDX-License-Identifier: MIT
|
|
3377
3373
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
3378
3374
|
*/
|
|
3375
|
+
// The HTML class property becomes the vnode.data.classMap object when defined as a string in the template.
|
|
3379
3376
|
// The compiler takes care of transforming the inline classnames into an object. It's faster to set the
|
|
3380
3377
|
// different classnames properties individually instead of via a string.
|
|
3381
3378
|
|
|
@@ -3400,6 +3397,7 @@ var LWC = (function (exports) {
|
|
|
3400
3397
|
* SPDX-License-Identifier: MIT
|
|
3401
3398
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
3402
3399
|
*/
|
|
3400
|
+
// The HTML style property becomes the vnode.data.styleDecls object when defined as a string in the template.
|
|
3403
3401
|
// The compiler takes care of transforming the inline style into an object. It's faster to set the
|
|
3404
3402
|
// different style properties individually instead of via a string.
|
|
3405
3403
|
|
|
@@ -5383,34 +5381,38 @@ var LWC = (function (exports) {
|
|
|
5383
5381
|
/* Native */
|
|
5384
5382
|
;
|
|
5385
5383
|
} else if (isNativeShadowDefined$1) {
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
/* Any */
|
|
5392
|
-
) {
|
|
5393
|
-
shadowMode = 0
|
|
5394
|
-
/* Native */
|
|
5395
|
-
;
|
|
5396
|
-
} else {
|
|
5397
|
-
var shadowAncestor = getNearestShadowAncestor(vm);
|
|
5398
|
-
|
|
5399
|
-
if (!isNull(shadowAncestor) && shadowAncestor.shadowMode === 0
|
|
5400
|
-
/* Native */
|
|
5384
|
+
// Not combined with above condition because @lwc/features only supports identifiers in
|
|
5385
|
+
// the if-condition.
|
|
5386
|
+
if (runtimeFlags.ENABLE_MIXED_SHADOW_MODE) {
|
|
5387
|
+
if (def.shadowSupportMode === "any"
|
|
5388
|
+
/* Any */
|
|
5401
5389
|
) {
|
|
5402
|
-
// Transitive support for native Shadow DOM. A component in native mode
|
|
5403
|
-
// transitively opts all of its descendants into native.
|
|
5404
5390
|
shadowMode = 0
|
|
5405
5391
|
/* Native */
|
|
5406
5392
|
;
|
|
5407
5393
|
} else {
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
shadowMode
|
|
5411
|
-
/*
|
|
5412
|
-
|
|
5394
|
+
var shadowAncestor = getNearestShadowAncestor(vm);
|
|
5395
|
+
|
|
5396
|
+
if (!isNull(shadowAncestor) && shadowAncestor.shadowMode === 0
|
|
5397
|
+
/* Native */
|
|
5398
|
+
) {
|
|
5399
|
+
// Transitive support for native Shadow DOM. A component in native mode
|
|
5400
|
+
// transitively opts all of its descendants into native.
|
|
5401
|
+
shadowMode = 0
|
|
5402
|
+
/* Native */
|
|
5403
|
+
;
|
|
5404
|
+
} else {
|
|
5405
|
+
// Synthetic if neither this component nor any of its ancestors are configured
|
|
5406
|
+
// to be native.
|
|
5407
|
+
shadowMode = 1
|
|
5408
|
+
/* Synthetic */
|
|
5409
|
+
;
|
|
5410
|
+
}
|
|
5413
5411
|
}
|
|
5412
|
+
} else {
|
|
5413
|
+
shadowMode = 1
|
|
5414
|
+
/* Synthetic */
|
|
5415
|
+
;
|
|
5414
5416
|
}
|
|
5415
5417
|
} else {
|
|
5416
5418
|
// Synthetic if there is no native Shadow DOM support.
|
|
@@ -6074,6 +6076,7 @@ var LWC = (function (exports) {
|
|
|
6074
6076
|
* SPDX-License-Identifier: MIT
|
|
6075
6077
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
6076
6078
|
*/
|
|
6079
|
+
// this is lwc internal implementation
|
|
6077
6080
|
|
|
6078
6081
|
|
|
6079
6082
|
function createContextProvider(adapter) {
|
|
@@ -6148,7 +6151,7 @@ var LWC = (function (exports) {
|
|
|
6148
6151
|
hooksAreSet = true;
|
|
6149
6152
|
setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
|
|
6150
6153
|
}
|
|
6151
|
-
/* version: 2.
|
|
6154
|
+
/* version: 2.11.0 */
|
|
6152
6155
|
|
|
6153
6156
|
/*
|
|
6154
6157
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -6168,7 +6171,7 @@ var LWC = (function (exports) {
|
|
|
6168
6171
|
var supportsMutableAdoptedStyleSheets = supportsConstructableStyleSheets && getOwnPropertyDescriptor$1(document.adoptedStyleSheets, 'length').writable;
|
|
6169
6172
|
var styleElements = create(null);
|
|
6170
6173
|
var styleSheets = create(null);
|
|
6171
|
-
var
|
|
6174
|
+
var shadowRootsToStyleSheets = new WeakMap();
|
|
6172
6175
|
var getCustomElement;
|
|
6173
6176
|
var defineCustomElement;
|
|
6174
6177
|
var HTMLElementConstructor;
|
|
@@ -6220,24 +6223,26 @@ var LWC = (function (exports) {
|
|
|
6220
6223
|
styleSheets[content] = styleSheet;
|
|
6221
6224
|
}
|
|
6222
6225
|
|
|
6223
|
-
|
|
6226
|
+
var adoptedStyleSheets = target.adoptedStyleSheets;
|
|
6227
|
+
|
|
6228
|
+
if (!adoptedStyleSheets.includes(styleSheet)) {
|
|
6224
6229
|
if (supportsMutableAdoptedStyleSheets) {
|
|
6225
6230
|
// This is only supported in later versions of Chromium:
|
|
6226
6231
|
// https://chromestatus.com/feature/5638996492288000
|
|
6227
|
-
|
|
6232
|
+
adoptedStyleSheets.push(styleSheet);
|
|
6228
6233
|
} else {
|
|
6229
|
-
target.adoptedStyleSheets = [].concat(_toConsumableArray(
|
|
6234
|
+
target.adoptedStyleSheets = [].concat(_toConsumableArray(adoptedStyleSheets), [styleSheet]);
|
|
6230
6235
|
}
|
|
6231
6236
|
}
|
|
6232
6237
|
}
|
|
6233
6238
|
|
|
6234
6239
|
function insertStyleElement(content, target) {
|
|
6235
6240
|
// Avoid inserting duplicate `<style>`s
|
|
6236
|
-
var sheets =
|
|
6241
|
+
var sheets = shadowRootsToStyleSheets.get(target);
|
|
6237
6242
|
|
|
6238
6243
|
if (isUndefined$1(sheets)) {
|
|
6239
6244
|
sheets = create(null);
|
|
6240
|
-
|
|
6245
|
+
shadowRootsToStyleSheets.set(target, sheets);
|
|
6241
6246
|
}
|
|
6242
6247
|
|
|
6243
6248
|
if (sheets[content]) {
|
|
@@ -6889,7 +6894,7 @@ var LWC = (function (exports) {
|
|
|
6889
6894
|
});
|
|
6890
6895
|
freeze(LightningElement);
|
|
6891
6896
|
seal(LightningElement.prototype);
|
|
6892
|
-
/* version: 2.
|
|
6897
|
+
/* version: 2.11.0 */
|
|
6893
6898
|
|
|
6894
6899
|
exports.LightningElement = LightningElement;
|
|
6895
6900
|
exports.__unstable__ProfilerControl = profilerControl;
|