@angular-wave/angular.ts 0.0.35 → 0.0.37
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 +4 -3
- package/public/public/my_other_directive.html +1 -0
- package/{test → src}/angular.spec.js +6 -6
- package/src/animations/animate-css-driver.js +1 -1
- package/src/animations/animate-queue.js +1 -1
- package/src/animations/animation.js +1 -1
- package/src/animations/shared.js +1 -1
- 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/src/directive/attrs/src.html +18 -0
- package/{test/directive → src/directive/attrs}/src.spec.js +3 -3
- package/src/directive/attrs/src.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 +5 -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} +2 -1
- 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/src/exts/aria/aria.html +21 -0
- package/src/exts/{aria.js → aria/aria.js} +1 -1
- package/{test → src/exts}/aria/aria.spec.js +3 -3
- package/src/exts/aria/aria.test.js +11 -0
- package/src/exts/messages/messages.html +21 -0
- package/src/exts/{messages.js → messages/messages.js} +1 -1
- package/{test → src/exts}/messages/messages.spec.js +5 -5
- package/src/exts/messages/messages.test.js +11 -0
- 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/loader.js +2 -2
- package/{test → src}/loader.spec.js +2 -2
- package/src/public.js +48 -45
- package/{test → src}/public.spec.js +2 -2
- package/src/router/common/glob.html +18 -0
- package/{test/router → src/router/common}/glob.spec.js +1 -1
- package/src/router/common/glob.test.js +11 -0
- package/src/router/directives/view-directive.js +1 -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 +2 -2
- package/src/services/cache-factory.js +5 -11
- package/src/services/document.js +1 -1
- 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/src/shared/jqlite/jqlite.html +18 -0
- package/src/{jqLite.js → shared/jqlite/jqlite.js} +2 -2
- package/{test → src/shared/jqlite}/jqlite.spec.js +7 -7
- package/src/shared/jqlite/jqlite.test.js +11 -0
- package/{test → src/shared}/min-err.spec.js +2 -2
- 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/src/exts/{messages.md → messages/messages.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
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export function assertArg(arg: any, name: any, reason: any): any;
|
|
2
|
+
export function mergeClasses(a: any, b: any): any;
|
|
3
|
+
export function packageStyles(options: any): {
|
|
4
|
+
to: any;
|
|
5
|
+
from: any;
|
|
6
|
+
};
|
|
7
|
+
export function pendClasses(classes: any, fix: any, isPrefix: any): string;
|
|
8
|
+
export function removeFromArray(arr: any, val: any): void;
|
|
9
|
+
export function stripCommentsFromElement(element: any): any;
|
|
10
|
+
export function extractElementNode(element: any): any;
|
|
11
|
+
export function applyAnimationClassesFactory(): (
|
|
12
|
+
element: any,
|
|
13
|
+
options: any,
|
|
14
|
+
) => void;
|
|
15
|
+
export function prepareAnimationOptions(options: any): any;
|
|
16
|
+
export function applyAnimationStyles(element: any, options: any): void;
|
|
17
|
+
export function applyAnimationFromStyles(element: any, options: any): void;
|
|
18
|
+
export function applyAnimationToStyles(element: any, options: any): void;
|
|
19
|
+
export function mergeAnimationDetails(
|
|
20
|
+
element: any,
|
|
21
|
+
oldAnimation: any,
|
|
22
|
+
newAnimation: any,
|
|
23
|
+
): any;
|
|
24
|
+
export function resolveElementClasses(
|
|
25
|
+
existing: any,
|
|
26
|
+
toAdd: any,
|
|
27
|
+
toRemove: any,
|
|
28
|
+
): {
|
|
29
|
+
addClass: string;
|
|
30
|
+
removeClass: string;
|
|
31
|
+
};
|
|
32
|
+
export function getDomNode(element: any): any;
|
|
33
|
+
export function applyGeneratedPreparationClasses(
|
|
34
|
+
element: any,
|
|
35
|
+
event: any,
|
|
36
|
+
options: any,
|
|
37
|
+
): void;
|
|
38
|
+
export function clearGeneratedClasses(element: any, options: any): void;
|
|
39
|
+
export function blockKeyframeAnimations(node: any, applyBlock: any): string[];
|
|
40
|
+
export function applyInlineStyle(node: any, styleTuple: any): void;
|
|
41
|
+
export function concatWithSpace(a: any, b: any): any;
|
|
42
|
+
export const ADD_CLASS_SUFFIX: "-add";
|
|
43
|
+
export const REMOVE_CLASS_SUFFIX: "-remove";
|
|
44
|
+
export const EVENT_CLASS_PREFIX: "ng-";
|
|
45
|
+
export const ACTIVE_CLASS_SUFFIX: "-active";
|
|
46
|
+
export const PREPARE_CLASS_SUFFIX: "-prepare";
|
|
47
|
+
export const NG_ANIMATE_CLASSNAME: "ng-animate";
|
|
48
|
+
export const NG_ANIMATE_CHILDREN_DATA: "$$ngAnimateChildren";
|
|
49
|
+
export let CSS_PREFIX: string;
|
|
50
|
+
export let TRANSITION_PROP: any;
|
|
51
|
+
export let TRANSITIONEND_EVENT: any;
|
|
52
|
+
export let ANIMATION_PROP: any;
|
|
53
|
+
export let ANIMATIONEND_EVENT: any;
|
|
54
|
+
export const DURATION_KEY: "Duration";
|
|
55
|
+
export const PROPERTY_KEY: "Property";
|
|
56
|
+
export const DELAY_KEY: "Delay";
|
|
57
|
+
export const TIMING_KEY: "TimingFunction";
|
|
58
|
+
export const ANIMATION_ITERATION_COUNT_KEY: "IterationCount";
|
|
59
|
+
export const ANIMATION_PLAYSTATE_KEY: "PlayState";
|
|
60
|
+
export const SAFE_FAST_FORWARD_DURATION_VALUE: 9999;
|
|
61
|
+
export const ANIMATION_DELAY_PROP: string;
|
|
62
|
+
export const ANIMATION_DURATION_PROP: string;
|
|
63
|
+
export const TRANSITION_DELAY_PROP: string;
|
|
64
|
+
export const TRANSITION_DURATION_PROP: string;
|
|
65
|
+
export const ngMinErr: (...args: any[]) => Error;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const VALID_CLASS: "ng-valid";
|
|
2
|
+
export const INVALID_CLASS: "ng-invalid";
|
|
3
|
+
export const PRISTINE_CLASS: "ng-pristine";
|
|
4
|
+
export const DIRTY_CLASS: "ng-dirty";
|
|
5
|
+
export const UNTOUCHED_CLASS: "ng-untouched";
|
|
6
|
+
export const TOUCHED_CLASS: "ng-touched";
|
|
7
|
+
export const EMPTY_CLASS: "ng-empty";
|
|
8
|
+
export const NOT_EMPTY_CLASS: "ng-not-empty";
|
|
9
|
+
export const PREFIX_REGEXP: RegExp;
|
|
10
|
+
export const SPECIAL_CHARS_REGEXP: RegExp;
|
|
11
|
+
export namespace ALIASED_ATTR {
|
|
12
|
+
let ngMinlength: string;
|
|
13
|
+
let ngMaxlength: string;
|
|
14
|
+
let ngMin: string;
|
|
15
|
+
let ngMax: string;
|
|
16
|
+
let ngPattern: string;
|
|
17
|
+
let ngStep: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ngdoc service
|
|
3
|
+
* @name $animateCss
|
|
4
|
+
* @kind object
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
* This is the core version of `$animateCss`. By default, only when the `ngAnimate` is included,
|
|
9
|
+
* then the `$animateCss` service will actually perform animations.
|
|
10
|
+
*
|
|
11
|
+
* Click here {@link ngAnimate.$animateCss to read the documentation for $animateCss}.
|
|
12
|
+
*/
|
|
13
|
+
export function CoreAnimateCssProvider(): void;
|
|
14
|
+
export class CoreAnimateCssProvider {
|
|
15
|
+
$get: (
|
|
16
|
+
| string
|
|
17
|
+
| (($$AnimateRunner: any) => (
|
|
18
|
+
element: any,
|
|
19
|
+
initialOptions: any,
|
|
20
|
+
) => {
|
|
21
|
+
start: () => any;
|
|
22
|
+
end: () => any;
|
|
23
|
+
})
|
|
24
|
+
)[];
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} ExpandoStore
|
|
3
|
+
*
|
|
4
|
+
* @property {!Object<string, any>} data
|
|
5
|
+
* @property {!Object} events
|
|
6
|
+
* @property {?Function} handle
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export const EXPANDO: "ngId";
|
|
10
|
+
/**
|
|
11
|
+
* Expando cache for adding properties to DOM nodes with JavaScript.
|
|
12
|
+
* This used to be an Object in JQLite decorator, but swapped out for a Map
|
|
13
|
+
* for performance reasons and convenience methods. A proxy is available for
|
|
14
|
+
* additional logic handling.
|
|
15
|
+
*
|
|
16
|
+
* @type {Map<number, ExpandoStore>}
|
|
17
|
+
*/
|
|
18
|
+
export const CACHE: Map<number, ExpandoStore>;
|
|
19
|
+
export type ExpandoStore = {
|
|
20
|
+
data: {
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
};
|
|
23
|
+
events: any;
|
|
24
|
+
handle: Function | null;
|
|
25
|
+
};
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
export function $CompileProvider(
|
|
2
|
+
$provide: any,
|
|
3
|
+
$$sanitizeUriProvider: any,
|
|
4
|
+
): void;
|
|
5
|
+
export class $CompileProvider {
|
|
6
|
+
constructor($provide: any, $$sanitizeUriProvider: any);
|
|
7
|
+
/**
|
|
8
|
+
* @ngdoc method
|
|
9
|
+
* @name $compileProvider#directive
|
|
10
|
+
* @kind function
|
|
11
|
+
*
|
|
12
|
+
* @description
|
|
13
|
+
* Register a new directive with the compiler.
|
|
14
|
+
*
|
|
15
|
+
* @param {string|Object} name Name of the directive in camel-case (i.e. `ngBind` which will match
|
|
16
|
+
* as `ng-bind`), or an object map of directives where the keys are the names and the values
|
|
17
|
+
* are the factories.
|
|
18
|
+
* @param {Function|Array} directiveFactory An injectable directive factory function. See the
|
|
19
|
+
* {@link guide/directive directive guide} and the {@link $compile compile API} for more info.
|
|
20
|
+
* @returns {ng.ICompileProvider} Self for chaining.
|
|
21
|
+
*/
|
|
22
|
+
directive: (
|
|
23
|
+
name: string | any,
|
|
24
|
+
directiveFactory: Function | any[],
|
|
25
|
+
) => ng.ICompileProvider;
|
|
26
|
+
/**
|
|
27
|
+
* @ngdoc method
|
|
28
|
+
* @name $compileProvider#component
|
|
29
|
+
* @module ng
|
|
30
|
+
* @param {string|Object} name Name of the component in camelCase (i.e. `myComp` which will match `<my-comp>`),
|
|
31
|
+
* or an object map of components where the keys are the names and the values are the component definition objects.
|
|
32
|
+
* @param {Object} options Component definition object (a simplified
|
|
33
|
+
* {@link ng.$compile#directive-definition-object directive definition object}),
|
|
34
|
+
* with the following properties (all optional):
|
|
35
|
+
*
|
|
36
|
+
* - `controller` – `{(string|function()=}` – controller constructor function that should be
|
|
37
|
+
* associated with newly created scope or the name of a {@link ng.$compile#-controller-
|
|
38
|
+
* registered controller} if passed as a string. An empty `noop` function by default.
|
|
39
|
+
* - `controllerAs` – `{string=}` – identifier name for to reference the controller in the component's scope.
|
|
40
|
+
* If present, the controller will be published to scope under the `controllerAs` name.
|
|
41
|
+
* If not present, this will default to be `$ctrl`.
|
|
42
|
+
* - `template` – `{string=|function()=}` – html template as a string or a function that
|
|
43
|
+
* returns an html template as a string which should be used as the contents of this component.
|
|
44
|
+
* Empty string by default.
|
|
45
|
+
*
|
|
46
|
+
* If `template` is a function, then it is {@link auto.$injector#invoke injected} with
|
|
47
|
+
* the following locals:
|
|
48
|
+
*
|
|
49
|
+
* - `$element` - Current element
|
|
50
|
+
* - `$attrs` - Current attributes object for the element
|
|
51
|
+
*
|
|
52
|
+
* - `templateUrl` – `{string=|function()=}` – path or function that returns a path to an html
|
|
53
|
+
* template that should be used as the contents of this component.
|
|
54
|
+
*
|
|
55
|
+
* If `templateUrl` is a function, then it is {@link auto.$injector#invoke injected} with
|
|
56
|
+
* the following locals:
|
|
57
|
+
*
|
|
58
|
+
* - `$element` - Current element
|
|
59
|
+
* - `$attrs` - Current attributes object for the element
|
|
60
|
+
*
|
|
61
|
+
* - `bindings` – `{object=}` – defines bindings between DOM attributes and component properties.
|
|
62
|
+
* Component properties are always bound to the component controller and not to the scope.
|
|
63
|
+
* See {@link ng.$compile#-bindtocontroller- `bindToController`}.
|
|
64
|
+
* - `transclude` – `{boolean=}` – whether {@link $compile#transclusion content transclusion} is enabled.
|
|
65
|
+
* Disabled by default.
|
|
66
|
+
* - `require` - `{Object<string, string>=}` - requires the controllers of other directives and binds them to
|
|
67
|
+
* this component's controller. The object keys specify the property names under which the required
|
|
68
|
+
* controllers (object values) will be bound. See {@link ng.$compile#-require- `require`}.
|
|
69
|
+
* - `$...` – additional properties to attach to the directive factory function and the controller
|
|
70
|
+
* constructor function. (This is used by the component router to annotate)
|
|
71
|
+
*
|
|
72
|
+
* @returns {ng.$compileProvider} the compile provider itself, for chaining of function calls.
|
|
73
|
+
* @description
|
|
74
|
+
* Register a **component definition** with the compiler. This is a shorthand for registering a special
|
|
75
|
+
* type of directive, which represents a self-contained UI component in your application. Such components
|
|
76
|
+
* are always isolated (i.e. `scope: {}`) and are always restricted to elements (i.e. `restrict: 'E'`).
|
|
77
|
+
*
|
|
78
|
+
* Component definitions are very simple and do not require as much configuration as defining general
|
|
79
|
+
* directives. Component definitions usually consist only of a template and a controller backing it.
|
|
80
|
+
*
|
|
81
|
+
* In order to make the definition easier, components enforce best practices like use of `controllerAs`,
|
|
82
|
+
* `bindToController`. They always have **isolate scope** and are restricted to elements.
|
|
83
|
+
*
|
|
84
|
+
* Here are a few examples of how you would usually define components:
|
|
85
|
+
*
|
|
86
|
+
* ```js
|
|
87
|
+
* let myMod = angular.module(...);
|
|
88
|
+
* myMod.component('myComp', {
|
|
89
|
+
* template: '<div>My name is {{$ctrl.name}}</div>',
|
|
90
|
+
* controller: function() {
|
|
91
|
+
* this.name = 'shahar';
|
|
92
|
+
* }
|
|
93
|
+
* });
|
|
94
|
+
*
|
|
95
|
+
* myMod.component('myComp', {
|
|
96
|
+
* template: '<div>My name is {{$ctrl.name}}</div>',
|
|
97
|
+
* bindings: {name: '@'}
|
|
98
|
+
* });
|
|
99
|
+
*
|
|
100
|
+
* myMod.component('myComp', {
|
|
101
|
+
* templateUrl: 'views/my-comp.html',
|
|
102
|
+
* controller: 'MyCtrl',
|
|
103
|
+
* controllerAs: 'ctrl',
|
|
104
|
+
* bindings: {name: '@'}
|
|
105
|
+
* });
|
|
106
|
+
*
|
|
107
|
+
* ```
|
|
108
|
+
* For more examples, and an in-depth guide, see the {@link guide/component component guide}.
|
|
109
|
+
*
|
|
110
|
+
* <br />
|
|
111
|
+
* See also {@link ng.$compileProvider#directive $compileProvider.directive()}.
|
|
112
|
+
*/
|
|
113
|
+
component: (name: string | any, options: any) => ng.$compileProvider;
|
|
114
|
+
/**
|
|
115
|
+
* @ngdoc method
|
|
116
|
+
* @name $compileProvider#aHrefSanitizationTrustedUrlList
|
|
117
|
+
* @kind function
|
|
118
|
+
*
|
|
119
|
+
* @description
|
|
120
|
+
* Retrieves or overrides the default regular expression that is used for determining trusted safe
|
|
121
|
+
* urls during a[href] sanitization.
|
|
122
|
+
*
|
|
123
|
+
* The sanitization is a security measure aimed at preventing XSS attacks via html links.
|
|
124
|
+
*
|
|
125
|
+
* Any url about to be assigned to a[href] via data-binding is first normalized and turned into
|
|
126
|
+
* an absolute url. Afterwards, the url is matched against the `aHrefSanitizationTrustedUrlList`
|
|
127
|
+
* regular expression. If a match is found, the original url is written into the dom. Otherwise,
|
|
128
|
+
* the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
|
|
129
|
+
*
|
|
130
|
+
* @param {RegExp=} regexp New regexp to trust urls with.
|
|
131
|
+
* @returns {RegExp|ng.ICompileProvider} Current RegExp if called without value or self for
|
|
132
|
+
* chaining otherwise.
|
|
133
|
+
*/
|
|
134
|
+
aHrefSanitizationTrustedUrlList: (
|
|
135
|
+
regexp?: RegExp | undefined,
|
|
136
|
+
) => RegExp | ng.ICompileProvider;
|
|
137
|
+
/**
|
|
138
|
+
* @ngdoc method
|
|
139
|
+
* @name $compileProvider#imgSrcSanitizationTrustedUrlList
|
|
140
|
+
* @kind function
|
|
141
|
+
*
|
|
142
|
+
* @description
|
|
143
|
+
* Retrieves or overrides the default regular expression that is used for determining trusted safe
|
|
144
|
+
* urls during img[src] sanitization.
|
|
145
|
+
*
|
|
146
|
+
* The sanitization is a security measure aimed at prevent XSS attacks via html links.
|
|
147
|
+
*
|
|
148
|
+
* Any url about to be assigned to img[src] via data-binding is first normalized and turned into
|
|
149
|
+
* an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationTrustedUrlList`
|
|
150
|
+
* regular expression. If a match is found, the original url is written into the dom. Otherwise,
|
|
151
|
+
* the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
|
|
152
|
+
*
|
|
153
|
+
* @param {RegExp=} regexp New regexp to trust urls with.
|
|
154
|
+
* @returns {RegExp|ng.ICompileProvider} Current RegExp if called without value or self for
|
|
155
|
+
* chaining otherwise.
|
|
156
|
+
*/
|
|
157
|
+
imgSrcSanitizationTrustedUrlList: (
|
|
158
|
+
regexp?: RegExp | undefined,
|
|
159
|
+
) => RegExp | ng.ICompileProvider;
|
|
160
|
+
debugInfoEnabled: (enabled: any) => boolean | this;
|
|
161
|
+
strictComponentBindingsEnabled: (enabled: any) => boolean | this;
|
|
162
|
+
/**
|
|
163
|
+
* @ngdoc method
|
|
164
|
+
* @name $compileProvider#addPropertySecurityContext
|
|
165
|
+
* @description
|
|
166
|
+
*
|
|
167
|
+
* Defines the security context for DOM properties bound by ng-prop-*.
|
|
168
|
+
*
|
|
169
|
+
* @param {string} elementName The element name or '*' to match any element.
|
|
170
|
+
* @param {string} propertyName The DOM property name.
|
|
171
|
+
* @param {string} ctx The {@link $sce} security context in which this value is safe for use, e.g. `$sce.URL`
|
|
172
|
+
* @returns {object} `this` for chaining
|
|
173
|
+
*/
|
|
174
|
+
addPropertySecurityContext: (
|
|
175
|
+
elementName: string,
|
|
176
|
+
propertyName: string,
|
|
177
|
+
ctx: string,
|
|
178
|
+
) => object;
|
|
179
|
+
$get: (
|
|
180
|
+
| string
|
|
181
|
+
| ((
|
|
182
|
+
$injector: any,
|
|
183
|
+
$interpolate: any,
|
|
184
|
+
$exceptionHandler: any,
|
|
185
|
+
$templateRequest: any,
|
|
186
|
+
$parse: any,
|
|
187
|
+
$controller: any,
|
|
188
|
+
$rootScope: any,
|
|
189
|
+
$sce: any,
|
|
190
|
+
$animate: any,
|
|
191
|
+
) => (
|
|
192
|
+
$compileNodes: string | NodeList,
|
|
193
|
+
transcludeFn: any,
|
|
194
|
+
maxPriority: any,
|
|
195
|
+
ignoreDirective: any,
|
|
196
|
+
previousCompileContext: any,
|
|
197
|
+
) => (scope: any, cloneConnectFn: any, options: any) => any)
|
|
198
|
+
)[];
|
|
199
|
+
}
|
|
200
|
+
export namespace $CompileProvider {
|
|
201
|
+
let $inject: string[];
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Function that aggregates all linking fns for a compilation root (nodeList)
|
|
205
|
+
*/
|
|
206
|
+
export type CompositeLinkFn = Function;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export function identifierForController(controller: any, ident: any): any;
|
|
2
|
+
/**
|
|
3
|
+
* @ngdoc provider
|
|
4
|
+
* @name $controllerProvider
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
* The {@link ng.$controller $controller service} is used by AngularJS to create new
|
|
9
|
+
* controllers.
|
|
10
|
+
*
|
|
11
|
+
* This provider allows controller registration via the
|
|
12
|
+
* {@link ng.$controllerProvider#register register} method.
|
|
13
|
+
*/
|
|
14
|
+
export function $ControllerProvider(): void;
|
|
15
|
+
export class $ControllerProvider {
|
|
16
|
+
/**
|
|
17
|
+
* @ngdoc method
|
|
18
|
+
* @name $controllerProvider#has
|
|
19
|
+
* @param {string} name Controller name to check.
|
|
20
|
+
*/
|
|
21
|
+
has: (name: string) => any;
|
|
22
|
+
/**
|
|
23
|
+
* @ngdoc method
|
|
24
|
+
* @name $controllerProvider#register
|
|
25
|
+
* @param {string|Object} name Controller name, or an object map of controllers where the keys are
|
|
26
|
+
* the names and the values are the constructors.
|
|
27
|
+
* @param {Function|Array} constructor Controller constructor fn (optionally decorated with DI
|
|
28
|
+
* annotations in the array notation).
|
|
29
|
+
*/
|
|
30
|
+
register: (name: string | any, constructor: Function | any[]) => void;
|
|
31
|
+
$get: (
|
|
32
|
+
| string
|
|
33
|
+
| ((
|
|
34
|
+
$injector: any,
|
|
35
|
+
) => (
|
|
36
|
+
expression: Function | string,
|
|
37
|
+
locals: any,
|
|
38
|
+
later: any,
|
|
39
|
+
ident: any,
|
|
40
|
+
) => any)
|
|
41
|
+
)[];
|
|
42
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ngdoc service
|
|
3
|
+
* @name $exceptionHandler
|
|
4
|
+
* @requires ng.$log
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
* Any uncaught exception in AngularJS expressions is delegated to this service.
|
|
9
|
+
* The default implementation simply delegates to `$log.error` which logs it into
|
|
10
|
+
* the browser console.
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* ## Example:
|
|
14
|
+
*
|
|
15
|
+
* The example below will overwrite the default `$exceptionHandler` in order to (a) log uncaught
|
|
16
|
+
* errors to the backend for later inspection by the developers and (b) to use `$log.warn()` instead
|
|
17
|
+
* of `$log.error()`.
|
|
18
|
+
*
|
|
19
|
+
* ```js
|
|
20
|
+
* angular.
|
|
21
|
+
* module('exceptionOverwrite', []).
|
|
22
|
+
* factory('$exceptionHandler', ['$log', 'logErrorsToBackend', function($log, logErrorsToBackend) {
|
|
23
|
+
* return function myExceptionHandler(exception, cause) {
|
|
24
|
+
* logErrorsToBackend(exception, cause);
|
|
25
|
+
* $log.warn(exception, cause);
|
|
26
|
+
* };
|
|
27
|
+
* }]);
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* <hr />
|
|
31
|
+
* Note, that code executed in event-listeners (even those registered using jqLite's `on`/`bind`
|
|
32
|
+
* methods) does not delegate exceptions to the {@link ng.$exceptionHandler $exceptionHandler}
|
|
33
|
+
* (unless executed during a digest).
|
|
34
|
+
*
|
|
35
|
+
* If you wish, you can manually delegate exceptions, e.g.
|
|
36
|
+
* `try { ... } catch(e) { $exceptionHandler(e); }`
|
|
37
|
+
*
|
|
38
|
+
* @param {Error} exception Exception associated with the error.
|
|
39
|
+
* @param {string=} cause Optional information about the context in which
|
|
40
|
+
* the error was thrown.
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
export function $ExceptionHandlerProvider(): void;
|
|
44
|
+
export class $ExceptionHandlerProvider {
|
|
45
|
+
$get: (string | (($log: any) => (...args: any[]) => void))[];
|
|
46
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function $FilterProvider($provide: any): void;
|
|
2
|
+
export class $FilterProvider {
|
|
3
|
+
constructor($provide: any);
|
|
4
|
+
register: (name: any, factory: any) => any;
|
|
5
|
+
$get: (string | (($injector: any) => (name: any) => any))[];
|
|
6
|
+
}
|
|
7
|
+
export namespace $FilterProvider {
|
|
8
|
+
let $inject: string[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ngdoc provider
|
|
3
|
+
* @name $interpolateProvider
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
*
|
|
8
|
+
* Used for configuring the interpolation markup. Defaults to `{{` and `}}`.
|
|
9
|
+
*
|
|
10
|
+
* <div class="alert alert-danger">
|
|
11
|
+
* This feature is sometimes used to mix different markup languages, e.g. to wrap an AngularJS
|
|
12
|
+
* template within a Python Jinja template (or any other template language). Mixing templating
|
|
13
|
+
* languages is **very dangerous**. The embedding template language will not safely escape AngularJS
|
|
14
|
+
* expressions, so any user-controlled values in the template will cause Cross Site Scripting (XSS)
|
|
15
|
+
* security bugs!
|
|
16
|
+
* </div>
|
|
17
|
+
*/
|
|
18
|
+
export function $InterpolateProvider(): void;
|
|
19
|
+
export class $InterpolateProvider {
|
|
20
|
+
/**
|
|
21
|
+
* @ngdoc method
|
|
22
|
+
* @name $interpolateProvider#startSymbol
|
|
23
|
+
* @description
|
|
24
|
+
* Symbol to denote start of expression in the interpolated string. Defaults to `{{`.
|
|
25
|
+
*
|
|
26
|
+
* @param {string=} value new value to set the starting symbol to.
|
|
27
|
+
* @returns {string|self} Returns the symbol when used as getter and self if used as setter.
|
|
28
|
+
*/
|
|
29
|
+
startSymbol: (
|
|
30
|
+
value?: string | undefined,
|
|
31
|
+
) => string | (Window & typeof globalThis);
|
|
32
|
+
/**
|
|
33
|
+
* @ngdoc method
|
|
34
|
+
* @name $interpolateProvider#endSymbol
|
|
35
|
+
* @description
|
|
36
|
+
* Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.
|
|
37
|
+
*
|
|
38
|
+
* @param {string=} value new value to set the ending symbol to.
|
|
39
|
+
* @returns {string|self} Returns the symbol when used as getter and self if used as setter.
|
|
40
|
+
*/
|
|
41
|
+
endSymbol: (
|
|
42
|
+
value?: string | undefined,
|
|
43
|
+
) => string | (Window & typeof globalThis);
|
|
44
|
+
$get: (
|
|
45
|
+
| string
|
|
46
|
+
| ((
|
|
47
|
+
$parse: any,
|
|
48
|
+
$exceptionHandler: any,
|
|
49
|
+
$sce: any,
|
|
50
|
+
) => {
|
|
51
|
+
(
|
|
52
|
+
text: string,
|
|
53
|
+
mustHaveExpression?: boolean | undefined,
|
|
54
|
+
trustedContext?: string | undefined,
|
|
55
|
+
allOrNothing?: boolean | undefined,
|
|
56
|
+
): (arg0: context) => any;
|
|
57
|
+
/**
|
|
58
|
+
* @ngdoc method
|
|
59
|
+
* @name $interpolate#startSymbol
|
|
60
|
+
* @description
|
|
61
|
+
* Symbol to denote the start of expression in the interpolated string. Defaults to `{{`.
|
|
62
|
+
*
|
|
63
|
+
* Use {@link ng.$interpolateProvider#startSymbol `$interpolateProvider.startSymbol`} to change
|
|
64
|
+
* the symbol.
|
|
65
|
+
*
|
|
66
|
+
* @returns {string} start symbol.
|
|
67
|
+
*/
|
|
68
|
+
startSymbol(): string;
|
|
69
|
+
/**
|
|
70
|
+
* @ngdoc method
|
|
71
|
+
* @name $interpolate#endSymbol
|
|
72
|
+
* @description
|
|
73
|
+
* Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.
|
|
74
|
+
*
|
|
75
|
+
* Use {@link ng.$interpolateProvider#endSymbol `$interpolateProvider.endSymbol`} to change
|
|
76
|
+
* the symbol.
|
|
77
|
+
*
|
|
78
|
+
* @returns {string} end symbol.
|
|
79
|
+
*/
|
|
80
|
+
endSymbol(): string;
|
|
81
|
+
})
|
|
82
|
+
)[];
|
|
83
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function $$IntervalFactoryProvider(): void;
|
|
2
|
+
export class $$IntervalFactoryProvider {
|
|
3
|
+
$get: (
|
|
4
|
+
| string
|
|
5
|
+
| ((
|
|
6
|
+
$browser: any,
|
|
7
|
+
$q: any,
|
|
8
|
+
$$q: any,
|
|
9
|
+
$rootScope: any,
|
|
10
|
+
) => (
|
|
11
|
+
setIntervalFn: any,
|
|
12
|
+
clearIntervalFn: any,
|
|
13
|
+
) => (
|
|
14
|
+
fn: any,
|
|
15
|
+
delay: any,
|
|
16
|
+
count: any,
|
|
17
|
+
invokeApply: any,
|
|
18
|
+
...args: any[]
|
|
19
|
+
) => any)
|
|
20
|
+
)[];
|
|
21
|
+
}
|