lwc 2.16.0 → 2.19.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 +137 -137
- package/dist/engine-dom/iife/es2017/engine-dom.js +137 -137
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +116 -116
- package/dist/engine-dom/iife/es5/engine-dom.js +148 -149
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +127 -128
- package/dist/engine-dom/umd/es2017/engine-dom.js +137 -137
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +116 -116
- package/dist/engine-dom/umd/es5/engine-dom.js +148 -149
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +127 -128
- package/dist/engine-server/commonjs/es2017/engine-server.js +114 -114
- package/dist/engine-server/esm/es2017/engine-server.js +114 -114
- 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
|
|
|
@@ -238,7 +238,6 @@
|
|
|
238
238
|
var AriaAttrNameToPropNameMap = create(null);
|
|
239
239
|
var AriaPropNameToAttrNameMap = create(null); // Synthetic creation of all AOM property descriptors for Custom Elements
|
|
240
240
|
|
|
241
|
-
// Synthetic creation of all AOM property descriptors for Custom Elements
|
|
242
241
|
forEach.call(AriaPropertyNames, function (propName) {
|
|
243
242
|
var attrName = StringToLowerCase.call(StringReplace.call(propName, /^aria/, function () {
|
|
244
243
|
return 'aria-';
|
|
@@ -369,9 +368,9 @@
|
|
|
369
368
|
*/
|
|
370
369
|
// Increment whenever the LWC template compiler changes
|
|
371
370
|
|
|
372
|
-
var LWC_VERSION = "2.
|
|
371
|
+
var LWC_VERSION = "2.19.0";
|
|
373
372
|
var LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
374
|
-
/** version: 2.
|
|
373
|
+
/** version: 2.19.0 */
|
|
375
374
|
|
|
376
375
|
/*
|
|
377
376
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -550,7 +549,7 @@
|
|
|
550
549
|
setFeatureFlag(name, value);
|
|
551
550
|
}
|
|
552
551
|
}
|
|
553
|
-
/** version: 2.
|
|
552
|
+
/** version: 2.19.0 */
|
|
554
553
|
|
|
555
554
|
/*
|
|
556
555
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -2409,7 +2408,7 @@
|
|
|
2409
2408
|
associateVM(elm, vm);
|
|
2410
2409
|
|
|
2411
2410
|
if (vm.renderMode === 1
|
|
2412
|
-
/* Shadow */
|
|
2411
|
+
/* RenderMode.Shadow */
|
|
2413
2412
|
) {
|
|
2414
2413
|
vm.renderRoot = doAttachShadow(vm);
|
|
2415
2414
|
} else {
|
|
@@ -2587,7 +2586,7 @@
|
|
|
2587
2586
|
|
|
2588
2587
|
if (process.env.NODE_ENV !== 'production') {
|
|
2589
2588
|
if (vm.renderMode === 0
|
|
2590
|
-
/* Light */
|
|
2589
|
+
/* RenderMode.Light */
|
|
2591
2590
|
) {
|
|
2592
2591
|
logError('`this.template` returns null for light DOM components. Since there is no shadow, the rendered content can be accessed via `this` itself. e.g. instead of `this.template.querySelector`, use `this.querySelector`.');
|
|
2593
2592
|
}
|
|
@@ -3018,15 +3017,15 @@
|
|
|
3018
3017
|
function getClassDescriptorType(descriptor) {
|
|
3019
3018
|
if (isFunction$1(descriptor.value)) {
|
|
3020
3019
|
return "method"
|
|
3021
|
-
/* Method */
|
|
3020
|
+
/* DescriptorType.Method */
|
|
3022
3021
|
;
|
|
3023
3022
|
} else if (isFunction$1(descriptor.set) || isFunction$1(descriptor.get)) {
|
|
3024
3023
|
return "accessor"
|
|
3025
|
-
/* Accessor */
|
|
3024
|
+
/* DescriptorType.Accessor */
|
|
3026
3025
|
;
|
|
3027
3026
|
} else {
|
|
3028
3027
|
return "field"
|
|
3029
|
-
/* Field */
|
|
3028
|
+
/* DescriptorType.Field */
|
|
3030
3029
|
;
|
|
3031
3030
|
}
|
|
3032
3031
|
}
|
|
@@ -3038,7 +3037,7 @@
|
|
|
3038
3037
|
// This branch is only here for backward compatibility reasons.
|
|
3039
3038
|
|
|
3040
3039
|
if (type === "accessor"
|
|
3041
|
-
/* Accessor */
|
|
3040
|
+
/* DescriptorType.Accessor */
|
|
3042
3041
|
) {
|
|
3043
3042
|
logError(message);
|
|
3044
3043
|
} else {
|
|
@@ -3074,7 +3073,7 @@
|
|
|
3074
3073
|
// This branch is only here for backward compatibility reasons.
|
|
3075
3074
|
|
|
3076
3075
|
if (type === "accessor"
|
|
3077
|
-
/* Accessor */
|
|
3076
|
+
/* DescriptorType.Accessor */
|
|
3078
3077
|
) {
|
|
3079
3078
|
logError(message);
|
|
3080
3079
|
} else {
|
|
@@ -3905,9 +3904,9 @@
|
|
|
3905
3904
|
|
|
3906
3905
|
if (!isUndefined$1(ctorShadowSupportMode)) {
|
|
3907
3906
|
assert.invariant(ctorShadowSupportMode === "any"
|
|
3908
|
-
/* Any */
|
|
3907
|
+
/* ShadowSupportMode.Any */
|
|
3909
3908
|
|| ctorShadowSupportMode === "reset"
|
|
3910
|
-
/* Default */
|
|
3909
|
+
/* ShadowSupportMode.Default */
|
|
3911
3910
|
, "Invalid value for static property shadowSupportMode: '".concat(ctorShadowSupportMode, "'"));
|
|
3912
3911
|
}
|
|
3913
3912
|
|
|
@@ -3951,9 +3950,9 @@
|
|
|
3951
3950
|
|
|
3952
3951
|
if (!isUndefined$1(ctorRenderMode)) {
|
|
3953
3952
|
renderMode = ctorRenderMode === 'light' ? 0
|
|
3954
|
-
/* Light */
|
|
3953
|
+
/* RenderMode.Light */
|
|
3955
3954
|
: 1
|
|
3956
|
-
/* Shadow */
|
|
3955
|
+
/* RenderMode.Shadow */
|
|
3957
3956
|
;
|
|
3958
3957
|
}
|
|
3959
3958
|
|
|
@@ -4067,10 +4066,10 @@
|
|
|
4067
4066
|
propsConfig: EmptyObject,
|
|
4068
4067
|
methods: EmptyObject,
|
|
4069
4068
|
renderMode: 1
|
|
4070
|
-
/* Shadow */
|
|
4069
|
+
/* RenderMode.Shadow */
|
|
4071
4070
|
,
|
|
4072
4071
|
shadowSupportMode: "reset"
|
|
4073
|
-
/* Default */
|
|
4072
|
+
/* ShadowSupportMode.Default */
|
|
4074
4073
|
,
|
|
4075
4074
|
wire: EmptyObject,
|
|
4076
4075
|
bridge: BaseBridgeElement,
|
|
@@ -4100,7 +4099,7 @@
|
|
|
4100
4099
|
publicProps[key] = {
|
|
4101
4100
|
config: propsConfig[key] || 0,
|
|
4102
4101
|
type: "any"
|
|
4103
|
-
/* any */
|
|
4102
|
+
/* PropDefType.any */
|
|
4104
4103
|
,
|
|
4105
4104
|
attr: htmlPropertyToAttribute(key)
|
|
4106
4105
|
};
|
|
@@ -4183,9 +4182,9 @@
|
|
|
4183
4182
|
function isVBaseElement(vnode) {
|
|
4184
4183
|
var type = vnode.type;
|
|
4185
4184
|
return type === 2
|
|
4186
|
-
/* Element */
|
|
4185
|
+
/* VNodeType.Element */
|
|
4187
4186
|
|| type === 3
|
|
4188
|
-
/* CustomElement */
|
|
4187
|
+
/* VNodeType.CustomElement */
|
|
4189
4188
|
;
|
|
4190
4189
|
}
|
|
4191
4190
|
|
|
@@ -4508,33 +4507,33 @@
|
|
|
4508
4507
|
|
|
4509
4508
|
switch (n2.type) {
|
|
4510
4509
|
case 0
|
|
4511
|
-
/* Text */
|
|
4510
|
+
/* VNodeType.Text */
|
|
4512
4511
|
:
|
|
4513
4512
|
// VText has no special capability, fallback to the owner's renderer
|
|
4514
4513
|
patchText(n1, n2, renderer);
|
|
4515
4514
|
break;
|
|
4516
4515
|
|
|
4517
4516
|
case 1
|
|
4518
|
-
/* Comment */
|
|
4517
|
+
/* VNodeType.Comment */
|
|
4519
4518
|
:
|
|
4520
4519
|
// VComment has no special capability, fallback to the owner's renderer
|
|
4521
4520
|
patchComment(n1, n2, renderer);
|
|
4522
4521
|
break;
|
|
4523
4522
|
|
|
4524
4523
|
case 4
|
|
4525
|
-
/* Static */
|
|
4524
|
+
/* VNodeType.Static */
|
|
4526
4525
|
:
|
|
4527
4526
|
n2.elm = n1.elm;
|
|
4528
4527
|
break;
|
|
4529
4528
|
|
|
4530
4529
|
case 2
|
|
4531
|
-
/* Element */
|
|
4530
|
+
/* VNodeType.Element */
|
|
4532
4531
|
:
|
|
4533
4532
|
patchElement(n1, n2, (_a = n2.data.renderer) !== null && _a !== void 0 ? _a : renderer);
|
|
4534
4533
|
break;
|
|
4535
4534
|
|
|
4536
4535
|
case 3
|
|
4537
|
-
/* CustomElement */
|
|
4536
|
+
/* VNodeType.CustomElement */
|
|
4538
4537
|
:
|
|
4539
4538
|
patchCustomElement(n1, n2, (_b = n2.data.renderer) !== null && _b !== void 0 ? _b : renderer);
|
|
4540
4539
|
break;
|
|
@@ -4546,35 +4545,35 @@
|
|
|
4546
4545
|
|
|
4547
4546
|
switch (node.type) {
|
|
4548
4547
|
case 0
|
|
4549
|
-
/* Text */
|
|
4548
|
+
/* VNodeType.Text */
|
|
4550
4549
|
:
|
|
4551
4550
|
// VText has no special capability, fallback to the owner's renderer
|
|
4552
4551
|
mountText(node, parent, anchor, renderer);
|
|
4553
4552
|
break;
|
|
4554
4553
|
|
|
4555
4554
|
case 1
|
|
4556
|
-
/* Comment */
|
|
4555
|
+
/* VNodeType.Comment */
|
|
4557
4556
|
:
|
|
4558
4557
|
// VComment has no special capability, fallback to the owner's renderer
|
|
4559
4558
|
mountComment(node, parent, anchor, renderer);
|
|
4560
4559
|
break;
|
|
4561
4560
|
|
|
4562
4561
|
case 4
|
|
4563
|
-
/* Static */
|
|
4562
|
+
/* VNodeType.Static */
|
|
4564
4563
|
:
|
|
4565
4564
|
// VStatic cannot have a custom renderer associated to them, using owner's renderer
|
|
4566
4565
|
mountStatic(node, parent, anchor, renderer);
|
|
4567
4566
|
break;
|
|
4568
4567
|
|
|
4569
4568
|
case 2
|
|
4570
|
-
/* Element */
|
|
4569
|
+
/* VNodeType.Element */
|
|
4571
4570
|
:
|
|
4572
4571
|
// If the vnode data has a renderer override use it, else fallback to owner's renderer
|
|
4573
4572
|
mountElement(node, parent, anchor, (_a = node.data.renderer) !== null && _a !== void 0 ? _a : renderer);
|
|
4574
4573
|
break;
|
|
4575
4574
|
|
|
4576
4575
|
case 3
|
|
4577
|
-
/* CustomElement */
|
|
4576
|
+
/* VNodeType.CustomElement */
|
|
4578
4577
|
:
|
|
4579
4578
|
// If the vnode data has a renderer override use it, else fallback to owner's renderer
|
|
4580
4579
|
mountCustomElement(node, parent, anchor, (_b = node.data.renderer) !== null && _b !== void 0 ? _b : renderer);
|
|
@@ -4648,9 +4647,9 @@
|
|
|
4648
4647
|
|
|
4649
4648
|
if (isSyntheticShadowDefined) {
|
|
4650
4649
|
if (shadowMode === 1
|
|
4651
|
-
/* Synthetic */
|
|
4650
|
+
/* ShadowMode.Synthetic */
|
|
4652
4651
|
|| renderMode === 0
|
|
4653
|
-
/* Light */
|
|
4652
|
+
/* RenderMode.Light */
|
|
4654
4653
|
) {
|
|
4655
4654
|
elm[KEY__SHADOW_STATIC] = true;
|
|
4656
4655
|
}
|
|
@@ -4658,7 +4657,7 @@
|
|
|
4658
4657
|
|
|
4659
4658
|
if (process.env.NODE_ENV !== 'production') {
|
|
4660
4659
|
var isLight = renderMode === 0
|
|
4661
|
-
/* Light */
|
|
4660
|
+
/* RenderMode.Light */
|
|
4662
4661
|
;
|
|
4663
4662
|
patchElementWithRestrictions(elm, {
|
|
4664
4663
|
isPortal: false,
|
|
@@ -4701,7 +4700,7 @@
|
|
|
4701
4700
|
if (vm) {
|
|
4702
4701
|
if (process.env.NODE_ENV !== 'production') {
|
|
4703
4702
|
assert.isTrue(vm.state === 0
|
|
4704
|
-
/* created */
|
|
4703
|
+
/* VMState.created */
|
|
4705
4704
|
, "".concat(vm, " cannot be recycled."));
|
|
4706
4705
|
}
|
|
4707
4706
|
|
|
@@ -4765,20 +4764,20 @@
|
|
|
4765
4764
|
|
|
4766
4765
|
switch (type) {
|
|
4767
4766
|
case 2
|
|
4768
|
-
/* Element */
|
|
4767
|
+
/* VNodeType.Element */
|
|
4769
4768
|
:
|
|
4770
4769
|
{
|
|
4771
4770
|
// Slot content is removed to trigger slotchange event when removing slot.
|
|
4772
4771
|
// Only required for synthetic shadow.
|
|
4773
4772
|
var shouldRemoveChildren = sel === 'slot' && vnode.owner.shadowMode === 1
|
|
4774
|
-
/* Synthetic */
|
|
4773
|
+
/* ShadowMode.Synthetic */
|
|
4775
4774
|
;
|
|
4776
4775
|
unmountVNodes(vnode.children, elm, renderer, shouldRemoveChildren);
|
|
4777
4776
|
break;
|
|
4778
4777
|
}
|
|
4779
4778
|
|
|
4780
4779
|
case 3
|
|
4781
|
-
/* CustomElement */
|
|
4780
|
+
/* VNodeType.CustomElement */
|
|
4782
4781
|
:
|
|
4783
4782
|
{
|
|
4784
4783
|
var vm = vnode.vm; // No need to unmount the children here, `removeVM` will take care of removing the
|
|
@@ -4839,9 +4838,9 @@
|
|
|
4839
4838
|
|
|
4840
4839
|
if (isSyntheticShadowDefined) {
|
|
4841
4840
|
if (shadowMode === 1
|
|
4842
|
-
/* Synthetic */
|
|
4841
|
+
/* ShadowMode.Synthetic */
|
|
4843
4842
|
|| renderMode === 0
|
|
4844
|
-
/* Light */
|
|
4843
|
+
/* RenderMode.Light */
|
|
4845
4844
|
) {
|
|
4846
4845
|
elm[KEY__SHADOW_RESOLVER] = renderRoot[KEY__SHADOW_RESOLVER];
|
|
4847
4846
|
}
|
|
@@ -4908,13 +4907,13 @@
|
|
|
4908
4907
|
setScopeTokenClassIfNecessary(elm, owner, renderer);
|
|
4909
4908
|
|
|
4910
4909
|
if (owner.shadowMode === 1
|
|
4911
|
-
/* Synthetic */
|
|
4910
|
+
/* ShadowMode.Synthetic */
|
|
4912
4911
|
) {
|
|
4913
4912
|
var context = vnode.data.context;
|
|
4914
4913
|
var stylesheetToken = owner.context.stylesheetToken;
|
|
4915
4914
|
|
|
4916
4915
|
if (!isUndefined$1(context) && !isUndefined$1(context.lwc) && context.lwc.dom === "manual"
|
|
4917
|
-
/* Manual */
|
|
4916
|
+
/* LwcDomMode.Manual */
|
|
4918
4917
|
) {
|
|
4919
4918
|
// this element will now accept any manual content inserted into it
|
|
4920
4919
|
observeElementChildNodes(elm);
|
|
@@ -4930,10 +4929,10 @@
|
|
|
4930
4929
|
if (process.env.NODE_ENV !== 'production') {
|
|
4931
4930
|
var _context = vnode.data.context;
|
|
4932
4931
|
var isPortal = !isUndefined$1(_context) && !isUndefined$1(_context.lwc) && _context.lwc.dom === "manual"
|
|
4933
|
-
/* Manual */
|
|
4932
|
+
/* LwcDomMode.Manual */
|
|
4934
4933
|
;
|
|
4935
4934
|
var isLight = owner.renderMode === 0
|
|
4936
|
-
/* Light */
|
|
4935
|
+
/* RenderMode.Light */
|
|
4937
4936
|
;
|
|
4938
4937
|
patchElementWithRestrictions(elm, {
|
|
4939
4938
|
isPortal: isPortal,
|
|
@@ -4959,9 +4958,9 @@
|
|
|
4959
4958
|
shadowMode = vm.shadowMode;
|
|
4960
4959
|
|
|
4961
4960
|
if (shadowMode === 1
|
|
4962
|
-
/* Synthetic */
|
|
4961
|
+
/* ShadowMode.Synthetic */
|
|
4963
4962
|
|| renderMode === 0
|
|
4964
|
-
/* Light */
|
|
4963
|
+
/* RenderMode.Light */
|
|
4965
4964
|
) {
|
|
4966
4965
|
// slow path
|
|
4967
4966
|
allocateInSlot(vm, children); // save the allocated children in case this vnode is reused.
|
|
@@ -4988,7 +4987,7 @@
|
|
|
4988
4987
|
setScopeTokenClassIfNecessary(elm, owner, renderer);
|
|
4989
4988
|
|
|
4990
4989
|
if (owner.shadowMode === 1
|
|
4991
|
-
/* Synthetic */
|
|
4990
|
+
/* ShadowMode.Synthetic */
|
|
4992
4991
|
) {
|
|
4993
4992
|
var stylesheetToken = owner.context.stylesheetToken; // when running in synthetic shadow mode, we need to set the shadowToken value
|
|
4994
4993
|
// into each element from the template, so they can be styled accordingly.
|
|
@@ -5260,7 +5259,7 @@
|
|
|
5260
5259
|
function st(fragment, key) {
|
|
5261
5260
|
return {
|
|
5262
5261
|
type: 4
|
|
5263
|
-
/* Static */
|
|
5262
|
+
/* VNodeType.Static */
|
|
5264
5263
|
,
|
|
5265
5264
|
sel: undefined,
|
|
5266
5265
|
key: key,
|
|
@@ -5299,7 +5298,7 @@
|
|
|
5299
5298
|
var key = data.key;
|
|
5300
5299
|
return {
|
|
5301
5300
|
type: 2
|
|
5302
|
-
/* Element */
|
|
5301
|
+
/* VNodeType.Element */
|
|
5303
5302
|
,
|
|
5304
5303
|
sel: sel,
|
|
5305
5304
|
data: data,
|
|
@@ -5345,14 +5344,14 @@
|
|
|
5345
5344
|
shadowMode = vmBeingRendered.shadowMode;
|
|
5346
5345
|
|
|
5347
5346
|
if (renderMode === 0
|
|
5348
|
-
/* Light */
|
|
5347
|
+
/* RenderMode.Light */
|
|
5349
5348
|
) {
|
|
5350
5349
|
sc(children);
|
|
5351
5350
|
return children;
|
|
5352
5351
|
}
|
|
5353
5352
|
|
|
5354
5353
|
if (shadowMode === 1
|
|
5355
|
-
/* Synthetic */
|
|
5354
|
+
/* ShadowMode.Synthetic */
|
|
5356
5355
|
) {
|
|
5357
5356
|
// TODO [#1276]: compiler should give us some sort of indicator when a vnodes collection is dynamic
|
|
5358
5357
|
sc(children);
|
|
@@ -5392,7 +5391,7 @@
|
|
|
5392
5391
|
var elm, aChildren, vm;
|
|
5393
5392
|
var vnode = {
|
|
5394
5393
|
type: 3
|
|
5395
|
-
/* CustomElement */
|
|
5394
|
+
/* VNodeType.CustomElement */
|
|
5396
5395
|
,
|
|
5397
5396
|
sel: sel,
|
|
5398
5397
|
data: data,
|
|
@@ -5524,7 +5523,7 @@
|
|
|
5524
5523
|
var sel, key, elm;
|
|
5525
5524
|
return {
|
|
5526
5525
|
type: 0
|
|
5527
|
-
/* Text */
|
|
5526
|
+
/* VNodeType.Text */
|
|
5528
5527
|
,
|
|
5529
5528
|
sel: sel,
|
|
5530
5529
|
text: text,
|
|
@@ -5539,7 +5538,7 @@
|
|
|
5539
5538
|
var sel, key, elm;
|
|
5540
5539
|
return {
|
|
5541
5540
|
type: 1
|
|
5542
|
-
/* Comment */
|
|
5541
|
+
/* VNodeType.Comment */
|
|
5543
5542
|
,
|
|
5544
5543
|
sel: sel,
|
|
5545
5544
|
text: text,
|
|
@@ -5604,7 +5603,7 @@
|
|
|
5604
5603
|
shadowMode = vmBeingRendered.shadowMode;
|
|
5605
5604
|
|
|
5606
5605
|
if (shadowMode === 1
|
|
5607
|
-
/* Synthetic */
|
|
5606
|
+
/* ShadowMode.Synthetic */
|
|
5608
5607
|
) {
|
|
5609
5608
|
return StringReplace.call(id, /\S+/g, function (id) {
|
|
5610
5609
|
return "".concat(id, "-").concat(idx);
|
|
@@ -5637,7 +5636,7 @@
|
|
|
5637
5636
|
shadowMode = vmBeingRendered.shadowMode; // Apply transformation only for fragment-only-urls, and only in shadow DOM
|
|
5638
5637
|
|
|
5639
5638
|
if (shadowMode === 1
|
|
5640
|
-
/* Synthetic */
|
|
5639
|
+
/* ShadowMode.Synthetic */
|
|
5641
5640
|
&& /^#/.test(url)) {
|
|
5642
5641
|
return "".concat(url, "-").concat(idx);
|
|
5643
5642
|
}
|
|
@@ -5794,9 +5793,9 @@
|
|
|
5794
5793
|
var newStylesheets = template.stylesheets,
|
|
5795
5794
|
newStylesheetToken = template.stylesheetToken;
|
|
5796
5795
|
var isSyntheticShadow = renderMode === 1
|
|
5797
|
-
/* Shadow */
|
|
5796
|
+
/* RenderMode.Shadow */
|
|
5798
5797
|
&& shadowMode === 1
|
|
5799
|
-
/* Synthetic */
|
|
5798
|
+
/* ShadowMode.Synthetic */
|
|
5800
5799
|
;
|
|
5801
5800
|
var hasScopedStyles = context.hasScopedStyles;
|
|
5802
5801
|
var newToken;
|
|
@@ -5864,26 +5863,26 @@
|
|
|
5864
5863
|
var isScopedCss = stylesheet[KEY__SCOPED_CSS]; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
|
|
5865
5864
|
|
|
5866
5865
|
var scopeToken = isScopedCss || vm.shadowMode === 1
|
|
5867
|
-
/* Synthetic */
|
|
5866
|
+
/* ShadowMode.Synthetic */
|
|
5868
5867
|
&& vm.renderMode === 1
|
|
5869
|
-
/* Shadow */
|
|
5868
|
+
/* RenderMode.Shadow */
|
|
5870
5869
|
? stylesheetToken : undefined; // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
|
|
5871
5870
|
// native shadow DOM. Synthetic shadow DOM never uses `:host`.
|
|
5872
5871
|
|
|
5873
5872
|
var useActualHostSelector = vm.renderMode === 0
|
|
5874
|
-
/* Light */
|
|
5873
|
+
/* RenderMode.Light */
|
|
5875
5874
|
? !isScopedCss : vm.shadowMode === 0
|
|
5876
|
-
/* Native */
|
|
5875
|
+
/* ShadowMode.Native */
|
|
5877
5876
|
; // Use the native :dir() pseudoclass only in native shadow DOM. Otherwise, in synthetic shadow,
|
|
5878
5877
|
// we use an attribute selector on the host to simulate :dir().
|
|
5879
5878
|
|
|
5880
5879
|
var useNativeDirPseudoclass = void 0;
|
|
5881
5880
|
|
|
5882
5881
|
if (vm.renderMode === 1
|
|
5883
|
-
/* Shadow */
|
|
5882
|
+
/* RenderMode.Shadow */
|
|
5884
5883
|
) {
|
|
5885
5884
|
useNativeDirPseudoclass = vm.shadowMode === 0
|
|
5886
|
-
/* Native */
|
|
5885
|
+
/* ShadowMode.Native */
|
|
5887
5886
|
;
|
|
5888
5887
|
} else {
|
|
5889
5888
|
// Light DOM components should only render `[dir]` if they're inside of a synthetic shadow root.
|
|
@@ -5894,7 +5893,7 @@
|
|
|
5894
5893
|
}
|
|
5895
5894
|
|
|
5896
5895
|
useNativeDirPseudoclass = isNull(root) || root.shadowMode === 0
|
|
5897
|
-
/* Native */
|
|
5896
|
+
/* ShadowMode.Native */
|
|
5898
5897
|
;
|
|
5899
5898
|
}
|
|
5900
5899
|
|
|
@@ -5925,7 +5924,7 @@
|
|
|
5925
5924
|
|
|
5926
5925
|
while (!isNull(owner)) {
|
|
5927
5926
|
if (owner.renderMode === 1
|
|
5928
|
-
/* Shadow */
|
|
5927
|
+
/* RenderMode.Shadow */
|
|
5929
5928
|
) {
|
|
5930
5929
|
return owner;
|
|
5931
5930
|
}
|
|
@@ -5940,7 +5939,7 @@
|
|
|
5940
5939
|
var owner = getNearestShadowComponent(vm);
|
|
5941
5940
|
|
|
5942
5941
|
if (!isNull(owner) && owner.shadowMode === 1
|
|
5943
|
-
/* Synthetic */
|
|
5942
|
+
/* ShadowMode.Synthetic */
|
|
5944
5943
|
) {
|
|
5945
5944
|
// Synthetic-within-native is impossible. So if the nearest shadow component is
|
|
5946
5945
|
// synthetic, we know we won't find a native component if we go any further.
|
|
@@ -5958,9 +5957,9 @@
|
|
|
5958
5957
|
insertStylesheet = _vm$renderer2.insertStylesheet;
|
|
5959
5958
|
|
|
5960
5959
|
if (renderMode === 1
|
|
5961
|
-
/* Shadow */
|
|
5960
|
+
/* RenderMode.Shadow */
|
|
5962
5961
|
&& shadowMode === 1
|
|
5963
|
-
/* Synthetic */
|
|
5962
|
+
/* ShadowMode.Synthetic */
|
|
5964
5963
|
) {
|
|
5965
5964
|
for (var _i17 = 0; _i17 < stylesheets.length; _i17++) {
|
|
5966
5965
|
insertStylesheet(stylesheets[_i17]);
|
|
@@ -6057,7 +6056,7 @@
|
|
|
6057
6056
|
|
|
6058
6057
|
if (isProfilerEnabled) {
|
|
6059
6058
|
currentDispatcher(opId, 0
|
|
6060
|
-
/* Start */
|
|
6059
|
+
/* Phase.Start */
|
|
6061
6060
|
, vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
|
|
6062
6061
|
}
|
|
6063
6062
|
}
|
|
@@ -6071,7 +6070,7 @@
|
|
|
6071
6070
|
|
|
6072
6071
|
if (isProfilerEnabled) {
|
|
6073
6072
|
currentDispatcher(opId, 1
|
|
6074
|
-
/* Stop */
|
|
6073
|
+
/* Phase.Stop */
|
|
6075
6074
|
, vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
|
|
6076
6075
|
}
|
|
6077
6076
|
}
|
|
@@ -6085,7 +6084,7 @@
|
|
|
6085
6084
|
|
|
6086
6085
|
if (isProfilerEnabled) {
|
|
6087
6086
|
currentDispatcher(opId, 0
|
|
6088
|
-
/* Start */
|
|
6087
|
+
/* Phase.Start */
|
|
6089
6088
|
, 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);
|
|
6090
6089
|
}
|
|
6091
6090
|
}
|
|
@@ -6099,7 +6098,7 @@
|
|
|
6099
6098
|
|
|
6100
6099
|
if (isProfilerEnabled) {
|
|
6101
6100
|
currentDispatcher(opId, 1
|
|
6102
|
-
/* Stop */
|
|
6101
|
+
/* Phase.Stop */
|
|
6103
6102
|
, 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);
|
|
6104
6103
|
}
|
|
6105
6104
|
}
|
|
@@ -6133,12 +6132,12 @@
|
|
|
6133
6132
|
slots = _html$slots === void 0 ? EmptyArray : _html$slots;
|
|
6134
6133
|
|
|
6135
6134
|
for (var slotName in cmpSlots) {
|
|
6136
|
-
// eslint-disable-next-line lwc-internal/no-production-assert
|
|
6135
|
+
// eslint-disable-next-line @lwc/lwc-internal/no-production-assert
|
|
6137
6136
|
assert.isTrue(isArray$1(cmpSlots[slotName]), "Slots can only be set to an array, instead received ".concat(toString$1(cmpSlots[slotName]), " for slot \"").concat(slotName, "\" in ").concat(vm, "."));
|
|
6138
6137
|
|
|
6139
6138
|
if (slotName !== '' && ArrayIndexOf.call(slots, slotName) === -1) {
|
|
6140
6139
|
// TODO [#1297]: this should never really happen because the compiler should always validate
|
|
6141
|
-
// eslint-disable-next-line lwc-internal/no-production-assert
|
|
6140
|
+
// eslint-disable-next-line @lwc/lwc-internal/no-production-assert
|
|
6142
6141
|
logError("Ignoring unknown provided slot name \"".concat(slotName, "\" in ").concat(vm, ". Check for a typo on the slot attribute."), vm);
|
|
6143
6142
|
}
|
|
6144
6143
|
}
|
|
@@ -6148,7 +6147,7 @@
|
|
|
6148
6147
|
if (template === defaultEmptyTemplate) return;
|
|
6149
6148
|
|
|
6150
6149
|
if (vm.renderMode === 0
|
|
6151
|
-
/* Light */
|
|
6150
|
+
/* RenderMode.Light */
|
|
6152
6151
|
) {
|
|
6153
6152
|
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), "."));
|
|
6154
6153
|
} else {
|
|
@@ -6173,19 +6172,19 @@
|
|
|
6173
6172
|
|
|
6174
6173
|
var hasStyleToken = !isUndefined$1(stylesheetToken);
|
|
6175
6174
|
var isSyntheticShadow = shadowMode === 1
|
|
6176
|
-
/* Synthetic */
|
|
6175
|
+
/* ShadowMode.Synthetic */
|
|
6177
6176
|
;
|
|
6178
6177
|
var cacheKey = 0;
|
|
6179
6178
|
|
|
6180
6179
|
if (hasStyleToken && hasScopedStyles) {
|
|
6181
6180
|
cacheKey |= 1
|
|
6182
|
-
/* HAS_SCOPED_STYLE */
|
|
6181
|
+
/* FragmentCache.HAS_SCOPED_STYLE */
|
|
6183
6182
|
;
|
|
6184
6183
|
}
|
|
6185
6184
|
|
|
6186
6185
|
if (hasStyleToken && isSyntheticShadow) {
|
|
6187
6186
|
cacheKey |= 2
|
|
6188
|
-
/* SHADOW_MODE_SYNTHETIC */
|
|
6187
|
+
/* FragmentCache.SHADOW_MODE_SYNTHETIC */
|
|
6189
6188
|
;
|
|
6190
6189
|
}
|
|
6191
6190
|
|
|
@@ -6257,7 +6256,7 @@
|
|
|
6257
6256
|
// pre
|
|
6258
6257
|
vmBeingRendered = vm;
|
|
6259
6258
|
logOperationStart(1
|
|
6260
|
-
/* Render */
|
|
6259
|
+
/* OperationId.Render */
|
|
6261
6260
|
, vm);
|
|
6262
6261
|
}, function () {
|
|
6263
6262
|
// job
|
|
@@ -6324,7 +6323,7 @@
|
|
|
6324
6323
|
isUpdatingTemplate = isUpdatingTemplateInception;
|
|
6325
6324
|
vmBeingRendered = vmOfTemplateBeingUpdatedInception;
|
|
6326
6325
|
logOperationEnd(1
|
|
6327
|
-
/* Render */
|
|
6326
|
+
/* OperationId.Render */
|
|
6328
6327
|
, vm);
|
|
6329
6328
|
});
|
|
6330
6329
|
|
|
@@ -6376,7 +6375,7 @@
|
|
|
6376
6375
|
var vmBeingConstructedInception = vmBeingConstructed;
|
|
6377
6376
|
var error;
|
|
6378
6377
|
logOperationStart(0
|
|
6379
|
-
/* Constructor */
|
|
6378
|
+
/* OperationId.Constructor */
|
|
6380
6379
|
, vm);
|
|
6381
6380
|
vmBeingConstructed = vm;
|
|
6382
6381
|
/**
|
|
@@ -6399,7 +6398,7 @@
|
|
|
6399
6398
|
error = Object(e);
|
|
6400
6399
|
} finally {
|
|
6401
6400
|
logOperationEnd(0
|
|
6402
|
-
/* Constructor */
|
|
6401
|
+
/* OperationId.Constructor */
|
|
6403
6402
|
, vm);
|
|
6404
6403
|
vmBeingConstructed = vmBeingConstructedInception;
|
|
6405
6404
|
|
|
@@ -6622,12 +6621,12 @@
|
|
|
6622
6621
|
function connectRootElement(elm) {
|
|
6623
6622
|
var vm = getAssociatedVM(elm);
|
|
6624
6623
|
logGlobalOperationStart(7
|
|
6625
|
-
/* GlobalHydrate */
|
|
6624
|
+
/* OperationId.GlobalHydrate */
|
|
6626
6625
|
, vm); // Usually means moving the element from one place to another, which is observable via
|
|
6627
6626
|
// life-cycle hooks.
|
|
6628
6627
|
|
|
6629
6628
|
if (vm.state === 1
|
|
6630
|
-
/* connected */
|
|
6629
|
+
/* VMState.connected */
|
|
6631
6630
|
) {
|
|
6632
6631
|
disconnectRootElement(elm);
|
|
6633
6632
|
}
|
|
@@ -6635,7 +6634,7 @@
|
|
|
6635
6634
|
runConnectedCallback(vm);
|
|
6636
6635
|
rehydrate(vm);
|
|
6637
6636
|
logGlobalOperationEnd(7
|
|
6638
|
-
/* GlobalHydrate */
|
|
6637
|
+
/* OperationId.GlobalHydrate */
|
|
6639
6638
|
, vm);
|
|
6640
6639
|
}
|
|
6641
6640
|
|
|
@@ -6654,7 +6653,7 @@
|
|
|
6654
6653
|
var state = vm.state;
|
|
6655
6654
|
|
|
6656
6655
|
if (state !== 2
|
|
6657
|
-
/* disconnected */
|
|
6656
|
+
/* VMState.disconnected */
|
|
6658
6657
|
) {
|
|
6659
6658
|
var oar = vm.oar,
|
|
6660
6659
|
tro = vm.tro; // Making sure that any observing record will not trigger the rehydrated on this vm
|
|
@@ -6681,9 +6680,9 @@
|
|
|
6681
6680
|
function removeVM(vm) {
|
|
6682
6681
|
if (process.env.NODE_ENV !== 'production') {
|
|
6683
6682
|
assert.isTrue(vm.state === 1
|
|
6684
|
-
/* connected */
|
|
6683
|
+
/* VMState.connected */
|
|
6685
6684
|
|| vm.state === 2
|
|
6686
|
-
/* disconnected */
|
|
6685
|
+
/* VMState.disconnected */
|
|
6687
6686
|
, "".concat(vm, " must have been connected."));
|
|
6688
6687
|
}
|
|
6689
6688
|
|
|
@@ -6694,7 +6693,7 @@
|
|
|
6694
6693
|
var ancestor = vm.owner;
|
|
6695
6694
|
|
|
6696
6695
|
while (!isNull(ancestor) && ancestor.renderMode === 0
|
|
6697
|
-
/* Light */
|
|
6696
|
+
/* RenderMode.Light */
|
|
6698
6697
|
) {
|
|
6699
6698
|
ancestor = ancestor.owner;
|
|
6700
6699
|
}
|
|
@@ -6713,7 +6712,7 @@
|
|
|
6713
6712
|
def: def,
|
|
6714
6713
|
idx: idx++,
|
|
6715
6714
|
state: 0
|
|
6716
|
-
/* created */
|
|
6715
|
+
/* VMState.created */
|
|
6717
6716
|
,
|
|
6718
6717
|
isScheduled: false,
|
|
6719
6718
|
isDirty: true,
|
|
@@ -6762,7 +6761,7 @@
|
|
|
6762
6761
|
|
|
6763
6762
|
if (runtimeFlags.ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST) {
|
|
6764
6763
|
vm.shadowMode = 0
|
|
6765
|
-
/* Native */
|
|
6764
|
+
/* ShadowMode.Native */
|
|
6766
6765
|
;
|
|
6767
6766
|
}
|
|
6768
6767
|
} // Create component instance associated to the vm and the element.
|
|
@@ -6785,57 +6784,57 @@
|
|
|
6785
6784
|
|
|
6786
6785
|
if (isSyntheticShadowDefined) {
|
|
6787
6786
|
if (def.renderMode === 0
|
|
6788
|
-
/* Light */
|
|
6787
|
+
/* RenderMode.Light */
|
|
6789
6788
|
) {
|
|
6790
6789
|
// ShadowMode.Native implies "not synthetic shadow" which is consistent with how
|
|
6791
6790
|
// everything defaults to native when the synthetic shadow polyfill is unavailable.
|
|
6792
6791
|
shadowMode = 0
|
|
6793
|
-
/* Native */
|
|
6792
|
+
/* ShadowMode.Native */
|
|
6794
6793
|
;
|
|
6795
6794
|
} else if (isNativeShadowDefined) {
|
|
6796
6795
|
// Not combined with above condition because @lwc/features only supports identifiers in
|
|
6797
6796
|
// the if-condition.
|
|
6798
6797
|
if (runtimeFlags.ENABLE_MIXED_SHADOW_MODE) {
|
|
6799
6798
|
if (def.shadowSupportMode === "any"
|
|
6800
|
-
/* Any */
|
|
6799
|
+
/* ShadowSupportMode.Any */
|
|
6801
6800
|
) {
|
|
6802
6801
|
shadowMode = 0
|
|
6803
|
-
/* Native */
|
|
6802
|
+
/* ShadowMode.Native */
|
|
6804
6803
|
;
|
|
6805
6804
|
} else {
|
|
6806
6805
|
var shadowAncestor = getNearestShadowAncestor(vm);
|
|
6807
6806
|
|
|
6808
6807
|
if (!isNull(shadowAncestor) && shadowAncestor.shadowMode === 0
|
|
6809
|
-
/* Native */
|
|
6808
|
+
/* ShadowMode.Native */
|
|
6810
6809
|
) {
|
|
6811
6810
|
// Transitive support for native Shadow DOM. A component in native mode
|
|
6812
6811
|
// transitively opts all of its descendants into native.
|
|
6813
6812
|
shadowMode = 0
|
|
6814
|
-
/* Native */
|
|
6813
|
+
/* ShadowMode.Native */
|
|
6815
6814
|
;
|
|
6816
6815
|
} else {
|
|
6817
6816
|
// Synthetic if neither this component nor any of its ancestors are configured
|
|
6818
6817
|
// to be native.
|
|
6819
6818
|
shadowMode = 1
|
|
6820
|
-
/* Synthetic */
|
|
6819
|
+
/* ShadowMode.Synthetic */
|
|
6821
6820
|
;
|
|
6822
6821
|
}
|
|
6823
6822
|
}
|
|
6824
6823
|
} else {
|
|
6825
6824
|
shadowMode = 1
|
|
6826
|
-
/* Synthetic */
|
|
6825
|
+
/* ShadowMode.Synthetic */
|
|
6827
6826
|
;
|
|
6828
6827
|
}
|
|
6829
6828
|
} else {
|
|
6830
6829
|
// Synthetic if there is no native Shadow DOM support.
|
|
6831
6830
|
shadowMode = 1
|
|
6832
|
-
/* Synthetic */
|
|
6831
|
+
/* ShadowMode.Synthetic */
|
|
6833
6832
|
;
|
|
6834
6833
|
}
|
|
6835
6834
|
} else {
|
|
6836
6835
|
// Native if the synthetic shadow polyfill is unavailable.
|
|
6837
6836
|
shadowMode = 0
|
|
6838
|
-
/* Native */
|
|
6837
|
+
/* ShadowMode.Native */
|
|
6839
6838
|
;
|
|
6840
6839
|
}
|
|
6841
6840
|
|
|
@@ -6895,7 +6894,7 @@
|
|
|
6895
6894
|
runWithBoundaryProtection(vm, vm, function () {
|
|
6896
6895
|
// pre
|
|
6897
6896
|
logOperationStart(2
|
|
6898
|
-
/* Patch */
|
|
6897
|
+
/* OperationId.Patch */
|
|
6899
6898
|
, vm);
|
|
6900
6899
|
}, function () {
|
|
6901
6900
|
// job
|
|
@@ -6903,14 +6902,14 @@
|
|
|
6903
6902
|
}, function () {
|
|
6904
6903
|
// post
|
|
6905
6904
|
logOperationEnd(2
|
|
6906
|
-
/* Patch */
|
|
6905
|
+
/* OperationId.Patch */
|
|
6907
6906
|
, vm);
|
|
6908
6907
|
});
|
|
6909
6908
|
}
|
|
6910
6909
|
}
|
|
6911
6910
|
|
|
6912
6911
|
if (vm.state === 1
|
|
6913
|
-
/* connected */
|
|
6912
|
+
/* VMState.connected */
|
|
6914
6913
|
) {
|
|
6915
6914
|
// If the element is connected, that means connectedCallback was already issued, and
|
|
6916
6915
|
// any successive rendering should finish with the call to renderedCallback, otherwise
|
|
@@ -6936,11 +6935,11 @@
|
|
|
6936
6935
|
|
|
6937
6936
|
if (!isUndefined$1(renderedCallback)) {
|
|
6938
6937
|
logOperationStart(4
|
|
6939
|
-
/* RenderedCallback */
|
|
6938
|
+
/* OperationId.RenderedCallback */
|
|
6940
6939
|
, vm);
|
|
6941
6940
|
invokeComponentCallback(vm, renderedCallback);
|
|
6942
6941
|
logOperationEnd(4
|
|
6943
|
-
/* RenderedCallback */
|
|
6942
|
+
/* OperationId.RenderedCallback */
|
|
6944
6943
|
, vm);
|
|
6945
6944
|
}
|
|
6946
6945
|
}
|
|
@@ -6949,7 +6948,7 @@
|
|
|
6949
6948
|
|
|
6950
6949
|
function flushRehydrationQueue() {
|
|
6951
6950
|
logGlobalOperationStart(8
|
|
6952
|
-
/* GlobalRehydrate */
|
|
6951
|
+
/* OperationId.GlobalRehydrate */
|
|
6953
6952
|
);
|
|
6954
6953
|
|
|
6955
6954
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6978,7 +6977,7 @@
|
|
|
6978
6977
|
|
|
6979
6978
|
|
|
6980
6979
|
logGlobalOperationEnd(8
|
|
6981
|
-
/* GlobalRehydrate */
|
|
6980
|
+
/* OperationId.GlobalRehydrate */
|
|
6982
6981
|
); // re-throwing the original error will break the current tick, but since the next tick is
|
|
6983
6982
|
// already scheduled, it should continue patching the rest.
|
|
6984
6983
|
|
|
@@ -6987,7 +6986,7 @@
|
|
|
6987
6986
|
}
|
|
6988
6987
|
|
|
6989
6988
|
logGlobalOperationEnd(8
|
|
6990
|
-
/* GlobalRehydrate */
|
|
6989
|
+
/* OperationId.GlobalRehydrate */
|
|
6991
6990
|
);
|
|
6992
6991
|
}
|
|
6993
6992
|
|
|
@@ -6995,13 +6994,13 @@
|
|
|
6995
6994
|
var state = vm.state;
|
|
6996
6995
|
|
|
6997
6996
|
if (state === 1
|
|
6998
|
-
/* connected */
|
|
6997
|
+
/* VMState.connected */
|
|
6999
6998
|
) {
|
|
7000
6999
|
return; // nothing to do since it was already connected
|
|
7001
7000
|
}
|
|
7002
7001
|
|
|
7003
7002
|
vm.state = 1
|
|
7004
|
-
/* connected */
|
|
7003
|
+
/* VMState.connected */
|
|
7005
7004
|
; // reporting connection
|
|
7006
7005
|
|
|
7007
7006
|
var connected = Services.connected;
|
|
@@ -7018,11 +7017,11 @@
|
|
|
7018
7017
|
|
|
7019
7018
|
if (!isUndefined$1(connectedCallback)) {
|
|
7020
7019
|
logOperationStart(3
|
|
7021
|
-
/* ConnectedCallback */
|
|
7020
|
+
/* OperationId.ConnectedCallback */
|
|
7022
7021
|
, vm);
|
|
7023
7022
|
invokeComponentCallback(vm, connectedCallback);
|
|
7024
7023
|
logOperationEnd(3
|
|
7025
|
-
/* ConnectedCallback */
|
|
7024
|
+
/* OperationId.ConnectedCallback */
|
|
7026
7025
|
, vm);
|
|
7027
7026
|
}
|
|
7028
7027
|
}
|
|
@@ -7034,7 +7033,7 @@
|
|
|
7034
7033
|
function runDisconnectedCallback(vm) {
|
|
7035
7034
|
if (process.env.NODE_ENV !== 'production') {
|
|
7036
7035
|
assert.isTrue(vm.state !== 2
|
|
7037
|
-
/* disconnected */
|
|
7036
|
+
/* VMState.disconnected */
|
|
7038
7037
|
, "".concat(vm, " must be inserted."));
|
|
7039
7038
|
}
|
|
7040
7039
|
|
|
@@ -7047,7 +7046,7 @@
|
|
|
7047
7046
|
}
|
|
7048
7047
|
|
|
7049
7048
|
vm.state = 2
|
|
7050
|
-
/* disconnected */
|
|
7049
|
+
/* VMState.disconnected */
|
|
7051
7050
|
; // reporting disconnection
|
|
7052
7051
|
|
|
7053
7052
|
var disconnected = Services.disconnected;
|
|
@@ -7064,11 +7063,11 @@
|
|
|
7064
7063
|
|
|
7065
7064
|
if (!isUndefined$1(disconnectedCallback)) {
|
|
7066
7065
|
logOperationStart(5
|
|
7067
|
-
/* DisconnectedCallback */
|
|
7066
|
+
/* OperationId.DisconnectedCallback */
|
|
7068
7067
|
, vm);
|
|
7069
7068
|
invokeComponentCallback(vm, disconnectedCallback);
|
|
7070
7069
|
logOperationEnd(5
|
|
7071
|
-
/* DisconnectedCallback */
|
|
7070
|
+
/* OperationId.DisconnectedCallback */
|
|
7072
7071
|
, vm);
|
|
7073
7072
|
}
|
|
7074
7073
|
}
|
|
@@ -7118,13 +7117,13 @@
|
|
|
7118
7117
|
if (!isNull(vnode) && !isUndefined$1(vnode.elm)) {
|
|
7119
7118
|
switch (vnode.type) {
|
|
7120
7119
|
case 2
|
|
7121
|
-
/* Element */
|
|
7120
|
+
/* VNodeType.Element */
|
|
7122
7121
|
:
|
|
7123
7122
|
recursivelyDisconnectChildren(vnode.children);
|
|
7124
7123
|
break;
|
|
7125
7124
|
|
|
7126
7125
|
case 3
|
|
7127
|
-
/* CustomElement */
|
|
7126
|
+
/* VNodeType.CustomElement */
|
|
7128
7127
|
:
|
|
7129
7128
|
{
|
|
7130
7129
|
var vm = getAssociatedVM(vnode.elm);
|
|
@@ -7208,13 +7207,13 @@
|
|
|
7208
7207
|
resetComponentRoot(vm); // remove offenders
|
|
7209
7208
|
|
|
7210
7209
|
logOperationStart(6
|
|
7211
|
-
/* ErrorCallback */
|
|
7210
|
+
/* OperationId.ErrorCallback */
|
|
7212
7211
|
, vm); // error boundaries must have an ErrorCallback
|
|
7213
7212
|
|
|
7214
7213
|
var errorCallback = errorBoundaryVm.def.errorCallback;
|
|
7215
7214
|
invokeComponentCallback(errorBoundaryVm, errorCallback, [error, error.wcStack]);
|
|
7216
7215
|
logOperationEnd(6
|
|
7217
|
-
/* ErrorCallback */
|
|
7216
|
+
/* OperationId.ErrorCallback */
|
|
7218
7217
|
, vm);
|
|
7219
7218
|
}
|
|
7220
7219
|
}
|
|
@@ -7324,7 +7323,7 @@
|
|
|
7324
7323
|
var config;
|
|
7325
7324
|
ro.observe(function () {
|
|
7326
7325
|
return config = configCallback(component);
|
|
7327
|
-
}); // eslint-disable-next-line lwc-internal/no-invalid-todo
|
|
7326
|
+
}); // eslint-disable-next-line @lwc/lwc-internal/no-invalid-todo
|
|
7328
7327
|
// TODO: dev-mode validation of config based on the adapter.configSchema
|
|
7329
7328
|
// @ts-ignore it is assigned in the observe() callback
|
|
7330
7329
|
|
|
@@ -7359,7 +7358,7 @@
|
|
|
7359
7358
|
// guarantee that the linkage can be forged.
|
|
7360
7359
|
var contextRegistrationEvent = new WireContextRegistrationEvent(adapterContextToken, {
|
|
7361
7360
|
setNewContext: function setNewContext(newContext) {
|
|
7362
|
-
// eslint-disable-next-line lwc-internal/no-invalid-todo
|
|
7361
|
+
// eslint-disable-next-line @lwc/lwc-internal/no-invalid-todo
|
|
7363
7362
|
// TODO: dev-mode validation of config based on the adapter.contextSchema
|
|
7364
7363
|
callbackWhenContextIsReady(newContext);
|
|
7365
7364
|
},
|
|
@@ -7419,7 +7418,7 @@
|
|
|
7419
7418
|
// (ever), while context can have identity
|
|
7420
7419
|
|
|
7421
7420
|
if (vm.state === 1
|
|
7422
|
-
/* connected */
|
|
7421
|
+
/* VMState.connected */
|
|
7423
7422
|
) {
|
|
7424
7423
|
computeConfigAndUpdate();
|
|
7425
7424
|
}
|
|
@@ -7646,34 +7645,34 @@
|
|
|
7646
7645
|
|
|
7647
7646
|
switch (vnode.type) {
|
|
7648
7647
|
case 0
|
|
7649
|
-
/* Text */
|
|
7648
|
+
/* VNodeType.Text */
|
|
7650
7649
|
:
|
|
7651
7650
|
// VText has no special capability, fallback to the owner's renderer
|
|
7652
7651
|
hydratedNode = hydrateText(node, vnode, renderer);
|
|
7653
7652
|
break;
|
|
7654
7653
|
|
|
7655
7654
|
case 1
|
|
7656
|
-
/* Comment */
|
|
7655
|
+
/* VNodeType.Comment */
|
|
7657
7656
|
:
|
|
7658
7657
|
// VComment has no special capability, fallback to the owner's renderer
|
|
7659
7658
|
hydratedNode = hydrateComment(node, vnode, renderer);
|
|
7660
7659
|
break;
|
|
7661
7660
|
|
|
7662
7661
|
case 4
|
|
7663
|
-
/* Static */
|
|
7662
|
+
/* VNodeType.Static */
|
|
7664
7663
|
:
|
|
7665
7664
|
// VStatic are cacheable and cannot have custom renderer associated to them
|
|
7666
7665
|
hydratedNode = hydrateStaticElement(node, vnode, renderer);
|
|
7667
7666
|
break;
|
|
7668
7667
|
|
|
7669
7668
|
case 2
|
|
7670
|
-
/* Element */
|
|
7669
|
+
/* VNodeType.Element */
|
|
7671
7670
|
:
|
|
7672
7671
|
hydratedNode = hydrateElement(node, vnode, (_a = vnode.data.renderer) !== null && _a !== void 0 ? _a : renderer);
|
|
7673
7672
|
break;
|
|
7674
7673
|
|
|
7675
7674
|
case 3
|
|
7676
|
-
/* CustomElement */
|
|
7675
|
+
/* VNodeType.CustomElement */
|
|
7677
7676
|
:
|
|
7678
7677
|
hydratedNode = hydrateCustomElement(node, vnode, (_b = vnode.data.renderer) !== null && _b !== void 0 ? _b : renderer);
|
|
7679
7678
|
break;
|
|
@@ -7686,7 +7685,7 @@
|
|
|
7686
7685
|
var _a;
|
|
7687
7686
|
|
|
7688
7687
|
if (!hasCorrectNodeType(vnode, node, 3
|
|
7689
|
-
/* TEXT */
|
|
7688
|
+
/* EnvNodeTypes.TEXT */
|
|
7690
7689
|
, renderer)) {
|
|
7691
7690
|
return handleMismatch(node, vnode, renderer);
|
|
7692
7691
|
}
|
|
@@ -7711,7 +7710,7 @@
|
|
|
7711
7710
|
var _a;
|
|
7712
7711
|
|
|
7713
7712
|
if (!hasCorrectNodeType(vnode, node, 8
|
|
7714
|
-
/* COMMENT */
|
|
7713
|
+
/* EnvNodeTypes.COMMENT */
|
|
7715
7714
|
, renderer)) {
|
|
7716
7715
|
return handleMismatch(node, vnode, renderer);
|
|
7717
7716
|
}
|
|
@@ -7743,7 +7742,7 @@
|
|
|
7743
7742
|
|
|
7744
7743
|
function hydrateElement(elm, vnode, renderer) {
|
|
7745
7744
|
if (!hasCorrectNodeType(vnode, elm, 1
|
|
7746
|
-
/* ELEMENT */
|
|
7745
|
+
/* EnvNodeTypes.ELEMENT */
|
|
7747
7746
|
, renderer) || !isMatchingElement(vnode, elm, renderer)) {
|
|
7748
7747
|
return handleMismatch(elm, vnode, renderer);
|
|
7749
7748
|
}
|
|
@@ -7752,7 +7751,7 @@
|
|
|
7752
7751
|
var owner = vnode.owner;
|
|
7753
7752
|
var context = vnode.data.context;
|
|
7754
7753
|
var isDomManual = Boolean(!isUndefined$1(context) && !isUndefined$1(context.lwc) && context.lwc.dom === "manual"
|
|
7755
|
-
/* Manual */
|
|
7754
|
+
/* LwcDomMode.Manual */
|
|
7756
7755
|
);
|
|
7757
7756
|
|
|
7758
7757
|
if (isDomManual) {
|
|
@@ -7787,7 +7786,7 @@
|
|
|
7787
7786
|
|
|
7788
7787
|
function hydrateCustomElement(elm, vnode, renderer) {
|
|
7789
7788
|
if (!hasCorrectNodeType(vnode, elm, 1
|
|
7790
|
-
/* ELEMENT */
|
|
7789
|
+
/* EnvNodeTypes.ELEMENT */
|
|
7791
7790
|
, renderer) || !isMatchingElement(vnode, elm, renderer)) {
|
|
7792
7791
|
return handleMismatch(elm, vnode, renderer);
|
|
7793
7792
|
}
|
|
@@ -7809,14 +7808,14 @@
|
|
|
7809
7808
|
|
|
7810
7809
|
if (process.env.NODE_ENV !== 'production') {
|
|
7811
7810
|
assert.isTrue(vm.state === 0
|
|
7812
|
-
/* created */
|
|
7811
|
+
/* VMState.created */
|
|
7813
7812
|
, "".concat(vm, " cannot be recycled."));
|
|
7814
7813
|
}
|
|
7815
7814
|
|
|
7816
7815
|
runConnectedCallback(vm);
|
|
7817
7816
|
|
|
7818
7817
|
if (vm.renderMode !== 0
|
|
7819
|
-
/* Light */
|
|
7818
|
+
/* RenderMode.Light */
|
|
7820
7819
|
) {
|
|
7821
7820
|
var _getFirstChild2 = renderer.getFirstChild; // VM is not rendering in Light DOM, we can proceed and hydrate the slotted content.
|
|
7822
7821
|
// Note: for Light DOM, this is handled while hydrating the VM
|
|
@@ -8052,10 +8051,10 @@
|
|
|
8052
8051
|
getAttribute = renderer.getAttribute;
|
|
8053
8052
|
|
|
8054
8053
|
if (getProperty(client, 'nodeType') === 3
|
|
8055
|
-
/* TEXT */
|
|
8054
|
+
/* EnvNodeTypes.TEXT */
|
|
8056
8055
|
) {
|
|
8057
8056
|
if (!hasCorrectNodeType(vnode, ssr, 3
|
|
8058
|
-
/* TEXT */
|
|
8057
|
+
/* EnvNodeTypes.TEXT */
|
|
8059
8058
|
, renderer)) {
|
|
8060
8059
|
return false;
|
|
8061
8060
|
}
|
|
@@ -8064,10 +8063,10 @@
|
|
|
8064
8063
|
}
|
|
8065
8064
|
|
|
8066
8065
|
if (getProperty(client, 'nodeType') === 8
|
|
8067
|
-
/* COMMENT */
|
|
8066
|
+
/* EnvNodeTypes.COMMENT */
|
|
8068
8067
|
) {
|
|
8069
8068
|
if (!hasCorrectNodeType(vnode, ssr, 8
|
|
8070
|
-
/* COMMENT */
|
|
8069
|
+
/* EnvNodeTypes.COMMENT */
|
|
8071
8070
|
, renderer)) {
|
|
8072
8071
|
return false;
|
|
8073
8072
|
}
|
|
@@ -8076,7 +8075,7 @@
|
|
|
8076
8075
|
}
|
|
8077
8076
|
|
|
8078
8077
|
if (!hasCorrectNodeType(vnode, ssr, 1
|
|
8079
|
-
/* ELEMENT */
|
|
8078
|
+
/* EnvNodeTypes.ELEMENT */
|
|
8080
8079
|
, renderer)) {
|
|
8081
8080
|
return false;
|
|
8082
8081
|
}
|
|
@@ -8272,7 +8271,7 @@
|
|
|
8272
8271
|
|
|
8273
8272
|
return ctor;
|
|
8274
8273
|
}
|
|
8275
|
-
/* version: 2.
|
|
8274
|
+
/* version: 2.19.0 */
|
|
8276
8275
|
|
|
8277
8276
|
/*
|
|
8278
8277
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -8909,7 +8908,7 @@
|
|
|
8909
8908
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
8910
8909
|
*/
|
|
8911
8910
|
// TODO [#2472]: Remove this workaround when appropriate.
|
|
8912
|
-
// eslint-disable-next-line lwc-internal/no-global-node
|
|
8911
|
+
// eslint-disable-next-line @lwc/lwc-internal/no-global-node
|
|
8913
8912
|
|
|
8914
8913
|
|
|
8915
8914
|
var _Node$1 = Node;
|
|
@@ -9019,7 +9018,7 @@
|
|
|
9019
9018
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
9020
9019
|
*/
|
|
9021
9020
|
// TODO [#2472]: Remove this workaround when appropriate.
|
|
9022
|
-
// eslint-disable-next-line lwc-internal/no-global-node
|
|
9021
|
+
// eslint-disable-next-line @lwc/lwc-internal/no-global-node
|
|
9023
9022
|
|
|
9024
9023
|
|
|
9025
9024
|
var _Node = Node;
|
|
@@ -9092,7 +9091,7 @@
|
|
|
9092
9091
|
});
|
|
9093
9092
|
freeze(LightningElement);
|
|
9094
9093
|
seal(LightningElement.prototype);
|
|
9095
|
-
/* version: 2.
|
|
9094
|
+
/* version: 2.19.0 */
|
|
9096
9095
|
|
|
9097
9096
|
exports.LightningElement = LightningElement;
|
|
9098
9097
|
exports.__unstable__ProfilerControl = profilerControl;
|