UNPKG

ember-source

Version:

A JavaScript framework for creating ambitious web applications

62 lines (54 loc) 3.78 kB
export { C as ComputedProperty, N as NAMESPACES, h as NAMESPACES_BY_ID, P as PROPERTY_DID_CHANGE, j as addNamespace, m as autoComputed, b as beginPropertyChanges, o as changeProperties, c as computed, g as defineDecorator, d as defineProperty, f as defineValue, a as endPropertyChanges, e as expandProperties, i as findNamespace, k as findNamespaces, q as isComputed, t as isNamespaceSearchDisabled, n as notifyPropertyChange, p as processAllNamespaces, l as processNamespace, r as removeNamespace, u as setNamespaceSearchDisabled, s as setUnprocessedMixins } from '../../../shared-chunks/namespace_search-Aog9nySA.js'; export { g as getCachedValueFor } from '../../../shared-chunks/computed_cache-DmYKevAP.js'; export { a as alias } from '../../../shared-chunks/alias-BkT-0B1G.js'; import '../environment/index.js'; import { g as get } from '../../../shared-chunks/observers-R1ZklwWy.js'; export { A as ASYNC_OBSERVERS, L as Libraries, P as PROXY_CONTENT, p as SYNC_OBSERVERS, _ as _getPath, q as _getProp, b as activateObserver, e as addListener, c as addObserver, j as flushAsyncObservers, h as hasListeners, m as hasUnknownProperty, u as libraries, v as markObjectAsDirty, n as objectAt, o as on, f as removeListener, r as removeObserver, d as revalidateObservers, s as sendEvent, t as tagForObject, a as tagForProperty } from '../../../shared-chunks/observers-R1ZklwWy.js'; import { s as set } from '../../../shared-chunks/property_set-O080KTKZ.js'; export { _ as _setProp, t as trySet } from '../../../shared-chunks/property_set-O080KTKZ.js'; export { c as addArrayObserver, b as arrayContentDidChange, a as arrayContentWillChange, d as removeArrayObserver, r as replace, e as replaceInNativeArray } from '../../../shared-chunks/array-EwekEvId.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-BdDDBUd2.js'; export { g as getProperties, s as setProperties } from '../../../shared-chunks/set_properties-CjsDTRey.js'; export { D as DEBUG_INJECTION_FUNCTIONS, i as inject } from '../../../shared-chunks/injected_property-DL3vQoFA.js'; export { T as TrackedDescriptor, t as tracked } from '../../../shared-chunks/tracked-ChVNBE2f.js'; export { cached } from '../../../@glimmer/tracking/index.js'; export { createCache, getValue, isConst } from '../../../@glimmer/validator/index.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) { Object.defineProperty(object, deprecatedKey, { configurable: true, enumerable: false, set(value) { set(this, newKey, value); }, get() { 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 };