lwc 2.37.3 → 2.38.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 +196 -127
- package/dist/engine-dom/esm/es2017/engine-dom.js.map +1 -0
- package/dist/engine-dom/iife/es2017/engine-dom.js +196 -127
- package/dist/engine-dom/iife/es2017/engine-dom.js.map +1 -0
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -1
- package/dist/engine-dom/iife/es2017/engine-dom.min.js.map +1 -0
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +184 -118
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js.map +1 -0
- package/dist/engine-dom/iife/es5/engine-dom.js +226 -157
- package/dist/engine-dom/iife/es5/engine-dom.js.map +1 -0
- package/dist/engine-dom/iife/es5/engine-dom.min.js +2 -1
- package/dist/engine-dom/iife/es5/engine-dom.min.js.map +1 -0
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +214 -148
- package/dist/engine-dom/iife/es5/engine-dom_debug.js.map +1 -0
- package/dist/engine-dom/umd/es2017/engine-dom.js +196 -127
- package/dist/engine-dom/umd/es2017/engine-dom.js.map +1 -0
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -1
- package/dist/engine-dom/umd/es2017/engine-dom.min.js.map +1 -0
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +184 -118
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js.map +1 -0
- package/dist/engine-dom/umd/es5/engine-dom.js +226 -157
- package/dist/engine-dom/umd/es5/engine-dom.js.map +1 -0
- package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -1
- package/dist/engine-dom/umd/es5/engine-dom.min.js.map +1 -0
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +214 -148
- package/dist/engine-dom/umd/es5/engine-dom_debug.js.map +1 -0
- package/dist/engine-server/commonjs/es2017/engine-server.js +181 -129
- package/dist/engine-server/commonjs/es2017/engine-server.js.map +1 -0
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +2 -1
- package/dist/engine-server/commonjs/es2017/engine-server.min.js.map +1 -0
- package/dist/engine-server/esm/es2017/engine-server.js +181 -129
- package/dist/engine-server/esm/es2017/engine-server.js.map +1 -0
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +12 -5
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js.map +1 -0
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +12 -5
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js.map +1 -0
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -1
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js.map +1 -0
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +12 -5
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js.map +1 -0
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +8 -5
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js.map +1 -0
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -1
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js.map +1 -0
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +8 -5
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js.map +1 -0
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +12 -5
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js.map +1 -0
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +3 -2
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js.map +1 -0
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +12 -5
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js.map +1 -0
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +8 -5
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js.map +1 -0
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -1
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js.map +1 -0
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +8 -5
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js.map +1 -0
- package/dist/wire-service/esm/es2017/wire-service.js +3 -2
- package/dist/wire-service/esm/es2017/wire-service.js.map +1 -0
- package/dist/wire-service/iife/es2017/wire-service.js +3 -2
- package/dist/wire-service/iife/es2017/wire-service.js.map +1 -0
- package/dist/wire-service/iife/es2017/wire-service.min.js +1 -0
- package/dist/wire-service/iife/es2017/wire-service.min.js.map +1 -0
- package/dist/wire-service/iife/es2017/wire-service_debug.js +3 -2
- package/dist/wire-service/iife/es2017/wire-service_debug.js.map +1 -0
- package/dist/wire-service/iife/es5/wire-service.js +3 -2
- package/dist/wire-service/iife/es5/wire-service.js.map +1 -0
- package/dist/wire-service/iife/es5/wire-service.min.js +1 -0
- package/dist/wire-service/iife/es5/wire-service.min.js.map +1 -0
- package/dist/wire-service/iife/es5/wire-service_debug.js +3 -2
- package/dist/wire-service/iife/es5/wire-service_debug.js.map +1 -0
- package/dist/wire-service/umd/es2017/wire-service.js +3 -2
- package/dist/wire-service/umd/es2017/wire-service.js.map +1 -0
- package/dist/wire-service/umd/es2017/wire-service.min.js +1 -0
- package/dist/wire-service/umd/es2017/wire-service.min.js.map +1 -0
- package/dist/wire-service/umd/es2017/wire-service_debug.js +3 -2
- package/dist/wire-service/umd/es2017/wire-service_debug.js.map +1 -0
- package/dist/wire-service/umd/es5/wire-service.js +3 -2
- package/dist/wire-service/umd/es5/wire-service.js.map +1 -0
- package/dist/wire-service/umd/es5/wire-service.min.js +1 -0
- package/dist/wire-service/umd/es5/wire-service.min.js.map +1 -0
- package/dist/wire-service/umd/es5/wire-service_debug.js +3 -2
- package/dist/wire-service/umd/es5/wire-service_debug.js.map +1 -0
- package/package.json +7 -7
|
@@ -353,9 +353,9 @@
|
|
|
353
353
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
354
354
|
*/
|
|
355
355
|
// Increment whenever the LWC template compiler changes
|
|
356
|
-
const LWC_VERSION = "2.
|
|
356
|
+
const LWC_VERSION = "2.38.1";
|
|
357
357
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
358
|
-
/** version: 2.
|
|
358
|
+
/** version: 2.38.1 */
|
|
359
359
|
|
|
360
360
|
/**
|
|
361
361
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
@@ -434,7 +434,7 @@
|
|
|
434
434
|
setFeatureFlag(name, value);
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
/** version: 2.
|
|
437
|
+
/** version: 2.38.1 */
|
|
438
438
|
|
|
439
439
|
/**
|
|
440
440
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
@@ -498,7 +498,7 @@
|
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
/** version: 2.
|
|
501
|
+
/** version: 2.38.1 */
|
|
502
502
|
|
|
503
503
|
/*
|
|
504
504
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -2296,6 +2296,14 @@
|
|
|
2296
2296
|
}
|
|
2297
2297
|
return renderer.getLastElementChild(vm.elm);
|
|
2298
2298
|
},
|
|
2299
|
+
get ownerDocument() {
|
|
2300
|
+
const vm = getAssociatedVM(this);
|
|
2301
|
+
const renderer = vm.renderer;
|
|
2302
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2303
|
+
warnIfInvokedDuringConstruction(vm, 'ownerDocument');
|
|
2304
|
+
}
|
|
2305
|
+
return renderer.ownerDocument(vm.elm);
|
|
2306
|
+
},
|
|
2299
2307
|
render() {
|
|
2300
2308
|
const vm = getAssociatedVM(this);
|
|
2301
2309
|
return vm.def.template;
|
|
@@ -2371,31 +2379,84 @@
|
|
|
2371
2379
|
}
|
|
2372
2380
|
|
|
2373
2381
|
/*
|
|
2374
|
-
* Copyright (c)
|
|
2382
|
+
* Copyright (c) 2023, salesforce.com, inc.
|
|
2375
2383
|
* All rights reserved.
|
|
2376
2384
|
* SPDX-License-Identifier: MIT
|
|
2377
2385
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2378
2386
|
*/
|
|
2379
|
-
const
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2387
|
+
const AdapterToTokenMap = new Map();
|
|
2388
|
+
function createContextProviderWithRegister(adapter, registerContextProvider) {
|
|
2389
|
+
let adapterContextToken = AdapterToTokenMap.get(adapter);
|
|
2390
|
+
if (!isUndefined$1(adapterContextToken)) {
|
|
2391
|
+
throw new Error(`Adapter already has a context provider.`);
|
|
2392
|
+
}
|
|
2393
|
+
adapterContextToken = guid();
|
|
2394
|
+
AdapterToTokenMap.set(adapter, adapterContextToken);
|
|
2395
|
+
const providers = new WeakSet();
|
|
2396
|
+
return (elmOrComponent, options) => {
|
|
2397
|
+
if (providers.has(elmOrComponent)) {
|
|
2398
|
+
throw new Error(`Adapter was already installed on ${elmOrComponent}.`);
|
|
2399
|
+
}
|
|
2400
|
+
providers.add(elmOrComponent);
|
|
2401
|
+
const { consumerConnectedCallback, consumerDisconnectedCallback } = options;
|
|
2402
|
+
registerContextProvider(elmOrComponent, adapterContextToken, (subscriptionPayload) => {
|
|
2403
|
+
const { setNewContext, setDisconnectedCallback } = subscriptionPayload;
|
|
2404
|
+
const consumer = {
|
|
2405
|
+
provide(newContext) {
|
|
2406
|
+
setNewContext(newContext);
|
|
2407
|
+
},
|
|
2408
|
+
};
|
|
2409
|
+
const disconnectCallback = () => {
|
|
2410
|
+
if (!isUndefined$1(consumerDisconnectedCallback)) {
|
|
2411
|
+
consumerDisconnectedCallback(consumer);
|
|
2412
|
+
}
|
|
2413
|
+
};
|
|
2414
|
+
setDisconnectedCallback(disconnectCallback);
|
|
2415
|
+
consumerConnectedCallback(consumer);
|
|
2388
2416
|
});
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2417
|
+
};
|
|
2418
|
+
}
|
|
2419
|
+
function createContextWatcher(vm, wireDef, callbackWhenContextIsReady) {
|
|
2420
|
+
const { adapter } = wireDef;
|
|
2421
|
+
const adapterContextToken = AdapterToTokenMap.get(adapter);
|
|
2422
|
+
if (isUndefined$1(adapterContextToken)) {
|
|
2423
|
+
return; // no provider found, nothing to be done
|
|
2424
|
+
}
|
|
2425
|
+
const { elm, context: { wiredConnecting, wiredDisconnecting }, renderer: { registerContextConsumer }, } = vm;
|
|
2426
|
+
// waiting for the component to be connected to formally request the context via the token
|
|
2427
|
+
ArrayPush$1.call(wiredConnecting, () => {
|
|
2428
|
+
// This will attempt to connect the current element with one of its anscestors
|
|
2429
|
+
// that can provide context for the given wire adapter. This relationship is
|
|
2430
|
+
// keyed on the secret & internal value of `adapterContextToken`, which is unique
|
|
2431
|
+
// to a given wire adapter.
|
|
2432
|
+
//
|
|
2433
|
+
// Depending on the runtime environment, this connection is made using either DOM
|
|
2434
|
+
// events (in the browser) or a custom traversal (on the server).
|
|
2435
|
+
registerContextConsumer(elm, adapterContextToken, {
|
|
2436
|
+
setNewContext(newContext) {
|
|
2437
|
+
// eslint-disable-next-line @lwc/lwc-internal/no-invalid-todo
|
|
2438
|
+
// TODO: dev-mode validation of config based on the adapter.contextSchema
|
|
2439
|
+
callbackWhenContextIsReady(newContext);
|
|
2392
2440
|
},
|
|
2393
|
-
setDisconnectedCallback
|
|
2394
|
-
|
|
2441
|
+
setDisconnectedCallback(disconnectCallback) {
|
|
2442
|
+
// adds this callback into the disconnect bucket so it gets disconnected from parent
|
|
2443
|
+
// the the element hosting the wire is disconnected
|
|
2444
|
+
ArrayPush$1.call(wiredDisconnecting, disconnectCallback);
|
|
2395
2445
|
},
|
|
2396
2446
|
});
|
|
2397
|
-
}
|
|
2447
|
+
});
|
|
2398
2448
|
}
|
|
2449
|
+
|
|
2450
|
+
/*
|
|
2451
|
+
* Copyright (c) 2023, salesforce.com, inc.
|
|
2452
|
+
* All rights reserved.
|
|
2453
|
+
* SPDX-License-Identifier: MIT
|
|
2454
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2455
|
+
*/
|
|
2456
|
+
const DeprecatedWiredElementHost = '$$DeprecatedWiredElementHostKey$$';
|
|
2457
|
+
const DeprecatedWiredParamsMeta = '$$DeprecatedWiredParamsMetaKey$$';
|
|
2458
|
+
const WIRE_DEBUG_ENTRY = '@wire';
|
|
2459
|
+
const WireMetaMap = new Map();
|
|
2399
2460
|
function createFieldDataCallback(vm, name) {
|
|
2400
2461
|
return (value) => {
|
|
2401
2462
|
updateComponentValue(vm, name, value);
|
|
@@ -2439,35 +2500,6 @@
|
|
|
2439
2500
|
ro,
|
|
2440
2501
|
};
|
|
2441
2502
|
}
|
|
2442
|
-
function createContextWatcher(vm, wireDef, callbackWhenContextIsReady) {
|
|
2443
|
-
const { adapter } = wireDef;
|
|
2444
|
-
const adapterContextToken = getAdapterToken(adapter);
|
|
2445
|
-
if (isUndefined$1(adapterContextToken)) {
|
|
2446
|
-
return; // no provider found, nothing to be done
|
|
2447
|
-
}
|
|
2448
|
-
const { elm, context: { wiredConnecting, wiredDisconnecting }, renderer: { dispatchEvent }, } = vm;
|
|
2449
|
-
// waiting for the component to be connected to formally request the context via the token
|
|
2450
|
-
ArrayPush$1.call(wiredConnecting, () => {
|
|
2451
|
-
// This event is responsible for connecting the host element with another
|
|
2452
|
-
// element in the composed path that is providing contextual data. The provider
|
|
2453
|
-
// must be listening for a special dom event with the name corresponding to the value of
|
|
2454
|
-
// `adapterContextToken`, which will remain secret and internal to this file only to
|
|
2455
|
-
// guarantee that the linkage can be forged.
|
|
2456
|
-
const contextRegistrationEvent = new WireContextRegistrationEvent(adapterContextToken, {
|
|
2457
|
-
setNewContext(newContext) {
|
|
2458
|
-
// eslint-disable-next-line @lwc/lwc-internal/no-invalid-todo
|
|
2459
|
-
// TODO: dev-mode validation of config based on the adapter.contextSchema
|
|
2460
|
-
callbackWhenContextIsReady(newContext);
|
|
2461
|
-
},
|
|
2462
|
-
setDisconnectedCallback(disconnectCallback) {
|
|
2463
|
-
// adds this callback into the disconnect bucket so it gets disconnected from parent
|
|
2464
|
-
// the the element hosting the wire is disconnected
|
|
2465
|
-
ArrayPush$1.call(wiredDisconnecting, disconnectCallback);
|
|
2466
|
-
},
|
|
2467
|
-
});
|
|
2468
|
-
dispatchEvent(elm, contextRegistrationEvent);
|
|
2469
|
-
});
|
|
2470
|
-
}
|
|
2471
2503
|
function createConnector(vm, name, wireDef) {
|
|
2472
2504
|
const { method, adapter, configCallback, dynamic } = wireDef;
|
|
2473
2505
|
let debugInfo;
|
|
@@ -2542,13 +2574,6 @@
|
|
|
2542
2574
|
resetConfigWatcher: () => ro.reset(),
|
|
2543
2575
|
};
|
|
2544
2576
|
}
|
|
2545
|
-
const AdapterToTokenMap = new Map();
|
|
2546
|
-
function getAdapterToken(adapter) {
|
|
2547
|
-
return AdapterToTokenMap.get(adapter);
|
|
2548
|
-
}
|
|
2549
|
-
function setAdapterToken(adapter, token) {
|
|
2550
|
-
AdapterToTokenMap.set(adapter, token);
|
|
2551
|
-
}
|
|
2552
2577
|
function storeWiredMethodMeta(descriptor, adapter, configCallback, dynamic) {
|
|
2553
2578
|
// support for callable adapters
|
|
2554
2579
|
if (adapter.adapter) {
|
|
@@ -6269,17 +6294,30 @@
|
|
|
6269
6294
|
// into snabbdom. Especially useful when the reset is a consequence of an error, in which case the
|
|
6270
6295
|
// children VNodes might not be representing the current state of the DOM.
|
|
6271
6296
|
function resetComponentRoot(vm) {
|
|
6272
|
-
|
|
6273
|
-
for (let i = 0, len = children.length; i < len; i++) {
|
|
6274
|
-
const child = children[i];
|
|
6275
|
-
if (!isNull(child) && !isUndefined$1(child.elm)) {
|
|
6276
|
-
remove(child.elm, renderRoot);
|
|
6277
|
-
}
|
|
6278
|
-
}
|
|
6297
|
+
recursivelyRemoveChildren(vm.children, vm);
|
|
6279
6298
|
vm.children = EmptyArray;
|
|
6280
6299
|
runChildNodesDisconnectedCallback(vm);
|
|
6281
6300
|
vm.velements = EmptyArray;
|
|
6282
6301
|
}
|
|
6302
|
+
// Helper function to remove all children of the root node.
|
|
6303
|
+
// If the set of children includes VFragment nodes, we need to remove the children of those nodes too.
|
|
6304
|
+
// Since VFragments can contain other VFragments, we need to traverse the entire of tree of VFragments.
|
|
6305
|
+
// If the set contains no VFragment nodes, no traversal is needed.
|
|
6306
|
+
function recursivelyRemoveChildren(vnodes, vm) {
|
|
6307
|
+
const { renderRoot, renderer: { remove }, } = vm;
|
|
6308
|
+
for (let i = 0, len = vnodes.length; i < len; i += 1) {
|
|
6309
|
+
const vnode = vnodes[i];
|
|
6310
|
+
if (!isNull(vnode)) {
|
|
6311
|
+
// VFragments are special; their .elm property does not point to the root element since they have no single root.
|
|
6312
|
+
if (isVFragment(vnode)) {
|
|
6313
|
+
recursivelyRemoveChildren(vnode.children, vm);
|
|
6314
|
+
}
|
|
6315
|
+
else if (!isUndefined$1(vnode.elm)) {
|
|
6316
|
+
remove(vnode.elm, renderRoot);
|
|
6317
|
+
}
|
|
6318
|
+
}
|
|
6319
|
+
}
|
|
6320
|
+
}
|
|
6283
6321
|
function scheduleRehydration(vm) {
|
|
6284
6322
|
if (isTrue(vm.isScheduled)) {
|
|
6285
6323
|
return;
|
|
@@ -6357,6 +6395,10 @@
|
|
|
6357
6395
|
// Use the unpatched native getElementById/querySelectorAll rather than the synthetic one
|
|
6358
6396
|
const getElementById = _globalThis[KEY__NATIVE_GET_ELEMENT_BY_ID];
|
|
6359
6397
|
const querySelectorAll = _globalThis[KEY__NATIVE_QUERY_SELECTOR_ALL];
|
|
6398
|
+
// This is a "handoff" from synthetic-shadow to engine-core – we want to clean up after ourselves
|
|
6399
|
+
// so nobody else can misuse these global APIs.
|
|
6400
|
+
delete _globalThis[KEY__NATIVE_GET_ELEMENT_BY_ID];
|
|
6401
|
+
delete _globalThis[KEY__NATIVE_QUERY_SELECTOR_ALL];
|
|
6360
6402
|
function isSyntheticShadowRootInstance(rootNode) {
|
|
6361
6403
|
return rootNode !== document && isTrue(rootNode.synthetic);
|
|
6362
6404
|
}
|
|
@@ -6604,67 +6646,6 @@
|
|
|
6604
6646
|
}
|
|
6605
6647
|
}
|
|
6606
6648
|
|
|
6607
|
-
/*
|
|
6608
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
6609
|
-
* All rights reserved.
|
|
6610
|
-
* SPDX-License-Identifier: MIT
|
|
6611
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
6612
|
-
*/
|
|
6613
|
-
// this is lwc internal implementation
|
|
6614
|
-
function createContextProvider(adapter) {
|
|
6615
|
-
let adapterContextToken = getAdapterToken(adapter);
|
|
6616
|
-
if (!isUndefined$1(adapterContextToken)) {
|
|
6617
|
-
throw new Error(`Adapter already has a context provider.`);
|
|
6618
|
-
}
|
|
6619
|
-
adapterContextToken = guid();
|
|
6620
|
-
setAdapterToken(adapter, adapterContextToken);
|
|
6621
|
-
const providers = new WeakSet();
|
|
6622
|
-
return (elm, options) => {
|
|
6623
|
-
if (providers.has(elm)) {
|
|
6624
|
-
throw new Error(`Adapter was already installed on ${elm}.`);
|
|
6625
|
-
}
|
|
6626
|
-
providers.add(elm);
|
|
6627
|
-
const { consumerConnectedCallback, consumerDisconnectedCallback } = options;
|
|
6628
|
-
elm.addEventListener(adapterContextToken, ((evt) => {
|
|
6629
|
-
const { setNewContext, setDisconnectedCallback } = evt;
|
|
6630
|
-
const consumer = {
|
|
6631
|
-
provide(newContext) {
|
|
6632
|
-
setNewContext(newContext);
|
|
6633
|
-
},
|
|
6634
|
-
};
|
|
6635
|
-
const disconnectCallback = () => {
|
|
6636
|
-
if (!isUndefined$1(consumerDisconnectedCallback)) {
|
|
6637
|
-
consumerDisconnectedCallback(consumer);
|
|
6638
|
-
}
|
|
6639
|
-
};
|
|
6640
|
-
setDisconnectedCallback(disconnectCallback);
|
|
6641
|
-
consumerConnectedCallback(consumer);
|
|
6642
|
-
evt.stopImmediatePropagation();
|
|
6643
|
-
}));
|
|
6644
|
-
};
|
|
6645
|
-
}
|
|
6646
|
-
|
|
6647
|
-
/*
|
|
6648
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
6649
|
-
* All rights reserved.
|
|
6650
|
-
* SPDX-License-Identifier: MIT
|
|
6651
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
6652
|
-
*/
|
|
6653
|
-
/**
|
|
6654
|
-
* EXPERIMENTAL: This function allows you to create a reactive readonly
|
|
6655
|
-
* membrane around any object value. This API is subject to change or
|
|
6656
|
-
* being removed.
|
|
6657
|
-
*/
|
|
6658
|
-
function readonly(obj) {
|
|
6659
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
6660
|
-
// TODO [#1292]: Remove the readonly decorator
|
|
6661
|
-
if (arguments.length !== 1) {
|
|
6662
|
-
assert.fail('@readonly cannot be used as a decorator just yet, use it as a function with one argument to produce a readonly version of the provided value.');
|
|
6663
|
-
}
|
|
6664
|
-
}
|
|
6665
|
-
return getReadOnlyProxy(obj);
|
|
6666
|
-
}
|
|
6667
|
-
|
|
6668
6649
|
/*
|
|
6669
6650
|
* Copyright (c) 2022, salesforce.com, inc.
|
|
6670
6651
|
* All rights reserved.
|
|
@@ -7354,7 +7335,28 @@
|
|
|
7354
7335
|
}
|
|
7355
7336
|
return ctor;
|
|
7356
7337
|
}
|
|
7357
|
-
|
|
7338
|
+
|
|
7339
|
+
/*
|
|
7340
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
7341
|
+
* All rights reserved.
|
|
7342
|
+
* SPDX-License-Identifier: MIT
|
|
7343
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
7344
|
+
*/
|
|
7345
|
+
/**
|
|
7346
|
+
* EXPERIMENTAL: This function allows you to create a reactive readonly
|
|
7347
|
+
* membrane around any object value. This API is subject to change or
|
|
7348
|
+
* being removed.
|
|
7349
|
+
*/
|
|
7350
|
+
function readonly(obj) {
|
|
7351
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7352
|
+
// TODO [#1292]: Remove the readonly decorator
|
|
7353
|
+
if (arguments.length !== 1) {
|
|
7354
|
+
assert.fail('@readonly cannot be used as a decorator just yet, use it as a function with one argument to produce a readonly version of the provided value.');
|
|
7355
|
+
}
|
|
7356
|
+
}
|
|
7357
|
+
return getReadOnlyProxy(obj);
|
|
7358
|
+
}
|
|
7359
|
+
/* version: 2.38.1 */
|
|
7358
7360
|
|
|
7359
7361
|
/*
|
|
7360
7362
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -7782,7 +7784,37 @@
|
|
|
7782
7784
|
function isNull(obj) {
|
|
7783
7785
|
return obj === null;
|
|
7784
7786
|
}
|
|
7785
|
-
/** version: 2.
|
|
7787
|
+
/** version: 2.38.1 */
|
|
7788
|
+
|
|
7789
|
+
/*
|
|
7790
|
+
* Copyright (c) 2023, salesforce.com, inc.
|
|
7791
|
+
* All rights reserved.
|
|
7792
|
+
* SPDX-License-Identifier: MIT
|
|
7793
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
7794
|
+
*/
|
|
7795
|
+
class WireContextSubscriptionEvent extends CustomEvent {
|
|
7796
|
+
constructor(adapterToken, { setNewContext, setDisconnectedCallback }) {
|
|
7797
|
+
super(adapterToken, {
|
|
7798
|
+
bubbles: true,
|
|
7799
|
+
composed: true,
|
|
7800
|
+
});
|
|
7801
|
+
this.setNewContext = setNewContext;
|
|
7802
|
+
this.setDisconnectedCallback = setDisconnectedCallback;
|
|
7803
|
+
}
|
|
7804
|
+
}
|
|
7805
|
+
function registerContextConsumer(elm, adapterContextToken, subscriptionPayload) {
|
|
7806
|
+
dispatchEvent(elm, new WireContextSubscriptionEvent(adapterContextToken, subscriptionPayload));
|
|
7807
|
+
}
|
|
7808
|
+
function registerContextProvider(elm, adapterContextToken, onContextSubscription) {
|
|
7809
|
+
addEventListener(elm, adapterContextToken, ((evt) => {
|
|
7810
|
+
evt.stopImmediatePropagation();
|
|
7811
|
+
const { setNewContext, setDisconnectedCallback } = evt;
|
|
7812
|
+
onContextSubscription({
|
|
7813
|
+
setNewContext,
|
|
7814
|
+
setDisconnectedCallback,
|
|
7815
|
+
});
|
|
7816
|
+
}));
|
|
7817
|
+
}
|
|
7786
7818
|
|
|
7787
7819
|
/*
|
|
7788
7820
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -7963,6 +7995,9 @@
|
|
|
7963
7995
|
function assertInstanceOfHTMLElement(elm, msg) {
|
|
7964
7996
|
assert.invariant(elm instanceof HTMLElement, msg);
|
|
7965
7997
|
}
|
|
7998
|
+
function ownerDocument(element) {
|
|
7999
|
+
return element.ownerDocument;
|
|
8000
|
+
}
|
|
7966
8001
|
|
|
7967
8002
|
exports.addEventListener = addEventListener;
|
|
7968
8003
|
exports.assertInstanceOfHTMLElement = assertInstanceOfHTMLElement;
|
|
@@ -7987,8 +8022,11 @@
|
|
|
7987
8022
|
exports.insert = insert;
|
|
7988
8023
|
exports.isConnected = isConnected;
|
|
7989
8024
|
exports.nextSibling = nextSibling;
|
|
8025
|
+
exports.ownerDocument = ownerDocument;
|
|
7990
8026
|
exports.querySelector = querySelector;
|
|
7991
8027
|
exports.querySelectorAll = querySelectorAll;
|
|
8028
|
+
exports.registerContextConsumer = registerContextConsumer;
|
|
8029
|
+
exports.registerContextProvider = registerContextProvider;
|
|
7992
8030
|
exports.remove = remove;
|
|
7993
8031
|
exports.removeAttribute = removeAttribute;
|
|
7994
8032
|
exports.removeEventListener = removeEventListener;
|
|
@@ -8335,7 +8373,37 @@
|
|
|
8335
8373
|
});
|
|
8336
8374
|
freeze(LightningElement);
|
|
8337
8375
|
seal(LightningElement.prototype);
|
|
8338
|
-
|
|
8376
|
+
|
|
8377
|
+
/*
|
|
8378
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
8379
|
+
* All rights reserved.
|
|
8380
|
+
* SPDX-License-Identifier: MIT
|
|
8381
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
8382
|
+
*/
|
|
8383
|
+
function addEventListener(target, type, callback, options) {
|
|
8384
|
+
target.addEventListener(type, callback, options);
|
|
8385
|
+
}
|
|
8386
|
+
|
|
8387
|
+
/*
|
|
8388
|
+
* Copyright (c) 2023, salesforce.com, inc.
|
|
8389
|
+
* All rights reserved.
|
|
8390
|
+
* SPDX-License-Identifier: MIT
|
|
8391
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
8392
|
+
*/
|
|
8393
|
+
function createContextProvider(adapter) {
|
|
8394
|
+
return createContextProviderWithRegister(adapter, registerContextProvider);
|
|
8395
|
+
}
|
|
8396
|
+
function registerContextProvider(elm, adapterContextToken, onContextSubscription) {
|
|
8397
|
+
addEventListener(elm, adapterContextToken, ((evt) => {
|
|
8398
|
+
evt.stopImmediatePropagation();
|
|
8399
|
+
const { setNewContext, setDisconnectedCallback } = evt;
|
|
8400
|
+
onContextSubscription({
|
|
8401
|
+
setNewContext,
|
|
8402
|
+
setDisconnectedCallback,
|
|
8403
|
+
});
|
|
8404
|
+
}));
|
|
8405
|
+
}
|
|
8406
|
+
/* version: 2.38.1 */
|
|
8339
8407
|
|
|
8340
8408
|
exports.LightningElement = LightningElement;
|
|
8341
8409
|
exports.__unstable__ProfilerControl = profilerControl;
|
|
@@ -8371,3 +8439,4 @@
|
|
|
8371
8439
|
exports.wire = wire;
|
|
8372
8440
|
|
|
8373
8441
|
}));
|
|
8442
|
+
//# sourceMappingURL=engine-dom.js.map
|