lwc 2.18.0 → 2.20.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 +140 -140
- package/dist/engine-dom/iife/es2017/engine-dom.js +140 -140
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +119 -119
- package/dist/engine-dom/iife/es5/engine-dom.js +152 -153
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +130 -132
- package/dist/engine-dom/umd/es2017/engine-dom.js +140 -140
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +119 -119
- package/dist/engine-dom/umd/es5/engine-dom.js +152 -153
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +130 -132
- package/dist/engine-server/commonjs/es2017/engine-server.js +148 -160
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +148 -160
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +20 -20
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +20 -20
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +20 -20
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +20 -20
- package/dist/wire-service/esm/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es5/wire-service.js +4 -4
- package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +4 -4
- package/dist/wire-service/umd/es2017/wire-service.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es5/wire-service.js +4 -4
- package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +4 -4
- package/package.json +7 -7
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf2(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
|
|
8
8
|
|
|
9
|
-
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
9
|
+
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
10
10
|
|
|
11
11
|
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
|
|
12
12
|
|
|
13
|
-
function _get2() { if (typeof Reflect !== "undefined" && Reflect.get) { _get2 = Reflect.get; } else { _get2 = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get2.apply(this, arguments); }
|
|
13
|
+
function _get2() { if (typeof Reflect !== "undefined" && Reflect.get) { _get2 = Reflect.get.bind(); } else { _get2 = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get2.apply(this, arguments); }
|
|
14
14
|
|
|
15
15
|
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf2(object); if (object === null) break; } return object; }
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
20
20
|
|
|
21
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
21
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
22
22
|
|
|
23
23
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
30
30
|
|
|
31
|
-
function _getPrototypeOf2(o) { _getPrototypeOf2 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf2(o); }
|
|
31
|
+
function _getPrototypeOf2(o) { _getPrototypeOf2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf2(o); }
|
|
32
32
|
|
|
33
33
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
34
34
|
|
|
@@ -228,7 +228,6 @@
|
|
|
228
228
|
var AriaAttrNameToPropNameMap = create(null);
|
|
229
229
|
var AriaPropNameToAttrNameMap = create(null); // Synthetic creation of all AOM property descriptors for Custom Elements
|
|
230
230
|
|
|
231
|
-
// Synthetic creation of all AOM property descriptors for Custom Elements
|
|
232
231
|
forEach.call(AriaPropertyNames, function (propName) {
|
|
233
232
|
var attrName = StringToLowerCase.call(StringReplace.call(propName, /^aria/, function () {
|
|
234
233
|
return 'aria-';
|
|
@@ -299,6 +298,9 @@
|
|
|
299
298
|
var KEY__SHADOW_TOKEN = '$shadowToken$';
|
|
300
299
|
var KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
301
300
|
var KEY__SCOPED_CSS = '$scoped$';
|
|
301
|
+
var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace';
|
|
302
|
+
var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
|
|
303
|
+
var XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink';
|
|
302
304
|
/**
|
|
303
305
|
* Map composed of properties to attributes not following the HTML property to attribute mapping
|
|
304
306
|
* convention.
|
|
@@ -347,11 +349,7 @@
|
|
|
347
349
|
CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
|
|
348
350
|
return attributeName;
|
|
349
351
|
}
|
|
350
|
-
|
|
351
|
-
var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace';
|
|
352
|
-
var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
|
|
353
|
-
var XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink';
|
|
354
|
-
/** version: 2.18.0 */
|
|
352
|
+
/** version: 2.20.0 */
|
|
355
353
|
|
|
356
354
|
/*
|
|
357
355
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1778,7 +1776,7 @@
|
|
|
1778
1776
|
associateVM(elm, vm);
|
|
1779
1777
|
|
|
1780
1778
|
if (vm.renderMode === 1
|
|
1781
|
-
/* Shadow */
|
|
1779
|
+
/* RenderMode.Shadow */
|
|
1782
1780
|
) {
|
|
1783
1781
|
vm.renderRoot = doAttachShadow(vm);
|
|
1784
1782
|
} else {
|
|
@@ -2753,9 +2751,9 @@
|
|
|
2753
2751
|
|
|
2754
2752
|
if (!isUndefined$1(ctorRenderMode)) {
|
|
2755
2753
|
renderMode = ctorRenderMode === 'light' ? 0
|
|
2756
|
-
/* Light */
|
|
2754
|
+
/* RenderMode.Light */
|
|
2757
2755
|
: 1
|
|
2758
|
-
/* Shadow */
|
|
2756
|
+
/* RenderMode.Shadow */
|
|
2759
2757
|
;
|
|
2760
2758
|
}
|
|
2761
2759
|
|
|
@@ -2862,10 +2860,10 @@
|
|
|
2862
2860
|
propsConfig: EmptyObject,
|
|
2863
2861
|
methods: EmptyObject,
|
|
2864
2862
|
renderMode: 1
|
|
2865
|
-
/* Shadow */
|
|
2863
|
+
/* RenderMode.Shadow */
|
|
2866
2864
|
,
|
|
2867
2865
|
shadowSupportMode: "reset"
|
|
2868
|
-
/* Default */
|
|
2866
|
+
/* ShadowSupportMode.Default */
|
|
2869
2867
|
,
|
|
2870
2868
|
wire: EmptyObject,
|
|
2871
2869
|
bridge: BaseBridgeElement,
|
|
@@ -2895,7 +2893,7 @@
|
|
|
2895
2893
|
publicProps[key] = {
|
|
2896
2894
|
config: propsConfig[key] || 0,
|
|
2897
2895
|
type: "any"
|
|
2898
|
-
/* any */
|
|
2896
|
+
/* PropDefType.any */
|
|
2899
2897
|
,
|
|
2900
2898
|
attr: htmlPropertyToAttribute(key)
|
|
2901
2899
|
};
|
|
@@ -2978,9 +2976,9 @@
|
|
|
2978
2976
|
function isVBaseElement(vnode) {
|
|
2979
2977
|
var type = vnode.type;
|
|
2980
2978
|
return type === 2
|
|
2981
|
-
/* Element */
|
|
2979
|
+
/* VNodeType.Element */
|
|
2982
2980
|
|| type === 3
|
|
2983
|
-
/* CustomElement */
|
|
2981
|
+
/* VNodeType.CustomElement */
|
|
2984
2982
|
;
|
|
2985
2983
|
}
|
|
2986
2984
|
|
|
@@ -3286,33 +3284,33 @@
|
|
|
3286
3284
|
|
|
3287
3285
|
switch (n2.type) {
|
|
3288
3286
|
case 0
|
|
3289
|
-
/* Text */
|
|
3287
|
+
/* VNodeType.Text */
|
|
3290
3288
|
:
|
|
3291
3289
|
// VText has no special capability, fallback to the owner's renderer
|
|
3292
3290
|
patchText(n1, n2, renderer);
|
|
3293
3291
|
break;
|
|
3294
3292
|
|
|
3295
3293
|
case 1
|
|
3296
|
-
/* Comment */
|
|
3294
|
+
/* VNodeType.Comment */
|
|
3297
3295
|
:
|
|
3298
3296
|
// VComment has no special capability, fallback to the owner's renderer
|
|
3299
3297
|
patchComment(n1, n2, renderer);
|
|
3300
3298
|
break;
|
|
3301
3299
|
|
|
3302
3300
|
case 4
|
|
3303
|
-
/* Static */
|
|
3301
|
+
/* VNodeType.Static */
|
|
3304
3302
|
:
|
|
3305
3303
|
n2.elm = n1.elm;
|
|
3306
3304
|
break;
|
|
3307
3305
|
|
|
3308
3306
|
case 2
|
|
3309
|
-
/* Element */
|
|
3307
|
+
/* VNodeType.Element */
|
|
3310
3308
|
:
|
|
3311
3309
|
patchElement(n1, n2, (_a = n2.data.renderer) !== null && _a !== void 0 ? _a : renderer);
|
|
3312
3310
|
break;
|
|
3313
3311
|
|
|
3314
3312
|
case 3
|
|
3315
|
-
/* CustomElement */
|
|
3313
|
+
/* VNodeType.CustomElement */
|
|
3316
3314
|
:
|
|
3317
3315
|
patchCustomElement(n1, n2, (_b = n2.data.renderer) !== null && _b !== void 0 ? _b : renderer);
|
|
3318
3316
|
break;
|
|
@@ -3324,35 +3322,35 @@
|
|
|
3324
3322
|
|
|
3325
3323
|
switch (node.type) {
|
|
3326
3324
|
case 0
|
|
3327
|
-
/* Text */
|
|
3325
|
+
/* VNodeType.Text */
|
|
3328
3326
|
:
|
|
3329
3327
|
// VText has no special capability, fallback to the owner's renderer
|
|
3330
3328
|
mountText(node, parent, anchor, renderer);
|
|
3331
3329
|
break;
|
|
3332
3330
|
|
|
3333
3331
|
case 1
|
|
3334
|
-
/* Comment */
|
|
3332
|
+
/* VNodeType.Comment */
|
|
3335
3333
|
:
|
|
3336
3334
|
// VComment has no special capability, fallback to the owner's renderer
|
|
3337
3335
|
mountComment(node, parent, anchor, renderer);
|
|
3338
3336
|
break;
|
|
3339
3337
|
|
|
3340
3338
|
case 4
|
|
3341
|
-
/* Static */
|
|
3339
|
+
/* VNodeType.Static */
|
|
3342
3340
|
:
|
|
3343
3341
|
// VStatic cannot have a custom renderer associated to them, using owner's renderer
|
|
3344
3342
|
mountStatic(node, parent, anchor, renderer);
|
|
3345
3343
|
break;
|
|
3346
3344
|
|
|
3347
3345
|
case 2
|
|
3348
|
-
/* Element */
|
|
3346
|
+
/* VNodeType.Element */
|
|
3349
3347
|
:
|
|
3350
3348
|
// If the vnode data has a renderer override use it, else fallback to owner's renderer
|
|
3351
3349
|
mountElement(node, parent, anchor, (_a = node.data.renderer) !== null && _a !== void 0 ? _a : renderer);
|
|
3352
3350
|
break;
|
|
3353
3351
|
|
|
3354
3352
|
case 3
|
|
3355
|
-
/* CustomElement */
|
|
3353
|
+
/* VNodeType.CustomElement */
|
|
3356
3354
|
:
|
|
3357
3355
|
// If the vnode data has a renderer override use it, else fallback to owner's renderer
|
|
3358
3356
|
mountCustomElement(node, parent, anchor, (_b = node.data.renderer) !== null && _b !== void 0 ? _b : renderer);
|
|
@@ -3426,9 +3424,9 @@
|
|
|
3426
3424
|
|
|
3427
3425
|
if (isSyntheticShadowDefined) {
|
|
3428
3426
|
if (shadowMode === 1
|
|
3429
|
-
/* Synthetic */
|
|
3427
|
+
/* ShadowMode.Synthetic */
|
|
3430
3428
|
|| renderMode === 0
|
|
3431
|
-
/* Light */
|
|
3429
|
+
/* RenderMode.Light */
|
|
3432
3430
|
) {
|
|
3433
3431
|
elm[KEY__SHADOW_STATIC] = true;
|
|
3434
3432
|
}
|
|
@@ -3528,20 +3526,20 @@
|
|
|
3528
3526
|
|
|
3529
3527
|
switch (type) {
|
|
3530
3528
|
case 2
|
|
3531
|
-
/* Element */
|
|
3529
|
+
/* VNodeType.Element */
|
|
3532
3530
|
:
|
|
3533
3531
|
{
|
|
3534
3532
|
// Slot content is removed to trigger slotchange event when removing slot.
|
|
3535
3533
|
// Only required for synthetic shadow.
|
|
3536
3534
|
var shouldRemoveChildren = sel === 'slot' && vnode.owner.shadowMode === 1
|
|
3537
|
-
/* Synthetic */
|
|
3535
|
+
/* ShadowMode.Synthetic */
|
|
3538
3536
|
;
|
|
3539
3537
|
unmountVNodes(vnode.children, elm, renderer, shouldRemoveChildren);
|
|
3540
3538
|
break;
|
|
3541
3539
|
}
|
|
3542
3540
|
|
|
3543
3541
|
case 3
|
|
3544
|
-
/* CustomElement */
|
|
3542
|
+
/* VNodeType.CustomElement */
|
|
3545
3543
|
:
|
|
3546
3544
|
{
|
|
3547
3545
|
var vm = vnode.vm; // No need to unmount the children here, `removeVM` will take care of removing the
|
|
@@ -3602,9 +3600,9 @@
|
|
|
3602
3600
|
|
|
3603
3601
|
if (isSyntheticShadowDefined) {
|
|
3604
3602
|
if (shadowMode === 1
|
|
3605
|
-
/* Synthetic */
|
|
3603
|
+
/* ShadowMode.Synthetic */
|
|
3606
3604
|
|| renderMode === 0
|
|
3607
|
-
/* Light */
|
|
3605
|
+
/* RenderMode.Light */
|
|
3608
3606
|
) {
|
|
3609
3607
|
elm[KEY__SHADOW_RESOLVER] = renderRoot[KEY__SHADOW_RESOLVER];
|
|
3610
3608
|
}
|
|
@@ -3649,13 +3647,13 @@
|
|
|
3649
3647
|
setScopeTokenClassIfNecessary(elm, owner, renderer);
|
|
3650
3648
|
|
|
3651
3649
|
if (owner.shadowMode === 1
|
|
3652
|
-
/* Synthetic */
|
|
3650
|
+
/* ShadowMode.Synthetic */
|
|
3653
3651
|
) {
|
|
3654
3652
|
var context = vnode.data.context;
|
|
3655
3653
|
var stylesheetToken = owner.context.stylesheetToken;
|
|
3656
3654
|
|
|
3657
3655
|
if (!isUndefined$1(context) && !isUndefined$1(context.lwc) && context.lwc.dom === "manual"
|
|
3658
|
-
/* Manual */
|
|
3656
|
+
/* LwcDomMode.Manual */
|
|
3659
3657
|
) {
|
|
3660
3658
|
// this element will now accept any manual content inserted into it
|
|
3661
3659
|
observeElementChildNodes(elm);
|
|
@@ -3686,9 +3684,9 @@
|
|
|
3686
3684
|
shadowMode = vm.shadowMode;
|
|
3687
3685
|
|
|
3688
3686
|
if (shadowMode === 1
|
|
3689
|
-
/* Synthetic */
|
|
3687
|
+
/* ShadowMode.Synthetic */
|
|
3690
3688
|
|| renderMode === 0
|
|
3691
|
-
/* Light */
|
|
3689
|
+
/* RenderMode.Light */
|
|
3692
3690
|
) {
|
|
3693
3691
|
// slow path
|
|
3694
3692
|
allocateInSlot(vm, children); // save the allocated children in case this vnode is reused.
|
|
@@ -3715,7 +3713,7 @@
|
|
|
3715
3713
|
setScopeTokenClassIfNecessary(elm, owner, renderer);
|
|
3716
3714
|
|
|
3717
3715
|
if (owner.shadowMode === 1
|
|
3718
|
-
/* Synthetic */
|
|
3716
|
+
/* ShadowMode.Synthetic */
|
|
3719
3717
|
) {
|
|
3720
3718
|
var stylesheetToken = owner.context.stylesheetToken; // when running in synthetic shadow mode, we need to set the shadowToken value
|
|
3721
3719
|
// into each element from the template, so they can be styled accordingly.
|
|
@@ -3983,7 +3981,7 @@
|
|
|
3983
3981
|
function st(fragment, key) {
|
|
3984
3982
|
return {
|
|
3985
3983
|
type: 4
|
|
3986
|
-
/* Static */
|
|
3984
|
+
/* VNodeType.Static */
|
|
3987
3985
|
,
|
|
3988
3986
|
sel: undefined,
|
|
3989
3987
|
key: key,
|
|
@@ -4002,7 +4000,7 @@
|
|
|
4002
4000
|
var key = data.key;
|
|
4003
4001
|
return {
|
|
4004
4002
|
type: 2
|
|
4005
|
-
/* Element */
|
|
4003
|
+
/* VNodeType.Element */
|
|
4006
4004
|
,
|
|
4007
4005
|
sel: sel,
|
|
4008
4006
|
data: data,
|
|
@@ -4035,14 +4033,14 @@
|
|
|
4035
4033
|
shadowMode = vmBeingRendered.shadowMode;
|
|
4036
4034
|
|
|
4037
4035
|
if (renderMode === 0
|
|
4038
|
-
/* Light */
|
|
4036
|
+
/* RenderMode.Light */
|
|
4039
4037
|
) {
|
|
4040
4038
|
sc(children);
|
|
4041
4039
|
return children;
|
|
4042
4040
|
}
|
|
4043
4041
|
|
|
4044
4042
|
if (shadowMode === 1
|
|
4045
|
-
/* Synthetic */
|
|
4043
|
+
/* ShadowMode.Synthetic */
|
|
4046
4044
|
) {
|
|
4047
4045
|
// TODO [#1276]: compiler should give us some sort of indicator when a vnodes collection is dynamic
|
|
4048
4046
|
sc(children);
|
|
@@ -4060,7 +4058,7 @@
|
|
|
4060
4058
|
var elm, aChildren, vm;
|
|
4061
4059
|
var vnode = {
|
|
4062
4060
|
type: 3
|
|
4063
|
-
/* CustomElement */
|
|
4061
|
+
/* VNodeType.CustomElement */
|
|
4064
4062
|
,
|
|
4065
4063
|
sel: sel,
|
|
4066
4064
|
data: data,
|
|
@@ -4146,7 +4144,7 @@
|
|
|
4146
4144
|
var sel, key, elm;
|
|
4147
4145
|
return {
|
|
4148
4146
|
type: 0
|
|
4149
|
-
/* Text */
|
|
4147
|
+
/* VNodeType.Text */
|
|
4150
4148
|
,
|
|
4151
4149
|
sel: sel,
|
|
4152
4150
|
text: text,
|
|
@@ -4161,7 +4159,7 @@
|
|
|
4161
4159
|
var sel, key, elm;
|
|
4162
4160
|
return {
|
|
4163
4161
|
type: 1
|
|
4164
|
-
/* Comment */
|
|
4162
|
+
/* VNodeType.Comment */
|
|
4165
4163
|
,
|
|
4166
4164
|
sel: sel,
|
|
4167
4165
|
text: text,
|
|
@@ -4218,7 +4216,7 @@
|
|
|
4218
4216
|
shadowMode = vmBeingRendered.shadowMode;
|
|
4219
4217
|
|
|
4220
4218
|
if (shadowMode === 1
|
|
4221
|
-
/* Synthetic */
|
|
4219
|
+
/* ShadowMode.Synthetic */
|
|
4222
4220
|
) {
|
|
4223
4221
|
return StringReplace.call(id, /\S+/g, function (id) {
|
|
4224
4222
|
return "".concat(id, "-").concat(idx);
|
|
@@ -4246,7 +4244,7 @@
|
|
|
4246
4244
|
shadowMode = vmBeingRendered.shadowMode; // Apply transformation only for fragment-only-urls, and only in shadow DOM
|
|
4247
4245
|
|
|
4248
4246
|
if (shadowMode === 1
|
|
4249
|
-
/* Synthetic */
|
|
4247
|
+
/* ShadowMode.Synthetic */
|
|
4250
4248
|
&& /^#/.test(url)) {
|
|
4251
4249
|
return "".concat(url, "-").concat(idx);
|
|
4252
4250
|
}
|
|
@@ -4394,9 +4392,9 @@
|
|
|
4394
4392
|
var newStylesheets = template.stylesheets,
|
|
4395
4393
|
newStylesheetToken = template.stylesheetToken;
|
|
4396
4394
|
var isSyntheticShadow = renderMode === 1
|
|
4397
|
-
/* Shadow */
|
|
4395
|
+
/* RenderMode.Shadow */
|
|
4398
4396
|
&& shadowMode === 1
|
|
4399
|
-
/* Synthetic */
|
|
4397
|
+
/* ShadowMode.Synthetic */
|
|
4400
4398
|
;
|
|
4401
4399
|
var hasScopedStyles = context.hasScopedStyles;
|
|
4402
4400
|
var newToken;
|
|
@@ -4456,26 +4454,26 @@
|
|
|
4456
4454
|
var isScopedCss = stylesheet[KEY__SCOPED_CSS]; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
|
|
4457
4455
|
|
|
4458
4456
|
var scopeToken = isScopedCss || vm.shadowMode === 1
|
|
4459
|
-
/* Synthetic */
|
|
4457
|
+
/* ShadowMode.Synthetic */
|
|
4460
4458
|
&& vm.renderMode === 1
|
|
4461
|
-
/* Shadow */
|
|
4459
|
+
/* RenderMode.Shadow */
|
|
4462
4460
|
? stylesheetToken : undefined; // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
|
|
4463
4461
|
// native shadow DOM. Synthetic shadow DOM never uses `:host`.
|
|
4464
4462
|
|
|
4465
4463
|
var useActualHostSelector = vm.renderMode === 0
|
|
4466
|
-
/* Light */
|
|
4464
|
+
/* RenderMode.Light */
|
|
4467
4465
|
? !isScopedCss : vm.shadowMode === 0
|
|
4468
|
-
/* Native */
|
|
4466
|
+
/* ShadowMode.Native */
|
|
4469
4467
|
; // Use the native :dir() pseudoclass only in native shadow DOM. Otherwise, in synthetic shadow,
|
|
4470
4468
|
// we use an attribute selector on the host to simulate :dir().
|
|
4471
4469
|
|
|
4472
4470
|
var useNativeDirPseudoclass = void 0;
|
|
4473
4471
|
|
|
4474
4472
|
if (vm.renderMode === 1
|
|
4475
|
-
/* Shadow */
|
|
4473
|
+
/* RenderMode.Shadow */
|
|
4476
4474
|
) {
|
|
4477
4475
|
useNativeDirPseudoclass = vm.shadowMode === 0
|
|
4478
|
-
/* Native */
|
|
4476
|
+
/* ShadowMode.Native */
|
|
4479
4477
|
;
|
|
4480
4478
|
} else {
|
|
4481
4479
|
// Light DOM components should only render `[dir]` if they're inside of a synthetic shadow root.
|
|
@@ -4486,7 +4484,7 @@
|
|
|
4486
4484
|
}
|
|
4487
4485
|
|
|
4488
4486
|
useNativeDirPseudoclass = isNull(root) || root.shadowMode === 0
|
|
4489
|
-
/* Native */
|
|
4487
|
+
/* ShadowMode.Native */
|
|
4490
4488
|
;
|
|
4491
4489
|
}
|
|
4492
4490
|
|
|
@@ -4517,7 +4515,7 @@
|
|
|
4517
4515
|
|
|
4518
4516
|
while (!isNull(owner)) {
|
|
4519
4517
|
if (owner.renderMode === 1
|
|
4520
|
-
/* Shadow */
|
|
4518
|
+
/* RenderMode.Shadow */
|
|
4521
4519
|
) {
|
|
4522
4520
|
return owner;
|
|
4523
4521
|
}
|
|
@@ -4532,7 +4530,7 @@
|
|
|
4532
4530
|
var owner = getNearestShadowComponent(vm);
|
|
4533
4531
|
|
|
4534
4532
|
if (!isNull(owner) && owner.shadowMode === 1
|
|
4535
|
-
/* Synthetic */
|
|
4533
|
+
/* ShadowMode.Synthetic */
|
|
4536
4534
|
) {
|
|
4537
4535
|
// Synthetic-within-native is impossible. So if the nearest shadow component is
|
|
4538
4536
|
// synthetic, we know we won't find a native component if we go any further.
|
|
@@ -4550,9 +4548,9 @@
|
|
|
4550
4548
|
insertStylesheet = _vm$renderer2.insertStylesheet;
|
|
4551
4549
|
|
|
4552
4550
|
if (renderMode === 1
|
|
4553
|
-
/* Shadow */
|
|
4551
|
+
/* RenderMode.Shadow */
|
|
4554
4552
|
&& shadowMode === 1
|
|
4555
|
-
/* Synthetic */
|
|
4553
|
+
/* ShadowMode.Synthetic */
|
|
4556
4554
|
) {
|
|
4557
4555
|
for (var _i17 = 0; _i17 < stylesheets.length; _i17++) {
|
|
4558
4556
|
insertStylesheet(stylesheets[_i17]);
|
|
@@ -4605,7 +4603,7 @@
|
|
|
4605
4603
|
|
|
4606
4604
|
if (isProfilerEnabled) {
|
|
4607
4605
|
currentDispatcher(opId, 0
|
|
4608
|
-
/* Start */
|
|
4606
|
+
/* Phase.Start */
|
|
4609
4607
|
, vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
|
|
4610
4608
|
}
|
|
4611
4609
|
}
|
|
@@ -4614,7 +4612,7 @@
|
|
|
4614
4612
|
|
|
4615
4613
|
if (isProfilerEnabled) {
|
|
4616
4614
|
currentDispatcher(opId, 1
|
|
4617
|
-
/* Stop */
|
|
4615
|
+
/* Phase.Stop */
|
|
4618
4616
|
, vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
|
|
4619
4617
|
}
|
|
4620
4618
|
}
|
|
@@ -4623,7 +4621,7 @@
|
|
|
4623
4621
|
|
|
4624
4622
|
if (isProfilerEnabled) {
|
|
4625
4623
|
currentDispatcher(opId, 0
|
|
4626
|
-
/* Start */
|
|
4624
|
+
/* Phase.Start */
|
|
4627
4625
|
, vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
|
|
4628
4626
|
}
|
|
4629
4627
|
}
|
|
@@ -4632,7 +4630,7 @@
|
|
|
4632
4630
|
|
|
4633
4631
|
if (isProfilerEnabled) {
|
|
4634
4632
|
currentDispatcher(opId, 1
|
|
4635
|
-
/* Stop */
|
|
4633
|
+
/* Phase.Stop */
|
|
4636
4634
|
, vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
|
|
4637
4635
|
}
|
|
4638
4636
|
}
|
|
@@ -4666,7 +4664,7 @@
|
|
|
4666
4664
|
if (template === defaultEmptyTemplate) return;
|
|
4667
4665
|
|
|
4668
4666
|
if (vm.renderMode === 0
|
|
4669
|
-
/* Light */
|
|
4667
|
+
/* RenderMode.Light */
|
|
4670
4668
|
) {
|
|
4671
4669
|
assert.isTrue(template.renderMode === 'light', "Light DOM components can't render shadow DOM templates. Add an 'lwc:render-mode=\"light\"' directive to the root template tag of ".concat(getComponentTag(vm), "."));
|
|
4672
4670
|
} else {
|
|
@@ -4691,19 +4689,19 @@
|
|
|
4691
4689
|
|
|
4692
4690
|
var hasStyleToken = !isUndefined$1(stylesheetToken);
|
|
4693
4691
|
var isSyntheticShadow = shadowMode === 1
|
|
4694
|
-
/* Synthetic */
|
|
4692
|
+
/* ShadowMode.Synthetic */
|
|
4695
4693
|
;
|
|
4696
4694
|
var cacheKey = 0;
|
|
4697
4695
|
|
|
4698
4696
|
if (hasStyleToken && hasScopedStyles) {
|
|
4699
4697
|
cacheKey |= 1
|
|
4700
|
-
/* HAS_SCOPED_STYLE */
|
|
4698
|
+
/* FragmentCache.HAS_SCOPED_STYLE */
|
|
4701
4699
|
;
|
|
4702
4700
|
}
|
|
4703
4701
|
|
|
4704
4702
|
if (hasStyleToken && isSyntheticShadow) {
|
|
4705
4703
|
cacheKey |= 2
|
|
4706
|
-
/* SHADOW_MODE_SYNTHETIC */
|
|
4704
|
+
/* FragmentCache.SHADOW_MODE_SYNTHETIC */
|
|
4707
4705
|
;
|
|
4708
4706
|
}
|
|
4709
4707
|
|
|
@@ -4768,7 +4766,7 @@
|
|
|
4768
4766
|
// pre
|
|
4769
4767
|
vmBeingRendered = vm;
|
|
4770
4768
|
logOperationStart(1
|
|
4771
|
-
/* Render */
|
|
4769
|
+
/* OperationId.Render */
|
|
4772
4770
|
, vm);
|
|
4773
4771
|
}, function () {
|
|
4774
4772
|
// job
|
|
@@ -4828,7 +4826,7 @@
|
|
|
4828
4826
|
isUpdatingTemplate = isUpdatingTemplateInception;
|
|
4829
4827
|
vmBeingRendered = vmOfTemplateBeingUpdatedInception;
|
|
4830
4828
|
logOperationEnd(1
|
|
4831
|
-
/* Render */
|
|
4829
|
+
/* OperationId.Render */
|
|
4832
4830
|
, vm);
|
|
4833
4831
|
});
|
|
4834
4832
|
|
|
@@ -4867,7 +4865,7 @@
|
|
|
4867
4865
|
var vmBeingConstructedInception = vmBeingConstructed;
|
|
4868
4866
|
var error;
|
|
4869
4867
|
logOperationStart(0
|
|
4870
|
-
/* Constructor */
|
|
4868
|
+
/* OperationId.Constructor */
|
|
4871
4869
|
, vm);
|
|
4872
4870
|
vmBeingConstructed = vm;
|
|
4873
4871
|
/**
|
|
@@ -4890,7 +4888,7 @@
|
|
|
4890
4888
|
error = Object(e);
|
|
4891
4889
|
} finally {
|
|
4892
4890
|
logOperationEnd(0
|
|
4893
|
-
/* Constructor */
|
|
4891
|
+
/* OperationId.Constructor */
|
|
4894
4892
|
, vm);
|
|
4895
4893
|
vmBeingConstructed = vmBeingConstructedInception;
|
|
4896
4894
|
|
|
@@ -5087,12 +5085,12 @@
|
|
|
5087
5085
|
function connectRootElement(elm) {
|
|
5088
5086
|
var vm = getAssociatedVM(elm);
|
|
5089
5087
|
logGlobalOperationStart(7
|
|
5090
|
-
/* GlobalHydrate */
|
|
5088
|
+
/* OperationId.GlobalHydrate */
|
|
5091
5089
|
, vm); // Usually means moving the element from one place to another, which is observable via
|
|
5092
5090
|
// life-cycle hooks.
|
|
5093
5091
|
|
|
5094
5092
|
if (vm.state === 1
|
|
5095
|
-
/* connected */
|
|
5093
|
+
/* VMState.connected */
|
|
5096
5094
|
) {
|
|
5097
5095
|
disconnectRootElement(elm);
|
|
5098
5096
|
}
|
|
@@ -5100,7 +5098,7 @@
|
|
|
5100
5098
|
runConnectedCallback(vm);
|
|
5101
5099
|
rehydrate(vm);
|
|
5102
5100
|
logGlobalOperationEnd(7
|
|
5103
|
-
/* GlobalHydrate */
|
|
5101
|
+
/* OperationId.GlobalHydrate */
|
|
5104
5102
|
, vm);
|
|
5105
5103
|
}
|
|
5106
5104
|
|
|
@@ -5119,7 +5117,7 @@
|
|
|
5119
5117
|
var state = vm.state;
|
|
5120
5118
|
|
|
5121
5119
|
if (state !== 2
|
|
5122
|
-
/* disconnected */
|
|
5120
|
+
/* VMState.disconnected */
|
|
5123
5121
|
) {
|
|
5124
5122
|
var oar = vm.oar,
|
|
5125
5123
|
tro = vm.tro; // Making sure that any observing record will not trigger the rehydrated on this vm
|
|
@@ -5148,7 +5146,7 @@
|
|
|
5148
5146
|
var ancestor = vm.owner;
|
|
5149
5147
|
|
|
5150
5148
|
while (!isNull(ancestor) && ancestor.renderMode === 0
|
|
5151
|
-
/* Light */
|
|
5149
|
+
/* RenderMode.Light */
|
|
5152
5150
|
) {
|
|
5153
5151
|
ancestor = ancestor.owner;
|
|
5154
5152
|
}
|
|
@@ -5167,7 +5165,7 @@
|
|
|
5167
5165
|
def: def,
|
|
5168
5166
|
idx: idx++,
|
|
5169
5167
|
state: 0
|
|
5170
|
-
/* created */
|
|
5168
|
+
/* VMState.created */
|
|
5171
5169
|
,
|
|
5172
5170
|
isScheduled: false,
|
|
5173
5171
|
isDirty: true,
|
|
@@ -5227,57 +5225,57 @@
|
|
|
5227
5225
|
|
|
5228
5226
|
if (isSyntheticShadowDefined) {
|
|
5229
5227
|
if (def.renderMode === 0
|
|
5230
|
-
/* Light */
|
|
5228
|
+
/* RenderMode.Light */
|
|
5231
5229
|
) {
|
|
5232
5230
|
// ShadowMode.Native implies "not synthetic shadow" which is consistent with how
|
|
5233
5231
|
// everything defaults to native when the synthetic shadow polyfill is unavailable.
|
|
5234
5232
|
shadowMode = 0
|
|
5235
|
-
/* Native */
|
|
5233
|
+
/* ShadowMode.Native */
|
|
5236
5234
|
;
|
|
5237
5235
|
} else if (isNativeShadowDefined) {
|
|
5238
5236
|
// Not combined with above condition because @lwc/features only supports identifiers in
|
|
5239
5237
|
// the if-condition.
|
|
5240
5238
|
if (runtimeFlags.ENABLE_MIXED_SHADOW_MODE) {
|
|
5241
5239
|
if (def.shadowSupportMode === "any"
|
|
5242
|
-
/* Any */
|
|
5240
|
+
/* ShadowSupportMode.Any */
|
|
5243
5241
|
) {
|
|
5244
5242
|
shadowMode = 0
|
|
5245
|
-
/* Native */
|
|
5243
|
+
/* ShadowMode.Native */
|
|
5246
5244
|
;
|
|
5247
5245
|
} else {
|
|
5248
5246
|
var shadowAncestor = getNearestShadowAncestor(vm);
|
|
5249
5247
|
|
|
5250
5248
|
if (!isNull(shadowAncestor) && shadowAncestor.shadowMode === 0
|
|
5251
|
-
/* Native */
|
|
5249
|
+
/* ShadowMode.Native */
|
|
5252
5250
|
) {
|
|
5253
5251
|
// Transitive support for native Shadow DOM. A component in native mode
|
|
5254
5252
|
// transitively opts all of its descendants into native.
|
|
5255
5253
|
shadowMode = 0
|
|
5256
|
-
/* Native */
|
|
5254
|
+
/* ShadowMode.Native */
|
|
5257
5255
|
;
|
|
5258
5256
|
} else {
|
|
5259
5257
|
// Synthetic if neither this component nor any of its ancestors are configured
|
|
5260
5258
|
// to be native.
|
|
5261
5259
|
shadowMode = 1
|
|
5262
|
-
/* Synthetic */
|
|
5260
|
+
/* ShadowMode.Synthetic */
|
|
5263
5261
|
;
|
|
5264
5262
|
}
|
|
5265
5263
|
}
|
|
5266
5264
|
} else {
|
|
5267
5265
|
shadowMode = 1
|
|
5268
|
-
/* Synthetic */
|
|
5266
|
+
/* ShadowMode.Synthetic */
|
|
5269
5267
|
;
|
|
5270
5268
|
}
|
|
5271
5269
|
} else {
|
|
5272
5270
|
// Synthetic if there is no native Shadow DOM support.
|
|
5273
5271
|
shadowMode = 1
|
|
5274
|
-
/* Synthetic */
|
|
5272
|
+
/* ShadowMode.Synthetic */
|
|
5275
5273
|
;
|
|
5276
5274
|
}
|
|
5277
5275
|
} else {
|
|
5278
5276
|
// Native if the synthetic shadow polyfill is unavailable.
|
|
5279
5277
|
shadowMode = 0
|
|
5280
|
-
/* Native */
|
|
5278
|
+
/* ShadowMode.Native */
|
|
5281
5279
|
;
|
|
5282
5280
|
}
|
|
5283
5281
|
|
|
@@ -5321,7 +5319,7 @@
|
|
|
5321
5319
|
runWithBoundaryProtection(vm, vm, function () {
|
|
5322
5320
|
// pre
|
|
5323
5321
|
logOperationStart(2
|
|
5324
|
-
/* Patch */
|
|
5322
|
+
/* OperationId.Patch */
|
|
5325
5323
|
, vm);
|
|
5326
5324
|
}, function () {
|
|
5327
5325
|
// job
|
|
@@ -5329,14 +5327,14 @@
|
|
|
5329
5327
|
}, function () {
|
|
5330
5328
|
// post
|
|
5331
5329
|
logOperationEnd(2
|
|
5332
|
-
/* Patch */
|
|
5330
|
+
/* OperationId.Patch */
|
|
5333
5331
|
, vm);
|
|
5334
5332
|
});
|
|
5335
5333
|
}
|
|
5336
5334
|
}
|
|
5337
5335
|
|
|
5338
5336
|
if (vm.state === 1
|
|
5339
|
-
/* connected */
|
|
5337
|
+
/* VMState.connected */
|
|
5340
5338
|
) {
|
|
5341
5339
|
// If the element is connected, that means connectedCallback was already issued, and
|
|
5342
5340
|
// any successive rendering should finish with the call to renderedCallback, otherwise
|
|
@@ -5362,11 +5360,11 @@
|
|
|
5362
5360
|
|
|
5363
5361
|
if (!isUndefined$1(renderedCallback)) {
|
|
5364
5362
|
logOperationStart(4
|
|
5365
|
-
/* RenderedCallback */
|
|
5363
|
+
/* OperationId.RenderedCallback */
|
|
5366
5364
|
, vm);
|
|
5367
5365
|
invokeComponentCallback(vm, renderedCallback);
|
|
5368
5366
|
logOperationEnd(4
|
|
5369
|
-
/* RenderedCallback */
|
|
5367
|
+
/* OperationId.RenderedCallback */
|
|
5370
5368
|
, vm);
|
|
5371
5369
|
}
|
|
5372
5370
|
}
|
|
@@ -5375,7 +5373,7 @@
|
|
|
5375
5373
|
|
|
5376
5374
|
function flushRehydrationQueue() {
|
|
5377
5375
|
logGlobalOperationStart(8
|
|
5378
|
-
/* GlobalRehydrate */
|
|
5376
|
+
/* OperationId.GlobalRehydrate */
|
|
5379
5377
|
);
|
|
5380
5378
|
|
|
5381
5379
|
var vms = rehydrateQueue.sort(function (a, b) {
|
|
@@ -5400,7 +5398,7 @@
|
|
|
5400
5398
|
|
|
5401
5399
|
|
|
5402
5400
|
logGlobalOperationEnd(8
|
|
5403
|
-
/* GlobalRehydrate */
|
|
5401
|
+
/* OperationId.GlobalRehydrate */
|
|
5404
5402
|
); // re-throwing the original error will break the current tick, but since the next tick is
|
|
5405
5403
|
// already scheduled, it should continue patching the rest.
|
|
5406
5404
|
|
|
@@ -5409,7 +5407,7 @@
|
|
|
5409
5407
|
}
|
|
5410
5408
|
|
|
5411
5409
|
logGlobalOperationEnd(8
|
|
5412
|
-
/* GlobalRehydrate */
|
|
5410
|
+
/* OperationId.GlobalRehydrate */
|
|
5413
5411
|
);
|
|
5414
5412
|
}
|
|
5415
5413
|
|
|
@@ -5417,13 +5415,13 @@
|
|
|
5417
5415
|
var state = vm.state;
|
|
5418
5416
|
|
|
5419
5417
|
if (state === 1
|
|
5420
|
-
/* connected */
|
|
5418
|
+
/* VMState.connected */
|
|
5421
5419
|
) {
|
|
5422
5420
|
return; // nothing to do since it was already connected
|
|
5423
5421
|
}
|
|
5424
5422
|
|
|
5425
5423
|
vm.state = 1
|
|
5426
|
-
/* connected */
|
|
5424
|
+
/* VMState.connected */
|
|
5427
5425
|
; // reporting connection
|
|
5428
5426
|
|
|
5429
5427
|
var connected = Services.connected;
|
|
@@ -5440,11 +5438,11 @@
|
|
|
5440
5438
|
|
|
5441
5439
|
if (!isUndefined$1(connectedCallback)) {
|
|
5442
5440
|
logOperationStart(3
|
|
5443
|
-
/* ConnectedCallback */
|
|
5441
|
+
/* OperationId.ConnectedCallback */
|
|
5444
5442
|
, vm);
|
|
5445
5443
|
invokeComponentCallback(vm, connectedCallback);
|
|
5446
5444
|
logOperationEnd(3
|
|
5447
|
-
/* ConnectedCallback */
|
|
5445
|
+
/* OperationId.ConnectedCallback */
|
|
5448
5446
|
, vm);
|
|
5449
5447
|
}
|
|
5450
5448
|
}
|
|
@@ -5464,7 +5462,7 @@
|
|
|
5464
5462
|
}
|
|
5465
5463
|
|
|
5466
5464
|
vm.state = 2
|
|
5467
|
-
/* disconnected */
|
|
5465
|
+
/* VMState.disconnected */
|
|
5468
5466
|
; // reporting disconnection
|
|
5469
5467
|
|
|
5470
5468
|
var disconnected = Services.disconnected;
|
|
@@ -5481,11 +5479,11 @@
|
|
|
5481
5479
|
|
|
5482
5480
|
if (!isUndefined$1(disconnectedCallback)) {
|
|
5483
5481
|
logOperationStart(5
|
|
5484
|
-
/* DisconnectedCallback */
|
|
5482
|
+
/* OperationId.DisconnectedCallback */
|
|
5485
5483
|
, vm);
|
|
5486
5484
|
invokeComponentCallback(vm, disconnectedCallback);
|
|
5487
5485
|
logOperationEnd(5
|
|
5488
|
-
/* DisconnectedCallback */
|
|
5486
|
+
/* OperationId.DisconnectedCallback */
|
|
5489
5487
|
, vm);
|
|
5490
5488
|
}
|
|
5491
5489
|
}
|
|
@@ -5535,13 +5533,13 @@
|
|
|
5535
5533
|
if (!isNull(vnode) && !isUndefined$1(vnode.elm)) {
|
|
5536
5534
|
switch (vnode.type) {
|
|
5537
5535
|
case 2
|
|
5538
|
-
/* Element */
|
|
5536
|
+
/* VNodeType.Element */
|
|
5539
5537
|
:
|
|
5540
5538
|
recursivelyDisconnectChildren(vnode.children);
|
|
5541
5539
|
break;
|
|
5542
5540
|
|
|
5543
5541
|
case 3
|
|
5544
|
-
/* CustomElement */
|
|
5542
|
+
/* VNodeType.CustomElement */
|
|
5545
5543
|
:
|
|
5546
5544
|
{
|
|
5547
5545
|
var vm = getAssociatedVM(vnode.elm);
|
|
@@ -5625,13 +5623,13 @@
|
|
|
5625
5623
|
resetComponentRoot(vm); // remove offenders
|
|
5626
5624
|
|
|
5627
5625
|
logOperationStart(6
|
|
5628
|
-
/* ErrorCallback */
|
|
5626
|
+
/* OperationId.ErrorCallback */
|
|
5629
5627
|
, vm); // error boundaries must have an ErrorCallback
|
|
5630
5628
|
|
|
5631
5629
|
var errorCallback = errorBoundaryVm.def.errorCallback;
|
|
5632
5630
|
invokeComponentCallback(errorBoundaryVm, errorCallback, [error, error.wcStack]);
|
|
5633
5631
|
logOperationEnd(6
|
|
5634
|
-
/* ErrorCallback */
|
|
5632
|
+
/* OperationId.ErrorCallback */
|
|
5635
5633
|
, vm);
|
|
5636
5634
|
}
|
|
5637
5635
|
}
|
|
@@ -5721,7 +5719,7 @@
|
|
|
5721
5719
|
var config;
|
|
5722
5720
|
ro.observe(function () {
|
|
5723
5721
|
return config = configCallback(component);
|
|
5724
|
-
}); // eslint-disable-next-line lwc-internal/no-invalid-todo
|
|
5722
|
+
}); // eslint-disable-next-line @lwc/lwc-internal/no-invalid-todo
|
|
5725
5723
|
// TODO: dev-mode validation of config based on the adapter.configSchema
|
|
5726
5724
|
// @ts-ignore it is assigned in the observe() callback
|
|
5727
5725
|
|
|
@@ -5756,7 +5754,7 @@
|
|
|
5756
5754
|
// guarantee that the linkage can be forged.
|
|
5757
5755
|
var contextRegistrationEvent = new WireContextRegistrationEvent(adapterContextToken, {
|
|
5758
5756
|
setNewContext: function setNewContext(newContext) {
|
|
5759
|
-
// eslint-disable-next-line lwc-internal/no-invalid-todo
|
|
5757
|
+
// eslint-disable-next-line @lwc/lwc-internal/no-invalid-todo
|
|
5760
5758
|
// TODO: dev-mode validation of config based on the adapter.contextSchema
|
|
5761
5759
|
callbackWhenContextIsReady(newContext);
|
|
5762
5760
|
},
|
|
@@ -5816,7 +5814,7 @@
|
|
|
5816
5814
|
// (ever), while context can have identity
|
|
5817
5815
|
|
|
5818
5816
|
if (vm.state === 1
|
|
5819
|
-
/* connected */
|
|
5817
|
+
/* VMState.connected */
|
|
5820
5818
|
) {
|
|
5821
5819
|
computeConfigAndUpdate();
|
|
5822
5820
|
}
|
|
@@ -6033,34 +6031,34 @@
|
|
|
6033
6031
|
|
|
6034
6032
|
switch (vnode.type) {
|
|
6035
6033
|
case 0
|
|
6036
|
-
/* Text */
|
|
6034
|
+
/* VNodeType.Text */
|
|
6037
6035
|
:
|
|
6038
6036
|
// VText has no special capability, fallback to the owner's renderer
|
|
6039
6037
|
hydratedNode = hydrateText(node, vnode, renderer);
|
|
6040
6038
|
break;
|
|
6041
6039
|
|
|
6042
6040
|
case 1
|
|
6043
|
-
/* Comment */
|
|
6041
|
+
/* VNodeType.Comment */
|
|
6044
6042
|
:
|
|
6045
6043
|
// VComment has no special capability, fallback to the owner's renderer
|
|
6046
6044
|
hydratedNode = hydrateComment(node, vnode, renderer);
|
|
6047
6045
|
break;
|
|
6048
6046
|
|
|
6049
6047
|
case 4
|
|
6050
|
-
/* Static */
|
|
6048
|
+
/* VNodeType.Static */
|
|
6051
6049
|
:
|
|
6052
6050
|
// VStatic are cacheable and cannot have custom renderer associated to them
|
|
6053
6051
|
hydratedNode = hydrateStaticElement(node, vnode, renderer);
|
|
6054
6052
|
break;
|
|
6055
6053
|
|
|
6056
6054
|
case 2
|
|
6057
|
-
/* Element */
|
|
6055
|
+
/* VNodeType.Element */
|
|
6058
6056
|
:
|
|
6059
6057
|
hydratedNode = hydrateElement(node, vnode, (_a = vnode.data.renderer) !== null && _a !== void 0 ? _a : renderer);
|
|
6060
6058
|
break;
|
|
6061
6059
|
|
|
6062
6060
|
case 3
|
|
6063
|
-
/* CustomElement */
|
|
6061
|
+
/* VNodeType.CustomElement */
|
|
6064
6062
|
:
|
|
6065
6063
|
hydratedNode = hydrateCustomElement(node, vnode, (_b = vnode.data.renderer) !== null && _b !== void 0 ? _b : renderer);
|
|
6066
6064
|
break;
|
|
@@ -6073,7 +6071,7 @@
|
|
|
6073
6071
|
var _a;
|
|
6074
6072
|
|
|
6075
6073
|
if (!hasCorrectNodeType(vnode, node, 3
|
|
6076
|
-
/* TEXT */
|
|
6074
|
+
/* EnvNodeTypes.TEXT */
|
|
6077
6075
|
, renderer)) {
|
|
6078
6076
|
return handleMismatch(node, vnode, renderer);
|
|
6079
6077
|
}
|
|
@@ -6088,7 +6086,7 @@
|
|
|
6088
6086
|
var _a;
|
|
6089
6087
|
|
|
6090
6088
|
if (!hasCorrectNodeType(vnode, node, 8
|
|
6091
|
-
/* COMMENT */
|
|
6089
|
+
/* EnvNodeTypes.COMMENT */
|
|
6092
6090
|
, renderer)) {
|
|
6093
6091
|
return handleMismatch(node, vnode, renderer);
|
|
6094
6092
|
}
|
|
@@ -6110,7 +6108,7 @@
|
|
|
6110
6108
|
|
|
6111
6109
|
function hydrateElement(elm, vnode, renderer) {
|
|
6112
6110
|
if (!hasCorrectNodeType(vnode, elm, 1
|
|
6113
|
-
/* ELEMENT */
|
|
6111
|
+
/* EnvNodeTypes.ELEMENT */
|
|
6114
6112
|
, renderer) || !isMatchingElement(vnode, elm, renderer)) {
|
|
6115
6113
|
return handleMismatch(elm, vnode, renderer);
|
|
6116
6114
|
}
|
|
@@ -6119,7 +6117,7 @@
|
|
|
6119
6117
|
var owner = vnode.owner;
|
|
6120
6118
|
var context = vnode.data.context;
|
|
6121
6119
|
var isDomManual = Boolean(!isUndefined$1(context) && !isUndefined$1(context.lwc) && context.lwc.dom === "manual"
|
|
6122
|
-
/* Manual */
|
|
6120
|
+
/* LwcDomMode.Manual */
|
|
6123
6121
|
);
|
|
6124
6122
|
|
|
6125
6123
|
if (isDomManual) {
|
|
@@ -6150,7 +6148,7 @@
|
|
|
6150
6148
|
|
|
6151
6149
|
function hydrateCustomElement(elm, vnode, renderer) {
|
|
6152
6150
|
if (!hasCorrectNodeType(vnode, elm, 1
|
|
6153
|
-
/* ELEMENT */
|
|
6151
|
+
/* EnvNodeTypes.ELEMENT */
|
|
6154
6152
|
, renderer) || !isMatchingElement(vnode, elm, renderer)) {
|
|
6155
6153
|
return handleMismatch(elm, vnode, renderer);
|
|
6156
6154
|
}
|
|
@@ -6173,7 +6171,7 @@
|
|
|
6173
6171
|
runConnectedCallback(vm);
|
|
6174
6172
|
|
|
6175
6173
|
if (vm.renderMode !== 0
|
|
6176
|
-
/* Light */
|
|
6174
|
+
/* RenderMode.Light */
|
|
6177
6175
|
) {
|
|
6178
6176
|
var _getFirstChild2 = renderer.getFirstChild; // VM is not rendering in Light DOM, we can proceed and hydrate the slotted content.
|
|
6179
6177
|
// Note: for Light DOM, this is handled while hydrating the VM
|
|
@@ -6368,10 +6366,10 @@
|
|
|
6368
6366
|
getAttribute = renderer.getAttribute;
|
|
6369
6367
|
|
|
6370
6368
|
if (getProperty(client, 'nodeType') === 3
|
|
6371
|
-
/* TEXT */
|
|
6369
|
+
/* EnvNodeTypes.TEXT */
|
|
6372
6370
|
) {
|
|
6373
6371
|
if (!hasCorrectNodeType(vnode, ssr, 3
|
|
6374
|
-
/* TEXT */
|
|
6372
|
+
/* EnvNodeTypes.TEXT */
|
|
6375
6373
|
, renderer)) {
|
|
6376
6374
|
return false;
|
|
6377
6375
|
}
|
|
@@ -6380,10 +6378,10 @@
|
|
|
6380
6378
|
}
|
|
6381
6379
|
|
|
6382
6380
|
if (getProperty(client, 'nodeType') === 8
|
|
6383
|
-
/* COMMENT */
|
|
6381
|
+
/* EnvNodeTypes.COMMENT */
|
|
6384
6382
|
) {
|
|
6385
6383
|
if (!hasCorrectNodeType(vnode, ssr, 8
|
|
6386
|
-
/* COMMENT */
|
|
6384
|
+
/* EnvNodeTypes.COMMENT */
|
|
6387
6385
|
, renderer)) {
|
|
6388
6386
|
return false;
|
|
6389
6387
|
}
|
|
@@ -6392,7 +6390,7 @@
|
|
|
6392
6390
|
}
|
|
6393
6391
|
|
|
6394
6392
|
if (!hasCorrectNodeType(vnode, ssr, 1
|
|
6395
|
-
/* ELEMENT */
|
|
6393
|
+
/* EnvNodeTypes.ELEMENT */
|
|
6396
6394
|
, renderer)) {
|
|
6397
6395
|
return false;
|
|
6398
6396
|
}
|
|
@@ -6460,7 +6458,7 @@
|
|
|
6460
6458
|
|
|
6461
6459
|
return ctor;
|
|
6462
6460
|
}
|
|
6463
|
-
/* version: 2.
|
|
6461
|
+
/* version: 2.20.0 */
|
|
6464
6462
|
|
|
6465
6463
|
/*
|
|
6466
6464
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -7078,7 +7076,7 @@
|
|
|
7078
7076
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
7079
7077
|
*/
|
|
7080
7078
|
// TODO [#2472]: Remove this workaround when appropriate.
|
|
7081
|
-
// eslint-disable-next-line lwc-internal/no-global-node
|
|
7079
|
+
// eslint-disable-next-line @lwc/lwc-internal/no-global-node
|
|
7082
7080
|
|
|
7083
7081
|
|
|
7084
7082
|
var _Node$1 = Node;
|
|
@@ -7185,7 +7183,7 @@
|
|
|
7185
7183
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
7186
7184
|
*/
|
|
7187
7185
|
// TODO [#2472]: Remove this workaround when appropriate.
|
|
7188
|
-
// eslint-disable-next-line lwc-internal/no-global-node
|
|
7186
|
+
// eslint-disable-next-line @lwc/lwc-internal/no-global-node
|
|
7189
7187
|
|
|
7190
7188
|
|
|
7191
7189
|
var _Node = Node;
|
|
@@ -7258,7 +7256,7 @@
|
|
|
7258
7256
|
});
|
|
7259
7257
|
freeze(LightningElement);
|
|
7260
7258
|
seal(LightningElement.prototype);
|
|
7261
|
-
/* version: 2.
|
|
7259
|
+
/* version: 2.20.0 */
|
|
7262
7260
|
|
|
7263
7261
|
exports.LightningElement = LightningElement;
|
|
7264
7262
|
exports.__unstable__ProfilerControl = profilerControl;
|