@angular-wave/angular.ts 0.0.34 → 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/README.md +5 -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 +17 -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} +105 -62
- package/{test/core → src/core/scope}/scope.spec.js +13 -13
- package/src/core/{timeout.js → timeout/timeout.js} +3 -3
- package/{test/core → src/core/timeout}/timeout.spec.js +3 -3
- 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} +3 -3
- 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/src/router/services.js +0 -1
- 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 +4 -4
- 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 -18
- 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 +62 -45
- package/types-back/router/index.d.ts +17 -0
- package/{types → types-back}/router/interface.d.ts +0 -1
- package/{types → types-back}/router/legacy/resolveService.d.ts +0 -1
- package/{types → types-back}/router/legacy/stateEvents.d.ts +2 -1
- package/types-back/router/services.d.ts +15 -0
- package/{types → types-back}/router/stateFilters.d.ts +0 -1
- package/{types → types-back}/router/stateProvider.d.ts +0 -1
- package/{types → types-back}/router/statebuilders/onEnterExitRetain.d.ts +0 -1
- 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/types/router/locationServices.d.ts +0 -50
- /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/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 { createInjector } from "../../
|
|
2
|
-
import { isObject } from "../../
|
|
3
|
-
import { publishExternalAPI } from "../../
|
|
1
|
+
import { createInjector } from "../../injector";
|
|
2
|
+
import { isObject } from "../../shared/utils";
|
|
3
|
+
import { publishExternalAPI } from "../../public";
|
|
4
4
|
|
|
5
5
|
export function getLastAjaxRequest() {
|
|
6
6
|
let ajaxEntries = performance
|
|
@@ -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("$templateRequest", () => {
|
|
5
5
|
let module, $rootScope, $templateRequest, $templateCache, $sce;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { urlResolve } from "
|
|
1
|
+
import { urlResolve } from "../../core/url-utils/url-utils";
|
|
2
2
|
import {
|
|
3
3
|
forEach,
|
|
4
4
|
isDefined,
|
|
5
5
|
isPromiseLike,
|
|
6
6
|
isUndefined,
|
|
7
|
-
} from "
|
|
7
|
+
} from "../../shared/utils";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @ngdoc service
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createInjector } from "../../
|
|
2
|
-
import { publishExternalAPI } from "../../
|
|
3
|
-
import { createHttpBackend } from "../../
|
|
1
|
+
import { createInjector } from "../../injector";
|
|
2
|
+
import { publishExternalAPI } from "../../public";
|
|
3
|
+
import { createHttpBackend } from "../../services/http-backend";
|
|
4
4
|
import sinon from "sinon";
|
|
5
5
|
|
|
6
6
|
describe("$httpBackend", () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defaults, filter, map, mapObj, pick } from "../../
|
|
2
|
-
import { is, eq, not, pattern, val } from "../../
|
|
3
|
-
import { isInjectable } from "../../
|
|
4
|
-
import { Queue } from "../../
|
|
1
|
+
import { defaults, filter, map, mapObj, pick } from "../../shared/common";
|
|
2
|
+
import { is, eq, not, pattern, val } from "../../shared/hof";
|
|
3
|
+
import { isInjectable } from "../../shared/predicates";
|
|
4
|
+
import { Queue } from "../../router/common/queue";
|
|
5
5
|
|
|
6
6
|
describe("common", function () {
|
|
7
7
|
describe("filter", function () {
|
package/src/shared/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PREFIX_REGEXP, SPECIAL_CHARS_REGEXP } from "../constants";
|
|
1
|
+
import { PREFIX_REGEXP, SPECIAL_CHARS_REGEXP } from "../shared/constants";
|
|
2
2
|
|
|
3
3
|
const ngMinErr = minErr("ng");
|
|
4
4
|
|
|
@@ -375,7 +375,7 @@ export function forEach(obj, iterator, context) {
|
|
|
375
375
|
} else if (obj.forEach && obj.forEach !== forEach) {
|
|
376
376
|
obj.forEach(iterator, context, obj);
|
|
377
377
|
} else if (isBlankObject(obj)) {
|
|
378
|
-
//
|
|
378
|
+
// Object.create(null) fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty
|
|
379
379
|
for (key in obj) {
|
|
380
380
|
iterator.call(context, obj[key], key, obj);
|
|
381
381
|
}
|
|
@@ -721,7 +721,7 @@ export function equals(o1, o2) {
|
|
|
721
721
|
isRegExp(o2)
|
|
722
722
|
)
|
|
723
723
|
return false;
|
|
724
|
-
keySet =
|
|
724
|
+
keySet = Object.create(null);
|
|
725
725
|
for (key in o1) {
|
|
726
726
|
if (key.charAt(0) === "$" || isFunction(o1[key])) continue;
|
|
727
727
|
if (!equals(o1[key], o2[key])) return false;
|
|
@@ -822,21 +822,6 @@ export function getter(obj, path, bindFnToScope) {
|
|
|
822
822
|
return obj;
|
|
823
823
|
}
|
|
824
824
|
|
|
825
|
-
/**
|
|
826
|
-
* Creates a new object without a prototype. This object is useful for lookup without having to
|
|
827
|
-
* guard against prototypically inherited properties via hasOwnProperty.
|
|
828
|
-
*
|
|
829
|
-
* Related micro-benchmarks:
|
|
830
|
-
* - http://jsperf.com/object-create2
|
|
831
|
-
* - http://jsperf.com/proto-map-lookup/2
|
|
832
|
-
* - http://jsperf.com/for-in-vs-object-keys2
|
|
833
|
-
*
|
|
834
|
-
* @returns {Object}
|
|
835
|
-
*/
|
|
836
|
-
export function createMap() {
|
|
837
|
-
return Object.create(null);
|
|
838
|
-
}
|
|
839
|
-
|
|
840
825
|
export function stringify(value) {
|
|
841
826
|
if (value == null) {
|
|
842
827
|
// null || undefined
|
package/tsconfig.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function animateCache(): {
|
|
2
|
+
cacheKey(node: any, method: any, addClass: any, removeClass: any): string;
|
|
3
|
+
containsCachedAnimationWithoutDuration(key: any): boolean;
|
|
4
|
+
flush(): void;
|
|
5
|
+
count(key: any): any;
|
|
6
|
+
get(key: any): any;
|
|
7
|
+
put(key: any, value: any, isValid: any): void;
|
|
8
|
+
};
|
|
9
|
+
export function $$AnimateCacheProvider(): void;
|
|
10
|
+
export class $$AnimateCacheProvider {
|
|
11
|
+
$get: (typeof animateCache)[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ngdoc directive
|
|
3
|
+
* @name ngAnimateChildren
|
|
4
|
+
* @restrict AE
|
|
5
|
+
* @element ANY
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
*
|
|
9
|
+
* ngAnimateChildren allows you to specify that children of this element should animate even if any
|
|
10
|
+
* of the children's parents are currently animating. By default, when an element has an active `enter`, `leave`, or `move`
|
|
11
|
+
* (structural) animation, child elements that also have an active structural animation are not animated.
|
|
12
|
+
*
|
|
13
|
+
* Note that even if `ngAnimateChildren` is set, no child animations will run when the parent element is removed from the DOM (`leave` animation).
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
* @param {string} ngAnimateChildren If the value is empty, `true` or `on`,
|
|
17
|
+
* then child animations are allowed. If the value is `false`, child animations are not allowed.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* <example module="ngAnimateChildren" name="ngAnimateChildren" deps="angular-animate.js" animations="true">
|
|
21
|
+
<file name="index.html">
|
|
22
|
+
<div ng-controller="MainController as main">
|
|
23
|
+
<label>Show container? <input type="checkbox" ng-model="main.enterElement" /></label>
|
|
24
|
+
<label>Animate children? <input type="checkbox" ng-model="main.animateChildren" /></label>
|
|
25
|
+
<hr>
|
|
26
|
+
<div ng-animate-children="{{main.animateChildren}}">
|
|
27
|
+
<div ng-if="main.enterElement" class="container">
|
|
28
|
+
List of items:
|
|
29
|
+
<div ng-repeat="item in [0, 1, 2, 3]" class="item">Item {{item}}</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</file>
|
|
34
|
+
<file name="animations.css">
|
|
35
|
+
|
|
36
|
+
.container.ng-enter,
|
|
37
|
+
.container.ng-leave {
|
|
38
|
+
transition: all ease 1.5s;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.container.ng-enter,
|
|
42
|
+
.container.ng-leave-active {
|
|
43
|
+
opacity: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.container.ng-leave,
|
|
47
|
+
.container.ng-enter-active {
|
|
48
|
+
opacity: 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.item {
|
|
52
|
+
background: firebrick;
|
|
53
|
+
color: #FFF;
|
|
54
|
+
margin-bottom: 10px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.item.ng-enter,
|
|
58
|
+
.item.ng-leave {
|
|
59
|
+
transition: transform 1.5s ease;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.item.ng-enter {
|
|
63
|
+
transform: translateX(50px);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.item.ng-enter-active {
|
|
67
|
+
transform: translateX(0);
|
|
68
|
+
}
|
|
69
|
+
</file>
|
|
70
|
+
<file name="script.js">
|
|
71
|
+
angular.module('ngAnimateChildren', ['ngAnimate'])
|
|
72
|
+
.controller('MainController', function MainController() {
|
|
73
|
+
this.animateChildren = false;
|
|
74
|
+
this.enterElement = false;
|
|
75
|
+
});
|
|
76
|
+
</file>
|
|
77
|
+
</example>
|
|
78
|
+
*/
|
|
79
|
+
export const $$AnimateChildrenDirective: (
|
|
80
|
+
| string
|
|
81
|
+
| (($interpolate: any) => {
|
|
82
|
+
link(scope: any, element: any, attrs: any): void;
|
|
83
|
+
})
|
|
84
|
+
)[];
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ngdoc directive
|
|
3
|
+
* @name ngAnimateSwap
|
|
4
|
+
* @restrict A
|
|
5
|
+
* @scope
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
*
|
|
9
|
+
* ngAnimateSwap is a animation-oriented directive that allows for the container to
|
|
10
|
+
* be removed and entered in whenever the associated expression changes. A
|
|
11
|
+
* common usecase for this directive is a rotating banner or slider component which
|
|
12
|
+
* contains one image being present at a time. When the active image changes
|
|
13
|
+
* then the old image will perform a `leave` animation and the new element
|
|
14
|
+
* will be inserted via an `enter` animation.
|
|
15
|
+
*
|
|
16
|
+
* @animations
|
|
17
|
+
* | Animation | Occurs |
|
|
18
|
+
* |----------------------------------|--------------------------------------|
|
|
19
|
+
* | {@link ng.$animate#enter enter} | when the new element is inserted to the DOM |
|
|
20
|
+
* | {@link ng.$animate#leave leave} | when the old element is removed from the DOM |
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* <example name="ngAnimateSwap-directive" module="ngAnimateSwapExample"
|
|
24
|
+
* deps="angular-animate.js"
|
|
25
|
+
* animations="true" fixBase="true">
|
|
26
|
+
* <file name="index.html">
|
|
27
|
+
* <div class="container" ng-controller="AppCtrl">
|
|
28
|
+
* <div ng-animate-swap="number" class="cell swap-animation" ng-class="colorClass(number)">
|
|
29
|
+
* {{ number }}
|
|
30
|
+
* </div>
|
|
31
|
+
* </div>
|
|
32
|
+
* </file>
|
|
33
|
+
* <file name="script.js">
|
|
34
|
+
* angular.module('ngAnimateSwapExample', ['ngAnimate'])
|
|
35
|
+
* .controller('AppCtrl', ['$scope', '$interval', function($scope, $interval) {
|
|
36
|
+
* $scope.number = 0;
|
|
37
|
+
* $interval(function() {
|
|
38
|
+
* $scope.number++;
|
|
39
|
+
* }, 1000);
|
|
40
|
+
*
|
|
41
|
+
* let colors = ['red','blue','green','yellow','orange'];
|
|
42
|
+
* $scope.colorClass = function(number) {
|
|
43
|
+
* return colors[number % colors.length];
|
|
44
|
+
* };
|
|
45
|
+
* }]);
|
|
46
|
+
* </file>
|
|
47
|
+
* <file name="animations.css">
|
|
48
|
+
* .container {
|
|
49
|
+
* height:250px;
|
|
50
|
+
* width:250px;
|
|
51
|
+
* position:relative;
|
|
52
|
+
* overflow:hidden;
|
|
53
|
+
* border:2px solid black;
|
|
54
|
+
* }
|
|
55
|
+
* .container .cell {
|
|
56
|
+
* font-size:150px;
|
|
57
|
+
* text-align:center;
|
|
58
|
+
* line-height:250px;
|
|
59
|
+
* position:absolute;
|
|
60
|
+
* top:0;
|
|
61
|
+
* left:0;
|
|
62
|
+
* right:0;
|
|
63
|
+
* border-bottom:2px solid black;
|
|
64
|
+
* }
|
|
65
|
+
* .swap-animation.ng-enter, .swap-animation.ng-leave {
|
|
66
|
+
* transition:0.5s linear all;
|
|
67
|
+
* }
|
|
68
|
+
* .swap-animation.ng-enter {
|
|
69
|
+
* top:-250px;
|
|
70
|
+
* }
|
|
71
|
+
* .swap-animation.ng-enter-active {
|
|
72
|
+
* top:0px;
|
|
73
|
+
* }
|
|
74
|
+
* .swap-animation.ng-leave {
|
|
75
|
+
* top:0px;
|
|
76
|
+
* }
|
|
77
|
+
* .swap-animation.ng-leave-active {
|
|
78
|
+
* top:250px;
|
|
79
|
+
* }
|
|
80
|
+
* .red { background:red; }
|
|
81
|
+
* .green { background:green; }
|
|
82
|
+
* .blue { background:blue; }
|
|
83
|
+
* .yellow { background:yellow; }
|
|
84
|
+
* .orange { background:orange; }
|
|
85
|
+
* </file>
|
|
86
|
+
* </example>
|
|
87
|
+
*/
|
|
88
|
+
export const ngAnimateSwapDirective: (
|
|
89
|
+
| string
|
|
90
|
+
| (($animate: any) => {
|
|
91
|
+
restrict: string;
|
|
92
|
+
transclude: string;
|
|
93
|
+
terminal: boolean;
|
|
94
|
+
priority: number;
|
|
95
|
+
link(
|
|
96
|
+
scope: any,
|
|
97
|
+
$element: any,
|
|
98
|
+
attrs: any,
|
|
99
|
+
ctrl: any,
|
|
100
|
+
$transclude: any,
|
|
101
|
+
): void;
|
|
102
|
+
})
|
|
103
|
+
)[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function $$AnimationProvider(): void;
|
|
2
|
+
export class $$AnimationProvider {
|
|
3
|
+
drivers: any[];
|
|
4
|
+
$get: (
|
|
5
|
+
| string
|
|
6
|
+
| ((
|
|
7
|
+
$rootScope: any,
|
|
8
|
+
$injector: any,
|
|
9
|
+
$$AnimateRunner: any,
|
|
10
|
+
$$rAFScheduler: any,
|
|
11
|
+
$$animateCache: any,
|
|
12
|
+
) => (element: any, event: any, options: any) => any)
|
|
13
|
+
)[];
|
|
14
|
+
}
|