@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,23 @@
|
|
|
1
|
+
export const ngRepeatDirective: (
|
|
2
|
+
| string
|
|
3
|
+
| ((
|
|
4
|
+
$parse: any,
|
|
5
|
+
$animate: any,
|
|
6
|
+
) => {
|
|
7
|
+
restrict: string;
|
|
8
|
+
multiElement: boolean;
|
|
9
|
+
transclude: string;
|
|
10
|
+
priority: number;
|
|
11
|
+
terminal: boolean;
|
|
12
|
+
compile: (
|
|
13
|
+
$element: any,
|
|
14
|
+
$attr: any,
|
|
15
|
+
) => (
|
|
16
|
+
$scope: any,
|
|
17
|
+
$element: any,
|
|
18
|
+
$attr: any,
|
|
19
|
+
ctrl: any,
|
|
20
|
+
$transclude: any,
|
|
21
|
+
) => void;
|
|
22
|
+
})
|
|
23
|
+
)[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ngdoc directive
|
|
3
|
+
* @name script
|
|
4
|
+
* @restrict E
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* Load the content of a `<script>` element into {@link ng.$templateCache `$templateCache`}, so that the
|
|
8
|
+
* template can be used by {@link ng.directive:ngInclude `ngInclude`},
|
|
9
|
+
* {@link ngRoute.directive:ngView `ngView`}, or {@link guide/directive directives}. The type of the
|
|
10
|
+
* `<script>` element must be specified as `text/ng-template`, and a cache name for the template must be
|
|
11
|
+
* assigned through the element's `id`, which can then be used as a directive's `templateUrl`.
|
|
12
|
+
*
|
|
13
|
+
* @param {string} type Must be set to `'text/ng-template'`.
|
|
14
|
+
* @param {string} id Cache name of the template.
|
|
15
|
+
*/
|
|
16
|
+
export const scriptDirective: (
|
|
17
|
+
| string
|
|
18
|
+
| (($templateCache: any) => {
|
|
19
|
+
restrict: string;
|
|
20
|
+
terminal: boolean;
|
|
21
|
+
compile(element: any, attr: any): void;
|
|
22
|
+
})
|
|
23
|
+
)[];
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ngdoc directive
|
|
3
|
+
* @name ngShow
|
|
4
|
+
* @multiElement
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* The `ngShow` directive shows or hides the given HTML element based on the expression provided to
|
|
8
|
+
* the `ngShow` attribute.
|
|
9
|
+
*
|
|
10
|
+
* The element is shown or hidden by removing or adding the `.ng-hide` CSS class onto the element.
|
|
11
|
+
* The `.ng-hide` CSS class is predefined in AngularJS and sets the display style to none (using an
|
|
12
|
+
* `!important` flag). For CSP mode please add `angular-csp.css` to your HTML file (see
|
|
13
|
+
* {@link ng.directive:ngCsp ngCsp}).
|
|
14
|
+
*
|
|
15
|
+
* ```html
|
|
16
|
+
* <!-- when $scope.myValue is truthy (element is visible) -->
|
|
17
|
+
* <div ng-show="myValue"></div>
|
|
18
|
+
*
|
|
19
|
+
* <!-- when $scope.myValue is falsy (element is hidden) -->
|
|
20
|
+
* <div ng-show="myValue" class="ng-hide"></div>
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* When the `ngShow` expression evaluates to a falsy value then the `.ng-hide` CSS class is added
|
|
24
|
+
* to the class attribute on the element causing it to become hidden. When truthy, the `.ng-hide`
|
|
25
|
+
* CSS class is removed from the element causing the element not to appear hidden.
|
|
26
|
+
*
|
|
27
|
+
* ## Why is `!important` used?
|
|
28
|
+
*
|
|
29
|
+
* You may be wondering why `!important` is used for the `.ng-hide` CSS class. This is because the
|
|
30
|
+
* `.ng-hide` selector can be easily overridden by heavier selectors. For example, something as
|
|
31
|
+
* simple as changing the display style on a HTML list item would make hidden elements appear
|
|
32
|
+
* visible. This also becomes a bigger issue when dealing with CSS frameworks.
|
|
33
|
+
*
|
|
34
|
+
* By using `!important`, the show and hide behavior will work as expected despite any clash between
|
|
35
|
+
* CSS selector specificity (when `!important` isn't used with any conflicting styles). If a
|
|
36
|
+
* developer chooses to override the styling to change how to hide an element then it is just a
|
|
37
|
+
* matter of using `!important` in their own CSS code.
|
|
38
|
+
*
|
|
39
|
+
* ### Overriding `.ng-hide`
|
|
40
|
+
*
|
|
41
|
+
* By default, the `.ng-hide` class will style the element with `display: none !important`. If you
|
|
42
|
+
* wish to change the hide behavior with `ngShow`/`ngHide`, you can simply overwrite the styles for
|
|
43
|
+
* the `.ng-hide` CSS class. Note that the selector that needs to be used is actually
|
|
44
|
+
* `.ng-hide:not(.ng-hide-animate)` to cope with extra animation classes that can be added.
|
|
45
|
+
*
|
|
46
|
+
* ```css
|
|
47
|
+
* .ng-hide:not(.ng-hide-animate) {
|
|
48
|
+
* /* These are just alternative ways of hiding an element */
|
|
49
|
+
* display: block!important;
|
|
50
|
+
* position: absolute;
|
|
51
|
+
* top: -9999px;
|
|
52
|
+
* left: -9999px;
|
|
53
|
+
* }
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* By default you don't need to override anything in CSS and the animations will work around the
|
|
57
|
+
* display style.
|
|
58
|
+
*
|
|
59
|
+
* @animations
|
|
60
|
+
* | Animation | Occurs |
|
|
61
|
+
* |-----------------------------------------------------|---------------------------------------------------------------------------------------------------------------|
|
|
62
|
+
* | {@link $animate#addClass addClass} `.ng-hide` | After the `ngShow` expression evaluates to a non truthy value and just before the contents are set to hidden. |
|
|
63
|
+
* | {@link $animate#removeClass removeClass} `.ng-hide` | After the `ngShow` expression evaluates to a truthy value and just before contents are set to visible. |
|
|
64
|
+
*
|
|
65
|
+
* Animations in `ngShow`/`ngHide` work with the show and hide events that are triggered when the
|
|
66
|
+
* directive expression is true and false. This system works like the animation system present with
|
|
67
|
+
* `ngClass` except that you must also include the `!important` flag to override the display
|
|
68
|
+
* property so that the elements are not actually hidden during the animation.
|
|
69
|
+
*
|
|
70
|
+
* ```css
|
|
71
|
+
* /* A working example can be found at the bottom of this page. */
|
|
72
|
+
* .my-element.ng-hide-add, .my-element.ng-hide-remove {
|
|
73
|
+
* transition: all 0.5s linear;
|
|
74
|
+
* }
|
|
75
|
+
*
|
|
76
|
+
* .my-element.ng-hide-add { ... }
|
|
77
|
+
* .my-element.ng-hide-add.ng-hide-add-active { ... }
|
|
78
|
+
* .my-element.ng-hide-remove { ... }
|
|
79
|
+
* .my-element.ng-hide-remove.ng-hide-remove-active { ... }
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* Keep in mind that, as of AngularJS version 1.3, there is no need to change the display property
|
|
83
|
+
* to block during animation states - ngAnimate will automatically handle the style toggling for you.
|
|
84
|
+
*
|
|
85
|
+
* @element ANY
|
|
86
|
+
* @param {string} ngShow If the {@link guide/expression expression} is truthy/falsy then the
|
|
87
|
+
* element is shown/hidden respectively.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* A simple example, animating the element's opacity:
|
|
91
|
+
|
|
92
|
+
* <hr />
|
|
93
|
+
*
|
|
94
|
+
* @knownIssue
|
|
95
|
+
*
|
|
96
|
+
* ### Flickering when using ngShow to toggle between elements
|
|
97
|
+
*
|
|
98
|
+
* When using {@link ngShow} and / or {@link ngHide} to toggle between elements, it can
|
|
99
|
+
* happen that both the element to show and the element to hide are visible for a very short time.
|
|
100
|
+
*
|
|
101
|
+
* This usually happens when the {@link ngAnimate ngAnimate module} is included, but no actual animations
|
|
102
|
+
* are defined for {@link ngShow} / {@link ngHide}.
|
|
103
|
+
*
|
|
104
|
+
* There are several way to mitigate this problem:
|
|
105
|
+
*
|
|
106
|
+
* - {@link guide/animations#how-to-selectively-enable-disable-and-skip-animations Disable animations on the affected elements}.
|
|
107
|
+
* - Use {@link ngIf} or {@link ngSwitch} instead of {@link ngShow} / {@link ngHide}.
|
|
108
|
+
* - Use the special CSS selector `ng-hide.ng-hide-animate` to set `{display: none}` or similar on the affected elements.
|
|
109
|
+
* - Use `ng-class="{'ng-hide': expression}` instead of instead of {@link ngShow} / {@link ngHide}.
|
|
110
|
+
* - Define an animation on the affected elements.
|
|
111
|
+
*/
|
|
112
|
+
export const ngShowDirective: (
|
|
113
|
+
| string
|
|
114
|
+
| (($animate: any) => {
|
|
115
|
+
restrict: string;
|
|
116
|
+
multiElement: boolean;
|
|
117
|
+
link(scope: any, element: any, attr: any): void;
|
|
118
|
+
})
|
|
119
|
+
)[];
|
|
120
|
+
/**
|
|
121
|
+
* @ngdoc directive
|
|
122
|
+
* @name ngHide
|
|
123
|
+
* @multiElement
|
|
124
|
+
*
|
|
125
|
+
* @description
|
|
126
|
+
* The `ngHide` directive shows or hides the given HTML element based on the expression provided to
|
|
127
|
+
* the `ngHide` attribute.
|
|
128
|
+
*
|
|
129
|
+
* The element is shown or hidden by removing or adding the `.ng-hide` CSS class onto the element.
|
|
130
|
+
* The `.ng-hide` CSS class is predefined in AngularJS and sets the display style to none (using an
|
|
131
|
+
* `!important` flag). For CSP mode please add `angular-csp.css` to your HTML file (see
|
|
132
|
+
* {@link ng.directive:ngCsp ngCsp}).
|
|
133
|
+
*
|
|
134
|
+
* ```html
|
|
135
|
+
* <!-- when $scope.myValue is truthy (element is hidden) -->
|
|
136
|
+
* <div ng-hide="myValue" class="ng-hide"></div>
|
|
137
|
+
*
|
|
138
|
+
* <!-- when $scope.myValue is falsy (element is visible) -->
|
|
139
|
+
* <div ng-hide="myValue"></div>
|
|
140
|
+
* ```
|
|
141
|
+
*
|
|
142
|
+
* When the `ngHide` expression evaluates to a truthy value then the `.ng-hide` CSS class is added
|
|
143
|
+
* to the class attribute on the element causing it to become hidden. When falsy, the `.ng-hide`
|
|
144
|
+
* CSS class is removed from the element causing the element not to appear hidden.
|
|
145
|
+
*
|
|
146
|
+
* ## Why is `!important` used?
|
|
147
|
+
*
|
|
148
|
+
* You may be wondering why `!important` is used for the `.ng-hide` CSS class. This is because the
|
|
149
|
+
* `.ng-hide` selector can be easily overridden by heavier selectors. For example, something as
|
|
150
|
+
* simple as changing the display style on a HTML list item would make hidden elements appear
|
|
151
|
+
* visible. This also becomes a bigger issue when dealing with CSS frameworks.
|
|
152
|
+
*
|
|
153
|
+
* By using `!important`, the show and hide behavior will work as expected despite any clash between
|
|
154
|
+
* CSS selector specificity (when `!important` isn't used with any conflicting styles). If a
|
|
155
|
+
* developer chooses to override the styling to change how to hide an element then it is just a
|
|
156
|
+
* matter of using `!important` in their own CSS code.
|
|
157
|
+
*
|
|
158
|
+
* ### Overriding `.ng-hide`
|
|
159
|
+
*
|
|
160
|
+
* By default, the `.ng-hide` class will style the element with `display: none !important`. If you
|
|
161
|
+
* wish to change the hide behavior with `ngShow`/`ngHide`, you can simply overwrite the styles for
|
|
162
|
+
* the `.ng-hide` CSS class. Note that the selector that needs to be used is actually
|
|
163
|
+
* `.ng-hide:not(.ng-hide-animate)` to cope with extra animation classes that can be added.
|
|
164
|
+
*
|
|
165
|
+
* ```css
|
|
166
|
+
* .ng-hide:not(.ng-hide-animate) {
|
|
167
|
+
* /* These are just alternative ways of hiding an element */
|
|
168
|
+
* display: block!important;
|
|
169
|
+
* position: absolute;
|
|
170
|
+
* top: -9999px;
|
|
171
|
+
* left: -9999px;
|
|
172
|
+
* }
|
|
173
|
+
* ```
|
|
174
|
+
*
|
|
175
|
+
* By default you don't need to override in CSS anything and the animations will work around the
|
|
176
|
+
* display style.
|
|
177
|
+
*
|
|
178
|
+
* @animations
|
|
179
|
+
* | Animation | Occurs |
|
|
180
|
+
* |-----------------------------------------------------|------------------------------------------------------------------------------------------------------------|
|
|
181
|
+
* | {@link $animate#addClass addClass} `.ng-hide` | After the `ngHide` expression evaluates to a truthy value and just before the contents are set to hidden. |
|
|
182
|
+
* | {@link $animate#removeClass removeClass} `.ng-hide` | After the `ngHide` expression evaluates to a non truthy value and just before contents are set to visible. |
|
|
183
|
+
*
|
|
184
|
+
* Animations in `ngShow`/`ngHide` work with the show and hide events that are triggered when the
|
|
185
|
+
* directive expression is true and false. This system works like the animation system present with
|
|
186
|
+
* `ngClass` except that you must also include the `!important` flag to override the display
|
|
187
|
+
* property so that the elements are not actually hidden during the animation.
|
|
188
|
+
*
|
|
189
|
+
* ```css
|
|
190
|
+
* /* A working example can be found at the bottom of this page. */
|
|
191
|
+
* .my-element.ng-hide-add, .my-element.ng-hide-remove {
|
|
192
|
+
* transition: all 0.5s linear;
|
|
193
|
+
* }
|
|
194
|
+
*
|
|
195
|
+
* .my-element.ng-hide-add { ... }
|
|
196
|
+
* .my-element.ng-hide-add.ng-hide-add-active { ... }
|
|
197
|
+
* .my-element.ng-hide-remove { ... }
|
|
198
|
+
* .my-element.ng-hide-remove.ng-hide-remove-active { ... }
|
|
199
|
+
* ```
|
|
200
|
+
*
|
|
201
|
+
* Keep in mind that, as of AngularJS version 1.3, there is no need to change the display property
|
|
202
|
+
* to block during animation states - ngAnimate will automatically handle the style toggling for you.
|
|
203
|
+
*
|
|
204
|
+
* @element ANY
|
|
205
|
+
* @param {string} ngHide If the {@link guide/expression expression} is truthy/falsy then the
|
|
206
|
+
* element is hidden/shown respectively.
|
|
207
|
+
*
|
|
208
|
+
* @knownIssue
|
|
209
|
+
*
|
|
210
|
+
* ### Flickering when using ngHide to toggle between elements
|
|
211
|
+
*
|
|
212
|
+
* When using {@link ngShow} and / or {@link ngHide} to toggle between elements, it can
|
|
213
|
+
* happen that both the element to show and the element to hide are visible for a very short time.
|
|
214
|
+
*
|
|
215
|
+
* This usually happens when the {@link ngAnimate ngAnimate module} is included, but no actual animations
|
|
216
|
+
* are defined for {@link ngShow} / {@link ngHide}. Internet Explorer is affected more often than
|
|
217
|
+
* other browsers.
|
|
218
|
+
*
|
|
219
|
+
* There are several way to mitigate this problem:
|
|
220
|
+
*
|
|
221
|
+
* - {@link guide/animations#how-to-selectively-enable-disable-and-skip-animations Disable animations on the affected elements}.
|
|
222
|
+
* - Use {@link ngIf} or {@link ngSwitch} instead of {@link ngShow} / {@link ngHide}.
|
|
223
|
+
* - Use the special CSS selector `ng-hide.ng-hide-animate` to set `{display: none}` or similar on the affected elements.
|
|
224
|
+
* - Use `ng-class="{'ng-hide': expression}` instead of instead of {@link ngShow} / {@link ngHide}.
|
|
225
|
+
* - Define an animation on the affected elements.
|
|
226
|
+
*/
|
|
227
|
+
export const ngHideDirective: (
|
|
228
|
+
| string
|
|
229
|
+
| (($animate: any) => {
|
|
230
|
+
restrict: string;
|
|
231
|
+
multiElement: boolean;
|
|
232
|
+
link(scope: any, element: any, attr: any): void;
|
|
233
|
+
})
|
|
234
|
+
)[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @returns {angular.IDirective}
|
|
3
|
+
*/
|
|
4
|
+
export function ngSwitchWhenDirective(): angular.IDirective;
|
|
5
|
+
/**
|
|
6
|
+
* @returns {angular.IDirective}
|
|
7
|
+
*/
|
|
8
|
+
export function ngSwitchDefaultDirective(): angular.IDirective;
|
|
9
|
+
export const ngSwitchDirective: (
|
|
10
|
+
| string
|
|
11
|
+
| (($animate: any) => {
|
|
12
|
+
require: string;
|
|
13
|
+
controller: (
|
|
14
|
+
| string
|
|
15
|
+
| {
|
|
16
|
+
new (): {
|
|
17
|
+
cases: {};
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
)[];
|
|
21
|
+
link(scope: any, _element: any, attr: any, ngSwitchController: any): void;
|
|
22
|
+
})
|
|
23
|
+
)[];
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ngdoc directive
|
|
3
|
+
* @name ngRequiredf
|
|
4
|
+
* @restrict A
|
|
5
|
+
*
|
|
6
|
+
* @param {String} ngRequired AngularJS expression. If it evaluates to `true`, it sets the
|
|
7
|
+
* `required` attribute to the element and adds the `required`
|
|
8
|
+
* {@link ngModel.NgModelController#$validators `validator`}.
|
|
9
|
+
*
|
|
10
|
+
* @description
|
|
11
|
+
*
|
|
12
|
+
* ngRequired adds the required {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
|
|
13
|
+
* It is most often used for {@link input `input`} and {@link select `select`} controls, but can also be
|
|
14
|
+
* applied to custom controls.
|
|
15
|
+
*
|
|
16
|
+
* The directive sets the `required` attribute on the element if the AngularJS expression inside
|
|
17
|
+
* `ngRequired` evaluates to true. A special directive for setting `required` is necessary because we
|
|
18
|
+
* cannot use interpolation inside `required`. See the {@link guide/interpolation interpolation guide}
|
|
19
|
+
* for more info.
|
|
20
|
+
*
|
|
21
|
+
* The validator will set the `required` error key to true if the `required` attribute is set and
|
|
22
|
+
* calling {@link ngModel.NgModelController#$isEmpty `NgModelController.$isEmpty`} with the
|
|
23
|
+
* {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`} returns `true`. For example, the
|
|
24
|
+
* `$isEmpty()` implementation for `input[text]` checks the length of the `$viewValue`. When developing
|
|
25
|
+
* custom controls, `$isEmpty()` can be overwritten to account for a $viewValue that is not string-based.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export const requiredDirective: (
|
|
29
|
+
| string
|
|
30
|
+
| (($parse: any) => {
|
|
31
|
+
restrict: string;
|
|
32
|
+
require: string;
|
|
33
|
+
link(scope: any, elm: any, attr: any, ctrl: any): void;
|
|
34
|
+
})
|
|
35
|
+
)[];
|
|
36
|
+
/**
|
|
37
|
+
* @ngdoc directive
|
|
38
|
+
* @name ngPattern
|
|
39
|
+
* @restrict A
|
|
40
|
+
*
|
|
41
|
+
* @param {String|RegExp} ngPattern AngularJS expression that must evaluate to a `RegExp` or a `String`
|
|
42
|
+
* parsable into a `RegExp`, or a `RegExp` literal. See above for
|
|
43
|
+
* more details.
|
|
44
|
+
*
|
|
45
|
+
* @description
|
|
46
|
+
*
|
|
47
|
+
* ngPattern adds the pattern {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
|
|
48
|
+
* It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
|
|
49
|
+
*
|
|
50
|
+
* The validator sets the `pattern` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
|
|
51
|
+
* does not match a RegExp which is obtained from the `ngPattern` attribute value:
|
|
52
|
+
* - the value is an AngularJS expression:
|
|
53
|
+
* - If the expression evaluates to a RegExp object, then this is used directly.
|
|
54
|
+
* - If the expression evaluates to a string, then it will be converted to a RegExp after wrapping it
|
|
55
|
+
* in `^` and `$` characters. For instance, `"abc"` will be converted to `new RegExp('^abc$')`.
|
|
56
|
+
* - If the value is a RegExp literal, e.g. `ngPattern="/^\d+$/"`, it is used directly.
|
|
57
|
+
*
|
|
58
|
+
* <div class="alert alert-info">
|
|
59
|
+
* **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
|
|
60
|
+
* start at the index of the last search's match, thus not taking the whole input value into
|
|
61
|
+
* account.
|
|
62
|
+
* </div>
|
|
63
|
+
*
|
|
64
|
+
* <div class="alert alert-info">
|
|
65
|
+
* **Note:** This directive is also added when the plain `pattern` attribute is used, with two
|
|
66
|
+
* differences:
|
|
67
|
+
* <ol>
|
|
68
|
+
* <li>
|
|
69
|
+
* `ngPattern` does not set the `pattern` attribute and therefore HTML5 constraint validation is
|
|
70
|
+
* not available.
|
|
71
|
+
* </li>
|
|
72
|
+
* <li>
|
|
73
|
+
* The `ngPattern` attribute must be an expression, while the `pattern` value must be
|
|
74
|
+
* interpolated.
|
|
75
|
+
* </li>
|
|
76
|
+
* </ol>
|
|
77
|
+
* </div>
|
|
78
|
+
*/
|
|
79
|
+
export const patternDirective: (
|
|
80
|
+
| string
|
|
81
|
+
| (($parse: any) => {
|
|
82
|
+
restrict: string;
|
|
83
|
+
require: string;
|
|
84
|
+
compile: (
|
|
85
|
+
tElm: any,
|
|
86
|
+
tAttr: any,
|
|
87
|
+
) => (scope: any, elm: any, attr: any, ctrl: any) => void;
|
|
88
|
+
})
|
|
89
|
+
)[];
|
|
90
|
+
/**
|
|
91
|
+
* @ngdoc directive
|
|
92
|
+
* @name ngMaxlength
|
|
93
|
+
* @restrict A
|
|
94
|
+
*
|
|
95
|
+
* @param {String} ngMaxlength AngularJS expression that must evaluate to a `Number` or `String`
|
|
96
|
+
* parsable into a `Number`. Used as value for the `maxlength`
|
|
97
|
+
* {@link ngModel.NgModelController#$validators validator}.
|
|
98
|
+
*
|
|
99
|
+
* @description
|
|
100
|
+
*
|
|
101
|
+
* ngMaxlength adds the maxlength {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
|
|
102
|
+
* It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
|
|
103
|
+
*
|
|
104
|
+
* The validator sets the `maxlength` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
|
|
105
|
+
* is longer than the integer obtained by evaluating the AngularJS expression given in the
|
|
106
|
+
* `ngMaxlength` attribute value.
|
|
107
|
+
*
|
|
108
|
+
* <div class="alert alert-info">
|
|
109
|
+
* **Note:** This directive is also added when the plain `maxlength` attribute is used, with two
|
|
110
|
+
* differences:
|
|
111
|
+
* <ol>
|
|
112
|
+
* <li>
|
|
113
|
+
* `ngMaxlength` does not set the `maxlength` attribute and therefore HTML5 constraint
|
|
114
|
+
* validation is not available.
|
|
115
|
+
* </li>
|
|
116
|
+
* <li>
|
|
117
|
+
* The `ngMaxlength` attribute must be an expression, while the `maxlength` value must be
|
|
118
|
+
* interpolated.
|
|
119
|
+
* </li>
|
|
120
|
+
* </ol>
|
|
121
|
+
* </div>
|
|
122
|
+
*
|
|
123
|
+
*/
|
|
124
|
+
export const maxlengthDirective: (
|
|
125
|
+
| string
|
|
126
|
+
| (($parse: any) => {
|
|
127
|
+
restrict: string;
|
|
128
|
+
require: string;
|
|
129
|
+
link(scope: any, elm: any, attr: any, ctrl: any): void;
|
|
130
|
+
})
|
|
131
|
+
)[];
|
|
132
|
+
/**
|
|
133
|
+
* @ngdoc directive
|
|
134
|
+
* @name ngMinlength
|
|
135
|
+
* @restrict A
|
|
136
|
+
*
|
|
137
|
+
* @param {string} ngMinlength AngularJS expression that must evaluate to a `Number` or `String`
|
|
138
|
+
* parsable into a `Number`. Used as value for the `minlength`
|
|
139
|
+
* {@link ngModel.NgModelController#$validators validator}.
|
|
140
|
+
*
|
|
141
|
+
* @description
|
|
142
|
+
*
|
|
143
|
+
* ngMinlength adds the minlength {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
|
|
144
|
+
* It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
|
|
145
|
+
*
|
|
146
|
+
* The validator sets the `minlength` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
|
|
147
|
+
* is shorter than the integer obtained by evaluating the AngularJS expression given in the
|
|
148
|
+
* `ngMinlength` attribute value.
|
|
149
|
+
*
|
|
150
|
+
* <div class="alert alert-info">
|
|
151
|
+
* **Note:** This directive is also added when the plain `minlength` attribute is used, with two
|
|
152
|
+
* differences:
|
|
153
|
+
* <ol>
|
|
154
|
+
* <li>
|
|
155
|
+
* `ngMinlength` does not set the `minlength` attribute and therefore HTML5 constraint
|
|
156
|
+
* validation is not available.
|
|
157
|
+
* </li>
|
|
158
|
+
* <li>
|
|
159
|
+
* The `ngMinlength` value must be an expression, while the `minlength` value must be
|
|
160
|
+
* interpolated.
|
|
161
|
+
* </li>
|
|
162
|
+
* </ol>
|
|
163
|
+
* </div>
|
|
164
|
+
*
|
|
165
|
+
*/
|
|
166
|
+
export const minlengthDirective: (
|
|
167
|
+
| string
|
|
168
|
+
| (($parse: any) => {
|
|
169
|
+
restrict: string;
|
|
170
|
+
require: string;
|
|
171
|
+
link(scope: any, elm: any, attr: any, ctrl: any): void;
|
|
172
|
+
})
|
|
173
|
+
)[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function initAriaModule(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function initMessageModule(): void;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Format a number into a string
|
|
3
|
+
* @param {number} number The number to format
|
|
4
|
+
* @param {{
|
|
5
|
+
* minFrac, // the minimum number of digits required in the fraction part of the number
|
|
6
|
+
* maxFrac, // the maximum number of digits required in the fraction part of the number
|
|
7
|
+
* gSize, // number of digits in each group of separated digits
|
|
8
|
+
* lgSize, // number of digits in the last group of digits before the decimal separator
|
|
9
|
+
* negPre, // the string to go in front of a negative number (e.g. `-` or `(`))
|
|
10
|
+
* posPre, // the string to go in front of a positive number
|
|
11
|
+
* negSuf, // the string to go after a negative number (e.g. `)`)
|
|
12
|
+
* posSuf // the string to go after a positive number
|
|
13
|
+
* }} pattern
|
|
14
|
+
* @param {string} groupSep The string to separate groups of number (e.g. `,`)
|
|
15
|
+
* @param {string} decimalSep The string to act as the decimal separator (e.g. `.`)
|
|
16
|
+
* @param {[type]} fractionSize The size of the fractional part of the number
|
|
17
|
+
* @return {string} The number formatted as a string
|
|
18
|
+
*/
|
|
19
|
+
export function formatNumber(
|
|
20
|
+
number: number,
|
|
21
|
+
pattern: {
|
|
22
|
+
minFrac;
|
|
23
|
+
maxFrac;
|
|
24
|
+
gSize;
|
|
25
|
+
lgSize;
|
|
26
|
+
negPre;
|
|
27
|
+
posPre;
|
|
28
|
+
negSuf;
|
|
29
|
+
posSuf;
|
|
30
|
+
},
|
|
31
|
+
groupSep: string,
|
|
32
|
+
decimalSep: string,
|
|
33
|
+
fractionSize: [type],
|
|
34
|
+
): string;
|
|
35
|
+
/**
|
|
36
|
+
* @returns {angular.IFilterJson}
|
|
37
|
+
*/
|
|
38
|
+
export function jsonFilter(): angular.IFilterJson;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param {angular.IParseService} $parse
|
|
4
|
+
* @returns
|
|
5
|
+
*/
|
|
6
|
+
export function orderByFilter(
|
|
7
|
+
$parse: angular.IParseService,
|
|
8
|
+
): (array: any, sortPredicate: any, reverseOrder: any, compareFn: any) => any;
|
|
9
|
+
export namespace orderByFilter {
|
|
10
|
+
let $inject: string[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts kebab-case to camelCase.
|
|
3
|
+
* @param {string} name Name to normalize
|
|
4
|
+
* @returns {string}
|
|
5
|
+
*/
|
|
6
|
+
export function kebabToCamel(name: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Converts sname to camelCase.
|
|
9
|
+
* @param {string} name
|
|
10
|
+
* @returns {string}
|
|
11
|
+
*/
|
|
12
|
+
export function snakeToCamel(name: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* Checks if the string contains HTML tags or entities.
|
|
15
|
+
* @param {string} html
|
|
16
|
+
* @returns {boolean}
|
|
17
|
+
*/
|
|
18
|
+
export function isTextNode(html: string): boolean;
|
|
19
|
+
export function jqLiteBuildFragment(html: any, context: any): any;
|
|
20
|
+
export function JQLite(element: any): any;
|
|
21
|
+
export class JQLite {
|
|
22
|
+
constructor(element: any);
|
|
23
|
+
ready: typeof jqLiteReady;
|
|
24
|
+
toString(): string;
|
|
25
|
+
eq(index: any): any;
|
|
26
|
+
length: number;
|
|
27
|
+
push: (...items: undefined[]) => number;
|
|
28
|
+
sort: (compareFn?: (a: undefined, b: undefined) => number) => undefined[];
|
|
29
|
+
splice: {
|
|
30
|
+
(start: number, deleteCount?: number): undefined[];
|
|
31
|
+
(start: number, deleteCount: number, ...items: undefined[]): undefined[];
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @param {Element} element
|
|
36
|
+
* @param {boolean} [onlyDescendants]
|
|
37
|
+
* @returns {void}
|
|
38
|
+
*/
|
|
39
|
+
export function dealoc(element: Element, onlyDescendants?: boolean): void;
|
|
40
|
+
export function jqLiteRemove(element: any, keepData: any): void;
|
|
41
|
+
export function getBooleanAttrName(element: any, name: any): any;
|
|
42
|
+
export function jqLiteCleanData(nodes: any): void;
|
|
43
|
+
/**
|
|
44
|
+
* @param {string} elementStr
|
|
45
|
+
* @returns {string} Returns the string representation of the element.
|
|
46
|
+
*/
|
|
47
|
+
export function startingTag(elementStr: string): string;
|
|
48
|
+
/**
|
|
49
|
+
* Return the DOM siblings between the first and last node in the given array.
|
|
50
|
+
* @param {Array} nodes An array-like object
|
|
51
|
+
* @returns {Array} the inputted object or a jqLite collection containing the nodes
|
|
52
|
+
*/
|
|
53
|
+
export function getBlockNodes(nodes: any[]): any[];
|
|
54
|
+
export const jqLite: typeof JQLite;
|
|
55
|
+
export const BOOLEAN_ATTR: {};
|
|
56
|
+
declare function jqLiteReady(fn: any): void;
|
|
57
|
+
export {};
|