ember-source
Version:
A JavaScript framework for creating ambitious web applications
64 lines (56 loc) • 3.78 kB
JavaScript
import { g as get } from '../../../shared-chunks/observers-Bj9qLVau.js';
export { T as ASYNC_OBSERVERS, I as ComputedDescriptor, C as ComputedProperty, D as DEBUG_INJECTION_FUNCTIONS, U as Libraries, O as PROPERTY_DID_CHANGE, P as PROXY_CONTENT, V as SYNC_OBSERVERS, W as TrackedDescriptor, _ as _getPath, X as _getProp, j as activateObserver, E as addListener, u as addObserver, R as autoComputed, w as beginPropertyChanges, S as changeProperties, c as computed, z as defineDecorator, d as defineProperty, y as defineValue, B as descriptorForDecorator, b as descriptorForProperty, v as endPropertyChanges, e as expandProperties, H as flushAsyncObservers, q as hasListeners, h as hasUnknownProperty, l as inject, f as isClassicDecorator, Y as isComputed, i as isElementDescriptor, N as libraries, G as makeComputedDecorator, Z as markObjectAsDirty, x as nativeDescDecorator, n as notifyPropertyChange, Q as objectAt, M as on, F as removeListener, r as removeObserver, A as revalidateObservers, k as sendEvent, s as setClassicDecorator, t as tagForObject, a as tagForProperty, $ as tracked } from '../../../shared-chunks/observers-Bj9qLVau.js';
export { g as getCachedValueFor } from '../../../shared-chunks/computed_cache-DmYKevAP.js';
export { a as alias } from '../../../shared-chunks/alias-CSC0WIbj.js';
import { deprecate } from '../../debug/index.js';
import { s as set } from '../../../shared-chunks/property_set-DaoZXGM5.js';
export { _ as _setProp, t as trySet } from '../../../shared-chunks/property_set-DaoZXGM5.js';
export { c as addArrayObserver, b as arrayContentDidChange, a as arrayContentWillChange, d as removeArrayObserver, r as replace, e as replaceInNativeArray } from '../../../shared-chunks/array-D8PfjQHi.js';
export { g as getProperties, s as setProperties } from '../../../shared-chunks/set_properties-kVGzZL_a.js';
export { cached } from '../../../@glimmer/tracking/index.js';
export { createCache, getValue, isConst } from '../../../@glimmer/validator/index.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-uT8odThF.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 };