@angular-wave/angular.ts 0.0.35 → 0.0.36
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/.eslintrc.cjs +1 -1
- package/Makefile +4 -0
- package/dist/angular-ts.esm.js +1 -1
- package/dist/angular-ts.umd.js +1 -1
- package/index.html +3 -102
- package/package.json +2 -2
- package/playwright.config.ts +3 -2
- package/public/public/my_other_directive.html +1 -0
- package/{test → src}/angular.spec.js +5 -5
- package/{test → src}/binding.spec.js +3 -3
- package/src/core/{animate-runner.js → animate/animate-runner.js} +1 -1
- package/src/core/animate/animate.html +18 -0
- package/src/core/{animate.js → animate/animate.js} +4 -5
- package/{test/core → src/core/animate}/animate.spec.js +1 -1
- package/src/core/cache/cache-factor.html +18 -0
- package/{test/core → src/core/cache}/cache-factor.spec.js +2 -2
- package/src/core/cache/cache-factor.test.js +11 -0
- package/src/core/compile/compile.html +18 -0
- package/src/core/{compile.js → compile/compile.js} +25 -21
- package/{test/core → src/core/compile}/compile.spec.js +65 -68
- package/src/core/compile/compile.test.js +12 -0
- package/src/core/controller/controller.html +21 -0
- package/src/core/{controller.js → controller/controller.js} +1 -1
- package/{test/core/controller-provider.spec.js → src/core/controller/controller.spec.js} +2 -2
- package/src/core/controller/controller.test.js +11 -0
- package/{test → src}/core/cookie-reader.spec.js +2 -2
- package/{test → src}/core/document.spec.js +3 -3
- package/src/core/filter/filter.html +18 -0
- package/src/core/{filter.js → filter/filter.js} +5 -5
- package/{test/core → src/core/filter}/filter.spec.js +2 -2
- package/src/core/filter/filter.test.js +11 -0
- package/src/core/interpolate/interpolate.html +21 -0
- package/src/core/{interpolate.js → interpolate/interpolate.js} +1 -1
- package/{test/core → src/core/interpolate}/interpolate.spec.js +2 -2
- package/src/core/interpolate/interpolate.test.js +11 -0
- package/src/core/{interval-factory.js → interval/interval-factory.js} +2 -1
- package/src/core/interval/interval.html +18 -0
- package/src/core/{interval.js → interval/interval.js} +3 -2
- package/{test/core → src/core/interval}/interval.spec.js +6 -10
- package/src/core/interval/interval.test.js +12 -0
- package/src/core/{location.js → location/location.js} +4 -3
- package/{test/core → src/core/location}/location.spec.js +3 -3
- package/{test → src}/core/on.spec.js +3 -3
- package/src/core/parser/parse.js +2 -3
- package/{test/core → src/core/parser}/parse.spec.js +4 -4
- package/{test → src}/core/prop.spec.js +4 -4
- package/{test/core → src/core/pubsub}/pubsub.spec.js +1 -1
- package/src/core/{q.js → q/q.js} +1 -1
- package/{test/core → src/core/q}/q.spec.js +3 -3
- package/{test → src}/core/root-element.spec.js +3 -3
- package/src/core/{sanitize-uri.js → sanitize/sanitize-uri.js} +2 -2
- package/{test/core → src/core/sanitize}/sanitize-uri.spec.js +1 -1
- package/src/core/{sce.js → sce/sce.js} +3 -3
- package/{test/core → src/core/sce}/sce.spec.js +3 -3
- package/src/core/{root-scope.js → scope/scope.js} +33 -35
- package/{test/core → src/core/scope}/scope.spec.js +5 -5
- package/src/core/{timeout.js → timeout/timeout.js} +2 -2
- package/{test/core → src/core/timeout}/timeout.spec.js +2 -2
- package/src/core/{urlUtils.js → url-utils/url-utils.js} +1 -1
- package/{test/core → src/core/url-utils}/url-utils.spec.js +1 -1
- package/src/directive/attrs/attrs.html +18 -0
- package/src/directive/{attrs.js → attrs/attrs.js} +3 -3
- package/{test/directive/scrset.spec.js → src/directive/attrs/attrs.spec.js} +3 -3
- package/{test/directive → src/directive/attrs}/boolean.spec.js +3 -3
- package/{test/directive → src/directive/attrs}/element-style.spec.js +3 -3
- package/{test/directive → src/directive/attrs}/src.spec.js +3 -3
- package/src/directive/attrs/srcset.test.js +11 -0
- package/src/directive/bind/bind.html +18 -0
- package/src/directive/{bind.js → bind/bind.js} +1 -1
- package/{test/directive → src/directive/bind}/bind.spec.js +3 -3
- package/src/directive/bind/bind.test.js +11 -0
- package/{test/sanitize → src/directive/bind}/bing-html.spec.js +3 -3
- package/src/directive/change/change.html +18 -0
- package/{test/directive → src/directive/change}/change.spec.js +3 -3
- package/src/directive/change/change.test.js +11 -0
- package/src/directive/class/class.html +18 -0
- package/src/directive/{class.js → class/class.js} +3 -3
- package/{test/directive → src/directive/class}/class.spec.js +6 -5
- package/src/directive/class/class.test.js +11 -0
- package/src/directive/cloak/cloak.html +18 -0
- package/{test/directive → src/directive/cloak}/cloak.spec.js +3 -3
- package/src/directive/cloak/cloak.test.js +11 -0
- package/src/directive/controller/controller.html +21 -0
- package/{test/directive → src/directive/controller}/controller.spec.js +5 -5
- package/src/directive/controller/controller.test.js +11 -0
- package/{test/directive → src/directive/events}/click.spec.js +3 -3
- package/{test/directive → src/directive/events}/event.spec.js +4 -4
- package/src/directive/events/events.html +18 -0
- package/src/directive/{events.js → events/events.js} +2 -2
- package/src/directive/events/events.test.js +11 -0
- package/src/directive/form/form.html +18 -0
- package/src/directive/{form.js → form/form.js} +2 -2
- package/{test/directive → src/directive/form}/form.spec.js +5 -5
- package/src/directive/form/form.test.js +11 -0
- package/src/directive/if/if.html +18 -0
- package/src/directive/{if.js → if/if.js} +1 -2
- package/src/directive/if/if.md +77 -0
- package/{test/directive → src/directive/if}/if.spec.js +16 -16
- package/src/directive/if/if.test.js +12 -0
- package/src/directive/include/include.html +18 -0
- package/src/directive/{include.js → include/include.js} +2 -2
- package/{test/directive → src/directive/include}/include.spec.js +52 -71
- package/src/directive/include/include.test.js +12 -0
- package/src/directive/init/init.html +18 -0
- package/{test/directive → src/directive/init}/init.spec.js +4 -4
- package/src/directive/init/init.test.js +11 -0
- package/src/directive/input/input.html +18 -0
- package/src/directive/{input.js → input/input.js} +2 -2
- package/{test/directive → src/directive/input}/input.spec.js +5 -9
- package/src/directive/input/input.test.js +11 -0
- package/src/directive/list/list.html +18 -0
- package/src/directive/{list.js → list/list.js} +1 -1
- package/{test/directive → src/directive/list}/list.spec.js +3 -3
- package/src/directive/list/list.test.js +11 -0
- package/src/directive/model/model.html +18 -0
- package/src/directive/{model.js → model/model.js} +10 -6
- package/{test/directive → src/directive/model}/model.spec.js +8 -8
- package/src/directive/model/model.test.js +11 -0
- package/src/directive/model-options/model-option.test.js +11 -0
- package/src/directive/model-options/model-options.html +21 -0
- package/src/directive/{model-options.js → model-options/model-options.js} +1 -1
- package/{test/directive → src/directive/model-options}/model-options.spec.js +7 -7
- package/src/directive/non-bindable/non-bindable.html +21 -0
- package/{test/directive → src/directive/non-bindable}/non-bindable.spec.js +3 -3
- package/src/directive/non-bindable/non-bindable.test.js +11 -0
- package/src/directive/options/options.html +21 -0
- package/src/directive/{options.js → options/options.js} +8 -6
- package/{test/directive → src/directive/options}/options.spec.js +5 -5
- package/src/directive/options/options.test.js +11 -0
- package/src/directive/ref/href.html +18 -0
- package/{test/directive → src/directive/ref}/href.spec.js +4 -4
- package/src/directive/ref/href.test.js +17 -0
- package/src/directive/ref/ref.html +18 -0
- package/src/directive/{ref.js → ref/ref.js} +1 -1
- package/{test/directive → src/directive/ref}/ref.spec.js +2 -2
- package/src/directive/repeat/repeat.html +18 -0
- package/src/directive/{repeat.js → repeat/repeat.js} +13 -13
- package/{test/directive → src/directive/repeat}/repeat.spec.js +8 -9
- package/src/directive/repeat/repeat.test.js +11 -0
- package/src/directive/script/script.html +18 -0
- package/{test/directive → src/directive/script}/script.spec.js +3 -3
- package/src/directive/script/script.test.js +11 -0
- package/src/directive/select/select.html +18 -0
- package/src/directive/{select.js → select/select.js} +2 -2
- package/{test/directive → src/directive/select}/select.spec.js +5 -5
- package/src/directive/select/select.test.js +11 -0
- package/src/directive/show-hide/show-hide.html +21 -0
- package/{test/directive → src/directive/show-hide}/show-hide.spec.js +3 -3
- package/src/directive/show-hide/show-hide.test.js +11 -0
- package/src/directive/style/style.html +18 -0
- package/{test/directive → src/directive/style}/style.spec.js +3 -3
- package/src/directive/style/style.test.js +11 -0
- package/src/directive/switch/switch.html +18 -0
- package/src/directive/{switch.js → switch/switch.js} +3 -3
- package/{test/directive → src/directive/switch}/switch.spec.js +3 -3
- package/src/directive/switch/switch.test.js +11 -0
- package/src/directive/{transclude.js → transclude/transclude.js} +2 -2
- package/src/directive/validators/validators.html +21 -0
- package/src/directive/{validators.js → validators/validators.js} +3 -3
- package/{test/directive → src/directive/validators}/validators.spec.js +3 -3
- package/src/directive/validators/validators.test.js +11 -0
- package/{test/aria → src/exts}/aria.spec.js +3 -3
- package/{test/messages → src/exts}/messages.spec.js +5 -5
- package/{test/filter → src/filters}/filter.spec.js +10 -5
- package/{test/filter → src/filters}/filters.spec.js +3 -3
- package/{test/filter → src/filters}/limit-to.spec.js +3 -3
- package/{test/filter → src/filters}/order-by.spec.js +2 -2
- package/src/injector.js +1 -2
- package/{test → src}/injector.spec.js +4 -4
- package/src/jqLite.js +1 -1
- package/{test → src}/jqlite.spec.js +6 -6
- package/src/loader.js +1 -1
- package/{test → src}/loader.spec.js +2 -2
- package/{test → src}/min-err.spec.js +2 -2
- package/src/public.js +46 -43
- package/{test → src}/public.spec.js +2 -2
- package/{test/router → src/router/common}/glob.spec.js +1 -1
- package/src/router/common/glob.test.js +11 -0
- package/{test → src}/router/services.spec.js +2 -2
- package/src/router/state/state-service.js +1 -1
- package/{test/router/ng-state-builder.spec.js → src/router/state-builder.spec.js} +1 -1
- package/{test → src}/router/state-directives.spec.js +3 -3
- package/{test → src}/router/state-filter.spec.js +2 -2
- package/{test → src}/router/state.spec.js +5 -5
- package/{test → src}/router/template-factory.spec.js +3 -3
- package/src/router/transition/transition-hook.js +1 -1
- package/{test → src}/router/url-service.spec.js +4 -4
- package/{test → src}/router/view-directive.spec.js +3 -3
- package/{test → src}/router/view-hook.spec.js +3 -3
- package/{test → src}/router/view-scroll.spec.js +3 -3
- package/{test → src}/router/view.spec.js +12 -12
- package/src/services/browser.js +1 -1
- package/src/services/cache-factory.js +5 -11
- package/src/services/{http.js → http/http.js} +5 -6
- package/{test/core → src/services/http}/http.spec.js +3 -3
- package/{test/core → src/services/http}/template-request.spec.js +2 -2
- package/src/services/{http-backend.js → http-backend/http-backend.js} +2 -2
- package/{test/core → src/services/http-backend}/http-backend.spec.js +3 -3
- package/src/services/template-request.js +1 -1
- package/{test → src}/shared/common.spec.js +4 -4
- package/{test → src}/shared/hof.spec.js +1 -1
- package/{test → src}/shared/strings.spec.js +1 -1
- package/{test → src/shared}/test-utils.js +1 -1
- package/src/shared/utils.js +3 -18
- package/{test → src}/shared/utils.spec.js +1 -1
- package/tsconfig.json +1 -1
- package/types/animations/animate-cache.d.ts +12 -0
- package/types/animations/animate-children-directive.d.ts +84 -0
- package/types/animations/animate-swap.d.ts +103 -0
- package/types/animations/animation.d.ts +14 -0
- package/types/animations/module.d.ts +750 -0
- package/types/animations/raf-scheduler.d.ts +5 -0
- package/types/animations/shared.d.ts +65 -0
- package/types/constants.d.ts +18 -0
- package/types/core/animate-css.d.ts +25 -0
- package/types/core/cache.d.ts +25 -0
- package/types/core/compile.d.ts +206 -0
- package/types/core/controller.d.ts +42 -0
- package/types/core/exception-handler.d.ts +46 -0
- package/types/core/filter.d.ts +9 -0
- package/types/core/interpolate.d.ts +83 -0
- package/types/core/interval-factory.d.ts +21 -0
- package/types/core/interval.d.ts +4 -0
- package/types/core/location.d.ts +234 -0
- package/types/core/pubsub.d.ts +164 -0
- package/types/core/q.d.ts +33 -0
- package/types/core/root-scope.d.ts +754 -0
- package/types/core/sanitize-uri.d.ts +57 -0
- package/types/core/sce.d.ts +432 -0
- package/types/core/task-tracker-factory.d.ts +50 -0
- package/types/core/timeout.d.ts +31 -0
- package/types/core/urlUtils.d.ts +98 -0
- package/types/directive/attrs.d.ts +176 -0
- package/types/directive/bind.d.ts +21 -0
- package/types/directive/change.d.ts +4 -0
- package/types/directive/class.d.ts +125 -0
- package/types/directive/cloak.d.ts +4 -0
- package/types/directive/controller.d.ts +6 -0
- package/types/directive/events.d.ts +12 -0
- package/types/directive/form.d.ts +230 -0
- package/types/directive/if.d.ts +17 -0
- package/types/directive/include.d.ts +33 -0
- package/types/directive/init.d.ts +4 -0
- package/types/directive/input.d.ts +192 -0
- package/types/directive/list.d.ts +4 -0
- package/types/directive/model.d.ts +672 -0
- package/types/directive/non-bindable.d.ts +5 -0
- package/types/directive/options.d.ts +16 -0
- package/types/directive/ref.d.ts +11 -0
- package/types/directive/repeat.d.ts +23 -0
- package/types/directive/script.d.ts +23 -0
- package/types/directive/show-hide.d.ts +234 -0
- package/types/directive/style.d.ts +4 -0
- package/types/directive/switch.d.ts +23 -0
- package/types/directive/transclude.d.ts +15 -0
- package/types/directive/validators.d.ts +173 -0
- package/types/exts/aria.d.ts +1 -0
- package/types/exts/messages.d.ts +1 -0
- package/types/filters/filter.d.ts +4 -0
- package/types/filters/filters.d.ts +38 -0
- package/types/filters/limit-to.d.ts +4 -0
- package/types/filters/order-by.d.ts +11 -0
- package/types/jqLite.d.ts +57 -0
- package/types/router/common/coreservices.d.ts +4 -0
- package/types/router/common/glob.d.ts +60 -0
- package/types/router/common/queue.d.ts +15 -0
- package/types/router/common/trace.d.ts +72 -0
- package/types/router/directives/view-directive.d.ts +160 -0
- package/types/router/globals.d.ts +30 -0
- package/types/router/hooks/core-resolvables.d.ts +2 -0
- package/types/router/hooks/ignored-transition.d.ts +1 -0
- package/types/router/hooks/invalid-transition.d.ts +1 -0
- package/types/router/hooks/lazy-load.d.ts +42 -0
- package/types/router/hooks/on-enter-exit-retain.d.ts +3 -0
- package/types/router/hooks/redirect-to.d.ts +4 -0
- package/types/router/hooks/resolve.d.ts +4 -0
- package/types/router/hooks/update-globals.d.ts +1 -0
- package/types/router/hooks/url.d.ts +5 -0
- package/types/router/hooks/views.d.ts +5 -0
- package/types/router/index.d.ts +1 -17
- package/types/router/injectables.d.ts +1 -0
- package/types/router/params/param-factory.d.ts +8 -0
- package/types/router/params/param-type.d.ts +65 -0
- package/types/router/params/param-types.d.ts +36 -0
- package/types/router/params/param.d.ts +41 -0
- package/types/router/params/state-params.d.ts +12 -0
- package/types/router/path/path-node.d.ts +45 -0
- package/types/router/path/path-utils.d.ts +83 -0
- package/types/router/resolve/resolvable.d.ts +50 -0
- package/types/router/resolve/resolve-context.d.ts +102 -0
- package/types/router/services.d.ts +12 -13
- package/types/router/state/state-builder.d.ts +89 -0
- package/types/router/state/state-matcher.d.ts +7 -0
- package/types/router/state/state-object.d.ts +72 -0
- package/types/router/state/state-queue-manager.d.ts +19 -0
- package/types/router/state/state-registry.d.ts +118 -0
- package/types/router/state/state-service.d.ts +419 -0
- package/types/router/state/target-state.d.ts +102 -0
- package/types/router/state/views.d.ts +50 -0
- package/types/router/state-filters.d.ts +15 -0
- package/types/router/state-provider.d.ts +123 -0
- package/types/router/template-factory.d.ts +124 -0
- package/types/router/transition/hook-builder.d.ts +40 -0
- package/types/router/transition/hook-registry.d.ts +102 -0
- package/types/router/transition/interface.d.ts +11 -0
- package/types/router/transition/reject-factory.d.ts +42 -0
- package/types/router/transition/transition-event-type.d.ts +24 -0
- package/types/router/transition/transition-hook.d.ts +86 -0
- package/types/router/transition/transition-service.d.ts +115 -0
- package/types/router/transition/transition.d.ts +390 -0
- package/types/router/url/url-config.d.ts +100 -0
- package/types/router/url/url-matcher.d.ts +175 -0
- package/types/router/url/url-rule.d.ts +146 -0
- package/types/router/url/url-rules.d.ts +229 -0
- package/types/router/url/url-service.d.ts +278 -0
- package/types/router/view/view.d.ts +137 -0
- package/types/router/view-scroll.d.ts +5 -0
- package/types/services/anchor-scroll.d.ts +11 -0
- package/types/services/browser.d.ts +150 -0
- package/types/services/cache-factory.d.ts +143 -0
- package/types/services/cookie-reader.d.ts +17 -0
- package/types/services/document.d.ts +38 -0
- package/types/services/http-backend.d.ts +78 -0
- package/types/services/http.d.ts +157 -0
- package/types/services/log.d.ts +63 -0
- package/types/services/template-request.d.ts +69 -0
- package/types/shared/common.d.ts +216 -0
- package/types/shared/hof.d.ts +131 -0
- package/types/shared/predicates.d.ts +15 -0
- package/types/shared/strings.d.ts +55 -0
- package/types/shared/utils.d.ts +630 -0
- package/types-back/README.md +2 -0
- package/{types → types-back}/index.d.ts +17 -12
- package/types-back/router/index.d.ts +17 -0
- package/types-back/router/services.d.ts +15 -0
- package/e2e/unit.spec.ts +0 -16
- package/public/my_other_directive.html +0 -1
- package/src/directive/if.md +0 -80
- package/test/build-test.html +0 -14
- package/test/mock-test.html +0 -13
- package/test/module-test.html +0 -58
- /package/{test → public}/jasmine/jasmine-5.1.2/boot0.js +0 -0
- /package/{test → public}/jasmine/jasmine-5.1.2/boot1.js +0 -0
- /package/{test → public}/jasmine/jasmine-5.1.2/jasmine-html.js +0 -0
- /package/{test → public}/jasmine/jasmine-5.1.2/jasmine.css +0 -0
- /package/{test → public}/jasmine/jasmine-5.1.2/jasmine.js +0 -0
- /package/{test → public}/jasmine/jasmine-5.1.2/jasmine_favicon.png +0 -0
- /package/{test → public}/jasmine/jasmine-browser.json +0 -0
- /package/{test → public}/jasmine/jasmine.json +0 -0
- /package/public/{README.md → public/README.md} +0 -0
- /package/public/{circle.html → public/circle.html} +0 -0
- /package/public/{my_child_directive.html → public/my_child_directive.html} +0 -0
- /package/public/{my_directive.html → public/my_directive.html} +0 -0
- /package/public/{test.html → public/test.html} +0 -0
- /package/src/core/{animate-css.js → animate/animate-css.js} +0 -0
- /package/src/core/{cache.js → cache/cache.js} +0 -0
- /package/src/core/{compile.md → compile/compile.md} +0 -0
- /package/src/core/{filter.md → filter/filter.md} +0 -0
- /package/src/core/{interval.md → interval/interval.md} +0 -0
- /package/src/core/{pubsub.js → pubsub/pubsub.js} +0 -0
- /package/src/directive/{bind.md → bind/bind.md} +0 -0
- /package/src/directive/{change.js → change/change.js} +0 -0
- /package/src/directive/{change.md → change/change.md} +0 -0
- /package/src/directive/{cloak.js → cloak/cloak.js} +0 -0
- /package/src/directive/{cloak.md → cloak/cloak.md} +0 -0
- /package/src/directive/{controller.js → controller/controller.js} +0 -0
- /package/src/directive/{controller.md → controller/controller.md} +0 -0
- /package/src/directive/{events.md → events/events.md} +0 -0
- /package/src/directive/{include.md → include/include.md} +0 -0
- /package/src/directive/{init.js → init/init.js} +0 -0
- /package/src/directive/{init.md → init/init.md} +0 -0
- /package/src/directive/{list.md → list/list.md} +0 -0
- /package/src/directive/{non-bindable.js → non-bindable/non-bindable.js} +0 -0
- /package/src/directive/{non-bindable.md → non-bindable/non-bindable.md} +0 -0
- /package/src/directive/{repeat.md → repeat/repeat.md} +0 -0
- /package/src/directive/{script.js → script/script.js} +0 -0
- /package/src/directive/{show-hide.js → show-hide/show-hide.js} +0 -0
- /package/src/directive/{style.js → style/style.js} +0 -0
- /package/src/directive/{style.md → style/style.md} +0 -0
- /package/src/directive/{switch.md → switch/switch.md} +0 -0
- /package/{test/module-test.js → src/services/http/http.html} +0 -0
- /package/src/{constants.js → shared/constants.js} +0 -0
- /package/{types → types-back}/angular.d.ts +0 -0
- /package/{types → types-back}/global.d.ts +0 -0
- /package/{types → types-back}/jqlite.d.ts +0 -0
- /package/{types → types-back}/router/core/common/common.d.ts +0 -0
- /package/{types → types-back}/router/core/common/coreservices.d.ts +0 -0
- /package/{types → types-back}/router/core/common/glob.d.ts +0 -0
- /package/{types → types-back}/router/core/common/hof.d.ts +0 -0
- /package/{types → types-back}/router/core/common/index.d.ts +0 -0
- /package/{types → types-back}/router/core/common/predicates.d.ts +0 -0
- /package/{types → types-back}/router/core/common/queue.d.ts +0 -0
- /package/{types → types-back}/router/core/common/safeConsole.d.ts +0 -0
- /package/{types → types-back}/router/core/common/strings.d.ts +0 -0
- /package/{types → types-back}/router/core/common/trace.d.ts +0 -0
- /package/{types → types-back}/router/core/globals.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/coreResolvables.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/ignoredTransition.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/invalidTransition.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/lazyLoad.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/onEnterExitRetain.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/redirectTo.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/resolve.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/updateGlobals.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/url.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/views.d.ts +0 -0
- /package/{types → types-back}/router/core/index.d.ts +0 -0
- /package/{types → types-back}/router/core/interface.d.ts +0 -0
- /package/{types → types-back}/router/core/params/index.d.ts +0 -0
- /package/{types → types-back}/router/core/params/interface.d.ts +0 -0
- /package/{types → types-back}/router/core/params/param.d.ts +0 -0
- /package/{types → types-back}/router/core/params/paramType.d.ts +0 -0
- /package/{types → types-back}/router/core/params/paramTypes.d.ts +0 -0
- /package/{types → types-back}/router/core/params/stateParams.d.ts +0 -0
- /package/{types → types-back}/router/core/path/index.d.ts +0 -0
- /package/{types → types-back}/router/core/path/pathNode.d.ts +0 -0
- /package/{types → types-back}/router/core/path/pathUtils.d.ts +0 -0
- /package/{types → types-back}/router/core/resolve/index.d.ts +0 -0
- /package/{types → types-back}/router/core/resolve/interface.d.ts +0 -0
- /package/{types → types-back}/router/core/resolve/resolvable.d.ts +0 -0
- /package/{types → types-back}/router/core/resolve/resolveContext.d.ts +0 -0
- /package/{types → types-back}/router/core/router.d.ts +0 -0
- /package/{types → types-back}/router/core/state/index.d.ts +0 -0
- /package/{types → types-back}/router/core/state/interface.d.ts +0 -0
- /package/{types → types-back}/router/core/state/stateBuilder.d.ts +0 -0
- /package/{types → types-back}/router/core/state/stateMatcher.d.ts +0 -0
- /package/{types → types-back}/router/core/state/stateObject.d.ts +0 -0
- /package/{types → types-back}/router/core/state/stateQueueManager.d.ts +0 -0
- /package/{types → types-back}/router/core/state/stateRegistry.d.ts +0 -0
- /package/{types → types-back}/router/core/state/stateService.d.ts +0 -0
- /package/{types → types-back}/router/core/state/targetState.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/hookBuilder.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/hookRegistry.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/index.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/interface.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/rejectFactory.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/transition.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/transitionEventType.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/transitionHook.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/transitionService.d.ts +0 -0
- /package/{types → types-back}/router/core/url/index.d.ts +0 -0
- /package/{types → types-back}/router/core/url/interface.d.ts +0 -0
- /package/{types → types-back}/router/core/url/urlConfig.d.ts +0 -0
- /package/{types → types-back}/router/core/url/urlMatcher.d.ts +0 -0
- /package/{types → types-back}/router/core/url/urlMatcherFactory.d.ts +0 -0
- /package/{types → types-back}/router/core/url/urlRouter.d.ts +0 -0
- /package/{types → types-back}/router/core/url/urlRule.d.ts +0 -0
- /package/{types → types-back}/router/core/url/urlRules.d.ts +0 -0
- /package/{types → types-back}/router/core/url/urlService.d.ts +0 -0
- /package/{types → types-back}/router/core/view/index.d.ts +0 -0
- /package/{types → types-back}/router/core/view/interface.d.ts +0 -0
- /package/{types → types-back}/router/core/view/view.d.ts +0 -0
- /package/{types → types-back}/router/directives/viewDirective.d.ts +0 -0
- /package/{types → types-back}/router/interface.d.ts +0 -0
- /package/{types → types-back}/router/legacy/resolveService.d.ts +0 -0
- /package/{types → types-back}/router/legacy/stateEvents.d.ts +0 -0
- /package/{types → types-back}/router/stateFilters.d.ts +0 -0
- /package/{types → types-back}/router/stateProvider.d.ts +0 -0
- /package/{types → types-back}/router/statebuilders/onEnterExitRetain.d.ts +0 -0
- /package/{types → types-back}/router/statebuilders/views.d.ts +0 -0
- /package/{types → types-back}/router/templateFactory.d.ts +0 -0
- /package/{types → types-back}/router/viewScroll.d.ts +0 -0
- /package/{test/server → utils}/express.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { publishExternalAPI } from "../../
|
|
2
|
-
import { createInjector } from "../../
|
|
3
|
-
import { dealoc, JQLite } from "../../
|
|
1
|
+
import { publishExternalAPI } from "../../public";
|
|
2
|
+
import { createInjector } from "../../injector";
|
|
3
|
+
import { dealoc, JQLite } from "../../jqLite";
|
|
4
4
|
import {
|
|
5
5
|
forEach,
|
|
6
6
|
isFunction,
|
|
@@ -8,9 +8,10 @@ import {
|
|
|
8
8
|
isElement,
|
|
9
9
|
nodeName_,
|
|
10
10
|
extend,
|
|
11
|
-
} from "../../
|
|
12
|
-
import { countChildScopes, countWatchers } from "../../
|
|
13
|
-
import { CACHE, EXPANDO } from "../../
|
|
11
|
+
} from "../../shared/utils";
|
|
12
|
+
import { countChildScopes, countWatchers } from "../../core/scope/scope";
|
|
13
|
+
import { CACHE, EXPANDO } from "../../core/cache/cache";
|
|
14
|
+
import { wait } from "../../shared/test-utils";
|
|
14
15
|
|
|
15
16
|
function isUnknownElement(el) {
|
|
16
17
|
return !!el.toString().match(/Unknown/);
|
|
@@ -1625,7 +1626,7 @@ describe("$compile", () => {
|
|
|
1625
1626
|
reloadModules();
|
|
1626
1627
|
var el = $("<div my-directive></div>");
|
|
1627
1628
|
$compile(el)($rootScope);
|
|
1628
|
-
expect($rootScope.$$watchers).
|
|
1629
|
+
expect($rootScope.$$watchers.length).toEqual(0);
|
|
1629
1630
|
});
|
|
1630
1631
|
|
|
1631
1632
|
it("allows binding two-way expression to isolate scope", () => {
|
|
@@ -1699,7 +1700,7 @@ describe("$compile", () => {
|
|
|
1699
1700
|
reloadModules();
|
|
1700
1701
|
var el = $("<div my-directive></div>");
|
|
1701
1702
|
$compile(el)($rootScope);
|
|
1702
|
-
expect($rootScope.$$watchers).
|
|
1703
|
+
expect($rootScope.$$watchers.length).toEqual(0);
|
|
1703
1704
|
});
|
|
1704
1705
|
|
|
1705
1706
|
it("allows assigning to two-way scope expressions", () => {
|
|
@@ -2620,7 +2621,7 @@ describe("$compile", () => {
|
|
|
2620
2621
|
registerDirectives({
|
|
2621
2622
|
myDirective: () => {
|
|
2622
2623
|
return {
|
|
2623
|
-
templateUrl: "/my_directive.html",
|
|
2624
|
+
templateUrl: "/public/my_directive.html",
|
|
2624
2625
|
compile: compileSpy,
|
|
2625
2626
|
};
|
|
2626
2627
|
},
|
|
@@ -2646,7 +2647,7 @@ describe("$compile", () => {
|
|
|
2646
2647
|
it("populates element with template", (done) => {
|
|
2647
2648
|
registerDirectives({
|
|
2648
2649
|
myDirective: () => {
|
|
2649
|
-
return { templateUrl: "/my_directive.html" };
|
|
2650
|
+
return { templateUrl: "/public/my_directive.html" };
|
|
2650
2651
|
},
|
|
2651
2652
|
});
|
|
2652
2653
|
reloadModules();
|
|
@@ -2664,7 +2665,7 @@ describe("$compile", () => {
|
|
|
2664
2665
|
registerDirectives({
|
|
2665
2666
|
myDirective: () => {
|
|
2666
2667
|
return {
|
|
2667
|
-
templateUrl: "/my_directive.html",
|
|
2668
|
+
templateUrl: "/public/my_directive.html",
|
|
2668
2669
|
compile: compileSpy,
|
|
2669
2670
|
};
|
|
2670
2671
|
},
|
|
@@ -2684,7 +2685,7 @@ describe("$compile", () => {
|
|
|
2684
2685
|
var otherCompileSpy = jasmine.createSpy();
|
|
2685
2686
|
registerDirectives({
|
|
2686
2687
|
myDirective: () => {
|
|
2687
|
-
return { templateUrl: "/my_directive.html" };
|
|
2688
|
+
return { templateUrl: "/public/my_directive.html" };
|
|
2688
2689
|
},
|
|
2689
2690
|
myOtherDirective: () => {
|
|
2690
2691
|
return { compile: otherCompileSpy };
|
|
@@ -2706,7 +2707,7 @@ describe("$compile", () => {
|
|
|
2706
2707
|
var otherCompileSpy = jasmine.createSpy();
|
|
2707
2708
|
registerDirectives({
|
|
2708
2709
|
myDirective: () => {
|
|
2709
|
-
return { templateUrl: "/my_other_directive.html" };
|
|
2710
|
+
return { templateUrl: "/public/my_other_directive.html" };
|
|
2710
2711
|
},
|
|
2711
2712
|
myOtherDirective: () => {
|
|
2712
2713
|
return { compile: otherCompileSpy };
|
|
@@ -2727,7 +2728,7 @@ describe("$compile", () => {
|
|
|
2727
2728
|
it("supports functions as values", () => {
|
|
2728
2729
|
var templateUrlSpy = jasmine
|
|
2729
2730
|
.createSpy()
|
|
2730
|
-
.and.returnValue("/my_directive.html");
|
|
2731
|
+
.and.returnValue("/public/my_directive.html");
|
|
2731
2732
|
registerDirectives({
|
|
2732
2733
|
myDirective: () => {
|
|
2733
2734
|
return {
|
|
@@ -2750,7 +2751,7 @@ describe("$compile", () => {
|
|
|
2750
2751
|
return { template: "<div></div>" };
|
|
2751
2752
|
},
|
|
2752
2753
|
myOtherDirective: () => {
|
|
2753
|
-
return { templateUrl: "/my_other_directive.html" };
|
|
2754
|
+
return { templateUrl: "/public/my_other_directive.html" };
|
|
2754
2755
|
},
|
|
2755
2756
|
});
|
|
2756
2757
|
reloadModules();
|
|
@@ -2763,7 +2764,7 @@ describe("$compile", () => {
|
|
|
2763
2764
|
it("does not allow template directive after templateUrl directive", (done) => {
|
|
2764
2765
|
registerDirectives({
|
|
2765
2766
|
myDirective: () => {
|
|
2766
|
-
return { templateUrl: "/my_directive.html" };
|
|
2767
|
+
return { templateUrl: "/public/my_directive.html" };
|
|
2767
2768
|
},
|
|
2768
2769
|
myOtherDirective: () => {
|
|
2769
2770
|
return { template: "<div></div>" };
|
|
@@ -2785,7 +2786,7 @@ describe("$compile", () => {
|
|
|
2785
2786
|
registerDirectives({
|
|
2786
2787
|
myDirective: () => {
|
|
2787
2788
|
return {
|
|
2788
|
-
templateUrl: "/my_directive.html",
|
|
2789
|
+
templateUrl: "/public/my_directive.html",
|
|
2789
2790
|
link: linkSpy,
|
|
2790
2791
|
};
|
|
2791
2792
|
},
|
|
@@ -2811,7 +2812,7 @@ describe("$compile", () => {
|
|
|
2811
2812
|
var linkSpy = jasmine.createSpy();
|
|
2812
2813
|
registerDirectives({
|
|
2813
2814
|
myDirective: () => {
|
|
2814
|
-
return { templateUrl: "/my_other_directive.html" };
|
|
2815
|
+
return { templateUrl: "/public/my_other_directive.html" };
|
|
2815
2816
|
},
|
|
2816
2817
|
myOtherDirective: () => {
|
|
2817
2818
|
return { link: linkSpy };
|
|
@@ -2838,7 +2839,7 @@ describe("$compile", () => {
|
|
|
2838
2839
|
registerDirectives({
|
|
2839
2840
|
myDirective: () => {
|
|
2840
2841
|
return {
|
|
2841
|
-
templateUrl: "/my_directive.html",
|
|
2842
|
+
templateUrl: "/public/my_directive.html",
|
|
2842
2843
|
link: linkSpy,
|
|
2843
2844
|
};
|
|
2844
2845
|
},
|
|
@@ -2922,7 +2923,7 @@ describe("$compile", () => {
|
|
|
2922
2923
|
return {
|
|
2923
2924
|
scope: { val: "=myDirective" },
|
|
2924
2925
|
link: linkSpy,
|
|
2925
|
-
templateUrl: "/my_directive.html",
|
|
2926
|
+
templateUrl: "/public/my_directive.html",
|
|
2926
2927
|
};
|
|
2927
2928
|
},
|
|
2928
2929
|
});
|
|
@@ -2946,7 +2947,7 @@ describe("$compile", () => {
|
|
|
2946
2947
|
myDirective: () => {
|
|
2947
2948
|
return {
|
|
2948
2949
|
scope: { val: "=myDirective" },
|
|
2949
|
-
templateUrl: "/my_child_directive.html",
|
|
2950
|
+
templateUrl: "/public/my_child_directive.html",
|
|
2950
2951
|
};
|
|
2951
2952
|
},
|
|
2952
2953
|
myChildDirective: () => {
|
|
@@ -2980,7 +2981,7 @@ describe("$compile", () => {
|
|
|
2980
2981
|
},
|
|
2981
2982
|
myOtherDirective: () => {
|
|
2982
2983
|
return {
|
|
2983
|
-
templateUrl: "/my_directive.html",
|
|
2984
|
+
templateUrl: "/public/my_directive.html",
|
|
2984
2985
|
controller: function MyOtherDirectiveController() {
|
|
2985
2986
|
myOtherDirectiveControllerInstantiated = true;
|
|
2986
2987
|
},
|
|
@@ -3008,7 +3009,7 @@ describe("$compile", () => {
|
|
|
3008
3009
|
myTranscluder: () => {
|
|
3009
3010
|
return {
|
|
3010
3011
|
transclude: true,
|
|
3011
|
-
templateUrl: "my_directive.html",
|
|
3012
|
+
templateUrl: "/public/my_directive.html",
|
|
3012
3013
|
link: function (scope, element, attrs, ctrl, transclude) {
|
|
3013
3014
|
element[0].firstChild.append(transclude());
|
|
3014
3015
|
},
|
|
@@ -3034,7 +3035,7 @@ describe("$compile", () => {
|
|
|
3034
3035
|
return {
|
|
3035
3036
|
priority: 1,
|
|
3036
3037
|
transclude: true,
|
|
3037
|
-
templateUrl: "my_directive.html",
|
|
3038
|
+
templateUrl: "/public/my_directive.html",
|
|
3038
3039
|
};
|
|
3039
3040
|
},
|
|
3040
3041
|
mySecondTranscluder: () => {
|
|
@@ -5789,7 +5790,7 @@ describe("$compile", () => {
|
|
|
5789
5790
|
"hello",
|
|
5790
5791
|
valueFn({
|
|
5791
5792
|
restrict: "A",
|
|
5792
|
-
templateUrl: "mock/hello",
|
|
5793
|
+
templateUrl: "/mock/hello",
|
|
5793
5794
|
transclude: true,
|
|
5794
5795
|
}),
|
|
5795
5796
|
)
|
|
@@ -5797,7 +5798,7 @@ describe("$compile", () => {
|
|
|
5797
5798
|
"401",
|
|
5798
5799
|
valueFn({
|
|
5799
5800
|
restrict: "A",
|
|
5800
|
-
templateUrl: "mock/401",
|
|
5801
|
+
templateUrl: "/mock/401",
|
|
5801
5802
|
transclude: true,
|
|
5802
5803
|
}),
|
|
5803
5804
|
)
|
|
@@ -5805,7 +5806,7 @@ describe("$compile", () => {
|
|
|
5805
5806
|
"cau",
|
|
5806
5807
|
valueFn({
|
|
5807
5808
|
restrict: "A",
|
|
5808
|
-
templateUrl: "mock/divexpr",
|
|
5809
|
+
templateUrl: "/mock/divexpr",
|
|
5809
5810
|
}),
|
|
5810
5811
|
)
|
|
5811
5812
|
.directive(
|
|
@@ -5825,7 +5826,7 @@ describe("$compile", () => {
|
|
|
5825
5826
|
"cError",
|
|
5826
5827
|
valueFn({
|
|
5827
5828
|
restrict: "A",
|
|
5828
|
-
templateUrl: "mock/empty",
|
|
5829
|
+
templateUrl: "/mock/empty",
|
|
5829
5830
|
compile() {
|
|
5830
5831
|
throw new Error("cError");
|
|
5831
5832
|
},
|
|
@@ -5835,7 +5836,7 @@ describe("$compile", () => {
|
|
|
5835
5836
|
"lError",
|
|
5836
5837
|
valueFn({
|
|
5837
5838
|
restrict: "A",
|
|
5838
|
-
templateUrl: "mock/empty",
|
|
5839
|
+
templateUrl: "/mock/empty",
|
|
5839
5840
|
compile() {
|
|
5840
5841
|
throw new Error("lError");
|
|
5841
5842
|
},
|
|
@@ -5846,7 +5847,7 @@ describe("$compile", () => {
|
|
|
5846
5847
|
valueFn({
|
|
5847
5848
|
restrict: "A",
|
|
5848
5849
|
replace: true,
|
|
5849
|
-
templateUrl: "mock/div",
|
|
5850
|
+
templateUrl: "/mock/div",
|
|
5850
5851
|
}),
|
|
5851
5852
|
)
|
|
5852
5853
|
.directive(
|
|
@@ -5854,7 +5855,7 @@ describe("$compile", () => {
|
|
|
5854
5855
|
valueFn({
|
|
5855
5856
|
restrict: "A",
|
|
5856
5857
|
replace: true,
|
|
5857
|
-
templateUrl: "mock/divexpr",
|
|
5858
|
+
templateUrl: "/mock/divexpr",
|
|
5858
5859
|
}),
|
|
5859
5860
|
)
|
|
5860
5861
|
.directive(
|
|
@@ -5987,7 +5988,7 @@ describe("$compile", () => {
|
|
|
5987
5988
|
});
|
|
5988
5989
|
|
|
5989
5990
|
it("should append template via $http and cache it in $templateCache", (done) => {
|
|
5990
|
-
$templateCache.put("mock/divexpr", "<span>Cau!</span>");
|
|
5991
|
+
$templateCache.put("/mock/divexpr", "<span>Cau!</span>");
|
|
5991
5992
|
element = $compile("<div><b hello>ignore</b><b cau>ignore</b></div>")(
|
|
5992
5993
|
$rootScope,
|
|
5993
5994
|
);
|
|
@@ -6010,7 +6011,7 @@ describe("$compile", () => {
|
|
|
6010
6011
|
});
|
|
6011
6012
|
|
|
6012
6013
|
it("should inline template via $http and cache it in $templateCache", (done) => {
|
|
6013
|
-
$templateCache.put("mock/divexpr", "<span>Cau!</span>");
|
|
6014
|
+
$templateCache.put("/mock/divexpr", "<span>Cau!</span>");
|
|
6014
6015
|
element = $compile(
|
|
6015
6016
|
"<div><b i-hello>ignore</b><b i-cau>ignore</b></div>",
|
|
6016
6017
|
)($rootScope);
|
|
@@ -6033,7 +6034,7 @@ describe("$compile", () => {
|
|
|
6033
6034
|
});
|
|
6034
6035
|
|
|
6035
6036
|
it("should compile, link and flush the template append", (done) => {
|
|
6036
|
-
$templateCache.put("mock/hello", "<span>Hello, {{name}}!</span>");
|
|
6037
|
+
$templateCache.put("/mock/hello", "<span>Hello, {{name}}!</span>");
|
|
6037
6038
|
$rootScope.name = "Elvis";
|
|
6038
6039
|
element = $compile('<div><b hello=""></b></div>')($rootScope);
|
|
6039
6040
|
|
|
@@ -6048,7 +6049,7 @@ describe("$compile", () => {
|
|
|
6048
6049
|
});
|
|
6049
6050
|
|
|
6050
6051
|
it("should compile, link and flush the template inline", () => {
|
|
6051
|
-
$templateCache.put("mock/div", "<span>Hello, {{name}}!</span>");
|
|
6052
|
+
$templateCache.put("/mock/div", "<span>Hello, {{name}}!</span>");
|
|
6052
6053
|
$rootScope.name = "Elvis";
|
|
6053
6054
|
element = $compile("<div><b i-hello></b></div>")($rootScope);
|
|
6054
6055
|
|
|
@@ -6060,7 +6061,7 @@ describe("$compile", () => {
|
|
|
6060
6061
|
});
|
|
6061
6062
|
|
|
6062
6063
|
it("should compile template when replacing element in another template", () => {
|
|
6063
|
-
$templateCache.put("mock/hello", "<div replace></div>");
|
|
6064
|
+
$templateCache.put("/mock/hello", "<div replace></div>");
|
|
6064
6065
|
$rootScope.name = "Elvis";
|
|
6065
6066
|
element = $compile('<div><b hello=""></b></div>')($rootScope);
|
|
6066
6067
|
|
|
@@ -6083,7 +6084,7 @@ describe("$compile", () => {
|
|
|
6083
6084
|
});
|
|
6084
6085
|
|
|
6085
6086
|
it("should resolve widgets after cloning in append mode", (done) => {
|
|
6086
|
-
$templateCache.put("mock/divexpr", "<span>{{name}}</span>");
|
|
6087
|
+
$templateCache.put("/mock/divexpr", "<span>{{name}}</span>");
|
|
6087
6088
|
$rootScope.greeting = "Hello";
|
|
6088
6089
|
$rootScope.name = "Elvis";
|
|
6089
6090
|
const template = $compile(
|
|
@@ -6117,7 +6118,7 @@ describe("$compile", () => {
|
|
|
6117
6118
|
}, 100);
|
|
6118
6119
|
});
|
|
6119
6120
|
|
|
6120
|
-
it("should resolve widgets after cloning in append mode without $templateCache", (
|
|
6121
|
+
it("should resolve widgets after cloning in append mode without $templateCache", async () => {
|
|
6121
6122
|
$rootScope.expr = "Elvis";
|
|
6122
6123
|
const template = $compile("<div cau></div>");
|
|
6123
6124
|
let e1;
|
|
@@ -6126,20 +6127,18 @@ describe("$compile", () => {
|
|
|
6126
6127
|
e1 = template($rootScope.$new(), () => {}); // clone
|
|
6127
6128
|
expect(e1.text()).toEqual("");
|
|
6128
6129
|
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6130
|
+
await wait(100);
|
|
6131
|
+
e2 = template($rootScope.$new(), () => {}); // clone
|
|
6132
|
+
$rootScope.$digest();
|
|
6133
|
+
expect(e1.text()).toEqual("Elvis");
|
|
6134
|
+
expect(e2.text()).toEqual("Elvis");
|
|
6134
6135
|
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
done();
|
|
6138
|
-
}, 100);
|
|
6136
|
+
dealoc(e1);
|
|
6137
|
+
dealoc(e2);
|
|
6139
6138
|
});
|
|
6140
6139
|
|
|
6141
|
-
it("should resolve widgets after cloning in inline mode", (
|
|
6142
|
-
$templateCache.put("mock/divexpr", "<span>{{name}}</span>");
|
|
6140
|
+
it("should resolve widgets after cloning in inline mode", async () => {
|
|
6141
|
+
$templateCache.put("/mock/divexpr", "<span>{{name}}</span>");
|
|
6143
6142
|
$rootScope.greeting = "Hello";
|
|
6144
6143
|
$rootScope.name = "Elvis";
|
|
6145
6144
|
const template = $compile(
|
|
@@ -6156,17 +6155,15 @@ describe("$compile", () => {
|
|
|
6156
6155
|
e1 = template($rootScope.$new(), () => {}); // clone
|
|
6157
6156
|
expect(e1.text()).toEqual("");
|
|
6158
6157
|
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6158
|
+
await wait(100);
|
|
6159
|
+
e2 = template($rootScope.$new(), () => {}); // clone
|
|
6160
|
+
$rootScope.$digest();
|
|
6161
|
+
expect(e1.text()).toEqual("HelloElvis");
|
|
6162
|
+
expect(e2.text()).toEqual("HelloElvis");
|
|
6164
6163
|
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
done();
|
|
6169
|
-
}, 100);
|
|
6164
|
+
expect(errors.length).toEqual(2);
|
|
6165
|
+
dealoc(e1);
|
|
6166
|
+
dealoc(e2);
|
|
6170
6167
|
});
|
|
6171
6168
|
|
|
6172
6169
|
it("should resolve widgets after cloning in inline mode without $templateCache", (done) => {
|
|
@@ -6193,7 +6190,7 @@ describe("$compile", () => {
|
|
|
6193
6190
|
|
|
6194
6191
|
it("should be implicitly terminal and not compile placeholder content in append", () => {
|
|
6195
6192
|
// we can't compile the contents because that would result in a memory leak
|
|
6196
|
-
$templateCache.put("mock/hello", "Hello!");
|
|
6193
|
+
$templateCache.put("/mock/hello", "Hello!");
|
|
6197
6194
|
element = $compile('<div><b hello=""><div log></div></b></div>')(
|
|
6198
6195
|
$rootScope,
|
|
6199
6196
|
);
|
|
@@ -6204,7 +6201,7 @@ describe("$compile", () => {
|
|
|
6204
6201
|
it("should be implicitly terminal and not compile placeholder content in inline", () => {
|
|
6205
6202
|
// we can't compile the contents because that would result in a memory leak
|
|
6206
6203
|
|
|
6207
|
-
$templateCache.put("mock/hello", "Hello!");
|
|
6204
|
+
$templateCache.put("/mock/hello", "Hello!");
|
|
6208
6205
|
element = $compile("<div><b i-hello><div log></div></b></div>")(
|
|
6209
6206
|
$rootScope,
|
|
6210
6207
|
);
|
|
@@ -6255,7 +6252,7 @@ describe("$compile", () => {
|
|
|
6255
6252
|
"hello",
|
|
6256
6253
|
valueFn({
|
|
6257
6254
|
restrict: "A",
|
|
6258
|
-
templateUrl: "mock/hello",
|
|
6255
|
+
templateUrl: "/mock/hello",
|
|
6259
6256
|
transclude: true,
|
|
6260
6257
|
}),
|
|
6261
6258
|
);
|
|
@@ -6410,7 +6407,7 @@ describe("$compile", () => {
|
|
|
6410
6407
|
|
|
6411
6408
|
it("should work when directive is on the root element", () => {
|
|
6412
6409
|
$templateCache.put(
|
|
6413
|
-
"mock/hello",
|
|
6410
|
+
"/mock/hello",
|
|
6414
6411
|
"<span>3==<span ng-transclude></span></span>",
|
|
6415
6412
|
);
|
|
6416
6413
|
element = JQLite('<b hello="">{{1+2}}</b>');
|
|
@@ -6427,7 +6424,7 @@ describe("$compile", () => {
|
|
|
6427
6424
|
|
|
6428
6425
|
function runTest() {
|
|
6429
6426
|
$templateCache.put(
|
|
6430
|
-
"mock/hello",
|
|
6427
|
+
"/mock/hello",
|
|
6431
6428
|
"<span>i=<span ng-transclude></span>;</span>",
|
|
6432
6429
|
);
|
|
6433
6430
|
element = JQLite(
|
|
@@ -13054,11 +13051,11 @@ describe("$compile", () => {
|
|
|
13054
13051
|
scope: {
|
|
13055
13052
|
myFoo: "=",
|
|
13056
13053
|
},
|
|
13057
|
-
templateUrl: "mock/hello",
|
|
13054
|
+
templateUrl: "/mock/hello",
|
|
13058
13055
|
controller: Ctrl,
|
|
13059
13056
|
}));
|
|
13060
13057
|
initInjector("test1");
|
|
13061
|
-
$templateCache.put("mock/hello", "<p>Hello</p>");
|
|
13058
|
+
$templateCache.put("/mock/hello", "<p>Hello</p>");
|
|
13062
13059
|
$rootScope.foo = "bar";
|
|
13063
13060
|
|
|
13064
13061
|
element = $compile('<div my-directive my-foo="foo"></div>')($rootScope);
|
|
@@ -13130,7 +13127,7 @@ describe("$compile", () => {
|
|
|
13130
13127
|
|
|
13131
13128
|
module.directive("myDirective", () => ({
|
|
13132
13129
|
scope: true,
|
|
13133
|
-
templateUrl: "mock/hello",
|
|
13130
|
+
templateUrl: "/mock/hello",
|
|
13134
13131
|
controller: Ctrl,
|
|
13135
13132
|
compile() {
|
|
13136
13133
|
return {
|
|
@@ -13140,7 +13137,7 @@ describe("$compile", () => {
|
|
|
13140
13137
|
},
|
|
13141
13138
|
}));
|
|
13142
13139
|
initInjector("test1");
|
|
13143
|
-
$templateCache.put("mock/hello", "<p>Hello</p>");
|
|
13140
|
+
$templateCache.put("/mock/hello", "<p>Hello</p>");
|
|
13144
13141
|
|
|
13145
13142
|
element = $compile("<div my-directive></div>")($rootScope);
|
|
13146
13143
|
$rootScope.$apply();
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { test, expect } from "@playwright/test";
|
|
2
|
+
|
|
3
|
+
const TEST_URL = "src/core/compile/compile.html";
|
|
4
|
+
|
|
5
|
+
test("unit tests contain no errors", async ({ page }) => {
|
|
6
|
+
await page.goto(TEST_URL);
|
|
7
|
+
await page.content();
|
|
8
|
+
await page.waitForTimeout(5000);
|
|
9
|
+
await expect(page.locator(".jasmine-overall-result")).toHaveText(
|
|
10
|
+
/0 failures/,
|
|
11
|
+
);
|
|
12
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>AngularTS Test Runner</title>
|
|
6
|
+
|
|
7
|
+
<link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
|
|
8
|
+
<link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
|
|
9
|
+
<script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
|
|
10
|
+
<script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
|
|
11
|
+
<script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
|
|
12
|
+
<script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
|
|
13
|
+
<script
|
|
14
|
+
type="module"
|
|
15
|
+
src="/src/core/controller/controller.spec.js"
|
|
16
|
+
></script>
|
|
17
|
+
</head>
|
|
18
|
+
<body>
|
|
19
|
+
<div id="dummy"></div>
|
|
20
|
+
</body>
|
|
21
|
+
</html>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { publishExternalAPI } from "../../
|
|
2
|
-
import { createInjector } from "../../
|
|
1
|
+
import { publishExternalAPI } from "../../public";
|
|
2
|
+
import { createInjector } from "../../injector";
|
|
3
3
|
|
|
4
4
|
describe("$controller", () => {
|
|
5
5
|
let $controllerProvider;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { test, expect } from "@playwright/test";
|
|
2
|
+
|
|
3
|
+
const TEST_URL = "src/core/controller/controller.html";
|
|
4
|
+
|
|
5
|
+
test("unit tests contain no errors", async ({ page }) => {
|
|
6
|
+
await page.goto(TEST_URL);
|
|
7
|
+
await page.content();
|
|
8
|
+
await expect(page.locator(".jasmine-overall-result")).toHaveText(
|
|
9
|
+
/0 failures/,
|
|
10
|
+
);
|
|
11
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { publishExternalAPI } from "../../
|
|
2
|
-
import { createInjector } from "../../
|
|
1
|
+
import { publishExternalAPI } from "../../public";
|
|
2
|
+
import { createInjector } from "../../injector";
|
|
3
3
|
|
|
4
4
|
describe("$$cookieReader", () => {
|
|
5
5
|
let $$cookieReader;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { publishExternalAPI } from "../../
|
|
2
|
-
import { createInjector } from "../../
|
|
3
|
-
import { jqLite } from "../../
|
|
1
|
+
import { publishExternalAPI } from "../../public";
|
|
2
|
+
import { createInjector } from "../../injector";
|
|
3
|
+
import { jqLite } from "../../jqLite";
|
|
4
4
|
|
|
5
5
|
describe("$document", () => {
|
|
6
6
|
let $document, $httpBackend, $http, $$isDocumentHidden;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>AngularTS Test Runner</title>
|
|
6
|
+
|
|
7
|
+
<link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
|
|
8
|
+
<link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
|
|
9
|
+
<script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
|
|
10
|
+
<script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
|
|
11
|
+
<script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
|
|
12
|
+
<script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
|
|
13
|
+
<script type="module" src="/src/core/filter/filter.spec.js"></script>
|
|
14
|
+
</head>
|
|
15
|
+
<body>
|
|
16
|
+
<div id="dummy"></div>
|
|
17
|
+
</body>
|
|
18
|
+
</html>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { forEach, isObject } from "
|
|
2
|
-
import { filterFilter } from "
|
|
3
|
-
import { jsonFilter } from "
|
|
4
|
-
import { limitToFilter } from "
|
|
5
|
-
import { orderByFilter } from "
|
|
1
|
+
import { forEach, isObject } from "../../shared/utils";
|
|
2
|
+
import { filterFilter } from "../../filters/filter";
|
|
3
|
+
import { jsonFilter } from "../../filters/filters";
|
|
4
|
+
import { limitToFilter } from "../../filters/limit-to";
|
|
5
|
+
import { orderByFilter } from "../../filters/order-by";
|
|
6
6
|
|
|
7
7
|
$FilterProvider.$inject = ["$provide"];
|
|
8
8
|
export function $FilterProvider($provide) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { publishExternalAPI } from "../../
|
|
2
|
-
import { createInjector } from "../../
|
|
1
|
+
import { publishExternalAPI } from "../../public";
|
|
2
|
+
import { createInjector } from "../../injector";
|
|
3
3
|
|
|
4
4
|
describe("filter", function () {
|
|
5
5
|
beforeEach(() => {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { test, expect } from "@playwright/test";
|
|
2
|
+
|
|
3
|
+
const TEST_URL = "src/core/filter/filter.html";
|
|
4
|
+
|
|
5
|
+
test("unit tests contain no errors", async ({ page }) => {
|
|
6
|
+
await page.goto(TEST_URL);
|
|
7
|
+
await page.content();
|
|
8
|
+
await expect(page.locator(".jasmine-overall-result")).toHaveText(
|
|
9
|
+
/0 failures/,
|
|
10
|
+
);
|
|
11
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>AngularTS Test Runner</title>
|
|
6
|
+
|
|
7
|
+
<link rel="shortcut icon" type="image/png" href="/images/favicon.ico" />
|
|
8
|
+
<link rel="stylesheet" href="/jasmine/jasmine-5.1.2/jasmine.css" />
|
|
9
|
+
<script src="/jasmine/jasmine-5.1.2/jasmine.js"></script>
|
|
10
|
+
<script src="/jasmine/jasmine-5.1.2/jasmine-html.js"></script>
|
|
11
|
+
<script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
|
|
12
|
+
<script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
|
|
13
|
+
<script
|
|
14
|
+
type="module"
|
|
15
|
+
src="/src/core/interpolate/interpolate.spec.js"
|
|
16
|
+
></script>
|
|
17
|
+
</head>
|
|
18
|
+
<body>
|
|
19
|
+
<div id="dummy"></div>
|
|
20
|
+
</body>
|
|
21
|
+
</html>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createInjector } from "../../
|
|
2
|
-
import { publishExternalAPI } from "../../
|
|
1
|
+
import { createInjector } from "../../injector";
|
|
2
|
+
import { publishExternalAPI } from "../../public";
|
|
3
3
|
|
|
4
4
|
describe("$interpolate", () => {
|
|
5
5
|
let $interpolate, $injector, $rootScope, $sce;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { test, expect } from "@playwright/test";
|
|
2
|
+
|
|
3
|
+
const TEST_URL = "src/core/interpolate/interpolate.html";
|
|
4
|
+
|
|
5
|
+
test("unit tests contain no errors", async ({ page }) => {
|
|
6
|
+
await page.goto(TEST_URL);
|
|
7
|
+
await page.content();
|
|
8
|
+
await expect(page.locator(".jasmine-overall-result")).toHaveText(
|
|
9
|
+
/0 failures/,
|
|
10
|
+
);
|
|
11
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isDefined, sliceArgs } from "
|
|
1
|
+
import { isDefined, sliceArgs } from "../../shared/utils";
|
|
2
2
|
|
|
3
3
|
export function $$IntervalFactoryProvider() {
|
|
4
4
|
this.$get = [
|
|
@@ -6,6 +6,7 @@ export function $$IntervalFactoryProvider() {
|
|
|
6
6
|
"$q",
|
|
7
7
|
"$$q",
|
|
8
8
|
"$rootScope",
|
|
9
|
+
// TODO Add types
|
|
9
10
|
function ($browser, $q, $$q, $rootScope) {
|
|
10
11
|
return function intervalFactory(setIntervalFn, clearIntervalFn) {
|
|
11
12
|
return function intervalFn(fn, delay, count, invokeApply) {
|