ember-source 4.10.0-beta.2 → 4.11.0-alpha.2
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/CHANGELOG.md +5 -1
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +147 -172
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +129 -6
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +334 -314
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/glimmer/index.js +60 -59
- package/dist/packages/@ember/-internals/metal/index.js +6 -6
- package/dist/packages/@ember/-internals/{utils/types.js → utility-types/index.js} +0 -0
- package/dist/packages/@ember/-internals/utils/index.js +3 -137
- package/dist/packages/@ember/-internals/views/lib/mixins/action_support.js +1 -2
- package/dist/packages/@ember/-internals/views/lib/views/states/default.js +1 -2
- package/dist/packages/@ember/-internals/views/lib/views/states/destroying.js +2 -3
- package/dist/packages/@ember/-internals/views/lib/views/states/in_dom.js +1 -2
- package/dist/packages/@ember/array/-internals.js +8 -0
- package/dist/packages/@ember/array/index.js +2 -2
- package/dist/packages/@ember/array/lib/make-array.js +10 -0
- package/dist/packages/@ember/canary-features/index.js +0 -4
- package/dist/packages/@ember/debug/data-adapter.js +16 -16
- package/dist/packages/@ember/debug/index.js +2 -3
- package/dist/packages/@ember/debug/lib/inspect.js +117 -0
- package/dist/packages/@ember/engine/instance.js +1 -2
- package/dist/packages/@ember/instrumentation/index.js +2 -8
- package/dist/packages/@ember/object/core.js +2 -1
- package/dist/packages/@ember/object/mixin.js +11 -2
- package/dist/packages/@ember/object/promise-proxy-mixin.js +1 -2
- package/dist/packages/@ember/owner/index.js +2 -2
- package/dist/packages/@ember/routing/lib/utils.js +1 -2
- package/dist/packages/@ember/routing/router.js +36 -37
- package/dist/packages/ember/index.js +3 -3
- package/dist/packages/ember/version.js +1 -1
- package/dist/packages/ember-testing/lib/adapters/qunit.js +1 -1
- package/docs/data.json +252 -253
- package/package.json +19 -19
- package/types/preview/@ember/controller/index.d.ts +1 -1
- package/types/preview/@ember/engine/-private/container-proxy-mixin.d.ts +1 -1
- package/types/preview/@ember/engine/-private/registry-proxy-mixin.d.ts +1 -1
- package/types/preview/@ember/error/index.d.ts +2 -2
- package/types/preview/ember/index.d.ts +1 -1
- package/types/preview/index.d.ts +0 -2
- package/types/publish.mjs +314 -294
- package/types/stable/@ember/-internals/bootstrap/index.d.ts +3 -0
- package/types/stable/@ember/-internals/browser-environment/index.d.ts +9 -0
- package/types/stable/@ember/-internals/browser-environment/lib/has-dom.d.ts +4 -0
- package/types/stable/@ember/-internals/container/index.d.ts +4 -0
- package/types/stable/@ember/-internals/container/lib/container.d.ts +164 -0
- package/types/stable/@ember/-internals/container/lib/registry.d.ts +292 -0
- package/types/stable/@ember/-internals/environment/index.d.ts +5 -0
- package/types/stable/@ember/-internals/environment/lib/context.d.ts +10 -0
- package/types/stable/@ember/-internals/environment/lib/env.d.ts +153 -0
- package/types/stable/@ember/-internals/environment/lib/global.d.ts +4 -0
- package/types/stable/@ember/-internals/error-handling/index.d.ts +9 -0
- package/types/stable/@ember/-internals/glimmer/index.d.ts +456 -0
- package/types/stable/@ember/-internals/glimmer/lib/component-managers/curly.d.ts +47 -0
- package/types/stable/@ember/-internals/glimmer/lib/component-managers/mount.d.ts +41 -0
- package/types/stable/@ember/-internals/glimmer/lib/component-managers/outlet.d.ts +51 -0
- package/types/stable/@ember/-internals/glimmer/lib/component-managers/root.d.ts +23 -0
- package/types/stable/@ember/-internals/glimmer/lib/component.d.ts +840 -0
- package/types/stable/@ember/-internals/glimmer/lib/components/abstract-input.d.ts +37 -0
- package/types/stable/@ember/-internals/glimmer/lib/components/input.d.ts +4 -0
- package/types/stable/@ember/-internals/glimmer/lib/components/internal.d.ts +48 -0
- package/types/stable/@ember/-internals/glimmer/lib/components/link-to.d.ts +4 -0
- package/types/stable/@ember/-internals/glimmer/lib/components/textarea.d.ts +4 -0
- package/types/stable/@ember/-internals/glimmer/lib/dom.d.ts +4 -0
- package/types/stable/@ember/-internals/glimmer/lib/environment.d.ts +11 -0
- package/types/stable/@ember/-internals/glimmer/lib/glimmer-component-docs.d.ts +387 -0
- package/types/stable/@ember/-internals/glimmer/lib/glimmer-tracking-docs.d.ts +249 -0
- package/types/stable/@ember/-internals/glimmer/lib/helper.d.ts +160 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/-disallow-dynamic-resolution.d.ts +4 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/-in-element-null-check.d.ts +4 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/-normalize-class.d.ts +4 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/-resolve.d.ts +4 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/-track-array.d.ts +9 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/action.d.ts +268 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/array.d.ts +40 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/component.d.ts +148 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/concat.d.ts +27 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/each-in.d.ts +160 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/fn.d.ts +72 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/get.d.ts +99 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/hash.d.ts +43 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/helper.d.ts +42 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/if-unless.d.ts +181 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/internal-helper.d.ts +5 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/log.d.ts +18 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/modifier.d.ts +41 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/mut.d.ts +77 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/page-title.d.ts +19 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/readonly.d.ts +119 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/unbound.d.ts +34 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/unique-id.d.ts +7 -0
- package/types/stable/@ember/-internals/glimmer/lib/modifiers/action.d.ts +30 -0
- package/types/stable/@ember/-internals/glimmer/lib/modifiers/internal.d.ts +33 -0
- package/types/stable/@ember/-internals/glimmer/lib/modifiers/on.d.ts +94 -0
- package/types/stable/@ember/-internals/glimmer/lib/renderer.d.ts +96 -0
- package/types/stable/@ember/-internals/glimmer/lib/resolver.d.ts +16 -0
- package/types/stable/@ember/-internals/glimmer/lib/setup-registry.d.ts +5 -0
- package/types/stable/@ember/-internals/glimmer/lib/syntax/in-element.d.ts +46 -0
- package/types/stable/@ember/-internals/glimmer/lib/syntax/let.d.ts +54 -0
- package/types/stable/@ember/-internals/glimmer/lib/syntax/mount.d.ts +43 -0
- package/types/stable/@ember/-internals/glimmer/lib/syntax/outlet.d.ts +27 -0
- package/types/stable/@ember/-internals/glimmer/lib/syntax/utils.d.ts +4 -0
- package/types/stable/@ember/-internals/glimmer/lib/template.d.ts +6 -0
- package/types/stable/@ember/-internals/glimmer/lib/template_registry.d.ts +11 -0
- package/types/stable/@ember/-internals/glimmer/lib/utils/bindings.d.ts +10 -0
- package/types/stable/@ember/-internals/glimmer/lib/utils/curly-component-state-bucket.d.ts +31 -0
- package/types/stable/@ember/-internals/glimmer/lib/utils/debug-render-message.d.ts +4 -0
- package/types/stable/@ember/-internals/glimmer/lib/utils/iterator.d.ts +5 -0
- package/types/stable/@ember/-internals/glimmer/lib/utils/managers.d.ts +19 -0
- package/types/stable/@ember/-internals/glimmer/lib/utils/outlet.d.ts +51 -0
- package/types/stable/@ember/-internals/glimmer/lib/utils/process-args.d.ts +4 -0
- package/types/stable/@ember/-internals/glimmer/lib/utils/serialization-first-node-helpers.d.ts +3 -0
- package/types/stable/@ember/-internals/glimmer/lib/utils/string.d.ts +61 -0
- package/types/stable/@ember/-internals/glimmer/lib/utils/to-bool.d.ts +3 -0
- package/types/stable/@ember/-internals/glimmer/lib/views/outlet.d.ts +34 -0
- package/types/stable/@ember/-internals/meta/index.d.ts +3 -0
- package/types/stable/@ember/-internals/meta/lib/meta.d.ts +174 -0
- package/types/stable/@ember/-internals/metal/index.d.ts +26 -0
- package/types/stable/@ember/-internals/metal/lib/alias.d.ts +22 -0
- package/types/stable/@ember/-internals/metal/lib/array.d.ts +18 -0
- package/types/stable/@ember/-internals/metal/lib/array_events.d.ts +6 -0
- package/types/stable/@ember/-internals/metal/lib/cache.d.ts +121 -0
- package/types/stable/@ember/-internals/metal/lib/cached.d.ts +3 -0
- package/types/stable/@ember/-internals/metal/lib/chain-tags.d.ts +8 -0
- package/types/stable/@ember/-internals/metal/lib/change_event.d.ts +3 -0
- package/types/stable/@ember/-internals/metal/lib/computed.d.ts +484 -0
- package/types/stable/@ember/-internals/metal/lib/computed_cache.d.ts +3 -0
- package/types/stable/@ember/-internals/metal/lib/decorator.d.ts +64 -0
- package/types/stable/@ember/-internals/metal/lib/dependent_keys.d.ts +2 -0
- package/types/stable/@ember/-internals/metal/lib/deprecate_property.d.ts +18 -0
- package/types/stable/@ember/-internals/metal/lib/each_proxy_events.d.ts +5 -0
- package/types/stable/@ember/-internals/metal/lib/events.d.ts +91 -0
- package/types/stable/@ember/-internals/metal/lib/expand_properties.d.ts +33 -0
- package/types/stable/@ember/-internals/metal/lib/get_properties.d.ts +36 -0
- package/types/stable/@ember/-internals/metal/lib/injected_property.d.ts +25 -0
- package/types/stable/@ember/-internals/metal/lib/libraries.d.ts +31 -0
- package/types/stable/@ember/-internals/metal/lib/namespace_search.d.ts +19 -0
- package/types/stable/@ember/-internals/metal/lib/observer.d.ts +54 -0
- package/types/stable/@ember/-internals/metal/lib/path_cache.d.ts +3 -0
- package/types/stable/@ember/-internals/metal/lib/properties.d.ts +58 -0
- package/types/stable/@ember/-internals/metal/lib/property_events.d.ts +59 -0
- package/types/stable/@ember/-internals/metal/lib/property_get.d.ts +44 -0
- package/types/stable/@ember/-internals/metal/lib/property_set.d.ts +52 -0
- package/types/stable/@ember/-internals/metal/lib/set_properties.d.ts +32 -0
- package/types/stable/@ember/-internals/metal/lib/tags.d.ts +7 -0
- package/types/stable/@ember/-internals/metal/lib/tracked.d.ts +78 -0
- package/types/stable/@ember/-internals/overrides/index.d.ts +3 -0
- package/types/stable/@ember/-internals/owner/index.d.ts +646 -0
- package/types/stable/@ember/-internals/routing/index.d.ts +3 -0
- package/types/stable/@ember/-internals/runtime/index.d.ts +11 -0
- package/types/stable/@ember/-internals/runtime/lib/ext/rsvp.d.ts +5 -0
- package/types/stable/@ember/-internals/runtime/lib/mixins/-proxy.d.ts +34 -0
- package/types/stable/@ember/-internals/runtime/lib/mixins/action_handler.d.ts +23 -0
- package/types/stable/@ember/-internals/runtime/lib/mixins/comparable.d.ts +22 -0
- package/types/stable/@ember/-internals/runtime/lib/mixins/container_proxy.d.ts +22 -0
- package/types/stable/@ember/-internals/runtime/lib/mixins/registry_proxy.d.ts +22 -0
- package/types/stable/@ember/-internals/runtime/lib/mixins/target_action_support.d.ts +29 -0
- package/types/stable/@ember/-internals/utility-types/index.d.ts +10 -0
- package/types/stable/@ember/-internals/utils/index.d.ts +16 -0
- package/types/stable/@ember/-internals/utils/lib/cache.d.ts +14 -0
- package/types/stable/@ember/-internals/utils/lib/dictionary.d.ts +7 -0
- package/types/stable/@ember/-internals/utils/lib/get-debug-name.d.ts +4 -0
- package/types/stable/@ember/-internals/utils/lib/guid.d.ts +60 -0
- package/types/stable/@ember/-internals/utils/lib/intern.d.ts +42 -0
- package/types/stable/@ember/-internals/utils/lib/invoke.d.ts +24 -0
- package/types/stable/@ember/-internals/utils/lib/is_proxy.d.ts +5 -0
- package/types/stable/@ember/-internals/utils/lib/lookup-descriptor.d.ts +3 -0
- package/types/stable/@ember/-internals/utils/lib/mandatory-setter.d.ts +6 -0
- package/types/stable/@ember/-internals/utils/lib/name.d.ts +4 -0
- package/types/stable/@ember/-internals/utils/lib/spec.d.ts +14 -0
- package/types/stable/@ember/-internals/utils/lib/super.d.ts +31 -0
- package/types/stable/@ember/-internals/utils/lib/symbol.d.ts +5 -0
- package/types/stable/@ember/-internals/utils/lib/to-string.d.ts +3 -0
- package/types/stable/@ember/-internals/views/index.d.ts +13 -0
- package/types/stable/@ember/-internals/views/lib/compat/attrs.d.ts +3 -0
- package/types/stable/@ember/-internals/views/lib/compat/fallback-view-registry.d.ts +6 -0
- package/types/stable/@ember/-internals/views/lib/component_lookup.d.ts +5 -0
- package/types/stable/@ember/-internals/views/lib/mixins/action_support.d.ts +13 -0
- package/types/stable/@ember/-internals/views/lib/mixins/child_views_support.d.ts +13 -0
- package/types/stable/@ember/-internals/views/lib/mixins/class_names_support.d.ts +14 -0
- package/types/stable/@ember/-internals/views/lib/mixins/view_state_support.d.ts +13 -0
- package/types/stable/@ember/-internals/views/lib/mixins/view_support.d.ts +25 -0
- package/types/stable/@ember/-internals/views/lib/system/action_manager.d.ts +11 -0
- package/types/stable/@ember/-internals/views/lib/system/event_dispatcher.d.ts +117 -0
- package/types/stable/@ember/-internals/views/lib/system/utils.d.ts +94 -0
- package/types/stable/@ember/-internals/views/lib/views/core_view.d.ts +60 -0
- package/types/stable/@ember/-internals/views/lib/views/states/default.d.ts +5 -0
- package/types/stable/@ember/-internals/views/lib/views/states/destroying.d.ts +5 -0
- package/types/stable/@ember/-internals/views/lib/views/states/has_element.d.ts +5 -0
- package/types/stable/@ember/-internals/views/lib/views/states/in_dom.d.ts +5 -0
- package/types/stable/@ember/-internals/views/lib/views/states/pre_render.d.ts +11 -0
- package/types/stable/@ember/-internals/views/lib/views/states.d.ts +25 -0
- package/types/stable/@ember/application/index.d.ts +814 -0
- package/types/stable/@ember/application/instance.d.ts +288 -0
- package/types/stable/@ember/application/lib/lazy_load.d.ts +38 -0
- package/types/stable/@ember/application/namespace.d.ts +38 -0
- package/types/stable/@ember/array/-internals.d.ts +5 -0
- package/types/stable/@ember/array/index.d.ts +1457 -0
- package/types/stable/@ember/array/lib/make-array.d.ts +34 -0
- package/types/stable/@ember/array/mutable.d.ts +3 -0
- package/types/stable/@ember/array/proxy.d.ts +158 -0
- package/types/stable/@ember/canary-features/index.d.ts +49 -0
- package/types/stable/@ember/component/helper.d.ts +3 -0
- package/types/stable/@ember/component/index.d.ts +5 -0
- package/types/stable/@ember/component/template-only.d.ts +33 -0
- package/types/stable/@ember/controller/index.d.ts +277 -0
- package/types/stable/@ember/debug/container-debug-adapter.d.ts +73 -0
- package/types/stable/@ember/debug/data-adapter.d.ts +325 -0
- package/types/stable/@ember/debug/index.d.ts +52 -0
- package/types/stable/@ember/debug/lib/capture-render-tree.d.ts +21 -0
- package/types/stable/@ember/debug/lib/deprecate.d.ts +72 -0
- package/types/stable/@ember/debug/lib/handlers.d.ts +14 -0
- package/types/stable/@ember/debug/lib/inspect.d.ts +20 -0
- package/types/stable/@ember/debug/lib/testing.d.ts +4 -0
- package/types/stable/@ember/debug/lib/warn.d.ts +14 -0
- package/types/stable/@ember/deprecated-features/index.d.ts +3 -0
- package/types/stable/@ember/destroyable/index.d.ts +237 -0
- package/types/stable/@ember/engine/index.d.ts +347 -0
- package/types/stable/@ember/engine/instance.d.ts +127 -0
- package/types/stable/@ember/engine/lib/engine-parent.d.ts +27 -0
- package/types/stable/@ember/enumerable/index.d.ts +19 -0
- package/types/stable/@ember/enumerable/mutable.d.ts +21 -0
- package/types/stable/@ember/error/index.d.ts +15 -0
- package/types/stable/@ember/helper/index.d.ts +314 -0
- package/types/stable/@ember/instrumentation/index.d.ts +127 -0
- package/types/stable/@ember/modifier/index.d.ts +5 -0
- package/types/stable/@ember/object/-internals.d.ts +9 -0
- package/types/stable/@ember/object/compat.d.ts +90 -0
- package/types/stable/@ember/object/computed.d.ts +5 -0
- package/types/stable/@ember/object/core.d.ts +638 -0
- package/types/stable/@ember/object/evented.d.ts +134 -0
- package/types/stable/@ember/object/events.d.ts +3 -0
- package/types/stable/@ember/object/index.d.ts +60 -0
- package/types/stable/@ember/object/internals.d.ts +3 -0
- package/types/stable/@ember/object/lib/computed/computed_macros.d.ts +644 -0
- package/types/stable/@ember/object/lib/computed/reduce_computed_macros.d.ts +791 -0
- package/types/stable/@ember/object/mixin.d.ts +157 -0
- package/types/stable/@ember/object/observable.d.ts +383 -0
- package/types/stable/@ember/object/observers.d.ts +3 -0
- package/types/stable/@ember/object/promise-proxy-mixin.d.ts +167 -0
- package/types/stable/@ember/object/proxy.d.ts +88 -0
- package/types/stable/@ember/owner/index.d.ts +80 -0
- package/types/stable/@ember/polyfills/index.d.ts +4 -0
- package/types/stable/@ember/polyfills/lib/assign.d.ts +9 -0
- package/types/stable/@ember/renderer/index.d.ts +28 -0
- package/types/stable/@ember/routing/-internals.d.ts +11 -0
- package/types/stable/@ember/routing/auto-location.d.ts +149 -0
- package/types/stable/@ember/routing/hash-location.d.ts +113 -0
- package/types/stable/@ember/routing/history-location.d.ts +143 -0
- package/types/stable/@ember/routing/index.d.ts +3 -0
- package/types/stable/@ember/routing/lib/cache.d.ts +16 -0
- package/types/stable/@ember/routing/lib/controller_for.d.ts +15 -0
- package/types/stable/@ember/routing/lib/dsl.d.ts +52 -0
- package/types/stable/@ember/routing/lib/engines.d.ts +14 -0
- package/types/stable/@ember/routing/lib/generate_controller.d.ts +25 -0
- package/types/stable/@ember/routing/lib/location-utils.d.ts +31 -0
- package/types/stable/@ember/routing/lib/query_params.d.ts +7 -0
- package/types/stable/@ember/routing/lib/route-info.d.ts +3 -0
- package/types/stable/@ember/routing/lib/router_state.d.ts +13 -0
- package/types/stable/@ember/routing/lib/routing-service.d.ts +35 -0
- package/types/stable/@ember/routing/lib/utils.d.ts +36 -0
- package/types/stable/@ember/routing/location.d.ts +108 -0
- package/types/stable/@ember/routing/none-location.d.ts +83 -0
- package/types/stable/@ember/routing/route-info.d.ts +125 -0
- package/types/stable/@ember/routing/route.d.ts +1456 -0
- package/types/stable/@ember/routing/router-service.d.ts +588 -0
- package/types/stable/@ember/routing/router.d.ts +431 -0
- package/types/stable/@ember/routing/transition.d.ts +180 -0
- package/types/stable/@ember/runloop/index.d.ts +657 -0
- package/types/stable/@ember/service/index.d.ts +82 -0
- package/types/stable/@ember/string/index.d.ts +152 -0
- package/types/stable/@ember/string/lib/string_registry.d.ts +9 -0
- package/types/stable/@ember/template/index.d.ts +3 -0
- package/types/stable/@ember/template-compilation/index.d.ts +4 -0
- package/types/stable/@ember/template-factory/index.d.ts +3 -0
- package/types/stable/@ember/test/adapter.d.ts +4 -0
- package/types/stable/@ember/test/index.d.ts +8 -0
- package/types/stable/@ember/utils/index.d.ts +9 -0
- package/types/stable/@ember/utils/lib/compare.d.ts +54 -0
- package/types/stable/@ember/utils/lib/is-equal.d.ts +52 -0
- package/types/stable/@ember/utils/lib/is_blank.d.ts +32 -0
- package/types/stable/@ember/utils/lib/is_empty.d.ts +38 -0
- package/types/stable/@ember/utils/lib/is_none.d.ts +26 -0
- package/types/stable/@ember/utils/lib/is_present.d.ts +35 -0
- package/types/stable/@ember/utils/lib/type-of.d.ts +68 -0
- package/types/stable/@ember/version/index.d.ts +3 -0
- package/types/stable/@glimmer/tracking/index.d.ts +203 -0
- package/types/stable/@glimmer/tracking/primitives/cache.d.ts +3 -0
- package/types/stable/ember/index.d.ts +376 -0
- package/types/stable/ember-template-compiler/index.d.ts +21 -0
- package/types/stable/ember-template-compiler/lib/plugins/assert-against-attrs.d.ts +20 -0
- package/types/stable/ember-template-compiler/lib/plugins/assert-against-named-outlets.d.ts +14 -0
- package/types/stable/ember-template-compiler/lib/plugins/assert-input-helper-without-block.d.ts +5 -0
- package/types/stable/ember-template-compiler/lib/plugins/assert-reserved-named-arguments.d.ts +5 -0
- package/types/stable/ember-template-compiler/lib/plugins/assert-splattribute-expression.d.ts +5 -0
- package/types/stable/ember-template-compiler/lib/plugins/index.d.ts +5 -0
- package/types/stable/ember-template-compiler/lib/plugins/transform-action-syntax.d.ts +28 -0
- package/types/stable/ember-template-compiler/lib/plugins/transform-each-in-into-each.d.ts +24 -0
- package/types/stable/ember-template-compiler/lib/plugins/transform-each-track-array.d.ts +24 -0
- package/types/stable/ember-template-compiler/lib/plugins/transform-in-element.d.ts +22 -0
- package/types/stable/ember-template-compiler/lib/plugins/transform-quoted-bindings-into-just-bindings.d.ts +4 -0
- package/types/stable/ember-template-compiler/lib/plugins/transform-resolutions.d.ts +5 -0
- package/types/stable/ember-template-compiler/lib/plugins/transform-wrap-mount-and-outlet.d.ts +36 -0
- package/types/stable/ember-template-compiler/lib/plugins/utils.d.ts +13 -0
- package/types/stable/ember-template-compiler/lib/system/bootstrap.d.ts +26 -0
- package/types/stable/ember-template-compiler/lib/system/calculate-location-display.d.ts +4 -0
- package/types/stable/ember-template-compiler/lib/system/compile-options.d.ts +6 -0
- package/types/stable/ember-template-compiler/lib/system/compile.d.ts +13 -0
- package/types/stable/ember-template-compiler/lib/system/dasherize-component-name.d.ts +5 -0
- package/types/stable/ember-template-compiler/lib/system/initializer.d.ts +3 -0
- package/types/stable/ember-template-compiler/lib/system/precompile.d.ts +17 -0
- package/types/stable/ember-testing/index.d.ts +10 -0
- package/types/stable/ember-testing/lib/adapters/adapter.d.ts +20 -0
- package/types/stable/ember-testing/lib/adapters/qunit.d.ts +19 -0
- package/types/stable/ember-testing/lib/ext/application.d.ts +12 -0
- package/types/stable/ember-testing/lib/ext/rsvp.d.ts +4 -0
- package/types/stable/ember-testing/lib/helpers/and_then.d.ts +4 -0
- package/types/stable/ember-testing/lib/helpers/current_path.d.ts +22 -0
- package/types/stable/ember-testing/lib/helpers/current_route_name.d.ts +21 -0
- package/types/stable/ember-testing/lib/helpers/current_url.d.ts +22 -0
- package/types/stable/ember-testing/lib/helpers/pause_test.d.ts +53 -0
- package/types/stable/ember-testing/lib/helpers/visit.d.ts +22 -0
- package/types/stable/ember-testing/lib/helpers/wait.d.ts +34 -0
- package/types/stable/ember-testing/lib/helpers.d.ts +3 -0
- package/types/stable/ember-testing/lib/initializers.d.ts +3 -0
- package/types/stable/ember-testing/lib/setup_for_testing.d.ts +15 -0
- package/types/stable/ember-testing/lib/test/adapter.d.ts +7 -0
- package/types/stable/ember-testing/lib/test/helpers.d.ts +115 -0
- package/types/stable/ember-testing/lib/test/on_inject_helpers.d.ts +33 -0
- package/types/stable/ember-testing/lib/test/pending_requests.d.ts +6 -0
- package/types/stable/ember-testing/lib/test/promise.d.ts +38 -0
- package/types/stable/ember-testing/lib/test/run.d.ts +3 -0
- package/types/stable/ember-testing/lib/test/waiters.d.ts +67 -0
- package/types/stable/ember-testing/lib/test.d.ts +47 -0
- package/types/stable/index.d.ts +47 -0
- package/types/preview/@ember/application/tsconfig.json +0 -3
- package/types/preview/@ember/array/tsconfig.json +0 -3
- package/types/preview/@ember/component/tsconfig.json +0 -3
- package/types/preview/@ember/controller/tsconfig.json +0 -3
- package/types/preview/@ember/debug/tsconfig.json +0 -3
- package/types/preview/@ember/destroyable/tsconfig.json +0 -3
- package/types/preview/@ember/engine/tsconfig.json +0 -3
- package/types/preview/@ember/error/tsconfig.json +0 -3
- package/types/preview/@ember/helper/tsconfig.json +0 -3
- package/types/preview/@ember/modifier/tsconfig.json +0 -3
- package/types/preview/@ember/object/tsconfig.json +0 -3
- package/types/preview/@ember/owner/index.d.ts +0 -423
- package/types/preview/@ember/owner/tsconfig.json +0 -3
- package/types/preview/@ember/polyfills/tsconfig.json +0 -3
- package/types/preview/@ember/routing/tsconfig.json +0 -3
- package/types/preview/@ember/runloop/tsconfig.json +0 -3
- package/types/preview/@ember/service/tsconfig.json +0 -3
- package/types/preview/@ember/string/tsconfig.json +0 -3
- package/types/preview/@ember/template/tsconfig.json +0 -3
- package/types/preview/@ember/test/tsconfig.json +0 -3
- package/types/preview/@ember/utils/tsconfig.json +0 -3
- package/types/preview/ember/tsconfig.json +0 -3
- package/types/preview/tsconfig.json +0 -6
package/docs/data.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "The Ember API",
|
|
4
4
|
"description": "The Ember API: a framework for building ambitious web applications",
|
|
5
5
|
"url": "https://emberjs.com/",
|
|
6
|
-
"version": "4.
|
|
6
|
+
"version": "4.11.0-alpha.2"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
|
@@ -828,13 +828,6 @@
|
|
|
828
828
|
},
|
|
829
829
|
"namespaces": {}
|
|
830
830
|
},
|
|
831
|
-
"packages/@ember/-internals/utils/lib/inspect.ts": {
|
|
832
|
-
"name": "packages/@ember/-internals/utils/lib/inspect.ts",
|
|
833
|
-
"modules": {},
|
|
834
|
-
"classes": {},
|
|
835
|
-
"fors": {},
|
|
836
|
-
"namespaces": {}
|
|
837
|
-
},
|
|
838
831
|
"packages/@ember/-internals/utils/lib/intern.ts": {
|
|
839
832
|
"name": "packages/@ember/-internals/utils/lib/intern.ts",
|
|
840
833
|
"modules": {},
|
|
@@ -851,15 +844,6 @@
|
|
|
851
844
|
},
|
|
852
845
|
"namespaces": {}
|
|
853
846
|
},
|
|
854
|
-
"packages/@ember/-internals/utils/lib/make-array.ts": {
|
|
855
|
-
"name": "packages/@ember/-internals/utils/lib/make-array.ts",
|
|
856
|
-
"modules": {},
|
|
857
|
-
"classes": {},
|
|
858
|
-
"fors": {
|
|
859
|
-
"@ember/array": 1
|
|
860
|
-
},
|
|
861
|
-
"namespaces": {}
|
|
862
|
-
},
|
|
863
847
|
"packages/@ember/-internals/utils/lib/spec.ts": {
|
|
864
848
|
"name": "packages/@ember/-internals/utils/lib/spec.ts",
|
|
865
849
|
"modules": {},
|
|
@@ -1002,11 +986,20 @@
|
|
|
1002
986
|
"fors": {},
|
|
1003
987
|
"namespaces": {}
|
|
1004
988
|
},
|
|
1005
|
-
"packages/@ember/array/
|
|
1006
|
-
"name": "packages/@ember/array/
|
|
989
|
+
"packages/@ember/array/lib/make-array.ts": {
|
|
990
|
+
"name": "packages/@ember/array/lib/make-array.ts",
|
|
1007
991
|
"modules": {
|
|
1008
992
|
"@ember/array": 1
|
|
1009
993
|
},
|
|
994
|
+
"classes": {},
|
|
995
|
+
"fors": {
|
|
996
|
+
"@ember/array": 1
|
|
997
|
+
},
|
|
998
|
+
"namespaces": {}
|
|
999
|
+
},
|
|
1000
|
+
"packages/@ember/array/index.ts": {
|
|
1001
|
+
"name": "packages/@ember/array/index.ts",
|
|
1002
|
+
"modules": {},
|
|
1010
1003
|
"classes": {
|
|
1011
1004
|
"EmberArray": 1,
|
|
1012
1005
|
"MutableArray": 1,
|
|
@@ -1085,6 +1078,13 @@
|
|
|
1085
1078
|
},
|
|
1086
1079
|
"namespaces": {}
|
|
1087
1080
|
},
|
|
1081
|
+
"packages/@ember/debug/lib/inspect.ts": {
|
|
1082
|
+
"name": "packages/@ember/debug/lib/inspect.ts",
|
|
1083
|
+
"modules": {},
|
|
1084
|
+
"classes": {},
|
|
1085
|
+
"fors": {},
|
|
1086
|
+
"namespaces": {}
|
|
1087
|
+
},
|
|
1088
1088
|
"packages/@ember/debug/lib/warn.ts": {
|
|
1089
1089
|
"name": "packages/@ember/debug/lib/warn.ts",
|
|
1090
1090
|
"modules": {},
|
|
@@ -2009,26 +2009,6 @@
|
|
|
2009
2009
|
"access": "public",
|
|
2010
2010
|
"tagname": ""
|
|
2011
2011
|
},
|
|
2012
|
-
"@ember/debug": {
|
|
2013
|
-
"name": "@ember/debug",
|
|
2014
|
-
"submodules": {
|
|
2015
|
-
"undefined": 1
|
|
2016
|
-
},
|
|
2017
|
-
"elements": {},
|
|
2018
|
-
"classes": {
|
|
2019
|
-
"@ember/debug": 1
|
|
2020
|
-
},
|
|
2021
|
-
"fors": {
|
|
2022
|
-
"Ember": 1,
|
|
2023
|
-
"@ember/debug": 1
|
|
2024
|
-
},
|
|
2025
|
-
"namespaces": {},
|
|
2026
|
-
"tag": "module",
|
|
2027
|
-
"file": "packages/@ember/debug/index.ts",
|
|
2028
|
-
"line": 131,
|
|
2029
|
-
"access": "public",
|
|
2030
|
-
"tagname": ""
|
|
2031
|
-
},
|
|
2032
2012
|
"@ember/utils": {
|
|
2033
2013
|
"name": "@ember/utils",
|
|
2034
2014
|
"submodules": {},
|
|
@@ -2038,6 +2018,7 @@
|
|
|
2038
2018
|
"@ember/utils": 1
|
|
2039
2019
|
},
|
|
2040
2020
|
"fors": {
|
|
2021
|
+
"Ember": 1,
|
|
2041
2022
|
"@ember/utils": 1
|
|
2042
2023
|
},
|
|
2043
2024
|
"namespaces": {},
|
|
@@ -2045,23 +2026,6 @@
|
|
|
2045
2026
|
"file": "packages/@ember/utils/lib/compare.ts",
|
|
2046
2027
|
"line": 49
|
|
2047
2028
|
},
|
|
2048
|
-
"@ember/array": {
|
|
2049
|
-
"name": "@ember/array",
|
|
2050
|
-
"submodules": {},
|
|
2051
|
-
"elements": {},
|
|
2052
|
-
"classes": {
|
|
2053
|
-
"EmberArray": 1,
|
|
2054
|
-
"MutableArray": 1
|
|
2055
|
-
},
|
|
2056
|
-
"fors": {
|
|
2057
|
-
"@ember/array": 1,
|
|
2058
|
-
"Ember": 1
|
|
2059
|
-
},
|
|
2060
|
-
"namespaces": {},
|
|
2061
|
-
"tag": "module",
|
|
2062
|
-
"file": "packages/@ember/array/index.ts",
|
|
2063
|
-
"line": 1463
|
|
2064
|
-
},
|
|
2065
2029
|
"@ember/application": {
|
|
2066
2030
|
"name": "@ember/application",
|
|
2067
2031
|
"submodules": {},
|
|
@@ -2095,6 +2059,22 @@
|
|
|
2095
2059
|
"file": "packages/@ember/application/namespace.ts",
|
|
2096
2060
|
"line": 20
|
|
2097
2061
|
},
|
|
2062
|
+
"@ember/array": {
|
|
2063
|
+
"name": "@ember/array",
|
|
2064
|
+
"submodules": {},
|
|
2065
|
+
"elements": {},
|
|
2066
|
+
"classes": {
|
|
2067
|
+
"EmberArray": 1,
|
|
2068
|
+
"MutableArray": 1
|
|
2069
|
+
},
|
|
2070
|
+
"fors": {
|
|
2071
|
+
"@ember/array": 1
|
|
2072
|
+
},
|
|
2073
|
+
"namespaces": {},
|
|
2074
|
+
"tag": "module",
|
|
2075
|
+
"file": "packages/@ember/array/index.ts",
|
|
2076
|
+
"line": 1463
|
|
2077
|
+
},
|
|
2098
2078
|
"@ember/array/proxy": {
|
|
2099
2079
|
"name": "@ember/array/proxy",
|
|
2100
2080
|
"submodules": {},
|
|
@@ -2119,7 +2099,7 @@
|
|
|
2119
2099
|
"namespaces": {},
|
|
2120
2100
|
"tag": "module",
|
|
2121
2101
|
"file": "packages/@ember/canary-features/index.ts",
|
|
2122
|
-
"line":
|
|
2102
|
+
"line": 19,
|
|
2123
2103
|
"description": "Set `EmberENV.FEATURES` in your application's `config/environment.js` file\nto enable canary features in your application.\n\nSee the [feature flag guide](https://guides.emberjs.com/release/configuring-ember/feature-flags/)\nfor more details.",
|
|
2124
2104
|
"access": "public",
|
|
2125
2105
|
"tagname": ""
|
|
@@ -2161,6 +2141,25 @@
|
|
|
2161
2141
|
"file": "packages/@ember/controller/index.ts",
|
|
2162
2142
|
"line": 335
|
|
2163
2143
|
},
|
|
2144
|
+
"@ember/debug": {
|
|
2145
|
+
"name": "@ember/debug",
|
|
2146
|
+
"submodules": {
|
|
2147
|
+
"undefined": 1
|
|
2148
|
+
},
|
|
2149
|
+
"elements": {},
|
|
2150
|
+
"classes": {
|
|
2151
|
+
"@ember/debug": 1
|
|
2152
|
+
},
|
|
2153
|
+
"fors": {
|
|
2154
|
+
"@ember/debug": 1
|
|
2155
|
+
},
|
|
2156
|
+
"namespaces": {},
|
|
2157
|
+
"tag": "module",
|
|
2158
|
+
"file": "packages/@ember/debug/index.ts",
|
|
2159
|
+
"line": 129,
|
|
2160
|
+
"access": "public",
|
|
2161
|
+
"tagname": ""
|
|
2162
|
+
},
|
|
2164
2163
|
"@ember/debug/container-debug-adapter": {
|
|
2165
2164
|
"name": "@ember/debug/container-debug-adapter",
|
|
2166
2165
|
"submodules": {},
|
|
@@ -2220,7 +2219,7 @@
|
|
|
2220
2219
|
"namespaces": {},
|
|
2221
2220
|
"tag": "module",
|
|
2222
2221
|
"file": "packages/@ember/engine/instance.ts",
|
|
2223
|
-
"line":
|
|
2222
|
+
"line": 38
|
|
2224
2223
|
},
|
|
2225
2224
|
"@ember/enumerable": {
|
|
2226
2225
|
"name": "@ember/enumerable",
|
|
@@ -2281,7 +2280,7 @@
|
|
|
2281
2280
|
"namespaces": {},
|
|
2282
2281
|
"tag": "module",
|
|
2283
2282
|
"file": "packages/@ember/instrumentation/index.ts",
|
|
2284
|
-
"line":
|
|
2283
|
+
"line": 39,
|
|
2285
2284
|
"access": "private",
|
|
2286
2285
|
"tagname": ""
|
|
2287
2286
|
},
|
|
@@ -2298,7 +2297,7 @@
|
|
|
2298
2297
|
"namespaces": {},
|
|
2299
2298
|
"tag": "module",
|
|
2300
2299
|
"file": "packages/@ember/object/core.ts",
|
|
2301
|
-
"line":
|
|
2300
|
+
"line": 172
|
|
2302
2301
|
},
|
|
2303
2302
|
"@ember/object/evented": {
|
|
2304
2303
|
"name": "@ember/object/evented",
|
|
@@ -2327,7 +2326,7 @@
|
|
|
2327
2326
|
"namespaces": {},
|
|
2328
2327
|
"tag": "module",
|
|
2329
2328
|
"file": "packages/@ember/object/mixin.ts",
|
|
2330
|
-
"line":
|
|
2329
|
+
"line": 449
|
|
2331
2330
|
},
|
|
2332
2331
|
"@ember/object/observable": {
|
|
2333
2332
|
"name": "@ember/object/observable",
|
|
@@ -2353,7 +2352,7 @@
|
|
|
2353
2352
|
"namespaces": {},
|
|
2354
2353
|
"tag": "module",
|
|
2355
2354
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
2356
|
-
"line":
|
|
2355
|
+
"line": 46
|
|
2357
2356
|
},
|
|
2358
2357
|
"@ember/object/proxy": {
|
|
2359
2358
|
"name": "@ember/object/proxy",
|
|
@@ -2531,7 +2530,7 @@
|
|
|
2531
2530
|
"namespaces": {},
|
|
2532
2531
|
"tag": "module",
|
|
2533
2532
|
"file": "packages/@ember/routing/router.ts",
|
|
2534
|
-
"line":
|
|
2533
|
+
"line": 145
|
|
2535
2534
|
},
|
|
2536
2535
|
"@ember/routing/transition": {
|
|
2537
2536
|
"name": "@ember/routing/transition",
|
|
@@ -2891,7 +2890,7 @@
|
|
|
2891
2890
|
"module": "@ember/object",
|
|
2892
2891
|
"namespace": "",
|
|
2893
2892
|
"file": "packages/@ember/-internals/metal/lib/computed.ts",
|
|
2894
|
-
"line":
|
|
2893
|
+
"line": 76,
|
|
2895
2894
|
"description": "`@computed` is a decorator that turns a JavaScript getter and setter into a\ncomputed property, which is a _cached, trackable value_. By default the getter\nwill only be called once and the result will be cached. You can specify\nvarious properties that your computed property depends on. This will force the\ncached result to be cleared if the dependencies are modified, and lazily recomputed the next time something asks for it.\n\nIn the following example we decorate a getter - `fullName` - by calling\n`computed` with the property dependencies (`firstName` and `lastName`) as\narguments. The `fullName` getter will be called once (regardless of how many\ntimes it is accessed) as long as its dependencies do not change. Once\n`firstName` or `lastName` are updated any future calls to `fullName` will\nincorporate the new values, and any watchers of the value such as templates\nwill be updated:\n\n```javascript\nimport { computed, set } from '@ember/object';\n\nclass Person {\n constructor(firstName, lastName) {\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n }\n\n @computed('firstName', 'lastName')\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n});\n\nlet tom = new Person('Tom', 'Dale');\n\ntom.fullName; // 'Tom Dale'\n```\n\nYou can also provide a setter, which will be used when updating the computed\nproperty. Ember's `set` function must be used to update the property\nsince it will also notify observers of the property:\n\n```javascript\nimport { computed, set } from '@ember/object';\n\nclass Person {\n constructor(firstName, lastName) {\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n }\n\n @computed('firstName', 'lastName')\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n\n set fullName(value) {\n let [firstName, lastName] = value.split(' ');\n\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n }\n});\n\nlet person = new Person();\n\nset(person, 'fullName', 'Peter Wagenet');\nperson.firstName; // 'Peter'\nperson.lastName; // 'Wagenet'\n```\n\nYou can also pass a getter function or object with `get` and `set` functions\nas the last argument to the computed decorator. This allows you to define\ncomputed property _macros_:\n\n```js\nimport { computed } from '@ember/object';\n\nfunction join(...keys) {\n return computed(...keys, function() {\n return keys.map(key => this[key]).join(' ');\n });\n}\n\nclass Person {\n @join('firstName', 'lastName')\n fullName;\n}\n```\n\nNote that when defined this way, getters and setters receive the _key_ of the\nproperty they are decorating as the first argument. Setters receive the value\nthey are setting to as the second argument instead. Additionally, setters must\n_return_ the value that should be cached:\n\n```javascript\nimport { computed, set } from '@ember/object';\n\nfunction fullNameMacro(firstNameKey, lastNameKey) {\n return computed(firstNameKey, lastNameKey, {\n get() {\n return `${this[firstNameKey]} ${this[lastNameKey]}`;\n }\n\n set(key, value) {\n let [firstName, lastName] = value.split(' ');\n\n set(this, firstNameKey, firstName);\n set(this, lastNameKey, lastName);\n\n return value;\n }\n });\n}\n\nclass Person {\n constructor(firstName, lastName) {\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n }\n\n @fullNameMacro('firstName', 'lastName') fullName;\n});\n\nlet person = new Person();\n\nset(person, 'fullName', 'Peter Wagenet');\nperson.firstName; // 'Peter'\nperson.lastName; // 'Wagenet'\n```\n\nComputed properties can also be used in classic classes. To do this, we\nprovide the getter and setter as the last argument like we would for a macro,\nand we assign it to a property on the class definition. This is an _anonymous_\ncomputed macro:\n\n```javascript\nimport EmberObject, { computed, set } from '@ember/object';\n\nlet Person = EmberObject.extend({\n // these will be supplied by `create`\n firstName: null,\n lastName: null,\n\n fullName: computed('firstName', 'lastName', {\n get() {\n return `${this.firstName} ${this.lastName}`;\n }\n\n set(key, value) {\n let [firstName, lastName] = value.split(' ');\n\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n\n return value;\n }\n })\n});\n\nlet tom = Person.create({\n firstName: 'Tom',\n lastName: 'Dale'\n});\n\ntom.get('fullName') // 'Tom Dale'\n```\n\nYou can overwrite computed property without setters with a normal property (no\nlonger computed) that won't change if dependencies change. You can also mark\ncomputed property as `.readOnly()` and block all attempts to set it.\n\n```javascript\nimport { computed, set } from '@ember/object';\n\nclass Person {\n constructor(firstName, lastName) {\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n }\n\n @computed('firstName', 'lastName').readOnly()\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n});\n\nlet person = new Person();\nperson.set('fullName', 'Peter Wagenet'); // Uncaught Error: Cannot set read-only property \"fullName\" on object: <(...):emberXXX>\n```\n\nAdditional resources:\n- [Decorators RFC](https://github.com/emberjs/rfcs/blob/master/text/0408-decorators.md)\n- [New CP syntax RFC](https://github.com/emberjs/rfcs/blob/master/text/0011-improved-cp-syntax.md)\n- [New computed syntax explained in \"Ember 1.12 released\" ](https://emberjs.com/blog/2015/05/13/ember-1-12-released.html#toc_new-computed-syntax)",
|
|
2896
2895
|
"access": "public",
|
|
2897
2896
|
"tagname": ""
|
|
@@ -3007,7 +3006,7 @@
|
|
|
3007
3006
|
"module": "ember",
|
|
3008
3007
|
"namespace": "",
|
|
3009
3008
|
"file": "packages/@ember/-internals/metal/lib/libraries.ts",
|
|
3010
|
-
"line":
|
|
3009
|
+
"line": 14,
|
|
3011
3010
|
"description": "Helper class that allows you to register your library with Ember.\n\nSingleton created at `Ember.libraries`.",
|
|
3012
3011
|
"is_constructor": 1,
|
|
3013
3012
|
"access": "private",
|
|
@@ -3347,17 +3346,6 @@
|
|
|
3347
3346
|
"module": "@ember/object",
|
|
3348
3347
|
"namespace": ""
|
|
3349
3348
|
},
|
|
3350
|
-
"@ember/array": {
|
|
3351
|
-
"name": "@ember/array",
|
|
3352
|
-
"shortname": "@ember/array",
|
|
3353
|
-
"classitems": [],
|
|
3354
|
-
"plugins": [],
|
|
3355
|
-
"extensions": [],
|
|
3356
|
-
"plugin_for": [],
|
|
3357
|
-
"extension_for": [],
|
|
3358
|
-
"module": "ember",
|
|
3359
|
-
"namespace": ""
|
|
3360
|
-
},
|
|
3361
3349
|
"Ember.ActionSupport": {
|
|
3362
3350
|
"name": "Ember.ActionSupport",
|
|
3363
3351
|
"shortname": "Ember.ActionSupport",
|
|
@@ -3371,7 +3359,7 @@
|
|
|
3371
3359
|
"module": "ember",
|
|
3372
3360
|
"namespace": "Ember",
|
|
3373
3361
|
"file": "packages/@ember/-internals/views/lib/mixins/action_support.ts",
|
|
3374
|
-
"line":
|
|
3362
|
+
"line": 8,
|
|
3375
3363
|
"access": "private",
|
|
3376
3364
|
"tagname": ""
|
|
3377
3365
|
},
|
|
@@ -3527,6 +3515,17 @@
|
|
|
3527
3515
|
"access": "public",
|
|
3528
3516
|
"tagname": ""
|
|
3529
3517
|
},
|
|
3518
|
+
"@ember/array": {
|
|
3519
|
+
"name": "@ember/array",
|
|
3520
|
+
"shortname": "@ember/array",
|
|
3521
|
+
"classitems": [],
|
|
3522
|
+
"plugins": [],
|
|
3523
|
+
"extensions": [],
|
|
3524
|
+
"plugin_for": [],
|
|
3525
|
+
"extension_for": [],
|
|
3526
|
+
"module": "ember",
|
|
3527
|
+
"namespace": ""
|
|
3528
|
+
},
|
|
3530
3529
|
"EmberArray": {
|
|
3531
3530
|
"name": "EmberArray",
|
|
3532
3531
|
"shortname": "EmberArray",
|
|
@@ -3623,7 +3622,7 @@
|
|
|
3623
3622
|
"module": "@ember/canary-features",
|
|
3624
3623
|
"namespace": "",
|
|
3625
3624
|
"file": "packages/@ember/canary-features/index.ts",
|
|
3626
|
-
"line":
|
|
3625
|
+
"line": 19,
|
|
3627
3626
|
"description": "The hash of enabled Canary features. Add to this, any canary features\nbefore creating your application.",
|
|
3628
3627
|
"static": 1,
|
|
3629
3628
|
"since": "1.1.0",
|
|
@@ -3779,7 +3778,7 @@
|
|
|
3779
3778
|
"module": "@ember/engine",
|
|
3780
3779
|
"namespace": "",
|
|
3781
3780
|
"file": "packages/@ember/engine/instance.ts",
|
|
3782
|
-
"line":
|
|
3781
|
+
"line": 38,
|
|
3783
3782
|
"description": "The `EngineInstance` encapsulates all of the stateful aspects of a\nrunning `Engine`.",
|
|
3784
3783
|
"access": "public",
|
|
3785
3784
|
"tagname": "",
|
|
@@ -3867,7 +3866,7 @@
|
|
|
3867
3866
|
"module": "@ember/instrumentation",
|
|
3868
3867
|
"namespace": "",
|
|
3869
3868
|
"file": "packages/@ember/instrumentation/index.ts",
|
|
3870
|
-
"line":
|
|
3869
|
+
"line": 39,
|
|
3871
3870
|
"description": "The purpose of the Ember Instrumentation module is\nto provide efficient, general-purpose instrumentation\nfor Ember.\n\nSubscribe to a listener by using `subscribe`:\n\n```javascript\nimport { subscribe } from '@ember/instrumentation';\n\nsubscribe(\"render\", {\n before(name, timestamp, payload) {\n\n },\n\n after(name, timestamp, payload) {\n\n }\n});\n```\n\nIf you return a value from the `before` callback, that same\nvalue will be passed as a fourth parameter to the `after`\ncallback.\n\nInstrument a block of code by using `instrument`:\n\n```javascript\nimport { instrument } from '@ember/instrumentation';\n\ninstrument(\"render.handlebars\", payload, function() {\n // rendering logic\n}, binding);\n```\n\nEvent names passed to `instrument` are namespaced\nby periods, from more general to more specific. Subscribers\ncan listen for events by whatever level of granularity they\nare interested in.\n\nIn the above example, the event is `render.handlebars`,\nand the subscriber listened for all events beginning with\n`render`. It would receive callbacks for events named\n`render`, `render.handlebars`, `render.container`, or\neven `render.handlebars.layout`.",
|
|
3872
3871
|
"static": 1,
|
|
3873
3872
|
"access": "private",
|
|
@@ -3906,7 +3905,7 @@
|
|
|
3906
3905
|
"module": "@ember/object/core",
|
|
3907
3906
|
"namespace": "",
|
|
3908
3907
|
"file": "packages/@ember/object/core.ts",
|
|
3909
|
-
"line":
|
|
3908
|
+
"line": 172,
|
|
3910
3909
|
"description": "`CoreObject` is the base class for all Ember constructs. It establishes a\nclass system based on Ember's Mixin system, and provides the basis for the\nEmber Object Model. `CoreObject` should generally not be used directly,\ninstead you should use `EmberObject`.\n\n## Usage\n\nYou can define a class by extending from `CoreObject` using the `extend`\nmethod:\n\n```js\nconst Person = CoreObject.extend({\n name: 'Tomster',\n});\n```\n\nFor detailed usage, see the [Object Model](https://guides.emberjs.com/release/object-model/)\nsection of the guides.\n\n## Usage with Native Classes\n\nNative JavaScript `class` syntax can be used to extend from any `CoreObject`\nbased class:\n\n```js\nclass Person extends CoreObject {\n init() {\n super.init(...arguments);\n this.name = 'Tomster';\n }\n}\n```\n\nSome notes about `class` usage:\n\n* `new` syntax is not currently supported with classes that extend from\n `EmberObject` or `CoreObject`. You must continue to use the `create` method\n when making new instances of classes, even if they are defined using native\n class syntax. If you want to use `new` syntax, consider creating classes\n which do _not_ extend from `EmberObject` or `CoreObject`. Ember features,\n such as computed properties and decorators, will still work with base-less\n classes.\n* Instead of using `this._super()`, you must use standard `super` syntax in\n native classes. See the [MDN docs on classes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Super_class_calls_with_super)\n for more details.\n* Native classes support using [constructors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Constructor)\n to set up newly-created instances. Ember uses these to, among other things,\n support features that need to retrieve other entities by name, like Service\n injection and `getOwner`. To ensure your custom instance setup logic takes\n place after this important work is done, avoid using the `constructor` in\n favor of `init`.\n* Properties passed to `create` will be available on the instance by the time\n `init` runs, so any code that requires these values should work at that\n time.\n* Using native classes, and switching back to the old Ember Object model is\n fully supported.",
|
|
3911
3910
|
"access": "public",
|
|
3912
3911
|
"tagname": ""
|
|
@@ -3962,7 +3961,7 @@
|
|
|
3962
3961
|
"module": "@ember/object/mixin",
|
|
3963
3962
|
"namespace": "",
|
|
3964
3963
|
"file": "packages/@ember/object/mixin.ts",
|
|
3965
|
-
"line":
|
|
3964
|
+
"line": 449,
|
|
3966
3965
|
"description": "The `Mixin` class allows you to create mixins, whose properties can be\nadded to other classes. For instance,\n\n```javascript\nimport Mixin from '@ember/object/mixin';\n\nconst EditableMixin = Mixin.create({\n edit() {\n console.log('starting to edit');\n this.set('isEditing', true);\n },\n isEditing: false\n});\n```\n\n```javascript\nimport EmberObject from '@ember/object';\nimport EditableMixin from '../mixins/editable';\n\n// Mix mixins into classes by passing them as the first arguments to\n// `.extend.`\nconst Comment = EmberObject.extend(EditableMixin, {\n post: null\n});\n\nlet comment = Comment.create({\n post: somePost\n});\n\ncomment.edit(); // outputs 'starting to edit'\n```\n\nNote that Mixins are created with `Mixin.create`, not\n`Mixin.extend`.\n\nNote that mixins extend a constructor's prototype so arrays and object literals\ndefined as properties will be shared amongst objects that implement the mixin.\nIf you want to define a property in a mixin that is not shared, you can define\nit either as a computed property or have it be created on initialization of the object.\n\n```javascript\n// filters array will be shared amongst any object implementing mixin\nimport Mixin from '@ember/object/mixin';\nimport { A } from '@ember/array';\n\nconst FilterableMixin = Mixin.create({\n filters: A()\n});\n```\n\n```javascript\nimport Mixin from '@ember/object/mixin';\nimport { A } from '@ember/array';\nimport { computed } from '@ember/object';\n\n// filters will be a separate array for every object implementing the mixin\nconst FilterableMixin = Mixin.create({\n filters: computed(function() {\n return A();\n })\n});\n```\n\n```javascript\nimport Mixin from '@ember/object/mixin';\nimport { A } from '@ember/array';\n\n// filters will be created as a separate array during the object's initialization\nconst Filterable = Mixin.create({\n filters: null,\n\n init() {\n this._super(...arguments);\n this.set(\"filters\", A());\n }\n});\n```",
|
|
3967
3966
|
"access": "public",
|
|
3968
3967
|
"tagname": ""
|
|
@@ -4008,7 +4007,7 @@
|
|
|
4008
4007
|
"module": "@ember/object/promise-proxy-mixin",
|
|
4009
4008
|
"namespace": "",
|
|
4010
4009
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
4011
|
-
"line":
|
|
4010
|
+
"line": 46,
|
|
4012
4011
|
"description": "A low level mixin making ObjectProxy promise-aware.\n\n```javascript\nimport { resolve } from 'rsvp';\nimport $ from 'jquery';\nimport ObjectProxy from '@ember/object/proxy';\nimport PromiseProxyMixin from '@ember/object/promise-proxy-mixin';\n\nlet ObjectPromiseProxy = ObjectProxy.extend(PromiseProxyMixin);\n\nlet proxy = ObjectPromiseProxy.create({\n promise: resolve($.getJSON('/some/remote/data.json'))\n});\n\nproxy.then(function(json){\n // the json\n}, function(reason) {\n // the reason why you have no json\n});\n```\n\nthe proxy has bindable attributes which\ntrack the promises life cycle\n\n```javascript\nproxy.get('isPending') //=> true\nproxy.get('isSettled') //=> false\nproxy.get('isRejected') //=> false\nproxy.get('isFulfilled') //=> false\n```\n\nWhen the $.getJSON completes, and the promise is fulfilled\nwith json, the life cycle attributes will update accordingly.\nNote that $.getJSON doesn't return an ECMA specified promise,\nit is useful to wrap this with an `RSVP.resolve` so that it behaves\nas a spec compliant promise.\n\n```javascript\nproxy.get('isPending') //=> false\nproxy.get('isSettled') //=> true\nproxy.get('isRejected') //=> false\nproxy.get('isFulfilled') //=> true\n```\n\nAs the proxy is an ObjectProxy, and the json now its content,\nall the json properties will be available directly from the proxy.\n\n```javascript\n// Assuming the following json:\n{\n firstName: 'Stefan',\n lastName: 'Penner'\n}\n\n// both properties will accessible on the proxy\nproxy.get('firstName') //=> 'Stefan'\nproxy.get('lastName') //=> 'Penner'\n```",
|
|
4013
4012
|
"access": "public",
|
|
4014
4013
|
"tagname": ""
|
|
@@ -4258,7 +4257,7 @@
|
|
|
4258
4257
|
"module": "@ember/routing/router",
|
|
4259
4258
|
"namespace": "",
|
|
4260
4259
|
"file": "packages/@ember/routing/router.ts",
|
|
4261
|
-
"line":
|
|
4260
|
+
"line": 145,
|
|
4262
4261
|
"description": "The `EmberRouter` class manages the application state and URLs. Refer to\nthe [routing guide](https://guides.emberjs.com/release/routing/) for documentation.",
|
|
4263
4262
|
"extends": "EmberObject",
|
|
4264
4263
|
"uses": [
|
|
@@ -6980,7 +6979,7 @@
|
|
|
6980
6979
|
},
|
|
6981
6980
|
{
|
|
6982
6981
|
"file": "packages/@ember/-internals/metal/lib/computed.ts",
|
|
6983
|
-
"line":
|
|
6982
|
+
"line": 606,
|
|
6984
6983
|
"description": "Call on a computed property to set it into read-only mode. When in this\nmode the computed property will throw an error when set.\n\nExample:\n\n```javascript\nimport { computed, set } from '@ember/object';\n\nclass Person {\n @computed().readOnly()\n get guid() {\n return 'guid-guid-guid';\n }\n}\n\nlet person = new Person();\nset(person, 'guid', 'new-guid'); // will throw an exception\n```\n\nClassic Class Example:\n\n```javascript\nimport EmberObject, { computed } from '@ember/object';\n\nlet Person = EmberObject.extend({\n guid: computed(function() {\n return 'guid-guid-guid';\n }).readOnly()\n});\n\nlet person = Person.create();\nperson.set('guid', 'new-guid'); // will throw an exception\n```",
|
|
6985
6984
|
"itemtype": "method",
|
|
6986
6985
|
"name": "readOnly",
|
|
@@ -6996,7 +6995,7 @@
|
|
|
6996
6995
|
},
|
|
6997
6996
|
{
|
|
6998
6997
|
"file": "packages/@ember/-internals/metal/lib/computed.ts",
|
|
6999
|
-
"line":
|
|
6998
|
+
"line": 656,
|
|
7000
6999
|
"description": "In some cases, you may want to annotate computed properties with additional\nmetadata about how they function or what values they operate on. For example,\ncomputed property functions may close over variables that are then no longer\navailable for introspection. You can pass a hash of these values to a\ncomputed property.\n\nExample:\n\n```javascript\nimport { computed } from '@ember/object';\nimport Person from 'my-app/utils/person';\n\nclass Store {\n @computed().meta({ type: Person })\n get person() {\n let personId = this.personId;\n return Person.create({ id: personId });\n }\n}\n```\n\nClassic Class Example:\n\n```javascript\nimport { computed } from '@ember/object';\nimport Person from 'my-app/utils/person';\n\nconst Store = EmberObject.extend({\n person: computed(function() {\n let personId = this.get('personId');\n return Person.create({ id: personId });\n }).meta({ type: Person })\n});\n```\n\nThe hash that you pass to the `meta()` function will be saved on the\ncomputed property descriptor under the `_meta` key. Ember runtime\nexposes a public API for retrieving these values from classes,\nvia the `metaForProperty()` function.",
|
|
7001
7000
|
"itemtype": "method",
|
|
7002
7001
|
"name": "meta",
|
|
@@ -7015,19 +7014,19 @@
|
|
|
7015
7014
|
},
|
|
7016
7015
|
{
|
|
7017
7016
|
"file": "packages/@ember/-internals/metal/lib/computed.ts",
|
|
7018
|
-
"line":
|
|
7017
|
+
"line": 715,
|
|
7019
7018
|
"class": "ComputedProperty",
|
|
7020
7019
|
"module": "@ember/object"
|
|
7021
7020
|
},
|
|
7022
7021
|
{
|
|
7023
7022
|
"file": "packages/@ember/-internals/metal/lib/computed.ts",
|
|
7024
|
-
"line":
|
|
7023
|
+
"line": 721,
|
|
7025
7024
|
"class": "ComputedProperty",
|
|
7026
7025
|
"module": "@ember/object"
|
|
7027
7026
|
},
|
|
7028
7027
|
{
|
|
7029
7028
|
"file": "packages/@ember/-internals/metal/lib/computed.ts",
|
|
7030
|
-
"line":
|
|
7029
|
+
"line": 729,
|
|
7031
7030
|
"description": "This helper returns a new property descriptor that wraps the passed\ncomputed property function. You can use this helper to define properties with\nnative decorator syntax, mixins, or via `defineProperty()`.\n\nExample:\n\n```js\nimport { computed, set } from '@ember/object';\n\nclass Person {\n constructor() {\n this.firstName = 'Betty';\n this.lastName = 'Jones';\n },\n\n @computed('firstName', 'lastName')\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n}\n\nlet client = new Person();\n\nclient.fullName; // 'Betty Jones'\n\nset(client, 'lastName', 'Fuller');\nclient.fullName; // 'Betty Fuller'\n```\n\nClassic Class Example:\n\n```js\nimport EmberObject, { computed } from '@ember/object';\n\nlet Person = EmberObject.extend({\n init() {\n this._super(...arguments);\n\n this.firstName = 'Betty';\n this.lastName = 'Jones';\n },\n\n fullName: computed('firstName', 'lastName', function() {\n return `${this.get('firstName')} ${this.get('lastName')}`;\n })\n});\n\nlet client = Person.create();\n\nclient.get('fullName'); // 'Betty Jones'\n\nclient.set('lastName', 'Fuller');\nclient.get('fullName'); // 'Betty Fuller'\n```\n\nYou can also provide a setter, either directly on the class using native class\nsyntax, or by passing a hash with `get` and `set` functions.\n\nExample:\n\n```js\nimport { computed, set } from '@ember/object';\n\nclass Person {\n constructor() {\n this.firstName = 'Betty';\n this.lastName = 'Jones';\n },\n\n @computed('firstName', 'lastName')\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n\n set fullName(value) {\n let [firstName, lastName] = value.split(/\\s+/);\n\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n\n return value;\n }\n}\n\nlet client = new Person();\n\nclient.fullName; // 'Betty Jones'\n\nset(client, 'lastName', 'Fuller');\nclient.fullName; // 'Betty Fuller'\n```\n\nClassic Class Example:\n\n```js\nimport EmberObject, { computed } from '@ember/object';\n\nlet Person = EmberObject.extend({\n init() {\n this._super(...arguments);\n\n this.firstName = 'Betty';\n this.lastName = 'Jones';\n },\n\n fullName: computed('firstName', 'lastName', {\n get(key) {\n return `${this.get('firstName')} ${this.get('lastName')}`;\n },\n set(key, value) {\n let [firstName, lastName] = value.split(/\\s+/);\n this.setProperties({ firstName, lastName });\n return value;\n }\n })\n});\n\nlet client = Person.create();\nclient.get('firstName'); // 'Betty'\n\nclient.set('fullName', 'Carroll Fuller');\nclient.get('firstName'); // 'Carroll'\n```\n\nWhen passed as an argument, the `set` function should accept two parameters,\n`key` and `value`. The value returned from `set` will be the new value of the\nproperty.\n\n_Note: This is the preferred way to define computed properties when writing third-party\nlibraries that depend on or use Ember, since there is no guarantee that the user\nwill have [prototype Extensions](https://guides.emberjs.com/release/configuring-ember/disabling-prototype-extensions/) enabled._",
|
|
7032
7031
|
"itemtype": "method",
|
|
7033
7032
|
"name": "computed",
|
|
@@ -7056,7 +7055,7 @@
|
|
|
7056
7055
|
},
|
|
7057
7056
|
{
|
|
7058
7057
|
"file": "packages/@ember/-internals/metal/lib/computed.ts",
|
|
7059
|
-
"line":
|
|
7058
|
+
"line": 917,
|
|
7060
7059
|
"description": "Allows checking if a given property on an object is a computed property. For the most part,\nthis doesn't matter (you would normally just access the property directly and use its value),\nbut for some tooling specific scenarios (e.g. the ember-inspector) it is important to\ndifferentiate if a property is a computed property or a \"normal\" property.\n\nThis will work on either a class's prototype or an instance itself.",
|
|
7061
7060
|
"static": 1,
|
|
7062
7061
|
"itemtype": "method",
|
|
@@ -7570,7 +7569,7 @@
|
|
|
7570
7569
|
},
|
|
7571
7570
|
{
|
|
7572
7571
|
"file": "packages/@ember/-internals/metal/lib/property_get.ts",
|
|
7573
|
-
"line":
|
|
7572
|
+
"line": 51,
|
|
7574
7573
|
"description": "Gets the value of a property on an object. If the property is computed,\nthe function will be invoked. If the property is not defined but the\nobject implements the `unknownProperty` method then that will be invoked.\n\n```javascript\nimport { get } from '@ember/object';\nget(obj, \"name\");\n```\n\nIf you plan to run on IE8 and older browsers then you should use this\nmethod anytime you want to retrieve a property on an object that you don't\nknow for sure is private. (Properties beginning with an underscore '_'\nare considered private.)\n\nOn all newer browsers, you only need to use this method to retrieve\nproperties if the property might not be defined on the object and you want\nto respect the `unknownProperty` handler. Otherwise you can ignore this\nmethod.\n\nNote that if the object itself is `undefined`, this method will throw\nan error.",
|
|
7575
7574
|
"itemtype": "method",
|
|
7576
7575
|
"name": "get",
|
|
@@ -7598,7 +7597,7 @@
|
|
|
7598
7597
|
},
|
|
7599
7598
|
{
|
|
7600
7599
|
"file": "packages/@ember/-internals/metal/lib/property_set.ts",
|
|
7601
|
-
"line":
|
|
7600
|
+
"line": 17,
|
|
7602
7601
|
"description": "Sets the value of a property on an object, respecting computed properties\nand notifying observers and other listeners of the change.\nIf the specified property is not defined on the object and the object\nimplements the `setUnknownProperty` method, then instead of setting the\nvalue of the property on the object, its `setUnknownProperty` handler\nwill be invoked with the two parameters `keyName` and `value`.\n\n```javascript\nimport { set } from '@ember/object';\nset(obj, \"name\", value);\n```",
|
|
7603
7602
|
"itemtype": "method",
|
|
7604
7603
|
"name": "set",
|
|
@@ -7631,7 +7630,7 @@
|
|
|
7631
7630
|
},
|
|
7632
7631
|
{
|
|
7633
7632
|
"file": "packages/@ember/-internals/metal/lib/property_set.ts",
|
|
7634
|
-
"line":
|
|
7633
|
+
"line": 121,
|
|
7635
7634
|
"description": "Error-tolerant form of `set`. Will not blow up if any part of the\nchain is `undefined`, `null`, or destroyed.\n\nThis is primarily used when syncing bindings, which may try to update after\nan object has been destroyed.\n\n```javascript\nimport { trySet } from '@ember/object';\n\nlet obj = { name: \"Zoey\" };\ntrySet(obj, \"contacts.twitter\", \"@emberjs\");\n```",
|
|
7636
7635
|
"itemtype": "method",
|
|
7637
7636
|
"name": "trySet",
|
|
@@ -8550,30 +8549,6 @@
|
|
|
8550
8549
|
"class": "@ember/object/internals",
|
|
8551
8550
|
"module": "@ember/object"
|
|
8552
8551
|
},
|
|
8553
|
-
{
|
|
8554
|
-
"file": "packages/@ember/-internals/utils/lib/inspect.ts",
|
|
8555
|
-
"line": 15,
|
|
8556
|
-
"description": "Convenience method to inspect an object. This method will attempt to\nconvert the object into a useful string description.\n\nIt is a pretty simple implementation. If you want something more robust,\nuse something like JSDump: https://github.com/NV/jsDump",
|
|
8557
|
-
"itemtype": "method",
|
|
8558
|
-
"name": "inspect",
|
|
8559
|
-
"static": 1,
|
|
8560
|
-
"params": [
|
|
8561
|
-
{
|
|
8562
|
-
"name": "obj",
|
|
8563
|
-
"description": "The object you want to inspect.",
|
|
8564
|
-
"type": "Object"
|
|
8565
|
-
}
|
|
8566
|
-
],
|
|
8567
|
-
"return": {
|
|
8568
|
-
"description": "A description of the object",
|
|
8569
|
-
"type": "String"
|
|
8570
|
-
},
|
|
8571
|
-
"since": "1.4.0",
|
|
8572
|
-
"access": "private",
|
|
8573
|
-
"tagname": "",
|
|
8574
|
-
"class": "Ember",
|
|
8575
|
-
"module": "@ember/debug"
|
|
8576
|
-
},
|
|
8577
8552
|
{
|
|
8578
8553
|
"file": "packages/@ember/-internals/utils/lib/intern.ts",
|
|
8579
8554
|
"line": 1,
|
|
@@ -8585,7 +8560,7 @@
|
|
|
8585
8560
|
"type": "String"
|
|
8586
8561
|
},
|
|
8587
8562
|
"class": "Ember",
|
|
8588
|
-
"module": "@ember/
|
|
8563
|
+
"module": "@ember/object"
|
|
8589
8564
|
},
|
|
8590
8565
|
{
|
|
8591
8566
|
"file": "packages/@ember/-internals/utils/lib/invoke.ts",
|
|
@@ -8612,30 +8587,7 @@
|
|
|
8612
8587
|
"access": "private",
|
|
8613
8588
|
"tagname": "",
|
|
8614
8589
|
"class": "Ember",
|
|
8615
|
-
"module": "@ember/
|
|
8616
|
-
},
|
|
8617
|
-
{
|
|
8618
|
-
"file": "packages/@ember/-internals/utils/lib/make-array.ts",
|
|
8619
|
-
"line": 5,
|
|
8620
|
-
"description": "Forces the passed object to be part of an array. If the object is already\nan array, it will return the object. Otherwise, it will add the object to\nan array. If object is `null` or `undefined`, it will return an empty array.\n\n```javascript\nimport { makeArray } from '@ember/array';\nimport ArrayProxy from '@ember/array/proxy';\n\nmakeArray(); // []\nmakeArray(null); // []\nmakeArray(undefined); // []\nmakeArray('lindsay'); // ['lindsay']\nmakeArray([1, 2, 42]); // [1, 2, 42]\n\nlet proxy = ArrayProxy.create({ content: [] });\n\nmakeArray(proxy) === proxy; // false\n```",
|
|
8621
|
-
"itemtype": "method",
|
|
8622
|
-
"name": "makeArray",
|
|
8623
|
-
"static": 1,
|
|
8624
|
-
"params": [
|
|
8625
|
-
{
|
|
8626
|
-
"name": "obj",
|
|
8627
|
-
"description": "the object",
|
|
8628
|
-
"type": "Object"
|
|
8629
|
-
}
|
|
8630
|
-
],
|
|
8631
|
-
"return": {
|
|
8632
|
-
"description": "",
|
|
8633
|
-
"type": "Array"
|
|
8634
|
-
},
|
|
8635
|
-
"access": "private",
|
|
8636
|
-
"tagname": "",
|
|
8637
|
-
"class": "@ember/array",
|
|
8638
|
-
"module": "@ember/array"
|
|
8590
|
+
"module": "@ember/object"
|
|
8639
8591
|
},
|
|
8640
8592
|
{
|
|
8641
8593
|
"file": "packages/@ember/-internals/utils/lib/spec.ts",
|
|
@@ -8646,7 +8598,7 @@
|
|
|
8646
8598
|
"itemtype": "method",
|
|
8647
8599
|
"name": "isObject",
|
|
8648
8600
|
"class": "Ember",
|
|
8649
|
-
"module": "@ember/
|
|
8601
|
+
"module": "@ember/utils"
|
|
8650
8602
|
},
|
|
8651
8603
|
{
|
|
8652
8604
|
"file": "packages/@ember/-internals/utils/lib/super.ts",
|
|
@@ -8673,7 +8625,7 @@
|
|
|
8673
8625
|
"type": "Function"
|
|
8674
8626
|
},
|
|
8675
8627
|
"class": "Ember",
|
|
8676
|
-
"module": "@ember/
|
|
8628
|
+
"module": "@ember/utils"
|
|
8677
8629
|
},
|
|
8678
8630
|
{
|
|
8679
8631
|
"file": "packages/@ember/-internals/views/lib/mixins/child_views_support.ts",
|
|
@@ -9910,6 +9862,29 @@
|
|
|
9910
9862
|
"module": "@ember/application",
|
|
9911
9863
|
"namespace": "ApplicationInstance"
|
|
9912
9864
|
},
|
|
9865
|
+
{
|
|
9866
|
+
"file": "packages/@ember/array/lib/make-array.ts",
|
|
9867
|
+
"line": 5,
|
|
9868
|
+
"description": "Forces the passed object to be part of an array. If the object is already\nan array, it will return the object. Otherwise, it will add the object to\nan array. If object is `null` or `undefined`, it will return an empty array.\n\n```javascript\nimport { makeArray } from '@ember/array';\nimport ArrayProxy from '@ember/array/proxy';\n\nmakeArray(); // []\nmakeArray(null); // []\nmakeArray(undefined); // []\nmakeArray('lindsay'); // ['lindsay']\nmakeArray([1, 2, 42]); // [1, 2, 42]\n\nlet proxy = ArrayProxy.create({ content: [] });\n\nmakeArray(proxy) === proxy; // false\n```",
|
|
9869
|
+
"itemtype": "method",
|
|
9870
|
+
"name": "makeArray",
|
|
9871
|
+
"static": 1,
|
|
9872
|
+
"params": [
|
|
9873
|
+
{
|
|
9874
|
+
"name": "obj",
|
|
9875
|
+
"description": "the object",
|
|
9876
|
+
"type": "Object"
|
|
9877
|
+
}
|
|
9878
|
+
],
|
|
9879
|
+
"return": {
|
|
9880
|
+
"description": "",
|
|
9881
|
+
"type": "Array"
|
|
9882
|
+
},
|
|
9883
|
+
"access": "private",
|
|
9884
|
+
"tagname": "",
|
|
9885
|
+
"class": "@ember/array",
|
|
9886
|
+
"module": "@ember/array"
|
|
9887
|
+
},
|
|
9913
9888
|
{
|
|
9914
9889
|
"file": "packages/@ember/array/index.ts",
|
|
9915
9890
|
"line": 140,
|
|
@@ -11370,7 +11345,7 @@
|
|
|
11370
11345
|
},
|
|
11371
11346
|
{
|
|
11372
11347
|
"file": "packages/@ember/canary-features/index.ts",
|
|
11373
|
-
"line":
|
|
11348
|
+
"line": 30,
|
|
11374
11349
|
"description": "Determine whether the specified `feature` is enabled. Used by Ember's\nbuild tools to exclude experimental features from beta/stable builds.\n\nYou can define the following configuration options:\n\n* `EmberENV.ENABLE_OPTIONAL_FEATURES` - enable any features that have not been explicitly\n enabled/disabled.",
|
|
11375
11350
|
"itemtype": "method",
|
|
11376
11351
|
"name": "isEnabled",
|
|
@@ -11680,6 +11655,30 @@
|
|
|
11680
11655
|
"class": "@ember/debug",
|
|
11681
11656
|
"module": "@ember/debug"
|
|
11682
11657
|
},
|
|
11658
|
+
{
|
|
11659
|
+
"file": "packages/@ember/debug/lib/inspect.ts",
|
|
11660
|
+
"line": 15,
|
|
11661
|
+
"description": "Convenience method to inspect an object. This method will attempt to\nconvert the object into a useful string description.\n\nIt is a pretty simple implementation. If you want something more robust,\nuse something like JSDump: https://github.com/NV/jsDump",
|
|
11662
|
+
"itemtype": "method",
|
|
11663
|
+
"name": "inspect",
|
|
11664
|
+
"static": 1,
|
|
11665
|
+
"params": [
|
|
11666
|
+
{
|
|
11667
|
+
"name": "obj",
|
|
11668
|
+
"description": "The object you want to inspect.",
|
|
11669
|
+
"type": "Object"
|
|
11670
|
+
}
|
|
11671
|
+
],
|
|
11672
|
+
"return": {
|
|
11673
|
+
"description": "A description of the object",
|
|
11674
|
+
"type": "String"
|
|
11675
|
+
},
|
|
11676
|
+
"since": "1.4.0",
|
|
11677
|
+
"access": "private",
|
|
11678
|
+
"tagname": "",
|
|
11679
|
+
"class": "@ember/debug",
|
|
11680
|
+
"module": "@ember/debug"
|
|
11681
|
+
},
|
|
11683
11682
|
{
|
|
11684
11683
|
"file": "packages/@ember/debug/lib/warn.ts",
|
|
11685
11684
|
"line": 24,
|
|
@@ -12186,7 +12185,7 @@
|
|
|
12186
12185
|
},
|
|
12187
12186
|
{
|
|
12188
12187
|
"file": "packages/@ember/debug/index.ts",
|
|
12189
|
-
"line":
|
|
12188
|
+
"line": 134,
|
|
12190
12189
|
"description": "Verify that a certain expectation is met, or throw a exception otherwise.\n\nThis is useful for communicating assumptions in the code to other human\nreaders as well as catching bugs that accidentally violates these\nexpectations.\n\nAssertions are removed from production builds, so they can be freely added\nfor documentation and debugging purposes without worries of incuring any\nperformance penalty. However, because of that, they should not be used for\nchecks that could reasonably fail during normal usage. Furthermore, care\nshould be taken to avoid accidentally relying on side-effects produced from\nevaluating the condition itself, since the code will not run in production.\n\n```javascript\nimport { assert } from '@ember/debug';\n\n// Test for truthiness\nassert('Must pass a string', typeof str === 'string');\n\n// Fail unconditionally\nassert('This code path should never be run');\n```",
|
|
12191
12190
|
"itemtype": "method",
|
|
12192
12191
|
"name": "assert",
|
|
@@ -12211,7 +12210,7 @@
|
|
|
12211
12210
|
},
|
|
12212
12211
|
{
|
|
12213
12212
|
"file": "packages/@ember/debug/index.ts",
|
|
12214
|
-
"line":
|
|
12213
|
+
"line": 174,
|
|
12215
12214
|
"description": "Display a debug notice.\n\nCalls to this function are not invoked in production builds.\n\n```javascript\nimport { debug } from '@ember/debug';\n\ndebug('I\\'m a debug notice!');\n```",
|
|
12216
12215
|
"itemtype": "method",
|
|
12217
12216
|
"name": "debug",
|
|
@@ -12230,7 +12229,7 @@
|
|
|
12230
12229
|
},
|
|
12231
12230
|
{
|
|
12232
12231
|
"file": "packages/@ember/debug/index.ts",
|
|
12233
|
-
"line":
|
|
12232
|
+
"line": 195,
|
|
12234
12233
|
"description": "Display an info notice.\n\nCalls to this function are removed from production builds, so they can be\nfreely added for documentation and debugging purposes without worries of\nincuring any performance penalty.",
|
|
12235
12234
|
"itemtype": "method",
|
|
12236
12235
|
"name": "info",
|
|
@@ -12241,7 +12240,7 @@
|
|
|
12241
12240
|
},
|
|
12242
12241
|
{
|
|
12243
12242
|
"file": "packages/@ember/debug/index.ts",
|
|
12244
|
-
"line":
|
|
12243
|
+
"line": 214,
|
|
12245
12244
|
"description": "Alias an old, deprecated method with its new counterpart.\n\nDisplay a deprecation warning with the provided message and a stack trace\n(Chrome and Firefox only) when the assigned method is called.\n\nCalls to this function are removed from production builds, so they can be\nfreely added for documentation and debugging purposes without worries of\nincuring any performance penalty.\n\n```javascript\nimport { deprecateFunc } from '@ember/debug';\n\nEmber.oldMethod = deprecateFunc('Please use the new, updated method', options, Ember.newMethod);\n```",
|
|
12246
12245
|
"itemtype": "method",
|
|
12247
12246
|
"name": "deprecateFunc",
|
|
@@ -12275,7 +12274,7 @@
|
|
|
12275
12274
|
},
|
|
12276
12275
|
{
|
|
12277
12276
|
"file": "packages/@ember/debug/index.ts",
|
|
12278
|
-
"line":
|
|
12277
|
+
"line": 259,
|
|
12279
12278
|
"description": "Run a function meant for debugging.\n\nCalls to this function are removed from production builds, so they can be\nfreely added for documentation and debugging purposes without worries of\nincuring any performance penalty.\n\n```javascript\nimport Component from '@ember/component';\nimport { runInDebug } from '@ember/debug';\n\nrunInDebug(() => {\n Component.reopen({\n didInsertElement() {\n console.log(\"I'm happy\");\n }\n });\n});\n```",
|
|
12280
12279
|
"itemtype": "method",
|
|
12281
12280
|
"name": "runInDebug",
|
|
@@ -12696,7 +12695,7 @@
|
|
|
12696
12695
|
},
|
|
12697
12696
|
{
|
|
12698
12697
|
"file": "packages/@ember/engine/instance.ts",
|
|
12699
|
-
"line":
|
|
12698
|
+
"line": 58,
|
|
12700
12699
|
"access": "private",
|
|
12701
12700
|
"tagname": "",
|
|
12702
12701
|
"itemtype": "method",
|
|
@@ -12718,7 +12717,7 @@
|
|
|
12718
12717
|
},
|
|
12719
12718
|
{
|
|
12720
12719
|
"file": "packages/@ember/engine/instance.ts",
|
|
12721
|
-
"line":
|
|
12720
|
+
"line": 70,
|
|
12722
12721
|
"description": "The base `Engine` for which this is an instance.",
|
|
12723
12722
|
"itemtype": "property",
|
|
12724
12723
|
"name": "engine",
|
|
@@ -12730,7 +12729,7 @@
|
|
|
12730
12729
|
},
|
|
12731
12730
|
{
|
|
12732
12731
|
"file": "packages/@ember/engine/instance.ts",
|
|
12733
|
-
"line":
|
|
12732
|
+
"line": 109,
|
|
12734
12733
|
"description": "Initialize the `EngineInstance` and return a promise that resolves\nwith the instance itself when the boot process is complete.\n\nThe primary task here is to run any registered instance initializers.\n\nSee the documentation on `BootOptions` for the options it takes.",
|
|
12735
12734
|
"access": "public",
|
|
12736
12735
|
"tagname": "",
|
|
@@ -12752,7 +12751,7 @@
|
|
|
12752
12751
|
},
|
|
12753
12752
|
{
|
|
12754
12753
|
"file": "packages/@ember/engine/instance.ts",
|
|
12755
|
-
"line":
|
|
12754
|
+
"line": 134,
|
|
12756
12755
|
"description": "Unfortunately, a lot of existing code assumes booting an instance is\nsynchronous – specifically, a lot of tests assume the last call to\n`app.advanceReadiness()` or `app.reset()` will result in a new instance\nbeing fully-booted when the current runloop completes.\n\nWe would like new code (like the `visit` API) to stop making this\nassumption, so we created the asynchronous version above that returns a\npromise. But until we have migrated all the code, we would have to expose\nthis method for use *internally* in places where we need to boot an instance\nsynchronously.",
|
|
12757
12756
|
"access": "private",
|
|
12758
12757
|
"tagname": "",
|
|
@@ -12761,7 +12760,7 @@
|
|
|
12761
12760
|
},
|
|
12762
12761
|
{
|
|
12763
12762
|
"file": "packages/@ember/engine/instance.ts",
|
|
12764
|
-
"line":
|
|
12763
|
+
"line": 175,
|
|
12765
12764
|
"description": "Unregister a factory.\n\nOverrides `RegistryProxy#unregister` in order to clear any cached instances\nof the unregistered factory.",
|
|
12766
12765
|
"access": "public",
|
|
12767
12766
|
"tagname": "",
|
|
@@ -12779,7 +12778,7 @@
|
|
|
12779
12778
|
},
|
|
12780
12779
|
{
|
|
12781
12780
|
"file": "packages/@ember/engine/instance.ts",
|
|
12782
|
-
"line":
|
|
12781
|
+
"line": 192,
|
|
12783
12782
|
"description": "Build a new `EngineInstance` that's a child of this instance.\n\nEngines must be registered by name with their parent engine\n(or application).",
|
|
12784
12783
|
"access": "private",
|
|
12785
12784
|
"tagname": "",
|
|
@@ -12806,7 +12805,7 @@
|
|
|
12806
12805
|
},
|
|
12807
12806
|
{
|
|
12808
12807
|
"file": "packages/@ember/engine/instance.ts",
|
|
12809
|
-
"line":
|
|
12808
|
+
"line": 222,
|
|
12810
12809
|
"description": "Clone dependencies shared between an engine instance and its parent.",
|
|
12811
12810
|
"access": "private",
|
|
12812
12811
|
"tagname": "",
|
|
@@ -12904,7 +12903,7 @@
|
|
|
12904
12903
|
},
|
|
12905
12904
|
{
|
|
12906
12905
|
"file": "packages/@ember/instrumentation/index.ts",
|
|
12907
|
-
"line":
|
|
12906
|
+
"line": 120,
|
|
12908
12907
|
"description": "Notifies event's subscribers, calls `before` and `after` hooks.",
|
|
12909
12908
|
"itemtype": "method",
|
|
12910
12909
|
"name": "instrument",
|
|
@@ -12939,7 +12938,7 @@
|
|
|
12939
12938
|
},
|
|
12940
12939
|
{
|
|
12941
12940
|
"file": "packages/@ember/instrumentation/index.ts",
|
|
12942
|
-
"line":
|
|
12941
|
+
"line": 273,
|
|
12943
12942
|
"description": "Subscribes to a particular event or instrumented block of code.",
|
|
12944
12943
|
"itemtype": "method",
|
|
12945
12944
|
"name": "subscribe",
|
|
@@ -12969,7 +12968,7 @@
|
|
|
12969
12968
|
},
|
|
12970
12969
|
{
|
|
12971
12970
|
"file": "packages/@ember/instrumentation/index.ts",
|
|
12972
|
-
"line":
|
|
12971
|
+
"line": 313,
|
|
12973
12972
|
"description": "Unsubscribes from a particular event or instrumented block of code.",
|
|
12974
12973
|
"itemtype": "method",
|
|
12975
12974
|
"name": "unsubscribe",
|
|
@@ -12989,7 +12988,7 @@
|
|
|
12989
12988
|
},
|
|
12990
12989
|
{
|
|
12991
12990
|
"file": "packages/@ember/instrumentation/index.ts",
|
|
12992
|
-
"line":
|
|
12991
|
+
"line": 336,
|
|
12993
12992
|
"description": "Resets `Instrumentation` by flushing list of subscribers.",
|
|
12994
12993
|
"itemtype": "method",
|
|
12995
12994
|
"name": "reset",
|
|
@@ -13894,19 +13893,19 @@
|
|
|
13894
13893
|
},
|
|
13895
13894
|
{
|
|
13896
13895
|
"file": "packages/@ember/object/core.ts",
|
|
13897
|
-
"line":
|
|
13896
|
+
"line": 234,
|
|
13898
13897
|
"class": "CoreObject",
|
|
13899
13898
|
"module": "@ember/object/core"
|
|
13900
13899
|
},
|
|
13901
13900
|
{
|
|
13902
13901
|
"file": "packages/@ember/object/core.ts",
|
|
13903
|
-
"line":
|
|
13902
|
+
"line": 238,
|
|
13904
13903
|
"class": "CoreObject",
|
|
13905
13904
|
"module": "@ember/object/core"
|
|
13906
13905
|
},
|
|
13907
13906
|
{
|
|
13908
13907
|
"file": "packages/@ember/object/core.ts",
|
|
13909
|
-
"line":
|
|
13908
|
+
"line": 319,
|
|
13910
13909
|
"description": "An overridable method called when objects are instantiated. By default,\ndoes nothing unless it is overridden during class definition.\n\nExample:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend({\n init() {\n alert(`Name is ${this.get('name')}`);\n }\n});\n\nlet steve = Person.create({\n name: 'Steve'\n});\n\n// alerts 'Name is Steve'.\n```\n\nNOTE: If you do override `init` for a framework class like `Component`\nfrom `@ember/component`, be sure to call `this._super(...arguments)`\nin your `init` declaration!\nIf you don't, Ember may not have an opportunity to\ndo important setup work, and you'll see strange behavior in your\napplication.",
|
|
13911
13910
|
"itemtype": "method",
|
|
13912
13911
|
"name": "init",
|
|
@@ -13917,7 +13916,7 @@
|
|
|
13917
13916
|
},
|
|
13918
13917
|
{
|
|
13919
13918
|
"file": "packages/@ember/object/core.ts",
|
|
13920
|
-
"line":
|
|
13919
|
+
"line": 353,
|
|
13921
13920
|
"description": "Defines the properties that will be concatenated from the superclass\n(instead of overridden).\n\nBy default, when you extend an Ember class a property defined in\nthe subclass overrides a property with the same name that is defined\nin the superclass. However, there are some cases where it is preferable\nto build up a property's value by combining the superclass' property\nvalue with the subclass' value. An example of this in use within Ember\nis the `classNames` property of `Component` from `@ember/component`.\n\nHere is some sample code showing the difference between a concatenated\nproperty and a normal one:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Bar = EmberObject.extend({\n // Configure which properties to concatenate\n concatenatedProperties: ['concatenatedProperty'],\n\n someNonConcatenatedProperty: ['bar'],\n concatenatedProperty: ['bar']\n});\n\nconst FooBar = Bar.extend({\n someNonConcatenatedProperty: ['foo'],\n concatenatedProperty: ['foo']\n});\n\nlet fooBar = FooBar.create();\nfooBar.get('someNonConcatenatedProperty'); // ['foo']\nfooBar.get('concatenatedProperty'); // ['bar', 'foo']\n```\n\nThis behavior extends to object creation as well. Continuing the\nabove example:\n\n```javascript\nlet fooBar = FooBar.create({\n someNonConcatenatedProperty: ['baz'],\n concatenatedProperty: ['baz']\n})\nfooBar.get('someNonConcatenatedProperty'); // ['baz']\nfooBar.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n```\n\nAdding a single property that is not an array will just add it in the array:\n\n```javascript\nlet fooBar = FooBar.create({\n concatenatedProperty: 'baz'\n})\nview.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n```\n\nUsing the `concatenatedProperties` property, we can tell Ember to mix the\ncontent of the properties.\n\nIn `Component` the `classNames`, `classNameBindings` and\n`attributeBindings` properties are concatenated.\n\nThis feature is available for you to use throughout the Ember object model,\nalthough typical app developers are likely to use it infrequently. Since\nit changes expectations about behavior of properties, you should properly\ndocument its usage in each individual concatenated property (to not\nmislead your users to think they can override the property in a subclass).",
|
|
13922
13921
|
"itemtype": "property",
|
|
13923
13922
|
"name": "concatenatedProperties",
|
|
@@ -13930,7 +13929,7 @@
|
|
|
13930
13929
|
},
|
|
13931
13930
|
{
|
|
13932
13931
|
"file": "packages/@ember/object/core.ts",
|
|
13933
|
-
"line":
|
|
13932
|
+
"line": 427,
|
|
13934
13933
|
"description": "Defines the properties that will be merged from the superclass\n(instead of overridden).\n\nBy default, when you extend an Ember class a property defined in\nthe subclass overrides a property with the same name that is defined\nin the superclass. However, there are some cases where it is preferable\nto build up a property's value by merging the superclass property value\nwith the subclass property's value. An example of this in use within Ember\nis the `queryParams` property of routes.\n\nHere is some sample code showing the difference between a merged\nproperty and a normal one:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Bar = EmberObject.extend({\n // Configure which properties are to be merged\n mergedProperties: ['mergedProperty'],\n\n someNonMergedProperty: {\n nonMerged: 'superclass value of nonMerged'\n },\n mergedProperty: {\n page: { replace: false },\n limit: { replace: true }\n }\n});\n\nconst FooBar = Bar.extend({\n someNonMergedProperty: {\n completelyNonMerged: 'subclass value of nonMerged'\n },\n mergedProperty: {\n limit: { replace: false }\n }\n});\n\nlet fooBar = FooBar.create();\n\nfooBar.get('someNonMergedProperty');\n// => { completelyNonMerged: 'subclass value of nonMerged' }\n//\n// Note the entire object, including the nonMerged property of\n// the superclass object, has been replaced\n\nfooBar.get('mergedProperty');\n// => {\n// page: {replace: false},\n// limit: {replace: false}\n// }\n//\n// Note the page remains from the superclass, and the\n// `limit` property's value of `false` has been merged from\n// the subclass.\n```\n\nThis behavior is not available during object `create` calls. It is only\navailable at `extend` time.\n\nIn `Route` the `queryParams` property is merged.\n\nThis feature is available for you to use throughout the Ember object model,\nalthough typical app developers are likely to use it infrequently. Since\nit changes expectations about behavior of properties, you should properly\ndocument its usage in each individual merged property (to not\nmislead your users to think they can override the property in a subclass).",
|
|
13935
13934
|
"itemtype": "property",
|
|
13936
13935
|
"name": "mergedProperties",
|
|
@@ -13943,7 +13942,7 @@
|
|
|
13943
13942
|
},
|
|
13944
13943
|
{
|
|
13945
13944
|
"file": "packages/@ember/object/core.ts",
|
|
13946
|
-
"line":
|
|
13945
|
+
"line": 502,
|
|
13947
13946
|
"description": "Destroyed object property flag.\n\nif this property is `true` the observers and bindings were already\nremoved by the effect of calling the `destroy()` method.",
|
|
13948
13947
|
"itemtype": "property",
|
|
13949
13948
|
"name": "isDestroyed",
|
|
@@ -13955,7 +13954,7 @@
|
|
|
13955
13954
|
},
|
|
13956
13955
|
{
|
|
13957
13956
|
"file": "packages/@ember/object/core.ts",
|
|
13958
|
-
"line":
|
|
13957
|
+
"line": 520,
|
|
13959
13958
|
"description": "Destruction scheduled flag. The `destroy()` method has been called.\n\nThe object stays intact until the end of the run loop at which point\nthe `isDestroyed` flag is set.",
|
|
13960
13959
|
"itemtype": "property",
|
|
13961
13960
|
"name": "isDestroying",
|
|
@@ -13967,7 +13966,7 @@
|
|
|
13967
13966
|
},
|
|
13968
13967
|
{
|
|
13969
13968
|
"file": "packages/@ember/object/core.ts",
|
|
13970
|
-
"line":
|
|
13969
|
+
"line": 538,
|
|
13971
13970
|
"description": "Destroys an object by setting the `isDestroyed` flag and removing its\nmetadata, which effectively destroys observers and bindings.\n\nIf you try to set a property on a destroyed object, an exception will be\nraised.\n\nNote that destruction is scheduled for the end of the run loop and does not\nhappen immediately. It will set an isDestroying flag immediately.",
|
|
13972
13971
|
"itemtype": "method",
|
|
13973
13972
|
"name": "destroy",
|
|
@@ -13982,7 +13981,7 @@
|
|
|
13982
13981
|
},
|
|
13983
13982
|
{
|
|
13984
13983
|
"file": "packages/@ember/object/core.ts",
|
|
13985
|
-
"line":
|
|
13984
|
+
"line": 565,
|
|
13986
13985
|
"description": "Override to implement teardown.",
|
|
13987
13986
|
"itemtype": "method",
|
|
13988
13987
|
"name": "willDestroy",
|
|
@@ -13993,7 +13992,7 @@
|
|
|
13993
13992
|
},
|
|
13994
13993
|
{
|
|
13995
13994
|
"file": "packages/@ember/object/core.ts",
|
|
13996
|
-
"line":
|
|
13995
|
+
"line": 573,
|
|
13997
13996
|
"description": "Returns a string representation which attempts to provide more information\nthan Javascript's `toString` typically does, in a generic way for all Ember\nobjects.\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend();\nperson = Person.create();\nperson.toString(); //=> \"<Person:ember1024>\"\n```\n\nIf the object's class is not defined on an Ember namespace, it will\nindicate it is a subclass of the registered superclass:\n\n```javascript\nconst Student = Person.extend();\nlet student = Student.create();\nstudent.toString(); //=> \"<(subclass of Person):ember1025>\"\n```\n\nIf the method `toStringExtension` is defined, its return value will be\nincluded in the output.\n\n```javascript\nconst Teacher = Person.extend({\n toStringExtension() {\n return this.get('fullName');\n }\n});\nteacher = Teacher.create();\nteacher.toString(); //=> \"<Teacher:ember1026:Tom Dale>\"\n```",
|
|
13998
13997
|
"itemtype": "method",
|
|
13999
13998
|
"name": "toString",
|
|
@@ -14008,7 +14007,7 @@
|
|
|
14008
14007
|
},
|
|
14009
14008
|
{
|
|
14010
14009
|
"file": "packages/@ember/object/core.ts",
|
|
14011
|
-
"line":
|
|
14010
|
+
"line": 618,
|
|
14012
14011
|
"description": "Creates a new subclass.\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend({\n say(thing) {\n alert(thing);\n }\n});\n```\n\nThis defines a new subclass of EmberObject: `Person`. It contains one method: `say()`.\n\nYou can also create a subclass from any existing class by calling its `extend()` method.\nFor example, you might want to create a subclass of Ember's built-in `Component` class:\n\n```javascript\nimport Component from '@ember/component';\n\nconst PersonComponent = Component.extend({\n tagName: 'li',\n classNameBindings: ['isAdministrator']\n});\n```\n\nWhen defining a subclass, you can override methods but still access the\nimplementation of your parent class by calling the special `_super()` method:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend({\n say(thing) {\n let name = this.get('name');\n alert(`${name} says: ${thing}`);\n }\n});\n\nconst Soldier = Person.extend({\n say(thing) {\n this._super(`${thing}, sir!`);\n },\n march(numberOfHours) {\n alert(`${this.get('name')} marches for ${numberOfHours} hours.`);\n }\n});\n\nlet yehuda = Soldier.create({\n name: 'Yehuda Katz'\n});\n\nyehuda.say('Yes'); // alerts \"Yehuda Katz says: Yes, sir!\"\n```\n\nThe `create()` on line #17 creates an *instance* of the `Soldier` class.\nThe `extend()` on line #8 creates a *subclass* of `Person`. Any instance\nof the `Person` class will *not* have the `march()` method.\n\nYou can also pass `Mixin` classes to add additional properties to the subclass.\n\n```javascript\nimport EmberObject from '@ember/object';\nimport Mixin from '@ember/object/mixin';\n\nconst Person = EmberObject.extend({\n say(thing) {\n alert(`${this.get('name')} says: ${thing}`);\n }\n});\n\nconst SingingMixin = Mixin.create({\n sing(thing) {\n alert(`${this.get('name')} sings: la la la ${thing}`);\n }\n});\n\nconst BroadwayStar = Person.extend(SingingMixin, {\n dance() {\n alert(`${this.get('name')} dances: tap tap tap tap `);\n }\n});\n```\n\nThe `BroadwayStar` class contains three methods: `say()`, `sing()`, and `dance()`.",
|
|
14013
14012
|
"itemtype": "method",
|
|
14014
14013
|
"name": "extend",
|
|
@@ -14036,7 +14035,7 @@
|
|
|
14036
14035
|
},
|
|
14037
14036
|
{
|
|
14038
14037
|
"file": "packages/@ember/object/core.ts",
|
|
14039
|
-
"line":
|
|
14038
|
+
"line": 722,
|
|
14040
14039
|
"description": "Creates an instance of a class. Accepts either no arguments, or an object\ncontaining values to initialize the newly instantiated object with.\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend({\n helloWorld() {\n alert(`Hi, my name is ${this.get('name')}`);\n }\n});\n\nlet tom = Person.create({\n name: 'Tom Dale'\n});\n\ntom.helloWorld(); // alerts \"Hi, my name is Tom Dale\".\n```\n\n`create` will call the `init` function if defined during\n`AnyObject.extend`\n\nIf no arguments are passed to `create`, it will not set values to the new\ninstance during initialization:\n\n```javascript\nlet noName = Person.create();\nnoName.helloWorld(); // alerts undefined\n```\n\nNOTE: For performance reasons, you cannot declare methods or computed\nproperties during `create`. You should instead declare methods and computed\nproperties when using `extend`.",
|
|
14041
14040
|
"itemtype": "method",
|
|
14042
14041
|
"name": "create",
|
|
@@ -14056,7 +14055,7 @@
|
|
|
14056
14055
|
},
|
|
14057
14056
|
{
|
|
14058
14057
|
"file": "packages/@ember/object/core.ts",
|
|
14059
|
-
"line":
|
|
14058
|
+
"line": 797,
|
|
14060
14059
|
"description": "Augments a constructor's prototype with additional\nproperties and functions:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst MyObject = EmberObject.extend({\n name: 'an object'\n});\n\no = MyObject.create();\no.get('name'); // 'an object'\n\nMyObject.reopen({\n say(msg) {\n console.log(msg);\n }\n});\n\no2 = MyObject.create();\no2.say('hello'); // logs \"hello\"\n\no.say('goodbye'); // logs \"goodbye\"\n```\n\nTo add functions and properties to the constructor itself,\nsee `reopenClass`",
|
|
14061
14060
|
"itemtype": "method",
|
|
14062
14061
|
"name": "reopen",
|
|
@@ -14068,7 +14067,7 @@
|
|
|
14068
14067
|
},
|
|
14069
14068
|
{
|
|
14070
14069
|
"file": "packages/@ember/object/core.ts",
|
|
14071
|
-
"line":
|
|
14070
|
+
"line": 851,
|
|
14072
14071
|
"description": "Augments a constructor's own properties and functions:\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst MyObject = EmberObject.extend({\n name: 'an object'\n});\n\nMyObject.reopenClass({\n canBuild: false\n});\n\nMyObject.canBuild; // false\no = MyObject.create();\n```\n\nIn other words, this creates static properties and functions for the class.\nThese are only available on the class and not on any instance of that class.\n\n```javascript\nimport EmberObject from '@ember/object';\n\nconst Person = EmberObject.extend({\n name: '',\n sayHello() {\n alert(`Hello. My name is ${this.get('name')}`);\n }\n});\n\nPerson.reopenClass({\n species: 'Homo sapiens',\n\n createPerson(name) {\n return Person.create({ name });\n }\n});\n\nlet tom = Person.create({\n name: 'Tom Dale'\n});\nlet yehuda = Person.createPerson('Yehuda Katz');\n\ntom.sayHello(); // \"Hello. My name is Tom Dale\"\nyehuda.sayHello(); // \"Hello. My name is Yehuda Katz\"\nalert(Person.species); // \"Homo sapiens\"\n```\n\nNote that `species` and `createPerson` are *not* valid on the `tom` and `yehuda`\nvariables. They are only valid on `Person`.\n\nTo add functions and properties to instances of\na constructor by extending the constructor's prototype\nsee `reopen`",
|
|
14073
14072
|
"itemtype": "method",
|
|
14074
14073
|
"name": "reopenClass",
|
|
@@ -14080,7 +14079,7 @@
|
|
|
14080
14079
|
},
|
|
14081
14080
|
{
|
|
14082
14081
|
"file": "packages/@ember/object/core.ts",
|
|
14083
|
-
"line":
|
|
14082
|
+
"line": 934,
|
|
14084
14083
|
"description": "In some cases, you may want to annotate computed properties with additional\nmetadata about how they function or what values they operate on. For\nexample, computed property functions may close over variables that are then\nno longer available for introspection.\n\nYou can pass a hash of these values to a computed property like this:\n\n```javascript\nimport { computed } from '@ember/object';\n\nperson: computed(function() {\n let personId = this.get('personId');\n return Person.create({ id: personId });\n}).meta({ type: Person })\n```\n\nOnce you've done this, you can retrieve the values saved to the computed\nproperty from your class like this:\n\n```javascript\nMyClass.metaForProperty('person');\n```\n\nThis will return the original hash that was passed to `meta()`.",
|
|
14085
14084
|
"static": 1,
|
|
14086
14085
|
"itemtype": "method",
|
|
@@ -14099,7 +14098,7 @@
|
|
|
14099
14098
|
},
|
|
14100
14099
|
{
|
|
14101
14100
|
"file": "packages/@ember/object/core.ts",
|
|
14102
|
-
"line":
|
|
14101
|
+
"line": 977,
|
|
14103
14102
|
"description": "Iterate over each computed property for the class, passing its name\nand any associated metadata (see `metaForProperty`) to the callback.",
|
|
14104
14103
|
"static": 1,
|
|
14105
14104
|
"itemtype": "method",
|
|
@@ -14123,7 +14122,7 @@
|
|
|
14123
14122
|
},
|
|
14124
14123
|
{
|
|
14125
14124
|
"file": "packages/@ember/object/core.ts",
|
|
14126
|
-
"line":
|
|
14125
|
+
"line": 1069,
|
|
14127
14126
|
"description": "Provides lookup-time type validation for injected properties.",
|
|
14128
14127
|
"access": "private",
|
|
14129
14128
|
"tagname": "",
|
|
@@ -14134,7 +14133,7 @@
|
|
|
14134
14133
|
},
|
|
14135
14134
|
{
|
|
14136
14135
|
"file": "packages/@ember/object/core.ts",
|
|
14137
|
-
"line":
|
|
14136
|
+
"line": 1090,
|
|
14138
14137
|
"description": "Returns a hash of property names and container names that injected\nproperties will lookup on the container lazily.",
|
|
14139
14138
|
"itemtype": "method",
|
|
14140
14139
|
"name": "_lazyInjections",
|
|
@@ -14340,7 +14339,7 @@
|
|
|
14340
14339
|
},
|
|
14341
14340
|
{
|
|
14342
14341
|
"file": "packages/@ember/object/mixin.ts",
|
|
14343
|
-
"line":
|
|
14342
|
+
"line": 435,
|
|
14344
14343
|
"itemtype": "method",
|
|
14345
14344
|
"name": "mixin",
|
|
14346
14345
|
"params": [
|
|
@@ -14364,43 +14363,43 @@
|
|
|
14364
14363
|
},
|
|
14365
14364
|
{
|
|
14366
14365
|
"file": "packages/@ember/object/mixin.ts",
|
|
14367
|
-
"line":
|
|
14366
|
+
"line": 532,
|
|
14368
14367
|
"class": "Mixin",
|
|
14369
14368
|
"module": "@ember/object/mixin"
|
|
14370
14369
|
},
|
|
14371
14370
|
{
|
|
14372
14371
|
"file": "packages/@ember/object/mixin.ts",
|
|
14373
|
-
"line":
|
|
14372
|
+
"line": 535,
|
|
14374
14373
|
"class": "Mixin",
|
|
14375
14374
|
"module": "@ember/object/mixin"
|
|
14376
14375
|
},
|
|
14377
14376
|
{
|
|
14378
14377
|
"file": "packages/@ember/object/mixin.ts",
|
|
14379
|
-
"line":
|
|
14378
|
+
"line": 538,
|
|
14380
14379
|
"class": "Mixin",
|
|
14381
14380
|
"module": "@ember/object/mixin"
|
|
14382
14381
|
},
|
|
14383
14382
|
{
|
|
14384
14383
|
"file": "packages/@ember/object/mixin.ts",
|
|
14385
|
-
"line":
|
|
14384
|
+
"line": 541,
|
|
14386
14385
|
"class": "Mixin",
|
|
14387
14386
|
"module": "@ember/object/mixin"
|
|
14388
14387
|
},
|
|
14389
14388
|
{
|
|
14390
14389
|
"file": "packages/@ember/object/mixin.ts",
|
|
14391
|
-
"line":
|
|
14390
|
+
"line": 544,
|
|
14392
14391
|
"class": "Mixin",
|
|
14393
14392
|
"module": "@ember/object/mixin"
|
|
14394
14393
|
},
|
|
14395
14394
|
{
|
|
14396
14395
|
"file": "packages/@ember/object/mixin.ts",
|
|
14397
|
-
"line":
|
|
14396
|
+
"line": 549,
|
|
14398
14397
|
"class": "Mixin",
|
|
14399
14398
|
"module": "@ember/object/mixin"
|
|
14400
14399
|
},
|
|
14401
14400
|
{
|
|
14402
14401
|
"file": "packages/@ember/object/mixin.ts",
|
|
14403
|
-
"line":
|
|
14402
|
+
"line": 575,
|
|
14404
14403
|
"itemtype": "method",
|
|
14405
14404
|
"name": "create",
|
|
14406
14405
|
"static": 1,
|
|
@@ -14418,13 +14417,13 @@
|
|
|
14418
14417
|
},
|
|
14419
14418
|
{
|
|
14420
14419
|
"file": "packages/@ember/object/mixin.ts",
|
|
14421
|
-
"line":
|
|
14420
|
+
"line": 590,
|
|
14422
14421
|
"class": "@ember/object/mixin",
|
|
14423
14422
|
"module": "@ember/object/mixin"
|
|
14424
14423
|
},
|
|
14425
14424
|
{
|
|
14426
14425
|
"file": "packages/@ember/object/mixin.ts",
|
|
14427
|
-
"line":
|
|
14426
|
+
"line": 608,
|
|
14428
14427
|
"itemtype": "method",
|
|
14429
14428
|
"name": "reopen",
|
|
14430
14429
|
"params": [
|
|
@@ -14442,7 +14441,7 @@
|
|
|
14442
14441
|
},
|
|
14443
14442
|
{
|
|
14444
14443
|
"file": "packages/@ember/object/mixin.ts",
|
|
14445
|
-
"line":
|
|
14444
|
+
"line": 631,
|
|
14446
14445
|
"itemtype": "method",
|
|
14447
14446
|
"name": "apply",
|
|
14448
14447
|
"params": [
|
|
@@ -14462,13 +14461,13 @@
|
|
|
14462
14461
|
},
|
|
14463
14462
|
{
|
|
14464
14463
|
"file": "packages/@ember/object/mixin.ts",
|
|
14465
|
-
"line":
|
|
14464
|
+
"line": 647,
|
|
14466
14465
|
"class": "@ember/object/mixin",
|
|
14467
14466
|
"module": "@ember/object/mixin"
|
|
14468
14467
|
},
|
|
14469
14468
|
{
|
|
14470
14469
|
"file": "packages/@ember/object/mixin.ts",
|
|
14471
|
-
"line":
|
|
14470
|
+
"line": 652,
|
|
14472
14471
|
"itemtype": "method",
|
|
14473
14472
|
"name": "detect",
|
|
14474
14473
|
"params": [
|
|
@@ -14489,19 +14488,19 @@
|
|
|
14489
14488
|
},
|
|
14490
14489
|
{
|
|
14491
14490
|
"file": "packages/@ember/object/mixin.ts",
|
|
14492
|
-
"line":
|
|
14491
|
+
"line": 673,
|
|
14493
14492
|
"class": "@ember/object/mixin",
|
|
14494
14493
|
"module": "@ember/object/mixin"
|
|
14495
14494
|
},
|
|
14496
14495
|
{
|
|
14497
14496
|
"file": "packages/@ember/object/mixin.ts",
|
|
14498
|
-
"line":
|
|
14497
|
+
"line": 680,
|
|
14499
14498
|
"class": "@ember/object/mixin",
|
|
14500
14499
|
"module": "@ember/object/mixin"
|
|
14501
14500
|
},
|
|
14502
14501
|
{
|
|
14503
14502
|
"file": "packages/@ember/object/mixin.ts",
|
|
14504
|
-
"line":
|
|
14503
|
+
"line": 687,
|
|
14505
14504
|
"class": "@ember/object/mixin",
|
|
14506
14505
|
"module": "@ember/object/mixin"
|
|
14507
14506
|
},
|
|
@@ -14846,7 +14845,7 @@
|
|
|
14846
14845
|
},
|
|
14847
14846
|
{
|
|
14848
14847
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
14849
|
-
"line":
|
|
14848
|
+
"line": 110,
|
|
14850
14849
|
"description": "If the proxied promise is rejected this will contain the reason\nprovided.",
|
|
14851
14850
|
"itemtype": "property",
|
|
14852
14851
|
"name": "reason",
|
|
@@ -14858,7 +14857,7 @@
|
|
|
14858
14857
|
},
|
|
14859
14858
|
{
|
|
14860
14859
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
14861
|
-
"line":
|
|
14860
|
+
"line": 120,
|
|
14862
14861
|
"description": "Once the proxied promise has settled this will become `false`.",
|
|
14863
14862
|
"itemtype": "property",
|
|
14864
14863
|
"name": "isPending",
|
|
@@ -14870,7 +14869,7 @@
|
|
|
14870
14869
|
},
|
|
14871
14870
|
{
|
|
14872
14871
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
14873
|
-
"line":
|
|
14872
|
+
"line": 128,
|
|
14874
14873
|
"description": "Once the proxied promise has settled this will become `true`.",
|
|
14875
14874
|
"itemtype": "property",
|
|
14876
14875
|
"name": "isSettled",
|
|
@@ -14882,7 +14881,7 @@
|
|
|
14882
14881
|
},
|
|
14883
14882
|
{
|
|
14884
14883
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
14885
|
-
"line":
|
|
14884
|
+
"line": 137,
|
|
14886
14885
|
"description": "Will become `true` if the proxied promise is rejected.",
|
|
14887
14886
|
"itemtype": "property",
|
|
14888
14887
|
"name": "isRejected",
|
|
@@ -14894,7 +14893,7 @@
|
|
|
14894
14893
|
},
|
|
14895
14894
|
{
|
|
14896
14895
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
14897
|
-
"line":
|
|
14896
|
+
"line": 145,
|
|
14898
14897
|
"description": "Will become `true` if the proxied promise is fulfilled.",
|
|
14899
14898
|
"itemtype": "property",
|
|
14900
14899
|
"name": "isFulfilled",
|
|
@@ -14906,7 +14905,7 @@
|
|
|
14906
14905
|
},
|
|
14907
14906
|
{
|
|
14908
14907
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
14909
|
-
"line":
|
|
14908
|
+
"line": 154,
|
|
14910
14909
|
"description": "The promise whose fulfillment value is being proxied by this object.\n\nThis property must be specified upon creation, and should not be\nchanged once created.\n\nExample:\n\n```javascript\nimport ObjectProxy from '@ember/object/proxy';\nimport PromiseProxyMixin from '@ember/object/promise-proxy-mixin';\n\nObjectProxy.extend(PromiseProxyMixin).create({\n promise: <thenable>\n});\n```",
|
|
14911
14910
|
"itemtype": "property",
|
|
14912
14911
|
"name": "promise",
|
|
@@ -14917,7 +14916,7 @@
|
|
|
14917
14916
|
},
|
|
14918
14917
|
{
|
|
14919
14918
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
14920
|
-
"line":
|
|
14919
|
+
"line": 176,
|
|
14921
14920
|
"description": "An alias to the proxied promise's `then`.\n\nSee RSVP.Promise.then.",
|
|
14922
14921
|
"itemtype": "method",
|
|
14923
14922
|
"name": "then",
|
|
@@ -14939,7 +14938,7 @@
|
|
|
14939
14938
|
},
|
|
14940
14939
|
{
|
|
14941
14940
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
14942
|
-
"line":
|
|
14941
|
+
"line": 187,
|
|
14943
14942
|
"description": "An alias to the proxied promise's `catch`.\n\nSee RSVP.Promise.catch.",
|
|
14944
14943
|
"itemtype": "method",
|
|
14945
14944
|
"name": "catch",
|
|
@@ -14962,7 +14961,7 @@
|
|
|
14962
14961
|
},
|
|
14963
14962
|
{
|
|
14964
14963
|
"file": "packages/@ember/object/promise-proxy-mixin.ts",
|
|
14965
|
-
"line":
|
|
14964
|
+
"line": 199,
|
|
14966
14965
|
"description": "An alias to the proxied promise's `finally`.\n\nSee RSVP.Promise.finally.",
|
|
14967
14966
|
"itemtype": "method",
|
|
14968
14967
|
"name": "finally",
|
|
@@ -17122,7 +17121,7 @@
|
|
|
17122
17121
|
},
|
|
17123
17122
|
{
|
|
17124
17123
|
"file": "packages/@ember/routing/router.ts",
|
|
17125
|
-
"line":
|
|
17124
|
+
"line": 155,
|
|
17126
17125
|
"description": "Represents the URL of the root of the application, often '/'. This prefix is\n assumed on all routes defined on this router.",
|
|
17127
17126
|
"itemtype": "property",
|
|
17128
17127
|
"name": "rootURL",
|
|
@@ -17134,7 +17133,7 @@
|
|
|
17134
17133
|
},
|
|
17135
17134
|
{
|
|
17136
17135
|
"file": "packages/@ember/routing/router.ts",
|
|
17137
|
-
"line":
|
|
17136
|
+
"line": 166,
|
|
17138
17137
|
"description": "The `location` property determines the type of URL's that your\n application will use.\n\n The following location types are currently available:\n\n * `history` - use the browser's history API to make the URLs look just like any standard URL\n * `hash` - use `#` to separate the server part of the URL from the Ember part: `/blog/#/posts/new`\n * `none` - do not store the Ember URL in the actual browser URL (mainly used for testing)\n * `auto` - use the best option based on browser capabilities: `history` if possible, then `hash` if possible, otherwise `none`\n\n This value is defaulted to `history` by the `locationType` setting of `/config/environment.js`",
|
|
17139
17138
|
"itemtype": "property",
|
|
17140
17139
|
"name": "location",
|
|
@@ -17149,7 +17148,7 @@
|
|
|
17149
17148
|
},
|
|
17150
17149
|
{
|
|
17151
17150
|
"file": "packages/@ember/routing/router.ts",
|
|
17152
|
-
"line":
|
|
17151
|
+
"line": 224,
|
|
17153
17152
|
"description": "The `Router.map` function allows you to define mappings from URLs to routes\nin your application. These mappings are defined within the\nsupplied callback function using `this.route`.\n\nThe first parameter is the name of the route which is used by default as the\npath name as well.\n\nThe second parameter is the optional options hash. Available options are:\n\n * `path`: allows you to provide your own path as well as mark dynamic\n segments.\n * `resetNamespace`: false by default; when nesting routes, ember will\n combine the route names to form the fully-qualified route name, which is\n used with `{{link-to}}` or manually transitioning to routes. Setting\n `resetNamespace: true` will cause the route not to inherit from its\n parent route's names. This is handy for preventing extremely long route names.\n Keep in mind that the actual URL path behavior is still retained.\n\nThe third parameter is a function, which can be used to nest routes.\nNested routes, by default, will have the parent route tree's route name and\npath prepended to it's own.\n\n```app/router.js\nRouter.map(function(){\n this.route('post', { path: '/post/:post_id' }, function() {\n this.route('edit');\n this.route('comments', { resetNamespace: true }, function() {\n this.route('new');\n });\n });\n});\n```",
|
|
17154
17153
|
"itemtype": "method",
|
|
17155
17154
|
"name": "map",
|
|
@@ -17166,7 +17165,7 @@
|
|
|
17166
17165
|
},
|
|
17167
17166
|
{
|
|
17168
17167
|
"file": "packages/@ember/routing/router.ts",
|
|
17169
|
-
"line":
|
|
17168
|
+
"line": 559,
|
|
17170
17169
|
"description": "Initializes the current router instance and sets up the change handling\nevent listeners used by the instances `location` implementation.\n\nA property named `initialURL` will be used to determine the initial URL.\nIf no value is found `/` will be used.",
|
|
17171
17170
|
"itemtype": "method",
|
|
17172
17171
|
"name": "startRouting",
|
|
@@ -17177,7 +17176,7 @@
|
|
|
17177
17176
|
},
|
|
17178
17177
|
{
|
|
17179
17178
|
"file": "packages/@ember/routing/router.ts",
|
|
17180
|
-
"line":
|
|
17179
|
+
"line": 705,
|
|
17181
17180
|
"description": "Transition the application into another route. The route may\nbe either a single route or route path:",
|
|
17182
17181
|
"itemtype": "method",
|
|
17183
17182
|
"name": "transitionTo",
|
|
@@ -17211,7 +17210,7 @@
|
|
|
17211
17210
|
},
|
|
17212
17211
|
{
|
|
17213
17212
|
"file": "packages/@ember/routing/router.ts",
|
|
17214
|
-
"line":
|
|
17213
|
+
"line": 750,
|
|
17215
17214
|
"description": "Similar to `transitionTo`, but instead of adding the destination to the browser's URL history,\nit replaces the entry for the current route.\nWhen the user clicks the \"back\" button in the browser, there will be fewer steps.\nThis is most commonly used to manage redirects in a way that does not cause confusing additions\nto the user's browsing history.",
|
|
17216
17215
|
"itemtype": "method",
|
|
17217
17216
|
"name": "replaceWith",
|
|
@@ -17245,7 +17244,7 @@
|
|
|
17245
17244
|
},
|
|
17246
17245
|
{
|
|
17247
17246
|
"file": "packages/@ember/routing/router.ts",
|
|
17248
|
-
"line":
|
|
17247
|
+
"line": 777,
|
|
17249
17248
|
"description": "Determines if the supplied route is currently active.",
|
|
17250
17249
|
"itemtype": "method",
|
|
17251
17250
|
"name": "isActive",
|
|
@@ -17266,7 +17265,7 @@
|
|
|
17266
17265
|
},
|
|
17267
17266
|
{
|
|
17268
17267
|
"file": "packages/@ember/routing/router.ts",
|
|
17269
|
-
"line":
|
|
17268
|
+
"line": 789,
|
|
17270
17269
|
"description": "An alternative form of `isActive` that doesn't require\nmanual concatenation of the arguments into a single\narray.",
|
|
17271
17270
|
"itemtype": "method",
|
|
17272
17271
|
"name": "isActiveIntent",
|
|
@@ -17296,7 +17295,7 @@
|
|
|
17296
17295
|
},
|
|
17297
17296
|
{
|
|
17298
17297
|
"file": "packages/@ember/routing/router.ts",
|
|
17299
|
-
"line":
|
|
17298
|
+
"line": 811,
|
|
17300
17299
|
"description": "Does this router instance have the given route.",
|
|
17301
17300
|
"itemtype": "method",
|
|
17302
17301
|
"name": "hasRoute",
|
|
@@ -17311,7 +17310,7 @@
|
|
|
17311
17310
|
},
|
|
17312
17311
|
{
|
|
17313
17312
|
"file": "packages/@ember/routing/router.ts",
|
|
17314
|
-
"line":
|
|
17313
|
+
"line": 822,
|
|
17315
17314
|
"description": "Resets the state of the router by clearing the current route\nhandlers and deactivating them.",
|
|
17316
17315
|
"access": "private",
|
|
17317
17316
|
"tagname": "",
|
|
@@ -17322,7 +17321,7 @@
|
|
|
17322
17321
|
},
|
|
17323
17322
|
{
|
|
17324
17323
|
"file": "packages/@ember/routing/router.ts",
|
|
17325
|
-
"line":
|
|
17324
|
+
"line": 970,
|
|
17326
17325
|
"description": "Serializes the given query params according to their QP meta information.",
|
|
17327
17326
|
"access": "private",
|
|
17328
17327
|
"tagname": "",
|
|
@@ -17349,7 +17348,7 @@
|
|
|
17349
17348
|
},
|
|
17350
17349
|
{
|
|
17351
17350
|
"file": "packages/@ember/routing/router.ts",
|
|
17352
|
-
"line":
|
|
17351
|
+
"line": 1000,
|
|
17353
17352
|
"description": "Serializes the value of a query parameter based on a type",
|
|
17354
17353
|
"access": "private",
|
|
17355
17354
|
"tagname": "",
|
|
@@ -17372,7 +17371,7 @@
|
|
|
17372
17371
|
},
|
|
17373
17372
|
{
|
|
17374
17373
|
"file": "packages/@ember/routing/router.ts",
|
|
17375
|
-
"line":
|
|
17374
|
+
"line": 1018,
|
|
17376
17375
|
"description": "Deserializes the given query params according to their QP meta information.",
|
|
17377
17376
|
"access": "private",
|
|
17378
17377
|
"tagname": "",
|
|
@@ -17399,7 +17398,7 @@
|
|
|
17399
17398
|
},
|
|
17400
17399
|
{
|
|
17401
17400
|
"file": "packages/@ember/routing/router.ts",
|
|
17402
|
-
"line":
|
|
17401
|
+
"line": 1046,
|
|
17403
17402
|
"description": "Deserializes the value of a query parameter based on a default type",
|
|
17404
17403
|
"access": "private",
|
|
17405
17404
|
"tagname": "",
|
|
@@ -17422,7 +17421,7 @@
|
|
|
17422
17421
|
},
|
|
17423
17422
|
{
|
|
17424
17423
|
"file": "packages/@ember/routing/router.ts",
|
|
17425
|
-
"line":
|
|
17424
|
+
"line": 1067,
|
|
17426
17425
|
"description": "Removes (prunes) any query params with default values from the given QP\nobject. Default values are determined from the QP meta information per key.",
|
|
17427
17426
|
"access": "private",
|
|
17428
17427
|
"tagname": "",
|
|
@@ -17449,7 +17448,7 @@
|
|
|
17449
17448
|
},
|
|
17450
17449
|
{
|
|
17451
17450
|
"file": "packages/@ember/routing/router.ts",
|
|
17452
|
-
"line":
|
|
17451
|
+
"line": 1148,
|
|
17453
17452
|
"description": "Prepares the query params for a URL or Transition. Restores any undefined QP\nkeys/values, serializes all values, and then prunes any default values.",
|
|
17454
17453
|
"access": "private",
|
|
17455
17454
|
"tagname": "",
|
|
@@ -17486,7 +17485,7 @@
|
|
|
17486
17485
|
},
|
|
17487
17486
|
{
|
|
17488
17487
|
"file": "packages/@ember/routing/router.ts",
|
|
17489
|
-
"line":
|
|
17488
|
+
"line": 1175,
|
|
17490
17489
|
"description": "Returns the meta information for the query params of a given route. This\nwill be overridden to allow support for lazy routes.",
|
|
17491
17490
|
"access": "private",
|
|
17492
17491
|
"tagname": "",
|
|
@@ -17508,7 +17507,7 @@
|
|
|
17508
17507
|
},
|
|
17509
17508
|
{
|
|
17510
17509
|
"file": "packages/@ember/routing/router.ts",
|
|
17511
|
-
"line":
|
|
17510
|
+
"line": 1189,
|
|
17512
17511
|
"description": "Returns a merged query params meta object for a given set of routeInfos.\nUseful for knowing what query params are available for a given route hierarchy.",
|
|
17513
17512
|
"access": "private",
|
|
17514
17513
|
"tagname": "",
|
|
@@ -17530,7 +17529,7 @@
|
|
|
17530
17529
|
},
|
|
17531
17530
|
{
|
|
17532
17531
|
"file": "packages/@ember/routing/router.ts",
|
|
17533
|
-
"line":
|
|
17532
|
+
"line": 1251,
|
|
17534
17533
|
"description": "Maps all query param keys to their fully scoped property name of the form\n`controllerName:propName`.",
|
|
17535
17534
|
"access": "private",
|
|
17536
17535
|
"tagname": "",
|
|
@@ -17562,7 +17561,7 @@
|
|
|
17562
17561
|
},
|
|
17563
17562
|
{
|
|
17564
17563
|
"file": "packages/@ember/routing/router.ts",
|
|
17565
|
-
"line":
|
|
17564
|
+
"line": 1289,
|
|
17566
17565
|
"description": "Hydrates (adds/restores) any query params that have pre-existing values into\nthe given queryParams hash. This is what allows query params to be \"sticky\"\nand restore their last known values for their scope.",
|
|
17567
17566
|
"access": "private",
|
|
17568
17567
|
"tagname": "",
|
|
@@ -17589,7 +17588,7 @@
|
|
|
17589
17588
|
},
|
|
17590
17589
|
{
|
|
17591
17590
|
"file": "packages/@ember/routing/router.ts",
|
|
17592
|
-
"line":
|
|
17591
|
+
"line": 1460,
|
|
17593
17592
|
"description": "Handles updating the paths and notifying any listeners of the URL\nchange.\n\nTriggers the router level `didTransition` hook.\n\nFor example, to notify google analytics when the route changes,\nyou could use this hook. (Note: requires also including GA scripts, etc.)\n\n```javascript\nimport config from './config/environment';\nimport EmberRouter from '@ember/routing/router';\nimport { service } from '@ember/service';\n\nlet Router = EmberRouter.extend({\n location: config.locationType,\n\n router: service(),\n\n didTransition: function() {\n this._super(...arguments);\n\n ga('send', 'pageview', {\n page: this.router.currentURL,\n title: this.router.currentRouteName,\n });\n }\n});\n```",
|
|
17594
17593
|
"itemtype": "method",
|
|
17595
17594
|
"name": "didTransition",
|
|
@@ -17601,7 +17600,7 @@
|
|
|
17601
17600
|
},
|
|
17602
17601
|
{
|
|
17603
17602
|
"file": "packages/@ember/routing/router.ts",
|
|
17604
|
-
"line":
|
|
17603
|
+
"line": 1497,
|
|
17605
17604
|
"description": "Handles notifying any listeners of an impending URL\nchange.\n\nTriggers the router level `willTransition` hook.",
|
|
17606
17605
|
"itemtype": "method",
|
|
17607
17606
|
"name": "willTransition",
|
|
@@ -17613,7 +17612,7 @@
|
|
|
17613
17612
|
},
|
|
17614
17613
|
{
|
|
17615
17614
|
"file": "packages/@ember/routing/router.ts",
|
|
17616
|
-
"line":
|
|
17615
|
+
"line": 1510,
|
|
17617
17616
|
"description": "Represents the current URL.",
|
|
17618
17617
|
"itemtype": "property",
|
|
17619
17618
|
"name": "url",
|
|
@@ -17625,7 +17624,7 @@
|
|
|
17625
17624
|
},
|
|
17626
17625
|
{
|
|
17627
17626
|
"file": "packages/@ember/routing/router.ts",
|
|
17628
|
-
"line":
|
|
17627
|
+
"line": 1677,
|
|
17629
17628
|
"description": "Finds the name of the substate route if it exists for the given route. A\nsubstate route is of the form `route_state`, such as `foo_loading`.",
|
|
17630
17629
|
"access": "private",
|
|
17631
17630
|
"tagname": "",
|
|
@@ -17650,7 +17649,7 @@
|
|
|
17650
17649
|
},
|
|
17651
17650
|
{
|
|
17652
17651
|
"file": "packages/@ember/routing/router.ts",
|
|
17653
|
-
"line":
|
|
17652
|
+
"line": 1698,
|
|
17654
17653
|
"description": "Finds the name of the state route if it exists for the given route. A state\nroute is of the form `route.state`, such as `foo.loading`. Properly Handles\n`application` named routes.",
|
|
17655
17654
|
"access": "private",
|
|
17656
17655
|
"tagname": "",
|
|
@@ -17675,7 +17674,7 @@
|
|
|
17675
17674
|
},
|
|
17676
17675
|
{
|
|
17677
17676
|
"file": "packages/@ember/routing/router.ts",
|
|
17678
|
-
"line":
|
|
17677
|
+
"line": 1720,
|
|
17679
17678
|
"description": "Determines whether or not a route has been defined by checking that the route\nis in the Router's map and the owner has a registration for that route.",
|
|
17680
17679
|
"access": "private",
|
|
17681
17680
|
"tagname": "",
|
|
@@ -17683,7 +17682,7 @@
|
|
|
17683
17682
|
{
|
|
17684
17683
|
"name": "owner",
|
|
17685
17684
|
"description": "",
|
|
17686
|
-
"type": "
|
|
17685
|
+
"type": "Owner"
|
|
17687
17686
|
},
|
|
17688
17687
|
{
|
|
17689
17688
|
"name": "router",
|
|
@@ -19325,15 +19324,15 @@
|
|
|
19325
19324
|
},
|
|
19326
19325
|
{
|
|
19327
19326
|
"message": "unknown tag: internal",
|
|
19328
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
19327
|
+
"line": " packages/@ember/object/mixin.ts:608"
|
|
19329
19328
|
},
|
|
19330
19329
|
{
|
|
19331
19330
|
"message": "unknown tag: internal",
|
|
19332
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
19331
|
+
"line": " packages/@ember/object/mixin.ts:631"
|
|
19333
19332
|
},
|
|
19334
19333
|
{
|
|
19335
19334
|
"message": "unknown tag: internal",
|
|
19336
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
19335
|
+
"line": " packages/@ember/object/mixin.ts:652"
|
|
19337
19336
|
},
|
|
19338
19337
|
{
|
|
19339
19338
|
"message": "replacing incorrect tag: returns with return",
|
|
@@ -19593,11 +19592,11 @@
|
|
|
19593
19592
|
},
|
|
19594
19593
|
{
|
|
19595
19594
|
"message": "Missing item type",
|
|
19596
|
-
"line": " packages/@ember/-internals/metal/lib/computed.ts:
|
|
19595
|
+
"line": " packages/@ember/-internals/metal/lib/computed.ts:715"
|
|
19597
19596
|
},
|
|
19598
19597
|
{
|
|
19599
19598
|
"message": "Missing item type",
|
|
19600
|
-
"line": " packages/@ember/-internals/metal/lib/computed.ts:
|
|
19599
|
+
"line": " packages/@ember/-internals/metal/lib/computed.ts:721"
|
|
19601
19600
|
},
|
|
19602
19601
|
{
|
|
19603
19602
|
"message": "Missing item type\nPrimarily used for cases where we are redefining a class, e.g. mixins/reopen\nbeing applied later. Revalidates all the observers, resetting their tags.",
|
|
@@ -19789,7 +19788,7 @@
|
|
|
19789
19788
|
},
|
|
19790
19789
|
{
|
|
19791
19790
|
"message": "Missing item type\nUnfortunately, a lot of existing code assumes booting an instance is\nsynchronous – specifically, a lot of tests assume the last call to\n`app.advanceReadiness()` or `app.reset()` will result in a new instance\nbeing fully-booted when the current runloop completes.\n\nWe would like new code (like the `visit` API) to stop making this\nassumption, so we created the asynchronous version above that returns a\npromise. But until we have migrated all the code, we would have to expose\nthis method for use *internally* in places where we need to boot an instance\nsynchronously.",
|
|
19792
|
-
"line": " packages/@ember/engine/instance.ts:
|
|
19791
|
+
"line": " packages/@ember/engine/instance.ts:134"
|
|
19793
19792
|
},
|
|
19794
19793
|
{
|
|
19795
19794
|
"message": "Missing item type",
|
|
@@ -19813,55 +19812,55 @@
|
|
|
19813
19812
|
},
|
|
19814
19813
|
{
|
|
19815
19814
|
"message": "Missing item type",
|
|
19816
|
-
"line": " packages/@ember/object/core.ts:
|
|
19815
|
+
"line": " packages/@ember/object/core.ts:234"
|
|
19817
19816
|
},
|
|
19818
19817
|
{
|
|
19819
19818
|
"message": "Missing item type",
|
|
19820
|
-
"line": " packages/@ember/object/core.ts:
|
|
19819
|
+
"line": " packages/@ember/object/core.ts:238"
|
|
19821
19820
|
},
|
|
19822
19821
|
{
|
|
19823
19822
|
"message": "Missing item type",
|
|
19824
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
19823
|
+
"line": " packages/@ember/object/mixin.ts:532"
|
|
19825
19824
|
},
|
|
19826
19825
|
{
|
|
19827
19826
|
"message": "Missing item type",
|
|
19828
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
19827
|
+
"line": " packages/@ember/object/mixin.ts:535"
|
|
19829
19828
|
},
|
|
19830
19829
|
{
|
|
19831
19830
|
"message": "Missing item type",
|
|
19832
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
19831
|
+
"line": " packages/@ember/object/mixin.ts:538"
|
|
19833
19832
|
},
|
|
19834
19833
|
{
|
|
19835
19834
|
"message": "Missing item type",
|
|
19836
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
19835
|
+
"line": " packages/@ember/object/mixin.ts:541"
|
|
19837
19836
|
},
|
|
19838
19837
|
{
|
|
19839
19838
|
"message": "Missing item type",
|
|
19840
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
19839
|
+
"line": " packages/@ember/object/mixin.ts:544"
|
|
19841
19840
|
},
|
|
19842
19841
|
{
|
|
19843
19842
|
"message": "Missing item type",
|
|
19844
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
19843
|
+
"line": " packages/@ember/object/mixin.ts:549"
|
|
19845
19844
|
},
|
|
19846
19845
|
{
|
|
19847
19846
|
"message": "Missing item type",
|
|
19848
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
19847
|
+
"line": " packages/@ember/object/mixin.ts:590"
|
|
19849
19848
|
},
|
|
19850
19849
|
{
|
|
19851
19850
|
"message": "Missing item type",
|
|
19852
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
19851
|
+
"line": " packages/@ember/object/mixin.ts:647"
|
|
19853
19852
|
},
|
|
19854
19853
|
{
|
|
19855
19854
|
"message": "Missing item type",
|
|
19856
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
19855
|
+
"line": " packages/@ember/object/mixin.ts:673"
|
|
19857
19856
|
},
|
|
19858
19857
|
{
|
|
19859
19858
|
"message": "Missing item type",
|
|
19860
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
19859
|
+
"line": " packages/@ember/object/mixin.ts:680"
|
|
19861
19860
|
},
|
|
19862
19861
|
{
|
|
19863
19862
|
"message": "Missing item type",
|
|
19864
|
-
"line": " packages/@ember/object/mixin.ts:
|
|
19863
|
+
"line": " packages/@ember/object/mixin.ts:687"
|
|
19865
19864
|
},
|
|
19866
19865
|
{
|
|
19867
19866
|
"message": "Missing item type",
|
|
@@ -19893,15 +19892,15 @@
|
|
|
19893
19892
|
},
|
|
19894
19893
|
{
|
|
19895
19894
|
"message": "Missing item type\nFinds the name of the substate route if it exists for the given route. A\nsubstate route is of the form `route_state`, such as `foo_loading`.",
|
|
19896
|
-
"line": " packages/@ember/routing/router.ts:
|
|
19895
|
+
"line": " packages/@ember/routing/router.ts:1677"
|
|
19897
19896
|
},
|
|
19898
19897
|
{
|
|
19899
19898
|
"message": "Missing item type\nFinds the name of the state route if it exists for the given route. A state\nroute is of the form `route.state`, such as `foo.loading`. Properly Handles\n`application` named routes.",
|
|
19900
|
-
"line": " packages/@ember/routing/router.ts:
|
|
19899
|
+
"line": " packages/@ember/routing/router.ts:1698"
|
|
19901
19900
|
},
|
|
19902
19901
|
{
|
|
19903
19902
|
"message": "Missing item type\nDetermines whether or not a route has been defined by checking that the route\nis in the Router's map and the owner has a registration for that route.",
|
|
19904
|
-
"line": " packages/@ember/routing/router.ts:
|
|
19903
|
+
"line": " packages/@ember/routing/router.ts:1720"
|
|
19905
19904
|
}
|
|
19906
19905
|
]
|
|
19907
19906
|
}
|