lwc 2.27.0 → 2.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/engine-dom/esm/es2017/engine-dom.js +135 -49
- package/dist/engine-dom/iife/es2017/engine-dom.js +135 -49
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +114 -43
- package/dist/engine-dom/iife/es5/engine-dom.js +176 -63
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +152 -57
- package/dist/engine-dom/umd/es2017/engine-dom.js +135 -49
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +114 -43
- package/dist/engine-dom/umd/es5/engine-dom.js +176 -63
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +152 -57
- package/dist/engine-server/commonjs/es2017/engine-server.js +93 -39
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +93 -39
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +4 -4
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +4 -4
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +4 -4
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +4 -4
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +4 -4
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +3 -3
- 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 +2 -2
- package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
- 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 +2 -2
- package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
- package/package.json +7 -7
|
@@ -132,6 +132,7 @@ var LWC = (function (exports) {
|
|
|
132
132
|
ArrayReverse = _Array$prototype.reverse,
|
|
133
133
|
ArrayShift = _Array$prototype.shift,
|
|
134
134
|
ArraySlice = _Array$prototype.slice,
|
|
135
|
+
ArraySome = _Array$prototype.some,
|
|
135
136
|
ArraySort = _Array$prototype.sort,
|
|
136
137
|
ArraySplice = _Array$prototype.splice,
|
|
137
138
|
ArrayUnshift = _Array$prototype.unshift,
|
|
@@ -367,9 +368,9 @@ var LWC = (function (exports) {
|
|
|
367
368
|
// Increment whenever the LWC template compiler changes
|
|
368
369
|
|
|
369
370
|
|
|
370
|
-
var LWC_VERSION = "2.
|
|
371
|
+
var LWC_VERSION = "2.28.1";
|
|
371
372
|
var LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
372
|
-
/** version: 2.
|
|
373
|
+
/** version: 2.28.1 */
|
|
373
374
|
|
|
374
375
|
/**
|
|
375
376
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
@@ -463,7 +464,7 @@ var LWC = (function (exports) {
|
|
|
463
464
|
patch$1(propName);
|
|
464
465
|
}
|
|
465
466
|
}
|
|
466
|
-
/** version: 2.
|
|
467
|
+
/** version: 2.28.1 */
|
|
467
468
|
|
|
468
469
|
/**
|
|
469
470
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
@@ -557,7 +558,7 @@ var LWC = (function (exports) {
|
|
|
557
558
|
setFeatureFlag(name, value);
|
|
558
559
|
}
|
|
559
560
|
}
|
|
560
|
-
/** version: 2.
|
|
561
|
+
/** version: 2.28.1 */
|
|
561
562
|
|
|
562
563
|
/*
|
|
563
564
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -4516,6 +4517,12 @@ var LWC = (function (exports) {
|
|
|
4516
4517
|
;
|
|
4517
4518
|
}
|
|
4518
4519
|
|
|
4520
|
+
function isVFragment(vnode) {
|
|
4521
|
+
return vnode.type === 5
|
|
4522
|
+
/* VNodeType.Fragment */
|
|
4523
|
+
;
|
|
4524
|
+
}
|
|
4525
|
+
|
|
4519
4526
|
function isVScopedSlotFragment(vnode) {
|
|
4520
4527
|
return vnode.type === 6
|
|
4521
4528
|
/* VNodeType.ScopedSlotFragment */
|
|
@@ -5079,9 +5086,14 @@ var LWC = (function (exports) {
|
|
|
5079
5086
|
if (lwcRuntimeFlags.ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE) {
|
|
5080
5087
|
disconnectRootElement(elm);
|
|
5081
5088
|
}
|
|
5082
|
-
};
|
|
5089
|
+
}; // Should never get a tag with upper case letter at this point; the compiler
|
|
5090
|
+
// should produce only tags with lowercase letters. However, the Java
|
|
5091
|
+
// compiler may generate tagnames with uppercase letters so - for backwards
|
|
5092
|
+
// compatibility, we lower case the tagname here.
|
|
5093
|
+
|
|
5083
5094
|
|
|
5084
|
-
var
|
|
5095
|
+
var normalizedTagname = sel.toLowerCase();
|
|
5096
|
+
var elm = createCustomElement(normalizedTagname, upgradeCallback, connectedCallback, disconnectedCallback);
|
|
5085
5097
|
vnode.elm = elm;
|
|
5086
5098
|
vnode.vm = vm;
|
|
5087
5099
|
linkNodeToShadow(elm, owner, renderer);
|
|
@@ -5369,6 +5381,19 @@ var LWC = (function (exports) {
|
|
|
5369
5381
|
var renderMode = vm.renderMode,
|
|
5370
5382
|
shadowMode = vm.shadowMode;
|
|
5371
5383
|
|
|
5384
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5385
|
+
// If any of the children being allocated is a scoped slot fragment, make sure the receiving
|
|
5386
|
+
// component is a light DOM component. This is mainly to validate light dom parent running
|
|
5387
|
+
// in native shadow mode.
|
|
5388
|
+
if (renderMode !== 0
|
|
5389
|
+
/* RenderMode.Light */
|
|
5390
|
+
&& ArraySome.call(children, function (child) {
|
|
5391
|
+
return !isNull(child) && isVScopedSlotFragment(child);
|
|
5392
|
+
})) {
|
|
5393
|
+
logError("Invalid usage of 'lwc:slot-data' on ".concat(getComponentTag(vm), " tag. Scoped slot content can only be passed to a light dom child."));
|
|
5394
|
+
}
|
|
5395
|
+
}
|
|
5396
|
+
|
|
5372
5397
|
if (shadowMode === 1
|
|
5373
5398
|
/* ShadowMode.Synthetic */
|
|
5374
5399
|
|| renderMode === 0
|
|
@@ -5408,22 +5433,26 @@ var LWC = (function (exports) {
|
|
|
5408
5433
|
|
|
5409
5434
|
return vm;
|
|
5410
5435
|
}
|
|
5436
|
+
/**
|
|
5437
|
+
* Collects all slots into a SlotSet, traversing through VFragment Nodes
|
|
5438
|
+
*/
|
|
5411
5439
|
|
|
5412
|
-
function allocateInSlot(vm, children, owner) {
|
|
5413
|
-
var _a, _b;
|
|
5414
5440
|
|
|
5415
|
-
|
|
5416
|
-
var
|
|
5417
|
-
vm.cmpSlots = {
|
|
5418
|
-
owner: owner,
|
|
5419
|
-
slotAssignments: cmpSlotsMapping
|
|
5420
|
-
};
|
|
5441
|
+
function collectSlots(vm, children, cmpSlotsMapping) {
|
|
5442
|
+
var _a, _b;
|
|
5421
5443
|
|
|
5422
5444
|
for (var _i15 = 0, len = children.length; _i15 < len; _i15 += 1) {
|
|
5423
5445
|
var vnode = children[_i15];
|
|
5424
5446
|
|
|
5425
5447
|
if (isNull(vnode)) {
|
|
5426
5448
|
continue;
|
|
5449
|
+
} // Dive further iff the content is wrapped in a VFragment
|
|
5450
|
+
|
|
5451
|
+
|
|
5452
|
+
if (isVFragment(vnode)) {
|
|
5453
|
+
// Remove the text delimiter nodes to avoid overriding default slot content
|
|
5454
|
+
collectSlots(vm, vnode.children.slice(1, -1), cmpSlotsMapping);
|
|
5455
|
+
continue;
|
|
5427
5456
|
}
|
|
5428
5457
|
|
|
5429
5458
|
var slotName = '';
|
|
@@ -5437,6 +5466,16 @@ var LWC = (function (exports) {
|
|
|
5437
5466
|
var vnodes = cmpSlotsMapping[slotName] = cmpSlotsMapping[slotName] || [];
|
|
5438
5467
|
ArrayPush$1.call(vnodes, vnode);
|
|
5439
5468
|
}
|
|
5469
|
+
}
|
|
5470
|
+
|
|
5471
|
+
function allocateInSlot(vm, children, owner) {
|
|
5472
|
+
var oldSlotsMapping = vm.cmpSlots.slotAssignments;
|
|
5473
|
+
var cmpSlotsMapping = create(null);
|
|
5474
|
+
collectSlots(vm, children, cmpSlotsMapping);
|
|
5475
|
+
vm.cmpSlots = {
|
|
5476
|
+
owner: owner,
|
|
5477
|
+
slotAssignments: cmpSlotsMapping
|
|
5478
|
+
};
|
|
5440
5479
|
|
|
5441
5480
|
if (isFalse(vm.isDirty)) {
|
|
5442
5481
|
// We need to determine if the old allocation is really different from the new one
|
|
@@ -5448,7 +5487,7 @@ var LWC = (function (exports) {
|
|
|
5448
5487
|
return;
|
|
5449
5488
|
}
|
|
5450
5489
|
|
|
5451
|
-
for (var _i16 = 0,
|
|
5490
|
+
for (var _i16 = 0, len = oldKeys.length; _i16 < len; _i16 += 1) {
|
|
5452
5491
|
var key = oldKeys[_i16];
|
|
5453
5492
|
|
|
5454
5493
|
if (isUndefined$1(cmpSlotsMapping[key]) || oldSlotsMapping[key].length !== cmpSlotsMapping[key].length) {
|
|
@@ -5457,10 +5496,10 @@ var LWC = (function (exports) {
|
|
|
5457
5496
|
}
|
|
5458
5497
|
|
|
5459
5498
|
var oldVNodes = oldSlotsMapping[key];
|
|
5460
|
-
var
|
|
5499
|
+
var vnodes = cmpSlotsMapping[key];
|
|
5461
5500
|
|
|
5462
5501
|
for (var j = 0, a = cmpSlotsMapping[key].length; j < a; j += 1) {
|
|
5463
|
-
if (oldVNodes[j] !==
|
|
5502
|
+
if (oldVNodes[j] !== vnodes[j]) {
|
|
5464
5503
|
markComponentAsDirty(vm);
|
|
5465
5504
|
return;
|
|
5466
5505
|
}
|
|
@@ -5777,27 +5816,45 @@ var LWC = (function (exports) {
|
|
|
5777
5816
|
}
|
|
5778
5817
|
|
|
5779
5818
|
if (!isUndefined$1(slotset) && !isUndefined$1(slotset.slotAssignments) && !isUndefined$1(slotset.slotAssignments[slotName]) && slotset.slotAssignments[slotName].length !== 0) {
|
|
5780
|
-
children = slotset.slotAssignments[slotName].reduce(function (
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
var vmBeingRenderedInception = getVMBeingRendered();
|
|
5784
|
-
var _children = []; // Evaluate in the scope of the slot content's owner
|
|
5785
|
-
// if a slotset is provided, there will always be an owner. The only case where owner is
|
|
5786
|
-
// undefined is for root components, but root components cannot accept slotted content
|
|
5787
|
-
|
|
5788
|
-
setVMBeingRendered(slotset.owner);
|
|
5789
|
-
|
|
5790
|
-
try {
|
|
5791
|
-
_children = vnode.factory(data.slotData);
|
|
5792
|
-
} finally {
|
|
5793
|
-
setVMBeingRendered(vmBeingRenderedInception);
|
|
5794
|
-
}
|
|
5819
|
+
children = slotset.slotAssignments[slotName].reduce(function (accumulator, vnode) {
|
|
5820
|
+
if (vnode) {
|
|
5821
|
+
var assignedNodeIsScopedSlot = isVScopedSlotFragment(vnode); // The only sniff test for a scoped <slot> element is the presence of `slotData`
|
|
5795
5822
|
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5823
|
+
var isScopedSlotElement = !isUndefined$1(data.slotData); // Check if slot types of parent and child are matching
|
|
5824
|
+
|
|
5825
|
+
if (assignedNodeIsScopedSlot !== isScopedSlotElement) {
|
|
5826
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5827
|
+
logError("Mismatched slot types for ".concat(slotName === '' ? '(default)' : slotName, " slot. Both parent and child component must use standard type or scoped type for a given slot."), slotset.owner);
|
|
5828
|
+
} // Ignore slot content from parent
|
|
5829
|
+
|
|
5830
|
+
|
|
5831
|
+
return accumulator;
|
|
5832
|
+
} // If the passed slot content is factory, evaluate it and add the produced vnodes
|
|
5833
|
+
|
|
5834
|
+
|
|
5835
|
+
if (assignedNodeIsScopedSlot) {
|
|
5836
|
+
var vmBeingRenderedInception = getVMBeingRendered();
|
|
5837
|
+
var scopedSlotChildren = []; // Evaluate in the scope of the slot content's owner
|
|
5838
|
+
// if a slotset is provided, there will always be an owner. The only case where owner is
|
|
5839
|
+
// undefined is for root components, but root components cannot accept slotted content
|
|
5840
|
+
|
|
5841
|
+
setVMBeingRendered(slotset.owner);
|
|
5842
|
+
|
|
5843
|
+
try {
|
|
5844
|
+
scopedSlotChildren = vnode.factory(data.slotData);
|
|
5845
|
+
} finally {
|
|
5846
|
+
setVMBeingRendered(vmBeingRenderedInception);
|
|
5847
|
+
}
|
|
5848
|
+
|
|
5849
|
+
return ArrayConcat$1.call(accumulator, scopedSlotChildren);
|
|
5850
|
+
} else {
|
|
5851
|
+
// If the slot content is standard type, the content is static, no additional
|
|
5852
|
+
// processing needed on the vnode
|
|
5853
|
+
return ArrayConcat$1.call(accumulator, vnode);
|
|
5854
|
+
}
|
|
5800
5855
|
}
|
|
5856
|
+
|
|
5857
|
+
return accumulator;
|
|
5801
5858
|
}, []);
|
|
5802
5859
|
}
|
|
5803
5860
|
|
|
@@ -6381,7 +6438,7 @@ var LWC = (function (exports) {
|
|
|
6381
6438
|
|
|
6382
6439
|
function buildParseFragmentFn(createFragmentFn) {
|
|
6383
6440
|
return function (strings) {
|
|
6384
|
-
for (var
|
|
6441
|
+
for (var _len4 = arguments.length, keys = new Array(_len4 > 1 ? _len4 - 1 : 0), _key3 = 1; _key3 < _len4; _key3++) {
|
|
6385
6442
|
keys[_key3 - 1] = arguments[_key3];
|
|
6386
6443
|
}
|
|
6387
6444
|
|
|
@@ -8225,12 +8282,13 @@ var LWC = (function (exports) {
|
|
|
8225
8282
|
}
|
|
8226
8283
|
|
|
8227
8284
|
var nodesAreCompatible = true;
|
|
8228
|
-
var
|
|
8285
|
+
var readableVnodeClassname;
|
|
8286
|
+
var elmClassName = getProperty(elm, 'className');
|
|
8229
8287
|
|
|
8230
|
-
if (!isUndefined$1(className) && String(className) !==
|
|
8288
|
+
if (!isUndefined$1(className) && String(className) !== elmClassName) {
|
|
8231
8289
|
// className is used when class is bound to an expr.
|
|
8232
8290
|
nodesAreCompatible = false;
|
|
8233
|
-
|
|
8291
|
+
readableVnodeClassname = className;
|
|
8234
8292
|
} else if (!isUndefined$1(classMap)) {
|
|
8235
8293
|
// classMap is used when class is set to static value.
|
|
8236
8294
|
var classList = getClassList(elm);
|
|
@@ -8244,16 +8302,20 @@ var LWC = (function (exports) {
|
|
|
8244
8302
|
}
|
|
8245
8303
|
}
|
|
8246
8304
|
|
|
8247
|
-
|
|
8305
|
+
readableVnodeClassname = computedClassName.trim();
|
|
8248
8306
|
|
|
8249
8307
|
if (classList.length > keys(classMap).length) {
|
|
8250
8308
|
nodesAreCompatible = false;
|
|
8251
8309
|
}
|
|
8310
|
+
} else if (isUndefined$1(className) && elmClassName !== '') {
|
|
8311
|
+
// SSR contains a className but client-side VDOM does not
|
|
8312
|
+
nodesAreCompatible = false;
|
|
8313
|
+
readableVnodeClassname = '';
|
|
8252
8314
|
}
|
|
8253
8315
|
|
|
8254
8316
|
if (!nodesAreCompatible) {
|
|
8255
8317
|
if (process.env.NODE_ENV !== 'production') {
|
|
8256
|
-
logError("Mismatch hydrating element <".concat(getProperty(elm, 'tagName').toLowerCase(), ">: attribute \"class\" has different values, expected \"").concat(
|
|
8318
|
+
logError("Mismatch hydrating element <".concat(getProperty(elm, 'tagName').toLowerCase(), ">: attribute \"class\" has different values, expected \"").concat(readableVnodeClassname, "\" but found \"").concat(elmClassName, "\""), vnode.owner);
|
|
8257
8319
|
}
|
|
8258
8320
|
}
|
|
8259
8321
|
|
|
@@ -8536,7 +8598,7 @@ var LWC = (function (exports) {
|
|
|
8536
8598
|
|
|
8537
8599
|
return ctor;
|
|
8538
8600
|
}
|
|
8539
|
-
/* version: 2.
|
|
8601
|
+
/* version: 2.28.1 */
|
|
8540
8602
|
|
|
8541
8603
|
/*
|
|
8542
8604
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -8871,10 +8933,12 @@ var LWC = (function (exports) {
|
|
|
8871
8933
|
var pendingRegistryForElement = new WeakMap();
|
|
8872
8934
|
var definitionForConstructor = new WeakMap();
|
|
8873
8935
|
var registeredUserCtors = new WeakSet();
|
|
8936
|
+
var registeredPivotCtors = new WeakSet();
|
|
8874
8937
|
var pivotCtorByTag = new Map();
|
|
8875
8938
|
var globalDefinitionsByTag = new Map();
|
|
8876
8939
|
var globalDefinitionsByClass = new Map();
|
|
8877
8940
|
var awaitingUpgrade = new Map();
|
|
8941
|
+
var pendingWhenDefinedCallbacks = new Map();
|
|
8878
8942
|
var EMPTY_SET = new Set();
|
|
8879
8943
|
|
|
8880
8944
|
function createDefinitionRecord(constructor) {
|
|
@@ -9016,6 +9080,7 @@ var LWC = (function (exports) {
|
|
|
9016
9080
|
}(NativeHTMLElement);
|
|
9017
9081
|
|
|
9018
9082
|
PivotCtor.observedAttributes = _toConsumableArray(registeredDefinition.observedAttributes);
|
|
9083
|
+
registeredPivotCtors.add(PivotCtor);
|
|
9019
9084
|
return PivotCtor;
|
|
9020
9085
|
}
|
|
9021
9086
|
|
|
@@ -9166,6 +9231,43 @@ var LWC = (function (exports) {
|
|
|
9166
9231
|
}
|
|
9167
9232
|
|
|
9168
9233
|
return createDefinitionRecord(constructor);
|
|
9234
|
+
} // Defer a `whenDefined()` callback until an externally-visible custom element is defined
|
|
9235
|
+
|
|
9236
|
+
|
|
9237
|
+
function createPendingWhenDefinedCallback(tagName) {
|
|
9238
|
+
return new Promise(function (resolve) {
|
|
9239
|
+
var resolvers = pendingWhenDefinedCallbacks.get(tagName);
|
|
9240
|
+
|
|
9241
|
+
if (isUndefined$1(resolvers)) {
|
|
9242
|
+
resolvers = [];
|
|
9243
|
+
pendingWhenDefinedCallbacks.set(tagName, resolvers);
|
|
9244
|
+
}
|
|
9245
|
+
|
|
9246
|
+
resolvers.push(resolve);
|
|
9247
|
+
});
|
|
9248
|
+
} // Call any pending `whenDefined()` callbacks
|
|
9249
|
+
|
|
9250
|
+
|
|
9251
|
+
function flushPendingWhenDefinedCallbacks(tagName, ctor) {
|
|
9252
|
+
var resolvers = pendingWhenDefinedCallbacks.get(tagName);
|
|
9253
|
+
|
|
9254
|
+
if (!isUndefined$1(resolvers)) {
|
|
9255
|
+
var _iterator6 = _createForOfIteratorHelper(resolvers),
|
|
9256
|
+
_step6;
|
|
9257
|
+
|
|
9258
|
+
try {
|
|
9259
|
+
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
9260
|
+
var resolver = _step6.value;
|
|
9261
|
+
resolver(ctor);
|
|
9262
|
+
}
|
|
9263
|
+
} catch (err) {
|
|
9264
|
+
_iterator6.e(err);
|
|
9265
|
+
} finally {
|
|
9266
|
+
_iterator6.f();
|
|
9267
|
+
}
|
|
9268
|
+
}
|
|
9269
|
+
|
|
9270
|
+
pendingWhenDefinedCallbacks.delete(tagName);
|
|
9169
9271
|
}
|
|
9170
9272
|
|
|
9171
9273
|
var _window2 = window,
|
|
@@ -9220,12 +9322,12 @@ var LWC = (function (exports) {
|
|
|
9220
9322
|
if (!isUndefined$1(awaiting)) {
|
|
9221
9323
|
awaitingUpgrade.delete(tagName);
|
|
9222
9324
|
|
|
9223
|
-
var
|
|
9224
|
-
|
|
9325
|
+
var _iterator7 = _createForOfIteratorHelper(awaiting),
|
|
9326
|
+
_step7;
|
|
9225
9327
|
|
|
9226
9328
|
try {
|
|
9227
|
-
for (
|
|
9228
|
-
var element =
|
|
9329
|
+
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
9330
|
+
var element = _step7.value;
|
|
9229
9331
|
var registeredDefinition = pendingRegistryForElement.get(element); // At this point, registeredDefinition should never be undefined because awaitingUpgrade
|
|
9230
9332
|
// is only populated when we haven't run internalUpgrade yet, and we only populate
|
|
9231
9333
|
// pendingRegistryForElement when internalUpgrade hasn't run yet.
|
|
@@ -9237,11 +9339,14 @@ var LWC = (function (exports) {
|
|
|
9237
9339
|
}
|
|
9238
9340
|
}
|
|
9239
9341
|
} catch (err) {
|
|
9240
|
-
|
|
9342
|
+
_iterator7.e(err);
|
|
9241
9343
|
} finally {
|
|
9242
|
-
|
|
9344
|
+
_iterator7.f();
|
|
9243
9345
|
}
|
|
9244
|
-
}
|
|
9346
|
+
} // If anyone called customElements.whenDefined() and is still waiting for a promise resolution, resolve now
|
|
9347
|
+
|
|
9348
|
+
|
|
9349
|
+
flushPendingWhenDefinedCallbacks(tagName, constructor);
|
|
9245
9350
|
};
|
|
9246
9351
|
|
|
9247
9352
|
CustomElementRegistry.prototype.get = function get(tagName) {
|
|
@@ -9252,10 +9357,13 @@ var LWC = (function (exports) {
|
|
|
9252
9357
|
|
|
9253
9358
|
if (!isUndefined$1(definition)) {
|
|
9254
9359
|
return definition.UserCtor; // defined by the patched custom elements registry
|
|
9255
|
-
}
|
|
9360
|
+
}
|
|
9256
9361
|
|
|
9362
|
+
if (registeredPivotCtors.has(NativeCtor)) {
|
|
9363
|
+
return undefined; // pivot constructors should not be observable, return undefined
|
|
9364
|
+
}
|
|
9257
9365
|
|
|
9258
|
-
return NativeCtor; //
|
|
9366
|
+
return NativeCtor; // constructor that existed before patching
|
|
9259
9367
|
}
|
|
9260
9368
|
};
|
|
9261
9369
|
|
|
@@ -9265,15 +9373,20 @@ var LWC = (function (exports) {
|
|
|
9265
9373
|
|
|
9266
9374
|
if (!isUndefined$1(definition)) {
|
|
9267
9375
|
return definition.UserCtor;
|
|
9268
|
-
} //
|
|
9269
|
-
// In this case, the custom element must have been defined before the registry patches
|
|
9376
|
+
} // In this case, the custom element must have been defined before the registry patches
|
|
9270
9377
|
// were applied. So return the non-pivot constructor
|
|
9271
9378
|
|
|
9272
9379
|
|
|
9273
9380
|
if (isUndefined$1(NativeCtor)) {
|
|
9274
9381
|
// Chromium bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1335247
|
|
9275
9382
|
// We can patch the correct behavior using customElements.get()
|
|
9276
|
-
|
|
9383
|
+
NativeCtor = nativeGet.call(nativeRegistry, tagName);
|
|
9384
|
+
}
|
|
9385
|
+
|
|
9386
|
+
if (registeredPivotCtors.has(NativeCtor)) {
|
|
9387
|
+
// Pivot constructors should not be observable. Wait to resolve the promise
|
|
9388
|
+
// if a constructor is ever defined in userland
|
|
9389
|
+
return createPendingWhenDefinedCallback(tagName);
|
|
9277
9390
|
}
|
|
9278
9391
|
|
|
9279
9392
|
return NativeCtor;
|
|
@@ -9537,7 +9650,7 @@ var LWC = (function (exports) {
|
|
|
9537
9650
|
function isNull(obj) {
|
|
9538
9651
|
return obj === null;
|
|
9539
9652
|
}
|
|
9540
|
-
/** version: 2.
|
|
9653
|
+
/** version: 2.28.1 */
|
|
9541
9654
|
|
|
9542
9655
|
/*
|
|
9543
9656
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -9605,18 +9718,18 @@ var LWC = (function (exports) {
|
|
|
9605
9718
|
var wrapperTags = topLevelWrappingMap[getTagName(html)];
|
|
9606
9719
|
|
|
9607
9720
|
if (!isUndefined(wrapperTags)) {
|
|
9608
|
-
var
|
|
9609
|
-
|
|
9721
|
+
var _iterator8 = _createForOfIteratorHelper(wrapperTags),
|
|
9722
|
+
_step8;
|
|
9610
9723
|
|
|
9611
9724
|
try {
|
|
9612
|
-
for (
|
|
9613
|
-
var wrapperTag =
|
|
9725
|
+
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
9726
|
+
var wrapperTag = _step8.value;
|
|
9614
9727
|
html = "<".concat(wrapperTag, ">").concat(html, "</").concat(wrapperTag, ">");
|
|
9615
9728
|
}
|
|
9616
9729
|
} catch (err) {
|
|
9617
|
-
|
|
9730
|
+
_iterator8.e(err);
|
|
9618
9731
|
} finally {
|
|
9619
|
-
|
|
9732
|
+
_iterator8.f();
|
|
9620
9733
|
}
|
|
9621
9734
|
} // For IE11, the document title must not be undefined, but it can be an empty string
|
|
9622
9735
|
// https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createHTMLDocument#browser_compatibility
|
|
@@ -10204,7 +10317,7 @@ var LWC = (function (exports) {
|
|
|
10204
10317
|
});
|
|
10205
10318
|
freeze(LightningElement);
|
|
10206
10319
|
seal(LightningElement.prototype);
|
|
10207
|
-
/* version: 2.
|
|
10320
|
+
/* version: 2.28.1 */
|
|
10208
10321
|
|
|
10209
10322
|
exports.LightningElement = LightningElement;
|
|
10210
10323
|
exports.__unstable__ProfilerControl = profilerControl;
|