ember-source
Version:
A JavaScript framework for creating ambitious web applications
73 lines (65 loc) • 4.38 kB
JavaScript
export { C as ComputedProperty, P as PROPERTY_DID_CHANGE, i as autoComputed, b as beginPropertyChanges, f as changeProperties, c as computed, h as defineDecorator, d as defineProperty, g as defineValue, a as endPropertyChanges, e as expandProperties, j as isComputed, n as notifyPropertyChange } from '../../../shared-chunks/computed-CJnghmXC.js';
export { g as getCachedValueFor } from '../../../shared-chunks/computed_cache-DmYKevAP.js';
export { a as alias } from '../../../shared-chunks/alias-ZcMQckQV.js';
import { deprecate } from '../../debug/index.js';
import { g as get } from '../../../shared-chunks/property_get-CIBS9umw.js';
export { P as PROXY_CONTENT, _ as _getPath, b as _getProp, h as hasUnknownProperty } from '../../../shared-chunks/property_get-CIBS9umw.js';
import { s as set } from '../../../shared-chunks/property_set-D3PKyisF.js';
export { _ as _setProp, t as trySet } from '../../../shared-chunks/property_set-D3PKyisF.js';
export { c as addArrayObserver, b as arrayContentDidChange, a as arrayContentWillChange, d as removeArrayObserver, r as replace, e as replaceInNativeArray } from '../../../shared-chunks/array-Bh_kUjzy.js';
export { a as addListener, h as hasListeners, o as on, r as removeListener, s as sendEvent } from '../../../shared-chunks/events-6aFVjD4k.js';
export { c as ComputedDescriptor, b as descriptorForDecorator, d as descriptorForProperty, a as isClassicDecorator, i as isElementDescriptor, m as makeComputedDecorator, n as nativeDescDecorator, s as setClassicDecorator } from '../../../shared-chunks/decorator-B5Uh5NFI.js';
export { a as Libraries, L as libraries } from '../../../shared-chunks/libraries-CHBwbR72.js';
export { g as getProperties } from '../../../shared-chunks/get_properties-CIm8IAtP.js';
export { s as setProperties } from '../../../shared-chunks/set_properties-BghuuGJx.js';
export { A as ASYNC_OBSERVERS, S as SYNC_OBSERVERS, a as activateObserver, b as addObserver, f as flushAsyncObservers, r as removeObserver, c as revalidateObservers } from '../../../shared-chunks/observers-C2DurkLG.js';
export { D as DEBUG_INJECTION_FUNCTIONS, i as inject } from '../../../shared-chunks/injected_property-B4T-FzZZ.js';
export { m as markObjectAsDirty, o as objectAt, t as tagForObject, a as tagForProperty } from '../../../shared-chunks/chain-tags-D6tuFUj_.js';
export { T as TrackedDescriptor, t as tracked } from '../../../shared-chunks/tracked-CKE4wnE6.js';
export { cached } from '../../../@glimmer/tracking/index.js';
export { l as createCache, r as getValue, s as isConst } from '../../../shared-chunks/cache-B7dqAS38.js';
export { N as NAMESPACES, a as NAMESPACES_BY_ID, b as addNamespace, f as findNamespace, c as findNamespaces, i as isNamespaceSearchDisabled, p as processAllNamespaces, d as processNamespace, r as removeNamespace, e as setNamespaceSearchDisabled, s as setUnprocessedMixins } from '../../../shared-chunks/namespace_search-BfvzEQzN.js';
/**
@module ember
*/
/**
Used internally to allow changing properties in a backwards compatible way, and print a helpful
deprecation warning.
@method deprecateProperty
@param {Object} object The object to add the deprecated property to.
@param {String} deprecatedKey The property to add (and print deprecation warnings upon accessing).
@param {String} newKey The property that will be aliased.
@private
@since 1.7.0
*/
function deprecateProperty(object, deprecatedKey, newKey, options) {
function _deprecate() {
(deprecate(`Usage of \`${deprecatedKey}\` is deprecated, use \`${newKey}\` instead.`, false, options));
}
Object.defineProperty(object, deprecatedKey, {
configurable: true,
enumerable: false,
set(value) {
_deprecate();
set(this, newKey, value);
},
get() {
_deprecate();
return get(this, newKey);
}
});
}
const EACH_PROXIES = new WeakMap();
function eachProxyArrayWillChange(array, idx, removedCnt, addedCnt) {
let eachProxy = EACH_PROXIES.get(array);
if (eachProxy !== undefined) {
eachProxy.arrayWillChange(array, idx, removedCnt, addedCnt);
}
}
function eachProxyArrayDidChange(array, idx, removedCnt, addedCnt) {
let eachProxy = EACH_PROXIES.get(array);
if (eachProxy !== undefined) {
eachProxy.arrayDidChange(array, idx, removedCnt, addedCnt);
}
}
export { deprecateProperty, eachProxyArrayDidChange, eachProxyArrayWillChange, get, set };