lwc 2.25.1 → 2.26.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 +885 -411
- package/dist/engine-dom/iife/es2017/engine-dom.js +885 -411
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +731 -205
- package/dist/engine-dom/iife/es5/engine-dom.js +954 -311
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +883 -224
- package/dist/engine-dom/umd/es2017/engine-dom.js +885 -411
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +731 -205
- package/dist/engine-dom/umd/es5/engine-dom.js +954 -311
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +883 -224
- package/dist/engine-server/commonjs/es2017/engine-server.js +133 -227
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +133 -227
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +3 -3
- 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 +3 -3
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +3 -3
- 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
|
@@ -432,9 +432,9 @@ function htmlEscape(str, attrMode = false) {
|
|
|
432
432
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
433
433
|
*/
|
|
434
434
|
// Increment whenever the LWC template compiler changes
|
|
435
|
-
const LWC_VERSION = "2.
|
|
435
|
+
const LWC_VERSION = "2.26.0";
|
|
436
436
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
437
|
-
/** version: 2.
|
|
437
|
+
/** version: 2.26.0 */
|
|
438
438
|
|
|
439
439
|
/*
|
|
440
440
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
@@ -482,7 +482,6 @@ const features = {
|
|
|
482
482
|
DUMMY_TEST_FLAG: null,
|
|
483
483
|
ENABLE_ELEMENT_PATCH: null,
|
|
484
484
|
ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST: null,
|
|
485
|
-
ENABLE_HMR: null,
|
|
486
485
|
ENABLE_HTML_COLLECTIONS_PATCH: null,
|
|
487
486
|
ENABLE_INNER_OUTER_TEXT_PATCH: null,
|
|
488
487
|
ENABLE_MIXED_SHADOW_MODE: null,
|
|
@@ -493,6 +492,7 @@ const features = {
|
|
|
493
492
|
ENABLE_WIRE_SYNC_EMIT: null,
|
|
494
493
|
ENABLE_LIGHT_GET_ROOT_NODE_PATCH: null,
|
|
495
494
|
DISABLE_LIGHT_DOM_UNSCOPED_CSS: null,
|
|
495
|
+
ENABLE_SCOPED_CUSTOM_ELEMENT_REGISTRY: null,
|
|
496
496
|
};
|
|
497
497
|
if (!_globalThis.lwcRuntimeFlags) {
|
|
498
498
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
@@ -546,7 +546,7 @@ function setFeatureFlagForTest(name, value) {
|
|
|
546
546
|
setFeatureFlag(name, value);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
/** version: 2.
|
|
549
|
+
/** version: 2.26.0 */
|
|
550
550
|
|
|
551
551
|
/* proxy-compat-disable */
|
|
552
552
|
|
|
@@ -1855,7 +1855,9 @@ const refsCache = new WeakMap();
|
|
|
1855
1855
|
const LightningElement = function () {
|
|
1856
1856
|
// This should be as performant as possible, while any initialization should be done lazily
|
|
1857
1857
|
if (isNull(vmBeingConstructed)) {
|
|
1858
|
-
|
|
1858
|
+
// Thrown when doing something like `new LightningElement()` or
|
|
1859
|
+
// `class Foo extends LightningElement {}; new Foo()`
|
|
1860
|
+
throw new TypeError('Illegal constructor');
|
|
1859
1861
|
}
|
|
1860
1862
|
const vm = vmBeingConstructed;
|
|
1861
1863
|
const { def, elm } = vm;
|
|
@@ -2876,157 +2878,120 @@ const swappedStyleMap = new WeakMap();
|
|
|
2876
2878
|
const activeTemplates = new WeakMap();
|
|
2877
2879
|
const activeComponents = new WeakMap();
|
|
2878
2880
|
const activeStyles = new WeakMap();
|
|
2879
|
-
|
|
2880
2881
|
function getTemplateOrSwappedTemplate(tpl) {
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
if (lwcRuntimeFlags.ENABLE_HMR) {
|
|
2882
|
+
if (process.env.NODE_ENV === 'production') {
|
|
2883
|
+
// this method should never leak to prod
|
|
2884
|
+
throw new ReferenceError();
|
|
2885
|
+
}
|
|
2887
2886
|
const visited = new Set();
|
|
2888
|
-
|
|
2889
2887
|
while (swappedTemplateMap.has(tpl) && !visited.has(tpl)) {
|
|
2890
|
-
|
|
2891
|
-
|
|
2888
|
+
visited.add(tpl);
|
|
2889
|
+
tpl = swappedTemplateMap.get(tpl);
|
|
2892
2890
|
}
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
return tpl;
|
|
2891
|
+
return tpl;
|
|
2896
2892
|
}
|
|
2897
2893
|
function getComponentOrSwappedComponent(Ctor) {
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
if (lwcRuntimeFlags.ENABLE_HMR) {
|
|
2894
|
+
if (process.env.NODE_ENV === 'production') {
|
|
2895
|
+
// this method should never leak to prod
|
|
2896
|
+
throw new ReferenceError();
|
|
2897
|
+
}
|
|
2904
2898
|
const visited = new Set();
|
|
2905
|
-
|
|
2906
2899
|
while (swappedComponentMap.has(Ctor) && !visited.has(Ctor)) {
|
|
2907
|
-
|
|
2908
|
-
|
|
2900
|
+
visited.add(Ctor);
|
|
2901
|
+
Ctor = swappedComponentMap.get(Ctor);
|
|
2909
2902
|
}
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
return Ctor;
|
|
2903
|
+
return Ctor;
|
|
2913
2904
|
}
|
|
2914
2905
|
function getStyleOrSwappedStyle(style) {
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
if (lwcRuntimeFlags.ENABLE_HMR) {
|
|
2906
|
+
if (process.env.NODE_ENV === 'production') {
|
|
2907
|
+
// this method should never leak to prod
|
|
2908
|
+
throw new ReferenceError();
|
|
2909
|
+
}
|
|
2921
2910
|
const visited = new Set();
|
|
2922
|
-
|
|
2923
2911
|
while (swappedStyleMap.has(style) && !visited.has(style)) {
|
|
2924
|
-
|
|
2925
|
-
|
|
2912
|
+
visited.add(style);
|
|
2913
|
+
style = swappedStyleMap.get(style);
|
|
2926
2914
|
}
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
return style;
|
|
2915
|
+
return style;
|
|
2930
2916
|
}
|
|
2931
2917
|
function setActiveVM(vm) {
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
if (lwcRuntimeFlags.ENABLE_HMR) {
|
|
2918
|
+
if (process.env.NODE_ENV === 'production') {
|
|
2919
|
+
// this method should never leak to prod
|
|
2920
|
+
throw new ReferenceError();
|
|
2921
|
+
}
|
|
2938
2922
|
// tracking active component
|
|
2939
2923
|
const Ctor = vm.def.ctor;
|
|
2940
2924
|
let componentVMs = activeComponents.get(Ctor);
|
|
2941
|
-
|
|
2942
2925
|
if (isUndefined$1(componentVMs)) {
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
}
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2926
|
+
componentVMs = new Set();
|
|
2927
|
+
activeComponents.set(Ctor, componentVMs);
|
|
2928
|
+
}
|
|
2929
|
+
// this will allow us to keep track of the hot components
|
|
2930
|
+
componentVMs.add(vm);
|
|
2931
|
+
// tracking active template
|
|
2950
2932
|
const tpl = vm.cmpTemplate;
|
|
2951
|
-
|
|
2952
2933
|
if (tpl) {
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
stylesheetVMs.add(vm);
|
|
2983
|
-
});
|
|
2984
|
-
}
|
|
2934
|
+
let templateVMs = activeTemplates.get(tpl);
|
|
2935
|
+
if (isUndefined$1(templateVMs)) {
|
|
2936
|
+
templateVMs = new Set();
|
|
2937
|
+
activeTemplates.set(tpl, templateVMs);
|
|
2938
|
+
}
|
|
2939
|
+
// this will allow us to keep track of the templates that are
|
|
2940
|
+
// being used by a hot component
|
|
2941
|
+
templateVMs.add(vm);
|
|
2942
|
+
// tracking active styles associated to template
|
|
2943
|
+
const stylesheets = tpl.stylesheets;
|
|
2944
|
+
if (!isUndefined$1(stylesheets)) {
|
|
2945
|
+
flattenStylesheets(stylesheets).forEach((stylesheet) => {
|
|
2946
|
+
// this is necessary because we don't hold the list of styles
|
|
2947
|
+
// in the vm, we only hold the selected (already swapped template)
|
|
2948
|
+
// but the styles attached to the template might not be the actual
|
|
2949
|
+
// active ones, but the swapped versions of those.
|
|
2950
|
+
stylesheet = getStyleOrSwappedStyle(stylesheet);
|
|
2951
|
+
let stylesheetVMs = activeStyles.get(stylesheet);
|
|
2952
|
+
if (isUndefined$1(stylesheetVMs)) {
|
|
2953
|
+
stylesheetVMs = new Set();
|
|
2954
|
+
activeStyles.set(stylesheet, stylesheetVMs);
|
|
2955
|
+
}
|
|
2956
|
+
// this will allow us to keep track of the stylesheet that are
|
|
2957
|
+
// being used by a hot component
|
|
2958
|
+
stylesheetVMs.add(vm);
|
|
2959
|
+
});
|
|
2960
|
+
}
|
|
2985
2961
|
}
|
|
2986
|
-
}
|
|
2987
2962
|
}
|
|
2988
2963
|
function removeActiveVM(vm) {
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
if (lwcRuntimeFlags.ENABLE_HMR) {
|
|
2964
|
+
if (process.env.NODE_ENV === 'production') {
|
|
2965
|
+
// this method should never leak to prod
|
|
2966
|
+
throw new ReferenceError();
|
|
2967
|
+
}
|
|
2995
2968
|
// tracking inactive component
|
|
2996
2969
|
const Ctor = vm.def.ctor;
|
|
2997
2970
|
let list = activeComponents.get(Ctor);
|
|
2998
|
-
|
|
2999
2971
|
if (!isUndefined$1(list)) {
|
|
3000
|
-
// deleting the vm from the set to avoid leaking memory
|
|
3001
|
-
list.delete(vm);
|
|
3002
|
-
} // removing inactive template
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
const tpl = vm.cmpTemplate;
|
|
3006
|
-
|
|
3007
|
-
if (tpl) {
|
|
3008
|
-
list = activeTemplates.get(tpl);
|
|
3009
|
-
|
|
3010
|
-
if (!isUndefined$1(list)) {
|
|
3011
2972
|
// deleting the vm from the set to avoid leaking memory
|
|
3012
2973
|
list.delete(vm);
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
flattenStylesheets(styles).forEach(style => {
|
|
3020
|
-
list = activeStyles.get(style);
|
|
3021
|
-
|
|
3022
|
-
if (!isUndefined$1(list)) {
|
|
2974
|
+
}
|
|
2975
|
+
// removing inactive template
|
|
2976
|
+
const tpl = vm.cmpTemplate;
|
|
2977
|
+
if (tpl) {
|
|
2978
|
+
list = activeTemplates.get(tpl);
|
|
2979
|
+
if (!isUndefined$1(list)) {
|
|
3023
2980
|
// deleting the vm from the set to avoid leaking memory
|
|
3024
2981
|
list.delete(vm);
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
2982
|
+
}
|
|
2983
|
+
// removing active styles associated to template
|
|
2984
|
+
const styles = tpl.stylesheets;
|
|
2985
|
+
if (!isUndefined$1(styles)) {
|
|
2986
|
+
flattenStylesheets(styles).forEach((style) => {
|
|
2987
|
+
list = activeStyles.get(style);
|
|
2988
|
+
if (!isUndefined$1(list)) {
|
|
2989
|
+
// deleting the vm from the set to avoid leaking memory
|
|
2990
|
+
list.delete(vm);
|
|
2991
|
+
}
|
|
2992
|
+
});
|
|
2993
|
+
}
|
|
3028
2994
|
}
|
|
3029
|
-
}
|
|
3030
2995
|
}
|
|
3031
2996
|
|
|
3032
2997
|
/*
|
|
@@ -3459,75 +3424,6 @@ function createStylesheet(vm, stylesheets) {
|
|
|
3459
3424
|
return null;
|
|
3460
3425
|
}
|
|
3461
3426
|
|
|
3462
|
-
/*
|
|
3463
|
-
* Copyright (c) 2020, salesforce.com, inc.
|
|
3464
|
-
* All rights reserved.
|
|
3465
|
-
* SPDX-License-Identifier: MIT
|
|
3466
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
3467
|
-
*/
|
|
3468
|
-
|
|
3469
|
-
function checkHasVM(elm) {
|
|
3470
|
-
const hasVM = !isUndefined$1(getAssociatedVMIfPresent(elm));
|
|
3471
|
-
|
|
3472
|
-
if (process.env.NODE_ENV !== 'production' && !hasVM) {
|
|
3473
|
-
// Occurs when an element is manually created with the same tag name as an existing LWC component. In that case,
|
|
3474
|
-
// we skip calling the LWC connectedCallback/disconnectedCallback logic and log an error.
|
|
3475
|
-
logError(`VM for tag name "${elm.tagName.toLowerCase()}" is undefined. ` + `This indicates that an element was created with this tag name, ` + `which is already reserved by an LWC component. Use lwc.createElement ` + `instead to create elements.`);
|
|
3476
|
-
}
|
|
3477
|
-
|
|
3478
|
-
return hasVM;
|
|
3479
|
-
}
|
|
3480
|
-
|
|
3481
|
-
function getUpgradableConstructor(tagName, renderer) {
|
|
3482
|
-
const {
|
|
3483
|
-
getCustomElement,
|
|
3484
|
-
HTMLElementExported: RendererHTMLElement,
|
|
3485
|
-
defineCustomElement
|
|
3486
|
-
} = renderer; // Should never get a tag with upper case letter at this point, the compiler should
|
|
3487
|
-
// produce only tags with lowercase letters
|
|
3488
|
-
// But, for backwards compatibility, we will lower case the tagName
|
|
3489
|
-
|
|
3490
|
-
tagName = tagName.toLowerCase();
|
|
3491
|
-
let CE = getCustomElement(tagName);
|
|
3492
|
-
|
|
3493
|
-
if (!isUndefined$1(CE)) {
|
|
3494
|
-
return CE;
|
|
3495
|
-
}
|
|
3496
|
-
/**
|
|
3497
|
-
* LWC Upgradable Element reference to an element that was created
|
|
3498
|
-
* via the scoped registry mechanism, and that is ready to be upgraded.
|
|
3499
|
-
*/
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
CE = class LWCUpgradableElement extends RendererHTMLElement {
|
|
3503
|
-
constructor(upgradeCallback) {
|
|
3504
|
-
super();
|
|
3505
|
-
|
|
3506
|
-
if (isFunction$1(upgradeCallback)) {
|
|
3507
|
-
upgradeCallback(this); // nothing to do with the result for now
|
|
3508
|
-
}
|
|
3509
|
-
}
|
|
3510
|
-
|
|
3511
|
-
};
|
|
3512
|
-
|
|
3513
|
-
if (lwcRuntimeFlags.ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE) {
|
|
3514
|
-
CE.prototype.connectedCallback = function () {
|
|
3515
|
-
if (checkHasVM(this)) {
|
|
3516
|
-
connectRootElement(this);
|
|
3517
|
-
}
|
|
3518
|
-
};
|
|
3519
|
-
|
|
3520
|
-
CE.prototype.disconnectedCallback = function () {
|
|
3521
|
-
if (checkHasVM(this)) {
|
|
3522
|
-
disconnectRootElement(this);
|
|
3523
|
-
}
|
|
3524
|
-
};
|
|
3525
|
-
}
|
|
3526
|
-
|
|
3527
|
-
defineCustomElement(tagName, CE);
|
|
3528
|
-
return CE;
|
|
3529
|
-
}
|
|
3530
|
-
|
|
3531
3427
|
/*
|
|
3532
3428
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
3533
3429
|
* All rights reserved.
|
|
@@ -4030,7 +3926,9 @@ function mountCustomElement(vnode, parent, anchor, renderer) {
|
|
|
4030
3926
|
sel,
|
|
4031
3927
|
owner
|
|
4032
3928
|
} = vnode;
|
|
4033
|
-
const
|
|
3929
|
+
const {
|
|
3930
|
+
createCustomElement
|
|
3931
|
+
} = renderer;
|
|
4034
3932
|
/**
|
|
4035
3933
|
* Note: if the upgradable constructor does not expect, or throw when we new it
|
|
4036
3934
|
* with a callback as the first argument, we could implement a more advanced
|
|
@@ -4039,10 +3937,25 @@ function mountCustomElement(vnode, parent, anchor, renderer) {
|
|
|
4039
3937
|
*/
|
|
4040
3938
|
|
|
4041
3939
|
let vm;
|
|
4042
|
-
|
|
3940
|
+
|
|
3941
|
+
const upgradeCallback = elm => {
|
|
4043
3942
|
// the custom element from the registry is expecting an upgrade callback
|
|
4044
3943
|
vm = createViewModelHook(elm, vnode, renderer);
|
|
4045
|
-
}
|
|
3944
|
+
};
|
|
3945
|
+
|
|
3946
|
+
const connectedCallback = elm => {
|
|
3947
|
+
if (lwcRuntimeFlags.ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE) {
|
|
3948
|
+
connectRootElement(elm);
|
|
3949
|
+
}
|
|
3950
|
+
};
|
|
3951
|
+
|
|
3952
|
+
const disconnectedCallback = elm => {
|
|
3953
|
+
if (lwcRuntimeFlags.ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE) {
|
|
3954
|
+
disconnectRootElement(elm);
|
|
3955
|
+
}
|
|
3956
|
+
};
|
|
3957
|
+
|
|
3958
|
+
const elm = createCustomElement(sel, upgradeCallback, connectedCallback, disconnectedCallback);
|
|
4046
3959
|
vnode.elm = elm;
|
|
4047
3960
|
vnode.vm = vm;
|
|
4048
3961
|
linkNodeToShadow(elm, owner, renderer);
|
|
@@ -4050,8 +3963,6 @@ function mountCustomElement(vnode, parent, anchor, renderer) {
|
|
|
4050
3963
|
|
|
4051
3964
|
if (vm) {
|
|
4052
3965
|
allocateChildren(vnode, vm);
|
|
4053
|
-
} else if (vnode.ctor !== UpgradableConstructor) {
|
|
4054
|
-
throw new TypeError(`Incorrect Component Constructor`);
|
|
4055
3966
|
}
|
|
4056
3967
|
|
|
4057
3968
|
patchElementPropsAndAttrs$1(null, vnode, renderer);
|
|
@@ -6493,7 +6404,7 @@ function freezeTemplate(tmpl) {
|
|
|
6493
6404
|
});
|
|
6494
6405
|
}
|
|
6495
6406
|
}
|
|
6496
|
-
/* version: 2.
|
|
6407
|
+
/* version: 2.26.0 */
|
|
6497
6408
|
|
|
6498
6409
|
/*
|
|
6499
6410
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
@@ -6557,25 +6468,6 @@ function createElement(tagName, namespace) {
|
|
|
6557
6468
|
[HostEventListenersKey]: {},
|
|
6558
6469
|
};
|
|
6559
6470
|
}
|
|
6560
|
-
const registry = create(null);
|
|
6561
|
-
const reverseRegistry = new WeakMap();
|
|
6562
|
-
function registerCustomElement(name, ctor) {
|
|
6563
|
-
if (name !== StringToLowerCase.call(name) || registry[name]) {
|
|
6564
|
-
throw new TypeError(`Invalid Registration`);
|
|
6565
|
-
}
|
|
6566
|
-
registry[name] = ctor;
|
|
6567
|
-
reverseRegistry.set(ctor, name);
|
|
6568
|
-
}
|
|
6569
|
-
class HTMLElementImpl {
|
|
6570
|
-
constructor() {
|
|
6571
|
-
const { constructor } = this;
|
|
6572
|
-
const tagName = reverseRegistry.get(constructor);
|
|
6573
|
-
if (!tagName) {
|
|
6574
|
-
throw new TypeError(`Invalid Construction`);
|
|
6575
|
-
}
|
|
6576
|
-
return createElement(tagName);
|
|
6577
|
-
}
|
|
6578
|
-
}
|
|
6579
6471
|
const isNativeShadowDefined = false;
|
|
6580
6472
|
const isSyntheticShadowDefined = false;
|
|
6581
6473
|
function insert(node, parent, anchor) {
|
|
@@ -6804,19 +6696,34 @@ const getFirstChild = unsupportedMethod('getFirstChild');
|
|
|
6804
6696
|
const getFirstElementChild = unsupportedMethod('getFirstElementChild');
|
|
6805
6697
|
const getLastChild = unsupportedMethod('getLastChild');
|
|
6806
6698
|
const getLastElementChild = unsupportedMethod('getLastElementChild');
|
|
6807
|
-
function defineCustomElement(name, constructor, _options) {
|
|
6808
|
-
registerCustomElement(name, constructor);
|
|
6809
|
-
}
|
|
6810
|
-
function getCustomElement(name) {
|
|
6811
|
-
return registry[name];
|
|
6812
|
-
}
|
|
6813
|
-
const HTMLElementExported = HTMLElementImpl;
|
|
6814
6699
|
/* noop */
|
|
6815
6700
|
const assertInstanceOfHTMLElement = noop;
|
|
6701
|
+
const localRegistryRecord = new Map();
|
|
6702
|
+
function createUpgradableElementConstructor(tagName) {
|
|
6703
|
+
return function Ctor(upgradeCallback) {
|
|
6704
|
+
const elm = createElement(tagName);
|
|
6705
|
+
if (isFunction$1(upgradeCallback)) {
|
|
6706
|
+
upgradeCallback(elm); // nothing to do with the result for now
|
|
6707
|
+
}
|
|
6708
|
+
return elm;
|
|
6709
|
+
};
|
|
6710
|
+
}
|
|
6711
|
+
function getUpgradableElement(tagName) {
|
|
6712
|
+
let ctor = localRegistryRecord.get(tagName);
|
|
6713
|
+
if (!isUndefined$1(ctor)) {
|
|
6714
|
+
return ctor;
|
|
6715
|
+
}
|
|
6716
|
+
ctor = createUpgradableElementConstructor(tagName);
|
|
6717
|
+
localRegistryRecord.set(tagName, ctor);
|
|
6718
|
+
return ctor;
|
|
6719
|
+
}
|
|
6720
|
+
function createCustomElement(tagName, upgradeCallback) {
|
|
6721
|
+
const UpgradableConstructor = getUpgradableElement(tagName);
|
|
6722
|
+
return new UpgradableConstructor(upgradeCallback);
|
|
6723
|
+
}
|
|
6816
6724
|
const renderer = {
|
|
6817
6725
|
isNativeShadowDefined,
|
|
6818
6726
|
isSyntheticShadowDefined,
|
|
6819
|
-
HTMLElementExported,
|
|
6820
6727
|
insert,
|
|
6821
6728
|
remove,
|
|
6822
6729
|
cloneNode,
|
|
@@ -6824,6 +6731,7 @@ const renderer = {
|
|
|
6824
6731
|
createElement,
|
|
6825
6732
|
createText,
|
|
6826
6733
|
createComment,
|
|
6734
|
+
createCustomElement,
|
|
6827
6735
|
nextSibling,
|
|
6828
6736
|
attachShadow,
|
|
6829
6737
|
getProperty,
|
|
@@ -6851,8 +6759,6 @@ const renderer = {
|
|
|
6851
6759
|
isConnected,
|
|
6852
6760
|
insertStylesheet,
|
|
6853
6761
|
assertInstanceOfHTMLElement,
|
|
6854
|
-
defineCustomElement,
|
|
6855
|
-
getCustomElement,
|
|
6856
6762
|
};
|
|
6857
6763
|
|
|
6858
6764
|
/*
|
|
@@ -6963,6 +6869,6 @@ function renderComponent(tagName, Ctor, props = {}) {
|
|
|
6963
6869
|
*/
|
|
6964
6870
|
freeze(LightningElement);
|
|
6965
6871
|
seal(LightningElement.prototype);
|
|
6966
|
-
/* version: 2.
|
|
6872
|
+
/* version: 2.26.0 */
|
|
6967
6873
|
|
|
6968
6874
|
export { LightningElement, api$1 as api, createContextProvider, freezeTemplate, getComponentDef, isComponentConstructor, parseFragment, parseFragment as parseSVGFragment, readonly, register, registerComponent, registerDecorators, registerTemplate, renderComponent, renderer, sanitizeAttribute, setFeatureFlag, setFeatureFlagForTest, setHooks, track, unwrap, wire };
|
|
@@ -148,7 +148,7 @@ const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
|
148
148
|
// We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
|
|
149
149
|
// we can't use typeof since it will fail when transpiling.
|
|
150
150
|
const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
|
|
151
|
-
/** version: 2.
|
|
151
|
+
/** version: 2.26.0 */
|
|
152
152
|
|
|
153
153
|
/*
|
|
154
154
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -462,7 +462,7 @@ if (!_globalThis.lwcRuntimeFlags) {
|
|
|
462
462
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
463
463
|
}
|
|
464
464
|
const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
465
|
-
/** version: 2.
|
|
465
|
+
/** version: 2.26.0 */
|
|
466
466
|
|
|
467
467
|
/*
|
|
468
468
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -5170,4 +5170,4 @@ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
|
|
|
5170
5170
|
}));
|
|
5171
5171
|
});
|
|
5172
5172
|
}
|
|
5173
|
-
/** version: 2.
|
|
5173
|
+
/** version: 2.26.0 */
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
// We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
|
|
152
152
|
// we can't use typeof since it will fail when transpiling.
|
|
153
153
|
const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
|
|
154
|
-
/** version: 2.
|
|
154
|
+
/** version: 2.26.0 */
|
|
155
155
|
|
|
156
156
|
/*
|
|
157
157
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
466
466
|
}
|
|
467
467
|
const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
468
|
-
/** version: 2.
|
|
468
|
+
/** version: 2.26.0 */
|
|
469
469
|
|
|
470
470
|
/*
|
|
471
471
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -5173,6 +5173,6 @@
|
|
|
5173
5173
|
}));
|
|
5174
5174
|
});
|
|
5175
5175
|
}
|
|
5176
|
-
/** version: 2.
|
|
5176
|
+
/** version: 2.26.0 */
|
|
5177
5177
|
|
|
5178
5178
|
})();
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
const KEY__SHADOW_TOKEN = '$shadowToken$';
|
|
88
88
|
const KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
|
|
89
89
|
const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
90
|
-
/** version: 2.
|
|
90
|
+
/** version: 2.26.0 */
|
|
91
91
|
|
|
92
92
|
/*
|
|
93
93
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
402
402
|
}
|
|
403
403
|
const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
404
|
-
/** version: 2.
|
|
404
|
+
/** version: 2.26.0 */
|
|
405
405
|
|
|
406
406
|
/*
|
|
407
407
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -4971,6 +4971,6 @@
|
|
|
4971
4971
|
},
|
|
4972
4972
|
configurable: true,
|
|
4973
4973
|
});
|
|
4974
|
-
/** version: 2.
|
|
4974
|
+
/** version: 2.26.0 */
|
|
4975
4975
|
|
|
4976
4976
|
})();
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
var hasNativeSymbolSupport = /*@__PURE__*/function () {
|
|
200
200
|
return Symbol('x').toString() === 'Symbol(x)';
|
|
201
201
|
}();
|
|
202
|
-
/** version: 2.
|
|
202
|
+
/** version: 2.26.0 */
|
|
203
203
|
|
|
204
204
|
/*
|
|
205
205
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -548,7 +548,7 @@
|
|
|
548
548
|
}
|
|
549
549
|
|
|
550
550
|
var lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
551
|
-
/** version: 2.
|
|
551
|
+
/** version: 2.26.0 */
|
|
552
552
|
|
|
553
553
|
/*
|
|
554
554
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -5682,6 +5682,6 @@
|
|
|
5682
5682
|
}));
|
|
5683
5683
|
});
|
|
5684
5684
|
}
|
|
5685
|
-
/** version: 2.
|
|
5685
|
+
/** version: 2.26.0 */
|
|
5686
5686
|
|
|
5687
5687
|
})();
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
var KEY__SHADOW_TOKEN = '$shadowToken$';
|
|
124
124
|
var KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
|
|
125
125
|
var KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
126
|
-
/** version: 2.
|
|
126
|
+
/** version: 2.26.0 */
|
|
127
127
|
|
|
128
128
|
/*
|
|
129
129
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -470,7 +470,7 @@
|
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
var lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
473
|
-
/** version: 2.
|
|
473
|
+
/** version: 2.26.0 */
|
|
474
474
|
|
|
475
475
|
/*
|
|
476
476
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -5462,6 +5462,6 @@
|
|
|
5462
5462
|
},
|
|
5463
5463
|
configurable: true
|
|
5464
5464
|
});
|
|
5465
|
-
/** version: 2.
|
|
5465
|
+
/** version: 2.26.0 */
|
|
5466
5466
|
|
|
5467
5467
|
})();
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
// We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
|
|
154
154
|
// we can't use typeof since it will fail when transpiling.
|
|
155
155
|
const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
|
|
156
|
-
/** version: 2.
|
|
156
|
+
/** version: 2.26.0 */
|
|
157
157
|
|
|
158
158
|
/*
|
|
159
159
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
468
468
|
}
|
|
469
469
|
const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
470
|
-
/** version: 2.
|
|
470
|
+
/** version: 2.26.0 */
|
|
471
471
|
|
|
472
472
|
/*
|
|
473
473
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -5175,6 +5175,6 @@
|
|
|
5175
5175
|
}));
|
|
5176
5176
|
});
|
|
5177
5177
|
}
|
|
5178
|
-
/** version: 2.
|
|
5178
|
+
/** version: 2.26.0 */
|
|
5179
5179
|
|
|
5180
5180
|
}));
|