@angular-wave/angular.ts 0.6.3 → 0.6.4

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.
Files changed (170) hide show
  1. package/dist/angular-ts.esm.js +2 -2
  2. package/dist/angular-ts.umd.js +2 -2
  3. package/package.json +1 -1
  4. package/src/angular.spec.js +2 -2
  5. package/src/animations/animate-children-directive.js +1 -1
  6. package/src/animations/animate-css-driver.js +2 -2
  7. package/src/animations/animate-css.js +1 -1
  8. package/src/animations/animate-js.js +1 -1
  9. package/src/animations/animate-queue.js +2 -2
  10. package/src/animations/animate.js +2 -2
  11. package/src/animations/animate.spec.js +3 -3
  12. package/src/animations/animation.js +2 -2
  13. package/src/binding.spec.js +1 -1
  14. package/src/core/cache/cache.js +1 -1
  15. package/src/core/compile/attributes.js +3 -3
  16. package/src/core/compile/compile.js +13 -140
  17. package/src/core/compile/compile.md +0 -8
  18. package/src/core/compile/compile.spec.js +35 -639
  19. package/src/core/controller/controller.js +1 -1
  20. package/src/core/di/injector.js +1 -1
  21. package/src/core/di/injector.spec.js +1 -1
  22. package/src/core/di/internal-injector.js +1 -1
  23. package/src/core/di/ng-module.js +1 -1
  24. package/src/core/filter/filter.js +1 -1
  25. package/src/core/interpolate/interpolate.js +1 -1
  26. package/src/core/interval/interval-factory.js +1 -1
  27. package/src/core/interval/interval.js +1 -1
  28. package/src/core/location/location.js +3 -3
  29. package/src/core/on.spec.js +1 -1
  30. package/src/core/parse/interpreter.js +1 -1
  31. package/src/core/prop.spec.js +2 -2
  32. package/src/core/q/q.js +1 -1
  33. package/src/core/root-element.spec.js +1 -1
  34. package/src/core/sanitize/sanitize-uri.js +1 -1
  35. package/src/core/sce/sce.js +2 -2
  36. package/src/core/sce/sce.spec.js +1 -1
  37. package/src/core/scope/scope.js +1 -1
  38. package/src/core/scope/scope.spec.js +1 -1
  39. package/src/core/timeout/timeout.js +1 -1
  40. package/src/core/url-utils/url-utils.js +1 -1
  41. package/src/directive/aria/aria.js +1 -1
  42. package/src/directive/aria/aria.spec.js +1 -1
  43. package/src/directive/attrs/attrs.js +3 -3
  44. package/src/directive/attrs/attrs.spec.js +1 -1
  45. package/src/directive/attrs/boolean.spec.js +1 -1
  46. package/src/directive/attrs/element-style.spec.js +1 -1
  47. package/src/directive/attrs/src.spec.js +1 -1
  48. package/src/directive/bind/bind.js +1 -1
  49. package/src/directive/bind/bind.spec.js +1 -1
  50. package/src/directive/bind/bing-html.spec.js +1 -1
  51. package/src/directive/change/change.spec.js +1 -1
  52. package/src/directive/class/class.js +1 -1
  53. package/src/directive/class/class.spec.js +2 -2
  54. package/src/directive/cloak/cloak.spec.js +1 -1
  55. package/src/directive/controller/controller.spec.js +2 -2
  56. package/src/directive/events/click.spec.js +1 -1
  57. package/src/directive/events/event.spec.js +1 -1
  58. package/src/directive/events/events.js +2 -2
  59. package/src/directive/form/form.js +2 -2
  60. package/src/directive/form/form.spec.js +1 -1
  61. package/src/directive/if/if.js +2 -3
  62. package/src/directive/if/if.md +0 -1
  63. package/src/directive/if/if.spec.js +2 -2
  64. package/src/directive/include/include.js +3 -3
  65. package/src/directive/include/include.spec.js +2 -2
  66. package/src/directive/init/init.spec.js +1 -1
  67. package/src/directive/input/input.js +1 -1
  68. package/src/directive/input/input.spec.js +1 -1
  69. package/src/directive/messages/messages.js +1 -1
  70. package/src/directive/messages/messages.spec.js +3 -3
  71. package/src/directive/model/model.js +6 -6
  72. package/src/directive/model/model.spec.js +2 -2
  73. package/src/directive/model-options/model-options.js +1 -1
  74. package/src/directive/model-options/model-options.spec.js +2 -2
  75. package/src/directive/non-bindable/non-bindable.spec.js +1 -1
  76. package/src/directive/observe/observe.spec.js +1 -1
  77. package/src/directive/options/options.js +6 -2
  78. package/src/directive/options/options.spec.js +2 -2
  79. package/src/directive/ref/href.spec.js +2 -2
  80. package/src/directive/ref/ref.js +1 -1
  81. package/src/directive/repeat/repeat.js +263 -255
  82. package/src/directive/repeat/repeat.md +0 -22
  83. package/src/directive/repeat/repeat.spec.js +2 -115
  84. package/src/directive/script/script.spec.js +1 -1
  85. package/src/directive/select/select.js +2 -2
  86. package/src/directive/select/select.spec.js +2 -2
  87. package/src/directive/show-hide/show-hide.js +1 -3
  88. package/src/directive/show-hide/show-hide.md +0 -2
  89. package/src/directive/show-hide/show-hide.spec.js +1 -1
  90. package/src/directive/style/style.spec.js +1 -1
  91. package/src/directive/switch/switch.js +2 -4
  92. package/src/directive/switch/switch.spec.js +1 -51
  93. package/src/directive/transclude/transclude.js +2 -2
  94. package/src/directive/validators/validators.js +2 -2
  95. package/src/directive/validators/validators.spec.js +1 -1
  96. package/src/filters/filter.js +1 -1
  97. package/src/filters/filter.spec.js +2 -2
  98. package/src/filters/filters.js +1 -1
  99. package/src/filters/filters.spec.js +1 -1
  100. package/src/filters/limit-to.js +1 -1
  101. package/src/filters/limit-to.spec.js +1 -1
  102. package/src/filters/order-by.js +1 -1
  103. package/src/index.js +3 -9
  104. package/src/loader.js +10 -5
  105. package/src/router/common/trace.js +1 -1
  106. package/src/router/directives/state-directives.js +1 -1
  107. package/src/router/directives/state-directives.spec.js +1 -1
  108. package/src/router/directives/view-directive.js +2 -2
  109. package/src/router/directives/view-directive.spec.js +1 -1
  110. package/src/router/hooks/redirect-to.js +1 -1
  111. package/src/router/params/param-type.js +1 -1
  112. package/src/router/params/param-types.js +1 -1
  113. package/src/router/params/param.js +1 -1
  114. package/src/router/resolve/resolvable.js +1 -1
  115. package/src/router/resolve/resolve-context.js +1 -1
  116. package/src/router/state/state-builder.js +1 -1
  117. package/src/router/state/state-matcher.js +1 -1
  118. package/src/router/state/state-object.js +1 -1
  119. package/src/router/state/state-queue-manager.js +1 -1
  120. package/src/router/state/state-registry.js +1 -1
  121. package/src/router/state/state-service.js +1 -1
  122. package/src/router/state/state.spec.js +2 -2
  123. package/src/router/state/target-state.js +1 -1
  124. package/src/router/state/views.js +1 -1
  125. package/src/router/state-provider.js +1 -1
  126. package/src/router/template-factory.js +1 -1
  127. package/src/router/template-factory.spec.js +1 -1
  128. package/src/router/transition/hook-registry.js +1 -1
  129. package/src/router/transition/transition-service.js +1 -1
  130. package/src/router/transition/transition.js +1 -1
  131. package/src/router/url/url-config.js +1 -1
  132. package/src/router/url/url-matcher.js +1 -1
  133. package/src/router/url/url-rule.js +1 -1
  134. package/src/router/url/url-rules.js +1 -1
  135. package/src/router/url/url-service.js +6 -1
  136. package/src/router/url/url-service.spec.js +1 -1
  137. package/src/router/view/view.spec.js +1 -1
  138. package/src/router/view-hook.spec.js +1 -1
  139. package/src/router/view-scroll.spec.js +1 -1
  140. package/src/services/anchor-scroll.js +1 -1
  141. package/src/services/browser.js +2 -2
  142. package/src/services/cookie-reader.js +1 -1
  143. package/src/services/http/http.js +2 -2
  144. package/src/services/http/http.spec.js +1 -1
  145. package/src/services/http-backend/http-backend.js +1 -1
  146. package/src/services/log.js +1 -1
  147. package/src/services/template-request.js +1 -1
  148. package/src/shared/common.js +1 -1
  149. package/src/shared/jqlite/jqlite.js +9 -9
  150. package/src/shared/jqlite/jqlite.spec.js +11 -11
  151. package/src/shared/min-err.spec.js +6 -1
  152. package/src/shared/predicates.js +1 -1
  153. package/src/shared/strings.js +1 -1
  154. package/src/shared/test-utils.js +1 -1
  155. package/src/shared/utils.js +1 -1
  156. package/src/shared/utils.spec.js +1 -1
  157. package/src/types.js +0 -2
  158. package/types/animations/animate-css-driver.d.ts +1 -1
  159. package/types/animations/animate.d.ts +1 -1
  160. package/types/core/cache/cache.d.ts +1 -1
  161. package/types/core/compile/attributes.d.ts +2 -2
  162. package/types/core/compile/compile.d.ts +1 -1
  163. package/types/core/location/location.d.ts +1 -1
  164. package/types/directive/model/model.d.ts +1 -1
  165. package/types/directive/repeat/repeat.d.ts +0 -1
  166. package/types/loader.d.ts +2 -0
  167. package/types/services/browser.d.ts +1 -1
  168. package/types/shared/jqlite/jqlite.d.ts +1 -1
  169. package/types/shared/test-utils.d.ts +1 -1
  170. package/types/types.d.ts +1 -5
@@ -5,7 +5,7 @@ import {
5
5
  isObject,
6
6
  isString,
7
7
  isFunction,
8
- } from "../../shared/utils";
8
+ } from "../../shared/utils.js";
9
9
 
10
10
  const $controllerMinErr = minErr("$controller");
11
11
 
@@ -8,7 +8,7 @@ import {
8
8
  assertNotHasOwnProperty,
9
9
  isObject,
10
10
  assert,
11
- } from "../../shared/utils";
11
+ } from "../../shared/utils.js";
12
12
  import { INJECTOR_LITERAL } from "./ng-module";
13
13
  import { ProviderInjector, InjectorService } from "./internal-injector";
14
14
 
@@ -1,6 +1,6 @@
1
1
  import { Angular } from "../../loader";
2
2
  import { createInjector, annotate } from "./injector";
3
- import { valueFn, extend } from "../../shared/utils";
3
+ import { valueFn, extend } from "../../shared/utils.js";
4
4
 
5
5
  describe("injector.modules", () => {
6
6
  beforeEach(() => {
@@ -1,4 +1,4 @@
1
- import { assertArgFn, minErr } from "../../shared/utils";
1
+ import { assertArgFn, minErr } from "../../shared/utils.js";
2
2
  import { INJECTOR_LITERAL } from "./ng-module";
3
3
 
4
4
  const ARROW_ARG = /^([^(]+?)=>/;
@@ -4,7 +4,7 @@ import {
4
4
  isObject,
5
5
  isString,
6
6
  assert,
7
- } from "../../shared/utils";
7
+ } from "../../shared/utils.js";
8
8
 
9
9
  export const PROVIDE_LITERAL = "$provide";
10
10
  export const INJECTOR_LITERAL = "$injector";
@@ -1,4 +1,4 @@
1
- import { isObject } from "../../shared/utils";
1
+ import { isObject } from "../../shared/utils.js";
2
2
  import { filterFilter } from "../../filters/filter";
3
3
  import { jsonFilter } from "../../filters/filters";
4
4
  import { limitToFilter } from "../../filters/limit-to";
@@ -5,7 +5,7 @@ import {
5
5
  stringify,
6
6
  valueFn,
7
7
  extend,
8
- } from "../../shared/utils";
8
+ } from "../../shared/utils.js";
9
9
  import { constantWatchDelegate } from "../parse/parse.js";
10
10
 
11
11
  const $interpolateMinErr = minErr("$interpolate");
@@ -1,4 +1,4 @@
1
- import { isDefined, sliceArgs } from "../../shared/utils";
1
+ import { isDefined, sliceArgs } from "../../shared/utils.js";
2
2
 
3
3
  export function $IntervalFactoryProvider() {
4
4
  this.$get = [
@@ -1,5 +1,5 @@
1
1
  import { markQExceptionHandled } from "../q/q";
2
- import { minErr } from "../../shared/utils";
2
+ import { minErr } from "../../shared/utils.js";
3
3
 
4
4
  const $intervalMinErr = minErr("$interval");
5
5
 
@@ -1,4 +1,4 @@
1
- import { JQLite } from "../../shared/jqlite/jqlite";
1
+ import { JQLite } from "../../shared/jqlite/jqlite.js";
2
2
  import { urlResolve } from "../url-utils/url-utils";
3
3
  import {
4
4
  encodeUriSegment,
@@ -12,8 +12,8 @@ import {
12
12
  parseKeyValue,
13
13
  toInt,
14
14
  toKeyValue,
15
- } from "../../shared/utils";
16
- import { ScopePhase } from "../scope/scope";
15
+ } from "../../shared/utils.js";
16
+ import { ScopePhase } from "../scope/scope.js";
17
17
 
18
18
  /**
19
19
  * @typedef {Object} DefaultPorts
@@ -1,6 +1,6 @@
1
1
  import { Angular } from "../loader";
2
2
  import { createInjector } from "./di/injector";
3
- import { valueFn } from "../shared/utils";
3
+ import { valueFn } from "../shared/utils.js";
4
4
 
5
5
  describe("ngOn* event binding", () => {
6
6
  let $rootScope, module, injector, $compile;
@@ -1,4 +1,4 @@
1
- import { isDefined } from "../../shared/utils";
1
+ import { isDefined } from "../../shared/utils.js";
2
2
  import { ASTType } from "./ast-type";
3
3
 
4
4
  export const PURITY_ABSOLUTE = 1;
@@ -1,7 +1,7 @@
1
1
  import { Angular } from "../loader";
2
2
  import { createInjector } from "./di/injector";
3
- import { valueFn } from "../shared/utils";
4
- import { dealoc } from "../shared/jqlite/jqlite";
3
+ import { valueFn } from "../shared/utils.js";
4
+ import { dealoc } from "../shared/jqlite/jqlite.js";
5
5
 
6
6
  describe("ngProp*", () => {
7
7
  let $compile, $rootScope, compileProvider, $sce;
package/src/core/q/q.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  isError,
8
8
  toDebugString,
9
9
  isPromiseLike,
10
- } from "../../shared/utils";
10
+ } from "../../shared/utils.js";
11
11
 
12
12
  /**
13
13
  * @typedef {Object} QService
@@ -1,4 +1,4 @@
1
- import { JQLite, dealoc } from "../shared/jqlite/jqlite";
1
+ import { JQLite, dealoc } from "../shared/jqlite/jqlite.js";
2
2
  import { Angular } from "../loader";
3
3
 
4
4
  describe("$rootElement", () => {
@@ -1,4 +1,4 @@
1
- import { isDefined } from "../../shared/utils";
1
+ import { isDefined } from "../../shared/utils.js";
2
2
  import { urlResolve } from "../url-utils/url-utils";
3
3
 
4
4
  /**
@@ -11,9 +11,9 @@ import {
11
11
  lowercase,
12
12
  minErr,
13
13
  shallowCopy,
14
- } from "../../shared/utils";
14
+ } from "../../shared/utils.js";
15
15
 
16
- import { snakeToCamel } from "../../shared/jqlite/jqlite";
16
+ import { snakeToCamel } from "../../shared/jqlite/jqlite.js";
17
17
 
18
18
  const $sceMinErr = minErr("$sce");
19
19
 
@@ -1,7 +1,7 @@
1
1
  import { createInjector } from "../di/injector";
2
2
 
3
3
  import { Angular } from "../../loader";
4
- import { adjustMatcher } from "./sce";
4
+ import { adjustMatcher } from "./sce.js";
5
5
 
6
6
  describe("SCE", () => {
7
7
  let $sce, $rootScope;
@@ -9,7 +9,7 @@ import {
9
9
  isNumberNaN,
10
10
  arrayRemove,
11
11
  equals,
12
- } from "../../shared/utils";
12
+ } from "../../shared/utils.js";
13
13
 
14
14
  /**
15
15
  * @enum {number}
@@ -1,5 +1,5 @@
1
1
  import { $$asyncQueue, Scope } from "./scope";
2
- import { extend, sliceArgs } from "../../shared/utils";
2
+ import { extend, sliceArgs } from "../../shared/utils.js";
3
3
  import { Angular } from "../../loader";
4
4
  import { createInjector } from "../di/injector";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { markQExceptionHandled } from "../q/q";
2
- import { isDefined, minErr, sliceArgs } from "../../shared/utils";
2
+ import { isDefined, minErr, sliceArgs } from "../../shared/utils.js";
3
3
 
4
4
  const $timeoutMinErr = minErr("$timeout");
5
5
 
@@ -1,4 +1,4 @@
1
- import { isString } from "../../shared/utils";
1
+ import { isString } from "../../shared/utils.js";
2
2
 
3
3
  /**
4
4
  * HTTP protocol
@@ -1,4 +1,4 @@
1
- import { extend } from "../../shared/utils";
1
+ import { extend } from "../../shared/utils.js";
2
2
 
3
3
  const ARIA_DISABLE_ATTR = "ngAriaDisable";
4
4
 
@@ -1,6 +1,6 @@
1
1
  import { createInjector } from "../../core/di/injector";
2
2
  import { Angular } from "../../loader";
3
- import { dealoc } from "../../shared/jqlite/jqlite";
3
+ import { dealoc } from "../../shared/jqlite/jqlite.js";
4
4
 
5
5
  describe("$aria", () => {
6
6
  let scope;
@@ -1,6 +1,6 @@
1
- import { BOOLEAN_ATTR } from "../../shared/jqlite/jqlite";
2
- import { directiveNormalize } from "../../shared/utils";
3
- import { ALIASED_ATTR } from "../../shared/constants";
1
+ import { BOOLEAN_ATTR } from "../../shared/jqlite/jqlite.js";
2
+ import { directiveNormalize } from "../../shared/utils.js";
3
+ import { ALIASED_ATTR } from "../../shared/constants.js";
4
4
 
5
5
  export const REGEX_STRING_REGEXP = /^\/(.+)\/([a-z]*)$/;
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { Angular } from "../../loader";
2
2
  import { createInjector } from "../../core/di/injector";
3
- import { dealoc } from "../../shared/jqlite/jqlite";
3
+ import { dealoc } from "../../shared/jqlite/jqlite.js";
4
4
 
5
5
  describe("ngSrcset", () => {
6
6
  let $scope;
@@ -1,6 +1,6 @@
1
1
  import { Angular } from "../../loader";
2
2
  import { createInjector } from "../../core/di/injector";
3
- import { dealoc } from "../../shared/jqlite/jqlite";
3
+ import { dealoc } from "../../shared/jqlite/jqlite.js";
4
4
 
5
5
  describe("boolean attr directives", () => {
6
6
  let element, $rootScope, $compile, $rootElement;
@@ -1,6 +1,6 @@
1
1
  import { Angular } from "../../loader";
2
2
  import { createInjector } from "../../core/di/injector";
3
- import { dealoc, JQLite } from "../../shared/jqlite/jqlite";
3
+ import { dealoc, JQLite } from "../../shared/jqlite/jqlite.js";
4
4
 
5
5
  describe("style", () => {
6
6
  let $rootScope;
@@ -1,6 +1,6 @@
1
1
  import { Angular } from "../../loader";
2
2
  import { createInjector } from "../../core/di/injector";
3
- import { dealoc } from "../../shared/jqlite/jqlite";
3
+ import { dealoc } from "../../shared/jqlite/jqlite.js";
4
4
 
5
5
  describe("ngSrc", () => {
6
6
  let $scope;
@@ -1,4 +1,4 @@
1
- import { isUndefined, stringify } from "../../shared/utils";
1
+ import { isUndefined, stringify } from "../../shared/utils.js";
2
2
 
3
3
  /**
4
4
  * @returns {import('../../types').Directive}
@@ -1,5 +1,5 @@
1
1
  import { Angular } from "../../loader";
2
- import { dealoc } from "../../shared/jqlite/jqlite";
2
+ import { dealoc } from "../../shared/jqlite/jqlite.js";
3
3
 
4
4
  describe("ng-bind", () => {
5
5
  let $rootScope;
@@ -1,5 +1,5 @@
1
1
  import { createInjector } from "../../core/di/injector";
2
- import { forEach } from "../../shared/utils";
2
+ import { forEach } from "../../shared/utils.js";
3
3
  import { Angular } from "../../loader";
4
4
 
5
5
  describe("ngBindHtml", () => {
@@ -1,5 +1,5 @@
1
1
  import { createInjector } from "../../core/di/injector";
2
- import { dealoc } from "../../shared/jqlite/jqlite";
2
+ import { dealoc } from "../../shared/jqlite/jqlite.js";
3
3
  import { Angular } from "../../loader";
4
4
 
5
5
  describe("ngChange", () => {
@@ -1,4 +1,4 @@
1
- import { hasAnimate, isObject, isString } from "../../shared/utils";
1
+ import { hasAnimate, isObject, isString } from "../../shared/utils.js";
2
2
 
3
3
  function classDirective(name, selector) {
4
4
  name = `ngClass${name}`;
@@ -1,6 +1,6 @@
1
- import { dealoc, JQLite } from "../../shared/jqlite/jqlite";
1
+ import { dealoc, JQLite } from "../../shared/jqlite/jqlite.js";
2
2
  import { Angular } from "../../loader";
3
- import { valueFn } from "../../shared/utils";
3
+ import { valueFn } from "../../shared/utils.js";
4
4
 
5
5
  describe("ngClass", () => {
6
6
  let element;
@@ -1,4 +1,4 @@
1
- import { dealoc, JQLite } from "../../shared/jqlite/jqlite";
1
+ import { dealoc, JQLite } from "../../shared/jqlite/jqlite.js";
2
2
  import { Angular } from "../../loader";
3
3
  import { createInjector } from "../../core/di/injector";
4
4
 
@@ -1,7 +1,7 @@
1
1
  import { Angular } from "../../loader";
2
2
  import { createInjector } from "../../core/di/injector";
3
- import { dealoc, JQLite } from "../../shared/jqlite/jqlite";
4
- import { bind } from "../../shared/utils";
3
+ import { dealoc, JQLite } from "../../shared/jqlite/jqlite.js";
4
+ import { bind } from "../../shared/utils.js";
5
5
 
6
6
  describe("ngController", () => {
7
7
  let angular;
@@ -1,4 +1,4 @@
1
- import { dealoc } from "../../shared/jqlite/jqlite";
1
+ import { dealoc } from "../../shared/jqlite/jqlite.js";
2
2
  import { Angular } from "../../loader";
3
3
  import { createInjector } from "../../core/di/injector";
4
4
 
@@ -1,6 +1,6 @@
1
1
  import { Angular } from "../../loader";
2
2
  import { createInjector } from "../../core/di/injector";
3
- import { dealoc } from "../../shared/jqlite/jqlite";
3
+ import { dealoc } from "../../shared/jqlite/jqlite.js";
4
4
 
5
5
  describe("event directives", () => {
6
6
  let angular;
@@ -1,5 +1,5 @@
1
- import { directiveNormalize } from "../../shared/utils";
2
- import { ScopePhase } from "../../core/scope/scope";
1
+ import { directiveNormalize } from "../../shared/utils.js";
2
+ import { ScopePhase } from "../../core/scope/scope.js";
3
3
 
4
4
  /*
5
5
  * A collection of directives that allows creation of custom event handlers that are defined as
@@ -7,13 +7,13 @@ import {
7
7
  snakeCase,
8
8
  extend,
9
9
  isUndefined,
10
- } from "../../shared/utils";
10
+ } from "../../shared/utils.js";
11
11
  import {
12
12
  PRISTINE_CLASS,
13
13
  DIRTY_CLASS,
14
14
  VALID_CLASS,
15
15
  INVALID_CLASS,
16
- } from "../../shared/constants";
16
+ } from "../../shared/constants.js";
17
17
 
18
18
  export const nullFormCtrl = {
19
19
  $addControl: () => {},
@@ -1,5 +1,5 @@
1
1
  import { Angular } from "../../loader";
2
- import { dealoc, JQLite } from "../../shared/jqlite/jqlite";
2
+ import { dealoc, JQLite } from "../../shared/jqlite/jqlite.js";
3
3
  import { FormController } from "./form";
4
4
 
5
5
  describe("form", () => {
@@ -1,6 +1,6 @@
1
1
  import { domInsert } from "../../animations/animate";
2
- import { getBlockNodes } from "../../shared/jqlite/jqlite";
3
- import { hasAnimate } from "../../shared/utils";
2
+ import { getBlockNodes } from "../../shared/jqlite/jqlite.js";
3
+ import { hasAnimate } from "../../shared/utils.js";
4
4
 
5
5
  ngIfDirective.$inject = ["$animate"];
6
6
  /**
@@ -11,7 +11,6 @@ ngIfDirective.$inject = ["$animate"];
11
11
  */
12
12
  export function ngIfDirective($animate) {
13
13
  return {
14
- multiElement: true,
15
14
  transclude: "element",
16
15
  priority: 600,
17
16
  terminal: true,
@@ -1,6 +1,5 @@
1
1
  @name ngIf
2
2
  @restrict A
3
- @multiElement
4
3
 
5
4
  @description
6
5
  The `ngIf` directive removes or recreates a portion of the DOM tree based on an
@@ -1,5 +1,5 @@
1
- import { dealoc, JQLite } from "../../shared/jqlite/jqlite";
2
- import { valueFn } from "../../shared/utils";
1
+ import { dealoc, JQLite } from "../../shared/jqlite/jqlite.js";
2
+ import { valueFn } from "../../shared/utils.js";
3
3
  import { Angular } from "../../loader";
4
4
  import { wait } from "../../shared/test-utils";
5
5
 
@@ -1,6 +1,6 @@
1
- import { isDefined } from "../../shared/utils";
2
- import { buildFragment } from "../../shared/jqlite/jqlite";
3
- import { hasAnimate } from "../../shared/utils";
1
+ import { isDefined } from "../../shared/utils.js";
2
+ import { buildFragment } from "../../shared/jqlite/jqlite.js";
3
+ import { hasAnimate } from "../../shared/utils.js";
4
4
  import { domInsert } from "../../animations/animate";
5
5
 
6
6
  export const ngIncludeDirective = [
@@ -1,7 +1,7 @@
1
- import { dealoc, JQLite } from "../../shared/jqlite/jqlite";
1
+ import { dealoc, JQLite } from "../../shared/jqlite/jqlite.js";
2
2
  import { Angular } from "../../loader";
3
3
  import { createInjector } from "../../core/di/injector";
4
- import { valueFn } from "../../shared/utils";
4
+ import { valueFn } from "../../shared/utils.js";
5
5
  import { wait } from "../../shared/test-utils";
6
6
 
7
7
  describe("ngInclude", () => {
@@ -1,4 +1,4 @@
1
- import { dealoc, JQLite } from "../../shared/jqlite/jqlite";
1
+ import { dealoc, JQLite } from "../../shared/jqlite/jqlite.js";
2
2
  import { Angular } from "../../loader";
3
3
  import { createInjector } from "../../core/di/injector";
4
4
 
@@ -13,7 +13,7 @@ import {
13
13
  timezoneToOffset,
14
14
  nextUid,
15
15
  equals,
16
- } from "../../shared/utils";
16
+ } from "../../shared/utils.js";
17
17
  import { ngModelMinErr } from "./../model/model";
18
18
 
19
19
  // Regex code was initially obtained from SO prior to modification: https://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime#answer-3143231
@@ -1,5 +1,5 @@
1
1
  import { Angular } from "../../loader";
2
- import { dealoc, JQLite } from "../../shared/jqlite/jqlite";
2
+ import { dealoc, JQLite } from "../../shared/jqlite/jqlite.js";
3
3
  import { EMAIL_REGEXP, ISO_DATE_REGEXP, URL_REGEXP } from "./input";
4
4
 
5
5
  describe("input", () => {
@@ -1,4 +1,4 @@
1
- import { isString } from "../../shared/utils";
1
+ import { isString } from "../../shared/utils.js";
2
2
 
3
3
  const ACTIVE_CLASS = "ng-active";
4
4
  const INACTIVE_CLASS = "ng-inactive";
@@ -1,8 +1,8 @@
1
1
  import { createInjector } from "../../core/di/injector";
2
- import { countWatchers } from "../../core/scope/scope";
2
+ import { countWatchers } from "../../core/scope/scope.js";
3
3
  import { Angular } from "../../loader";
4
- import { isString } from "../../shared/utils";
5
- import { JQLite } from "../../shared/jqlite/jqlite";
4
+ import { isString } from "../../shared/utils.js";
5
+ import { JQLite } from "../../shared/jqlite/jqlite.js";
6
6
 
7
7
  describe("ngMessages", () => {
8
8
  let $rootScope, $compile, $templateCache;
@@ -7,7 +7,7 @@ import {
7
7
  TOUCHED_CLASS,
8
8
  UNTOUCHED_CLASS,
9
9
  VALID_CLASS,
10
- } from "../../shared/constants";
10
+ } from "../../shared/constants.js";
11
11
  import {
12
12
  minErr,
13
13
  isNumber,
@@ -18,7 +18,7 @@ import {
18
18
  hasAnimate,
19
19
  isBoolean,
20
20
  snakeCase,
21
- } from "../../shared/utils";
21
+ } from "../../shared/utils.js";
22
22
  import {
23
23
  isObjectEmpty,
24
24
  nullFormCtrl,
@@ -26,8 +26,8 @@ import {
26
26
  setupValidity,
27
27
  } from "../form/form";
28
28
  import { defaultModelOptions } from "../model-options/model-options";
29
- import { startingTag } from "../../shared/jqlite/jqlite";
30
- import { ScopePhase } from "../../core/scope/scope";
29
+ import { startingTag } from "../../shared/jqlite/jqlite.js";
30
+ import { ScopePhase } from "../../core/scope/scope.js";
31
31
 
32
32
  export const ngModelMinErr = minErr("ngModel");
33
33
 
@@ -86,7 +86,7 @@ export class NgModelController {
86
86
  * @param {import('../../core/exception-handler').ErrorHandler} $exceptionHandler
87
87
  * @param {import('../../core/compile/attributes').Attributes} $attr
88
88
  * @param {import('../../shared/jqlite/jqlite').JQLite} $element
89
- * @param {import("../../core/parse/parse").ParseService} $parse
89
+ * @param {import("../../core/parse/parse.js").ParseService} $parse
90
90
  * @param {*} $animate
91
91
  * @param {*} $timeout
92
92
  * @param {import("../../core/q/q").QPromise<any>} $q
@@ -146,7 +146,7 @@ export class NgModelController {
146
146
  this.$$parsedNgModel = $parse($attr["ngModel"]);
147
147
  this.$$parsedNgModelAssign = this.$$parsedNgModel.assign;
148
148
 
149
- /** @type {import("../../core/parse/parse").CompiledExpression|((Scope) => any)} */
149
+ /** @type {import("../../core/parse/parse.js").CompiledExpression|((Scope) => any)} */
150
150
  this.$$ngModelGet = this.$$parsedNgModel;
151
151
  this.$$ngModelSet = this.$$parsedNgModelAssign;
152
152
  this.$$pendingDebounce = null;
@@ -1,7 +1,7 @@
1
- import { JQLite, dealoc } from "../../shared/jqlite/jqlite";
1
+ import { JQLite, dealoc } from "../../shared/jqlite/jqlite.js";
2
2
  import { Angular } from "../../loader";
3
3
  import { NgModelController } from "./model";
4
- import { isDefined, valueFn, isObject } from "../../shared/utils";
4
+ import { isDefined, valueFn, isObject } from "../../shared/utils.js";
5
5
  import { browserTrigger } from "../../shared/test-utils";
6
6
 
7
7
  describe("ngModel", () => {
@@ -1,4 +1,4 @@
1
- import { isDefined, trim } from "../../shared/utils";
1
+ import { isDefined, trim } from "../../shared/utils.js";
2
2
 
3
3
  const DEFAULT_REGEXP = /(\s+|^)default(\s+|$)/;
4
4
 
@@ -1,8 +1,8 @@
1
1
  import { defaultModelOptions } from "./model-options";
2
- import { dealoc, JQLite } from "../../shared/jqlite/jqlite";
2
+ import { dealoc, JQLite } from "../../shared/jqlite/jqlite.js";
3
3
  import { Angular } from "../../loader";
4
4
  import { createInjector } from "../../core/di/injector";
5
- import { valueFn } from "../../shared/utils";
5
+ import { valueFn } from "../../shared/utils.js";
6
6
 
7
7
  function changeGivenInputTo(inputElm, val) {
8
8
  inputElm[0].value = val;
@@ -1,4 +1,4 @@
1
- import { dealoc } from "../../shared/jqlite/jqlite";
1
+ import { dealoc } from "../../shared/jqlite/jqlite.js";
2
2
  import { Angular } from "../../loader";
3
3
  import { createInjector } from "../../core/di/injector";
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { Angular } from "../../loader";
2
- import { JQLite } from "../../shared/jqlite/jqlite";
2
+ import { JQLite } from "../../shared/jqlite/jqlite.js";
3
3
 
4
4
  describe("observe", () => {
5
5
  let $compile, $scope, $rootScope, element, observerSpy;
@@ -1,4 +1,8 @@
1
- import { JQLite, removeElement, startingTag } from "../../shared/jqlite/jqlite";
1
+ import {
2
+ JQLite,
3
+ removeElement,
4
+ startingTag,
5
+ } from "../../shared/jqlite/jqlite.js";
2
6
  import {
3
7
  equals,
4
8
  hashKey,
@@ -6,7 +10,7 @@ import {
6
10
  isArrayLike,
7
11
  isDefined,
8
12
  minErr,
9
- } from "../../shared/utils";
13
+ } from "../../shared/utils.js";
10
14
 
11
15
  const ngOptionsMinErr = minErr("ngOptions");
12
16
 
@@ -1,5 +1,5 @@
1
1
  import { createInjector } from "../../core/di/injector";
2
- import { JQLite, dealoc } from "../../shared/jqlite/jqlite";
2
+ import { JQLite, dealoc } from "../../shared/jqlite/jqlite.js";
3
3
  import { Angular } from "../../loader";
4
4
  import {
5
5
  isBoolean,
@@ -7,7 +7,7 @@ import {
7
7
  equals,
8
8
  isString,
9
9
  isFunction,
10
- } from "../../shared/utils";
10
+ } from "../../shared/utils.js";
11
11
  import { browserTrigger } from "../../shared/test-utils";
12
12
 
13
13
  describe("ngOptions", () => {