From b305a863582447060a7e5e5cb3dc94ea99b8f94c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=A0ime=C4=8Dek?= Date: Thu, 28 Jul 2022 12:25:08 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=B8=20=20feat:=20New=20documentation?= =?UTF-8?q?=20in=20form=20of=20docusaurus=20website=20(#230)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🎸 feat: New documentation in form of docusaurus website --- .eslintrc.js | 25 +- .gitignore | 1 + docs/.gitignore | 3 - docs/CNAME | 1 - docs/_config.yml | 18 - docs/_data/common.json | 1 - docs/_data/devtool-colors.json | 54 - docs/_data/docs.json | 637 - docs/_data/examples.json | 23 - docs/_data/features-more.json | 26 - docs/_data/features.json | 26 - docs/_data/lunr.json | 1 - docs/_data/menu.json | 27 - docs/_data/notable-plugins.json | 26 - docs/_data/platforms-ima.json | 38 - docs/_data/platforms-spa.json | 10 - docs/_data/plugins.json | 82 - docs/_data/references.json | 62 - docs/_data/tutorial.json | 282 - docs/_includes/devtools-colors-row.html | 4 - docs/_includes/edit-btn.html | 3 - docs/_includes/example.html | 21 - docs/_includes/feature-more.html | 4 - docs/_includes/feature.html | 4 - docs/_includes/footer.html | 11 - docs/_includes/header.html | 71 - docs/_includes/navbar-item.html | 16 - docs/_includes/notable-plugin.html | 4 - docs/_includes/platform.html | 5 - docs/_includes/plugin-item.html | 3 - docs/_includes/reference.html | 17 - docs/_includes/separator.html | 8 - docs/_includes/sidebar-layout.html | 79 - docs/_layouts/api.html | 58 - docs/_layouts/default.html | 3 - docs/_layouts/docs.html | 1 - docs/_layouts/tutorial.html | 1 - docs/_partials/header.hbs | 1 - docs/_partials/main.hbs | 14 - docs/_posts/2022-07-14-bootstrap.md | 163 - docs/_posts/2022-07-14-cache-cache-entry.md | 83 - docs/_posts/2022-07-14-cache-cache-factory.md | 27 - docs/_posts/2022-07-14-cache-cache-impl.md | 165 - docs/_posts/2022-07-14-cache-cache.md | 142 - docs/_posts/2022-07-14-configbind.md | 3 - docs/_posts/2022-07-14-configservices.md | 3 - ...22-07-14-controller-abstract-controller.md | 168 - ...2-07-14-controller-controller-decorator.md | 200 - .../2022-07-14-controller-controller.md | 299 - .../2022-07-14-dictionary-dictionary.md | 75 - ...14-dictionary-message-format-dictionary.md | 102 - docs/_posts/2022-07-14-error-error.md | 46 - .../2022-07-14-error-extensible-error.md | 86 - docs/_posts/2022-07-14-error-generic-error.md | 52 - .../2022-07-14-event-dispatcher-impl.md | 157 - docs/_posts/2022-07-14-event-dispatcher.md | 89 - .../_posts/2022-07-14-event-event-bus-impl.md | 115 - docs/_posts/2022-07-14-event-event-bus.md | 135 - ...2022-07-14-execution-abstract-execution.md | 44 - docs/_posts/2022-07-14-execution-execution.md | 43 - .../2022-07-14-execution-serial-batch.md | 17 - ...2022-07-14-extension-abstract-extension.md | 180 - docs/_posts/2022-07-14-extension-extension.md | 284 - .../_posts/2022-07-14-http-http-agent-impl.md | 344 - docs/_posts/2022-07-14-http-http-agent.md | 197 - docs/_posts/2022-07-14-http-http-proxy.md | 337 - docs/_posts/2022-07-14-http-status-code.md | 100 - .../_posts/2022-07-14-http-url-transformer.md | 70 - docs/_posts/2022-07-14-index.md | 3 - .../2022-07-14-meta-meta-manager-impl.md | 121 - docs/_posts/2022-07-14-meta-meta-manager.md | 165 - docs/_posts/2022-07-14-namespace.md | 3 - docs/_posts/2022-07-14-object-container.md | 560 - .../2022-07-14-page-abstract-component.md | 158 - .../2022-07-14-page-abstract-document-view.md | 51 - ...2022-07-14-page-abstract-pure-component.md | 167 - docs/_posts/2022-07-14-page-context.md | 3 - docs/_posts/2022-07-14-page-page-factory.md | 91 - .../2022-07-14-pagecomponent-helpers.md | 192 - ...07-14-pagehandler-page-handler-registry.md | 3 - .../2022-07-14-pagehandler-page-handler.md | 63 - ...-14-pagehandler-page-navigation-handler.md | 96 - ...07-14-pagemanager-abstract-page-manager.md | 482 - ...2-07-14-pagemanager-client-page-manager.md | 157 - .../2022-07-14-pagemanager-page-manager.md | 61 - ...2-07-14-pagemanager-server-page-manager.md | 13 - ...-14-pagerenderer-abstract-page-renderer.md | 152 - ...14-pagerenderer-blank-managed-root-view.md | 21 - ...07-14-pagerenderer-client-page-renderer.md | 232 - ...2022-07-14-pagerenderer-component-utils.md | 99 - .../2022-07-14-pagerenderer-error-boundary.md | 14 - docs/_posts/2022-07-14-pagerenderer-events.md | 74 - ...7-14-pagerenderer-page-renderer-factory.md | 142 - .../2022-07-14-pagerenderer-page-renderer.md | 108 - ...07-14-pagerenderer-server-page-renderer.md | 157 - docs/_posts/2022-07-14-pagerenderer-types.md | 48 - .../2022-07-14-pagerenderer-view-adapter.md | 75 - docs/_posts/2022-07-14-pagestate-events.md | 46 - ...-pagestate-page-state-manager-decorator.md | 94 - ...07-14-pagestate-page-state-manager-impl.md | 147 - ...2022-07-14-pagestate-page-state-manager.md | 98 - docs/_posts/2022-07-14-plugin-loader.md | 3 - .../2022-07-14-router-abstract-route.md | 297 - .../2022-07-14-router-abstract-router.md | 361 - docs/_posts/2022-07-14-router-action-types.md | 46 - .../_posts/2022-07-14-router-client-router.md | 259 - .../_posts/2022-07-14-router-dynamic-route.md | 76 - docs/_posts/2022-07-14-router-events.md | 64 - docs/_posts/2022-07-14-router-request.md | 117 - docs/_posts/2022-07-14-router-response.md | 222 - .../_posts/2022-07-14-router-route-factory.md | 30 - docs/_posts/2022-07-14-router-route-names.md | 44 - .../2022-07-14-router-router-middleware.md | 53 - docs/_posts/2022-07-14-router-router.md | 330 - .../_posts/2022-07-14-router-server-router.md | 72 - docs/_posts/2022-07-14-router-static-route.md | 477 - .../2022-07-14-storage-cookie-storage.md | 338 - docs/_posts/2022-07-14-storage-map-storage.md | 81 - .../2022-07-14-storage-session-map-storage.md | 95 - .../2022-07-14-storage-session-storage.md | 158 - docs/_posts/2022-07-14-storage-storage.md | 122 - .../2022-07-14-storage-weak-map-storage.md | 153 - .../_posts/2022-07-14-window-client-window.md | 160 - .../_posts/2022-07-14-window-server-window.md | 160 - docs/_posts/2022-07-14-window-window.md | 334 - docs/_sass/bulma.sass | 9 - docs/_sass/custom-bulma.scss | 19 - docs/_sass/rouge-github.scss | 114 - docs/_sass/sass/base/_all.sass | 5 - docs/_sass/sass/base/generic.sass | 142 - docs/_sass/sass/base/helpers.sass | 281 - docs/_sass/sass/base/minireset.sass | 79 - docs/_sass/sass/components/_all.sass | 15 - docs/_sass/sass/components/breadcrumb.sass | 75 - docs/_sass/sass/components/card.sass | 79 - docs/_sass/sass/components/dropdown.sass | 81 - docs/_sass/sass/components/level.sass | 77 - docs/_sass/sass/components/list.sass | 39 - docs/_sass/sass/components/media.sass | 50 - docs/_sass/sass/components/menu.sass | 57 - docs/_sass/sass/components/message.sass | 99 - docs/_sass/sass/components/modal.sass | 113 - docs/_sass/sass/components/navbar.sass | 443 - docs/_sass/sass/components/pagination.sass | 150 - docs/_sass/sass/components/panel.sass | 118 - docs/_sass/sass/components/tabs.sass | 151 - docs/_sass/sass/elements/_all.sass | 15 - docs/_sass/sass/elements/box.sass | 24 - docs/_sass/sass/elements/button.sass | 322 - docs/_sass/sass/elements/container.sass | 24 - docs/_sass/sass/elements/content.sass | 155 - docs/_sass/sass/elements/form.sass | 1 - docs/_sass/sass/elements/icon.sass | 21 - docs/_sass/sass/elements/image.sass | 71 - docs/_sass/sass/elements/notification.sass | 36 - docs/_sass/sass/elements/other.sass | 39 - docs/_sass/sass/elements/progress.sass | 67 - docs/_sass/sass/elements/table.sass | 127 - docs/_sass/sass/elements/tag.sass | 128 - docs/_sass/sass/elements/title.sass | 70 - docs/_sass/sass/form/_all.sass | 8 - docs/_sass/sass/form/checkbox-radio.sass | 21 - docs/_sass/sass/form/file.sass | 180 - docs/_sass/sass/form/input-textarea.sass | 64 - docs/_sass/sass/form/select.sass | 85 - docs/_sass/sass/form/shared.sass | 55 - docs/_sass/sass/form/tools.sass | 205 - docs/_sass/sass/grid/_all.sass | 4 - docs/_sass/sass/grid/columns.sass | 504 - docs/_sass/sass/grid/tiles.sass | 34 - docs/_sass/sass/layout/_all.sass | 5 - docs/_sass/sass/layout/footer.sass | 9 - docs/_sass/sass/layout/hero.sass | 143 - docs/_sass/sass/layout/section.sass | 13 - docs/_sass/sass/utilities/_all.sass | 8 - docs/_sass/sass/utilities/animations.sass | 5 - docs/_sass/sass/utilities/controls.sass | 50 - .../sass/utilities/derived-variables.sass | 106 - docs/_sass/sass/utilities/functions.sass | 98 - .../sass/utilities/initial-variables.sass | 77 - docs/_sass/sass/utilities/mixins.sass | 261 - docs/api.md | 23 - .../controller-lifecycle.md | 25 +- docs/{docs => basic-features}/dictionary.md | 6 +- docs/{docs => basic-features}/errors.md | 4 +- docs/{docs => basic-features}/events.md | 16 +- docs/{docs => basic-features}/extensions.md | 48 +- .../object-container.md | 46 +- docs/{docs => basic-features}/page-manager.md | 40 +- docs/{docs => basic-features}/page-state.md | 16 +- .../rendering-process.md | 86 +- docs/{docs => basic-features}/routing.md | 20 +- .../seo-and-meta-manager.md | 26 +- .../views-and-components.md | 37 +- docs/cli/advanced-features.md | 16 + docs/cli/cli.md | 203 + docs/cli/compiler-features.md | 175 + docs/cli/ima.config.js.md | 327 + docs/cli/plugins-api.md | 7 + docs/cli/plugins/analyze-plugin.md | 8 + docs/cli/plugins/less-constants-plugin.md | 8 + docs/cli/plugins/scramble-css-plugin.md | 8 + docs/css/all.min.css | 5 - docs/css/style.scss | 260 - .../devtools-introduction.md | 22 +- docs/{docs => devtools}/devtools-options.md | 37 +- docs/{docs => devtools}/devtools-ui.md | 53 +- docs/docs.md | 176 - docs/examples.md | 13 - docs/img/examples/feed.png | Bin 92188 -> 0 bytes docs/img/examples/hello.png | Bin 73004 -> 0 bytes docs/img/examples/todo.png | Bin 75701 -> 0 bytes docs/img/icons/android-chrome-96x96.png | Bin 7202 -> 0 bytes docs/img/icons/apple-touch-icon.png | Bin 4337 -> 0 bytes docs/img/icons/browserconfig.xml | 9 - docs/img/icons/favicon-16x16.png | Bin 1255 -> 0 bytes docs/img/icons/favicon-32x32.png | Bin 1815 -> 0 bytes docs/img/icons/favicon.ico | Bin 15086 -> 0 bytes docs/img/icons/mstile-150x150.png | Bin 9162 -> 0 bytes docs/img/icons/safari-pinned-tab.svg | 26 - docs/img/icons/site.webmanifest | 14 - docs/img/imajs-logo-small.png | Bin 6335 -> 0 bytes docs/img/imajs-logo.png | Bin 29438 -> 0 bytes docs/img/platforms/android-browser.png | Bin 24698 -> 0 bytes docs/img/platforms/android.png | Bin 6720 -> 0 bytes docs/img/platforms/chrome.png | Bin 11562 -> 0 bytes docs/img/platforms/cordova.png | Bin 17280 -> 0 bytes docs/img/platforms/edge.png | Bin 3327 -> 0 bytes docs/img/platforms/firefox.png | Bin 28565 -> 0 bytes docs/img/platforms/ie.png | Bin 20766 -> 0 bytes docs/img/platforms/ios-safari.png | Bin 11577 -> 0 bytes docs/img/platforms/opera.png | Bin 12238 -> 0 bytes docs/img/platforms/phonegap.png | Bin 9519 -> 0 bytes docs/img/platforms/safari.png | Bin 28613 -> 0 bytes docs/img/platforms/seznam.png | Bin 15443 -> 0 bytes docs/img/technologies/es6.png | Bin 7687 -> 0 bytes docs/img/technologies/express.png | Bin 10945 -> 0 bytes docs/img/technologies/jasmine.png | Bin 20446 -> 0 bytes docs/img/technologies/nodejs.png | Bin 14889 -> 0 bytes docs/img/technologies/react.png | Bin 17465 -> 0 bytes docs/img/technologies/superagent.png | Bin 54911 -> 0 bytes docs/index.md | 144 - docs/{docs => introduction}/configuration.md | 29 +- .../{docs => introduction}/getting-started.md | 54 +- docs/js/lunr.js | 3475 -- docs/js/menu.js | 16 - docs/js/search.js | 57 - docs/{docs => migration}/migration-0.14.0.md | 4 +- docs/{docs => migration}/migration-0.15.0.md | 6 +- docs/{docs => migration}/migration-0.16.0.md | 6 +- docs/{docs => migration}/migration-17.0.0.md | 10 +- docs/{docs => plugins}/available-plugins.md | 16 +- docs/{docs => plugins}/plugin-interface.md | 16 +- docs/tutorial/adding-some-state.md | 23 +- ...ta-from-the-server.md => fetching-data.md} | 56 +- docs/tutorial/final-polish.md | 49 +- docs/tutorial/introduction.md | 23 +- docs/tutorial/static-view.md | 29 +- docs/tutorial/writing-posts.md | 23 +- docs/webfonts/fa-brands-400.eot | Bin 133034 -> 0 bytes docs/webfonts/fa-brands-400.svg | 3570 -- docs/webfonts/fa-brands-400.ttf | Bin 132728 -> 0 bytes docs/webfonts/fa-brands-400.woff | Bin 89824 -> 0 bytes docs/webfonts/fa-brands-400.woff2 | Bin 76548 -> 0 bytes docs/webfonts/fa-regular-400.eot | Bin 34390 -> 0 bytes docs/webfonts/fa-regular-400.svg | 803 - docs/webfonts/fa-regular-400.ttf | Bin 34092 -> 0 bytes docs/webfonts/fa-regular-400.woff | Bin 16800 -> 0 bytes docs/webfonts/fa-regular-400.woff2 | Bin 13600 -> 0 bytes docs/webfonts/fa-solid-900.eot | Bin 194078 -> 0 bytes docs/webfonts/fa-solid-900.svg | 4700 --- docs/webfonts/fa-solid-900.ttf | Bin 193792 -> 0 bytes docs/webfonts/fa-solid-900.woff | Bin 99004 -> 0 bytes docs/webfonts/fa-solid-900.woff2 | Bin 76120 -> 0 bytes gulpfile.js | 7 - package-lock.json | 34142 +++++++++------- package.json | 19 +- packages/cli/src/types.ts | 36 +- packages/cli/src/webpack/config.ts | 6 +- packages/core/src/ObjectContainer.js | 78 +- packages/core/src/controller/Controller.js | 6 +- packages/core/src/error/GenericError.js | 2 +- packages/core/src/event/Dispatcher.js | 4 +- packages/core/src/event/DispatcherImpl.js | 6 +- packages/core/src/event/EventBus.js | 6 +- .../core/src/execution/AbstractExecution.js | 2 +- packages/core/src/execution/Execution.js | 6 +- packages/core/src/extension/Extension.js | 6 +- .../core/src/extension/__docs__/Extension.md | 84 - packages/core/src/http/HttpAgent.js | 2 +- packages/core/src/http/HttpAgentImpl.js | 8 +- packages/core/src/http/UrlTransformer.js | 2 +- packages/core/src/meta/MetaManager.js | 16 +- packages/core/src/meta/MetaManagerImpl.js | 2 +- packages/core/src/namespace.js | 4 +- packages/core/src/page/AbstractComponent.js | 6 +- .../core/src/page/AbstractDocumentView.js | 6 +- .../core/src/page/AbstractPureComponent.js | 8 +- packages/core/src/page/PageFactory.js | 2 +- packages/core/src/page/componentHelpers.js | 14 +- .../src/page/handler/PageHandlerRegistry.js | 2 +- .../src/page/handler/PageNavigationHandler.js | 2 +- .../src/page/manager/ClientPageManager.js | 12 +- packages/core/src/page/manager/PageManager.js | 6 +- .../src/page/renderer/AbstractPageRenderer.js | 2 +- .../src/page/renderer/ClientPageRenderer.js | 4 +- packages/core/src/page/renderer/Events.js | 16 +- .../core/src/page/renderer/PageRenderer.js | 12 +- .../src/page/renderer/PageRendererFactory.js | 8 +- packages/core/src/page/state/Events.js | 10 +- .../core/src/page/state/PageStateManager.js | 10 +- .../src/page/state/PageStateManagerImpl.js | 8 +- packages/core/src/router/AbstractRoute.js | 2 +- packages/core/src/router/AbstractRouter.js | 12 +- packages/core/src/router/ClientRouter.js | 10 +- packages/core/src/router/Events.js | 20 +- packages/core/src/router/Request.js | 8 +- packages/core/src/router/Response.js | 4 +- packages/core/src/router/RouteFactory.js | 2 +- packages/core/src/router/Router.js | 56 +- packages/core/src/router/RouterMiddleware.js | 6 +- packages/core/src/router/ServerRouter.js | 2 +- packages/core/src/router/StaticRoute.js | 6 +- packages/core/src/storage/CookieStorage.js | 52 +- packages/core/src/storage/MapStorage.js | 4 +- .../core/src/storage/SessionMapStorage.js | 6 +- packages/core/src/storage/SessionStorage.js | 6 +- packages/core/src/storage/Storage.js | 18 +- packages/core/src/storage/WeakMapStorage.js | 10 +- packages/core/src/window/ClientWindow.js | 2 +- packages/core/src/window/ServerWindow.js | 2 +- packages/core/src/window/Window.js | 52 +- .../template/app/page/home/HomeController.js | 8 +- .../template/app/page/home/HomeView.jsx | 2 +- packages/server/lib/cache.js | 10 +- utils/gulp/doc.js | 250 - website/.gitignore | 20 + website/README.md | 49 + website/babel.config.js | 3 + website/docusaurus.config.js | 111 + website/package.json | 48 + website/scripts/jsdoc2md.mjs | 180 + .../scripts/partials}/docs.hbs | 6 +- website/scripts/partials/header.hbs | 1 + website/scripts/partials/main.hbs | 8 + website/sidebars.js | 101 + website/src/components/feature/Feature.jsx | 15 + .../src/components/feature/FeaturesGrid.jsx | 19 + .../components/feature/OtherFeaturesList.jsx | 21 + .../feature/otherFeaturesList.module.css | 29 + .../src/components/githubLink/GithubLink.jsx | 36 + .../githubLink/githubLink.module.css | 16 + website/src/components/index.js | 8 + .../src/components/reference/Reference.jsx | 22 + .../components/reference/ReferencesGrid.jsx | 19 + .../components/reference/reference.module.css | 20 + .../src/components/separator/Separator.jsx | 18 + .../components/separator/separator.module.css | 52 + website/src/css/custom.css | 185 + website/src/pages/data/features.json | 38 + website/src/pages/data/notableMentions.json | 13 + website/src/pages/data/references.json | 62 + website/src/pages/index.jsx | 62 + website/src/pages/index.module.css | 33 + website/static/.nojekyll | 0 .../static}/img/docs/devtools-diagram.png | Bin .../img/docs/devtools-options-hooks.png | Bin .../img/docs/devtools-options-presets.png | Bin .../static}/img/docs/devtools-options.png | Bin .../static}/img/docs/devtools-ui-dataview.png | Bin .../static}/img/docs/devtools-ui-message.png | Bin .../static}/img/docs/devtools-ui-popup.png | Bin .../docs/devtools-ui-search-action-btns.png | Bin .../docs/devtools-ui-search-validation.png | Bin .../static}/img/docs/devtools-ui-search.png | Bin .../static}/img/docs/devtools-ui.png | Bin .../static}/img/docs/diagram-controller.png | Bin .../static}/img/docs/diagram-extensions.png | Bin .../static}/img/docs/diagram-page-manager.png | Bin .../static}/img/docs/diagram-page-state.png | Bin .../static}/img/docs/diagram-rendering.png | Bin .../static}/img/docs/diagram-router.png | Bin .../static}/img/docs/diagram-view.png | Bin website/static/img/favicon.ico | Bin 0 -> 15406 bytes website/static/img/logo.svg | 14 + .../static}/img/references/garaz.jpg | Bin .../static}/img/references/hry.jpg | Bin .../static}/img/references/novinky.jpg | Bin .../static}/img/references/pocasi.jpg | Bin .../static}/img/references/prozeny.jpg | Bin .../static}/img/references/sauto.jpg | Bin .../static}/img/references/sbazar.jpg | Bin .../img/references/seznam_vychytavky.jpg | Bin .../static}/img/references/seznamzpravy.jpg | Bin .../static}/img/references/tv_seznam.jpg | Bin .../img/tutorial/final-polish-final.png | Bin .../tutorial/final-polish-form-validation.png | Bin .../static}/img/tutorial/homeview.png | Bin .../img/tutorial/introduction-run-dev.jpg | Bin .../static}/img/tutorial/static-view-null.png | Bin .../tutorial/static-view-styling-our-form.png | Bin 401 files changed, 21374 insertions(+), 48402 deletions(-) delete mode 100644 docs/.gitignore delete mode 100644 docs/CNAME delete mode 100644 docs/_config.yml delete mode 100644 docs/_data/common.json delete mode 100644 docs/_data/devtool-colors.json delete mode 100644 docs/_data/docs.json delete mode 100644 docs/_data/examples.json delete mode 100644 docs/_data/features-more.json delete mode 100644 docs/_data/features.json delete mode 100644 docs/_data/lunr.json delete mode 100644 docs/_data/menu.json delete mode 100644 docs/_data/notable-plugins.json delete mode 100644 docs/_data/platforms-ima.json delete mode 100644 docs/_data/platforms-spa.json delete mode 100644 docs/_data/plugins.json delete mode 100644 docs/_data/references.json delete mode 100644 docs/_data/tutorial.json delete mode 100644 docs/_includes/devtools-colors-row.html delete mode 100644 docs/_includes/edit-btn.html delete mode 100644 docs/_includes/example.html delete mode 100644 docs/_includes/feature-more.html delete mode 100644 docs/_includes/feature.html delete mode 100644 docs/_includes/footer.html delete mode 100644 docs/_includes/header.html delete mode 100644 docs/_includes/navbar-item.html delete mode 100644 docs/_includes/notable-plugin.html delete mode 100644 docs/_includes/platform.html delete mode 100644 docs/_includes/plugin-item.html delete mode 100644 docs/_includes/reference.html delete mode 100644 docs/_includes/separator.html delete mode 100644 docs/_includes/sidebar-layout.html delete mode 100644 docs/_layouts/api.html delete mode 100644 docs/_layouts/default.html delete mode 100644 docs/_layouts/docs.html delete mode 100644 docs/_layouts/tutorial.html delete mode 100644 docs/_partials/header.hbs delete mode 100644 docs/_partials/main.hbs delete mode 100644 docs/_posts/2022-07-14-bootstrap.md delete mode 100644 docs/_posts/2022-07-14-cache-cache-entry.md delete mode 100644 docs/_posts/2022-07-14-cache-cache-factory.md delete mode 100644 docs/_posts/2022-07-14-cache-cache-impl.md delete mode 100644 docs/_posts/2022-07-14-cache-cache.md delete mode 100644 docs/_posts/2022-07-14-configbind.md delete mode 100644 docs/_posts/2022-07-14-configservices.md delete mode 100644 docs/_posts/2022-07-14-controller-abstract-controller.md delete mode 100644 docs/_posts/2022-07-14-controller-controller-decorator.md delete mode 100644 docs/_posts/2022-07-14-controller-controller.md delete mode 100644 docs/_posts/2022-07-14-dictionary-dictionary.md delete mode 100644 docs/_posts/2022-07-14-dictionary-message-format-dictionary.md delete mode 100644 docs/_posts/2022-07-14-error-error.md delete mode 100644 docs/_posts/2022-07-14-error-extensible-error.md delete mode 100644 docs/_posts/2022-07-14-error-generic-error.md delete mode 100644 docs/_posts/2022-07-14-event-dispatcher-impl.md delete mode 100644 docs/_posts/2022-07-14-event-dispatcher.md delete mode 100644 docs/_posts/2022-07-14-event-event-bus-impl.md delete mode 100644 docs/_posts/2022-07-14-event-event-bus.md delete mode 100644 docs/_posts/2022-07-14-execution-abstract-execution.md delete mode 100644 docs/_posts/2022-07-14-execution-execution.md delete mode 100644 docs/_posts/2022-07-14-execution-serial-batch.md delete mode 100644 docs/_posts/2022-07-14-extension-abstract-extension.md delete mode 100644 docs/_posts/2022-07-14-extension-extension.md delete mode 100644 docs/_posts/2022-07-14-http-http-agent-impl.md delete mode 100644 docs/_posts/2022-07-14-http-http-agent.md delete mode 100644 docs/_posts/2022-07-14-http-http-proxy.md delete mode 100644 docs/_posts/2022-07-14-http-status-code.md delete mode 100644 docs/_posts/2022-07-14-http-url-transformer.md delete mode 100644 docs/_posts/2022-07-14-index.md delete mode 100644 docs/_posts/2022-07-14-meta-meta-manager-impl.md delete mode 100644 docs/_posts/2022-07-14-meta-meta-manager.md delete mode 100644 docs/_posts/2022-07-14-namespace.md delete mode 100644 docs/_posts/2022-07-14-object-container.md delete mode 100644 docs/_posts/2022-07-14-page-abstract-component.md delete mode 100644 docs/_posts/2022-07-14-page-abstract-document-view.md delete mode 100644 docs/_posts/2022-07-14-page-abstract-pure-component.md delete mode 100644 docs/_posts/2022-07-14-page-context.md delete mode 100644 docs/_posts/2022-07-14-page-page-factory.md delete mode 100644 docs/_posts/2022-07-14-pagecomponent-helpers.md delete mode 100644 docs/_posts/2022-07-14-pagehandler-page-handler-registry.md delete mode 100644 docs/_posts/2022-07-14-pagehandler-page-handler.md delete mode 100644 docs/_posts/2022-07-14-pagehandler-page-navigation-handler.md delete mode 100644 docs/_posts/2022-07-14-pagemanager-abstract-page-manager.md delete mode 100644 docs/_posts/2022-07-14-pagemanager-client-page-manager.md delete mode 100644 docs/_posts/2022-07-14-pagemanager-page-manager.md delete mode 100644 docs/_posts/2022-07-14-pagemanager-server-page-manager.md delete mode 100644 docs/_posts/2022-07-14-pagerenderer-abstract-page-renderer.md delete mode 100644 docs/_posts/2022-07-14-pagerenderer-blank-managed-root-view.md delete mode 100644 docs/_posts/2022-07-14-pagerenderer-client-page-renderer.md delete mode 100644 docs/_posts/2022-07-14-pagerenderer-component-utils.md delete mode 100644 docs/_posts/2022-07-14-pagerenderer-error-boundary.md delete mode 100644 docs/_posts/2022-07-14-pagerenderer-events.md delete mode 100644 docs/_posts/2022-07-14-pagerenderer-page-renderer-factory.md delete mode 100644 docs/_posts/2022-07-14-pagerenderer-page-renderer.md delete mode 100644 docs/_posts/2022-07-14-pagerenderer-server-page-renderer.md delete mode 100644 docs/_posts/2022-07-14-pagerenderer-types.md delete mode 100644 docs/_posts/2022-07-14-pagerenderer-view-adapter.md delete mode 100644 docs/_posts/2022-07-14-pagestate-events.md delete mode 100644 docs/_posts/2022-07-14-pagestate-page-state-manager-decorator.md delete mode 100644 docs/_posts/2022-07-14-pagestate-page-state-manager-impl.md delete mode 100644 docs/_posts/2022-07-14-pagestate-page-state-manager.md delete mode 100644 docs/_posts/2022-07-14-plugin-loader.md delete mode 100644 docs/_posts/2022-07-14-router-abstract-route.md delete mode 100644 docs/_posts/2022-07-14-router-abstract-router.md delete mode 100644 docs/_posts/2022-07-14-router-action-types.md delete mode 100644 docs/_posts/2022-07-14-router-client-router.md delete mode 100644 docs/_posts/2022-07-14-router-dynamic-route.md delete mode 100644 docs/_posts/2022-07-14-router-events.md delete mode 100644 docs/_posts/2022-07-14-router-request.md delete mode 100644 docs/_posts/2022-07-14-router-response.md delete mode 100644 docs/_posts/2022-07-14-router-route-factory.md delete mode 100644 docs/_posts/2022-07-14-router-route-names.md delete mode 100644 docs/_posts/2022-07-14-router-router-middleware.md delete mode 100644 docs/_posts/2022-07-14-router-router.md delete mode 100644 docs/_posts/2022-07-14-router-server-router.md delete mode 100644 docs/_posts/2022-07-14-router-static-route.md delete mode 100644 docs/_posts/2022-07-14-storage-cookie-storage.md delete mode 100644 docs/_posts/2022-07-14-storage-map-storage.md delete mode 100644 docs/_posts/2022-07-14-storage-session-map-storage.md delete mode 100644 docs/_posts/2022-07-14-storage-session-storage.md delete mode 100644 docs/_posts/2022-07-14-storage-storage.md delete mode 100644 docs/_posts/2022-07-14-storage-weak-map-storage.md delete mode 100644 docs/_posts/2022-07-14-window-client-window.md delete mode 100644 docs/_posts/2022-07-14-window-server-window.md delete mode 100644 docs/_posts/2022-07-14-window-window.md delete mode 100644 docs/_sass/bulma.sass delete mode 100644 docs/_sass/custom-bulma.scss delete mode 100644 docs/_sass/rouge-github.scss delete mode 100644 docs/_sass/sass/base/_all.sass delete mode 100644 docs/_sass/sass/base/generic.sass delete mode 100644 docs/_sass/sass/base/helpers.sass delete mode 100644 docs/_sass/sass/base/minireset.sass delete mode 100644 docs/_sass/sass/components/_all.sass delete mode 100644 docs/_sass/sass/components/breadcrumb.sass delete mode 100644 docs/_sass/sass/components/card.sass delete mode 100644 docs/_sass/sass/components/dropdown.sass delete mode 100644 docs/_sass/sass/components/level.sass delete mode 100644 docs/_sass/sass/components/list.sass delete mode 100644 docs/_sass/sass/components/media.sass delete mode 100644 docs/_sass/sass/components/menu.sass delete mode 100644 docs/_sass/sass/components/message.sass delete mode 100644 docs/_sass/sass/components/modal.sass delete mode 100644 docs/_sass/sass/components/navbar.sass delete mode 100644 docs/_sass/sass/components/pagination.sass delete mode 100644 docs/_sass/sass/components/panel.sass delete mode 100644 docs/_sass/sass/components/tabs.sass delete mode 100644 docs/_sass/sass/elements/_all.sass delete mode 100644 docs/_sass/sass/elements/box.sass delete mode 100644 docs/_sass/sass/elements/button.sass delete mode 100644 docs/_sass/sass/elements/container.sass delete mode 100644 docs/_sass/sass/elements/content.sass delete mode 100644 docs/_sass/sass/elements/form.sass delete mode 100644 docs/_sass/sass/elements/icon.sass delete mode 100644 docs/_sass/sass/elements/image.sass delete mode 100644 docs/_sass/sass/elements/notification.sass delete mode 100644 docs/_sass/sass/elements/other.sass delete mode 100644 docs/_sass/sass/elements/progress.sass delete mode 100644 docs/_sass/sass/elements/table.sass delete mode 100644 docs/_sass/sass/elements/tag.sass delete mode 100644 docs/_sass/sass/elements/title.sass delete mode 100644 docs/_sass/sass/form/_all.sass delete mode 100644 docs/_sass/sass/form/checkbox-radio.sass delete mode 100644 docs/_sass/sass/form/file.sass delete mode 100644 docs/_sass/sass/form/input-textarea.sass delete mode 100644 docs/_sass/sass/form/select.sass delete mode 100644 docs/_sass/sass/form/shared.sass delete mode 100644 docs/_sass/sass/form/tools.sass delete mode 100644 docs/_sass/sass/grid/_all.sass delete mode 100644 docs/_sass/sass/grid/columns.sass delete mode 100644 docs/_sass/sass/grid/tiles.sass delete mode 100644 docs/_sass/sass/layout/_all.sass delete mode 100644 docs/_sass/sass/layout/footer.sass delete mode 100644 docs/_sass/sass/layout/hero.sass delete mode 100644 docs/_sass/sass/layout/section.sass delete mode 100644 docs/_sass/sass/utilities/_all.sass delete mode 100644 docs/_sass/sass/utilities/animations.sass delete mode 100644 docs/_sass/sass/utilities/controls.sass delete mode 100644 docs/_sass/sass/utilities/derived-variables.sass delete mode 100644 docs/_sass/sass/utilities/functions.sass delete mode 100644 docs/_sass/sass/utilities/initial-variables.sass delete mode 100644 docs/_sass/sass/utilities/mixins.sass delete mode 100644 docs/api.md rename docs/{docs => basic-features}/controller-lifecycle.md (91%) rename docs/{docs => basic-features}/dictionary.md (91%) rename docs/{docs => basic-features}/errors.md (90%) rename docs/{docs => basic-features}/events.md (95%) rename docs/{docs => basic-features}/extensions.md (84%) rename docs/{docs => basic-features}/object-container.md (94%) rename docs/{docs => basic-features}/page-manager.md (60%) rename docs/{docs => basic-features}/page-state.md (92%) rename docs/{docs => basic-features}/rendering-process.md (82%) rename docs/{docs => basic-features}/routing.md (89%) rename docs/{docs => basic-features}/seo-and-meta-manager.md (87%) rename docs/{docs => basic-features}/views-and-components.md (82%) create mode 100644 docs/cli/advanced-features.md create mode 100644 docs/cli/cli.md create mode 100644 docs/cli/compiler-features.md create mode 100644 docs/cli/ima.config.js.md create mode 100644 docs/cli/plugins-api.md create mode 100644 docs/cli/plugins/analyze-plugin.md create mode 100644 docs/cli/plugins/less-constants-plugin.md create mode 100644 docs/cli/plugins/scramble-css-plugin.md delete mode 100644 docs/css/all.min.css delete mode 100644 docs/css/style.scss rename docs/{docs => devtools}/devtools-introduction.md (81%) rename docs/{docs => devtools}/devtools-options.md (81%) rename docs/{docs => devtools}/devtools-ui.md (72%) delete mode 100644 docs/docs.md delete mode 100644 docs/examples.md delete mode 100644 docs/img/examples/feed.png delete mode 100644 docs/img/examples/hello.png delete mode 100644 docs/img/examples/todo.png delete mode 100644 docs/img/icons/android-chrome-96x96.png delete mode 100644 docs/img/icons/apple-touch-icon.png delete mode 100644 docs/img/icons/browserconfig.xml delete mode 100644 docs/img/icons/favicon-16x16.png delete mode 100644 docs/img/icons/favicon-32x32.png delete mode 100644 docs/img/icons/favicon.ico delete mode 100644 docs/img/icons/mstile-150x150.png delete mode 100644 docs/img/icons/safari-pinned-tab.svg delete mode 100644 docs/img/icons/site.webmanifest delete mode 100644 docs/img/imajs-logo-small.png delete mode 100644 docs/img/imajs-logo.png delete mode 100644 docs/img/platforms/android-browser.png delete mode 100644 docs/img/platforms/android.png delete mode 100644 docs/img/platforms/chrome.png delete mode 100644 docs/img/platforms/cordova.png delete mode 100644 docs/img/platforms/edge.png delete mode 100644 docs/img/platforms/firefox.png delete mode 100644 docs/img/platforms/ie.png delete mode 100644 docs/img/platforms/ios-safari.png delete mode 100644 docs/img/platforms/opera.png delete mode 100644 docs/img/platforms/phonegap.png delete mode 100644 docs/img/platforms/safari.png delete mode 100644 docs/img/platforms/seznam.png delete mode 100644 docs/img/technologies/es6.png delete mode 100644 docs/img/technologies/express.png delete mode 100644 docs/img/technologies/jasmine.png delete mode 100644 docs/img/technologies/nodejs.png delete mode 100644 docs/img/technologies/react.png delete mode 100644 docs/img/technologies/superagent.png delete mode 100644 docs/index.md rename docs/{docs => introduction}/configuration.md (85%) rename docs/{docs => introduction}/getting-started.md (89%) delete mode 100644 docs/js/lunr.js delete mode 100644 docs/js/menu.js delete mode 100644 docs/js/search.js rename docs/{docs => migration}/migration-0.14.0.md (96%) rename docs/{docs => migration}/migration-0.15.0.md (98%) rename docs/{docs => migration}/migration-0.16.0.md (95%) rename docs/{docs => migration}/migration-17.0.0.md (96%) rename docs/{docs => plugins}/available-plugins.md (72%) rename docs/{docs => plugins}/plugin-interface.md (94%) rename docs/tutorial/{fetching-the-data-from-the-server.md => fetching-data.md} (88%) delete mode 100644 docs/webfonts/fa-brands-400.eot delete mode 100644 docs/webfonts/fa-brands-400.svg delete mode 100644 docs/webfonts/fa-brands-400.ttf delete mode 100644 docs/webfonts/fa-brands-400.woff delete mode 100644 docs/webfonts/fa-brands-400.woff2 delete mode 100644 docs/webfonts/fa-regular-400.eot delete mode 100644 docs/webfonts/fa-regular-400.svg delete mode 100644 docs/webfonts/fa-regular-400.ttf delete mode 100644 docs/webfonts/fa-regular-400.woff delete mode 100644 docs/webfonts/fa-regular-400.woff2 delete mode 100644 docs/webfonts/fa-solid-900.eot delete mode 100644 docs/webfonts/fa-solid-900.svg delete mode 100644 docs/webfonts/fa-solid-900.ttf delete mode 100644 docs/webfonts/fa-solid-900.woff delete mode 100644 docs/webfonts/fa-solid-900.woff2 delete mode 100644 gulpfile.js delete mode 100644 packages/core/src/extension/__docs__/Extension.md delete mode 100644 utils/gulp/doc.js create mode 100644 website/.gitignore create mode 100644 website/README.md create mode 100644 website/babel.config.js create mode 100644 website/docusaurus.config.js create mode 100644 website/package.json create mode 100644 website/scripts/jsdoc2md.mjs rename {docs/_partials => website/scripts/partials}/docs.hbs (72%) create mode 100644 website/scripts/partials/header.hbs create mode 100644 website/scripts/partials/main.hbs create mode 100644 website/sidebars.js create mode 100644 website/src/components/feature/Feature.jsx create mode 100644 website/src/components/feature/FeaturesGrid.jsx create mode 100644 website/src/components/feature/OtherFeaturesList.jsx create mode 100644 website/src/components/feature/otherFeaturesList.module.css create mode 100644 website/src/components/githubLink/GithubLink.jsx create mode 100644 website/src/components/githubLink/githubLink.module.css create mode 100644 website/src/components/index.js create mode 100644 website/src/components/reference/Reference.jsx create mode 100644 website/src/components/reference/ReferencesGrid.jsx create mode 100644 website/src/components/reference/reference.module.css create mode 100644 website/src/components/separator/Separator.jsx create mode 100644 website/src/components/separator/separator.module.css create mode 100644 website/src/css/custom.css create mode 100644 website/src/pages/data/features.json create mode 100644 website/src/pages/data/notableMentions.json create mode 100644 website/src/pages/data/references.json create mode 100644 website/src/pages/index.jsx create mode 100644 website/src/pages/index.module.css create mode 100644 website/static/.nojekyll rename {docs => website/static}/img/docs/devtools-diagram.png (100%) rename {docs => website/static}/img/docs/devtools-options-hooks.png (100%) rename {docs => website/static}/img/docs/devtools-options-presets.png (100%) rename {docs => website/static}/img/docs/devtools-options.png (100%) rename {docs => website/static}/img/docs/devtools-ui-dataview.png (100%) rename {docs => website/static}/img/docs/devtools-ui-message.png (100%) rename {docs => website/static}/img/docs/devtools-ui-popup.png (100%) rename {docs => website/static}/img/docs/devtools-ui-search-action-btns.png (100%) rename {docs => website/static}/img/docs/devtools-ui-search-validation.png (100%) rename {docs => website/static}/img/docs/devtools-ui-search.png (100%) rename {docs => website/static}/img/docs/devtools-ui.png (100%) rename {docs => website/static}/img/docs/diagram-controller.png (100%) rename {docs => website/static}/img/docs/diagram-extensions.png (100%) rename {docs => website/static}/img/docs/diagram-page-manager.png (100%) rename {docs => website/static}/img/docs/diagram-page-state.png (100%) rename {docs => website/static}/img/docs/diagram-rendering.png (100%) rename {docs => website/static}/img/docs/diagram-router.png (100%) rename {docs => website/static}/img/docs/diagram-view.png (100%) create mode 100644 website/static/img/favicon.ico create mode 100644 website/static/img/logo.svg rename {docs => website/static}/img/references/garaz.jpg (100%) rename {docs => website/static}/img/references/hry.jpg (100%) rename {docs => website/static}/img/references/novinky.jpg (100%) rename {docs => website/static}/img/references/pocasi.jpg (100%) rename {docs => website/static}/img/references/prozeny.jpg (100%) rename {docs => website/static}/img/references/sauto.jpg (100%) rename {docs => website/static}/img/references/sbazar.jpg (100%) rename {docs => website/static}/img/references/seznam_vychytavky.jpg (100%) rename {docs => website/static}/img/references/seznamzpravy.jpg (100%) rename {docs => website/static}/img/references/tv_seznam.jpg (100%) rename {docs => website/static}/img/tutorial/final-polish-final.png (100%) rename {docs => website/static}/img/tutorial/final-polish-form-validation.png (100%) rename {docs => website/static}/img/tutorial/homeview.png (100%) rename {docs => website/static}/img/tutorial/introduction-run-dev.jpg (100%) rename {docs => website/static}/img/tutorial/static-view-null.png (100%) rename {docs => website/static}/img/tutorial/static-view-styling-our-form.png (100%) diff --git a/.eslintrc.js b/.eslintrc.js index 04fa0aa122..9d4138d673 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,7 +3,10 @@ module.exports = { ignorePatterns: [ '**/node_modules/**', '**/dist/**', + '**/build/**', '**/docs/**', + '**/.turbo/**', + '**/.docusaurus/**', '**/coverage/**', 'packages/create-ima-app/examples/todos/assets/**', ], @@ -84,6 +87,7 @@ module.exports = { // Import plugin { files: [ + 'website/**', 'packages/cli/**', 'packages/devtools/**', 'packages/devtools-scripts/**', @@ -93,14 +97,22 @@ module.exports = { ], extends: ['plugin:import/recommended'], rules: { - 'import/no-unresolved': ['warn', { ignore: ['^@\\/'] }], // ignore @/* aliases + 'import/no-unresolved': [ + 'warn', + { + ignore: [ + '^@\\/', // ignore @/* aliases + '@(docusaurus|theme)', + ], + }, + ], 'import/order': [ 'error', { groups: ['builtin', 'external', 'internal'], pathGroups: [ { - pattern: '{preact|react|svelte}{/**,**}', + pattern: '{preact|react|svelte|docusaurus|theme}{/**,**}', group: 'external', position: 'before', }, @@ -152,9 +164,18 @@ module.exports = { ], }, }, + // Website/docs overrides + { + files: ['website/**'], + rules: { + 'react/react-in-jsx-scope': 'error', + 'react/jsx-uses-react': 'error', + }, + }, // Other overrides { files: [ + 'website/scripts/**', 'packages/cli/**', 'packages/dev-utils/**', 'packages/create-ima-app/**', diff --git a/.gitignore b/.gitignore index e2585fd9a6..422d79e5ad 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ lerna-debug.log jsconfig.json ima-app storage +docs/api diff --git a/docs/.gitignore b/docs/.gitignore deleted file mode 100644 index a4afda4145..0000000000 --- a/docs/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -_site/ -.sass-cache/ -.jekyll-cache diff --git a/docs/CNAME b/docs/CNAME deleted file mode 100644 index 3ea6eca4c2..0000000000 --- a/docs/CNAME +++ /dev/null @@ -1 +0,0 @@ -imajs.io \ No newline at end of file diff --git a/docs/_config.yml b/docs/_config.yml deleted file mode 100644 index 588ae72e17..0000000000 --- a/docs/_config.yml +++ /dev/null @@ -1,18 +0,0 @@ -baseurl: "/" -title: "IMA.js" -description: "The IMA.js is an application development stack for developing isomorphic applications written in pure JavaScript and React." -exclude: ["_partials"] -permalink: /api/:categories/:title:output_ext -defaults: - - - scope: - path: "" - values: - layout: "default" - - - scope: - path: "" - type: "posts" - values: - layout: "api" - menuUrl: "api" diff --git a/docs/_data/common.json b/docs/_data/common.json deleted file mode 100644 index 5249dfa8df..0000000000 --- a/docs/_data/common.json +++ /dev/null @@ -1 +0,0 @@ -{"version":"18.0.0-rc.3"} \ No newline at end of file diff --git a/docs/_data/devtool-colors.json b/docs/_data/devtool-colors.json deleted file mode 100644 index 944edf4094..0000000000 --- a/docs/_data/devtool-colors.json +++ /dev/null @@ -1,54 +0,0 @@ -[ - { - "name": "green", - "code": "#37b24d" - }, - { - "name": "red", - "code": "#f03e3e" - }, - { - "name": "yellow", - "code": "#f59f00" - }, - { - "name": "blue", - "code": "#1c7ed6" - }, - { - "name": "indigo", - "code": "#4263eb" - }, - { - "name": "violet", - "code": "#7048e8" - }, - { - "name": "gray", - "code": "#495057" - }, - { - "name": "pink", - "code": "#d6336c" - }, - { - "name": "grape", - "code": "#ae3ec9" - }, - { - "name": "cyan", - "code": "#1098ad" - }, - { - "name": "teal", - "code": "#0ca678" - }, - { - "name": "lime", - "code": "#74b816" - }, - { - "name": "orange", - "code": "#f76707" - } -] diff --git a/docs/_data/docs.json b/docs/_data/docs.json deleted file mode 100644 index 19b9bfb945..0000000000 --- a/docs/_data/docs.json +++ /dev/null @@ -1,637 +0,0 @@ -[ - { - "title": "documentation", - "menu": [ - { - "title": "Table of contents", - "url": "/docs" - }, - { - "title": "Getting started", - "url": "/docs/getting-started", - "submenu": [ - { - "title": "Overview", - "url":"/docs/getting-started#overview" - }, - { - "title": "Installation", - "url": "/docs/getting-started#installation", - "submenu": [ - { - "title": "Available commands", - "url": "/docs/getting-started#available-commands" - }, - { - "title": "Why should I use create-ima-app command?", - "url": "/docs/getting-started#why-should-i-use-create-ima-app-command" - } - ] - }, - { - "title": "Application structure", - "url": "/docs/getting-started#application-structure" - }, - { - "title": "Production use", - "url": "/docs/getting-started#production-use" - } - ] - }, - { - "title": "Configuration", - "url": "/docs/configuration", - "submenu": [ - { - "title": "Build and environment configuration", - "url":"/docs/configuration#build-and-environment-configuration" - }, - { - "title": "Application configuration", - "url": "/docs/configuration#application-configuration" - } - ] - }, - { - "title": "Object Container", - "url": "/docs/object-container", - "submenu": [ - { - "title": "Manually registering dependencies", - "url": "/docs/object-container#manually-registering-dependencies", - "submenu": [ - { - "title": "bind()", - "url": "/docs/object-container#1-bind" - }, - { - "title": "constant()", - "url": "/docs/object-container#2-constant" - }, - { - "title": "inject()", - "url": "/docs/object-container#3-inject" - }, - { - "title": "provide()", - "url": "/docs/object-container#4-provide" - } - ] - }, - { - "title": "Obtaining dependencies", - "url": "/docs/object-container#obtaining-dependencies", - "submenu": [ - { - "title": "Dependency Injection", - "url": "/docs/object-container#1-dependency-injection" - }, - { - "title": "get()", - "url": "/docs/object-container#2-get" - }, - { - "title": "create()", - "url": "/docs/object-container#3-create" - } - ] - }, - { - "title": "Other methods", - "url": "/docs/object-container#other-methods" - } - ] - }, - { - "title": "Routing", - "url": "/docs/routing", - "submenu": [ - { - "title": "Setting up Router", - "url": "/docs/routing#setting-up-router", - "submenu": [ - { - "title": "Route name", - "url": "/docs/routing#1-route-name" - }, - { - "title": "Route path and parameters", - "url": "/docs/routing#2-route-path-and-parameters" - }, - { - "title": "Controller and View", - "url": "/docs/routing#3-controller-and-view" - }, - { - "title": "Options", - "url": "/docs/routing#4-options" - } - ] - }, - { - "title": "Linking to routes", - "url": "/docs/routing#linking-to-routes" - }, - { - "title": "Dynamic routes", - "url": "/docs/routing#dynamic-routes" - }, - { - "title": "Using middlewares", - "url": "/docs/routing#using-middlewares" - } - ] - }, - { - "title": "Page Manager", - "url": "/docs/page-manager", - "submenu": [ - { - "title": "Managing process", - "url": "/docs/page-manager#managing-process" - }, - { - "title": "Intervene into the process", - "url": "/docs/page-manager#intervene-into-the-process" - }, - { - "title": "PageManagerHandlers", - "url": "/docs/page-manager#pagemanagerhandlers", - "submenu": [ - { - "title": "init()", - "url": "/docs/page-manager#1-init-method" - }, - { - "title": "handlePreManagedState()", - "url": "/docs/page-manager#2-handlepremanagedstate-method" - }, - { - "title": "handlePostManagedState()", - "url": "/docs/page-manager#3-handlepostmanagedstate-method" - }, - { - "title": "destroy()", - "url": "/docs/page-manager#4-destroy-method" - } - ] - }, - { - "title": "Registering PageManagerHandlers", - "url": "/docs/page-manager#registering-pagemanagerhandlers" - }, - { - "title": "PageNavigationHandler", - "url": "/docs/page-manager#pagenavigationhandler" - } - ] - }, - { - "title": "Page State & Controller", - "url": "/docs/page-state", - "submenu": [ - { - "title": "Get & Set", - "url": "/docs/page-state#get-set" - }, - { - "title": "Initial page state", - "url": "/docs/page-state#initial-page-state" - }, - { - "title": "Partial state", - "url": "/docs/page-state#partial-state" - }, - { - "title": "State transactions", - "url": "/docs/page-state#state-transactions" - } - ] - }, - { - "title": "Controller lifecycle", - "url": "/docs/controller-lifecycle", - "submenu": [ - { - "title": "init()", - "url": "/docs/controller-lifecycle#init-serverclient" - }, - { - "title": "load()", - "url": "/docs/controller-lifecycle#load-serverclient" - }, - { - "title": "setMetaParams()", - "url": "/docs/controller-lifecycle#setmetaparams-serverclient" - }, - { - "title": "activate()", - "url": "/docs/controller-lifecycle#activate-client" - }, - { - "title": "update()", - "url": "/docs/controller-lifecycle#update-client" - }, - { - "title": "deactivate()", - "url": "/docs/controller-lifecycle#deactivate-client" - }, - { - "title": "destroy()", - "url": "/docs/controller-lifecycle#destroy-client" - } - ] - }, - { - "title": "Extensions", - "url": "/docs/extensions", - "submenu": [ - { - "title": "Why use extensions", - "url": "/docs/extensions#why-use-extensions" - }, - { - "title": "How to use extensions", - "url": "/docs/extensions#how-to-use-extensions" - }, - { - "title": "Passing partial state from controllers", - "url": "/docs/extensions#passing-partial-state-from-controllers" - } - ] - }, - { - "title": "Rendering process", - "url": "/docs/rendering-process", - "submenu": [ - { - "title": "DocumentView", - "url": "/docs/rendering-process#documentview" - }, - { - "title": "ViewAdapter", - "url": "/docs/rendering-process#viewadapter" - }, - { - "title": "React Context", - "url": "/docs/rendering-process#react-context" - }, - { - "title": "ManagedRootView", - "url": "/docs/rendering-process#managedrootview" - } - ] - }, - { - "title": "Views & Components", - "url": "/docs/views-and-components", - "submenu": [ - { - "title": "Organizing Views and Components", - "url": "/docs/views-and-components#organizing-views-and-components" - }, - { - "title": "Rendering Views", - "url": "/docs/views-and-components#rendering-views" - }, - { - "title": "Route parameters in View", - "url": "/docs/views-and-components#route-parameters-in-view" - }, - { - "title": "Communication between Views and Controllers", - "url": "/docs/views-and-components#communication-between-views-and-controllers" - }, - { - "title": "Utilities shared across Views and Components", - "url": "/docs/views-and-components#utilities-shared-across-views-and-components" - } - ] - }, - { - "title": "EventBus, Dispatcher & Events", - "url": "/docs/events", - "submenu": [ - { - "title": "EventBus", - "url": "/docs/events#eventbus", - "submenu": [ - { - "title": "Firing EventBus events", - "url": "/docs/events#firing-eventbus-events" - }, - { - "title": "Listening to EventBus events", - "url": "/docs/events#listening-to-eventbus-events" - } - ] - }, - { - "title": "Dispatcher", - "url": "/docs/events#dispatcher", - "submenu": [ - { - "title": "Firing and listening to Dispatcher events", - "url": "/docs/events#firing-and-listening-to-dispatcher-events" - } - ] - }, - { - "title": "Built-in events", - "url": "/docs/events#built-in-events", - "submenu": [ - { - "title": "RouterEvents", - "url": "/docs/events#routereventsbefore_handle_route" - }, - { - "title": "StateEvents", - "url": "/docs/events#stateeventsbefore_change_state" - } - ] - } - ] - }, - { - "title": "SEO & MetaManager", - "url": "/docs/seo-and-meta-manager", - "submenu": [ - { - "title": "Setting and obtaining information from the MetaManager", - "url": "/docs/seo-and-meta-manager#setting-and-obtaining-information-from-the-metamanager", - "submenu": [ - { - "title": "Managing document title", - "url": "/docs/seo-and-meta-manager#managing-document-title---settitle-gettitle" - }, - { - "title": "Configuring meta tags", - "url": "/docs/seo-and-meta-manager#configuring-meta-tags---setmetaname-getmetaname-getmetanames" - }, - { - "title": "Configuring meta properties", - "url": "/docs/seo-and-meta-manager#configuring-meta-properties---setmetaproperty-getmetaproperty-setmetaproperties" - }, - { - "title": "Configuring links", - "url": "/docs/seo-and-meta-manager#configuring-links---setlink-getlink-getlinks" - } - ] - }, - { - "title": "Automatically displaying all information", - "url": "/docs/seo-and-meta-manager#automatically-displaying-all-information" - } - ] - }, - { - "title": "Dictionary (i18n & l10n)", - "url": "/docs/dictionary", - "submenu": [ - { - "title": "Configuration", - "url": "/docs/dictionary#configuration" - }, - { - "title": "Usage", - "url": "/docs/dictionary#usage" - } - ] - }, - { - "title": "Errors", - "url": "/docs/errors" - } - ] - }, - { - "title": "Plugins", - "menu": [ - { - "title": "Plugin Interface", - "url": "/docs/plugin-interface", - "submenu": [ - { - "title": "Interface functions", - "url": "/docs/plugin-interface#interface-functions", - "submenu": [ - { - "title": "Updating build.js", - "url": "/docs/plugin-interface#updating-build-js" - } - ] - }, - { - "title": "Conclusion", - "url": "/docs/plugin-interface#conclusion" - } - ] - }, - { - "title": "List of available plugins", - "url": "/docs/available-plugins" - } - ] - }, - { - "title": "Devtools", - "menu": [ - { - "title": "Introduction", - "url": "/docs/devtools-introduction", - "submenu": [ - { - "title": "Panel", - "url": "/docs/devtools-introduction#how-it-works", - "submenu": [ - { - "title": "Devtools script", - "url": "/docs/devtools-introduction#devtools-script" - } - ] - } - ] - }, - { - "title": "User Interface", - "url": "/docs/devtools-ui", - "submenu": [ - { - "title": "Panel", - "url": "/docs/devtools-ui#panel", - "submenu": [ - { - "title": "Search bar", - "url": "/docs/devtools-ui#search-bar" - }, - { - "title": "Messages view", - "url": "/docs/devtools-ui#messages-view" - }, - { - "title": "Data view", - "url": "/docs/devtools-ui#data-view" - } - ] - }, - { - "title": "Popup", - "url": "/docs/devtools-ui#popup" - }, - { - "title": "Options", - "url": "/docs/devtools-ui#options" - } - ] - }, - { - "title": "Options", - "url": "/docs/devtools-options", - "submenu": [ - { - "title": "Quick UI overview", - "url": "/docs/devtools-options#quick-ui-overview" - }, - { - "title": "Presets modal window", - "url": "/docs/devtools-options#presets-modal-window" - }, - { - "title": "Hooks", - "url": "/docs/devtools-options#hooks", - "submenu": [ - - { - "title": "Available API", - "url": "/docs/devtools-options#available-api" - }, - { - "title": "aop", - "url": "/docs/devtools-options#1-aoptarget-pattern" - }, - { - "title": "createHook", - "url": "/docs/devtools-options#2-createhookname-regular-callback" - }, - { - "title": "emit", - "url": "/docs/devtools-options#3-emitidentifier-meta-options-overrides--" - }, - { - "title": "importIMAClass", - "url": "/docs/devtools-options#4-import-ima-class" - }, - { - "title": "Message colors", - "url": "/docs/devtools-options#message-colors" - } - ] - }, - { - "title": "Conclusion", - "url": "/docs/devtools-options#conclusion" - } - ] - } - ] - }, - { - "title": "migration", - "menu": [ - { - "title": "Upgrading to 0.14.0", - "url": "/docs/migration-0.14.0" - }, - { - "title": "Upgrading to 0.15.0", - "url": "/docs/migration-0.15.0", - "submenu": [ - { - "title": "Build", - "url": "/docs/migration-0.15.0#build" - }, - { - "title": "Jest replaces karma", - "url": "/docs/migration-0.15.0#karma-removed-instead-of-that-added-jest" - }, - { - "title": "Server", - "url": "/docs/migration-0.15.0#server" - }, - { - "title": "DocumentView", - "url": "/docs/migration-0.15.0#documentview" - }, - { - "title": "SPA", - "url": "/docs/migration-0.15.0#spa" - }, - { - "title": "Removed namespaces", - "url": "/docs/migration-0.15.0#removed-namespaces" - }, - { - "title": "Others", - "url": "/docs/migration-0.15.0#others" - } - ] - }, - { - "title": "Upgrading to 0.16.0", - "url": "/docs/migration-0.16.0", - "submenu": [ - { - "title": "Changes in dependencies", - "url": "/docs/migration-0.16.0#changes-in-dependencies" - }, - { - "title": "Migration guide", - "url": "/docs/migration-0.16.0#migration-guide" - }, - { - "title": "Other changes", - "url": "/docs/migration-0.16.0#other-changes" - }, - { - "title": "New Features", - "url": "/docs/migration-0.16.0#new-features" - } - ] - }, - { - "title": "Upgrading to 17.0.0", - "url": "/docs/migration-17.0.0", - "submenu": [ - { - "title": "Imports", - "url": "/docs/migration-17.0.0#imports" - }, - { - "title": "Context API", - "url": "/docs/migration-17.0.0#context-api" - }, - { - "title": "Utils Registration", - "url": "/docs/migration-17.0.0#utils-registration" - }, - { - "title": "IMA.js bundle for client/server", - "url": "/docs/migration-17.0.0#imajs-bundle-for-clientserver" - }, - { - "title": "Language Key in Config", - "url": "/docs/migration-17.0.0#language-key-in-config" - }, - { - "title": "Hot Reload", - "url": "/docs/migration-17.0.0#hot-reload" - }, - { - "title": "IMA.js Plugins", - "url": "/docs/migration-17.0.0#ima-js-plugins" - } - ] - } - ] - } -] diff --git a/docs/_data/examples.json b/docs/_data/examples.json deleted file mode 100644 index c215c9aba8..0000000000 --- a/docs/_data/examples.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "img": "/img/examples/hello.png", - "tags": ["HelloWorld", "minimal-structure", "how-to-run-IMA.js", "get-started"], - "text": "The basic Hello World example. Just the running IMA.js with the only one page. This example is ideal base for new project.", - "title": "Hello World", - "url": "https://github.com/seznam/ima/tree/master/packages/create-ima-app/examples/hello" - }, - { - "img": "/img/examples/todo.png", - "tags": ["TodoMVC", "basic-structure", "page-view", "MVC", "simple-component"], - "text": "Demo example of TodoMVC. TodoMVC is a project which offers the same Todo application implemented using MV* concepts in most of the popular JavaScript MV* frameworks of today.", - "title": "TODO List", - "url": "https://github.com/seznam/ima/tree/master/packages/create-ima-app/examples/todos" - }, - { - "img": "/img/examples/feed.png", - "tags": ["complex-solution", "API", "controller-view-communication", "components", "global-state", "local-state"], - "text": "Demo example with fake REST API for reading and writing posts. These post are displayed in the feed and could be filtered by category.", - "title": "Twitter-Like Feed", - "url": "https://github.com/seznam/ima/tree/master/packages/create-ima-app/examples/feed" - } -] diff --git a/docs/_data/features-more.json b/docs/_data/features-more.json deleted file mode 100644 index 65f4bdad56..0000000000 --- a/docs/_data/features-more.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "text": "Application can be switched between [IMA, SPA and MPA modes](https://github.com/seznam/ima/blob/master/packages/create-ima-app/examples/hello/environment.js#L42-L52){:target=\"_blank\"} or combine them." - }, - { - "text": "[Configuration](https://github.com/seznam/ima/blob/master/packages/create-ima-app/examples/hello/environment.js){:target=\"_blank\"} for all your environments in one place with inheritance." - }, - { - "text": "Out-of-box [configurable server-side caching](https://github.com/seznam/ima/blob/master/packages/create-ima-app/examples/hello/environment.js#L53-L65){:target=\"_blank\"}." - }, - { - "text": "Out-of-box REST API [localhost proxy](https://github.com/seznam/ima/tree/master/packages/server#L116){:target=\"_blank\"} with communication logging." - }, - { - "text": "[REST API cache](https://github.com/seznam/ima/blob/master/packages/create-ima-app/examples/hello/config/settings.js#L6-L20){:target=\"_blank\"}." - }, - { - "text": "Advanced error handling for greater stability and faster development." - }, - { - "text": "High-fidelity debug mode." - }, - { - "text": "[Dependency injection](/docs/object-container)." - } -] diff --git a/docs/_data/features.json b/docs/_data/features.json deleted file mode 100644 index a0a93b8dec..0000000000 --- a/docs/_data/features.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "text": "Write and run the same code at both the server side and the client side! IMA.js provides abstraction for APIs that differ at the client side javascript and the server side javascript.", - "title": "Fully Isomorphic" - }, - { - "text": "Page metadata are centrally managed, allowing easier [management](/docs/seo-and-meta-manager) of all your keywords and og meta-tags.", - "title": "SEO" - }, - { - "text": "Real-world heavy-load web services are run on the IMA.js platform. With hundreds of [unit tests](https://github.com/seznam/ima){:target=\"_blank\"} covering all of our code, you can rely on IMA.js to be a stable base of your application.", - "title": "Benchmarks and Tests" - }, - { - "text": "Use the familiar MVC pattern in combination with React for rendering your UI. See [Hello](https://github.com/seznam/ima/tree/master/packages/create-ima-app/examples/hello){:target=\"_blank\"} example.", - "title": "Production-ready Full Application Stack" - }, - { - "text": "IMA.js comes with a built-in [router](/docs/routing) for processing GET and POST HTTP requests.", - "title": "Routing" - }, - { - "text": "ES2015+ (JSX Harmony), Gulp, Hot Reload and other [technologies](#technologies).", - "title": "Bleeding Edge Technologies" - } -] diff --git a/docs/_data/lunr.json b/docs/_data/lunr.json deleted file mode 100644 index 5bba7f7748..0000000000 --- a/docs/_data/lunr.json +++ /dev/null @@ -1 +0,0 @@ -[{"name":"Bootstrap()","text":["Bootstrap","Bootstrap()"],"url":"/bootstrap#new_Bootstrap_new"},{"name":"Bootstrap","text":["general","Bootstrap"],"url":"general/bootstrap#Bootstrap"},{"name":"Bootstrap._oc","text":["Bootstrap","_oc","Bootstrap._oc"],"url":"general/bootstrap#Bootstrap+_oc"},{"name":"Bootstrap._config","text":["Bootstrap","_config","Bootstrap._config"],"url":"general/bootstrap#Bootstrap+_config"},{"name":"Bootstrap.run","text":["Bootstrap","run","Bootstrap.run"],"url":"general/bootstrap#Bootstrap+run"},{"name":"Bootstrap.initPlugin","text":["Bootstrap","initPlugin","Bootstrap.initPlugin"],"url":"general/bootstrap#Bootstrap+initPlugin"},{"name":"Bootstrap._initSettings","text":["Bootstrap","_initSettings","Bootstrap._initSettings"],"url":"general/bootstrap#Bootstrap+_initSettings"},{"name":"Bootstrap._initPluginSettings","text":["Bootstrap","_initPluginSettings","Bootstrap._initPluginSettings"],"url":"general/bootstrap#Bootstrap+_initPluginSettings"},{"name":"Bootstrap._bindDependencies","text":["Bootstrap","_bindDependencies","Bootstrap._bindDependencies"],"url":"general/bootstrap#Bootstrap+_bindDependencies"},{"name":"Bootstrap._bindPluginDependencies","text":["Bootstrap","_bindPluginDependencies","Bootstrap._bindPluginDependencies"],"url":"general/bootstrap#Bootstrap+_bindPluginDependencies"},{"name":"Bootstrap._initRoutes","text":["Bootstrap","_initRoutes","Bootstrap._initRoutes"],"url":"general/bootstrap#Bootstrap+_initRoutes"},{"name":"Bootstrap._initServices","text":["Bootstrap","_initServices","Bootstrap._initServices"],"url":"general/bootstrap#Bootstrap+_initServices"},{"name":"Bootstrap._initPluginServices","text":["Bootstrap","_initPluginServices","Bootstrap._initPluginServices"],"url":"general/bootstrap#Bootstrap+_initPluginServices"},{"name":"ObjectContainer()","text":["ObjectContainer","ObjectContainer()"],"url":"/object-container#new_ObjectContainer_new"},{"name":"Entry()","text":["Entry","Entry()"],"url":"/object-container#new_Entry_new"},{"name":"ObjectContainer","text":["general","ObjectContainer"],"url":"general/object-container#ObjectContainer"},{"name":"Entry","text":["Entry"],"url":"general/object-container#Entry"},{"name":"ObjectContainer._namespace","text":["ObjectContainer","_namespace","ObjectContainer._namespace"],"url":"general/object-container#ObjectContainer+_namespace"},{"name":"ObjectContainer._entries","text":["ObjectContainer","_entries","ObjectContainer._entries"],"url":"general/object-container#ObjectContainer+_entries"},{"name":"ObjectContainer._bindingState","text":["ObjectContainer","_bindingState","ObjectContainer._bindingState"],"url":"general/object-container#ObjectContainer+_bindingState"},{"name":"ObjectContainer._bindingPlugin","text":["ObjectContainer","_bindingPlugin","ObjectContainer._bindingPlugin"],"url":"general/object-container#ObjectContainer+_bindingPlugin"},{"name":"Entry.classConstructor","text":["Entry","classConstructor","Entry.classConstructor"],"url":"general/object-container#Entry+classConstructor"},{"name":"Entry.sharedInstance","text":["Entry","sharedInstance","Entry.sharedInstance"],"url":"general/object-container#Entry+sharedInstance"},{"name":"Entry._options","text":["Entry","_options","Entry._options"],"url":"general/object-container#Entry+_options"},{"name":"Entry._referrer","text":["Entry","_referrer","Entry._referrer"],"url":"general/object-container#Entry+_referrer"},{"name":"Entry._dependencies","text":["Entry","_dependencies","Entry._dependencies"],"url":"general/object-container#Entry+_dependencies"},{"name":"Entry._overrideCounter","text":["Entry","_overrideCounter","Entry._overrideCounter"],"url":"general/object-container#Entry+_overrideCounter"},{"name":"ObjectContainer.bind","text":["ObjectContainer","bind","ObjectContainer.bind"],"url":"general/object-container#ObjectContainer+bind"},{"name":"ObjectContainer.constant","text":["ObjectContainer","constant","ObjectContainer.constant"],"url":"general/object-container#ObjectContainer+constant"},{"name":"ObjectContainer.inject","text":["ObjectContainer","inject","ObjectContainer.inject"],"url":"general/object-container#ObjectContainer+inject"},{"name":"ObjectContainer.provide","text":["ObjectContainer","provide","ObjectContainer.provide"],"url":"general/object-container#ObjectContainer+provide"},{"name":"ObjectContainer.get","text":["ObjectContainer","get","ObjectContainer.get"],"url":"general/object-container#ObjectContainer+get"},{"name":"ObjectContainer.getConstructorOf","text":["ObjectContainer","getConstructorOf","ObjectContainer.getConstructorOf"],"url":"general/object-container#ObjectContainer+getConstructorOf"},{"name":"ObjectContainer.has","text":["ObjectContainer","has","ObjectContainer.has"],"url":"general/object-container#ObjectContainer+has"},{"name":"ObjectContainer.create","text":["ObjectContainer","create","ObjectContainer.create"],"url":"general/object-container#ObjectContainer+create"},{"name":"ObjectContainer.clear","text":["ObjectContainer","clear","ObjectContainer.clear"],"url":"general/object-container#ObjectContainer+clear"},{"name":"ObjectContainer.setBindingState","text":["ObjectContainer","setBindingState","ObjectContainer.setBindingState"],"url":"general/object-container#ObjectContainer+setBindingState"},{"name":"ObjectContainer._getEntry","text":["ObjectContainer","_getEntry","ObjectContainer._getEntry"],"url":"general/object-container#ObjectContainer+_getEntry"},{"name":"ObjectContainer._updateEntryValues","text":["ObjectContainer","_updateEntryValues","ObjectContainer._updateEntryValues"],"url":"general/object-container#ObjectContainer+_updateEntryValues"},{"name":"ObjectContainer._createEntry","text":["ObjectContainer","_createEntry","ObjectContainer._createEntry"],"url":"general/object-container#ObjectContainer+_createEntry"},{"name":"ObjectContainer._createInstanceFromEntry","text":["ObjectContainer","_createInstanceFromEntry","ObjectContainer._createInstanceFromEntry"],"url":"general/object-container#ObjectContainer+_createInstanceFromEntry"},{"name":"ObjectContainer._getEntryFromConstant","text":["ObjectContainer","_getEntryFromConstant","ObjectContainer._getEntryFromConstant"],"url":"general/object-container#ObjectContainer+_getEntryFromConstant"},{"name":"ObjectContainer._getEntryFromNamespace","text":["ObjectContainer","_getEntryFromNamespace","ObjectContainer._getEntryFromNamespace"],"url":"general/object-container#ObjectContainer+_getEntryFromNamespace"},{"name":"ObjectContainer._getEntryFromClassConstructor","text":["ObjectContainer","_getEntryFromClassConstructor","ObjectContainer._getEntryFromClassConstructor"],"url":"general/object-container#ObjectContainer+_getEntryFromClassConstructor"},{"name":"ObjectContainer.PLUGIN_BINDING_STATE","text":["ObjectContainer","PLUGIN_BINDING_STATE","ObjectContainer.PLUGIN_BINDING_STATE"],"url":"general/object-container#ObjectContainer.PLUGIN_BINDING_STATE"},{"name":"ObjectContainer.IMA_BINDING_STATE","text":["ObjectContainer","IMA_BINDING_STATE","ObjectContainer.IMA_BINDING_STATE"],"url":"general/object-container#ObjectContainer.IMA_BINDING_STATE"},{"name":"ObjectContainer.APP_BINDING_STATE","text":["ObjectContainer","APP_BINDING_STATE","ObjectContainer.APP_BINDING_STATE"],"url":"general/object-container#ObjectContainer.APP_BINDING_STATE"},{"name":"Namespace()","text":["Namespace","exports.Namespace","Namespace()"],"url":"/namespace#new_exports.Namespace_new"},{"name":"Namespace","text":["general","Namespace"],"url":"general/namespace#Namespace"},{"name":"Namespace.namespace","text":["Namespace","namespace","Namespace.namespace"],"url":"general/namespace#Namespace+namespace"},{"name":"Namespace.has","text":["Namespace","has","Namespace.has"],"url":"general/namespace#Namespace+has"},{"name":"Namespace.get","text":["Namespace","get","Namespace.get"],"url":"general/namespace#Namespace+get"},{"name":"Namespace.set","text":["Namespace","set","Namespace.set"],"url":"general/namespace#Namespace+set"},{"name":"Namespace._resolvePathLevels","text":["Namespace","_resolvePathLevels","Namespace._resolvePathLevels"],"url":"general/namespace#Namespace+_resolvePathLevels"},{"name":"PluginLoader()","text":["PluginLoader","PluginLoader()"],"url":"/plugin-loader#new_PluginLoader_new"},{"name":"PluginLoader","text":["general","PluginLoader"],"url":"general/plugin-loader#PluginLoader"},{"name":"PluginLoader.init","text":["PluginLoader","init","PluginLoader.init"],"url":"general/plugin-loader#PluginLoader+init"},{"name":"PluginLoader.register","text":["PluginLoader","register","PluginLoader.register"],"url":"general/plugin-loader#PluginLoader+register"},{"name":"PluginLoader.getPlugins","text":["PluginLoader","getPlugins","PluginLoader.getPlugins"],"url":"general/plugin-loader#PluginLoader+getPlugins"},{"name":"Cache","text":["cache","Cache"],"url":"cache/cache-cache#Cache"},{"name":"Cache.clear","text":["Cache","clear","Cache.clear"],"url":"cache/cache-cache#Cache+clear"},{"name":"Cache.has","text":["Cache","has","Cache.has"],"url":"cache/cache-cache#Cache+has"},{"name":"Cache.get","text":["Cache","get","Cache.get"],"url":"cache/cache-cache#Cache+get"},{"name":"Cache.set","text":["Cache","set","Cache.set"],"url":"cache/cache-cache#Cache+set"},{"name":"Cache.delete","text":["Cache","delete","Cache.delete"],"url":"cache/cache-cache#Cache+delete"},{"name":"Cache.disable","text":["Cache","disable","Cache.disable"],"url":"cache/cache-cache#Cache+disable"},{"name":"Cache.enable","text":["Cache","enable","Cache.enable"],"url":"cache/cache-cache#Cache+enable"},{"name":"Cache.serialize","text":["Cache","serialize","Cache.serialize"],"url":"cache/cache-cache#Cache+serialize"},{"name":"Cache.deserialize","text":["Cache","deserialize","Cache.deserialize"],"url":"cache/cache-cache#Cache+deserialize"},{"name":"CacheEntry()","text":["CacheEntry","CacheEntry()"],"url":"/cache-cache-entry#new_CacheEntry_new"},{"name":"CacheEntry","text":["cache","CacheEntry"],"url":"cache/cache-cache-entry#CacheEntry"},{"name":"CacheEntry._value","text":["CacheEntry","_value","CacheEntry._value"],"url":"cache/cache-cache-entry#CacheEntry+_value"},{"name":"CacheEntry._ttl","text":["CacheEntry","_ttl","CacheEntry._ttl"],"url":"cache/cache-cache-entry#CacheEntry+_ttl"},{"name":"CacheEntry._created","text":["CacheEntry","_created","CacheEntry._created"],"url":"cache/cache-cache-entry#CacheEntry+_created"},{"name":"CacheEntry.isExpired","text":["CacheEntry","isExpired","CacheEntry.isExpired"],"url":"cache/cache-cache-entry#CacheEntry+isExpired"},{"name":"CacheEntry.serialize","text":["CacheEntry","serialize","CacheEntry.serialize"],"url":"cache/cache-cache-entry#CacheEntry+serialize"},{"name":"CacheEntry.getValue","text":["CacheEntry","getValue","CacheEntry.getValue"],"url":"cache/cache-cache-entry#CacheEntry+getValue"},{"name":"CacheFactory","text":["cache","CacheFactory"],"url":"cache/cache-cache-factory#CacheFactory"},{"name":"CacheFactory.createCacheEntry","text":["CacheFactory","createCacheEntry","CacheFactory.createCacheEntry"],"url":"cache/cache-cache-factory#CacheFactory+createCacheEntry"},{"name":"CacheImpl()","text":["CacheImpl","CacheImpl()"],"url":"/cache-cache-impl#new_CacheImpl_new"},{"name":"CacheImpl","text":["cache","CacheImpl","Cache"],"url":"cache/cache-cache-impl#CacheImpl"},{"name":"CacheImpl._cache","text":["CacheImpl","_cache","CacheImpl._cache"],"url":"cache/cache-cache-impl#CacheImpl+_cache"},{"name":"CacheImpl._factory","text":["CacheImpl","_factory","CacheImpl._factory"],"url":"cache/cache-cache-impl#CacheImpl+_factory"},{"name":"CacheImpl._Helper","text":["CacheImpl","_Helper","CacheImpl._Helper"],"url":"cache/cache-cache-impl#CacheImpl+_Helper"},{"name":"CacheImpl._ttl","text":["CacheImpl","_ttl","CacheImpl._ttl"],"url":"cache/cache-cache-impl#CacheImpl+_ttl"},{"name":"CacheImpl._enabled","text":["CacheImpl","_enabled","CacheImpl._enabled"],"url":"cache/cache-cache-impl#CacheImpl+_enabled"},{"name":"CacheImpl.clear","text":["CacheImpl","clear","CacheImpl.clear"],"url":"cache/cache-cache-impl#CacheImpl+clear"},{"name":"CacheImpl.has","text":["CacheImpl","has","CacheImpl.has"],"url":"cache/cache-cache-impl#CacheImpl+has"},{"name":"CacheImpl.get","text":["CacheImpl","get","CacheImpl.get"],"url":"cache/cache-cache-impl#CacheImpl+get"},{"name":"CacheImpl.set","text":["CacheImpl","set","CacheImpl.set"],"url":"cache/cache-cache-impl#CacheImpl+set"},{"name":"CacheImpl.delete","text":["CacheImpl","delete","CacheImpl.delete"],"url":"cache/cache-cache-impl#CacheImpl+delete"},{"name":"CacheImpl.disable","text":["CacheImpl","disable","CacheImpl.disable"],"url":"cache/cache-cache-impl#CacheImpl+disable"},{"name":"CacheImpl.enable","text":["CacheImpl","enable","CacheImpl.enable"],"url":"cache/cache-cache-impl#CacheImpl+enable"},{"name":"CacheImpl.serialize","text":["CacheImpl","serialize","CacheImpl.serialize"],"url":"cache/cache-cache-impl#CacheImpl+serialize"},{"name":"CacheImpl.deserialize","text":["CacheImpl","deserialize","CacheImpl.deserialize"],"url":"cache/cache-cache-impl#CacheImpl+deserialize"},{"name":"CacheImpl._canSerializeValue","text":["CacheImpl","_canSerializeValue","CacheImpl._canSerializeValue"],"url":"cache/cache-cache-impl#CacheImpl+_canSerializeValue"},{"name":"CacheImpl._clone","text":["CacheImpl","_clone","CacheImpl._clone"],"url":"cache/cache-cache-impl#CacheImpl+_clone"},{"name":"AbstractController()","text":["AbstractController","AbstractController()"],"url":"/controller-abstract-controller#new_AbstractController_new"},{"name":"AbstractController","text":["controller","AbstractController","Controller"],"url":"controller/controller-abstract-controller#AbstractController"},{"name":"AbstractController._pageStateManager","text":["AbstractController","_pageStateManager","AbstractController._pageStateManager"],"url":"controller/controller-abstract-controller#AbstractController+_pageStateManager"},{"name":"AbstractController._extensions","text":["AbstractController","_extensions","AbstractController._extensions"],"url":"controller/controller-abstract-controller#AbstractController+_extensions"},{"name":"AbstractController.status","text":["AbstractController","status","AbstractController.status"],"url":"controller/controller-abstract-controller#AbstractController+status"},{"name":"AbstractController.params","text":["AbstractController","params","AbstractController.params"],"url":"controller/controller-abstract-controller#AbstractController+params"},{"name":"AbstractController.init","text":["AbstractController","init","AbstractController.init"],"url":"controller/controller-abstract-controller#AbstractController+init"},{"name":"AbstractController.destroy","text":["AbstractController","destroy","AbstractController.destroy"],"url":"controller/controller-abstract-controller#AbstractController+destroy"},{"name":"AbstractController.activate","text":["AbstractController","activate","AbstractController.activate"],"url":"controller/controller-abstract-controller#AbstractController+activate"},{"name":"AbstractController.deactivate","text":["AbstractController","deactivate","AbstractController.deactivate"],"url":"controller/controller-abstract-controller#AbstractController+deactivate"},{"name":"AbstractController.load","text":["AbstractController","load","AbstractController.load"],"url":"controller/controller-abstract-controller#AbstractController+load"},{"name":"AbstractController.update","text":["AbstractController","update","AbstractController.update"],"url":"controller/controller-abstract-controller#AbstractController+update"},{"name":"AbstractController.setState","text":["AbstractController","setState","AbstractController.setState"],"url":"controller/controller-abstract-controller#AbstractController+setState"},{"name":"AbstractController.getState","text":["AbstractController","getState","AbstractController.getState"],"url":"controller/controller-abstract-controller#AbstractController+getState"},{"name":"AbstractController.beginStateTransaction","text":["AbstractController","beginStateTransaction","AbstractController.beginStateTransaction"],"url":"controller/controller-abstract-controller#AbstractController+beginStateTransaction"},{"name":"AbstractController.commitStateTransaction","text":["AbstractController","commitStateTransaction","AbstractController.commitStateTransaction"],"url":"controller/controller-abstract-controller#AbstractController+commitStateTransaction"},{"name":"AbstractController.cancelStateTransaction","text":["AbstractController","cancelStateTransaction","AbstractController.cancelStateTransaction"],"url":"controller/controller-abstract-controller#AbstractController+cancelStateTransaction"},{"name":"AbstractController.addExtension","text":["AbstractController","addExtension","AbstractController.addExtension"],"url":"controller/controller-abstract-controller#AbstractController+addExtension"},{"name":"AbstractController.getExtensions","text":["AbstractController","getExtensions","AbstractController.getExtensions"],"url":"controller/controller-abstract-controller#AbstractController+getExtensions"},{"name":"AbstractController.setMetaParams","text":["AbstractController","setMetaParams","AbstractController.setMetaParams"],"url":"controller/controller-abstract-controller#AbstractController+setMetaParams"},{"name":"AbstractController.setRouteParams","text":["AbstractController","setRouteParams","AbstractController.setRouteParams"],"url":"controller/controller-abstract-controller#AbstractController+setRouteParams"},{"name":"AbstractController.getRouteParams","text":["AbstractController","getRouteParams","AbstractController.getRouteParams"],"url":"controller/controller-abstract-controller#AbstractController+getRouteParams"},{"name":"AbstractController.setPageStateManager","text":["AbstractController","setPageStateManager","AbstractController.setPageStateManager"],"url":"controller/controller-abstract-controller#AbstractController+setPageStateManager"},{"name":"AbstractController.getHttpStatus","text":["AbstractController","getHttpStatus","AbstractController.getHttpStatus"],"url":"controller/controller-abstract-controller#AbstractController+getHttpStatus"},{"name":"Controller","text":["controller","Controller"],"url":"controller/controller-controller#Controller"},{"name":"Controller.init","text":["Controller","init","Controller.init"],"url":"controller/controller-controller#Controller+init"},{"name":"Controller.destroy","text":["Controller","destroy","Controller.destroy"],"url":"controller/controller-controller#Controller+destroy"},{"name":"Controller.activate","text":["Controller","activate","Controller.activate"],"url":"controller/controller-controller#Controller+activate"},{"name":"Controller.deactivate","text":["Controller","deactivate","Controller.deactivate"],"url":"controller/controller-controller#Controller+deactivate"},{"name":"Controller.load","text":["Controller","load","Controller.load"],"url":"controller/controller-controller#Controller+load"},{"name":"Controller.update","text":["Controller","update","Controller.update"],"url":"controller/controller-controller#Controller+update"},{"name":"Controller.setState","text":["Controller","setState","Controller.setState"],"url":"controller/controller-controller#Controller+setState"},{"name":"Controller.getState","text":["Controller","getState","Controller.getState"],"url":"controller/controller-controller#Controller+getState"},{"name":"Controller.beginStateTransaction","text":["Controller","beginStateTransaction","Controller.beginStateTransaction"],"url":"controller/controller-controller#Controller+beginStateTransaction"},{"name":"Controller.commitStateTransaction","text":["Controller","commitStateTransaction","Controller.commitStateTransaction"],"url":"controller/controller-controller#Controller+commitStateTransaction"},{"name":"Controller.cancelStateTransaction","text":["Controller","cancelStateTransaction","Controller.cancelStateTransaction"],"url":"controller/controller-controller#Controller+cancelStateTransaction"},{"name":"Controller.addExtension","text":["Controller","addExtension","Controller.addExtension"],"url":"controller/controller-controller#Controller+addExtension"},{"name":"Controller.getExtensions","text":["Controller","getExtensions","Controller.getExtensions"],"url":"controller/controller-controller#Controller+getExtensions"},{"name":"Controller.setMetaParams","text":["Controller","setMetaParams","Controller.setMetaParams"],"url":"controller/controller-controller#Controller+setMetaParams"},{"name":"Controller.setRouteParams","text":["Controller","setRouteParams","Controller.setRouteParams"],"url":"controller/controller-controller#Controller+setRouteParams"},{"name":"Controller.getRouteParams","text":["Controller","getRouteParams","Controller.getRouteParams"],"url":"controller/controller-controller#Controller+getRouteParams"},{"name":"Controller.setPageStateManager","text":["Controller","setPageStateManager","Controller.setPageStateManager"],"url":"controller/controller-controller#Controller+setPageStateManager"},{"name":"Controller.getHttpStatus","text":["Controller","getHttpStatus","Controller.getHttpStatus"],"url":"controller/controller-controller#Controller+getHttpStatus"},{"name":"ControllerDecorator()","text":["ControllerDecorator","ControllerDecorator()"],"url":"/controller-controller-decorator#new_ControllerDecorator_new"},{"name":"ControllerDecorator","text":["controller","ControllerDecorator","Controller"],"url":"controller/controller-controller-decorator#ControllerDecorator"},{"name":"ControllerDecorator._controller","text":["ControllerDecorator","_controller","ControllerDecorator._controller"],"url":"controller/controller-controller-decorator#ControllerDecorator+_controller"},{"name":"ControllerDecorator._metaManager","text":["ControllerDecorator","_metaManager","ControllerDecorator._metaManager"],"url":"controller/controller-controller-decorator#ControllerDecorator+_metaManager"},{"name":"ControllerDecorator._router","text":["ControllerDecorator","_router","ControllerDecorator._router"],"url":"controller/controller-controller-decorator#ControllerDecorator+_router"},{"name":"ControllerDecorator._dictionary","text":["ControllerDecorator","_dictionary","ControllerDecorator._dictionary"],"url":"controller/controller-controller-decorator#ControllerDecorator+_dictionary"},{"name":"ControllerDecorator._settings","text":["ControllerDecorator","_settings","ControllerDecorator._settings"],"url":"controller/controller-controller-decorator#ControllerDecorator+_settings"},{"name":"ControllerDecorator.init","text":["ControllerDecorator","init","ControllerDecorator.init"],"url":"controller/controller-controller-decorator#ControllerDecorator+init"},{"name":"ControllerDecorator.destroy","text":["ControllerDecorator","destroy","ControllerDecorator.destroy"],"url":"controller/controller-controller-decorator#ControllerDecorator+destroy"},{"name":"ControllerDecorator.activate","text":["ControllerDecorator","activate","ControllerDecorator.activate"],"url":"controller/controller-controller-decorator#ControllerDecorator+activate"},{"name":"ControllerDecorator.deactivate","text":["ControllerDecorator","deactivate","ControllerDecorator.deactivate"],"url":"controller/controller-controller-decorator#ControllerDecorator+deactivate"},{"name":"ControllerDecorator.load","text":["ControllerDecorator","load","ControllerDecorator.load"],"url":"controller/controller-controller-decorator#ControllerDecorator+load"},{"name":"ControllerDecorator.update","text":["ControllerDecorator","update","ControllerDecorator.update"],"url":"controller/controller-controller-decorator#ControllerDecorator+update"},{"name":"ControllerDecorator.setReactiveView","text":["ControllerDecorator","setReactiveView","ControllerDecorator.setReactiveView"],"url":"controller/controller-controller-decorator#ControllerDecorator+setReactiveView"},{"name":"ControllerDecorator.setState","text":["ControllerDecorator","setState","ControllerDecorator.setState"],"url":"controller/controller-controller-decorator#ControllerDecorator+setState"},{"name":"ControllerDecorator.getState","text":["ControllerDecorator","getState","ControllerDecorator.getState"],"url":"controller/controller-controller-decorator#ControllerDecorator+getState"},{"name":"ControllerDecorator.beginStateTransaction","text":["ControllerDecorator","beginStateTransaction","ControllerDecorator.beginStateTransaction"],"url":"controller/controller-controller-decorator#ControllerDecorator+beginStateTransaction"},{"name":"ControllerDecorator.commitStateTransaction","text":["ControllerDecorator","commitStateTransaction","ControllerDecorator.commitStateTransaction"],"url":"controller/controller-controller-decorator#ControllerDecorator+commitStateTransaction"},{"name":"ControllerDecorator.cancelStateTransaction","text":["ControllerDecorator","cancelStateTransaction","ControllerDecorator.cancelStateTransaction"],"url":"controller/controller-controller-decorator#ControllerDecorator+cancelStateTransaction"},{"name":"ControllerDecorator.addExtension","text":["ControllerDecorator","addExtension","ControllerDecorator.addExtension"],"url":"controller/controller-controller-decorator#ControllerDecorator+addExtension"},{"name":"ControllerDecorator.getExtensions","text":["ControllerDecorator","getExtensions","ControllerDecorator.getExtensions"],"url":"controller/controller-controller-decorator#ControllerDecorator+getExtensions"},{"name":"ControllerDecorator.setMetaParams","text":["ControllerDecorator","setMetaParams","ControllerDecorator.setMetaParams"],"url":"controller/controller-controller-decorator#ControllerDecorator+setMetaParams"},{"name":"ControllerDecorator.setRouteParams","text":["ControllerDecorator","setRouteParams","ControllerDecorator.setRouteParams"],"url":"controller/controller-controller-decorator#ControllerDecorator+setRouteParams"},{"name":"ControllerDecorator.getRouteParams","text":["ControllerDecorator","getRouteParams","ControllerDecorator.getRouteParams"],"url":"controller/controller-controller-decorator#ControllerDecorator+getRouteParams"},{"name":"ControllerDecorator.setPageStateManager","text":["ControllerDecorator","setPageStateManager","ControllerDecorator.setPageStateManager"],"url":"controller/controller-controller-decorator#ControllerDecorator+setPageStateManager"},{"name":"ControllerDecorator.getHttpStatus","text":["ControllerDecorator","getHttpStatus","ControllerDecorator.getHttpStatus"],"url":"controller/controller-controller-decorator#ControllerDecorator+getHttpStatus"},{"name":"ControllerDecorator.getMetaManager","text":["ControllerDecorator","getMetaManager","ControllerDecorator.getMetaManager"],"url":"controller/controller-controller-decorator#ControllerDecorator+getMetaManager"},{"name":"Dictionary","text":["dictionary","Dictionary"],"url":"dictionary/dictionary-dictionary#Dictionary"},{"name":"Dictionary.init","text":["Dictionary","init","Dictionary.init"],"url":"dictionary/dictionary-dictionary#Dictionary+init"},{"name":"Dictionary.getLanguage","text":["Dictionary","getLanguage","Dictionary.getLanguage"],"url":"dictionary/dictionary-dictionary#Dictionary+getLanguage"},{"name":"Dictionary.get","text":["Dictionary","get","Dictionary.get"],"url":"dictionary/dictionary-dictionary#Dictionary+get"},{"name":"Dictionary.has","text":["Dictionary","has","Dictionary.has"],"url":"dictionary/dictionary-dictionary#Dictionary+has"},{"name":"MessageFormatDictionary()","text":["MessageFormatDictionary","MessageFormatDictionary()"],"url":"/dictionary-message-format-dictionary#new_MessageFormatDictionary_new"},{"name":"MessageFormatDictionary","text":["dictionary","MessageFormatDictionary","Dictionary"],"url":"dictionary/dictionary-message-format-dictionary#MessageFormatDictionary"},{"name":"MessageFormatDictionary._language","text":["MessageFormatDictionary","_language","MessageFormatDictionary._language"],"url":"dictionary/dictionary-message-format-dictionary#MessageFormatDictionary+_language"},{"name":"MessageFormatDictionary._dictionary","text":["MessageFormatDictionary","_dictionary","MessageFormatDictionary._dictionary"],"url":"dictionary/dictionary-message-format-dictionary#MessageFormatDictionary+_dictionary"},{"name":"MessageFormatDictionary.init","text":["MessageFormatDictionary","init","MessageFormatDictionary.init"],"url":"dictionary/dictionary-message-format-dictionary#MessageFormatDictionary+init"},{"name":"MessageFormatDictionary.getLanguage","text":["MessageFormatDictionary","getLanguage","MessageFormatDictionary.getLanguage"],"url":"dictionary/dictionary-message-format-dictionary#MessageFormatDictionary+getLanguage"},{"name":"MessageFormatDictionary.get","text":["MessageFormatDictionary","get","MessageFormatDictionary.get"],"url":"dictionary/dictionary-message-format-dictionary#MessageFormatDictionary+get"},{"name":"MessageFormatDictionary.has","text":["MessageFormatDictionary","has","MessageFormatDictionary.has"],"url":"dictionary/dictionary-message-format-dictionary#MessageFormatDictionary+has"},{"name":"MessageFormatDictionary._getScope","text":["MessageFormatDictionary","_getScope","MessageFormatDictionary._getScope"],"url":"dictionary/dictionary-message-format-dictionary#MessageFormatDictionary+_getScope"},{"name":"Error","text":["error","Error","ExtensibleError"],"url":"error/error-error#Error"},{"name":"Error.getHttpStatus","text":["Error","getHttpStatus","Error.getHttpStatus"],"url":"error/error-error#Error+getHttpStatus"},{"name":"Error.getParams","text":["Error","getParams","Error.getParams"],"url":"error/error-error#Error+getParams"},{"name":"ExtensibleError()","text":["ExtensibleError","ExtensibleError()"],"url":"/error-extensible-error#new_ExtensibleError_new"},{"name":"ExtensibleError","text":["error","ExtensibleError","Error"],"url":"error/error-extensible-error#ExtensibleError"},{"name":"ExtensibleError.name","text":["ExtensibleError","name","ExtensibleError.name"],"url":"error/error-extensible-error#ExtensibleError+name"},{"name":"ExtensibleError.message","text":["ExtensibleError","message","ExtensibleError.message"],"url":"error/error-extensible-error#ExtensibleError+message"},{"name":"ExtensibleError._nativeError","text":["ExtensibleError","_nativeError","ExtensibleError._nativeError"],"url":"error/error-extensible-error#ExtensibleError+_nativeError"},{"name":"ExtensibleError._stack","text":["ExtensibleError","_stack","ExtensibleError._stack"],"url":"error/error-extensible-error#ExtensibleError+_stack"},{"name":"ExtensibleError._dropInternalStackFrames","text":["ExtensibleError","_dropInternalStackFrames","ExtensibleError._dropInternalStackFrames"],"url":"error/error-extensible-error#ExtensibleError+_dropInternalStackFrames"},{"name":"ExtensibleError.stack","text":["ExtensibleError","stack","ExtensibleError.stack"],"url":"error/error-extensible-error#ExtensibleError+stack"},{"name":"GenericError()","text":["GenericError","GenericError()"],"url":"/error-generic-error#new_GenericError_new"},{"name":"GenericError","text":["error","GenericError","Error"],"url":"error/error-generic-error#GenericError"},{"name":"GenericError._params","text":["GenericError","_params","GenericError._params"],"url":"error/error-generic-error#GenericError+_params"},{"name":"GenericError.getHttpStatus","text":["GenericError","getHttpStatus","GenericError.getHttpStatus"],"url":"error/error-generic-error#GenericError+getHttpStatus"},{"name":"GenericError.getParams","text":["GenericError","getParams","GenericError.getParams"],"url":"error/error-generic-error#GenericError+getParams"},{"name":"Dispatcher","text":["event","Dispatcher"],"url":"event/event-dispatcher#Dispatcher"},{"name":"Dispatcher.clear","text":["Dispatcher","clear","Dispatcher.clear"],"url":"event/event-dispatcher#Dispatcher+clear"},{"name":"Dispatcher.listen","text":["Dispatcher","listen","Dispatcher.listen"],"url":"event/event-dispatcher#Dispatcher+listen"},{"name":"Dispatcher.unlisten","text":["Dispatcher","unlisten","Dispatcher.unlisten"],"url":"event/event-dispatcher#Dispatcher+unlisten"},{"name":"Dispatcher.fire","text":["Dispatcher","fire","Dispatcher.fire"],"url":"event/event-dispatcher#Dispatcher+fire"},{"name":"DispatcherImpl()","text":["DispatcherImpl","DispatcherImpl()"],"url":"/event-dispatcher-impl#new_DispatcherImpl_new"},{"name":"DispatcherImpl","text":["event","DispatcherImpl"],"url":"event/event-dispatcher-impl#DispatcherImpl"},{"name":"EMPTY_MAP","text":["EMPTY_MAP"],"url":"event/event-dispatcher-impl#EMPTY_MAP"},{"name":"EMPTY_SET","text":["EMPTY_SET"],"url":"event/event-dispatcher-impl#EMPTY_SET"},{"name":"DispatcherImpl._eventListeners","text":["DispatcherImpl","_eventListeners","DispatcherImpl._eventListeners"],"url":"event/event-dispatcher-impl#DispatcherImpl+_eventListeners"},{"name":"DispatcherImpl.clear","text":["DispatcherImpl","clear","DispatcherImpl.clear"],"url":"event/event-dispatcher-impl#DispatcherImpl+clear"},{"name":"DispatcherImpl.listen","text":["DispatcherImpl","listen","DispatcherImpl.listen"],"url":"event/event-dispatcher-impl#DispatcherImpl+listen"},{"name":"DispatcherImpl.unlisten","text":["DispatcherImpl","unlisten","DispatcherImpl.unlisten"],"url":"event/event-dispatcher-impl#DispatcherImpl+unlisten"},{"name":"DispatcherImpl.fire","text":["DispatcherImpl","fire","DispatcherImpl.fire"],"url":"event/event-dispatcher-impl#DispatcherImpl+fire"},{"name":"DispatcherImpl._createNewEvent","text":["DispatcherImpl","_createNewEvent","DispatcherImpl._createNewEvent"],"url":"event/event-dispatcher-impl#DispatcherImpl+_createNewEvent"},{"name":"DispatcherImpl._createNewListener","text":["DispatcherImpl","_createNewListener","DispatcherImpl._createNewListener"],"url":"event/event-dispatcher-impl#DispatcherImpl+_createNewListener"},{"name":"DispatcherImpl._getScopesOf","text":["DispatcherImpl","_getScopesOf","DispatcherImpl._getScopesOf"],"url":"event/event-dispatcher-impl#DispatcherImpl+_getScopesOf"},{"name":"DispatcherImpl._getListenersOf","text":["DispatcherImpl","_getListenersOf","DispatcherImpl._getListenersOf"],"url":"event/event-dispatcher-impl#DispatcherImpl+_getListenersOf"},{"name":"EventBus","text":["event","EventBus"],"url":"event/event-event-bus#EventBus"},{"name":"EventBus.fire","text":["EventBus","fire","EventBus.fire"],"url":"event/event-event-bus#EventBus+fire"},{"name":"EventBus.listenAll","text":["EventBus","listenAll","EventBus.listenAll"],"url":"event/event-event-bus#EventBus+listenAll"},{"name":"EventBus.listen","text":["EventBus","listen","EventBus.listen"],"url":"event/event-event-bus#EventBus+listen"},{"name":"EventBus.unlistenAll","text":["EventBus","unlistenAll","EventBus.unlistenAll"],"url":"event/event-event-bus#EventBus+unlistenAll"},{"name":"EventBus.unlisten","text":["EventBus","unlisten","EventBus.unlisten"],"url":"event/event-event-bus#EventBus+unlisten"},{"name":"EventBusImpl()","text":["EventBusImpl","EventBusImpl()"],"url":"/event-event-bus-impl#new_EventBusImpl_new"},{"name":"EventBusImpl","text":["event","EventBusImpl"],"url":"event/event-event-bus-impl#EventBusImpl"},{"name":"IMA_EVENT","text":["IMA_EVENT"],"url":"event/event-event-bus-impl#IMA_EVENT"},{"name":"EventBusImpl._window","text":["EventBusImpl","_window","EventBusImpl._window"],"url":"event/event-event-bus-impl#EventBusImpl+_window"},{"name":"EventBusImpl._listeners","text":["EventBusImpl","_listeners","EventBusImpl._listeners"],"url":"event/event-event-bus-impl#EventBusImpl+_listeners"},{"name":"EventBusImpl._allListenersTargets","text":["EventBusImpl","_allListenersTargets","EventBusImpl._allListenersTargets"],"url":"event/event-event-bus-impl#EventBusImpl+_allListenersTargets"},{"name":"EventBusImpl.fire","text":["EventBusImpl","fire","EventBusImpl.fire"],"url":"event/event-event-bus-impl#EventBusImpl+fire"},{"name":"EventBusImpl.listenAll","text":["EventBusImpl","listenAll","EventBusImpl.listenAll"],"url":"event/event-event-bus-impl#EventBusImpl+listenAll"},{"name":"EventBusImpl.listen","text":["EventBusImpl","listen","EventBusImpl.listen"],"url":"event/event-event-bus-impl#EventBusImpl+listen"},{"name":"EventBusImpl.unlistenAll","text":["EventBusImpl","unlistenAll","EventBusImpl.unlistenAll"],"url":"event/event-event-bus-impl#EventBusImpl+unlistenAll"},{"name":"EventBusImpl.unlisten","text":["EventBusImpl","unlisten","EventBusImpl.unlisten"],"url":"event/event-event-bus-impl#EventBusImpl+unlisten"},{"name":"AbstractExecution","text":["execution","AbstractExecution","Execution"],"url":"execution/execution-abstract-execution#AbstractExecution"},{"name":"AbstractExecution.append","text":["AbstractExecution","append","AbstractExecution.append"],"url":"execution/execution-abstract-execution#AbstractExecution+append"},{"name":"AbstractExecution.execute","text":["AbstractExecution","execute","AbstractExecution.execute"],"url":"execution/execution-abstract-execution#AbstractExecution+execute"},{"name":"AbstractExecution._validateJob","text":["AbstractExecution","_validateJob","AbstractExecution._validateJob"],"url":"execution/execution-abstract-execution#AbstractExecution+_validateJob"},{"name":"Execution","text":["execution","Execution"],"url":"execution/execution-execution#Execution"},{"name":"Execution.append","text":["Execution","append","Execution.append"],"url":"execution/execution-execution#Execution+append"},{"name":"Execution.execute","text":["Execution","execute","Execution.execute"],"url":"execution/execution-execution#Execution+execute"},{"name":"SerialBatch","text":["execution","SerialBatch","AbstractExecution"],"url":"execution/execution-serial-batch#SerialBatch"},{"name":"SerialBatch.execute","text":["SerialBatch","execute","SerialBatch.execute"],"url":"execution/execution-serial-batch#SerialBatch+execute"},{"name":"AbstractExtension","text":["extension","AbstractExtension","Extension"],"url":"extension/extension-abstract-extension#AbstractExtension"},{"name":"AbstractExtension._pageStateManager","text":["AbstractExtension","_pageStateManager","AbstractExtension._pageStateManager"],"url":"extension/extension-abstract-extension#AbstractExtension+_pageStateManager"},{"name":"AbstractExtension._usingStateManager","text":["AbstractExtension","_usingStateManager","AbstractExtension._usingStateManager"],"url":"extension/extension-abstract-extension#AbstractExtension+_usingStateManager"},{"name":"AbstractExtension.status","text":["AbstractExtension","status","AbstractExtension.status"],"url":"extension/extension-abstract-extension#AbstractExtension+status"},{"name":"AbstractExtension.params","text":["AbstractExtension","params","AbstractExtension.params"],"url":"extension/extension-abstract-extension#AbstractExtension+params"},{"name":"AbstractExtension.init","text":["AbstractExtension","init","AbstractExtension.init"],"url":"extension/extension-abstract-extension#AbstractExtension+init"},{"name":"AbstractExtension.destroy","text":["AbstractExtension","destroy","AbstractExtension.destroy"],"url":"extension/extension-abstract-extension#AbstractExtension+destroy"},{"name":"AbstractExtension.activate","text":["AbstractExtension","activate","AbstractExtension.activate"],"url":"extension/extension-abstract-extension#AbstractExtension+activate"},{"name":"AbstractExtension.deactivate","text":["AbstractExtension","deactivate","AbstractExtension.deactivate"],"url":"extension/extension-abstract-extension#AbstractExtension+deactivate"},{"name":"AbstractExtension.load","text":["AbstractExtension","load","AbstractExtension.load"],"url":"extension/extension-abstract-extension#AbstractExtension+load"},{"name":"AbstractExtension.update","text":["AbstractExtension","update","AbstractExtension.update"],"url":"extension/extension-abstract-extension#AbstractExtension+update"},{"name":"AbstractExtension.setState","text":["AbstractExtension","setState","AbstractExtension.setState"],"url":"extension/extension-abstract-extension#AbstractExtension+setState"},{"name":"AbstractExtension.getState","text":["AbstractExtension","getState","AbstractExtension.getState"],"url":"extension/extension-abstract-extension#AbstractExtension+getState"},{"name":"AbstractExtension.beginStateTransaction","text":["AbstractExtension","beginStateTransaction","AbstractExtension.beginStateTransaction"],"url":"extension/extension-abstract-extension#AbstractExtension+beginStateTransaction"},{"name":"AbstractExtension.commitStateTransaction","text":["AbstractExtension","commitStateTransaction","AbstractExtension.commitStateTransaction"],"url":"extension/extension-abstract-extension#AbstractExtension+commitStateTransaction"},{"name":"AbstractExtension.cancelStateTransaction","text":["AbstractExtension","cancelStateTransaction","AbstractExtension.cancelStateTransaction"],"url":"extension/extension-abstract-extension#AbstractExtension+cancelStateTransaction"},{"name":"AbstractExtension.setPartialState","text":["AbstractExtension","setPartialState","AbstractExtension.setPartialState"],"url":"extension/extension-abstract-extension#AbstractExtension+setPartialState"},{"name":"AbstractExtension.getPartialState","text":["AbstractExtension","getPartialState","AbstractExtension.getPartialState"],"url":"extension/extension-abstract-extension#AbstractExtension+getPartialState"},{"name":"AbstractExtension.clearPartialState","text":["AbstractExtension","clearPartialState","AbstractExtension.clearPartialState"],"url":"extension/extension-abstract-extension#AbstractExtension+clearPartialState"},{"name":"AbstractExtension.setRouteParams","text":["AbstractExtension","setRouteParams","AbstractExtension.setRouteParams"],"url":"extension/extension-abstract-extension#AbstractExtension+setRouteParams"},{"name":"AbstractExtension.getRouteParams","text":["AbstractExtension","getRouteParams","AbstractExtension.getRouteParams"],"url":"extension/extension-abstract-extension#AbstractExtension+getRouteParams"},{"name":"AbstractExtension.setPageStateManager","text":["AbstractExtension","setPageStateManager","AbstractExtension.setPageStateManager"],"url":"extension/extension-abstract-extension#AbstractExtension+setPageStateManager"},{"name":"AbstractExtension.switchToStateManager","text":["AbstractExtension","switchToStateManager","AbstractExtension.switchToStateManager"],"url":"extension/extension-abstract-extension#AbstractExtension+switchToStateManager"},{"name":"AbstractExtension.switchToPartialState","text":["AbstractExtension","switchToPartialState","AbstractExtension.switchToPartialState"],"url":"extension/extension-abstract-extension#AbstractExtension+switchToPartialState"},{"name":"AbstractExtension.getHttpStatus","text":["AbstractExtension","getHttpStatus","AbstractExtension.getHttpStatus"],"url":"extension/extension-abstract-extension#AbstractExtension+getHttpStatus"},{"name":"AbstractExtension.getAllowedStateKeys","text":["AbstractExtension","getAllowedStateKeys","AbstractExtension.getAllowedStateKeys"],"url":"extension/extension-abstract-extension#AbstractExtension+getAllowedStateKeys"},{"name":"Extension","text":["extension","Extension"],"url":"extension/extension-extension#Extension"},{"name":"Extension.init","text":["Extension","init","Extension.init"],"url":"extension/extension-extension#Extension+init"},{"name":"Extension.destroy","text":["Extension","destroy","Extension.destroy"],"url":"extension/extension-extension#Extension+destroy"},{"name":"Extension.activate","text":["Extension","activate","Extension.activate"],"url":"extension/extension-extension#Extension+activate"},{"name":"Extension.deactivate","text":["Extension","deactivate","Extension.deactivate"],"url":"extension/extension-extension#Extension+deactivate"},{"name":"Extension.load","text":["Extension","load","Extension.load"],"url":"extension/extension-extension#Extension+load"},{"name":"Extension.update","text":["Extension","update","Extension.update"],"url":"extension/extension-extension#Extension+update"},{"name":"Extension.setState","text":["Extension","setState","Extension.setState"],"url":"extension/extension-extension#Extension+setState"},{"name":"Extension.getState","text":["Extension","getState","Extension.getState"],"url":"extension/extension-extension#Extension+getState"},{"name":"Extension.beginStateTransaction","text":["Extension","beginStateTransaction","Extension.beginStateTransaction"],"url":"extension/extension-extension#Extension+beginStateTransaction"},{"name":"Extension.commitStateTransaction","text":["Extension","commitStateTransaction","Extension.commitStateTransaction"],"url":"extension/extension-extension#Extension+commitStateTransaction"},{"name":"Extension.cancelStateTransaction","text":["Extension","cancelStateTransaction","Extension.cancelStateTransaction"],"url":"extension/extension-extension#Extension+cancelStateTransaction"},{"name":"Extension.setPartialState","text":["Extension","setPartialState","Extension.setPartialState"],"url":"extension/extension-extension#Extension+setPartialState"},{"name":"Extension.getPartialState","text":["Extension","getPartialState","Extension.getPartialState"],"url":"extension/extension-extension#Extension+getPartialState"},{"name":"Extension.clearPartialState","text":["Extension","clearPartialState","Extension.clearPartialState"],"url":"extension/extension-extension#Extension+clearPartialState"},{"name":"Extension.setPageStateManager","text":["Extension","setPageStateManager","Extension.setPageStateManager"],"url":"extension/extension-extension#Extension+setPageStateManager"},{"name":"Extension.switchToStateManager","text":["Extension","switchToStateManager","Extension.switchToStateManager"],"url":"extension/extension-extension#Extension+switchToStateManager"},{"name":"Extension.switchToPartialState","text":["Extension","switchToPartialState","Extension.switchToPartialState"],"url":"extension/extension-extension#Extension+switchToPartialState"},{"name":"Extension.setRouteParams","text":["Extension","setRouteParams","Extension.setRouteParams"],"url":"extension/extension-extension#Extension+setRouteParams"},{"name":"Extension.getRouteParams","text":["Extension","getRouteParams","Extension.getRouteParams"],"url":"extension/extension-extension#Extension+getRouteParams"},{"name":"Extension.getAllowedStateKeys","text":["Extension","getAllowedStateKeys","Extension.getAllowedStateKeys"],"url":"extension/extension-extension#Extension+getAllowedStateKeys"},{"name":"HttpAgent","text":["http","HttpAgent"],"url":"http/http-http-agent#HttpAgent"},{"name":"HttpAgent.get","text":["HttpAgent","get","HttpAgent.get"],"url":"http/http-http-agent#HttpAgent+get"},{"name":"HttpAgent.post","text":["HttpAgent","post","HttpAgent.post"],"url":"http/http-http-agent#HttpAgent+post"},{"name":"HttpAgent.put","text":["HttpAgent","put","HttpAgent.put"],"url":"http/http-http-agent#HttpAgent+put"},{"name":"HttpAgent.patch","text":["HttpAgent","patch","HttpAgent.patch"],"url":"http/http-http-agent#HttpAgent+patch"},{"name":"HttpAgent.delete","text":["HttpAgent","delete","HttpAgent.delete"],"url":"http/http-http-agent#HttpAgent+delete"},{"name":"HttpAgent.getCacheKey","text":["HttpAgent","getCacheKey","HttpAgent.getCacheKey"],"url":"http/http-http-agent#HttpAgent+getCacheKey"},{"name":"HttpAgent.setDefaultHeader","text":["HttpAgent","setDefaultHeader","HttpAgent.setDefaultHeader"],"url":"http/http-http-agent#HttpAgent+setDefaultHeader"},{"name":"HttpAgent.clearDefaultHeaders","text":["HttpAgent","clearDefaultHeaders","HttpAgent.clearDefaultHeaders"],"url":"http/http-http-agent#HttpAgent+clearDefaultHeaders"},{"name":"HttpAgent~RequestOptions","text":["HttpAgent","RequestOptions","HttpAgent~RequestOptions"],"url":"http/http-http-agent#HttpAgent~RequestOptions"},{"name":"HttpAgent~Response","text":["HttpAgent","Response","HttpAgent~Response"],"url":"http/http-http-agent#HttpAgent~Response"},{"name":"HttpAgentImpl()","text":["HttpAgentImpl","HttpAgentImpl()"],"url":"/http-http-agent-impl#new_HttpAgentImpl_new"},{"name":"HttpAgentImpl","text":["http","HttpAgentImpl"],"url":"http/http-http-agent-impl#HttpAgentImpl"},{"name":"HttpAgentImpl._proxy","text":["HttpAgentImpl","_proxy","HttpAgentImpl._proxy"],"url":"http/http-http-agent-impl#HttpAgentImpl+_proxy"},{"name":"HttpAgentImpl._cache","text":["HttpAgentImpl","_cache","HttpAgentImpl._cache"],"url":"http/http-http-agent-impl#HttpAgentImpl+_cache"},{"name":"HttpAgentImpl._cookie","text":["HttpAgentImpl","_cookie","HttpAgentImpl._cookie"],"url":"http/http-http-agent-impl#HttpAgentImpl+_cookie"},{"name":"HttpAgentImpl._cacheOptions","text":["HttpAgentImpl","_cacheOptions","HttpAgentImpl._cacheOptions"],"url":"http/http-http-agent-impl#HttpAgentImpl+_cacheOptions"},{"name":"HttpAgentImpl._defaultRequestOptions","text":["HttpAgentImpl","_defaultRequestOptions","HttpAgentImpl._defaultRequestOptions"],"url":"http/http-http-agent-impl#HttpAgentImpl+_defaultRequestOptions"},{"name":"HttpAgentImpl._Helper","text":["HttpAgentImpl","_Helper","HttpAgentImpl._Helper"],"url":"http/http-http-agent-impl#HttpAgentImpl+_Helper"},{"name":"HttpAgentImpl._internalCacheOfPromises","text":["HttpAgentImpl","_internalCacheOfPromises","HttpAgentImpl._internalCacheOfPromises"],"url":"http/http-http-agent-impl#HttpAgentImpl+_internalCacheOfPromises"},{"name":"HttpAgentImpl.get","text":["HttpAgentImpl","get","HttpAgentImpl.get"],"url":"http/http-http-agent-impl#HttpAgentImpl+get"},{"name":"HttpAgentImpl.post","text":["HttpAgentImpl","post","HttpAgentImpl.post"],"url":"http/http-http-agent-impl#HttpAgentImpl+post"},{"name":"HttpAgentImpl.put","text":["HttpAgentImpl","put","HttpAgentImpl.put"],"url":"http/http-http-agent-impl#HttpAgentImpl+put"},{"name":"HttpAgentImpl.patch","text":["HttpAgentImpl","patch","HttpAgentImpl.patch"],"url":"http/http-http-agent-impl#HttpAgentImpl+patch"},{"name":"HttpAgentImpl.delete","text":["HttpAgentImpl","delete","HttpAgentImpl.delete"],"url":"http/http-http-agent-impl#HttpAgentImpl+delete"},{"name":"HttpAgentImpl.getCacheKey","text":["HttpAgentImpl","getCacheKey","HttpAgentImpl.getCacheKey"],"url":"http/http-http-agent-impl#HttpAgentImpl+getCacheKey"},{"name":"HttpAgentImpl.setDefaultHeader","text":["HttpAgentImpl","setDefaultHeader","HttpAgentImpl.setDefaultHeader"],"url":"http/http-http-agent-impl#HttpAgentImpl+setDefaultHeader"},{"name":"HttpAgentImpl.clearDefaultHeaders","text":["HttpAgentImpl","clearDefaultHeaders","HttpAgentImpl.clearDefaultHeaders"],"url":"http/http-http-agent-impl#HttpAgentImpl+clearDefaultHeaders"},{"name":"HttpAgentImpl._clone","text":["HttpAgentImpl","_clone","HttpAgentImpl._clone"],"url":"http/http-http-agent-impl#HttpAgentImpl+_clone"},{"name":"HttpAgentImpl._requestWithCheckCache","text":["HttpAgentImpl","_requestWithCheckCache","HttpAgentImpl._requestWithCheckCache"],"url":"http/http-http-agent-impl#HttpAgentImpl+_requestWithCheckCache"},{"name":"HttpAgentImpl._getCachedData","text":["HttpAgentImpl","_getCachedData","HttpAgentImpl._getCachedData"],"url":"http/http-http-agent-impl#HttpAgentImpl+_getCachedData"},{"name":"HttpAgentImpl._request","text":["HttpAgentImpl","_request","HttpAgentImpl._request"],"url":"http/http-http-agent-impl#HttpAgentImpl+_request"},{"name":"HttpAgentImpl._proxyResolved","text":["HttpAgentImpl","_proxyResolved","HttpAgentImpl._proxyResolved"],"url":"http/http-http-agent-impl#HttpAgentImpl+_proxyResolved"},{"name":"HttpAgentImpl._proxyRejected","text":["HttpAgentImpl","_proxyRejected","HttpAgentImpl._proxyRejected"],"url":"http/http-http-agent-impl#HttpAgentImpl+_proxyRejected"},{"name":"HttpAgentImpl._prepareOptions","text":["HttpAgentImpl","_prepareOptions","HttpAgentImpl._prepareOptions"],"url":"http/http-http-agent-impl#HttpAgentImpl+_prepareOptions"},{"name":"HttpAgentImpl._getCacheKeySuffix","text":["HttpAgentImpl","_getCacheKeySuffix","HttpAgentImpl._getCacheKeySuffix"],"url":"http/http-http-agent-impl#HttpAgentImpl+_getCacheKeySuffix"},{"name":"HttpAgentImpl._setCookiesFromResponse","text":["HttpAgentImpl","_setCookiesFromResponse","HttpAgentImpl._setCookiesFromResponse"],"url":"http/http-http-agent-impl#HttpAgentImpl+_setCookiesFromResponse"},{"name":"HttpAgentImpl._saveAgentResponseToCache","text":["HttpAgentImpl","_saveAgentResponseToCache","HttpAgentImpl._saveAgentResponseToCache"],"url":"http/http-http-agent-impl#HttpAgentImpl+_saveAgentResponseToCache"},{"name":"HttpProxy()","text":["HttpProxy","HttpProxy()"],"url":"/http-http-proxy#new_HttpProxy_new"},{"name":"HttpProxy","text":["http","HttpProxy"],"url":"http/http-http-proxy#HttpProxy"},{"name":"HttpProxy._transformer","text":["HttpProxy","_transformer","HttpProxy._transformer"],"url":"http/http-http-proxy#HttpProxy+_transformer"},{"name":"HttpProxy._window","text":["HttpProxy","_window","HttpProxy._window"],"url":"http/http-http-proxy#HttpProxy+_window"},{"name":"HttpProxy._defaultHeaders","text":["HttpProxy","_defaultHeaders","HttpProxy._defaultHeaders"],"url":"http/http-http-proxy#HttpProxy+_defaultHeaders"},{"name":"HttpProxy.request","text":["HttpProxy","request","HttpProxy.request"],"url":"http/http-http-proxy#HttpProxy+request"},{"name":"HttpProxy.setDefaultHeader","text":["HttpProxy","setDefaultHeader","HttpProxy.setDefaultHeader"],"url":"http/http-http-proxy#HttpProxy+setDefaultHeader"},{"name":"HttpProxy.clearDefaultHeaders","text":["HttpProxy","clearDefaultHeaders","HttpProxy.clearDefaultHeaders"],"url":"http/http-http-proxy#HttpProxy+clearDefaultHeaders"},{"name":"HttpProxy.getErrorParams","text":["HttpProxy","getErrorParams","HttpProxy.getErrorParams"],"url":"http/http-http-proxy#HttpProxy+getErrorParams"},{"name":"HttpProxy.haveToSetCookiesManually","text":["HttpProxy","haveToSetCookiesManually","HttpProxy.haveToSetCookiesManually"],"url":"http/http-http-proxy#HttpProxy+haveToSetCookiesManually"},{"name":"HttpProxy._processResponse","text":["HttpProxy","_processResponse","HttpProxy._processResponse"],"url":"http/http-http-proxy#HttpProxy+_processResponse"},{"name":"HttpProxy._headersToPlainObject","text":["HttpProxy","_headersToPlainObject","HttpProxy._headersToPlainObject"],"url":"http/http-http-proxy#HttpProxy+_headersToPlainObject"},{"name":"HttpProxy._processError","text":["HttpProxy","_processError","HttpProxy._processError"],"url":"http/http-http-proxy#HttpProxy+_processError"},{"name":"HttpProxy._createError","text":["HttpProxy","_createError","HttpProxy._createError"],"url":"http/http-http-proxy#HttpProxy+_createError"},{"name":"HttpProxy._composeRequestParams","text":["HttpProxy","_composeRequestParams","HttpProxy._composeRequestParams"],"url":"http/http-http-proxy#HttpProxy+_composeRequestParams"},{"name":"HttpProxy._composeRequestInit","text":["HttpProxy","_composeRequestInit","HttpProxy._composeRequestInit"],"url":"http/http-http-proxy#HttpProxy+_composeRequestInit"},{"name":"HttpProxy._getContentType","text":["HttpProxy","_getContentType","HttpProxy._getContentType"],"url":"http/http-http-proxy#HttpProxy+_getContentType"},{"name":"HttpProxy._composeRequestUrl","text":["HttpProxy","_composeRequestUrl","HttpProxy._composeRequestUrl"],"url":"http/http-http-proxy#HttpProxy+_composeRequestUrl"},{"name":"HttpProxy._shouldRequestHaveBody","text":["HttpProxy","_shouldRequestHaveBody","HttpProxy._shouldRequestHaveBody"],"url":"http/http-http-proxy#HttpProxy+_shouldRequestHaveBody"},{"name":"HttpProxy._transformRequestBody","text":["HttpProxy","_transformRequestBody","HttpProxy._transformRequestBody"],"url":"http/http-http-proxy#HttpProxy+_transformRequestBody"},{"name":"HttpProxy._convertObjectToQueryString","text":["HttpProxy","_convertObjectToQueryString","HttpProxy._convertObjectToQueryString"],"url":"http/http-http-proxy#HttpProxy+_convertObjectToQueryString"},{"name":"HttpProxy._convertObjectToFormData","text":["HttpProxy","_convertObjectToFormData","HttpProxy._convertObjectToFormData"],"url":"http/http-http-proxy#HttpProxy+_convertObjectToFormData"},{"name":"HttpProxy~RequestParams","text":["HttpProxy","RequestParams","HttpProxy~RequestParams"],"url":"http/http-http-proxy#HttpProxy~RequestParams"},{"name":"HttpProxy~ErrorParams","text":["HttpProxy","ErrorParams","HttpProxy~ErrorParams"],"url":"http/http-http-proxy#HttpProxy~ErrorParams"},{"name":"OK","text":["http","OK"],"url":"http/http-status-code#OK"},{"name":"NO_CONTENT","text":["NO_CONTENT"],"url":"http/http-status-code#NO_CONTENT"},{"name":"BAD_REQUEST","text":["BAD_REQUEST"],"url":"http/http-status-code#BAD_REQUEST"},{"name":"UNAUTHORIZED","text":["UNAUTHORIZED"],"url":"http/http-status-code#UNAUTHORIZED"},{"name":"FORBIDDEN","text":["FORBIDDEN"],"url":"http/http-status-code#FORBIDDEN"},{"name":"NOT_FOUND","text":["NOT_FOUND"],"url":"http/http-status-code#NOT_FOUND"},{"name":"TIMEOUT","text":["TIMEOUT"],"url":"http/http-status-code#TIMEOUT"},{"name":"SERVER_ERROR","text":["SERVER_ERROR"],"url":"http/http-status-code#SERVER_ERROR"},{"name":"StatusCode","text":["StatusCode"],"url":"http/http-status-code#StatusCode"},{"name":"UrlTransformer()","text":["UrlTransformer","UrlTransformer()"],"url":"/http-url-transformer#new_UrlTransformer_new"},{"name":"UrlTransformer","text":["http","UrlTransformer"],"url":"http/http-url-transformer#UrlTransformer"},{"name":"UrlTransformer._rules","text":["UrlTransformer","_rules","UrlTransformer._rules"],"url":"http/http-url-transformer#UrlTransformer+_rules"},{"name":"UrlTransformer.addRule","text":["UrlTransformer","addRule","UrlTransformer.addRule"],"url":"http/http-url-transformer#UrlTransformer+addRule"},{"name":"UrlTransformer.clear","text":["UrlTransformer","clear","UrlTransformer.clear"],"url":"http/http-url-transformer#UrlTransformer+clear"},{"name":"UrlTransformer.transform","text":["UrlTransformer","transform","UrlTransformer.transform"],"url":"http/http-url-transformer#UrlTransformer+transform"},{"name":"MetaManager","text":["meta","MetaManager"],"url":"meta/meta-meta-manager#MetaManager"},{"name":"MetaManager.setTitle","text":["MetaManager","setTitle","MetaManager.setTitle"],"url":"meta/meta-meta-manager#MetaManager+setTitle"},{"name":"MetaManager.getTitle","text":["MetaManager","getTitle","MetaManager.getTitle"],"url":"meta/meta-meta-manager#MetaManager+getTitle"},{"name":"MetaManager.setMetaName","text":["MetaManager","setMetaName","MetaManager.setMetaName"],"url":"meta/meta-meta-manager#MetaManager+setMetaName"},{"name":"MetaManager.getMetaName","text":["MetaManager","getMetaName","MetaManager.getMetaName"],"url":"meta/meta-meta-manager#MetaManager+getMetaName"},{"name":"MetaManager.getMetaNames","text":["MetaManager","getMetaNames","MetaManager.getMetaNames"],"url":"meta/meta-meta-manager#MetaManager+getMetaNames"},{"name":"MetaManager.setMetaProperty","text":["MetaManager","setMetaProperty","MetaManager.setMetaProperty"],"url":"meta/meta-meta-manager#MetaManager+setMetaProperty"},{"name":"MetaManager.getMetaProperty","text":["MetaManager","getMetaProperty","MetaManager.getMetaProperty"],"url":"meta/meta-meta-manager#MetaManager+getMetaProperty"},{"name":"MetaManager.getMetaProperties","text":["MetaManager","getMetaProperties","MetaManager.getMetaProperties"],"url":"meta/meta-meta-manager#MetaManager+getMetaProperties"},{"name":"MetaManager.setLink","text":["MetaManager","setLink","MetaManager.setLink"],"url":"meta/meta-meta-manager#MetaManager+setLink"},{"name":"MetaManager.getLink","text":["MetaManager","getLink","MetaManager.getLink"],"url":"meta/meta-meta-manager#MetaManager+getLink"},{"name":"MetaManager.getLinks","text":["MetaManager","getLinks","MetaManager.getLinks"],"url":"meta/meta-meta-manager#MetaManager+getLinks"},{"name":"MetaManagerImpl()","text":["MetaManagerImpl","MetaManagerImpl()"],"url":"/meta-meta-manager-impl#new_MetaManagerImpl_new"},{"name":"MetaManagerImpl","text":["meta","MetaManagerImpl"],"url":"meta/meta-meta-manager-impl#MetaManagerImpl"},{"name":"MetaManagerImpl._title","text":["MetaManagerImpl","_title","MetaManagerImpl._title"],"url":"meta/meta-meta-manager-impl#MetaManagerImpl+_title"},{"name":"MetaManagerImpl._metaName","text":["MetaManagerImpl","_metaName","MetaManagerImpl._metaName"],"url":"meta/meta-meta-manager-impl#MetaManagerImpl+_metaName"},{"name":"MetaManagerImpl._metaProperty","text":["MetaManagerImpl","_metaProperty","MetaManagerImpl._metaProperty"],"url":"meta/meta-meta-manager-impl#MetaManagerImpl+_metaProperty"},{"name":"MetaManagerImpl._link","text":["MetaManagerImpl","_link","MetaManagerImpl._link"],"url":"meta/meta-meta-manager-impl#MetaManagerImpl+_link"},{"name":"MetaManagerImpl.setTitle","text":["MetaManagerImpl","setTitle","MetaManagerImpl.setTitle"],"url":"meta/meta-meta-manager-impl#MetaManagerImpl+setTitle"},{"name":"MetaManagerImpl.getTitle","text":["MetaManagerImpl","getTitle","MetaManagerImpl.getTitle"],"url":"meta/meta-meta-manager-impl#MetaManagerImpl+getTitle"},{"name":"MetaManagerImpl.setMetaName","text":["MetaManagerImpl","setMetaName","MetaManagerImpl.setMetaName"],"url":"meta/meta-meta-manager-impl#MetaManagerImpl+setMetaName"},{"name":"MetaManagerImpl.getMetaName","text":["MetaManagerImpl","getMetaName","MetaManagerImpl.getMetaName"],"url":"meta/meta-meta-manager-impl#MetaManagerImpl+getMetaName"},{"name":"MetaManagerImpl.getMetaNames","text":["MetaManagerImpl","getMetaNames","MetaManagerImpl.getMetaNames"],"url":"meta/meta-meta-manager-impl#MetaManagerImpl+getMetaNames"},{"name":"MetaManagerImpl.setMetaProperty","text":["MetaManagerImpl","setMetaProperty","MetaManagerImpl.setMetaProperty"],"url":"meta/meta-meta-manager-impl#MetaManagerImpl+setMetaProperty"},{"name":"MetaManagerImpl.getMetaProperty","text":["MetaManagerImpl","getMetaProperty","MetaManagerImpl.getMetaProperty"],"url":"meta/meta-meta-manager-impl#MetaManagerImpl+getMetaProperty"},{"name":"MetaManagerImpl.getMetaProperties","text":["MetaManagerImpl","getMetaProperties","MetaManagerImpl.getMetaProperties"],"url":"meta/meta-meta-manager-impl#MetaManagerImpl+getMetaProperties"},{"name":"MetaManagerImpl.setLink","text":["MetaManagerImpl","setLink","MetaManagerImpl.setLink"],"url":"meta/meta-meta-manager-impl#MetaManagerImpl+setLink"},{"name":"MetaManagerImpl.getLink","text":["MetaManagerImpl","getLink","MetaManagerImpl.getLink"],"url":"meta/meta-meta-manager-impl#MetaManagerImpl+getLink"},{"name":"MetaManagerImpl.getLinks","text":["MetaManagerImpl","getLinks","MetaManagerImpl.getLinks"],"url":"meta/meta-meta-manager-impl#MetaManagerImpl+getLinks"},{"name":"AbstractComponent()","text":["AbstractComponent","AbstractComponent()"],"url":"/page-abstract-component#new_AbstractComponent_new"},{"name":"AbstractComponent","text":["page","AbstractComponent"],"url":"page/page-abstract-component#AbstractComponent"},{"name":"AbstractComponent._utils","text":["AbstractComponent","_utils","AbstractComponent._utils"],"url":"page/page-abstract-component#AbstractComponent+_utils"},{"name":"AbstractComponent.utils","text":["AbstractComponent","utils","AbstractComponent.utils"],"url":"page/page-abstract-component#AbstractComponent+utils"},{"name":"AbstractComponent.localize","text":["AbstractComponent","localize","AbstractComponent.localize"],"url":"page/page-abstract-component#AbstractComponent+localize"},{"name":"AbstractComponent.link","text":["AbstractComponent","link","AbstractComponent.link"],"url":"page/page-abstract-component#AbstractComponent+link"},{"name":"AbstractComponent.cssClasses","text":["AbstractComponent","cssClasses","AbstractComponent.cssClasses"],"url":"page/page-abstract-component#AbstractComponent+cssClasses"},{"name":"AbstractComponent.fire","text":["AbstractComponent","fire","AbstractComponent.fire"],"url":"page/page-abstract-component#AbstractComponent+fire"},{"name":"AbstractComponent.listen","text":["AbstractComponent","listen","AbstractComponent.listen"],"url":"page/page-abstract-component#AbstractComponent+listen"},{"name":"AbstractComponent.unlisten","text":["AbstractComponent","unlisten","AbstractComponent.unlisten"],"url":"page/page-abstract-component#AbstractComponent+unlisten"},{"name":"AbstractDocumentView","text":["page","AbstractDocumentView"],"url":"page/page-abstract-document-view#AbstractDocumentView"},{"name":"AbstractDocumentView.masterElementId","text":["AbstractDocumentView","masterElementId","AbstractDocumentView.masterElementId"],"url":"page/page-abstract-document-view#AbstractDocumentView.masterElementId"},{"name":"AbstractDocumentView.masterElementId","text":["AbstractDocumentView","masterElementId","AbstractDocumentView.masterElementId"],"url":"page/page-abstract-document-view#AbstractDocumentView.masterElementId"},{"name":"AbstractPureComponent()","text":["AbstractPureComponent","AbstractPureComponent()"],"url":"/page-abstract-pure-component#new_AbstractPureComponent_new"},{"name":"AbstractPureComponent","text":["page","AbstractPureComponent"],"url":"page/page-abstract-pure-component#AbstractPureComponent"},{"name":"AbstractPureComponent._utils","text":["AbstractPureComponent","_utils","AbstractPureComponent._utils"],"url":"page/page-abstract-pure-component#AbstractPureComponent+_utils"},{"name":"AbstractPureComponent.utils","text":["AbstractPureComponent","utils","AbstractPureComponent.utils"],"url":"page/page-abstract-pure-component#AbstractPureComponent+utils"},{"name":"AbstractPureComponent.localize","text":["AbstractPureComponent","localize","AbstractPureComponent.localize"],"url":"page/page-abstract-pure-component#AbstractPureComponent+localize"},{"name":"AbstractPureComponent.link","text":["AbstractPureComponent","link","AbstractPureComponent.link"],"url":"page/page-abstract-pure-component#AbstractPureComponent+link"},{"name":"AbstractPureComponent.cssClasses","text":["AbstractPureComponent","cssClasses","AbstractPureComponent.cssClasses"],"url":"page/page-abstract-pure-component#AbstractPureComponent+cssClasses"},{"name":"AbstractPureComponent.fire","text":["AbstractPureComponent","fire","AbstractPureComponent.fire"],"url":"page/page-abstract-pure-component#AbstractPureComponent+fire"},{"name":"AbstractPureComponent.listen","text":["AbstractPureComponent","listen","AbstractPureComponent.listen"],"url":"page/page-abstract-pure-component#AbstractPureComponent+listen"},{"name":"AbstractPureComponent.unlisten","text":["AbstractPureComponent","unlisten","AbstractPureComponent.unlisten"],"url":"page/page-abstract-pure-component#AbstractPureComponent+unlisten"},{"name":"PageFactory()","text":["PageFactory","PageFactory()"],"url":"/page-page-factory#new_PageFactory_new"},{"name":"PageFactory","text":["page","PageFactory"],"url":"page/page-page-factory#PageFactory"},{"name":"PageFactory._oc","text":["PageFactory","_oc","PageFactory._oc"],"url":"page/page-page-factory#PageFactory+_oc"},{"name":"PageFactory.createController","text":["PageFactory","createController","PageFactory.createController"],"url":"page/page-page-factory#PageFactory+createController"},{"name":"PageFactory.createView","text":["PageFactory","createView","PageFactory.createView"],"url":"page/page-page-factory#PageFactory+createView"},{"name":"PageFactory.decorateController","text":["PageFactory","decorateController","PageFactory.decorateController"],"url":"page/page-page-factory#PageFactory+decorateController"},{"name":"PageFactory.decoratePageStateManager","text":["PageFactory","decoratePageStateManager","PageFactory.decoratePageStateManager"],"url":"page/page-page-factory#PageFactory+decoratePageStateManager"},{"name":"getUtils","text":["page","getUtils"],"url":"page/pagecomponent-helpers#getUtils"},{"name":"localize","text":["localize"],"url":"page/pagecomponent-helpers#localize"},{"name":"link","text":["link"],"url":"page/pagecomponent-helpers#link"},{"name":"cssClasses","text":["cssClasses"],"url":"page/pagecomponent-helpers#cssClasses"},{"name":"defaultCssClasses","text":["defaultCssClasses"],"url":"page/pagecomponent-helpers#defaultCssClasses"},{"name":"fire","text":["fire"],"url":"page/pagecomponent-helpers#fire"},{"name":"listen","text":["listen"],"url":"page/pagecomponent-helpers#listen"},{"name":"unlisten","text":["unlisten"],"url":"page/pagecomponent-helpers#unlisten"},{"name":"AbstractRoute()","text":["AbstractRoute","AbstractRoute()"],"url":"/router-abstract-route#new_AbstractRoute_new"},{"name":"AbstractRoute","text":["router","AbstractRoute"],"url":"router/router-abstract-route#AbstractRoute"},{"name":"LOOSE_SLASHES_REGEXP","text":["LOOSE_SLASHES_REGEXP"],"url":"router/router-abstract-route#LOOSE_SLASHES_REGEXP"},{"name":"AbstractRoute._name","text":["AbstractRoute","_name","AbstractRoute._name"],"url":"router/router-abstract-route#AbstractRoute+_name"},{"name":"AbstractRoute._pathExpression","text":["AbstractRoute","_pathExpression","AbstractRoute._pathExpression"],"url":"router/router-abstract-route#AbstractRoute+_pathExpression"},{"name":"AbstractRoute._controller","text":["AbstractRoute","_controller","AbstractRoute._controller"],"url":"router/router-abstract-route#AbstractRoute+_controller"},{"name":"AbstractRoute._view","text":["AbstractRoute","_view","AbstractRoute._view"],"url":"router/router-abstract-route#AbstractRoute+_view"},{"name":"AbstractRoute._options","text":["AbstractRoute","_options","AbstractRoute._options"],"url":"router/router-abstract-route#AbstractRoute+_options"},{"name":"AbstractRoute.getName","text":["AbstractRoute","getName","AbstractRoute.getName"],"url":"router/router-abstract-route#AbstractRoute+getName"},{"name":"AbstractRoute.getController","text":["AbstractRoute","getController","AbstractRoute.getController"],"url":"router/router-abstract-route#AbstractRoute+getController"},{"name":"AbstractRoute.getView","text":["AbstractRoute","getView","AbstractRoute.getView"],"url":"router/router-abstract-route#AbstractRoute+getView"},{"name":"AbstractRoute.getOptions","text":["AbstractRoute","getOptions","AbstractRoute.getOptions"],"url":"router/router-abstract-route#AbstractRoute+getOptions"},{"name":"AbstractRoute.getPathExpression","text":["AbstractRoute","getPathExpression","AbstractRoute.getPathExpression"],"url":"router/router-abstract-route#AbstractRoute+getPathExpression"},{"name":"AbstractRoute.toPath","text":["AbstractRoute","toPath","AbstractRoute.toPath"],"url":"router/router-abstract-route#AbstractRoute+toPath"},{"name":"AbstractRoute.matches","text":["AbstractRoute","matches","AbstractRoute.matches"],"url":"router/router-abstract-route#AbstractRoute+matches"},{"name":"AbstractRoute.extractParameters","text":["AbstractRoute","extractParameters","AbstractRoute.extractParameters"],"url":"router/router-abstract-route#AbstractRoute+extractParameters"},{"name":"AbstractRoute.pairsToQuery","text":["AbstractRoute","pairsToQuery","AbstractRoute.pairsToQuery"],"url":"router/router-abstract-route#AbstractRoute.pairsToQuery"},{"name":"AbstractRoute.paramsToQuery","text":["AbstractRoute","paramsToQuery","AbstractRoute.paramsToQuery"],"url":"router/router-abstract-route#AbstractRoute.paramsToQuery"},{"name":"AbstractRoute.getQuery","text":["AbstractRoute","getQuery","AbstractRoute.getQuery"],"url":"router/router-abstract-route#AbstractRoute.getQuery"},{"name":"AbstractRoute.decodeURIParameter","text":["AbstractRoute","decodeURIParameter","AbstractRoute.decodeURIParameter"],"url":"router/router-abstract-route#AbstractRoute.decodeURIParameter"},{"name":"AbstractRoute.getTrimmedPath","text":["AbstractRoute","getTrimmedPath","AbstractRoute.getTrimmedPath"],"url":"router/router-abstract-route#AbstractRoute.getTrimmedPath"},{"name":"AbstractRouter()","text":["AbstractRouter","AbstractRouter()"],"url":"/router-abstract-router#new_AbstractRouter_new"},{"name":"AbstractRouter","text":["router","AbstractRouter"],"url":"router/router-abstract-router#AbstractRouter"},{"name":"AbstractRouter._pageManager","text":["AbstractRouter","_pageManager","AbstractRouter._pageManager"],"url":"router/router-abstract-router#AbstractRouter+_pageManager"},{"name":"AbstractRouter._factory","text":["AbstractRouter","_factory","AbstractRouter._factory"],"url":"router/router-abstract-router#AbstractRouter+_factory"},{"name":"AbstractRouter._dispatcher","text":["AbstractRouter","_dispatcher","AbstractRouter._dispatcher"],"url":"router/router-abstract-router#AbstractRouter+_dispatcher"},{"name":"AbstractRouter._protocol","text":["AbstractRouter","_protocol","AbstractRouter._protocol"],"url":"router/router-abstract-router#AbstractRouter+_protocol"},{"name":"AbstractRouter._host","text":["AbstractRouter","_host","AbstractRouter._host"],"url":"router/router-abstract-router#AbstractRouter+_host"},{"name":"AbstractRouter._root","text":["AbstractRouter","_root","AbstractRouter._root"],"url":"router/router-abstract-router#AbstractRouter+_root"},{"name":"AbstractRouter._languagePartPath","text":["AbstractRouter","_languagePartPath","AbstractRouter._languagePartPath"],"url":"router/router-abstract-router#AbstractRouter+_languagePartPath"},{"name":"AbstractRouter._routeHandlers","text":["AbstractRouter","_routeHandlers","AbstractRouter._routeHandlers"],"url":"router/router-abstract-router#AbstractRouter+_routeHandlers"},{"name":"AbstractRouter._currentMiddlewareId","text":["AbstractRouter","_currentMiddlewareId","AbstractRouter._currentMiddlewareId"],"url":"router/router-abstract-router#AbstractRouter+_currentMiddlewareId"},{"name":"AbstractRouter.init","text":["AbstractRouter","init","AbstractRouter.init"],"url":"router/router-abstract-router#AbstractRouter+init"},{"name":"AbstractRouter.add","text":["AbstractRouter","add","AbstractRouter.add"],"url":"router/router-abstract-router#AbstractRouter+add"},{"name":"AbstractRouter.use","text":["AbstractRouter","use","AbstractRouter.use"],"url":"router/router-abstract-router#AbstractRouter+use"},{"name":"AbstractRouter.remove","text":["AbstractRouter","remove","AbstractRouter.remove"],"url":"router/router-abstract-router#AbstractRouter+remove"},{"name":"AbstractRouter.getPath","text":["AbstractRouter","getPath","AbstractRouter.getPath"],"url":"router/router-abstract-router#AbstractRouter+getPath"},{"name":"AbstractRouter.getUrl","text":["AbstractRouter","getUrl","AbstractRouter.getUrl"],"url":"router/router-abstract-router#AbstractRouter+getUrl"},{"name":"AbstractRouter.getBaseUrl","text":["AbstractRouter","getBaseUrl","AbstractRouter.getBaseUrl"],"url":"router/router-abstract-router#AbstractRouter+getBaseUrl"},{"name":"AbstractRouter.getDomain","text":["AbstractRouter","getDomain","AbstractRouter.getDomain"],"url":"router/router-abstract-router#AbstractRouter+getDomain"},{"name":"AbstractRouter.getHost","text":["AbstractRouter","getHost","AbstractRouter.getHost"],"url":"router/router-abstract-router#AbstractRouter+getHost"},{"name":"AbstractRouter.getProtocol","text":["AbstractRouter","getProtocol","AbstractRouter.getProtocol"],"url":"router/router-abstract-router#AbstractRouter+getProtocol"},{"name":"AbstractRouter.getCurrentRouteInfo","text":["AbstractRouter","getCurrentRouteInfo","AbstractRouter.getCurrentRouteInfo"],"url":"router/router-abstract-router#AbstractRouter+getCurrentRouteInfo"},{"name":"AbstractRouter.listen","text":["AbstractRouter","listen","AbstractRouter.listen"],"url":"router/router-abstract-router#AbstractRouter+listen"},{"name":"AbstractRouter.unlisten","text":["AbstractRouter","unlisten","AbstractRouter.unlisten"],"url":"router/router-abstract-router#AbstractRouter+unlisten"},{"name":"AbstractRouter.redirect","text":["AbstractRouter","redirect","AbstractRouter.redirect"],"url":"router/router-abstract-router#AbstractRouter+redirect"},{"name":"AbstractRouter.link","text":["AbstractRouter","link","AbstractRouter.link"],"url":"router/router-abstract-router#AbstractRouter+link"},{"name":"AbstractRouter.route","text":["AbstractRouter","route","AbstractRouter.route"],"url":"router/router-abstract-router#AbstractRouter+route"},{"name":"AbstractRouter.handleError","text":["AbstractRouter","handleError","AbstractRouter.handleError"],"url":"router/router-abstract-router#AbstractRouter+handleError"},{"name":"AbstractRouter.handleNotFound","text":["AbstractRouter","handleNotFound","AbstractRouter.handleNotFound"],"url":"router/router-abstract-router#AbstractRouter+handleNotFound"},{"name":"AbstractRouter.isClientError","text":["AbstractRouter","isClientError","AbstractRouter.isClientError"],"url":"router/router-abstract-router#AbstractRouter+isClientError"},{"name":"AbstractRouter.isRedirection","text":["AbstractRouter","isRedirection","AbstractRouter.isRedirection"],"url":"router/router-abstract-router#AbstractRouter+isRedirection"},{"name":"AbstractRouter._extractRoutePath","text":["AbstractRouter","_extractRoutePath","AbstractRouter._extractRoutePath"],"url":"router/router-abstract-router#AbstractRouter+_extractRoutePath"},{"name":"AbstractRouter._handle","text":["AbstractRouter","_handle","AbstractRouter._handle"],"url":"router/router-abstract-router#AbstractRouter+_handle"},{"name":"AbstractRouter._getRouteHandlersByPath","text":["AbstractRouter","_getRouteHandlersByPath","AbstractRouter._getRouteHandlersByPath"],"url":"router/router-abstract-router#AbstractRouter+_getRouteHandlersByPath"},{"name":"AbstractRouter._getMiddlewaresForRoute","text":["AbstractRouter","_getMiddlewaresForRoute","AbstractRouter._getMiddlewaresForRoute"],"url":"router/router-abstract-router#AbstractRouter+_getMiddlewaresForRoute"},{"name":"AbstractRouter._getCurrentlyRoutedPath","text":["AbstractRouter","_getCurrentlyRoutedPath","AbstractRouter._getCurrentlyRoutedPath"],"url":"router/router-abstract-router#AbstractRouter+_getCurrentlyRoutedPath"},{"name":"AbstractRouter._runMiddlewares","text":["AbstractRouter","_runMiddlewares","AbstractRouter._runMiddlewares"],"url":"router/router-abstract-router#AbstractRouter+_runMiddlewares"},{"name":"AbstractRouter._addParamsFromOriginalRoute","text":["AbstractRouter","_addParamsFromOriginalRoute","AbstractRouter._addParamsFromOriginalRoute"],"url":"router/router-abstract-router#AbstractRouter+_addParamsFromOriginalRoute"},{"name":"ActionTypes","text":["router","ActionTypes"],"url":"router/router-action-types#ActionTypes"},{"name":"REDIRECT","text":["REDIRECT"],"url":"router/router-action-types#REDIRECT"},{"name":"CLICK","text":["CLICK"],"url":"router/router-action-types#CLICK"},{"name":"POP_STATE","text":["POP_STATE"],"url":"router/router-action-types#POP_STATE"},{"name":"ERROR","text":["ERROR"],"url":"router/router-action-types#ERROR"},{"name":"ClientRouter()","text":["ClientRouter","ClientRouter()"],"url":"/router-client-router#new_ClientRouter_new"},{"name":"ClientRouter","text":["router","ClientRouter"],"url":"router/router-client-router#ClientRouter"},{"name":"Events","text":["Events"],"url":"router/router-client-router#Events"},{"name":"CLICK","text":["CLICK"],"url":"router/router-client-router#CLICK"},{"name":"POP_STATE","text":["POP_STATE"],"url":"router/router-client-router#POP_STATE"},{"name":"MOUSE_LEFT_BUTTON","text":["MOUSE_LEFT_BUTTON"],"url":"router/router-client-router#MOUSE_LEFT_BUTTON"},{"name":"ClientRouter._window","text":["ClientRouter","_window","ClientRouter._window"],"url":"router/router-client-router#ClientRouter+_window"},{"name":"ClientRouter._boundedHandleClick","text":["ClientRouter","_boundedHandleClick","ClientRouter._boundedHandleClick"],"url":"router/router-client-router#ClientRouter+_boundedHandleClick"},{"name":"ClientRouter._boundedHandlePopState","text":["ClientRouter","_boundedHandlePopState","ClientRouter._boundedHandlePopState"],"url":"router/router-client-router#ClientRouter+_boundedHandlePopState"},{"name":"ClientRouter.init","text":["ClientRouter","init","ClientRouter.init"],"url":"router/router-client-router#ClientRouter+init"},{"name":"ClientRouter.getUrl","text":["ClientRouter","getUrl","ClientRouter.getUrl"],"url":"router/router-client-router#ClientRouter+getUrl"},{"name":"ClientRouter.getPath","text":["ClientRouter","getPath","ClientRouter.getPath"],"url":"router/router-client-router#ClientRouter+getPath"},{"name":"ClientRouter.listen","text":["ClientRouter","listen","ClientRouter.listen"],"url":"router/router-client-router#ClientRouter+listen"},{"name":"ClientRouter.unlisten","text":["ClientRouter","unlisten","ClientRouter.unlisten"],"url":"router/router-client-router#ClientRouter+unlisten"},{"name":"ClientRouter.redirect","text":["ClientRouter","redirect","ClientRouter.redirect"],"url":"router/router-client-router#ClientRouter+redirect"},{"name":"ClientRouter.route","text":["ClientRouter","route","ClientRouter.route"],"url":"router/router-client-router#ClientRouter+route"},{"name":"ClientRouter.handleError","text":["ClientRouter","handleError","ClientRouter.handleError"],"url":"router/router-client-router#ClientRouter+handleError"},{"name":"ClientRouter.handleNotFound","text":["ClientRouter","handleNotFound","ClientRouter.handleNotFound"],"url":"router/router-client-router#ClientRouter+handleNotFound"},{"name":"ClientRouter._handleFatalError","text":["ClientRouter","_handleFatalError","ClientRouter._handleFatalError"],"url":"router/router-client-router#ClientRouter+_handleFatalError"},{"name":"ClientRouter._handlePopState","text":["ClientRouter","_handlePopState","ClientRouter._handlePopState"],"url":"router/router-client-router#ClientRouter+_handlePopState"},{"name":"ClientRouter._handleClick","text":["ClientRouter","_handleClick","ClientRouter._handleClick"],"url":"router/router-client-router#ClientRouter+_handleClick"},{"name":"ClientRouter._getAnchorElement","text":["ClientRouter","_getAnchorElement","ClientRouter._getAnchorElement"],"url":"router/router-client-router#ClientRouter+_getAnchorElement"},{"name":"ClientRouter._isHashLink","text":["ClientRouter","_isHashLink","ClientRouter._isHashLink"],"url":"router/router-client-router#ClientRouter+_isHashLink"},{"name":"ClientRouter._isSameDomain","text":["ClientRouter","_isSameDomain","ClientRouter._isSameDomain"],"url":"router/router-client-router#ClientRouter+_isSameDomain"},{"name":"DynamicRoute()","text":["DynamicRoute","DynamicRoute()"],"url":"/router-dynamic-route#new_DynamicRoute_new"},{"name":"DynamicRoute","text":["router","DynamicRoute","AbstractRoute"],"url":"router/router-dynamic-route#DynamicRoute"},{"name":"DynamicRoute._matcher","text":["DynamicRoute","_matcher","DynamicRoute._matcher"],"url":"router/router-dynamic-route#DynamicRoute+_matcher"},{"name":"DynamicRoute._toPath","text":["DynamicRoute","_toPath","DynamicRoute._toPath"],"url":"router/router-dynamic-route#DynamicRoute+_toPath"},{"name":"DynamicRoute._extractParameters","text":["DynamicRoute","_extractParameters","DynamicRoute._extractParameters"],"url":"router/router-dynamic-route#DynamicRoute+_extractParameters"},{"name":"DynamicRoute.toPath","text":["DynamicRoute","toPath","DynamicRoute.toPath"],"url":"router/router-dynamic-route#DynamicRoute+toPath"},{"name":"DynamicRoute.matches","text":["DynamicRoute","matches","DynamicRoute.matches"],"url":"router/router-dynamic-route#DynamicRoute+matches"},{"name":"DynamicRoute.extractParameters","text":["DynamicRoute","extractParameters","DynamicRoute.extractParameters"],"url":"router/router-dynamic-route#DynamicRoute+extractParameters"},{"name":"Route~PathExpression","text":["Route","PathExpression","Route~PathExpression"],"url":"router/router-dynamic-route#Route~PathExpression"},{"name":"Events","text":["router","Events"],"url":"router/router-events#Events"},{"name":"BEFORE_HANDLE_ROUTE","text":["BEFORE_HANDLE_ROUTE"],"url":"router/router-events#BEFORE_HANDLE_ROUTE"},{"name":"AFTER_HANDLE_ROUTE","text":["AFTER_HANDLE_ROUTE"],"url":"router/router-events#AFTER_HANDLE_ROUTE"},{"name":"Request()","text":["Request","Request()"],"url":"/router-request#new_Request_new"},{"name":"Request","text":["router","Request"],"url":"router/router-request#Request"},{"name":"Request._request","text":["Request","_request","Request._request"],"url":"router/router-request#Request+_request"},{"name":"Request.init","text":["Request","init","Request.init"],"url":"router/router-request#Request+init"},{"name":"Request.getPath","text":["Request","getPath","Request.getPath"],"url":"router/router-request#Request+getPath"},{"name":"Request.getCookieHeader","text":["Request","getCookieHeader","Request.getCookieHeader"],"url":"router/router-request#Request+getCookieHeader"},{"name":"Request.getFile","text":["Request","getFile","Request.getFile"],"url":"router/router-request#Request+getFile"},{"name":"Request.getFiles","text":["Request","getFiles","Request.getFiles"],"url":"router/router-request#Request+getFiles"},{"name":"Request.getBody","text":["Request","getBody","Request.getBody"],"url":"router/router-request#Request+getBody"},{"name":"Request.getHeader","text":["Request","getHeader","Request.getHeader"],"url":"router/router-request#Request+getHeader"},{"name":"Request.getIP","text":["Request","getIP","Request.getIP"],"url":"router/router-request#Request+getIP"},{"name":"Request.getIPs","text":["Request","getIPs","Request.getIPs"],"url":"router/router-request#Request+getIPs"},{"name":"Response()","text":["Response","Response()"],"url":"/router-response#new_Response_new"},{"name":"Response","text":["router","Response"],"url":"router/router-response#Response"},{"name":"Response._response","text":["Response","_response","Response._response"],"url":"router/router-response#Response+_response"},{"name":"Response._isSent","text":["Response","_isSent","Response._isSent"],"url":"router/router-response#Response+_isSent"},{"name":"Response._status","text":["Response","_status","Response._status"],"url":"router/router-response#Response+_status"},{"name":"Response._content","text":["Response","_content","Response._content"],"url":"router/router-response#Response+_content"},{"name":"Response._pageState","text":["Response","_pageState","Response._pageState"],"url":"router/router-response#Response+_pageState"},{"name":"Response._internalCookieStorage","text":["Response","_internalCookieStorage","Response._internalCookieStorage"],"url":"router/router-response#Response+_internalCookieStorage"},{"name":"Response._cookieTransformFunction","text":["Response","_cookieTransformFunction","Response._cookieTransformFunction"],"url":"router/router-response#Response+_cookieTransformFunction"},{"name":"Response.init","text":["Response","init","Response.init"],"url":"router/router-response#Response+init"},{"name":"Response.redirect","text":["Response","redirect","Response.redirect"],"url":"router/router-response#Response+redirect"},{"name":"Response.status","text":["Response","status","Response.status"],"url":"router/router-response#Response+status"},{"name":"Response.send","text":["Response","send","Response.send"],"url":"router/router-response#Response+send"},{"name":"Response.setPageState","text":["Response","setPageState","Response.setPageState"],"url":"router/router-response#Response+setPageState"},{"name":"Response.setCookie","text":["Response","setCookie","Response.setCookie"],"url":"router/router-response#Response+setCookie"},{"name":"Response.getResponseParams","text":["Response","getResponseParams","Response.getResponseParams"],"url":"router/router-response#Response+getResponseParams"},{"name":"Response.isResponseSent","text":["Response","isResponseSent","Response.isResponseSent"],"url":"router/router-response#Response+isResponseSent"},{"name":"Response._setCookieHeaders","text":["Response","_setCookieHeaders","Response._setCookieHeaders"],"url":"router/router-response#Response+_setCookieHeaders"},{"name":"Response._prepareCookieOptionsForExpress","text":["Response","_prepareCookieOptionsForExpress","Response._prepareCookieOptionsForExpress"],"url":"router/router-response#Response+_prepareCookieOptionsForExpress"},{"name":"RouteFactory","text":["router","RouteFactory"],"url":"router/router-route-factory#RouteFactory"},{"name":"RouteFactory.createRoute","text":["RouteFactory","createRoute","RouteFactory.createRoute"],"url":"router/router-route-factory#RouteFactory+createRoute"},{"name":"RouteNames","text":["router","RouteNames"],"url":"router/router-route-names#RouteNames"},{"name":"NOT_FOUND","text":["NOT_FOUND"],"url":"router/router-route-names#NOT_FOUND"},{"name":"ERROR","text":["ERROR"],"url":"router/router-route-names#ERROR"},{"name":"Router","text":["router","Router"],"url":"router/router-router#Router"},{"name":"Router.init","text":["Router","init","Router.init"],"url":"router/router-router#Router+init"},{"name":"Router.add","text":["Router","add","Router.add"],"url":"router/router-router#Router+add"},{"name":"Router.use","text":["Router","use","Router.use"],"url":"router/router-router#Router+use"},{"name":"Router.remove","text":["Router","remove","Router.remove"],"url":"router/router-router#Router+remove"},{"name":"Router.getPath","text":["Router","getPath","Router.getPath"],"url":"router/router-router#Router+getPath"},{"name":"Router.getUrl","text":["Router","getUrl","Router.getUrl"],"url":"router/router-router#Router+getUrl"},{"name":"Router.getBaseUrl","text":["Router","getBaseUrl","Router.getBaseUrl"],"url":"router/router-router#Router+getBaseUrl"},{"name":"Router.getDomain","text":["Router","getDomain","Router.getDomain"],"url":"router/router-router#Router+getDomain"},{"name":"Router.getHost","text":["Router","getHost","Router.getHost"],"url":"router/router-router#Router+getHost"},{"name":"Router.getProtocol","text":["Router","getProtocol","Router.getProtocol"],"url":"router/router-router#Router+getProtocol"},{"name":"Router.getCurrentRouteInfo","text":["Router","getCurrentRouteInfo","Router.getCurrentRouteInfo"],"url":"router/router-router#Router+getCurrentRouteInfo"},{"name":"Router.listen","text":["Router","listen","Router.listen"],"url":"router/router-router#Router+listen"},{"name":"Router.unlisten","text":["Router","unlisten","Router.unlisten"],"url":"router/router-router#Router+unlisten"},{"name":"Router.redirect","text":["Router","redirect","Router.redirect"],"url":"router/router-router#Router+redirect"},{"name":"Router.link","text":["Router","link","Router.link"],"url":"router/router-router#Router+link"},{"name":"Router.route","text":["Router","route","Router.route"],"url":"router/router-router#Router+route"},{"name":"Router.handleError","text":["Router","handleError","Router.handleError"],"url":"router/router-router#Router+handleError"},{"name":"Router.handleNotFound","text":["Router","handleNotFound","Router.handleNotFound"],"url":"router/router-router#Router+handleNotFound"},{"name":"Router.isClientError","text":["Router","isClientError","Router.isClientError"],"url":"router/router-router#Router+isClientError"},{"name":"Router.isRedirection","text":["Router","isRedirection","Router.isRedirection"],"url":"router/router-router#Router+isRedirection"},{"name":"RouterMiddleware()","text":["RouterMiddleware","RouterMiddleware()"],"url":"/router-router-middleware#new_RouterMiddleware_new"},{"name":"RouterMiddleware","text":["router","RouterMiddleware"],"url":"router/router-router-middleware#RouterMiddleware"},{"name":"RouterMiddleware._middleware","text":["RouterMiddleware","_middleware","RouterMiddleware._middleware"],"url":"router/router-router-middleware#RouterMiddleware+_middleware"},{"name":"RouterMiddleware.run","text":["RouterMiddleware","run","RouterMiddleware.run"],"url":"router/router-router-middleware#RouterMiddleware+run"},{"name":"ServerRouter()","text":["ServerRouter","ServerRouter()"],"url":"/router-server-router#new_ServerRouter_new"},{"name":"ServerRouter","text":["router","ServerRouter"],"url":"router/router-server-router#ServerRouter"},{"name":"ServerRouter._request","text":["ServerRouter","_request","ServerRouter._request"],"url":"router/router-server-router#ServerRouter+_request"},{"name":"ServerRouter._response","text":["ServerRouter","_response","ServerRouter._response"],"url":"router/router-server-router#ServerRouter+_response"},{"name":"ServerRouter.getPath","text":["ServerRouter","getPath","ServerRouter.getPath"],"url":"router/router-server-router#ServerRouter+getPath"},{"name":"ServerRouter.listen","text":["ServerRouter","listen","ServerRouter.listen"],"url":"router/router-server-router#ServerRouter+listen"},{"name":"ServerRouter.unlisten","text":["ServerRouter","unlisten","ServerRouter.unlisten"],"url":"router/router-server-router#ServerRouter+unlisten"},{"name":"ServerRouter.redirect","text":["ServerRouter","redirect","ServerRouter.redirect"],"url":"router/router-server-router#ServerRouter+redirect"},{"name":"StaticRoute()","text":["StaticRoute","StaticRoute()"],"url":"/router-static-route#new_StaticRoute_new"},{"name":"StaticRoute","text":["router","StaticRoute","AbstractRoute"],"url":"router/router-static-route#StaticRoute"},{"name":"CONTROL_CHARACTERS_REGEXP","text":["CONTROL_CHARACTERS_REGEXP"],"url":"router/router-static-route#CONTROL_CHARACTERS_REGEXP"},{"name":"PARAMS_REGEXP_UNIVERSAL","text":["PARAMS_REGEXP_UNIVERSAL"],"url":"router/router-static-route#PARAMS_REGEXP_UNIVERSAL"},{"name":"PARAMS_REGEXP_REQUIRED","text":["PARAMS_REGEXP_REQUIRED"],"url":"router/router-static-route#PARAMS_REGEXP_REQUIRED"},{"name":"PARAMS_REGEXP_CORE_NAME","text":["PARAMS_REGEXP_CORE_NAME"],"url":"router/router-static-route#PARAMS_REGEXP_CORE_NAME"},{"name":"PARAMS_START_PATTERN","text":["PARAMS_START_PATTERN"],"url":"router/router-static-route#PARAMS_START_PATTERN"},{"name":"PARAMS_END_PATTERN","text":["PARAMS_END_PATTERN"],"url":"router/router-static-route#PARAMS_END_PATTERN"},{"name":"PARAMS_NEVER_MATCH_REGEXP","text":["PARAMS_NEVER_MATCH_REGEXP"],"url":"router/router-static-route#PARAMS_NEVER_MATCH_REGEXP"},{"name":"PARAMS_MAIN_REGEXP","text":["PARAMS_MAIN_REGEXP"],"url":"router/router-static-route#PARAMS_MAIN_REGEXP"},{"name":"SUBPARAMS_REQUIRED_REGEXP","text":["SUBPARAMS_REQUIRED_REGEXP"],"url":"router/router-static-route#SUBPARAMS_REQUIRED_REGEXP"},{"name":"SUBPARAMS_OPT_REGEXP","text":["SUBPARAMS_OPT_REGEXP"],"url":"router/router-static-route#SUBPARAMS_OPT_REGEXP"},{"name":"PARAMS_REGEXP_OPT","text":["PARAMS_REGEXP_OPT"],"url":"router/router-static-route#PARAMS_REGEXP_OPT"},{"name":"StaticRoute._trimmedPathExpression","text":["StaticRoute","_trimmedPathExpression","StaticRoute._trimmedPathExpression"],"url":"router/router-static-route#StaticRoute+_trimmedPathExpression"},{"name":"StaticRoute._parameterNames","text":["StaticRoute","_parameterNames","StaticRoute._parameterNames"],"url":"router/router-static-route#StaticRoute+_parameterNames"},{"name":"StaticRoute._hasParameters","text":["StaticRoute","_hasParameters","StaticRoute._hasParameters"],"url":"router/router-static-route#StaticRoute+_hasParameters"},{"name":"StaticRoute._matcher","text":["StaticRoute","_matcher","StaticRoute._matcher"],"url":"router/router-static-route#StaticRoute+_matcher"},{"name":"StaticRoute.toPath","text":["StaticRoute","toPath","StaticRoute.toPath"],"url":"router/router-static-route#StaticRoute+toPath"},{"name":"StaticRoute.matches","text":["StaticRoute","matches","StaticRoute.matches"],"url":"router/router-static-route#StaticRoute+matches"},{"name":"StaticRoute.extractParameters","text":["StaticRoute","extractParameters","StaticRoute.extractParameters"],"url":"router/router-static-route#StaticRoute+extractParameters"},{"name":"StaticRoute._substituteRequiredParamInPath","text":["StaticRoute","_substituteRequiredParamInPath","StaticRoute._substituteRequiredParamInPath"],"url":"router/router-static-route#StaticRoute+_substituteRequiredParamInPath"},{"name":"StaticRoute._substituteOptionalParamInPath","text":["StaticRoute","_substituteOptionalParamInPath","StaticRoute._substituteOptionalParamInPath"],"url":"router/router-static-route#StaticRoute+_substituteOptionalParamInPath"},{"name":"StaticRoute._cleanUnusedOptionalParams","text":["StaticRoute","_cleanUnusedOptionalParams","StaticRoute._cleanUnusedOptionalParams"],"url":"router/router-static-route#StaticRoute+_cleanUnusedOptionalParams"},{"name":"StaticRoute._isOptionalParamInPath","text":["StaticRoute","_isOptionalParamInPath","StaticRoute._isOptionalParamInPath"],"url":"router/router-static-route#StaticRoute+_isOptionalParamInPath"},{"name":"StaticRoute._isRequiredParamInPath","text":["StaticRoute","_isRequiredParamInPath","StaticRoute._isRequiredParamInPath"],"url":"router/router-static-route#StaticRoute+_isRequiredParamInPath"},{"name":"StaticRoute._getClearParamName","text":["StaticRoute","_getClearParamName","StaticRoute._getClearParamName"],"url":"router/router-static-route#StaticRoute+_getClearParamName"},{"name":"StaticRoute._getSubparamPattern","text":["StaticRoute","_getSubparamPattern","StaticRoute._getSubparamPattern"],"url":"router/router-static-route#StaticRoute+_getSubparamPattern"},{"name":"StaticRoute._checkOptionalParamsOrder","text":["StaticRoute","_checkOptionalParamsOrder","StaticRoute._checkOptionalParamsOrder"],"url":"router/router-static-route#StaticRoute+_checkOptionalParamsOrder"},{"name":"StaticRoute._checkParametersOrder","text":["StaticRoute","_checkParametersOrder","StaticRoute._checkParametersOrder"],"url":"router/router-static-route#StaticRoute+_checkParametersOrder"},{"name":"StaticRoute._replaceOptionalParametersInPath","text":["StaticRoute","_replaceOptionalParametersInPath","StaticRoute._replaceOptionalParametersInPath"],"url":"router/router-static-route#StaticRoute+_replaceOptionalParametersInPath"},{"name":"StaticRoute._replaceRequiredSubParametersInPath","text":["StaticRoute","_replaceRequiredSubParametersInPath","StaticRoute._replaceRequiredSubParametersInPath"],"url":"router/router-static-route#StaticRoute+_replaceRequiredSubParametersInPath"},{"name":"StaticRoute._replaceOptionalSubParametersInPath","text":["StaticRoute","_replaceOptionalSubParametersInPath","StaticRoute._replaceOptionalSubParametersInPath"],"url":"router/router-static-route#StaticRoute+_replaceOptionalSubParametersInPath"},{"name":"StaticRoute._compileToRegExp","text":["StaticRoute","_compileToRegExp","StaticRoute._compileToRegExp"],"url":"router/router-static-route#StaticRoute+_compileToRegExp"},{"name":"StaticRoute._getParameters","text":["StaticRoute","_getParameters","StaticRoute._getParameters"],"url":"router/router-static-route#StaticRoute+_getParameters"},{"name":"StaticRoute._extractParameters","text":["StaticRoute","_extractParameters","StaticRoute._extractParameters"],"url":"router/router-static-route#StaticRoute+_extractParameters"},{"name":"StaticRoute._cleanOptParamName","text":["StaticRoute","_cleanOptParamName","StaticRoute._cleanOptParamName"],"url":"router/router-static-route#StaticRoute+_cleanOptParamName"},{"name":"StaticRoute._isParamOptional","text":["StaticRoute","_isParamOptional","StaticRoute._isParamOptional"],"url":"router/router-static-route#StaticRoute+_isParamOptional"},{"name":"StaticRoute._getParameterNames","text":["StaticRoute","_getParameterNames","StaticRoute._getParameterNames"],"url":"router/router-static-route#StaticRoute+_getParameterNames"},{"name":"CookieStorage()","text":["CookieStorage","CookieStorage()"],"url":"/storage-cookie-storage#new_CookieStorage_new"},{"name":"CookieStorage","text":["storage","CookieStorage"],"url":"storage/storage-cookie-storage#CookieStorage"},{"name":"MAX_EXPIRE_DATE","text":["MAX_EXPIRE_DATE"],"url":"storage/storage-cookie-storage#MAX_EXPIRE_DATE"},{"name":"COOKIE_SEPARATOR","text":["COOKIE_SEPARATOR"],"url":"storage/storage-cookie-storage#COOKIE_SEPARATOR"},{"name":"CookieStorage._window","text":["CookieStorage","_window","CookieStorage._window"],"url":"storage/storage-cookie-storage#CookieStorage+_window"},{"name":"CookieStorage._request","text":["CookieStorage","_request","CookieStorage._request"],"url":"storage/storage-cookie-storage#CookieStorage+_request"},{"name":"CookieStorage._response","text":["CookieStorage","_response","CookieStorage._response"],"url":"storage/storage-cookie-storage#CookieStorage+_response"},{"name":"CookieStorage._options","text":["CookieStorage","_options","CookieStorage._options"],"url":"storage/storage-cookie-storage#CookieStorage+_options"},{"name":"CookieStorage._transformFunction","text":["CookieStorage","_transformFunction","CookieStorage._transformFunction"],"url":"storage/storage-cookie-storage#CookieStorage+_transformFunction"},{"name":"CookieStorage.init","text":["CookieStorage","init","CookieStorage.init"],"url":"storage/storage-cookie-storage#CookieStorage+init"},{"name":"CookieStorage.has","text":["CookieStorage","has","CookieStorage.has"],"url":"storage/storage-cookie-storage#CookieStorage+has"},{"name":"CookieStorage.get","text":["CookieStorage","get","CookieStorage.get"],"url":"storage/storage-cookie-storage#CookieStorage+get"},{"name":"CookieStorage.set","text":["CookieStorage","set","CookieStorage.set"],"url":"storage/storage-cookie-storage#CookieStorage+set"},{"name":"CookieStorage.delete","text":["CookieStorage","delete","CookieStorage.delete"],"url":"storage/storage-cookie-storage#CookieStorage+delete"},{"name":"CookieStorage.clear","text":["CookieStorage","clear","CookieStorage.clear"],"url":"storage/storage-cookie-storage#CookieStorage+clear"},{"name":"CookieStorage.keys","text":["CookieStorage","keys","CookieStorage.keys"],"url":"storage/storage-cookie-storage#CookieStorage+keys"},{"name":"CookieStorage.size","text":["CookieStorage","size","CookieStorage.size"],"url":"storage/storage-cookie-storage#CookieStorage+size"},{"name":"CookieStorage.getCookiesStringForCookieHeader","text":["CookieStorage","getCookiesStringForCookieHeader","CookieStorage.getCookiesStringForCookieHeader"],"url":"storage/storage-cookie-storage#CookieStorage+getCookiesStringForCookieHeader"},{"name":"CookieStorage.parseFromSetCookieHeader","text":["CookieStorage","parseFromSetCookieHeader","CookieStorage.parseFromSetCookieHeader"],"url":"storage/storage-cookie-storage#CookieStorage+parseFromSetCookieHeader"},{"name":"CookieStorage._parse","text":["CookieStorage","_parse","CookieStorage._parse"],"url":"storage/storage-cookie-storage#CookieStorage+_parse"},{"name":"CookieStorage._firstLetterToLowerCase","text":["CookieStorage","_firstLetterToLowerCase","CookieStorage._firstLetterToLowerCase"],"url":"storage/storage-cookie-storage#CookieStorage+_firstLetterToLowerCase"},{"name":"CookieStorage._generateCookieString","text":["CookieStorage","_generateCookieString","CookieStorage._generateCookieString"],"url":"storage/storage-cookie-storage#CookieStorage+_generateCookieString"},{"name":"CookieStorage._getExpirationAsDate","text":["CookieStorage","_getExpirationAsDate","CookieStorage._getExpirationAsDate"],"url":"storage/storage-cookie-storage#CookieStorage+_getExpirationAsDate"},{"name":"CookieStorage._extractCookie","text":["CookieStorage","_extractCookie","CookieStorage._extractCookie"],"url":"storage/storage-cookie-storage#CookieStorage+_extractCookie"},{"name":"CookieStorage._extractNameAndValue","text":["CookieStorage","_extractNameAndValue","CookieStorage._extractNameAndValue"],"url":"storage/storage-cookie-storage#CookieStorage+_extractNameAndValue"},{"name":"CookieStorage._sanitizeCookieValue","text":["CookieStorage","_sanitizeCookieValue","CookieStorage._sanitizeCookieValue"],"url":"storage/storage-cookie-storage#CookieStorage+_sanitizeCookieValue"},{"name":"CookieStorage._recomputeCookieMaxAgeAndExpires","text":["CookieStorage","_recomputeCookieMaxAgeAndExpires","CookieStorage._recomputeCookieMaxAgeAndExpires"],"url":"storage/storage-cookie-storage#CookieStorage+_recomputeCookieMaxAgeAndExpires"},{"name":"MapStorage()","text":["MapStorage","MapStorage()"],"url":"/storage-map-storage#new_MapStorage_new"},{"name":"MapStorage","text":["storage","MapStorage"],"url":"storage/storage-map-storage#MapStorage"},{"name":"MapStorage._storage","text":["MapStorage","_storage","MapStorage._storage"],"url":"storage/storage-map-storage#MapStorage+_storage"},{"name":"MapStorage.init","text":["MapStorage","init","MapStorage.init"],"url":"storage/storage-map-storage#MapStorage+init"},{"name":"MapStorage.has","text":["MapStorage","has","MapStorage.has"],"url":"storage/storage-map-storage#MapStorage+has"},{"name":"MapStorage.get","text":["MapStorage","get","MapStorage.get"],"url":"storage/storage-map-storage#MapStorage+get"},{"name":"MapStorage.set","text":["MapStorage","set","MapStorage.set"],"url":"storage/storage-map-storage#MapStorage+set"},{"name":"MapStorage.delete","text":["MapStorage","delete","MapStorage.delete"],"url":"storage/storage-map-storage#MapStorage+delete"},{"name":"MapStorage.clear","text":["MapStorage","clear","MapStorage.clear"],"url":"storage/storage-map-storage#MapStorage+clear"},{"name":"MapStorage.keys","text":["MapStorage","keys","MapStorage.keys"],"url":"storage/storage-map-storage#MapStorage+keys"},{"name":"MapStorage.size","text":["MapStorage","size","MapStorage.size"],"url":"storage/storage-map-storage#MapStorage+size"},{"name":"SessionMapStorage()","text":["SessionMapStorage","SessionMapStorage()"],"url":"/storage-session-map-storage#new_SessionMapStorage_new"},{"name":"SessionMapStorage","text":["storage","SessionMapStorage"],"url":"storage/storage-session-map-storage#SessionMapStorage"},{"name":"SessionMapStorage._map","text":["SessionMapStorage","_map","SessionMapStorage._map"],"url":"storage/storage-session-map-storage#SessionMapStorage+_map"},{"name":"SessionMapStorage._session","text":["SessionMapStorage","_session","SessionMapStorage._session"],"url":"storage/storage-session-map-storage#SessionMapStorage+_session"},{"name":"SessionMapStorage.init","text":["SessionMapStorage","init","SessionMapStorage.init"],"url":"storage/storage-session-map-storage#SessionMapStorage+init"},{"name":"SessionMapStorage.has","text":["SessionMapStorage","has","SessionMapStorage.has"],"url":"storage/storage-session-map-storage#SessionMapStorage+has"},{"name":"SessionMapStorage.get","text":["SessionMapStorage","get","SessionMapStorage.get"],"url":"storage/storage-session-map-storage#SessionMapStorage+get"},{"name":"SessionMapStorage.set","text":["SessionMapStorage","set","SessionMapStorage.set"],"url":"storage/storage-session-map-storage#SessionMapStorage+set"},{"name":"SessionMapStorage.delete","text":["SessionMapStorage","delete","SessionMapStorage.delete"],"url":"storage/storage-session-map-storage#SessionMapStorage+delete"},{"name":"SessionMapStorage.clear","text":["SessionMapStorage","clear","SessionMapStorage.clear"],"url":"storage/storage-session-map-storage#SessionMapStorage+clear"},{"name":"SessionMapStorage.keys","text":["SessionMapStorage","keys","SessionMapStorage.keys"],"url":"storage/storage-session-map-storage#SessionMapStorage+keys"},{"name":"SessionMapStorage.size","text":["SessionMapStorage","size","SessionMapStorage.size"],"url":"storage/storage-session-map-storage#SessionMapStorage+size"},{"name":"SessionStorage()","text":["SessionStorage","SessionStorage()"],"url":"/storage-session-storage#new_SessionStorage_new"},{"name":"StorageIterator()","text":["StorageIterator","StorageIterator()"],"url":"/storage-session-storage#new_StorageIterator_new"},{"name":"SessionStorage","text":["storage","SessionStorage"],"url":"storage/storage-session-storage#SessionStorage"},{"name":"StorageIterator","text":["StorageIterator"],"url":"storage/storage-session-storage#StorageIterator"},{"name":"SessionStorage._storage","text":["SessionStorage","_storage","SessionStorage._storage"],"url":"storage/storage-session-storage#SessionStorage+_storage"},{"name":"StorageIterator._storage","text":["StorageIterator","_storage","StorageIterator._storage"],"url":"storage/storage-session-storage#StorageIterator+_storage"},{"name":"StorageIterator._currentKeyIndex","text":["StorageIterator","_currentKeyIndex","StorageIterator._currentKeyIndex"],"url":"storage/storage-session-storage#StorageIterator+_currentKeyIndex"},{"name":"SessionStorage.init","text":["SessionStorage","init","SessionStorage.init"],"url":"storage/storage-session-storage#SessionStorage+init"},{"name":"SessionStorage.has","text":["SessionStorage","has","SessionStorage.has"],"url":"storage/storage-session-storage#SessionStorage+has"},{"name":"SessionStorage.get","text":["SessionStorage","get","SessionStorage.get"],"url":"storage/storage-session-storage#SessionStorage+get"},{"name":"SessionStorage.set","text":["SessionStorage","set","SessionStorage.set"],"url":"storage/storage-session-storage#SessionStorage+set"},{"name":"SessionStorage.delete","text":["SessionStorage","delete","SessionStorage.delete"],"url":"storage/storage-session-storage#SessionStorage+delete"},{"name":"SessionStorage.clear","text":["SessionStorage","clear","SessionStorage.clear"],"url":"storage/storage-session-storage#SessionStorage+clear"},{"name":"SessionStorage.keys","text":["SessionStorage","keys","SessionStorage.keys"],"url":"storage/storage-session-storage#SessionStorage+keys"},{"name":"SessionStorage.size","text":["SessionStorage","size","SessionStorage.size"],"url":"storage/storage-session-storage#SessionStorage+size"},{"name":"SessionStorage._deleteOldestEntry","text":["SessionStorage","_deleteOldestEntry","SessionStorage._deleteOldestEntry"],"url":"storage/storage-session-storage#SessionStorage+_deleteOldestEntry"},{"name":"StorageIterator.next","text":["StorageIterator","next","StorageIterator.next"],"url":"storage/storage-session-storage#StorageIterator+next"},{"name":"StorageIterator.Symbol.iterator","text":["StorageIterator#Symbol","iterator","StorageIterator.Symbol.iterator"],"url":"storage/storage-session-storage#StorageIterator+Symbol.iterator"},{"name":"Storage","text":["storage","Storage"],"url":"storage/storage-storage#Storage"},{"name":"Storage.init","text":["Storage","init","Storage.init"],"url":"storage/storage-storage#Storage+init"},{"name":"Storage.has","text":["Storage","has","Storage.has"],"url":"storage/storage-storage#Storage+has"},{"name":"Storage.get","text":["Storage","get","Storage.get"],"url":"storage/storage-storage#Storage+get"},{"name":"Storage.set","text":["Storage","set","Storage.set"],"url":"storage/storage-storage#Storage+set"},{"name":"Storage.delete","text":["Storage","delete","Storage.delete"],"url":"storage/storage-storage#Storage+delete"},{"name":"Storage.clear","text":["Storage","clear","Storage.clear"],"url":"storage/storage-storage#Storage+clear"},{"name":"Storage.keys","text":["Storage","keys","Storage.keys"],"url":"storage/storage-storage#Storage+keys"},{"name":"Storage.size","text":["Storage","size","Storage.size"],"url":"storage/storage-storage#Storage+size"},{"name":"WeakMapStorage()","text":["WeakMapStorage","WeakMapStorage()"],"url":"/storage-weak-map-storage#new_WeakMapStorage_new"},{"name":"WeakRef()","text":["WeakRef","WeakRef()"],"url":"/storage-weak-map-storage#new_WeakRef_new"},{"name":"WeakMapStorage","text":["storage","WeakMapStorage"],"url":"storage/storage-weak-map-storage#WeakMapStorage"},{"name":"WeakRef","text":["WeakRef"],"url":"storage/storage-weak-map-storage#WeakRef"},{"name":"WeakMapStorage._entryTtl","text":["WeakMapStorage","_entryTtl","WeakMapStorage._entryTtl"],"url":"storage/storage-weak-map-storage#WeakMapStorage+_entryTtl"},{"name":"WeakRef._reference","text":["WeakRef","_reference","WeakRef._reference"],"url":"storage/storage-weak-map-storage#WeakRef+_reference"},{"name":"WeakRef._expiration","text":["WeakRef","_expiration","WeakRef._expiration"],"url":"storage/storage-weak-map-storage#WeakRef+_expiration"},{"name":"WeakRef.target","text":["WeakRef","target","WeakRef.target"],"url":"storage/storage-weak-map-storage#WeakRef+target"},{"name":"WeakMapStorage.has","text":["WeakMapStorage","has","WeakMapStorage.has"],"url":"storage/storage-weak-map-storage#WeakMapStorage+has"},{"name":"WeakMapStorage.get","text":["WeakMapStorage","get","WeakMapStorage.get"],"url":"storage/storage-weak-map-storage#WeakMapStorage+get"},{"name":"WeakMapStorage.set","text":["WeakMapStorage","set","WeakMapStorage.set"],"url":"storage/storage-weak-map-storage#WeakMapStorage+set"},{"name":"WeakMapStorage.delete","text":["WeakMapStorage","delete","WeakMapStorage.delete"],"url":"storage/storage-weak-map-storage#WeakMapStorage+delete"},{"name":"WeakMapStorage.keys","text":["WeakMapStorage","keys","WeakMapStorage.keys"],"url":"storage/storage-weak-map-storage#WeakMapStorage+keys"},{"name":"WeakMapStorage.size","text":["WeakMapStorage","size","WeakMapStorage.size"],"url":"storage/storage-weak-map-storage#WeakMapStorage+size"},{"name":"WeakMapStorage._discardExpiredEntries","text":["WeakMapStorage","_discardExpiredEntries","WeakMapStorage._discardExpiredEntries"],"url":"storage/storage-weak-map-storage#WeakMapStorage+_discardExpiredEntries"},{"name":"ClientWindow","text":["window","ClientWindow"],"url":"window/window-client-window#ClientWindow"},{"name":"ClientWindow.isClient","text":["ClientWindow","isClient","ClientWindow.isClient"],"url":"window/window-client-window#ClientWindow+isClient"},{"name":"ClientWindow.isCookieEnabled","text":["ClientWindow","isCookieEnabled","ClientWindow.isCookieEnabled"],"url":"window/window-client-window#ClientWindow+isCookieEnabled"},{"name":"ClientWindow.hasSessionStorage","text":["ClientWindow","hasSessionStorage","ClientWindow.hasSessionStorage"],"url":"window/window-client-window#ClientWindow+hasSessionStorage"},{"name":"ClientWindow.setTitle","text":["ClientWindow","setTitle","ClientWindow.setTitle"],"url":"window/window-client-window#ClientWindow+setTitle"},{"name":"ClientWindow.getWindow","text":["ClientWindow","getWindow","ClientWindow.getWindow"],"url":"window/window-client-window#ClientWindow+getWindow"},{"name":"ClientWindow.getDocument","text":["ClientWindow","getDocument","ClientWindow.getDocument"],"url":"window/window-client-window#ClientWindow+getDocument"},{"name":"ClientWindow.getScrollX","text":["ClientWindow","getScrollX","ClientWindow.getScrollX"],"url":"window/window-client-window#ClientWindow+getScrollX"},{"name":"ClientWindow.getScrollY","text":["ClientWindow","getScrollY","ClientWindow.getScrollY"],"url":"window/window-client-window#ClientWindow+getScrollY"},{"name":"ClientWindow.scrollTo","text":["ClientWindow","scrollTo","ClientWindow.scrollTo"],"url":"window/window-client-window#ClientWindow+scrollTo"},{"name":"ClientWindow.getDomain","text":["ClientWindow","getDomain","ClientWindow.getDomain"],"url":"window/window-client-window#ClientWindow+getDomain"},{"name":"ClientWindow.getHost","text":["ClientWindow","getHost","ClientWindow.getHost"],"url":"window/window-client-window#ClientWindow+getHost"},{"name":"ClientWindow.getPath","text":["ClientWindow","getPath","ClientWindow.getPath"],"url":"window/window-client-window#ClientWindow+getPath"},{"name":"ClientWindow.getUrl","text":["ClientWindow","getUrl","ClientWindow.getUrl"],"url":"window/window-client-window#ClientWindow+getUrl"},{"name":"ClientWindow.getBody","text":["ClientWindow","getBody","ClientWindow.getBody"],"url":"window/window-client-window#ClientWindow+getBody"},{"name":"ClientWindow.getElementById","text":["ClientWindow","getElementById","ClientWindow.getElementById"],"url":"window/window-client-window#ClientWindow+getElementById"},{"name":"ClientWindow.getHistoryState","text":["ClientWindow","getHistoryState","ClientWindow.getHistoryState"],"url":"window/window-client-window#ClientWindow+getHistoryState"},{"name":"ClientWindow.querySelector","text":["ClientWindow","querySelector","ClientWindow.querySelector"],"url":"window/window-client-window#ClientWindow+querySelector"},{"name":"ClientWindow.querySelectorAll","text":["ClientWindow","querySelectorAll","ClientWindow.querySelectorAll"],"url":"window/window-client-window#ClientWindow+querySelectorAll"},{"name":"ClientWindow.redirect","text":["ClientWindow","redirect","ClientWindow.redirect"],"url":"window/window-client-window#ClientWindow+redirect"},{"name":"ClientWindow.pushState","text":["ClientWindow","pushState","ClientWindow.pushState"],"url":"window/window-client-window#ClientWindow+pushState"},{"name":"ClientWindow.replaceState","text":["ClientWindow","replaceState","ClientWindow.replaceState"],"url":"window/window-client-window#ClientWindow+replaceState"},{"name":"ClientWindow.createCustomEvent","text":["ClientWindow","createCustomEvent","ClientWindow.createCustomEvent"],"url":"window/window-client-window#ClientWindow+createCustomEvent"},{"name":"ClientWindow.bindEventListener","text":["ClientWindow","bindEventListener","ClientWindow.bindEventListener"],"url":"window/window-client-window#ClientWindow+bindEventListener"},{"name":"ClientWindow.unbindEventListener","text":["ClientWindow","unbindEventListener","ClientWindow.unbindEventListener"],"url":"window/window-client-window#ClientWindow+unbindEventListener"},{"name":"ServerWindow","text":["window","ServerWindow"],"url":"window/window-server-window#ServerWindow"},{"name":"ServerWindow.isClient","text":["ServerWindow","isClient","ServerWindow.isClient"],"url":"window/window-server-window#ServerWindow+isClient"},{"name":"ServerWindow.isCookieEnabled","text":["ServerWindow","isCookieEnabled","ServerWindow.isCookieEnabled"],"url":"window/window-server-window#ServerWindow+isCookieEnabled"},{"name":"ServerWindow.hasSessionStorage","text":["ServerWindow","hasSessionStorage","ServerWindow.hasSessionStorage"],"url":"window/window-server-window#ServerWindow+hasSessionStorage"},{"name":"ServerWindow.setTitle","text":["ServerWindow","setTitle","ServerWindow.setTitle"],"url":"window/window-server-window#ServerWindow+setTitle"},{"name":"ServerWindow.getWindow","text":["ServerWindow","getWindow","ServerWindow.getWindow"],"url":"window/window-server-window#ServerWindow+getWindow"},{"name":"ServerWindow.getDocument","text":["ServerWindow","getDocument","ServerWindow.getDocument"],"url":"window/window-server-window#ServerWindow+getDocument"},{"name":"ServerWindow.getScrollX","text":["ServerWindow","getScrollX","ServerWindow.getScrollX"],"url":"window/window-server-window#ServerWindow+getScrollX"},{"name":"ServerWindow.getScrollY","text":["ServerWindow","getScrollY","ServerWindow.getScrollY"],"url":"window/window-server-window#ServerWindow+getScrollY"},{"name":"ServerWindow.scrollTo","text":["ServerWindow","scrollTo","ServerWindow.scrollTo"],"url":"window/window-server-window#ServerWindow+scrollTo"},{"name":"ServerWindow.getDomain","text":["ServerWindow","getDomain","ServerWindow.getDomain"],"url":"window/window-server-window#ServerWindow+getDomain"},{"name":"ServerWindow.getHost","text":["ServerWindow","getHost","ServerWindow.getHost"],"url":"window/window-server-window#ServerWindow+getHost"},{"name":"ServerWindow.getPath","text":["ServerWindow","getPath","ServerWindow.getPath"],"url":"window/window-server-window#ServerWindow+getPath"},{"name":"ServerWindow.getUrl","text":["ServerWindow","getUrl","ServerWindow.getUrl"],"url":"window/window-server-window#ServerWindow+getUrl"},{"name":"ServerWindow.getBody","text":["ServerWindow","getBody","ServerWindow.getBody"],"url":"window/window-server-window#ServerWindow+getBody"},{"name":"ServerWindow.getElementById","text":["ServerWindow","getElementById","ServerWindow.getElementById"],"url":"window/window-server-window#ServerWindow+getElementById"},{"name":"ServerWindow.getHistoryState","text":["ServerWindow","getHistoryState","ServerWindow.getHistoryState"],"url":"window/window-server-window#ServerWindow+getHistoryState"},{"name":"ServerWindow.querySelector","text":["ServerWindow","querySelector","ServerWindow.querySelector"],"url":"window/window-server-window#ServerWindow+querySelector"},{"name":"ServerWindow.querySelectorAll","text":["ServerWindow","querySelectorAll","ServerWindow.querySelectorAll"],"url":"window/window-server-window#ServerWindow+querySelectorAll"},{"name":"ServerWindow.redirect","text":["ServerWindow","redirect","ServerWindow.redirect"],"url":"window/window-server-window#ServerWindow+redirect"},{"name":"ServerWindow.pushState","text":["ServerWindow","pushState","ServerWindow.pushState"],"url":"window/window-server-window#ServerWindow+pushState"},{"name":"ServerWindow.replaceState","text":["ServerWindow","replaceState","ServerWindow.replaceState"],"url":"window/window-server-window#ServerWindow+replaceState"},{"name":"ServerWindow.createCustomEvent","text":["ServerWindow","createCustomEvent","ServerWindow.createCustomEvent"],"url":"window/window-server-window#ServerWindow+createCustomEvent"},{"name":"ServerWindow.bindEventListener","text":["ServerWindow","bindEventListener","ServerWindow.bindEventListener"],"url":"window/window-server-window#ServerWindow+bindEventListener"},{"name":"ServerWindow.unbindEventListener","text":["ServerWindow","unbindEventListener","ServerWindow.unbindEventListener"],"url":"window/window-server-window#ServerWindow+unbindEventListener"},{"name":"Window","text":["window","Window"],"url":"window/window-window#Window"},{"name":"Window.isClient","text":["Window","isClient","Window.isClient"],"url":"window/window-window#Window+isClient"},{"name":"Window.isCookieEnabled","text":["Window","isCookieEnabled","Window.isCookieEnabled"],"url":"window/window-window#Window+isCookieEnabled"},{"name":"Window.hasSessionStorage","text":["Window","hasSessionStorage","Window.hasSessionStorage"],"url":"window/window-window#Window+hasSessionStorage"},{"name":"Window.setTitle","text":["Window","setTitle","Window.setTitle"],"url":"window/window-window#Window+setTitle"},{"name":"Window.getWebSocket","text":["Window","getWebSocket","Window.getWebSocket"],"url":"window/window-window#Window+getWebSocket"},{"name":"Window.getWindow","text":["Window","getWindow","Window.getWindow"],"url":"window/window-window#Window+getWindow"},{"name":"Window.getDocument","text":["Window","getDocument","Window.getDocument"],"url":"window/window-window#Window+getDocument"},{"name":"Window.getScrollX","text":["Window","getScrollX","Window.getScrollX"],"url":"window/window-window#Window+getScrollX"},{"name":"Window.getScrollY","text":["Window","getScrollY","Window.getScrollY"],"url":"window/window-window#Window+getScrollY"},{"name":"Window.scrollTo","text":["Window","scrollTo","Window.scrollTo"],"url":"window/window-window#Window+scrollTo"},{"name":"Window.getDomain","text":["Window","getDomain","Window.getDomain"],"url":"window/window-window#Window+getDomain"},{"name":"Window.getHost","text":["Window","getHost","Window.getHost"],"url":"window/window-window#Window+getHost"},{"name":"Window.getPath","text":["Window","getPath","Window.getPath"],"url":"window/window-window#Window+getPath"},{"name":"Window.getUrl","text":["Window","getUrl","Window.getUrl"],"url":"window/window-window#Window+getUrl"},{"name":"Window.getBody","text":["Window","getBody","Window.getBody"],"url":"window/window-window#Window+getBody"},{"name":"Window.getElementById","text":["Window","getElementById","Window.getElementById"],"url":"window/window-window#Window+getElementById"},{"name":"Window.getHistoryState","text":["Window","getHistoryState","Window.getHistoryState"],"url":"window/window-window#Window+getHistoryState"},{"name":"Window.querySelector","text":["Window","querySelector","Window.querySelector"],"url":"window/window-window#Window+querySelector"},{"name":"Window.querySelectorAll","text":["Window","querySelectorAll","Window.querySelectorAll"],"url":"window/window-window#Window+querySelectorAll"},{"name":"Window.redirect","text":["Window","redirect","Window.redirect"],"url":"window/window-window#Window+redirect"},{"name":"Window.pushState","text":["Window","pushState","Window.pushState"],"url":"window/window-window#Window+pushState"},{"name":"Window.replaceState","text":["Window","replaceState","Window.replaceState"],"url":"window/window-window#Window+replaceState"},{"name":"Window.createCustomEvent","text":["Window","createCustomEvent","Window.createCustomEvent"],"url":"window/window-window#Window+createCustomEvent"},{"name":"Window.bindEventListener","text":["Window","bindEventListener","Window.bindEventListener"],"url":"window/window-window#Window+bindEventListener"},{"name":"Window.unbindEventListener","text":["Window","unbindEventListener","Window.unbindEventListener"],"url":"window/window-window#Window+unbindEventListener"},{"name":"PageHandler","text":["page/handler","PageHandler"],"url":"page/handler/pagehandler-page-handler#PageHandler"},{"name":"PageHandler.init","text":["PageHandler","init","PageHandler.init"],"url":"page/handler/pagehandler-page-handler#PageHandler+init"},{"name":"PageHandler.handlePreManagedState","text":["PageHandler","handlePreManagedState","PageHandler.handlePreManagedState"],"url":"page/handler/pagehandler-page-handler#PageHandler+handlePreManagedState"},{"name":"PageHandler.handlePostManagedState","text":["PageHandler","handlePostManagedState","PageHandler.handlePostManagedState"],"url":"page/handler/pagehandler-page-handler#PageHandler+handlePostManagedState"},{"name":"PageHandler.destroy","text":["PageHandler","destroy","PageHandler.destroy"],"url":"page/handler/pagehandler-page-handler#PageHandler+destroy"},{"name":"HandlerRegistry.PageHandlerRegistry()","text":["HandlerRegistry.PageHandlerRegistry","PageHandlerRegistry","HandlerRegistry.PageHandlerRegistry()"],"url":"/pagehandler-page-handler-registry#new_PageHandlerRegistry_new"},{"name":"PageHandlerRegistry._pageHandlers","text":["page/handler","PageHandlerRegistry","_pageHandlers","PageHandlerRegistry._pageHandlers"],"url":"page/handler/pagehandler-page-handler-registry#PageHandlerRegistry+_pageHandlers"},{"name":"PageHandlerRegistry._preManageHandlers","text":["PageHandlerRegistry","_preManageHandlers","PageHandlerRegistry._preManageHandlers"],"url":"page/handler/pagehandler-page-handler-registry#PageHandlerRegistry+_preManageHandlers"},{"name":"PageHandlerRegistry._postManageHandlers","text":["PageHandlerRegistry","_postManageHandlers","PageHandlerRegistry._postManageHandlers"],"url":"page/handler/pagehandler-page-handler-registry#PageHandlerRegistry+_postManageHandlers"},{"name":"PageHandlerRegistry.init","text":["PageHandlerRegistry","init","PageHandlerRegistry.init"],"url":"page/handler/pagehandler-page-handler-registry#PageHandlerRegistry+init"},{"name":"PageHandlerRegistry.handlePreManagedState","text":["PageHandlerRegistry","handlePreManagedState","PageHandlerRegistry.handlePreManagedState"],"url":"page/handler/pagehandler-page-handler-registry#PageHandlerRegistry+handlePreManagedState"},{"name":"PageHandlerRegistry.handlePostManagedState","text":["PageHandlerRegistry","handlePostManagedState","PageHandlerRegistry.handlePostManagedState"],"url":"page/handler/pagehandler-page-handler-registry#PageHandlerRegistry+handlePostManagedState"},{"name":"PageHandlerRegistry.destroy","text":["PageHandlerRegistry","destroy","PageHandlerRegistry.destroy"],"url":"page/handler/pagehandler-page-handler-registry#PageHandlerRegistry+destroy"},{"name":"HandlerRegistry.PageHandlerRegistry","text":["HandlerRegistry","PageHandlerRegistry","HandlerRegistry.PageHandlerRegistry"],"url":"page/handler/pagehandler-page-handler-registry#HandlerRegistry.PageHandlerRegistry"},{"name":"PageNavigationHandler()","text":["PageNavigationHandler","PageNavigationHandler()"],"url":"/pagehandler-page-navigation-handler#new_PageNavigationHandler_new"},{"name":"PageNavigationHandler","text":["page/handler","PageNavigationHandler"],"url":"page/handler/pagehandler-page-navigation-handler#PageNavigationHandler"},{"name":"PageNavigationHandler._window","text":["PageNavigationHandler","_window","PageNavigationHandler._window"],"url":"page/handler/pagehandler-page-navigation-handler#PageNavigationHandler+_window"},{"name":"PageNavigationHandler.init","text":["PageNavigationHandler","init","PageNavigationHandler.init"],"url":"page/handler/pagehandler-page-navigation-handler#PageNavigationHandler+init"},{"name":"PageNavigationHandler.handlePreManagedState","text":["PageNavigationHandler","handlePreManagedState","PageNavigationHandler.handlePreManagedState"],"url":"page/handler/pagehandler-page-navigation-handler#PageNavigationHandler+handlePreManagedState"},{"name":"PageNavigationHandler.handlePostManagedState","text":["PageNavigationHandler","handlePostManagedState","PageNavigationHandler.handlePostManagedState"],"url":"page/handler/pagehandler-page-navigation-handler#PageNavigationHandler+handlePostManagedState"},{"name":"PageNavigationHandler._saveScrollHistory","text":["PageNavigationHandler","_saveScrollHistory","PageNavigationHandler._saveScrollHistory"],"url":"page/handler/pagehandler-page-navigation-handler#PageNavigationHandler+_saveScrollHistory"},{"name":"PageNavigationHandler._scrollTo","text":["PageNavigationHandler","_scrollTo","PageNavigationHandler._scrollTo"],"url":"page/handler/pagehandler-page-navigation-handler#PageNavigationHandler+_scrollTo"},{"name":"PageNavigationHandler._setAddressBar","text":["PageNavigationHandler","_setAddressBar","PageNavigationHandler._setAddressBar"],"url":"page/handler/pagehandler-page-navigation-handler#PageNavigationHandler+_setAddressBar"},{"name":"AbstractPageManager()","text":["AbstractPageManager","AbstractPageManager()"],"url":"/pagemanager-abstract-page-manager#new_AbstractPageManager_new"},{"name":"AbstractPageManager","text":["page/manager","AbstractPageManager"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager"},{"name":"RouteOptions","text":["RouteOptions"],"url":"page/manager/pagemanager-abstract-page-manager#RouteOptions"},{"name":"ManagedPage","text":["ManagedPage"],"url":"page/manager/pagemanager-abstract-page-manager#ManagedPage"},{"name":"AbstractPageManager._pageFactory","text":["AbstractPageManager","_pageFactory","AbstractPageManager._pageFactory"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_pageFactory"},{"name":"AbstractPageManager._pageRenderer","text":["AbstractPageManager","_pageRenderer","AbstractPageManager._pageRenderer"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_pageRenderer"},{"name":"AbstractPageManager._pageStateManager","text":["AbstractPageManager","_pageStateManager","AbstractPageManager._pageStateManager"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_pageStateManager"},{"name":"AbstractPageManager._pageHandlerRegistry","text":["AbstractPageManager","_pageHandlerRegistry","AbstractPageManager._pageHandlerRegistry"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_pageHandlerRegistry"},{"name":"AbstractPageManager._managedPage","text":["AbstractPageManager","_managedPage","AbstractPageManager._managedPage"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_managedPage"},{"name":"AbstractPageManager._previousManagedPage","text":["AbstractPageManager","_previousManagedPage","AbstractPageManager._previousManagedPage"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_previousManagedPage"},{"name":"AbstractPageManager.init","text":["AbstractPageManager","init","AbstractPageManager.init"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+init"},{"name":"AbstractPageManager.manage","text":["AbstractPageManager","manage","AbstractPageManager.manage"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+manage"},{"name":"AbstractPageManager.destroy","text":["AbstractPageManager","destroy","AbstractPageManager.destroy"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+destroy"},{"name":"AbstractPageManager._constructManagedPageValue","text":["AbstractPageManager","_constructManagedPageValue","AbstractPageManager._constructManagedPageValue"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_constructManagedPageValue"},{"name":"AbstractPageManager._storeManagedPageSnapshot","text":["AbstractPageManager","_storeManagedPageSnapshot","AbstractPageManager._storeManagedPageSnapshot"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_storeManagedPageSnapshot"},{"name":"AbstractPageManager._clearManagedPageValue","text":["AbstractPageManager","_clearManagedPageValue","AbstractPageManager._clearManagedPageValue"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_clearManagedPageValue"},{"name":"AbstractPageManager._stripManagedPageValueForPublic","text":["AbstractPageManager","_stripManagedPageValueForPublic","AbstractPageManager._stripManagedPageValueForPublic"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_stripManagedPageValueForPublic"},{"name":"AbstractPageManager._setRestrictedPageStateManager","text":["AbstractPageManager","_setRestrictedPageStateManager","AbstractPageManager._setRestrictedPageStateManager"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_setRestrictedPageStateManager"},{"name":"AbstractPageManager._switchToPageStateManagerAfterLoaded","text":["AbstractPageManager","_switchToPageStateManagerAfterLoaded","AbstractPageManager._switchToPageStateManagerAfterLoaded"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_switchToPageStateManagerAfterLoaded"},{"name":"AbstractPageManager._initPageSource","text":["AbstractPageManager","_initPageSource","AbstractPageManager._initPageSource"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_initPageSource"},{"name":"AbstractPageManager._initController","text":["AbstractPageManager","_initController","AbstractPageManager._initController"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_initController"},{"name":"AbstractPageManager._initExtensions","text":["AbstractPageManager","_initExtensions","AbstractPageManager._initExtensions"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_initExtensions"},{"name":"AbstractPageManager._switchToPageStateManager","text":["AbstractPageManager","_switchToPageStateManager","AbstractPageManager._switchToPageStateManager"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_switchToPageStateManager"},{"name":"AbstractPageManager._loadPageSource","text":["AbstractPageManager","_loadPageSource","AbstractPageManager._loadPageSource"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_loadPageSource"},{"name":"AbstractPageManager._getLoadedControllerState","text":["AbstractPageManager","_getLoadedControllerState","AbstractPageManager._getLoadedControllerState"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_getLoadedControllerState"},{"name":"AbstractPageManager._getLoadedExtensionsState","text":["AbstractPageManager","_getLoadedExtensionsState","AbstractPageManager._getLoadedExtensionsState"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_getLoadedExtensionsState"},{"name":"AbstractPageManager._activatePageSource","text":["AbstractPageManager","_activatePageSource","AbstractPageManager._activatePageSource"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_activatePageSource"},{"name":"AbstractPageManager._activateController","text":["AbstractPageManager","_activateController","AbstractPageManager._activateController"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_activateController"},{"name":"AbstractPageManager._activateExtensions","text":["AbstractPageManager","_activateExtensions","AbstractPageManager._activateExtensions"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_activateExtensions"},{"name":"AbstractPageManager._updatePageSource","text":["AbstractPageManager","_updatePageSource","AbstractPageManager._updatePageSource"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_updatePageSource"},{"name":"AbstractPageManager._getUpdatedControllerState","text":["AbstractPageManager","_getUpdatedControllerState","AbstractPageManager._getUpdatedControllerState"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_getUpdatedControllerState"},{"name":"AbstractPageManager._getUpdatedExtensionsState","text":["AbstractPageManager","_getUpdatedExtensionsState","AbstractPageManager._getUpdatedExtensionsState"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_getUpdatedExtensionsState"},{"name":"AbstractPageManager._deactivatePageSource","text":["AbstractPageManager","_deactivatePageSource","AbstractPageManager._deactivatePageSource"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_deactivatePageSource"},{"name":"AbstractPageManager._deactivateController","text":["AbstractPageManager","_deactivateController","AbstractPageManager._deactivateController"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_deactivateController"},{"name":"AbstractPageManager._deactivateExtensions","text":["AbstractPageManager","_deactivateExtensions","AbstractPageManager._deactivateExtensions"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_deactivateExtensions"},{"name":"AbstractPageManager._destroyPageSource","text":["AbstractPageManager","_destroyPageSource","AbstractPageManager._destroyPageSource"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_destroyPageSource"},{"name":"AbstractPageManager._destroyController","text":["AbstractPageManager","_destroyController","AbstractPageManager._destroyController"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_destroyController"},{"name":"AbstractPageManager._destroyExtensions","text":["AbstractPageManager","_destroyExtensions","AbstractPageManager._destroyExtensions"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_destroyExtensions"},{"name":"AbstractPageManager._clearComponentState","text":["AbstractPageManager","_clearComponentState","AbstractPageManager._clearComponentState"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_clearComponentState"},{"name":"AbstractPageManager._onChangeStateHandler","text":["AbstractPageManager","_onChangeStateHandler","AbstractPageManager._onChangeStateHandler"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_onChangeStateHandler"},{"name":"AbstractPageManager._hasOnlyUpdate","text":["AbstractPageManager","_hasOnlyUpdate","AbstractPageManager._hasOnlyUpdate"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_hasOnlyUpdate"},{"name":"AbstractPageManager._runPreManageHandlers","text":["AbstractPageManager","_runPreManageHandlers","AbstractPageManager._runPreManageHandlers"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_runPreManageHandlers"},{"name":"AbstractPageManager._runPostManageHandlers","text":["AbstractPageManager","_runPostManageHandlers","AbstractPageManager._runPostManageHandlers"],"url":"page/manager/pagemanager-abstract-page-manager#AbstractPageManager+_runPostManageHandlers"},{"name":"ClientPageManager()","text":["ClientPageManager","ClientPageManager()"],"url":"/pagemanager-client-page-manager#new_ClientPageManager_new"},{"name":"ClientPageManager","text":["page/manager","ClientPageManager"],"url":"page/manager/pagemanager-client-page-manager#ClientPageManager"},{"name":"ClientPageManager._window","text":["ClientPageManager","_window","ClientPageManager._window"],"url":"page/manager/pagemanager-client-page-manager#ClientPageManager+_window"},{"name":"ClientPageManager._eventBus","text":["ClientPageManager","_eventBus","ClientPageManager._eventBus"],"url":"page/manager/pagemanager-client-page-manager#ClientPageManager+_eventBus"},{"name":"ClientPageManager._boundOnCustomEventHandler","text":["ClientPageManager","_boundOnCustomEventHandler","ClientPageManager._boundOnCustomEventHandler"],"url":"page/manager/pagemanager-client-page-manager#ClientPageManager+_boundOnCustomEventHandler"},{"name":"ClientPageManager.init","text":["ClientPageManager","init","ClientPageManager.init"],"url":"page/manager/pagemanager-client-page-manager#ClientPageManager+init"},{"name":"ClientPageManager.manage","text":["ClientPageManager","manage","ClientPageManager.manage"],"url":"page/manager/pagemanager-client-page-manager#ClientPageManager+manage"},{"name":"ClientPageManager.destroy","text":["ClientPageManager","destroy","ClientPageManager.destroy"],"url":"page/manager/pagemanager-client-page-manager#ClientPageManager+destroy"},{"name":"ClientPageManager._onCustomEventHandler","text":["ClientPageManager","_onCustomEventHandler","ClientPageManager._onCustomEventHandler"],"url":"page/manager/pagemanager-client-page-manager#ClientPageManager+_onCustomEventHandler"},{"name":"ClientPageManager._parseCustomEvent","text":["ClientPageManager","_parseCustomEvent","ClientPageManager._parseCustomEvent"],"url":"page/manager/pagemanager-client-page-manager#ClientPageManager+_parseCustomEvent"},{"name":"ClientPageManager._handleEventWithController","text":["ClientPageManager","_handleEventWithController","ClientPageManager._handleEventWithController"],"url":"page/manager/pagemanager-client-page-manager#ClientPageManager+_handleEventWithController"},{"name":"ClientPageManager._handleEventWithExtensions","text":["ClientPageManager","_handleEventWithExtensions","ClientPageManager._handleEventWithExtensions"],"url":"page/manager/pagemanager-client-page-manager#ClientPageManager+_handleEventWithExtensions"},{"name":"PageManager","text":["page/manager","PageManager"],"url":"page/manager/pagemanager-page-manager#PageManager"},{"name":"PageManager.init","text":["PageManager","init","PageManager.init"],"url":"page/manager/pagemanager-page-manager#PageManager+init"},{"name":"PageManager.manage","text":["PageManager","manage","PageManager.manage"],"url":"page/manager/pagemanager-page-manager#PageManager+manage"},{"name":"PageManager.destroy","text":["PageManager","destroy","PageManager.destroy"],"url":"page/manager/pagemanager-page-manager#PageManager+destroy"},{"name":"ServerPageManager","text":["page/manager","ServerPageManager"],"url":"page/manager/pagemanager-server-page-manager#ServerPageManager"},{"name":"Events","text":["page/state","Events"],"url":"page/state/pagestate-events#Events"},{"name":"BEFORE_CHANGE_STATE","text":["BEFORE_CHANGE_STATE"],"url":"page/state/pagestate-events#BEFORE_CHANGE_STATE"},{"name":"AFTER_CHANGE_STATE","text":["AFTER_CHANGE_STATE"],"url":"page/state/pagestate-events#AFTER_CHANGE_STATE"},{"name":"PageStateManager","text":["page/state","PageStateManager"],"url":"page/state/pagestate-page-state-manager#PageStateManager"},{"name":"PageStateManager.clear","text":["PageStateManager","clear","PageStateManager.clear"],"url":"page/state/pagestate-page-state-manager#PageStateManager+clear"},{"name":"PageStateManager.setState","text":["PageStateManager","setState","PageStateManager.setState"],"url":"page/state/pagestate-page-state-manager#PageStateManager+setState"},{"name":"PageStateManager.getState","text":["PageStateManager","getState","PageStateManager.getState"],"url":"page/state/pagestate-page-state-manager#PageStateManager+getState"},{"name":"PageStateManager.getAllStates","text":["PageStateManager","getAllStates","PageStateManager.getAllStates"],"url":"page/state/pagestate-page-state-manager#PageStateManager+getAllStates"},{"name":"PageStateManager.getTransactionStatePatches","text":["PageStateManager","getTransactionStatePatches","PageStateManager.getTransactionStatePatches"],"url":"page/state/pagestate-page-state-manager#PageStateManager+getTransactionStatePatches"},{"name":"PageStateManager.beginTransaction","text":["PageStateManager","beginTransaction","PageStateManager.beginTransaction"],"url":"page/state/pagestate-page-state-manager#PageStateManager+beginTransaction"},{"name":"PageStateManager.commitTransaction","text":["PageStateManager","commitTransaction","PageStateManager.commitTransaction"],"url":"page/state/pagestate-page-state-manager#PageStateManager+commitTransaction"},{"name":"PageStateManager.cancelTransaction","text":["PageStateManager","cancelTransaction","PageStateManager.cancelTransaction"],"url":"page/state/pagestate-page-state-manager#PageStateManager+cancelTransaction"},{"name":"PageStateManagerDecorator()","text":["PageStateManagerDecorator","PageStateManagerDecorator()"],"url":"/pagestate-page-state-manager-decorator#new_PageStateManagerDecorator_new"},{"name":"PageStateManagerDecorator","text":["page/state","PageStateManagerDecorator"],"url":"page/state/pagestate-page-state-manager-decorator#PageStateManagerDecorator"},{"name":"PageStateManagerDecorator._pageStateManager","text":["PageStateManagerDecorator","_pageStateManager","PageStateManagerDecorator._pageStateManager"],"url":"page/state/pagestate-page-state-manager-decorator#PageStateManagerDecorator+_pageStateManager"},{"name":"PageStateManagerDecorator._allowedStateKeys","text":["PageStateManagerDecorator","_allowedStateKeys","PageStateManagerDecorator._allowedStateKeys"],"url":"page/state/pagestate-page-state-manager-decorator#PageStateManagerDecorator+_allowedStateKeys"},{"name":"PageStateManagerDecorator.clear","text":["PageStateManagerDecorator","clear","PageStateManagerDecorator.clear"],"url":"page/state/pagestate-page-state-manager-decorator#PageStateManagerDecorator+clear"},{"name":"PageStateManagerDecorator.setState","text":["PageStateManagerDecorator","setState","PageStateManagerDecorator.setState"],"url":"page/state/pagestate-page-state-manager-decorator#PageStateManagerDecorator+setState"},{"name":"PageStateManagerDecorator.getState","text":["PageStateManagerDecorator","getState","PageStateManagerDecorator.getState"],"url":"page/state/pagestate-page-state-manager-decorator#PageStateManagerDecorator+getState"},{"name":"PageStateManagerDecorator.getAllStates","text":["PageStateManagerDecorator","getAllStates","PageStateManagerDecorator.getAllStates"],"url":"page/state/pagestate-page-state-manager-decorator#PageStateManagerDecorator+getAllStates"},{"name":"PageStateManagerDecorator.getTransactionStatePatches","text":["PageStateManagerDecorator","getTransactionStatePatches","PageStateManagerDecorator.getTransactionStatePatches"],"url":"page/state/pagestate-page-state-manager-decorator#PageStateManagerDecorator+getTransactionStatePatches"},{"name":"PageStateManagerDecorator.beginTransaction","text":["PageStateManagerDecorator","beginTransaction","PageStateManagerDecorator.beginTransaction"],"url":"page/state/pagestate-page-state-manager-decorator#PageStateManagerDecorator+beginTransaction"},{"name":"PageStateManagerDecorator.commitTransaction","text":["PageStateManagerDecorator","commitTransaction","PageStateManagerDecorator.commitTransaction"],"url":"page/state/pagestate-page-state-manager-decorator#PageStateManagerDecorator+commitTransaction"},{"name":"PageStateManagerDecorator.cancelTransaction","text":["PageStateManagerDecorator","cancelTransaction","PageStateManagerDecorator.cancelTransaction"],"url":"page/state/pagestate-page-state-manager-decorator#PageStateManagerDecorator+cancelTransaction"},{"name":"PageStateManagerImpl()","text":["PageStateManagerImpl","PageStateManagerImpl()"],"url":"/pagestate-page-state-manager-impl#new_PageStateManagerImpl_new"},{"name":"PageStateManagerImpl","text":["page/state","PageStateManagerImpl"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl"},{"name":"PageStateManagerImpl._states","text":["PageStateManagerImpl","_states","PageStateManagerImpl._states"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl+_states"},{"name":"PageStateManagerImpl._statePatchQueue","text":["PageStateManagerImpl","_statePatchQueue","PageStateManagerImpl._statePatchQueue"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl+_statePatchQueue"},{"name":"PageStateManagerImpl._cursor","text":["PageStateManagerImpl","_cursor","PageStateManagerImpl._cursor"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl+_cursor"},{"name":"PageStateManagerImpl.onChange","text":["PageStateManagerImpl","onChange","PageStateManagerImpl.onChange"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl+onChange"},{"name":"PageStateManagerImpl._dispatcher","text":["PageStateManagerImpl","_dispatcher","PageStateManagerImpl._dispatcher"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl+_dispatcher"},{"name":"PageStateManagerImpl._ongoingTransaction","text":["PageStateManagerImpl","_ongoingTransaction","PageStateManagerImpl._ongoingTransaction"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl+_ongoingTransaction"},{"name":"PageStateManagerImpl.clear","text":["PageStateManagerImpl","clear","PageStateManagerImpl.clear"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl+clear"},{"name":"PageStateManagerImpl.setState","text":["PageStateManagerImpl","setState","PageStateManagerImpl.setState"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl+setState"},{"name":"PageStateManagerImpl.getState","text":["PageStateManagerImpl","getState","PageStateManagerImpl.getState"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl+getState"},{"name":"PageStateManagerImpl.getAllStates","text":["PageStateManagerImpl","getAllStates","PageStateManagerImpl.getAllStates"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl+getAllStates"},{"name":"PageStateManagerImpl.getTransactionStatePatches","text":["PageStateManagerImpl","getTransactionStatePatches","PageStateManagerImpl.getTransactionStatePatches"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl+getTransactionStatePatches"},{"name":"PageStateManagerImpl.beginTransaction","text":["PageStateManagerImpl","beginTransaction","PageStateManagerImpl.beginTransaction"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl+beginTransaction"},{"name":"PageStateManagerImpl.commitTransaction","text":["PageStateManagerImpl","commitTransaction","PageStateManagerImpl.commitTransaction"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl+commitTransaction"},{"name":"PageStateManagerImpl.cancelTransaction","text":["PageStateManagerImpl","cancelTransaction","PageStateManagerImpl.cancelTransaction"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl+cancelTransaction"},{"name":"PageStateManagerImpl._eraseExcessHistory","text":["PageStateManagerImpl","_eraseExcessHistory","PageStateManagerImpl._eraseExcessHistory"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl+_eraseExcessHistory"},{"name":"PageStateManagerImpl._pushToHistory","text":["PageStateManagerImpl","_pushToHistory","PageStateManagerImpl._pushToHistory"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl+_pushToHistory"},{"name":"PageStateManagerImpl._callOnChangeCallback","text":["PageStateManagerImpl","_callOnChangeCallback","PageStateManagerImpl._callOnChangeCallback"],"url":"page/state/pagestate-page-state-manager-impl#PageStateManagerImpl+_callOnChangeCallback"},{"name":"AbstractPageRenderer()","text":["AbstractPageRenderer","AbstractPageRenderer()"],"url":"/pagerenderer-abstract-page-renderer#new_AbstractPageRenderer_new"},{"name":"AbstractPageRenderer","text":["page/renderer","AbstractPageRenderer"],"url":"page/renderer/pagerenderer-abstract-page-renderer#AbstractPageRenderer"},{"name":"AbstractPageRenderer._factory","text":["AbstractPageRenderer","_factory","AbstractPageRenderer._factory"],"url":"page/renderer/pagerenderer-abstract-page-renderer#AbstractPageRenderer+_factory"},{"name":"AbstractPageRenderer._Helper","text":["AbstractPageRenderer","_Helper","AbstractPageRenderer._Helper"],"url":"page/renderer/pagerenderer-abstract-page-renderer#AbstractPageRenderer+_Helper"},{"name":"AbstractPageRenderer._ReactDOM","text":["AbstractPageRenderer","_ReactDOM","AbstractPageRenderer._ReactDOM"],"url":"page/renderer/pagerenderer-abstract-page-renderer#AbstractPageRenderer+_ReactDOM"},{"name":"AbstractPageRenderer._dispatcher","text":["AbstractPageRenderer","_dispatcher","AbstractPageRenderer._dispatcher"],"url":"page/renderer/pagerenderer-abstract-page-renderer#AbstractPageRenderer+_dispatcher"},{"name":"AbstractPageRenderer._settings","text":["AbstractPageRenderer","_settings","AbstractPageRenderer._settings"],"url":"page/renderer/pagerenderer-abstract-page-renderer#AbstractPageRenderer+_settings"},{"name":"AbstractPageRenderer._reactiveView","text":["AbstractPageRenderer","_reactiveView","AbstractPageRenderer._reactiveView"],"url":"page/renderer/pagerenderer-abstract-page-renderer#AbstractPageRenderer+_reactiveView"},{"name":"AbstractPageRenderer.mount","text":["AbstractPageRenderer","mount","AbstractPageRenderer.mount"],"url":"page/renderer/pagerenderer-abstract-page-renderer#AbstractPageRenderer+mount"},{"name":"AbstractPageRenderer.update","text":["AbstractPageRenderer","update","AbstractPageRenderer.update"],"url":"page/renderer/pagerenderer-abstract-page-renderer#AbstractPageRenderer+update"},{"name":"AbstractPageRenderer.unmount","text":["AbstractPageRenderer","unmount","AbstractPageRenderer.unmount"],"url":"page/renderer/pagerenderer-abstract-page-renderer#AbstractPageRenderer+unmount"},{"name":"AbstractPageRenderer.setState","text":["AbstractPageRenderer","setState","AbstractPageRenderer.setState"],"url":"page/renderer/pagerenderer-abstract-page-renderer#AbstractPageRenderer+setState"},{"name":"AbstractPageRenderer._generateViewProps","text":["AbstractPageRenderer","_generateViewProps","AbstractPageRenderer._generateViewProps"],"url":"page/renderer/pagerenderer-abstract-page-renderer#AbstractPageRenderer+_generateViewProps"},{"name":"AbstractPageRenderer._getWrappedPageView","text":["AbstractPageRenderer","_getWrappedPageView","AbstractPageRenderer._getWrappedPageView"],"url":"page/renderer/pagerenderer-abstract-page-renderer#AbstractPageRenderer+_getWrappedPageView"},{"name":"AbstractPageRenderer._getDocumentView","text":["AbstractPageRenderer","_getDocumentView","AbstractPageRenderer._getDocumentView"],"url":"page/renderer/pagerenderer-abstract-page-renderer#AbstractPageRenderer+_getDocumentView"},{"name":"BlankManagedRootView","text":["page/renderer","BlankManagedRootView"],"url":"page/renderer/pagerenderer-blank-managed-root-view#BlankManagedRootView"},{"name":"BlankManagedRootView.render","text":["BlankManagedRootView","render","BlankManagedRootView.render"],"url":"page/renderer/pagerenderer-blank-managed-root-view#BlankManagedRootView+render"},{"name":"ClientPageRenderer()","text":["ClientPageRenderer","ClientPageRenderer()"],"url":"/pagerenderer-client-page-renderer#new_ClientPageRenderer_new"},{"name":"ClientPageRenderer","text":["page/renderer","ClientPageRenderer"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer"},{"name":"ClientPageRenderer._firstTime","text":["ClientPageRenderer","_firstTime","ClientPageRenderer._firstTime"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer+_firstTime"},{"name":"ClientPageRenderer._window","text":["ClientPageRenderer","_window","ClientPageRenderer._window"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer+_window"},{"name":"ClientPageRenderer._viewContainer","text":["ClientPageRenderer","_viewContainer","ClientPageRenderer._viewContainer"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer+_viewContainer"},{"name":"ClientPageRenderer.mount","text":["ClientPageRenderer","mount","ClientPageRenderer.mount"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer+mount"},{"name":"ClientPageRenderer.update","text":["ClientPageRenderer","update","ClientPageRenderer.update"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer+update"},{"name":"ClientPageRenderer.unmount","text":["ClientPageRenderer","unmount","ClientPageRenderer.unmount"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer+unmount"},{"name":"ClientPageRenderer._handleError","text":["ClientPageRenderer","_handleError","ClientPageRenderer._handleError"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer+_handleError"},{"name":"ClientPageRenderer._patchPromisesToState","text":["ClientPageRenderer","_patchPromisesToState","ClientPageRenderer._patchPromisesToState"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer+_patchPromisesToState"},{"name":"ClientPageRenderer._startBatchTransactions","text":["ClientPageRenderer","_startBatchTransactions","ClientPageRenderer._startBatchTransactions"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer+_startBatchTransactions"},{"name":"ClientPageRenderer._setStateWithoutRendering","text":["ClientPageRenderer","_setStateWithoutRendering","ClientPageRenderer._setStateWithoutRendering"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer+_setStateWithoutRendering"},{"name":"ClientPageRenderer._patchStateToClearPreviousState","text":["ClientPageRenderer","_patchStateToClearPreviousState","ClientPageRenderer._patchStateToClearPreviousState"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer+_patchStateToClearPreviousState"},{"name":"ClientPageRenderer._renderToDOM","text":["ClientPageRenderer","_renderToDOM","ClientPageRenderer._renderToDOM"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer+_renderToDOM"},{"name":"ClientPageRenderer._separatePromisesAndValues","text":["ClientPageRenderer","_separatePromisesAndValues","ClientPageRenderer._separatePromisesAndValues"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer+_separatePromisesAndValues"},{"name":"ClientPageRenderer._updateMetaAttributes","text":["ClientPageRenderer","_updateMetaAttributes","ClientPageRenderer._updateMetaAttributes"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer+_updateMetaAttributes"},{"name":"ClientPageRenderer._updateMetaNameAttributes","text":["ClientPageRenderer","_updateMetaNameAttributes","ClientPageRenderer._updateMetaNameAttributes"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer+_updateMetaNameAttributes"},{"name":"ClientPageRenderer._updateMetaPropertyAttributes","text":["ClientPageRenderer","_updateMetaPropertyAttributes","ClientPageRenderer._updateMetaPropertyAttributes"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer+_updateMetaPropertyAttributes"},{"name":"ClientPageRenderer._updateMetaLinkAttributes","text":["ClientPageRenderer","_updateMetaLinkAttributes","ClientPageRenderer._updateMetaLinkAttributes"],"url":"page/renderer/pagerenderer-client-page-renderer#ClientPageRenderer+_updateMetaLinkAttributes"},{"name":"ComponentUtils()","text":["ComponentUtils","ComponentUtils()"],"url":"/pagerenderer-component-utils#new_ComponentUtils_new"},{"name":"ComponentUtils","text":["page/renderer","ComponentUtils"],"url":"page/renderer/pagerenderer-component-utils#ComponentUtils"},{"name":"ComponentUtils._oc","text":["ComponentUtils","_oc","ComponentUtils._oc"],"url":"page/renderer/pagerenderer-component-utils#ComponentUtils+_oc"},{"name":"ComponentUtils._utilityClasses","text":["ComponentUtils","_utilityClasses","ComponentUtils._utilityClasses"],"url":"page/renderer/pagerenderer-component-utils#ComponentUtils+_utilityClasses"},{"name":"ComponentUtils._utilities","text":["ComponentUtils","_utilities","ComponentUtils._utilities"],"url":"page/renderer/pagerenderer-component-utils#ComponentUtils+_utilities"},{"name":"ComponentUtils._utilityReferrers","text":["ComponentUtils","_utilityReferrers","ComponentUtils._utilityReferrers"],"url":"page/renderer/pagerenderer-component-utils#ComponentUtils+_utilityReferrers"},{"name":"ComponentUtils.register","text":["ComponentUtils","register","ComponentUtils.register"],"url":"page/renderer/pagerenderer-component-utils#ComponentUtils+register"},{"name":"ComponentUtils.getUtils","text":["ComponentUtils","getUtils","ComponentUtils.getUtils"],"url":"page/renderer/pagerenderer-component-utils#ComponentUtils+getUtils"},{"name":"ComponentUtils.getReferrers","text":["ComponentUtils","getReferrers","ComponentUtils.getReferrers"],"url":"page/renderer/pagerenderer-component-utils#ComponentUtils+getReferrers"},{"name":"ComponentUtils._createUtilityInstance","text":["ComponentUtils","_createUtilityInstance","ComponentUtils._createUtilityInstance"],"url":"page/renderer/pagerenderer-component-utils#ComponentUtils+_createUtilityInstance"},{"name":"ErrorBoundary","text":["page/renderer","ErrorBoundary"],"url":"page/renderer/pagerenderer-error-boundary#ErrorBoundary"},{"name":"Events","text":["page/renderer","Events"],"url":"page/renderer/pagerenderer-events#Events"},{"name":"MOUNTED","text":["MOUNTED"],"url":"page/renderer/pagerenderer-events#MOUNTED"},{"name":"UPDATED","text":["UPDATED"],"url":"page/renderer/pagerenderer-events#UPDATED"},{"name":"UNMOUNTED","text":["UNMOUNTED"],"url":"page/renderer/pagerenderer-events#UNMOUNTED"},{"name":"ERROR","text":["ERROR"],"url":"page/renderer/pagerenderer-events#ERROR"},{"name":"PageRenderer","text":["page/renderer","PageRenderer"],"url":"page/renderer/pagerenderer-page-renderer#PageRenderer"},{"name":"PageRenderer.mount","text":["PageRenderer","mount","PageRenderer.mount"],"url":"page/renderer/pagerenderer-page-renderer#PageRenderer+mount"},{"name":"PageRenderer.update","text":["PageRenderer","update","PageRenderer.update"],"url":"page/renderer/pagerenderer-page-renderer#PageRenderer+update"},{"name":"PageRenderer.unmount","text":["PageRenderer","unmount","PageRenderer.unmount"],"url":"page/renderer/pagerenderer-page-renderer#PageRenderer+unmount"},{"name":"PageRenderer.setState","text":["PageRenderer","setState","PageRenderer.setState"],"url":"page/renderer/pagerenderer-page-renderer#PageRenderer+setState"},{"name":"PageRendererFactory()","text":["PageRendererFactory","PageRendererFactory()"],"url":"/pagerenderer-page-renderer-factory#new_PageRendererFactory_new"},{"name":"PageRendererFactory","text":["page/renderer","PageRendererFactory"],"url":"page/renderer/pagerenderer-page-renderer-factory#PageRendererFactory"},{"name":"PageRendererFactory._componentUtils","text":["PageRendererFactory","_componentUtils","PageRendererFactory._componentUtils"],"url":"page/renderer/pagerenderer-page-renderer-factory#PageRendererFactory+_componentUtils"},{"name":"PageRendererFactory._React","text":["PageRendererFactory","_React","PageRendererFactory._React"],"url":"page/renderer/pagerenderer-page-renderer-factory#PageRendererFactory+_React"},{"name":"PageRendererFactory.getUtils","text":["PageRendererFactory","getUtils","PageRendererFactory.getUtils"],"url":"page/renderer/pagerenderer-page-renderer-factory#PageRendererFactory+getUtils"},{"name":"PageRendererFactory.getDocumentView","text":["PageRendererFactory","getDocumentView","PageRendererFactory.getDocumentView"],"url":"page/renderer/pagerenderer-page-renderer-factory#PageRendererFactory+getDocumentView"},{"name":"PageRendererFactory.getManagedRootView","text":["PageRendererFactory","getManagedRootView","PageRendererFactory.getManagedRootView"],"url":"page/renderer/pagerenderer-page-renderer-factory#PageRendererFactory+getManagedRootView"},{"name":"PageRendererFactory._resolveClassConstructor","text":["PageRendererFactory","_resolveClassConstructor","PageRendererFactory._resolveClassConstructor"],"url":"page/renderer/pagerenderer-page-renderer-factory#PageRendererFactory+_resolveClassConstructor"},{"name":"PageRendererFactory.wrapView","text":["PageRendererFactory","wrapView","PageRendererFactory.wrapView"],"url":"page/renderer/pagerenderer-page-renderer-factory#PageRendererFactory+wrapView"},{"name":"PageRendererFactory.createReactElementFactory","text":["PageRendererFactory","createReactElementFactory","PageRendererFactory.createReactElementFactory"],"url":"page/renderer/pagerenderer-page-renderer-factory#PageRendererFactory+createReactElementFactory"},{"name":"module:ima","text":["page/renderer","ima","module:ima","AbstractPageRenderer"],"url":"page/renderer/pagerenderer-server-page-renderer#module:ima"},{"name":"module:ima~ServerPageRenderer()","text":["module:ima~ServerPageRenderer","ServerPageRenderer","module:ima~ServerPageRenderer()"],"url":"page/renderer/pagerenderer-server-page-renderer#new_ServerPageRenderer_new"},{"name":"module:ima~ServerPageRenderer._response","text":["module:ima~ServerPageRenderer","_response","module:ima~ServerPageRenderer._response"],"url":"page/renderer/pagerenderer-server-page-renderer#module:ima~ServerPageRenderer+_response"},{"name":"module:ima~ServerPageRenderer._cache","text":["module:ima~ServerPageRenderer","_cache","module:ima~ServerPageRenderer._cache"],"url":"page/renderer/pagerenderer-server-page-renderer#module:ima~ServerPageRenderer+_cache"},{"name":"module:ima~ServerPageRenderer._getRevivalSettings","text":["module:ima~ServerPageRenderer","_getRevivalSettings","module:ima~ServerPageRenderer._getRevivalSettings"],"url":"page/renderer/pagerenderer-server-page-renderer#module:ima~ServerPageRenderer+_getRevivalSettings"},{"name":"module:ima~ServerPageRenderer._wrapEachKeyToPromise","text":["module:ima~ServerPageRenderer","_wrapEachKeyToPromise","module:ima~ServerPageRenderer._wrapEachKeyToPromise"],"url":"page/renderer/pagerenderer-server-page-renderer#module:ima~ServerPageRenderer+_wrapEachKeyToPromise"},{"name":"module:ima~ServerPageRenderer._renderPage","text":["module:ima~ServerPageRenderer","_renderPage","module:ima~ServerPageRenderer._renderPage"],"url":"page/renderer/pagerenderer-server-page-renderer#module:ima~ServerPageRenderer+_renderPage"},{"name":"module:ima~ServerPageRenderer._renderPageContentToString","text":["module:ima~ServerPageRenderer","_renderPageContentToString","module:ima~ServerPageRenderer._renderPageContentToString"],"url":"page/renderer/pagerenderer-server-page-renderer#module:ima~ServerPageRenderer+_renderPageContentToString"},{"name":"module:ima~ServerPageRenderer","text":["module:ima","ServerPageRenderer","module:ima~ServerPageRenderer"],"url":"page/renderer/pagerenderer-server-page-renderer#module:ima~ServerPageRenderer"},{"name":"module:ima~mount","text":["module:ima","mount","module:ima~mount"],"url":"page/renderer/pagerenderer-server-page-renderer#module:ima~mount"},{"name":"module:ima~update","text":["module:ima","update","module:ima~update"],"url":"page/renderer/pagerenderer-server-page-renderer#module:ima~update"},{"name":"module:ima~unmount","text":["module:ima","unmount","module:ima~unmount"],"url":"page/renderer/pagerenderer-server-page-renderer#module:ima~unmount"},{"name":"Types","text":["page/renderer","Types"],"url":"page/renderer/pagerenderer-types#Types"},{"name":"RENDER","text":["RENDER"],"url":"page/renderer/pagerenderer-types#RENDER"},{"name":"HYDRATE","text":["HYDRATE"],"url":"page/renderer/pagerenderer-types#HYDRATE"},{"name":"UNMOUNT","text":["UNMOUNT"],"url":"page/renderer/pagerenderer-types#UNMOUNT"},{"name":"ViewAdapter()","text":["ViewAdapter","ViewAdapter()"],"url":"/pagerenderer-view-adapter#new_ViewAdapter_new"},{"name":"ViewAdapter","text":["page/renderer","ViewAdapter"],"url":"page/renderer/pagerenderer-view-adapter#ViewAdapter"},{"name":"ViewAdapter.state","text":["ViewAdapter","state","ViewAdapter.state"],"url":"page/renderer/pagerenderer-view-adapter#ViewAdapter+state"},{"name":"ViewAdapter._view","text":["ViewAdapter","_view","ViewAdapter._view"],"url":"page/renderer/pagerenderer-view-adapter#ViewAdapter+_view"},{"name":"ViewAdapter._getContextValue","text":["ViewAdapter","_getContextValue","ViewAdapter._getContextValue"],"url":"page/renderer/pagerenderer-view-adapter#ViewAdapter+_getContextValue"},{"name":"ViewAdapter.contextSelectors","text":["ViewAdapter","contextSelectors","ViewAdapter.contextSelectors"],"url":"page/renderer/pagerenderer-view-adapter#ViewAdapter+contextSelectors"},{"name":"ViewAdapter.createContext","text":["ViewAdapter","createContext","ViewAdapter.createContext"],"url":"page/renderer/pagerenderer-view-adapter#ViewAdapter+createContext"},{"name":"ViewAdapter.render","text":["ViewAdapter","render","ViewAdapter.render"],"url":"page/renderer/pagerenderer-view-adapter#ViewAdapter+render"}] \ No newline at end of file diff --git a/docs/_data/menu.json b/docs/_data/menu.json deleted file mode 100644 index 38497139f5..0000000000 --- a/docs/_data/menu.json +++ /dev/null @@ -1,27 +0,0 @@ -[ - { - "text": "Home", - "title": "", - "url": "/" - }, - { - "text": "Docs", - "title": "Browse through the documentation to learn more.", - "url": "/docs" - }, - { - "text": "Tutorial", - "title": "Check out our Tutorial to learn more about IMA.js.", - "url": "/tutorial/introduction" - }, - { - "text": "API", - "title": "Browse through the API for details on code usage.", - "url": "/api" - }, - { - "text": "Examples", - "title": "Check out our demos and learn by example.", - "url": "/examples" - } -] diff --git a/docs/_data/notable-plugins.json b/docs/_data/notable-plugins.json deleted file mode 100644 index c0e7fd4094..0000000000 --- a/docs/_data/notable-plugins.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "text": "[Analytics plugin](https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-analytic){:target=\"_blank\"}, that provides interface to custom analytics, along with [FB pixel](https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-analytic-fb-pixel){:target=\"_blank\"} and [Google Analytics](https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-analytic-google){:target=\"_blank\"} plugins.", - "title": "Analytics plugin" - }, - { - "text": "[Generic REST API client](https://github.com/seznam/IMA.js-plugins/blob/master/packages/plugin-rest-client){:target=\"_blank\"} plugin for the IMA application framework", - "title": "REST API client" - }, - { - "text": "[Plugin Logger](https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-logger){:target=\"_blank\"}, a logging tool for IMA.js framework.", - "title": "Logger" - }, - { - "text": "Plugin to [simplify loading 3rd party scripts](https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-script-loader){:target=\"_blank\"} for the IMA.js application", - "title": "Script loader" - }, - { - "text": "Reselect-style [page state selector](https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-select){:target=\"_blank\"} plugin for IMA.js components.", - "title": "Plugin Select" - }, - { - "text": "And [many more...](/docs/available-plugins)", - "title": "more" - } -] diff --git a/docs/_data/platforms-ima.json b/docs/_data/platforms-ima.json deleted file mode 100644 index 3cb79d999c..0000000000 --- a/docs/_data/platforms-ima.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "img": "/img/platforms/ie.png", - "title": "IE 10+" - }, - { - "img": "/img/platforms/edge.png", - "title": "Edge" - }, - { - "img": "/img/platforms/firefox.png", - "title": "Firefox" - }, - { - "img": "/img/platforms/chrome.png", - "title": "Chrome" - }, - { - "img": "/img/platforms/safari.png", - "title": "Safari" - }, - { - "img": "/img/platforms/opera.png", - "title": "Opera" - }, - { - "img": "/img/platforms/ios-safari.png", - "title": "iOS" - }, - { - "img": "/img/platforms/android-browser.png", - "title": "Android Browser" - }, - { - "img": "/img/platforms/android.png", - "title": "Chrome for Android" - } -] \ No newline at end of file diff --git a/docs/_data/platforms-spa.json b/docs/_data/platforms-spa.json deleted file mode 100644 index 3ef6872a1a..0000000000 --- a/docs/_data/platforms-spa.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "img": "/img/platforms/cordova.png", - "title": "Cordova" - }, - { - "img": "/img/platforms/phonegap.png", - "title": "Phonegap" - } -] \ No newline at end of file diff --git a/docs/_data/plugins.json b/docs/_data/plugins.json deleted file mode 100644 index 8184040972..0000000000 --- a/docs/_data/plugins.json +++ /dev/null @@ -1,82 +0,0 @@ -[ - { - "name": "plugin-analytic", - "url": "https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-analytic", - "description": "This is the abstract analytic plugin for the IMA.js application, it provides an interface to which other analytics plugin can easily hook into." - }, - { - "name": "plugin-analytic-fb-pixel", - "url": "https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-analytic-fb-pixel", - "description": "Facebook Pixel analytic plugin, implementing the **plugin-analytic** interface." - }, - { - "name": "plugin-analytic-google", - "url": "https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-analytic-google", - "description": "Google Analytics plugin, implementing the **plugin-analytic** interface." - }, - { - "name": "plugin-less-constants", - "url": "https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-less-constants", - "description": "Very useful IMA.js plugin for **sharing constants between JavaScript and LESS code**. Allows us to manage all constants in a separate `*.js` files which are then compiled into corresponding `*.less` file that can be used in our styles " - }, - { - "name": "plugin-logger", - "url": "https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-logger", - "description": "A logging tool for IMA.js framework. It also provides `babel-plugin`, that can strip out all logging messages if desired." - }, - { - "name": "plugin-resource-loader", - "url": "https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-resource-loader", - "description": "This is the base plugin for **loading scripts and styles** for the IMA.js application through promisified interface." - }, - { - "name": "plugin-rest-client", - "url": "https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-rest-client", - "description": "Generic **REST API** client plugin for the IMA application framework." - }, - { - "name": "plugin-script-loader", - "url": "https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-script-loader", - "description": "A plugin for loading 3rd party scripts for the IMA.js application." - }, - { - "name": "plugin-select", - "url": "https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-select", - "description": "The plugin **selects extra props from page state to your component**. It uses HOC at the background. It can be very useful for example some analytical data. It has a similar interface to react-redux connect HOC component." - }, - { - "name": "plugin-self-xss", - "url": "https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-self-xss", - "description": "This plugin is trying to mitigate Self-XSS security attack by sending simple message into console." - }, - { - "name": "plugin-shared-cache", - "url": "https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-shared-cache", - "description": "A utility for **creating caches** that are shared between requests by all IMA.js application instances within the same node.js process." - }, - { - "name": "plugin-style-loader", - "url": "https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-style-loader", - "description": "A plugin for **loading 3rd party styles** for the IMA.js application." - }, - { - "name": "plugin-useragent", - "url": "https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-useragent", - "description": "A plugin for **parsing** client's **user agent**." - }, - { - "name": "plugin-xhr", - "url": "https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-xhr", - "description": "Helper plugin **simplifying the usage of the XMLHttpRequest API**. This plugin is meant to be used only at the client side and only where the fetch API is insufficient at the moment." - }, - { - "name": "plugin-local-storage", - "url": "https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-local-storage", - "description": "A plugin providing **simplified access to browser's local storage**, through extending the IMA.js Storage interface." - }, - { - "name": "plugin-testing-integration", - "url": "https://github.com/seznam/IMA.js-plugins/tree/master/packages/plugin-testing-integration", - "description": "A plugin for **integration testing** of any IMA.js based application." - } -] diff --git a/docs/_data/references.json b/docs/_data/references.json deleted file mode 100644 index 9fa18e4df6..0000000000 --- a/docs/_data/references.json +++ /dev/null @@ -1,62 +0,0 @@ -[ - { - "img": "/img/references/seznamzpravy.jpg", - "text": "Seznam Zprávy is one of the top Czech news platforms, which delivers compelling, diverse and visually engaging stories in the form of a text and a video.", - "title": "Seznamzpravy.cz", - "url": "https://www.seznamzpravy.cz" - }, - { - "img": "/img/references/novinky.jpg", - "text": "One of the biggest and most visited news website in the Czech Republic. It offers coverage of the latest news from home and around the world in one place.", - "title": "Novinky.cz", - "url": "https://www.novinky.cz" - }, - { - "img": "/img/references/prozeny.jpg", - "text": "The biggest online lifestyle magazine for women in the Czech Republic. Current articles about fashion, health and lifestyle, living, family, and a great section of recipes.", - "title": "Prozeny.cz", - "url": "https://www.prozeny.cz" - }, - { - "img": "/img/references/garaz.jpg", - "text": "The biggest online magazine about cars and motorcycles in the Czech Republic where you can found current articles about news from the car industry, service tips, reports from car events and wonderful video section.", - "title": "Garaz.cz", - "url": "https://www.garaz.cz" - }, - { - "img": "/img/references/pocasi.jpg", - "text": "The most visited weather forecast website in the Czech republic. Offers weather forecast up to 6 days ahead for every place on Earth and interactive map with meteoradar.", - "title": "Počasí.cz", - "url": "https://pocasi.seznam.cz" - }, - { - "img": "/img/references/tv_seznam.jpg", - "text": "TV broadcast schedule for at least 14 days ahead, available for more than 100 most watched TV stations. Horizontal and vertical layout, notifications and social sharing is available.", - "title": "tv.seznam.cz", - "url": "https://tv.seznam.cz" - }, - { - "img": "/img/references/sbazar.jpg", - "text": "Sbazar.cz is one of the largest online peer to peer marketers in the Czech Republic. People can choose between 1,800,000 current offers. Advertising is clearly arranged into individual categories with the possibility of searching in a specific place in the Czechia.", - "title": "SBazar.cz", - "url": "https://www.sbazar.cz/" - }, - { - "img": "/img/references/sauto.jpg", - "text": "Sauto is the biggest marketplace of used and new cars in the Czech Republic. People can choose from up to 90,000 current sellers' ads from across the country. Advanced filtering makes finding a car easier.", - "title": "SAuto.cz", - "url": "https://www.sauto.cz/" - }, - { - "img": "/img/references/hry.jpg", - "text": "The Czech video game portal where you find your next video game to play. There are plenty of video games for different devices, including on-line browser games.", - "title": "Hry.cz", - "url": "https://www.hry.cz" - }, - { - "img": "/img/references/seznam_vychytavky.jpg", - "text": "The news feed of the Seznam.cz company where you can see the new features of all Seznam.cz services.", - "title": "Seznam.cz/vychytavky", - "url": "https://www.seznam.cz/vychytavky" - } -] diff --git a/docs/_data/tutorial.json b/docs/_data/tutorial.json deleted file mode 100644 index 2df5947a2d..0000000000 --- a/docs/_data/tutorial.json +++ /dev/null @@ -1,282 +0,0 @@ -[ - { - "title": "tutorial", - "menu": [ - { - "title": "1. Introduction", - "url": "/tutorial/introduction", - "submenu": [ - { - "title": "Setup", - "url": "/tutorial/introduction#setup" - }, - { - "title": "Dev server", - "url": "/tutorial/introduction#dev-server", - "submenu": [ - { - "title": "ENOSPC error", - "url": "/tutorial/introduction#enospc-error" - } - ] - }, - { - "title": "Directories and files in your application", - "url": "/tutorial/introduction#directories-and-files-in-your-application" - } - ] - }, - { - "title": "2. Static view", - "url": "/tutorial/static-view", - "submenu": [ - { - "title": "View Component", - "url": "/tutorial/static-view#view-component" - }, - { - "title": "Guestbook form & SMACSS", - "url": "/tutorial/static-view#guestbook-form--smacss" - }, - { - "title": "Styling our form", - "url": "/tutorial/static-view#styling-our-form", - "submenu": [ - { - "title": "Defining custom styles", - "url": "/tutorial/static-view#defining-custom-styles" - } - ] - }, - { - "title": "Rendering the whole document", - "url": "/tutorial/static-view#rendering-the-whole-document" - }, - { - "title": "Notes on ES2015 modules and IMA.js namespaces", - "url": "/tutorial/static-view#notes-on-es2015-modules-and-imajs-namespaces" - } - ] - }, - { - "title": "3. Adding some state", - "url": "/tutorial/adding-some-state", - "submenu": [ - { - "title": "Controller & error handling", - "url": "/tutorial/adding-some-state#controller--error-handling" - }, - { - "title": "Fetching posts", - "url": "/tutorial/adding-some-state#fetching-posts", - "submenu": [ - { - "title": "Splitting the render method", - "url": "/tutorial/adding-some-state#splitting-the-render-method" - } - ] - }, - { - "title": "Creating new components", - "url": "/tutorial/adding-some-state#creating-new-components" - }, - { - "title": "Notes on communication between controllers and views", - "url": "/tutorial/adding-some-state#notes-on-communication-between-controllers-and-views", - "submenu": [ - { - "title": "Passing state", - "url": "/tutorial/adding-some-state#passing-state" - }, - { - "title": "Emitting events using the EventBus", - "url": "/tutorial/adding-some-state#emitting-events-using-the-eventbus" - }, - { - "title": "Emitting events using the Dispatcher", - "url": "/tutorial/adding-some-state#emitting-events-using-the-dispatcher" - } - ] - } - ] - }, - { - "title": "4. Fetching the data", - "url": "/tutorial/fetching-the-data-from-the-server", - "submenu": [ - { - "title": "Mocking REST API", - "url": "/tutorial/fetching-the-data-from-the-server#mocking-rest-api", - "submenu": [ - { - "title": "Entity Class", - "url": "/tutorial/fetching-the-data-from-the-server#entity-class" - }, - { - "title": "Factory Class", - "url": "/tutorial/fetching-the-data-from-the-server#factory-class" - }, - { - "title": "Resource Class", - "url": "/tutorial/fetching-the-data-from-the-server#resource-class" - }, - { - "title": "Service class", - "url": "/tutorial/fetching-the-data-from-the-server#service-class" - } - ] - }, - { - "title": "Dependency injection", - "url": "/tutorial/fetching-the-data-from-the-server#dependency-injection", - "submenu": [ - { - "title": "Object container & bind.js", - "url": "/tutorial/fetching-the-data-from-the-server#object-container--bindjs" - }, - { - "title": "Using PostServices in HomeController", - "url": "/tutorial/fetching-the-data-from-the-server#using-postservices-in-homecontroller" - } - ] - }, - { - "title": "Server-side rendering", - "url": "/tutorial/fetching-the-data-from-the-server#server-side-rendering" - } - ] - }, - { - "title": "5. Writing posts", - "url": "/tutorial/writing-posts", - "submenu": [ - { - "title": "Processing input from user", - "url": "/tutorial/writing-posts#processing-input-from-user" - }, - { - "title": "Updating the form", - "url": "/tutorial/writing-posts#updating-the-form" - }, - { - "title": "Firing EventBus events", - "url": "/tutorial/writing-posts#firing-eventbus-events" - }, - { - "title": "Capturing EventBus events", - "url": "/tutorial/writing-posts#capturing-eventbus-events", - "submenu": [ - { - "title": "Updating our post service classes", - "url": "/tutorial/writing-posts#updating-our-post-service-classes" - }, - { - "title": "Defining the onPostSubmitted method", - "url": "/tutorial/writing-posts#defining-the-onpostsubmitted-method" - } - ] - }, - { - "title": "Updating the API", - "url": "/tutorial/writing-posts#updating-the-api" - } - ], - }, - { - "title": "6. Final polish", - "url": "/tutorial/final-polish", - "submenu": [ - { - "title": "Improving user experience (UX)", - "url": "/tutorial/final-polish#improving-user-experience-ux" - }, - { - "title": "Form validation", - "url": "/tutorial/final-polish#form-validation" - }, - { - "title": "Optimistic posting", - "url": "/tutorial/final-polish#optimistic-posting", - "submenu": [ - { - "title": "Updating the service classes & home controller", - "url": "/tutorial/final-polish#updating-the-service-classes--home-controller" - }, - { - "title": "Displaying pending posts", - "url": "/tutorial/final-polish#displaying-pending-posts" - }, - { - "title": "Recap", - "url": "/tutorial/final-polish#recap" - }, - { - "title": "Updating view components", - "url": "/tutorial/final-polish#updating-view-components" - } - ] - }, - { - "title": "Auto-refresh", - "url": "/tutorial/final-polish#auto-refresh", - "submenu": [ - - { - "title": "REST API pooling", - "url": "/tutorial/final-polish#rest-api-pooling" - }, - { - "title": "Random generators", - "url": "/tutorial/final-polish#random-generators" - }, - { - "title": "Random name generator", - "url": "/tutorial/final-polish#random-name-generator" - }, - { - "title": "Random post generator", - "url": "/tutorial/final-polish#random-post-generator" - }, - { - "title": "Updating the MockHttpAgent", - "url": "/tutorial/final-polish#updating-the-mockhttpagent" - } - ] - }, - { - "title": "Handling race conditions", - "url": "/tutorial/final-polish#handling-race-conditions", - "submenu": [ - { - "title": "Pending posts race condition", - "url": "/tutorial/final-polish#pending-posts-race-condition" - }, - { - "title": "Posts refresh race condition", - "url": "/tutorial/final-polish#posts-refresh-race-condition" - } - ] - }, - { - "title": "Animations", - "url": "/tutorial/final-polish#animations", - "submenu": [ - { - "title": "Retaining original post ID", - "url": "/tutorial/final-polish#retaining-original-post-id" - }, - { - "title": "Animating new posts", - "url": "/tutorial/final-polish#animating-new-posts" - } - ] - }, - { - "title": "Conclusion", - "url": "/tutorial/final-polish#conclusion" - } - ] - } - ] - } -] diff --git a/docs/_includes/devtools-colors-row.html b/docs/_includes/devtools-colors-row.html deleted file mode 100644 index ec61c1876c..0000000000 --- a/docs/_includes/devtools-colors-row.html +++ /dev/null @@ -1,4 +0,0 @@ - - {{ include.name }} - - diff --git a/docs/_includes/edit-btn.html b/docs/_includes/edit-btn.html deleted file mode 100644 index f4da9acbbb..0000000000 --- a/docs/_includes/edit-btn.html +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/_includes/example.html b/docs/_includes/example.html deleted file mode 100644 index 70bfd70a5f..0000000000 --- a/docs/_includes/example.html +++ /dev/null @@ -1,21 +0,0 @@ -
-
-
-

{{ include.title }}

-
-
-
- {{ include.title }} Screenhot -
-
-
- {{ include.text | markdownify }} -

Source Code

-

- {% for tag in include.tags %} - {{ tag }} - {% endfor %} -

-
-
-
diff --git a/docs/_includes/feature-more.html b/docs/_includes/feature-more.html deleted file mode 100644 index a2bd9076c3..0000000000 --- a/docs/_includes/feature-more.html +++ /dev/null @@ -1,4 +0,0 @@ -
  • - - {{ include.text | markdownify }} -
  • \ No newline at end of file diff --git a/docs/_includes/feature.html b/docs/_includes/feature.html deleted file mode 100644 index 3a9edd1874..0000000000 --- a/docs/_includes/feature.html +++ /dev/null @@ -1,4 +0,0 @@ -
    -

    {{ include.title }}

    - {{ include.text | markdownify }} -
    \ No newline at end of file diff --git a/docs/_includes/footer.html b/docs/_includes/footer.html deleted file mode 100644 index b13a2a19af..0000000000 --- a/docs/_includes/footer.html +++ /dev/null @@ -1,11 +0,0 @@ - -
    -
    -
    - Copyright © 1996 - {{ 'now' | date: '%Y' }} Seznam.cz a. s. -
    -
    -
    - - - \ No newline at end of file diff --git a/docs/_includes/header.html b/docs/_includes/header.html deleted file mode 100644 index addfee1f59..0000000000 --- a/docs/_includes/header.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - {{ site.title }} - {% if page.title %} - | {{ page.title }} - {% endif %} - - - - - - - - - - - - - - - - - - - - - - -
    -
    - -
    -
    diff --git a/docs/_includes/navbar-item.html b/docs/_includes/navbar-item.html deleted file mode 100644 index b355119aaf..0000000000 --- a/docs/_includes/navbar-item.html +++ /dev/null @@ -1,16 +0,0 @@ -{% assign includeUrlParts = include.url | remove: ".html" | split: "/" %} -{% assign includeUrl = includeUrlParts[1] | prepend: "/" %} -{% assign pageUrlParts = page.url | remove: ".html" | split: "/" %} -{% assign pageUrl = pageUrlParts[1] | prepend: "/" %} - - {{ include.text }} - diff --git a/docs/_includes/notable-plugin.html b/docs/_includes/notable-plugin.html deleted file mode 100644 index a2bd9076c3..0000000000 --- a/docs/_includes/notable-plugin.html +++ /dev/null @@ -1,4 +0,0 @@ -
  • - - {{ include.text | markdownify }} -
  • \ No newline at end of file diff --git a/docs/_includes/platform.html b/docs/_includes/platform.html deleted file mode 100644 index f405d5e1da..0000000000 --- a/docs/_includes/platform.html +++ /dev/null @@ -1,5 +0,0 @@ -
    -
    - {{ include.title }} -
    -
    \ No newline at end of file diff --git a/docs/_includes/plugin-item.html b/docs/_includes/plugin-item.html deleted file mode 100644 index 0176f8a2a1..0000000000 --- a/docs/_includes/plugin-item.html +++ /dev/null @@ -1,3 +0,0 @@ -
  • - {{ include.name }} - {{ include.description | markdownify | remove: '

    ' | remove: '

    ' }} -
  • diff --git a/docs/_includes/reference.html b/docs/_includes/reference.html deleted file mode 100644 index b8fe76ae6f..0000000000 --- a/docs/_includes/reference.html +++ /dev/null @@ -1,17 +0,0 @@ -
    -
    - -
    -
    - - {{ include.title }} Screenhot - -
    -
    -
    {{ include.text | markdownify }}
    -
    -
    diff --git a/docs/_includes/separator.html b/docs/_includes/separator.html deleted file mode 100644 index b5589dfaa3..0000000000 --- a/docs/_includes/separator.html +++ /dev/null @@ -1,8 +0,0 @@ -
    -
    - - - - -
    -
    \ No newline at end of file diff --git a/docs/_includes/sidebar-layout.html b/docs/_includes/sidebar-layout.html deleted file mode 100644 index cde1c21b77..0000000000 --- a/docs/_includes/sidebar-layout.html +++ /dev/null @@ -1,79 +0,0 @@ -{% include header.html %} -{% assign pageUrl = page.url | remove: ".html" %} -
    -
    -
    -
    - -
    -
    -
    -

    - {{ activeItem.title }} - - - -

    -
    - {{ content }} - {% if include.bottomNavigation %} -
    -
    - {% if previousItem %} - - {% endif %} - {% if nextItem %} - - {% endif %} -
    - {% endif %} -
    -
    -
    -{% include footer.html %} diff --git a/docs/_layouts/api.html b/docs/_layouts/api.html deleted file mode 100644 index 239d90a22d..0000000000 --- a/docs/_layouts/api.html +++ /dev/null @@ -1,58 +0,0 @@ -{% include header.html %} -
    -
    -
    -
    -
    -
    -
    -

    - - - - -

    -
    - - -
    -
    -
    -
    -
    - {{ content }} -
    - - -
    -
    -{% include footer.html %} diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html deleted file mode 100644 index 1b87c02cdc..0000000000 --- a/docs/_layouts/default.html +++ /dev/null @@ -1,3 +0,0 @@ -{% include header.html %} -{{ content }} -{% include footer.html %} \ No newline at end of file diff --git a/docs/_layouts/docs.html b/docs/_layouts/docs.html deleted file mode 100644 index 196f55e0ea..0000000000 --- a/docs/_layouts/docs.html +++ /dev/null @@ -1 +0,0 @@ -{% include sidebar-layout.html menu=site.data.docs bottomNavigation=true %} diff --git a/docs/_layouts/tutorial.html b/docs/_layouts/tutorial.html deleted file mode 100644 index 798ded5d14..0000000000 --- a/docs/_layouts/tutorial.html +++ /dev/null @@ -1 +0,0 @@ -{% include sidebar-layout.html menu=site.data.tutorial %} diff --git a/docs/_partials/header.hbs b/docs/_partials/header.hbs deleted file mode 100644 index 9f5142dd18..0000000000 --- a/docs/_partials/header.hbs +++ /dev/null @@ -1 +0,0 @@ -{{>heading-indent}}{{>sig-name}} {{#if imaGitUrl}}{{/if~}} diff --git a/docs/_partials/main.hbs b/docs/_partials/main.hbs deleted file mode 100644 index a590c9b2de..0000000000 --- a/docs/_partials/main.hbs +++ /dev/null @@ -1,14 +0,0 @@ ---- -{{#orphans ~}} -{{#if imaMenuCategory}} -category: "{{{imaMenuCategory}}}" -{{/if~}} -{{#if imaMenuName}} -title: "API - {{{imaMenuName}}}" -menuTitle: "{{{imaMenuName}}}" -{{/if~}} -{{/orphans~}} ---- - -{{>main-index~}} -{{>all-docs~}} diff --git a/docs/_posts/2022-07-14-bootstrap.md b/docs/_posts/2022-07-14-bootstrap.md deleted file mode 100644 index 53e4982f1d..0000000000 --- a/docs/_posts/2022-07-14-bootstrap.md +++ /dev/null @@ -1,163 +0,0 @@ ---- -category: "general" -title: "API - Bootstrap" -menuTitle: "Bootstrap" ---- - -## Bootstrap  -Application bootstrap used to initialize the environment and the application -itself. - -**Kind**: global class - -* [Bootstrap](#Bootstrap) - * [new Bootstrap(oc)](#new_Bootstrap_new) - * [._oc](#Bootstrap+_oc) : ObjectContainer - * [._config](#Bootstrap+_config) : Object.<string, \*> - * [.run(config)](#Bootstrap+run) - * [.initPlugin(name, module)](#Bootstrap+initPlugin) - * [._initSettings()](#Bootstrap+_initSettings) - * [._initPluginSettings(name, module)](#Bootstrap+_initPluginSettings) - * [._bindDependencies()](#Bootstrap+_bindDependencies) - * [._bindPluginDependencies(name, module)](#Bootstrap+_bindPluginDependencies) - * [._initRoutes()](#Bootstrap+_initRoutes) - * [._initServices()](#Bootstrap+_initServices) - * [._initPluginServices(name, module)](#Bootstrap+_initPluginServices) - - -* * * - -### new Bootstrap(oc)  -Initializes the bootstrap. - - -| Param | Type | Description | -| --- | --- | --- | -| oc | ObjectContainer | The application's object container to use for managing dependencies. | - - -* * * - -### bootstrap.\_oc : ObjectContainer  -The object container used to manage dependencies. - -**Kind**: instance property of [Bootstrap](#Bootstrap) - -* * * - -### bootstrap.\_config : Object.<string, \*>  -Application configuration. - -**Kind**: instance property of [Bootstrap](#Bootstrap) - -* * * - -### bootstrap.run(config)  -Initializes the application by running the bootstrap sequence. The -sequence initializes the components of the application in the following -order: -- application settings -- constants, service providers and class dependencies configuration -- services -- UI components -- routing - -**Kind**: instance method of [Bootstrap](#Bootstrap) - -| Param | Type | Description | -| --- | --- | --- | -| config | Object.<string, \*> | The application environment configuration for the current environment. | - - -* * * - -### bootstrap.initPlugin(name, module)  -Initializes dynamically loaded plugin. This is explicitly called from -within the Plugin Loader instance. - -**Kind**: instance method of [Bootstrap](#Bootstrap) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Plugin name. | -| module | module | Plugin interface (object with init functions). | - - -* * * - -### bootstrap.\_initSettings()  -Initializes the application settings. The method loads the settings for -all environments and then pics the settings for the current environment. - -The method also handles using the values in the production environment -as default values for configuration items in other environments. - -**Kind**: instance method of [Bootstrap](#Bootstrap) - -* * * - -### bootstrap.\_initPluginSettings(name, module)  -Initializes dynamically loaded plugin settings (if the init -function is provided). The settings are merged into the application -the same way as with non-dynamic import, meaning the app setting overrides -are prioritized over the default plugin settings. - -**Kind**: instance method of [Bootstrap](#Bootstrap) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Plugin name. | -| module | module | Plugin interface (object with init functions). | - - -* * * - -### bootstrap.\_bindDependencies()  -Binds the constants, service providers and class dependencies to the -object container. - -**Kind**: instance method of [Bootstrap](#Bootstrap) - -* * * - -### bootstrap.\_bindPluginDependencies(name, module)  -Binds the constants, service providers and class dependencies to the -object container for dynamically imported plugins. - -**Kind**: instance method of [Bootstrap](#Bootstrap) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Plugin name. | -| module | module | Plugin interface (object with init functions). | - - -* * * - -### bootstrap.\_initRoutes()  -Initializes the routes. - -**Kind**: instance method of [Bootstrap](#Bootstrap) - -* * * - -### bootstrap.\_initServices()  -Initializes the basic application services. - -**Kind**: instance method of [Bootstrap](#Bootstrap) - -* * * - -### bootstrap.\_initPluginServices(name, module)  -Service initialization for the dynamically loaded plugins. - -**Kind**: instance method of [Bootstrap](#Bootstrap) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Plugin name. | -| module | module | Plugin interface (object with init functions). | - - -* * * - diff --git a/docs/_posts/2022-07-14-cache-cache-entry.md b/docs/_posts/2022-07-14-cache-cache-entry.md deleted file mode 100644 index 456e3eea9b..0000000000 --- a/docs/_posts/2022-07-14-cache-cache-entry.md +++ /dev/null @@ -1,83 +0,0 @@ ---- -category: "cache" -title: "API - CacheEntry" -menuTitle: "CacheEntry" ---- - -## CacheEntry  -The cache entry is a typed container of cache data used to track the -creation and expiration of cache entries. - -**Kind**: global class - -* [CacheEntry](#CacheEntry) - * [new CacheEntry(value, ttl)](#new_CacheEntry_new) - * [._value](#CacheEntry+_value) : \* - * [._ttl](#CacheEntry+_ttl) : number - * [._created](#CacheEntry+_created) : number - * [.isExpired()](#CacheEntry+isExpired) ⇒ boolean - * [.serialize()](#CacheEntry+serialize) ⇒ Object - * [.getValue()](#CacheEntry+getValue) ⇒ \* - - -* * * - -### new CacheEntry(value, ttl)  -Initializes the cache entry. - - -| Param | Type | Description | -| --- | --- | --- | -| value | \* | The cache entry value. | -| ttl | number | The time to live in milliseconds. | - - -* * * - -### cacheEntry.\_value : \*  -Cache entry value. - -**Kind**: instance property of [CacheEntry](#CacheEntry) - -* * * - -### cacheEntry.\_ttl : number  -The time to live in milliseconds. The cache entry is considered -expired after this time. - -**Kind**: instance property of [CacheEntry](#CacheEntry) - -* * * - -### cacheEntry.\_created : number  -The timestamp of creation of this cache entry. - -**Kind**: instance property of [CacheEntry](#CacheEntry) - -* * * - -### cacheEntry.isExpired() ⇒ boolean  -Returns `true` if this entry has expired. - -**Kind**: instance method of [CacheEntry](#CacheEntry) -**Returns**: boolean - `true` if this entry has expired. - -* * * - -### cacheEntry.serialize() ⇒ Object  -Exports this cache entry into a JSON-serializable object. - -**Kind**: instance method of [CacheEntry](#CacheEntry) -**Returns**: Object - This entry exported to a - JSON-serializable object. - -* * * - -### cacheEntry.getValue() ⇒ \*  -Returns the entry value. - -**Kind**: instance method of [CacheEntry](#CacheEntry) -**Returns**: \* - The entry value. - -* * * - diff --git a/docs/_posts/2022-07-14-cache-cache-factory.md b/docs/_posts/2022-07-14-cache-cache-factory.md deleted file mode 100644 index 17923bed0c..0000000000 --- a/docs/_posts/2022-07-14-cache-cache-factory.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -category: "cache" -title: "API - CacheFactory" -menuTitle: "CacheFactory" ---- - -## CacheFactory  -Factory for creating instances of [CacheEntry](CacheEntry). - -**Kind**: global class - -* * * - -### cacheFactory.createCacheEntry(value, [ttl]) ⇒ CacheEntry  -Create a new instance of [CacheEntry](CacheEntry) with value and ttl. - -**Kind**: instance method of [CacheFactory](#CacheFactory) -**Returns**: CacheEntry - The created cache entry. - -| Param | Type | Description | -| --- | --- | --- | -| value | \* | The cache entry value. | -| [ttl] | number | Cache entry time to live in milliseconds. The entry will expire after the specified amount of milliseconds. | - - -* * * - diff --git a/docs/_posts/2022-07-14-cache-cache-impl.md b/docs/_posts/2022-07-14-cache-cache-impl.md deleted file mode 100644 index 517baeb481..0000000000 --- a/docs/_posts/2022-07-14-cache-cache-impl.md +++ /dev/null @@ -1,165 +0,0 @@ ---- -category: "cache" -title: "API - CacheImpl" -menuTitle: "CacheImpl" ---- - -## CacheImpl ⇐ Cache  -Configurable generic implementation of the [Cache](Cache) interface. - -**Kind**: global class -**Extends**: Cache - -* [CacheImpl](#CacheImpl) ⇐ Cache - * [new CacheImpl(cacheStorage, factory, Helper, [config])](#new_CacheImpl_new) - * [._cache](#CacheImpl+_cache) : Storage - * [._factory](#CacheImpl+_factory) : CacheFactory - * [._Helper](#CacheImpl+_Helper) : vendor.$Helper - * [._ttl](#CacheImpl+_ttl) : number - * [._enabled](#CacheImpl+_enabled) : boolean - * [.clear()](#CacheImpl+clear) - * [.has()](#CacheImpl+has) - * [.get()](#CacheImpl+get) - * [.set()](#CacheImpl+set) - * [.delete()](#CacheImpl+delete) - * [.disable()](#CacheImpl+disable) - * [.enable()](#CacheImpl+enable) - * [.serialize()](#CacheImpl+serialize) - * [.deserialize()](#CacheImpl+deserialize) - * [._canSerializeValue(value)](#CacheImpl+_canSerializeValue) ⇒ boolean - * [._clone(value)](#CacheImpl+_clone) ⇒ \* - - -* * * - -### new CacheImpl(cacheStorage, factory, Helper, [config])  -Initializes the cache. - - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| cacheStorage | Storage | | The cache entry storage to use. | -| factory | CacheFactory | | Which create new instance of cache entry. | -| Helper | vendor.$Helper | | The IMA.js helper methods. | -| [config] | Object | {ttl: 30000, enabled: false} | The cache configuration. | - -**Example** -```js -if (cache.has('model.articles')) { - return cache.get('model.articles'); -} else { - let articles = getArticlesFromStorage(); - // cache for an hour - cache.set('model.articles', articles, 60 * 60 * 1000); -} -``` - -* * * - -### cacheImpl.\_cache : Storage  -Cache entry storage. - -**Kind**: instance property of [CacheImpl](#CacheImpl) - -* * * - -### cacheImpl.\_factory : CacheFactory  -**Kind**: instance property of [CacheImpl](#CacheImpl) - -* * * - -### cacheImpl.\_Helper : vendor.$Helper  -Tha IMA.js helper methods. - -**Kind**: instance property of [CacheImpl](#CacheImpl) - -* * * - -### cacheImpl.\_ttl : number  -Default cache entry time to live in milliseconds. - -**Kind**: instance property of [CacheImpl](#CacheImpl) - -* * * - -### cacheImpl.\_enabled : boolean  -Flag signalling whether the cache is currently enabled. - -**Kind**: instance property of [CacheImpl](#CacheImpl) - -* * * - -### cacheImpl.clear()  -**Kind**: instance method of [CacheImpl](#CacheImpl) - -* * * - -### cacheImpl.has()  -**Kind**: instance method of [CacheImpl](#CacheImpl) - -* * * - -### cacheImpl.get()  -**Kind**: instance method of [CacheImpl](#CacheImpl) - -* * * - -### cacheImpl.set()  -**Kind**: instance method of [CacheImpl](#CacheImpl) - -* * * - -### cacheImpl.delete()  -**Kind**: instance method of [CacheImpl](#CacheImpl) - -* * * - -### cacheImpl.disable()  -**Kind**: instance method of [CacheImpl](#CacheImpl) - -* * * - -### cacheImpl.enable()  -**Kind**: instance method of [CacheImpl](#CacheImpl) - -* * * - -### cacheImpl.serialize()  -**Kind**: instance method of [CacheImpl](#CacheImpl) - -* * * - -### cacheImpl.deserialize()  -**Kind**: instance method of [CacheImpl](#CacheImpl) - -* * * - -### cacheImpl.\_canSerializeValue(value) ⇒ boolean  -Tests whether the provided value can be serialized into JSON. - -**Kind**: instance method of [CacheImpl](#CacheImpl) -**Returns**: boolean - `true` if the provided value can be serialized into JSON, - `false` otherwise. - -| Param | Type | Description | -| --- | --- | --- | -| value | \* | The value to test whether or not it can be serialized. | - - -* * * - -### cacheImpl.\_clone(value) ⇒ \*  -Attempts to clone the provided value, if possible. Values that cannot be -cloned (e.g. promises) will be simply returned. - -**Kind**: instance method of [CacheImpl](#CacheImpl) -**Returns**: \* - The created clone, or the provided value if the value cannot be - cloned. - -| Param | Type | Description | -| --- | --- | --- | -| value | \* | The value to clone. | - - -* * * - diff --git a/docs/_posts/2022-07-14-cache-cache.md b/docs/_posts/2022-07-14-cache-cache.md deleted file mode 100644 index ac6909d4b3..0000000000 --- a/docs/_posts/2022-07-14-cache-cache.md +++ /dev/null @@ -1,142 +0,0 @@ ---- -category: "cache" -title: "API - Cache" -menuTitle: "Cache" ---- - -## Cache  -**Kind**: global interface - -* [Cache](#Cache) - * [.clear()](#Cache+clear) - * [.has(key)](#Cache+has) ⇒ boolean - * [.get(key)](#Cache+get) ⇒ \* - * [.set(key, value, [ttl])](#Cache+set) - * [.delete(key)](#Cache+delete) - * [.disable()](#Cache+disable) - * [.enable()](#Cache+enable) - * [.serialize()](#Cache+serialize) ⇒ string - * [.deserialize(serializedData)](#Cache+deserialize) - - -* * * - -### cache.clear()  -Clears the cache by deleting all entries. - -**Kind**: instance method of [Cache](#Cache) - -* * * - -### cache.has(key) ⇒ boolean  -Tests whether the cache contains a fresh entry for the specified key. A -cache entry is fresh if the has not expired its TTL (time to live). - -The method always returns `false` if the cache is currently disabled. - -**Kind**: instance method of [Cache](#Cache) -**Returns**: boolean - `true` if the cache is enabled, the entry exists and has - not expired yet. - -| Param | Type | Description | -| --- | --- | --- | -| key | string | The identifier of the cache entry. | - - -* * * - -### cache.get(key) ⇒ \*  -Returns the value of the entry identified by the specified key. - -The method returns `null` if the specified entry does not exist, has -already expired, or the cache is currently disabled. - -**Kind**: instance method of [Cache](#Cache) -**Returns**: \* - The value of the specified cache entry, or `null` if the entry - is not available. - -| Param | Type | Description | -| --- | --- | --- | -| key | string | The identifier of the cache entry. | - - -* * * - -### cache.set(key, value, [ttl])  -Sets the cache entry identified by the specified key to the provided -value. The entry is created if it does not exist yet. - -The method has no effect if the cache is currently disabled. - -**Kind**: instance method of [Cache](#Cache) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | The identifier of the cache entry. | -| value | \* | The cache entry value. | -| [ttl] | number | Cache entry time to live in milliseconds. The entry will expire after the specified amount of milliseconds. Use `null` or omit the parameter to use the default TTL of this cache. | - - -* * * - -### cache.delete(key)  -Deletes the specified cache entry. The method has no effect if the entry -does not exist. - -**Kind**: instance method of [Cache](#Cache) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | The identifier of the cache entry. | - - -* * * - -### cache.disable()  -Disables the cache, preventing the retrieval of any cached entries and -reporting all cache entries as non-existing. Disabling the cache does -not however prevent modifying the existing or creating new cache -entries. - -Disabling the cache also clears all of its current entries. - -The method has no effect if the cache is already disabled. - -**Kind**: instance method of [Cache](#Cache) - -* * * - -### cache.enable()  -Enables the cache, allowing the retrieval of cache entries. - -The method has no effect if the cache is already enabled. - -**Kind**: instance method of [Cache](#Cache) - -* * * - -### cache.serialize() ⇒ string  -Exports the state of this cache to an HTML-safe JSON string. The data -obtained by parsing the result of this method are compatible with the -[deserialize](#Cache+deserialize) method. - -**Kind**: instance method of [Cache](#Cache) -**Returns**: string - A JSON string containing an object representing of the - current state of this cache. - -* * * - -### cache.deserialize(serializedData)  -Loads the provided serialized cache data into this cache. Entries -present in this cache but not specified in the provided data will remain -in this cache intact. - -**Kind**: instance method of [Cache](#Cache) - -| Param | Type | Description | -| --- | --- | --- | -| serializedData | Object.<string, {value: \*, ttl: number}> | An object representing the state of the cache to load, obtained by parsing the JSON string returned by the [serialize](#Cache+serialize) method. | - - -* * * - diff --git a/docs/_posts/2022-07-14-configbind.md b/docs/_posts/2022-07-14-configbind.md deleted file mode 100644 index ec380ec43f..0000000000 --- a/docs/_posts/2022-07-14-configbind.md +++ /dev/null @@ -1,3 +0,0 @@ ---- ---- - diff --git a/docs/_posts/2022-07-14-configservices.md b/docs/_posts/2022-07-14-configservices.md deleted file mode 100644 index ec380ec43f..0000000000 --- a/docs/_posts/2022-07-14-configservices.md +++ /dev/null @@ -1,3 +0,0 @@ ---- ---- - diff --git a/docs/_posts/2022-07-14-controller-abstract-controller.md b/docs/_posts/2022-07-14-controller-abstract-controller.md deleted file mode 100644 index b9bf3d21a9..0000000000 --- a/docs/_posts/2022-07-14-controller-abstract-controller.md +++ /dev/null @@ -1,168 +0,0 @@ ---- -category: "controller" -title: "API - AbstractController" -menuTitle: "AbstractController" ---- - -## *AbstractController ⇐ Controller -Basic implementation of the [Controller](Controller) interface, providing the -default implementation of the most of the API. - -**Kind**: global abstract class -**Extends**: Controller - -* *[AbstractController](#AbstractController) ⇐ Controller* - * *[new AbstractController()](#new_AbstractController_new)* - * *[._pageStateManager](#AbstractController+_pageStateManager) : PageStateManager* - * *[._extensions](#AbstractController+_extensions) : Array.<Extension>* - * *[.status](#AbstractController+status) : number* - * *[.params](#AbstractController+params) : Object.<string, string>* - * *[.init()](#AbstractController+init)* - * *[.destroy()](#AbstractController+destroy)* - * *[.activate()](#AbstractController+activate)* - * *[.deactivate()](#AbstractController+deactivate)* - * **[.load()](#AbstractController+load)** - * *[.update()](#AbstractController+update)* - * *[.setState()](#AbstractController+setState)* - * *[.getState()](#AbstractController+getState)* - * *[.beginStateTransaction()](#AbstractController+beginStateTransaction)* - * *[.commitStateTransaction()](#AbstractController+commitStateTransaction)* - * *[.cancelStateTransaction()](#AbstractController+cancelStateTransaction)* - * *[.addExtension()](#AbstractController+addExtension)* - * *[.getExtensions()](#AbstractController+getExtensions)* - * **[.setMetaParams()](#AbstractController+setMetaParams)** - * *[.setRouteParams()](#AbstractController+setRouteParams)* - * *[.getRouteParams()](#AbstractController+getRouteParams)* - * *[.setPageStateManager()](#AbstractController+setPageStateManager)* - * *[.getHttpStatus()](#AbstractController+getHttpStatus)* - - -* * * - -### *new AbstractController()*  -Initializes the controller. - - -* * * - -### *abstractController.\_pageStateManager : PageStateManager -State manager. - -**Kind**: instance property of [AbstractController](#AbstractController) -**Access**: protected - -* * * - -### *abstractController.\_extensions : Array.<Extension> -The controller's extensions. - -**Kind**: instance property of [AbstractController](#AbstractController) - -* * * - -### *abstractController.status : number -The HTTP response code to send to the client. - -**Kind**: instance property of [AbstractController](#AbstractController) - -* * * - -### *abstractController.params : Object.<string, string> -The route parameters extracted from the current route. This field is -set externally by IMA right before the [Controller#init](Controller#init) or the -[Controller#update](Controller#update) method is called. - -**Kind**: instance property of [AbstractController](#AbstractController) - -* * * - -### *abstractController.init()*  -**Kind**: instance method of [AbstractController](#AbstractController) - -* * * - -### *abstractController.destroy()*  -**Kind**: instance method of [AbstractController](#AbstractController) - -* * * - -### *abstractController.activate()*  -**Kind**: instance method of [AbstractController](#AbstractController) - -* * * - -### *abstractController.deactivate()*  -**Kind**: instance method of [AbstractController](#AbstractController) - -* * * - -### **abstractController.load()**  -**Kind**: instance abstract method of [AbstractController](#AbstractController) - -* * * - -### *abstractController.update()*  -**Kind**: instance method of [AbstractController](#AbstractController) - -* * * - -### *abstractController.setState()*  -**Kind**: instance method of [AbstractController](#AbstractController) - -* * * - -### *abstractController.getState()*  -**Kind**: instance method of [AbstractController](#AbstractController) - -* * * - -### *abstractController.beginStateTransaction()*  -**Kind**: instance method of [AbstractController](#AbstractController) - -* * * - -### *abstractController.commitStateTransaction()*  -**Kind**: instance method of [AbstractController](#AbstractController) - -* * * - -### *abstractController.cancelStateTransaction()*  -**Kind**: instance method of [AbstractController](#AbstractController) - -* * * - -### *abstractController.addExtension()*  -**Kind**: instance method of [AbstractController](#AbstractController) - -* * * - -### *abstractController.getExtensions()*  -**Kind**: instance method of [AbstractController](#AbstractController) - -* * * - -### **abstractController.setMetaParams()**  -**Kind**: instance abstract method of [AbstractController](#AbstractController) - -* * * - -### *abstractController.setRouteParams()*  -**Kind**: instance method of [AbstractController](#AbstractController) - -* * * - -### *abstractController.getRouteParams()*  -**Kind**: instance method of [AbstractController](#AbstractController) - -* * * - -### *abstractController.setPageStateManager()*  -**Kind**: instance method of [AbstractController](#AbstractController) - -* * * - -### *abstractController.getHttpStatus()*  -**Kind**: instance method of [AbstractController](#AbstractController) - -* * * - diff --git a/docs/_posts/2022-07-14-controller-controller-decorator.md b/docs/_posts/2022-07-14-controller-controller-decorator.md deleted file mode 100644 index 3c1401623e..0000000000 --- a/docs/_posts/2022-07-14-controller-controller-decorator.md +++ /dev/null @@ -1,200 +0,0 @@ ---- -category: "controller" -title: "API - ControllerDecorator" -menuTitle: "ControllerDecorator" ---- - -## ControllerDecorator ⇐ Controller  -Decorator for page controllers. The decorator manages references to the meta -attributes manager and other utilities so these can be easily provided to -the decorated page controller when needed. - -**Kind**: global class -**Extends**: Controller - -* [ControllerDecorator](#ControllerDecorator) ⇐ Controller - * [new ControllerDecorator(controller, metaManager, router, dictionary, settings)](#new_ControllerDecorator_new) - * [._controller](#ControllerDecorator+_controller) : Controller - * [._metaManager](#ControllerDecorator+_metaManager) : MetaManager - * [._router](#ControllerDecorator+_router) : Router - * [._dictionary](#ControllerDecorator+_dictionary) : Dictionary - * [._settings](#ControllerDecorator+_settings) : Object.<string, \*> - * [.init()](#ControllerDecorator+init) - * [.destroy()](#ControllerDecorator+destroy) - * [.activate()](#ControllerDecorator+activate) - * [.deactivate()](#ControllerDecorator+deactivate) - * [.load()](#ControllerDecorator+load) - * [.update()](#ControllerDecorator+update) - * [.setReactiveView()](#ControllerDecorator+setReactiveView) - * [.setState()](#ControllerDecorator+setState) - * [.getState()](#ControllerDecorator+getState) - * [.beginStateTransaction()](#ControllerDecorator+beginStateTransaction) - * [.commitStateTransaction()](#ControllerDecorator+commitStateTransaction) - * [.cancelStateTransaction()](#ControllerDecorator+cancelStateTransaction) - * [.addExtension()](#ControllerDecorator+addExtension) - * [.getExtensions()](#ControllerDecorator+getExtensions) - * [.setMetaParams()](#ControllerDecorator+setMetaParams) - * [.setRouteParams()](#ControllerDecorator+setRouteParams) - * [.getRouteParams()](#ControllerDecorator+getRouteParams) - * [.setPageStateManager()](#ControllerDecorator+setPageStateManager) - * [.getHttpStatus()](#ControllerDecorator+getHttpStatus) - * [.getMetaManager()](#ControllerDecorator+getMetaManager) ⇒ MetaManager - - -* * * - -### new ControllerDecorator(controller, metaManager, router, dictionary, settings)  -Initializes the controller decorator. - - -| Param | Type | Description | -| --- | --- | --- | -| controller | Controller | The controller being decorated. | -| metaManager | MetaManager | The meta page attributes manager. | -| router | Router | The application router. | -| dictionary | Dictionary | Localization phrases dictionary. | -| settings | Object.<string, \*> | Application settings for the current application environment. | - - -* * * - -### controllerDecorator.\_controller : Controller  -The controller being decorated. - -**Kind**: instance property of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.\_metaManager : MetaManager  -The meta page attributes manager. - -**Kind**: instance property of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.\_router : Router  -The application router. - -**Kind**: instance property of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.\_dictionary : Dictionary  -Localization phrases dictionary. - -**Kind**: instance property of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.\_settings : Object.<string, \*>  -Application settings for the current application environment. - -**Kind**: instance property of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.init()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.destroy()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.activate()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.deactivate()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.load()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.update()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.setReactiveView()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.setState()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.getState()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.beginStateTransaction()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.commitStateTransaction()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.cancelStateTransaction()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.addExtension()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.getExtensions()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.setMetaParams()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.setRouteParams()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.getRouteParams()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.setPageStateManager()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.getHttpStatus()  -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) - -* * * - -### controllerDecorator.getMetaManager() ⇒ MetaManager  -Returns the meta attributes manager configured by the decorated -controller. - -**Kind**: instance method of [ControllerDecorator](#ControllerDecorator) -**Returns**: MetaManager - The Meta attributes manager configured by the - decorated controller. - -* * * - diff --git a/docs/_posts/2022-07-14-controller-controller.md b/docs/_posts/2022-07-14-controller-controller.md deleted file mode 100644 index 77e0484c31..0000000000 --- a/docs/_posts/2022-07-14-controller-controller.md +++ /dev/null @@ -1,299 +0,0 @@ ---- -category: "controller" -title: "API - Controller" -menuTitle: "Controller" ---- - -## Controller  -**Kind**: global interface - -* [Controller](#Controller) - * [.init()](#Controller+init) ⇒ Promise.<undefined> \| undefined - * [.destroy()](#Controller+destroy) ⇒ Promise.<undefined> \| undefined - * [.activate()](#Controller+activate) ⇒ Promise.<undefined> \| undefined - * [.deactivate()](#Controller+deactivate) ⇒ Promise.<undefined> \| undefined - * [.load()](#Controller+load) ⇒ Promise.<Object.<string, (Promise\|\*)>> \| Object.<string, (Promise\|\*)> - * [.update([prevParams])](#Controller+update) ⇒ Promise.<Object.<string, (Promise\|\*)>> \| Object.<string, (Promise\|\*)> - * [.setState(statePatch)](#Controller+setState) - * [.getState()](#Controller+getState) ⇒ Object.<string, \*> - * [.beginStateTransaction()](#Controller+beginStateTransaction) - * [.commitStateTransaction()](#Controller+commitStateTransaction) - * [.cancelStateTransaction()](#Controller+cancelStateTransaction) - * [.addExtension(extension)](#Controller+addExtension) ⇒ [Controller](#Controller) - * [.getExtensions()](#Controller+getExtensions) ⇒ Array.<Extension> - * [.setMetaParams(loadedResources, metaManager, router, dictionary, settings)](#Controller+setMetaParams) - * [.setRouteParams([params])](#Controller+setRouteParams) - * [.getRouteParams()](#Controller+getRouteParams) ⇒ Object.<string, string> - * [.setPageStateManager(pageStateManager)](#Controller+setPageStateManager) - * [.getHttpStatus()](#Controller+getHttpStatus) ⇒ number - - -* * * - -### controller.init() ⇒ Promise.<undefined> \| undefined  -Callback for initializing the controller after the route parameters have -been set on this controller. - -**Kind**: instance method of [Controller](#Controller) - -* * * - -### controller.destroy() ⇒ Promise.<undefined> \| undefined  -Finalization callback, called when the controller is being discarded by -the application. This usually happens when the user navigates to a -different URL. - -This method is the lifecycle counterpart of the [init](#Controller+init) -method. - -The controller should release all resources obtained in the -[init](#Controller+init) method. The controller must release any resources -that might not be released automatically when the controller's instance -is destroyed by the garbage collector. - -**Kind**: instance method of [Controller](#Controller) - -* * * - -### controller.activate() ⇒ Promise.<undefined> \| undefined  -Callback for activating the controller in the UI. This is the last -method invoked during controller initialization, called after all the -promises returned from the [load](#Controller+load) method have been -resolved and the controller has configured the meta manager. - -The controller may register any React and DOM event listeners in this -method. The controller may start receiving event bus event after this -method completes. - -**Kind**: instance method of [Controller](#Controller) - -* * * - -### controller.deactivate() ⇒ Promise.<undefined> \| undefined  -Callback for deactivating the controller in the UI. This is the first -method invoked during controller deinitialization. This usually happens -when the user navigates to a different URL. - -This method is the lifecycle counterpart of the -[activate](#Controller+activate) method. - -The controller should deregister listeners registered and release all -resources obtained in the [activate](#Controller+activate) method. - -**Kind**: instance method of [Controller](#Controller) - -* * * - -### controller.load() ⇒ Promise.<Object.<string, (Promise\|\*)>> \| Object.<string, (Promise\|\*)>  -Callback the controller uses to request the resources it needs to render -its view. This method is invoked after the [init](#Controller+init) -method. - -The controller should request all resources it needs in this method, and -represent each resource request as a promise that will resolve once the -resource is ready for use (these can be data fetched over HTTP(S), -database connections, etc). - -The method must return a plain flat object. The field names of the -object identify the resources being fetched and prepared, each value -must be either the resource (e.g. view configuration or a value -retrieved synchronously) or a Promise that will resolve to the resource. - -The IMA will use the object to set the state of the controller. - -If at the server side, the IMA will wait for all the promises to -resolve, replaces the promises with the resolved values and sets the -resulting object as the controller's state. - -If at the client side, the IMA will first set the controller's state to -an object containing only the fields of the returned object that were -not promises. IMA will then update the controller's state every time a -promise of the returned object resolves. IMA will update the state by -adding the resolved resource to the controller's state. - -Any returned promise that gets rejected will redirect the application to -the error page. The error page that will be used depends on the status -code of the error. - -**Kind**: instance method of [Controller](#Controller) -**Returns**: Promise.<Object.<string, (Promise\|\*)>> \| Object.<string, (Promise\|\*)> - A map object of promises resolved when all resources the controller - requires are ready. The resolved values will be pushed to the - controller's state. - -* * * - -### controller.update([prevParams]) ⇒ Promise.<Object.<string, (Promise\|\*)>> \| Object.<string, (Promise\|\*)>  -Callback for updating the controller after a route update. This method -is invoked if the current route has the `onlyUpdate` flag set to `true` and -the current controller and view match those used by the previously active -route, or, the `onlyUpdate` option of the current route is a callback and -returned `true`. - -The method must return an object with the same semantics as the result -of the [load](#Controller+load) method. The controller's state will only -be patched by the returned object instead of replacing it completely. - -The other controller lifecycle callbacks ([init](#Controller+init), -[load](#Controller+load), [activate](#Controller+activate), -[deactivate](#Controller+deactivate), [Controller#deinit](Controller#deinit)) are not call -in case this method is used. - -**Kind**: instance method of [Controller](#Controller) -**Returns**: Promise.<Object.<string, (Promise\|\*)>> \| Object.<string, (Promise\|\*)> - A map object of promises resolved when all resources the controller - requires are ready. The resolved values will be pushed to the - controller's state. - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| [prevParams] | Object.<string, string> | {} | Previous route parameters. | - - -* * * - -### controller.setState(statePatch)  -Patches the state of this controller using the provided object by -copying the provided patch object fields to the controller's state -object. - -You can use this method to modify the state partially or add new fields -to the state object. - -Note that the state is not patched recursively but by replacing the -values of the top-level fields of the state object. - -Once the promises returned by the [load](#Controller+load) method are -resolved, this method is called with the an object containing the -resolved values. The field names of the passed object will match the -field names in the object returned from the [load](#Controller+load) -method. - -**Kind**: instance method of [Controller](#Controller) - -| Param | Type | Description | -| --- | --- | --- | -| statePatch | Object.<string, \*> | Patch of the controller's state to apply. | - - -* * * - -### controller.getState() ⇒ Object.<string, \*>  -Returns the controller's current state. - -**Kind**: instance method of [Controller](#Controller) -**Returns**: Object.<string, \*> - The current state of this controller. - -* * * - -### controller.beginStateTransaction()  -Starts queueing state patches off the controller state. While the transaction -is active every {@method setState} call has no effect on the current state. - -Note that call to {@method getState} after the transaction has begun will -return state as it was before the transaction. - -**Kind**: instance method of [Controller](#Controller) - -* * * - -### controller.commitStateTransaction()  -Applies queued state patches to the controller state. All patches are squashed -and applied with one {@method setState} call. - -**Kind**: instance method of [Controller](#Controller) - -* * * - -### controller.cancelStateTransaction()  -Cancels ongoing state transaction. Uncommited state changes are lost. - -**Kind**: instance method of [Controller](#Controller) - -* * * - -### controller.addExtension(extension) ⇒ [Controller](#Controller)  -Adds the provided extension to this controller. All extensions should be -added to the controller before the [init](#Controller+init) method is -invoked. - -**Kind**: instance method of [Controller](#Controller) -**Returns**: [Controller](#Controller) - This controller. - -| Param | Type | Description | -| --- | --- | --- | -| extension | Extension | The extension to add to this controller. | - - -* * * - -### controller.getExtensions() ⇒ Array.<Extension>  -Returns the controller's extensions. - -**Kind**: instance method of [Controller](#Controller) -**Returns**: Array.<Extension> - The extensions added to this controller. - -* * * - -### controller.setMetaParams(loadedResources, metaManager, router, dictionary, settings)  -Callback used to configure the meta attribute manager. The method is -called after the the controller's state has been patched with the all -loaded resources and the view has been rendered. - -**Kind**: instance method of [Controller](#Controller) - -| Param | Type | Description | -| --- | --- | --- | -| loadedResources | Object.<string, \*> | A plain object representing a map of resource names to resources loaded by the [load](#Controller+load) method. This is the same object as the one passed to the [setState](#Controller+setState) method. | -| metaManager | MetaManager | Meta attributes manager to configure. | -| router | Router | The current application router. | -| dictionary | Dictionary | The current localization dictionary. | -| settings | Object.<string, \*> | The application settings for the current application environment. | - - -* * * - -### controller.setRouteParams([params])  -Sets the current route parameters. This method is invoked before the -[init](#Controller+init) method. - -**Kind**: instance method of [Controller](#Controller) - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| [params] | Object.<string, string> | {} | The current route parameters. | - - -* * * - -### controller.getRouteParams() ⇒ Object.<string, string>  -Returns the current route parameters. - -**Kind**: instance method of [Controller](#Controller) -**Returns**: Object.<string, string> - The current route parameters. - -* * * - -### controller.setPageStateManager(pageStateManager)  -Sets the page state manager. The page state manager manages the -controller's state. The state manager can be set to `null` if this -controller loses the right to modify the state of the current page (e.g. -the user has navigated to a different route using a different -controller). - -**Kind**: instance method of [Controller](#Controller) - -| Param | Type | Description | -| --- | --- | --- | -| pageStateManager | PageStateManager | The current state manager to use. | - - -* * * - -### controller.getHttpStatus() ⇒ number  -Returns the HTTP status code to send to the client, should the -controller be used at the server-side. - -**Kind**: instance method of [Controller](#Controller) -**Returns**: number - The HTTP status code to send to the client. - -* * * - diff --git a/docs/_posts/2022-07-14-dictionary-dictionary.md b/docs/_posts/2022-07-14-dictionary-dictionary.md deleted file mode 100644 index 05a326ab8d..0000000000 --- a/docs/_posts/2022-07-14-dictionary-dictionary.md +++ /dev/null @@ -1,75 +0,0 @@ ---- -category: "dictionary" -title: "API - Dictionary" -menuTitle: "Dictionary" ---- - -## Dictionary  -**Kind**: global interface - -* [Dictionary](#Dictionary) - * [.init(config)](#Dictionary+init) - * [.getLanguage()](#Dictionary+getLanguage) ⇒ string - * [.get(key, [parameters])](#Dictionary+get) ⇒ string - * [.has(key)](#Dictionary+has) ⇒ boolean - - -* * * - -### dictionary.init(config)  -Initializes this dictionary with the provided language and localization -phrases. - -**Kind**: instance method of [Dictionary](#Dictionary) - -| Param | Type | Description | -| --- | --- | --- | -| config | Object.<string, \*> | The dictionary configuration. | -| config.$Language | string | The language property is an ISO 639-1 language code specifying the language of the provided phrases. | -| config.dictionary | \* | The dictionary property contains the localization phrases organized in an implementation-specific way. | - - -* * * - -### dictionary.getLanguage() ⇒ string  -Returns the ISO 639-1 language code of the language this dictionary was -initialized with. - -**Kind**: instance method of [Dictionary](#Dictionary) -**Returns**: string - The language code representing the language of the - localization phrases in this dictionary. - -* * * - -### dictionary.get(key, [parameters]) ⇒ string  -Retrieves the localization phrase identified by the specified key, -evaluates the phrase's placeholder expressions using the provided -parameters and returns the result. - -**Kind**: instance method of [Dictionary](#Dictionary) -**Returns**: string - The specified localization phrase with its placeholders - evaluated using the provided parameters. - -| Param | Type | Description | -| --- | --- | --- | -| key | string | The key identifying the localization phrase. | -| [parameters] | Object.<string, (boolean\|number\|string\|Date)> | The map of parameter names to the parameter values to use. Defaults to an empty plain object. | - - -* * * - -### dictionary.has(key) ⇒ boolean  -Tests whether the specified localization phrase exists in the -dictionary. - -**Kind**: instance method of [Dictionary](#Dictionary) -**Returns**: boolean - `true` if the key exists and denotes a single - localization phrase, otherwise `false`. - -| Param | Type | Description | -| --- | --- | --- | -| key | string | The key identifying the localization phrase. | - - -* * * - diff --git a/docs/_posts/2022-07-14-dictionary-message-format-dictionary.md b/docs/_posts/2022-07-14-dictionary-message-format-dictionary.md deleted file mode 100644 index d056dadd7d..0000000000 --- a/docs/_posts/2022-07-14-dictionary-message-format-dictionary.md +++ /dev/null @@ -1,102 +0,0 @@ ---- -category: "dictionary" -title: "API - MessageFormatDictionary" -menuTitle: "MessageFormatDictionary" ---- - -## MessageFormatDictionary ⇐ Dictionary  -Implementation of the [Dictionary](Dictionary) interface that relies on -compiled MessageFormat localization messages for its dictionary. - -**Kind**: global class -**Extends**: Dictionary - -* [MessageFormatDictionary](#MessageFormatDictionary) ⇐ Dictionary - * [new MessageFormatDictionary()](#new_MessageFormatDictionary_new) - * [._language](#MessageFormatDictionary+_language) : string - * [._dictionary](#MessageFormatDictionary+_dictionary) : Object.<string, Object.<string, function(Object.<string, (number\|string)>): string>> - * [.init(config)](#MessageFormatDictionary+init) - * [.getLanguage()](#MessageFormatDictionary+getLanguage) - * [.get(key, [parameters])](#MessageFormatDictionary+get) ⇒ string - * [.has(key)](#MessageFormatDictionary+has) ⇒ boolean - - -* * * - -### new MessageFormatDictionary()  -Initializes the dictionary. - -**Example** -```js -dictionary.get('home.hello', {GENDER: 'UNSPECIFIED'}); -``` - -* * * - -### messageFormatDictionary.\_language : string  -The language of the phrases in the dictionary, represented as a -ISO 639-1 language code. - -**Kind**: instance property of [MessageFormatDictionary](#MessageFormatDictionary) - -* * * - -### messageFormatDictionary.\_dictionary : Object.<string, Object.<string, function(Object.<string, (number\|string)>): string>>  -Stored dictionary. - -**Kind**: instance property of [MessageFormatDictionary](#MessageFormatDictionary) - -* * * - -### messageFormatDictionary.init(config)  -Initializes this dictionary with the provided language and localization -phrases. - -**Kind**: instance method of [MessageFormatDictionary](#MessageFormatDictionary) - -| Param | Type | Description | -| --- | --- | --- | -| config | Object.<string, \*> | The dictionary configuration. | -| config.$Language | string | The language property is an ISO 639-1 language code specifying the language of the provided phrases. | -| config.dictionary | Object.<string, Object.<string, function(Object.<string, (number\|string)>): string>> | The dictionary field contains the localization phrases organized in a deep plain object map. The top-level key is the name of the phrase group, the bottom-level key is the phrase key. The bottom-level value is the localization phrase generator that takes the phrase placeholder values map as an argument and produces the localization phrase with its placeholders evaluated using the provided placeholder values. | - - -* * * - -### messageFormatDictionary.getLanguage()  -**Kind**: instance method of [MessageFormatDictionary](#MessageFormatDictionary) - -* * * - -### messageFormatDictionary.get(key, [parameters]) ⇒ string  -Retrieves the localization phrase identified by the specified key, -evaluates the phrase's placeholder expressions using the provided -parameters and returns the result. - -**Kind**: instance method of [MessageFormatDictionary](#MessageFormatDictionary) -**Returns**: string - The specified localization phrase with its placeholders - evaluated using the provided parameters. - -| Param | Type | Description | -| --- | --- | --- | -| key | string | The key identifying the localization phrase. The key consists of at least two parts separated by dots. The first part denotes the name of the source JSON localization file, while the rest denote a field path within the localization object within the given localization file. | -| [parameters] | Object.<string, (boolean\|number\|string\|Date)> | The map of parameter names to the parameter values to use. Defaults to an empty plain object. | - - -* * * - -### messageFormatDictionary.has(key) ⇒ boolean  -Tests whether the specified localization phrase exists in the -dictionary. - -**Kind**: instance method of [MessageFormatDictionary](#MessageFormatDictionary) -**Returns**: boolean - `true` if the key exists and denotes a single - localization phrase, otherwise `false`. - -| Param | Type | Description | -| --- | --- | --- | -| key | string | The key identifying the localization phrase. The key consists of at least two parts separated by dots. The first part denotes the name of the source JSON localization file, while the rest denote a field path within the localization object within the given localization file. | - - -* * * - diff --git a/docs/_posts/2022-07-14-error-error.md b/docs/_posts/2022-07-14-error-error.md deleted file mode 100644 index d1f1f33496..0000000000 --- a/docs/_posts/2022-07-14-error-error.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -category: "error" -title: "API - Error" -menuTitle: "Error" ---- - -## Error ⇐ ExtensibleError  -**Kind**: global interface -**Extends**: ExtensibleError - -* [Error](#Error) ⇐ ExtensibleError - * [.getHttpStatus()](#Error+getHttpStatus) ⇒ number - * [.getParams()](#Error+getParams) ⇒ Object.<string, \*> - - -* * * - -### error.getHttpStatus() ⇒ number  -Returns the HTTP status to send to the client. - -If the error has occurred at the client-side, the status code is used to -determine the error page to show to the user. - -This method is a shorthand for the following code snippet: -`this.getParams().status || 500`. - -**Kind**: instance method of [Error](#Error) -**Returns**: number - The HTTP status to send to the client. -**See**: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html - -* * * - -### error.getParams() ⇒ Object.<string, \*>  -Returns the error parameters providing additional details about the -error. The structure of the returned object is always -situation-dependent, but the returned object usually contains the -`status: number` field which represents the HTTP status to send to -the client. - -**Kind**: instance method of [Error](#Error) -**Returns**: Object.<string, \*> - The route parameters of the route at which - the error has occurred. -**See**: Error#getHttpStatus - -* * * - diff --git a/docs/_posts/2022-07-14-error-extensible-error.md b/docs/_posts/2022-07-14-error-extensible-error.md deleted file mode 100644 index c7e1cd2a02..0000000000 --- a/docs/_posts/2022-07-14-error-extensible-error.md +++ /dev/null @@ -1,86 +0,0 @@ ---- -category: "error" -title: "API - ExtensibleError" -menuTitle: "ExtensibleError" ---- - -## *ExtensibleError ⇐ Error -**Kind**: global abstract class -**Extends**: Error - -* *[ExtensibleError](#ExtensibleError) ⇐ Error* - * *[new ExtensibleError(message, [dropInternalStackFrames])](#new_ExtensibleError_new)* - * *[.name](#ExtensibleError+name) : string* - * *[.message](#ExtensibleError+message) : string* - * *[._nativeError](#ExtensibleError+_nativeError) : Error* - * *[._stack](#ExtensibleError+_stack) : string* - * *[._dropInternalStackFrames](#ExtensibleError+_dropInternalStackFrames) : boolean* - * *[.stack](#ExtensibleError+stack) : string* - - -* * * - -### *new ExtensibleError(message, [dropInternalStackFrames])*  -Base class of custom error classes, extending the native `Error` class. - -This class has been introduced to fix the Babel-related issues with -extending the native JavaScript (Error) classes. - - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| message | string | | The message describing the cause of the error. | -| [dropInternalStackFrames] | boolean | true | Whether or not the call stack frames referring to the constructors of the custom errors should be excluded from the stack of this error (just like the native platform call stack frames are dropped by the JS engine). This flag is enabled by default. | - - -* * * - -### *extensibleError.name : string -The name of this error, used in the generated stack trace. - -**Kind**: instance property of [ExtensibleError](#ExtensibleError) - -* * * - -### *extensibleError.message : string -The message describing the cause of the error. - -**Kind**: instance property of [ExtensibleError](#ExtensibleError) - -* * * - -### *extensibleError.\_nativeError : Error -Native error instance we use to generate the call stack. For some reason -some browsers do not generate call stacks for instances of classes -extending the native `Error` class, so we bypass this shortcoming this way. - -**Kind**: instance property of [ExtensibleError](#ExtensibleError) - -* * * - -### *extensibleError.\_stack : string -The internal cache of the generated stack. The cache is filled upon first -access to the [stack](#ExtensibleError+stack) property. - -**Kind**: instance property of [ExtensibleError](#ExtensibleError) - -* * * - -### *extensibleError.\_dropInternalStackFrames : boolean -Whether or not the call stack frames referring to the constructors of -the custom errors should be excluded from the stack of this error (just -like the native platform call stack frames are dropped by the JS -engine). - -**Kind**: instance property of [ExtensibleError](#ExtensibleError) - -* * * - -### *extensibleError.stack : string -The call stack captured at the moment of creation of this error. The -formatting of the stack is browser-dependant. - -**Kind**: instance property of [ExtensibleError](#ExtensibleError) - -* * * - diff --git a/docs/_posts/2022-07-14-error-generic-error.md b/docs/_posts/2022-07-14-error-generic-error.md deleted file mode 100644 index 99e6daa7c4..0000000000 --- a/docs/_posts/2022-07-14-error-generic-error.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -category: "error" -title: "API - GenericError" -menuTitle: "GenericError" ---- - -## GenericError ⇐ Error  -Implementation of the [Error](Error) interface, providing more advanced -error API. - -**Kind**: global class -**Extends**: Error - -* [GenericError](#GenericError) ⇐ Error - * [new GenericError(message, [params], [dropInternalStackFrames])](#new_GenericError_new) - * [._params](#GenericError+_params) : Object.<string, \*> - * [.getHttpStatus()](#GenericError+getHttpStatus) - * [.getParams()](#GenericError+getParams) - - -* * * - -### new GenericError(message, [params], [dropInternalStackFrames])  -Initializes the generic IMA error. - - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| message | string | | The message describing the cause of the error. | -| [params] | Object.<string, \*> | {} | A data map providing additional details related to the error. It is recommended to set the status field to the HTTP response code that should be sent to the client. | -| [dropInternalStackFrames] | boolean | true | Whether or not the call stack frames referring to the constructors of the custom errors should be excluded from the stack of this error (just like the native platform call stack frames are dropped by the JS engine). This flag is enabled by default. | - - -* * * - -### genericError.\_params : Object.<string, \*>  -The data providing additional details related to this error. - -**Kind**: instance property of [GenericError](#GenericError) - -* * * - -### genericError.getHttpStatus()  -**Kind**: instance method of [GenericError](#GenericError) - -* * * - -### genericError.getParams()  -**Kind**: instance method of [GenericError](#GenericError) - -* * * - diff --git a/docs/_posts/2022-07-14-event-dispatcher-impl.md b/docs/_posts/2022-07-14-event-dispatcher-impl.md deleted file mode 100644 index 4cbe3767e2..0000000000 --- a/docs/_posts/2022-07-14-event-dispatcher-impl.md +++ /dev/null @@ -1,157 +0,0 @@ ---- -category: "event" -title: "API - DispatcherImpl" -menuTitle: "DispatcherImpl" ---- - -## Classes - -
    -
    DispatcherImpl
    -

    Default implementation of the Dispatcher interface.

    -
    -
    - -## Constants - -
    -
    EMPTY_MAP : Map.<function(*), Set.<?Object>>
    -

    An empty immutable map of event listener to scopes, used for a mismatch in -the _eventListeners map.

    -
    -
    EMPTY_SET : Set.<?Object>
    -

    An empty immutable set of event listener scopes, used for a mismatch in the -_eventListeners map.

    -
    -
    - -## DispatcherImpl  -Default implementation of the Dispatcher interface. - -**Kind**: global class - -* [DispatcherImpl](#DispatcherImpl) - * [new DispatcherImpl()](#new_DispatcherImpl_new) - * [._eventListeners](#DispatcherImpl+_eventListeners) : Map.<string, Map.<function(\*), Set.<?Object>>> - * [.clear()](#DispatcherImpl+clear) - * [.listen()](#DispatcherImpl+listen) - * [.unlisten()](#DispatcherImpl+unlisten) - * [.fire()](#DispatcherImpl+fire) - * [._createNewEvent(event)](#DispatcherImpl+_createNewEvent) - * [._createNewListener(event, listener)](#DispatcherImpl+_createNewListener) - * [._getScopesOf(event, listener)](#DispatcherImpl+_getScopesOf) ⇒ Set.<?Object> - * [._getListenersOf(event)](#DispatcherImpl+_getListenersOf) ⇒ Map.<function(\*), Set.<?Object>> - - -* * * - -### new DispatcherImpl()  -Initializes the dispatcher. - - -* * * - -### dispatcherImpl.\_eventListeners : Map.<string, Map.<function(\*), Set.<?Object>>>  -Map of event names to a map of event listeners to a set of scopes to -which the event listener should be bound when being executed due to -the event. - -**Kind**: instance property of [DispatcherImpl](#DispatcherImpl) - -* * * - -### dispatcherImpl.clear()  -**Kind**: instance method of [DispatcherImpl](#DispatcherImpl) - -* * * - -### dispatcherImpl.listen()  -**Kind**: instance method of [DispatcherImpl](#DispatcherImpl) - -* * * - -### dispatcherImpl.unlisten()  -**Kind**: instance method of [DispatcherImpl](#DispatcherImpl) - -* * * - -### dispatcherImpl.fire()  -**Kind**: instance method of [DispatcherImpl](#DispatcherImpl) - -* * * - -### dispatcherImpl.\_createNewEvent(event)  -Create new Map storage of listeners for the specified event. - -**Kind**: instance method of [DispatcherImpl](#DispatcherImpl) - -| Param | Type | Description | -| --- | --- | --- | -| event | string | The name of the event. | - - -* * * - -### dispatcherImpl.\_createNewListener(event, listener)  -Create new Set storage of scopes for the specified event and listener. - -**Kind**: instance method of [DispatcherImpl](#DispatcherImpl) - -| Param | Type | Description | -| --- | --- | --- | -| event | string | The name of the event. | -| listener | function | The event listener. | - - -* * * - -### dispatcherImpl.\_getScopesOf(event, listener) ⇒ Set.<?Object>  -Retrieves the scopes in which the specified event listener should be -executed for the specified event. - -**Kind**: instance method of [DispatcherImpl](#DispatcherImpl) -**Returns**: Set.<?Object> - The scopes in which the specified listeners - should be executed in case of the specified event. The returned - set is an unmodifiable empty set if no listeners are registered - for the event. - -| Param | Type | Description | -| --- | --- | --- | -| event | string | The name of the event. | -| listener | function | The event listener. | - - -* * * - -### dispatcherImpl.\_getListenersOf(event) ⇒ Map.<function(\*), Set.<?Object>>  -Retrieves the map of event listeners to scopes they are bound to. - -**Kind**: instance method of [DispatcherImpl](#DispatcherImpl) -**Returns**: Map.<function(\*), Set.<?Object>> - A map of event listeners to the - scopes in which they should be executed. The returned map is an - unmodifiable empty map if no listeners are registered for the - event. - -| Param | Type | Description | -| --- | --- | --- | -| event | string | The name of the event. | - - -* * * - -## EMPTY\_MAP : Map.<function(\*), Set.<?Object>>  -An empty immutable map of event listener to scopes, used for a mismatch in -the _eventListeners map. - -**Kind**: global constant - -* * * - -## EMPTY\_SET : Set.<?Object>  -An empty immutable set of event listener scopes, used for a mismatch in the -_eventListeners map. - -**Kind**: global constant - -* * * - diff --git a/docs/_posts/2022-07-14-event-dispatcher.md b/docs/_posts/2022-07-14-event-dispatcher.md deleted file mode 100644 index 975849e69e..0000000000 --- a/docs/_posts/2022-07-14-event-dispatcher.md +++ /dev/null @@ -1,89 +0,0 @@ ---- -category: "event" -title: "API - Dispatcher" -menuTitle: "Dispatcher" ---- - -## Dispatcher  -**Kind**: global interface - -* [Dispatcher](#Dispatcher) - * [.clear()](#Dispatcher+clear) ⇒ [Dispatcher](#Dispatcher) - * [.listen(event, listener, [scope])](#Dispatcher+listen) ⇒ [Dispatcher](#Dispatcher) - * [.unlisten(event, listener, [scope])](#Dispatcher+unlisten) ⇒ [Dispatcher](#Dispatcher) - * [.fire(event, data, [imaInternalEvent])](#Dispatcher+fire) ⇒ [Dispatcher](#Dispatcher) - - -* * * - -### dispatcher.clear() ⇒ [Dispatcher](#Dispatcher)  -Deregisters all event listeners currently registered with this -dispatcher. - -**Kind**: instance method of [Dispatcher](#Dispatcher) -**Returns**: [Dispatcher](#Dispatcher) - This dispatcher. - -* * * - -### dispatcher.listen(event, listener, [scope]) ⇒ [Dispatcher](#Dispatcher)  -Registers the provided event listener to be executed when the specified -event is fired on this dispatcher. - -When the specified event is fired, the event listener will be executed -with the data passed with the event as the first argument. - -The order in which the event listeners will be executed is unspecified -and should not be relied upon. Registering the same listener for the -same event and with the same scope multiple times has no effect. - -**Kind**: instance method of [Dispatcher](#Dispatcher) -**Returns**: [Dispatcher](#Dispatcher) - This dispatcher. - -| Param | Type | Description | -| --- | --- | --- | -| event | string | The name of the event to listen for. | -| listener | function | The event listener to register. | -| [scope] | Object | The object to which the this keyword will be bound in the event listener. | - - -* * * - -### dispatcher.unlisten(event, listener, [scope]) ⇒ [Dispatcher](#Dispatcher)  -Deregisters the provided event listener, so it will no longer be -executed with the specified scope when the specified event is fired. - -**Kind**: instance method of [Dispatcher](#Dispatcher) -**Returns**: [Dispatcher](#Dispatcher) - This dispatcher. - -| Param | Type | Description | -| --- | --- | --- | -| event | string | The name of the event for which the listener should be deregistered. | -| listener | function | The event listener to deregister. | -| [scope] | Object | The object to which the this keyword would be bound in the event listener. | - - -* * * - -### dispatcher.fire(event, data, [imaInternalEvent]) ⇒ [Dispatcher](#Dispatcher)  -Fires a new event of the specified name, carrying the provided data. - -The method will synchronously execute all event listeners registered for -the specified event, passing the provided data to them as the first -argument. - -Note that this method does not prevent the event listeners to modify the -data in any way. The order in which the event listeners will be executed -is unspecified and should not be relied upon. - -**Kind**: instance method of [Dispatcher](#Dispatcher) -**Returns**: [Dispatcher](#Dispatcher) - This dispatcher. - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| event | string | | The name of the event to fire. | -| data | Object.<string, \*> | | The data to pass to the event listeners. | -| [imaInternalEvent] | boolean | false | The flag signalling whether this is an internal IMA event. The fired event is treated as a custom application event if this flag is not set. The flag is used only for debugging and has no effect on the propagation of the event. | - - -* * * - diff --git a/docs/_posts/2022-07-14-event-event-bus-impl.md b/docs/_posts/2022-07-14-event-event-bus-impl.md deleted file mode 100644 index 90b33378ae..0000000000 --- a/docs/_posts/2022-07-14-event-event-bus-impl.md +++ /dev/null @@ -1,115 +0,0 @@ ---- -category: "event" -title: "API - EventBusImpl" -menuTitle: "EventBusImpl" ---- - -## Classes - -
    -
    EventBusImpl
    -

    Helper for custom events.

    -

    It offers public methods for firing custom events and two methods for -catching events (e.g. inside view components).

    -
    -
    - -## Constants - -
    -
    IMA_EVENT : string
    -

    Global name of IMA.js custom event.

    -
    -
    - -## EventBusImpl  -Helper for custom events. - -It offers public methods for firing custom events and two methods for -catching events (e.g. inside view components). - -**Kind**: global class - -* [EventBusImpl](#EventBusImpl) - * [new EventBusImpl(window)](#new_EventBusImpl_new) - * [._window](#EventBusImpl+_window) : Window - * [._listeners](#EventBusImpl+_listeners) : WeakMap.<function(Event), WeakMap.<EventTarget, Map.<string, function(Event)>>> - * [._allListenersTargets](#EventBusImpl+_allListenersTargets) : WeakMap.<EventTarget, WeakSet.<function(Event)>> - * [.fire()](#EventBusImpl+fire) - * [.listenAll()](#EventBusImpl+listenAll) - * [.listen()](#EventBusImpl+listen) - * [.unlistenAll()](#EventBusImpl+unlistenAll) - * [.unlisten()](#EventBusImpl+unlisten) - - -* * * - -### new EventBusImpl(window)  -Initializes the custom event helper. - - -| Param | Type | Description | -| --- | --- | --- | -| window | Window | The IMA window helper. | - - -* * * - -### eventBusImpl.\_window : Window  -The IMA window helper. - -**Kind**: instance property of [EventBusImpl](#EventBusImpl) - -* * * - -### eventBusImpl.\_listeners : WeakMap.<function(Event), WeakMap.<EventTarget, Map.<string, function(Event)>>>  -Map of listeners provided to the public API of this event bus to a -map of event targets to a map of event names to actual listeners -bound to the native API. - -The "listen all" event listeners are not registered in this map. - -**Kind**: instance property of [EventBusImpl](#EventBusImpl) - -* * * - -### eventBusImpl.\_allListenersTargets : WeakMap.<EventTarget, WeakSet.<function(Event)>>  -Map of event targets to listeners executed on all IMA.js event bus -events. - -**Kind**: instance property of [EventBusImpl](#EventBusImpl) - -* * * - -### eventBusImpl.fire()  -**Kind**: instance method of [EventBusImpl](#EventBusImpl) - -* * * - -### eventBusImpl.listenAll()  -**Kind**: instance method of [EventBusImpl](#EventBusImpl) - -* * * - -### eventBusImpl.listen()  -**Kind**: instance method of [EventBusImpl](#EventBusImpl) - -* * * - -### eventBusImpl.unlistenAll()  -**Kind**: instance method of [EventBusImpl](#EventBusImpl) - -* * * - -### eventBusImpl.unlisten()  -**Kind**: instance method of [EventBusImpl](#EventBusImpl) - -* * * - -## IMA\_EVENT : string  -Global name of IMA.js custom event. - -**Kind**: global constant - -* * * - diff --git a/docs/_posts/2022-07-14-event-event-bus.md b/docs/_posts/2022-07-14-event-event-bus.md deleted file mode 100644 index 93c6ed45ca..0000000000 --- a/docs/_posts/2022-07-14-event-event-bus.md +++ /dev/null @@ -1,135 +0,0 @@ ---- -category: "event" -title: "API - EventBus" -menuTitle: "EventBus" ---- - -## EventBus  -**Kind**: global interface - -* [EventBus](#EventBus) - * [.fire(eventTarget, eventName, data, [options])](#EventBus+fire) ⇒ [EventBus](#EventBus) - * [.listenAll(eventTarget, listener)](#EventBus+listenAll) ⇒ [EventBus](#EventBus) - * [.listen(eventTarget, eventName, listener)](#EventBus+listen) ⇒ [EventBus](#EventBus) - * [.unlistenAll(eventTarget, listener)](#EventBus+unlistenAll) ⇒ [EventBus](#EventBus) - * [.unlisten(eventTarget, eventName, listener)](#EventBus+unlisten) ⇒ [EventBus](#EventBus) - - -* * * - -### eventBus.fire(eventTarget, eventName, data, [options]) ⇒ [EventBus](#EventBus)  -Fires a new custom event of the specified name, carrying the provided -data. - -Note that this method does not prevent the event listeners to modify the -data in any way. The order in which the event listeners will be executed -is unspecified and should not be relied upon. - -Note that the default options are -{ bubbles: true, cancelable: true }, which is different from the -default values used in the native custom events -({ bubbles: false, cancelable: false }). - -**Kind**: instance method of [EventBus](#EventBus) -**Returns**: [EventBus](#EventBus) - This custom event bus. -**Throws**: - -- Error Thrown if the provided event target cannot be used to - fire the event. - -**See**: https://developer.mozilla.org/en-US/docs/Web/API/Event/Event - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| eventTarget | EventTarget | | The event target at which the event will be dispatched (e.g. element/document/window). | -| eventName | string | | The name of the event to fire. | -| data | \* | | The data to pass to the event listeners. | -| [options] | Object | {} | The override of the default options passed to the constructor of the custom event fired by this event bus. The default options passed to the custom event constructor are { bubbles: true, cancelable: true }. | - - -* * * - -### eventBus.listenAll(eventTarget, listener) ⇒ [EventBus](#EventBus)  -Registers the provided event listener to be executed when any custom -event is fired using the same implementation of the event bus and passes -through the specified event target. - -When the specified event is fired, the event listener will be executed -with the event passed as the first argument. - -The order in which the event listeners will be executed is unspecified -and should not be relied upon. - -**Kind**: instance method of [EventBus](#EventBus) -**Returns**: [EventBus](#EventBus) - This event bus. - -| Param | Type | Description | -| --- | --- | --- | -| eventTarget | EventTarget | The event target at which the listener should listen for all event bus events. | -| listener | function | The event listener to register. | - - -* * * - -### eventBus.listen(eventTarget, eventName, listener) ⇒ [EventBus](#EventBus)  -Registers the provided event listener to be executed when the specific -custom event is fired by the same implementation of the event bus and -passes through the specified event target. - -When the specified event is fired, the event listener will be executed -with the event passed as the first argument. - -The order in which the event listeners will be executed is unspecified -and should not be relied upon. - -**Kind**: instance method of [EventBus](#EventBus) -**Returns**: [EventBus](#EventBus) - This event bus. - -| Param | Type | Description | -| --- | --- | --- | -| eventTarget | EventTarget | The event target at which the listener should listen for the specified event. | -| eventName | string | The name of the event to listen for. | -| listener | function | The event listener to register. | - - -* * * - -### eventBus.unlistenAll(eventTarget, listener) ⇒ [EventBus](#EventBus)  -Removes the provided event listener from the set of event listeners -executed when the any custom event fired by the same implementation -passes through the specified event target. - -The method has no effect if the listener is not registered at the -specified event target. - -**Kind**: instance method of [EventBus](#EventBus) -**Returns**: [EventBus](#EventBus) - This event bus. - -| Param | Type | Description | -| --- | --- | --- | -| eventTarget | EventTarget | The event target at which the event listener listens for events. | -| listener | function | The event listener to deregister. | - - -* * * - -### eventBus.unlisten(eventTarget, eventName, listener) ⇒ [EventBus](#EventBus)  -Removes the provided event listener from the set of event listeners -executed when the specified custom event fired by the same -implementation passes through the specified event target. - -The method has no effect if the listener is not registered for the -specified event at the specified event target. - -**Kind**: instance method of [EventBus](#EventBus) -**Returns**: [EventBus](#EventBus) - This event bus. - -| Param | Type | Description | -| --- | --- | --- | -| eventTarget | EventTarget | The event target at which the listener is listening for the event. | -| eventName | string | The name of the event listened for. | -| listener | function | The event listener to deregister. | - - -* * * - diff --git a/docs/_posts/2022-07-14-execution-abstract-execution.md b/docs/_posts/2022-07-14-execution-abstract-execution.md deleted file mode 100644 index 568afd6906..0000000000 --- a/docs/_posts/2022-07-14-execution-abstract-execution.md +++ /dev/null @@ -1,44 +0,0 @@ ---- -category: "execution" -title: "API - AbstractExecution" -menuTitle: "AbstractExecution" ---- - -## *AbstractExecution ⇐ Execution -Basic implementation of the [Execution](Execution) interface. Provides the basic -functionality for appending and validating jobs. - -**Kind**: global abstract class -**Extends**: Execution - -* *[AbstractExecution](#AbstractExecution) ⇐ Execution* - * *[.append()](#AbstractExecution+append)* - * *[.execute()](#AbstractExecution+execute)* - * *[._validateJob(job)](#AbstractExecution+_validateJob) ⇒ boolean* - - -* * * - -### *abstractExecution.append()*  -**Kind**: instance method of [AbstractExecution](#AbstractExecution) - -* * * - -### *abstractExecution.execute()*  -**Kind**: instance method of [AbstractExecution](#AbstractExecution) - -* * * - -### *abstractExecution.\_validateJob(job) ⇒ boolean -Return true if the given job can be executed - -**Kind**: instance method of [AbstractExecution](#AbstractExecution) -**Access**: protected - -| Param | Type | -| --- | --- | -| job | function | - - -* * * - diff --git a/docs/_posts/2022-07-14-execution-execution.md b/docs/_posts/2022-07-14-execution-execution.md deleted file mode 100644 index 904c7267fb..0000000000 --- a/docs/_posts/2022-07-14-execution-execution.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -category: "execution" -title: "API - Execution" -menuTitle: "Execution" ---- - -## Execution  -**Kind**: global interface - -* [Execution](#Execution) - * [.append(jobs)](#Execution+append) - * [.execute(...args)](#Execution+execute) ⇒ Promise - - -* * * - -### execution.append(jobs)  -Adds a new job to be executed. The job is appended at the end of the -list of current jobs therefore is executed last. - -**Kind**: instance method of [Execution](#Execution) - -| Param | Type | Description | -| --- | --- | --- | -| jobs | Array.<function(): Promise> | The jobs to be executed. | - - -* * * - -### execution.execute(...args) ⇒ Promise  -Start executing collected jobs. In the end a Promise is returned -with a resulting value. On the returned Promise a catch -method can be called to prevent any unwanted interruption. - -**Kind**: instance method of [Execution](#Execution) - -| Param | Type | Description | -| --- | --- | --- | -| ...args | any | Arguments to be passed when executing jobs | - - -* * * - diff --git a/docs/_posts/2022-07-14-execution-serial-batch.md b/docs/_posts/2022-07-14-execution-serial-batch.md deleted file mode 100644 index eca7030846..0000000000 --- a/docs/_posts/2022-07-14-execution-serial-batch.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -category: "execution" -title: "API - SerialBatch" -menuTitle: "SerialBatch" ---- - -## SerialBatch ⇐ AbstractExecution  -**Kind**: global class -**Extends**: AbstractExecution - -* * * - -### serialBatch.execute()  -**Kind**: instance method of [SerialBatch](#SerialBatch) - -* * * - diff --git a/docs/_posts/2022-07-14-extension-abstract-extension.md b/docs/_posts/2022-07-14-extension-abstract-extension.md deleted file mode 100644 index a97ed389df..0000000000 --- a/docs/_posts/2022-07-14-extension-abstract-extension.md +++ /dev/null @@ -1,180 +0,0 @@ ---- -category: "extension" -title: "API - AbstractExtension" -menuTitle: "AbstractExtension" ---- - -## *AbstractExtension ⇐ Extension -Abstract extension - -**Kind**: global abstract class -**Extends**: Extension - -* *[AbstractExtension](#AbstractExtension) ⇐ Extension* - * *[._pageStateManager](#AbstractExtension+_pageStateManager) : PageStateManager* - * *[._usingStateManager](#AbstractExtension+_usingStateManager) : boolean* - * *[.status](#AbstractExtension+status) : number* - * *[.params](#AbstractExtension+params) : Object.<string, string>* - * *[.init()](#AbstractExtension+init)* - * *[.destroy()](#AbstractExtension+destroy)* - * *[.activate()](#AbstractExtension+activate)* - * *[.deactivate()](#AbstractExtension+deactivate)* - * **[.load()](#AbstractExtension+load)** - * *[.update()](#AbstractExtension+update)* - * *[.setState()](#AbstractExtension+setState)* - * *[.getState()](#AbstractExtension+getState)* - * *[.beginStateTransaction()](#AbstractExtension+beginStateTransaction)* - * *[.commitStateTransaction()](#AbstractExtension+commitStateTransaction)* - * *[.cancelStateTransaction()](#AbstractExtension+cancelStateTransaction)* - * *[.setPartialState()](#AbstractExtension+setPartialState)* - * *[.getPartialState()](#AbstractExtension+getPartialState)* - * *[.clearPartialState()](#AbstractExtension+clearPartialState)* - * *[.setRouteParams()](#AbstractExtension+setRouteParams)* - * *[.getRouteParams()](#AbstractExtension+getRouteParams)* - * *[.setPageStateManager()](#AbstractExtension+setPageStateManager)* - * *[.switchToStateManager()](#AbstractExtension+switchToStateManager)* - * *[.switchToPartialState()](#AbstractExtension+switchToPartialState)* - * *[.getHttpStatus()](#AbstractExtension+getHttpStatus)* - * *[.getAllowedStateKeys()](#AbstractExtension+getAllowedStateKeys)* - - -* * * - -### *abstractExtension.\_pageStateManager : PageStateManager -State manager. - -**Kind**: instance property of [AbstractExtension](#AbstractExtension) -**Access**: protected - -* * * - -### *abstractExtension.\_usingStateManager : boolean -Flag indicating whether the PageStateManager should be used instead -of partial state. - -**Kind**: instance property of [AbstractExtension](#AbstractExtension) -**Access**: protected - -* * * - -### *abstractExtension.status : number -The HTTP response code to send to the client. - -**Kind**: instance property of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.params : Object.<string, string> -The route parameters extracted from the current route. - -**Kind**: instance property of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.init()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.destroy()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.activate()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.deactivate()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### **abstractExtension.load()**  -**Kind**: instance abstract method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.update()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.setState()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.getState()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.beginStateTransaction()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.commitStateTransaction()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.cancelStateTransaction()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.setPartialState()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.getPartialState()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.clearPartialState()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.setRouteParams()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.getRouteParams()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.setPageStateManager()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.switchToStateManager()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.switchToPartialState()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.getHttpStatus()*  -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - -### *abstractExtension.getAllowedStateKeys()*  -Returns array of allowed state keys for extension. - -**Kind**: instance method of [AbstractExtension](#AbstractExtension) - -* * * - diff --git a/docs/_posts/2022-07-14-extension-extension.md b/docs/_posts/2022-07-14-extension-extension.md deleted file mode 100644 index 9f644e5865..0000000000 --- a/docs/_posts/2022-07-14-extension-extension.md +++ /dev/null @@ -1,284 +0,0 @@ ---- -category: "extension" -title: "API - Extension" -menuTitle: "Extension" ---- - -## Extension  -**Kind**: global interface - -* [Extension](#Extension) - * [.init()](#Extension+init) ⇒ Promise.<undefined> \| undefined - * [.destroy()](#Extension+destroy) ⇒ Promise.<undefined> \| undefined - * [.activate()](#Extension+activate) ⇒ Promise.<undefined> \| undefined - * [.deactivate()](#Extension+deactivate) ⇒ Promise.<undefined> \| undefined - * [.load()](#Extension+load) ⇒ Promise.<Object.<string, (Promise\|\*)>> \| Object.<string, (Promise\|\*)> - * [.update([prevParams])](#Extension+update) ⇒ Promise.<Object.<string, (Promise\|\*)>> \| Object.<string, (Promise\|\*)> - * [.setState(statePatch)](#Extension+setState) - * [.getState()](#Extension+getState) ⇒ Object.<string, \*> - * [.beginStateTransaction()](#Extension+beginStateTransaction) - * [.commitStateTransaction()](#Extension+commitStateTransaction) - * [.cancelStateTransaction()](#Extension+cancelStateTransaction) - * [.setPartialState(partialStatePatch)](#Extension+setPartialState) - * [.getPartialState()](#Extension+getPartialState) ⇒ Object.<string, \*> - * [.clearPartialState()](#Extension+clearPartialState) - * [.setPageStateManager(pageStateManager)](#Extension+setPageStateManager) - * [.switchToStateManager()](#Extension+switchToStateManager) - * [.switchToPartialState()](#Extension+switchToPartialState) - * [.setRouteParams([params])](#Extension+setRouteParams) - * [.getRouteParams()](#Extension+getRouteParams) ⇒ Object.<string, string> - * [.getAllowedStateKeys()](#Extension+getAllowedStateKeys) ⇒ Array.<string> - - -* * * - -### extension.init() ⇒ Promise.<undefined> \| undefined  -Callback for initializing the controller extension after the route -parameters have been set on this extension. - -**Kind**: instance method of [Extension](#Extension) - -* * * - -### extension.destroy() ⇒ Promise.<undefined> \| undefined  -Finalization callback, called when the controller is being discarded by -the application. This usually happens when the user navigates to a -different URL. - -This method is the lifecycle counterpart of the [init](#Extension+init) -method. - -The extension should release all resources obtained in the -[init](#Extension+init) method. The extension must release any resources -that might not be released automatically when the extensions's instance -is destroyed by the garbage collector. - -**Kind**: instance method of [Extension](#Extension) - -* * * - -### extension.activate() ⇒ Promise.<undefined> \| undefined  -Callback for activating the extension in the UI. This is the last -method invoked during controller (and extensions) initialization, called -after all the promises returned from the [load](#Extension+load) method have -been resolved and the controller has configured the meta manager. - -The extension may register any React and DOM event listeners in this -method. The extension may start receiving event bus event after this -method completes. - -**Kind**: instance method of [Extension](#Extension) - -* * * - -### extension.deactivate() ⇒ Promise.<undefined> \| undefined  -Callback for deactivating the extension in the UI. This is the first -method invoked during extension deinitialization. This usually happens -when the user navigates to a different URL. - -This method is the lifecycle counterpart of the [activate](#Extension+activate) -method. - -The extension should deregister listeners registered and release all -resources obtained in the [activate](#Extension+activate) method. - -**Kind**: instance method of [Extension](#Extension) - -* * * - -### extension.load() ⇒ Promise.<Object.<string, (Promise\|\*)>> \| Object.<string, (Promise\|\*)>  -Callback the extension uses to request the resources it needs to render -its related parts of the view. This method is invoked after the -[init](#Extension+init) method. - -The extension should request all resources it needs in this method, and -represent each resource request as a promise that will resolve once the -resource is ready for use (these can be data fetched over HTTP(S), -database connections, etc). - -The method must return a plain flat object. The field names of the -object identify the resources being fetched and prepared, each value -must be either the resource (e.g. view configuration or a value -retrieved synchronously) or a Promise that will resolve to the resource. - -The IMA will use the object to set the state of the controller. - -Any returned promise that gets rejected will redirect the application to -the error page. The error page that will be used depends on the status -code of the error. - -**Kind**: instance method of [Extension](#Extension) -**Returns**: Promise.<Object.<string, (Promise\|\*)>> \| Object.<string, (Promise\|\*)> - A map object of promises resolved when all resources the controller - requires are ready. The resolved values will be pushed to the - controller's state. - -* * * - -### extension.update([prevParams]) ⇒ Promise.<Object.<string, (Promise\|\*)>> \| Object.<string, (Promise\|\*)>  -Callback for updating the extension after a route update. This method -is invoked if the current route has the `onlyUpdate` flag set to `true` and -the current controller and view match those used by the previously active -route, or, the `onlyUpdate` option of the current route is a callback and -returned `true`. - -The method must return an object with the same semantics as the result -of the [load](#Extension+load) method. The controller's state will then be -patched by the returned object. - -The other extension lifecycle callbacks ([init](#Extension+init), -[load](#Extension+load), [activate](#Extension+activate), -[deactivate](#Extension+deactivate), [Extension#deinit](Extension#deinit)) are not call in -case this method is used. - -**Kind**: instance method of [Extension](#Extension) -**Returns**: Promise.<Object.<string, (Promise\|\*)>> \| Object.<string, (Promise\|\*)> - A map object of promises resolved when all resources the controller - requires are ready. The resolved values will be pushed to the - controller's state. - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| [prevParams] | Object.<string, string> | {} | Previous route parameters. | - - -* * * - -### extension.setState(statePatch)  -Patches the state of the controller using this extension by using the -provided object by copying the provided patch object fields to the -controller's state object. - -Note that the state is not patched recursively but by replacing the -values of the top-level fields of the state object. - -Note that the extension may modify only the fields of the state that it -has specified by its [getAllowedStateKeys](#Extension+getAllowedStateKeys) method. - -**Kind**: instance method of [Extension](#Extension) - -| Param | Type | Description | -| --- | --- | --- | -| statePatch | Object.<string, \*> | Patch of the controller's state to apply. | - - -* * * - -### extension.getState() ⇒ Object.<string, \*>  -Returns the current state of the controller using this extension. - -**Kind**: instance method of [Extension](#Extension) -**Returns**: Object.<string, \*> - The current state of the controller. - -* * * - -### extension.beginStateTransaction()  -Starts queueing state patches off the controller state. While the transaction -is active every {@method setState} call has no effect on the current state. - -Note that call to {@method getState} after the transaction has begun will -return state as it was before the transaction. - -**Kind**: instance method of [Extension](#Extension) - -* * * - -### extension.commitStateTransaction()  -Applies queued state patches to the controller state. All patches are squashed -and applied with one {@method setState} call. - -**Kind**: instance method of [Extension](#Extension) - -* * * - -### extension.cancelStateTransaction()  -Cancels ongoing state transaction. Uncommited state changes are lost. - -**Kind**: instance method of [Extension](#Extension) - -* * * - -### extension.setPartialState(partialStatePatch)  -Patches the partial state of the extension. The extension is able -during its load and update phase receive state from active controller -using this extension and from previously loaded/updated extensions. - -**Kind**: instance method of [Extension](#Extension) - -| Param | Type | Description | -| --- | --- | --- | -| partialStatePatch | Object.<string, \*> | Patch of the controller's state to apply. | - - -* * * - -### extension.getPartialState() ⇒ Object.<string, \*>  -Returns the current partial state of the extension. - -**Kind**: instance method of [Extension](#Extension) -**Returns**: Object.<string, \*> - The current partial state of the extension. - -* * * - -### extension.clearPartialState()  -Clears the current partial state of the extension and sets it value to empty object. - -**Kind**: instance method of [Extension](#Extension) - -* * * - -### extension.setPageStateManager(pageStateManager)  -Sets the state manager used to manage the controller's state.. - -**Kind**: instance method of [Extension](#Extension) - -| Param | Type | Description | -| --- | --- | --- | -| pageStateManager | PageStateManager | The current state manager to use. | - - -* * * - -### extension.switchToStateManager()  -Enables using PageStateManager for getting state. - -**Kind**: instance method of [Extension](#Extension) - -* * * - -### extension.switchToPartialState()  -Disables using PageStateManager for getting state. - -**Kind**: instance method of [Extension](#Extension) - -* * * - -### extension.setRouteParams([params])  -Sets the current route parameters. This method is invoked before the -[init](#Extension+init) method. - -**Kind**: instance method of [Extension](#Extension) - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| [params] | Object.<string, string> | {} | The current route parameters. | - - -* * * - -### extension.getRouteParams() ⇒ Object.<string, string>  -Returns the current route parameters. - -**Kind**: instance method of [Extension](#Extension) -**Returns**: Object.<string, string> - The current route parameters. - -* * * - -### extension.getAllowedStateKeys() ⇒ Array.<string>  -Returns the names of the state fields that may be manipulated by this -extension. Manipulations of other fields of the state will be ignored. - -**Kind**: instance method of [Extension](#Extension) -**Returns**: Array.<string> - The names of the state fields that may be manipulated - by this extension. - -* * * - diff --git a/docs/_posts/2022-07-14-http-http-agent-impl.md b/docs/_posts/2022-07-14-http-http-agent-impl.md deleted file mode 100644 index 4b0dc4e5bd..0000000000 --- a/docs/_posts/2022-07-14-http-http-agent-impl.md +++ /dev/null @@ -1,344 +0,0 @@ ---- -category: "http" -title: "API - HttpAgentImpl" -menuTitle: "HttpAgentImpl" ---- - -## HttpAgentImpl  -Implementation of the HttpAgent interface with internal caching -of completed and ongoing HTTP requests and cookie storage. - -**Kind**: global class - -* [HttpAgentImpl](#HttpAgentImpl) - * [new HttpAgentImpl(proxy, cache, cookie, Helper, config)](#new_HttpAgentImpl_new) - * [._proxy](#HttpAgentImpl+_proxy) : HttpProxy - * [._cache](#HttpAgentImpl+_cache) : Cache - * [._cookie](#HttpAgentImpl+_cookie) : CookieStorage - * [._cacheOptions](#HttpAgentImpl+_cacheOptions) : Object.<string, string> - * [._defaultRequestOptions](#HttpAgentImpl+_defaultRequestOptions) : Object - * [._Helper](#HttpAgentImpl+_Helper) : vendor.$Helper - * [._internalCacheOfPromises](#HttpAgentImpl+_internalCacheOfPromises) : Map.<string, Promise.<{status: number, body: \*, params: {method: string, url: string, transformedUrl: string, data: Object.<string, (boolean\|number\|string)>}, headers: Object.<string, string>, cached: boolean}>> - * [.get()](#HttpAgentImpl+get) - * [.post()](#HttpAgentImpl+post) - * [.put()](#HttpAgentImpl+put) - * [.patch()](#HttpAgentImpl+patch) - * [.delete()](#HttpAgentImpl+delete) - * [.getCacheKey()](#HttpAgentImpl+getCacheKey) - * [.setDefaultHeader()](#HttpAgentImpl+setDefaultHeader) - * [.clearDefaultHeaders()](#HttpAgentImpl+clearDefaultHeaders) - * [._clone(value)](#HttpAgentImpl+_clone) ⇒ \* - * [._requestWithCheckCache(method, url, data, [options])](#HttpAgentImpl+_requestWithCheckCache) ⇒ Promise.<HttpAgent~Response> - * [._getCachedData(method, url, data)](#HttpAgentImpl+_getCachedData) ⇒ Promise.<HttpAgent~Response> - * [._request(method, url, data, [options])](#HttpAgentImpl+_request) ⇒ Promise.<HttpAgent~Response> - * [._proxyResolved(response)](#HttpAgentImpl+_proxyResolved) ⇒ HttpAgent~Response - * [._proxyRejected(error)](#HttpAgentImpl+_proxyRejected) ⇒ Promise.<HttpAgent~Response> - * [._prepareOptions(options)](#HttpAgentImpl+_prepareOptions) ⇒ HttpAgent~RequestOptions - * [._getCacheKeySuffix(method, url, data)](#HttpAgentImpl+_getCacheKeySuffix) ⇒ string - * [._setCookiesFromResponse(agentResponse)](#HttpAgentImpl+_setCookiesFromResponse) - * [._saveAgentResponseToCache(agentResponse)](#HttpAgentImpl+_saveAgentResponseToCache) - - -* * * - -### new HttpAgentImpl(proxy, cache, cookie, Helper, config)  -Initializes the HTTP handler. - - -| Param | Type | Description | -| --- | --- | --- | -| proxy | HttpProxy | The low-level HTTP proxy for sending the HTTP requests. | -| cache | Cache | Cache to use for caching ongoing and completed requests. | -| cookie | CookieStorage | The cookie storage to use internally. | -| Helper | vendor.$Helper | The IMA.js helper methods. | -| config | Object.<string, \*> | Configuration of the HTTP handler for the current application environment, specifying the various default request option values and cache option values. | - -**Example** -```js -http - .get('url', { data: data }, { - ttl: 2000, - repeatRequest: 1, - withCredentials: true, - timeout: 2000, - accept: 'application/json', - language: 'en', - listeners: { 'progress': callbackFunction } - }) - .then((response) => { - //resolve - } - .catch((error) => { - //catch - }); -``` -**Example** -```js -http - .setDefaultHeader('Accept-Language', 'en') - .clearDefaultHeaders(); -``` - -* * * - -### httpAgentImpl.\_proxy : HttpProxy  -HTTP proxy, used to execute the HTTP requests. - -**Kind**: instance property of [HttpAgentImpl](#HttpAgentImpl) - -* * * - -### httpAgentImpl.\_cache : Cache  -Internal request cache, used to cache completed request results. - -**Kind**: instance property of [HttpAgentImpl](#HttpAgentImpl) - -* * * - -### httpAgentImpl.\_cookie : CookieStorage  -Cookie storage, used to keep track of cookies received from the -server and send them with the subsequent requests to the server. - -**Kind**: instance property of [HttpAgentImpl](#HttpAgentImpl) - -* * * - -### httpAgentImpl.\_cacheOptions : Object.<string, string>  -Cache options. - -**Kind**: instance property of [HttpAgentImpl](#HttpAgentImpl) - -* * * - -### httpAgentImpl.\_defaultRequestOptions : Object  -Default request options. - -**Kind**: instance property of [HttpAgentImpl](#HttpAgentImpl) - -* * * - -### httpAgentImpl.\_Helper : vendor.$Helper  -Tha IMA.js helper methods. - -**Kind**: instance property of [HttpAgentImpl](#HttpAgentImpl) - -* * * - -### httpAgentImpl.\_internalCacheOfPromises : Map.<string, Promise.<{status: number, body: \*, params: {method: string, url: string, transformedUrl: string, data: Object.<string, (boolean\|number\|string)>}, headers: Object.<string, string>, cached: boolean}>>  -Internal request cache, used to cache ongoing requests. - -**Kind**: instance property of [HttpAgentImpl](#HttpAgentImpl) - -* * * - -### httpAgentImpl.get()  -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) - -* * * - -### httpAgentImpl.post()  -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) - -* * * - -### httpAgentImpl.put()  -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) - -* * * - -### httpAgentImpl.patch()  -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) - -* * * - -### httpAgentImpl.delete()  -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) - -* * * - -### httpAgentImpl.getCacheKey()  -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) - -* * * - -### httpAgentImpl.setDefaultHeader()  -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) - -* * * - -### httpAgentImpl.clearDefaultHeaders()  -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) - -* * * - -### httpAgentImpl.\_clone(value) ⇒ \*  -Attempts to clone the provided value, if possible. Values that cannot be -cloned (e.g. promises) will be simply returned. - -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) -**Returns**: \* - The created clone, or the provided value if the value cannot be - cloned. - -| Param | Type | Description | -| --- | --- | --- | -| value | \* | The value to clone. | - - -* * * - -### httpAgentImpl.\_requestWithCheckCache(method, url, data, [options]) ⇒ Promise.<HttpAgent~Response>  -Check cache and if data isnt available then make real request. - -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) -**Returns**: Promise.<HttpAgent~Response> - A promise that resolves to the response - with body parsed as JSON. - -| Param | Type | Description | -| --- | --- | --- | -| method | string | The HTTP method to use. | -| url | string | The URL to which the request should be sent. | -| data | Object.<string, (boolean\|number\|string\|Date)> | The data to send with the request. | -| [options] | HttpAgent~RequestOptions | Optional request options. | - - -* * * - -### httpAgentImpl.\_getCachedData(method, url, data) ⇒ Promise.<HttpAgent~Response>  -Tests whether an ongoing or completed HTTP request for the specified URL -and data is present in the internal cache and, if it is, the method -returns a promise that resolves to the response body parsed as JSON. - -The method returns null if no such request is present in the -cache. - -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) -**Returns**: Promise.<HttpAgent~Response> - A promise that will resolve to the - server response with the body parsed as JSON, or null if - no such request is present in the cache. - -| Param | Type | Description | -| --- | --- | --- | -| method | string | The HTTP method used by the request. | -| url | string | The URL to which the request was made. | -| data | Object.<string, (boolean\|number\|string\|Date)> | The data sent to the server with the request. | - - -* * * - -### httpAgentImpl.\_request(method, url, data, [options]) ⇒ Promise.<HttpAgent~Response>  -Sends a new HTTP request using the specified method to the specified -url. The request will carry the provided data as query parameters if the -HTTP method is GET, but the data will be sent as request body for any -other request method. - -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) -**Returns**: Promise.<HttpAgent~Response> - A promise that resolves to the response - with the body parsed as JSON. - -| Param | Type | Description | -| --- | --- | --- | -| method | string | HTTP method to use. | -| url | string | The URL to which the request is sent. | -| data | Object.<string, (boolean\|number\|string\|Date)> | The data sent with the request. | -| [options] | HttpAgent~RequestOptions | Optional request options. | - - -* * * - -### httpAgentImpl.\_proxyResolved(response) ⇒ HttpAgent~Response  -Handles successful completion of an HTTP request by the HTTP proxy. - -The method also updates the internal cookie storage with the cookies -received from the server. - -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) -**Returns**: HttpAgent~Response - The post-processed server response. - -| Param | Type | Description | -| --- | --- | --- | -| response | HttpAgent~Response | Server response. | - - -* * * - -### httpAgentImpl.\_proxyRejected(error) ⇒ Promise.<HttpAgent~Response>  -Handles rejection of the HTTP request by the HTTP proxy. The method -tests whether there are any remaining tries for the request, and if -there are any, it attempts re-send the request. - -The method rejects the internal request promise if there are no tries -left. - -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) -**Returns**: Promise.<HttpAgent~Response> - A promise that will either resolve to a - server's response (with the body parsed as JSON) if there are - any tries left and the re-tried request succeeds, or rejects - with an error containing details of the cause of the request's - failure. - -| Param | Type | Description | -| --- | --- | --- | -| error | GenericError | The error provided by the HttpProxy, carrying the error parameters, such as the request url, data, method, options and other useful data. | - - -* * * - -### httpAgentImpl.\_prepareOptions(options) ⇒ HttpAgent~RequestOptions  -Prepares the provided request options object by filling in missing -options with default values and addding extra options used internally. - -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) -**Returns**: HttpAgent~RequestOptions - Request options with set filled-in - default values for missing fields, and extra options used - internally. - -| Param | Type | Description | -| --- | --- | --- | -| options | HttpAgent~RequestOptions | Optional request options. | - - -* * * - -### httpAgentImpl.\_getCacheKeySuffix(method, url, data) ⇒ string  -Generates cache key suffix for an HTTP request to the specified URL with -the specified data. - -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) -**Returns**: string - The suffix of a cache key to use for a request to the - specified URL, carrying the specified data. - -| Param | Type | Description | -| --- | --- | --- | -| method | string | The HTTP method used by the request. | -| url | string | The URL to which the request is sent. | -| data | Object.<string, (boolean\|number\|string\|Date)> | The data sent with the request. | - - -* * * - -### httpAgentImpl.\_setCookiesFromResponse(agentResponse)  -Sets all cookies from the Set-Cookie response header to the -cookie storage. - -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) - -| Param | Type | Description | -| --- | --- | --- | -| agentResponse | HttpAgent~Response | The response of the server. | - - -* * * - -### httpAgentImpl.\_saveAgentResponseToCache(agentResponse)  -Saves the server response to the cache to be used as the result of the -next request of the same properties. - -**Kind**: instance method of [HttpAgentImpl](#HttpAgentImpl) - -| Param | Type | Description | -| --- | --- | --- | -| agentResponse | HttpAgent~Response | The response of the server. | - - -* * * - diff --git a/docs/_posts/2022-07-14-http-http-agent.md b/docs/_posts/2022-07-14-http-http-agent.md deleted file mode 100644 index 262bc71329..0000000000 --- a/docs/_posts/2022-07-14-http-http-agent.md +++ /dev/null @@ -1,197 +0,0 @@ ---- -category: "http" -title: "API - HttpAgent" -menuTitle: "HttpAgent" ---- - -## HttpAgent  -**Kind**: global interface - -* [HttpAgent](#HttpAgent) - * _instance_ - * [.get(url, data, [options])](#HttpAgent+get) ⇒ [Promise.<Response>](#HttpAgent..Response) - * [.post(url, data, [options])](#HttpAgent+post) ⇒ [Promise.<Response>](#HttpAgent..Response) - * [.put(url, data, [options])](#HttpAgent+put) ⇒ [Promise.<Response>](#HttpAgent..Response) - * [.patch(url, data, [options])](#HttpAgent+patch) ⇒ [Promise.<Response>](#HttpAgent..Response) - * [.delete(url, data, [options])](#HttpAgent+delete) ⇒ [Promise.<Response>](#HttpAgent..Response) - * [.getCacheKey(method, url, data)](#HttpAgent+getCacheKey) ⇒ string - * [.setDefaultHeader(header, value)](#HttpAgent+setDefaultHeader) ⇒ [HttpAgent](#HttpAgent) - * [.clearDefaultHeaders()](#HttpAgent+clearDefaultHeaders) ⇒ [HttpAgent](#HttpAgent) - * _inner_ - * [~RequestOptions](#HttpAgent..RequestOptions) : Object - * [~Response](#HttpAgent..Response) : Object - - -* * * - -### httpAgent.get(url, data, [options]) ⇒ [Promise.<Response>](#HttpAgent..Response)  -Sends an HTTP GET request to the specified URL, sending the provided -data as query parameters. - -**Kind**: instance method of [HttpAgent](#HttpAgent) -**Returns**: [Promise.<Response>](#HttpAgent..Response) - A promise that resolves to the - response. - -| Param | Type | Description | -| --- | --- | --- | -| url | string | The URL to which the request should be made. | -| data | Object.<string, (boolean\|number\|string)> | The data to send to the server as query parameters. | -| [options] | [RequestOptions](#HttpAgent..RequestOptions) | Optional request options. | - - -* * * - -### httpAgent.post(url, data, [options]) ⇒ [Promise.<Response>](#HttpAgent..Response)  -Sends an HTTP POST request to the specified URL, sending the provided -data as the request body. If an object is provided as the request data, -the data will be JSON-encoded. Sending other primitive non-string values -as the request body is not supported. - -**Kind**: instance method of [HttpAgent](#HttpAgent) -**Returns**: [Promise.<Response>](#HttpAgent..Response) - A promise that resolves to the - response. - -| Param | Type | Description | -| --- | --- | --- | -| url | string | The URL to which the request should be made. | -| data | string \| Object.<string, \*> | The data to send to the server as the request body. | -| [options] | [RequestOptions](#HttpAgent..RequestOptions) | Optional request options. | - - -* * * - -### httpAgent.put(url, data, [options]) ⇒ [Promise.<Response>](#HttpAgent..Response)  -Sends an HTTP PUT request to the specified URL, sending the provided -data as the request body. If an object is provided as the request data, -the data will be JSON-encoded. Sending other primitive non-string values -as the request body is not supported. - -**Kind**: instance method of [HttpAgent](#HttpAgent) -**Returns**: [Promise.<Response>](#HttpAgent..Response) - A promise that resolves to the - response. - -| Param | Type | Description | -| --- | --- | --- | -| url | string | The URL to which the request should be made. | -| data | string \| Object.<string, \*> | The data to send to the server as the request body. | -| [options] | [RequestOptions](#HttpAgent..RequestOptions) | Optional request options. | - - -* * * - -### httpAgent.patch(url, data, [options]) ⇒ [Promise.<Response>](#HttpAgent..Response)  -Sends an HTTP PATCH request to the specified URL, sending the provided -data as the request body. If an object is provided as the request data, -the data will be JSON-encoded. Sending other primitive non-string values -as the request body is not supported. - -**Kind**: instance method of [HttpAgent](#HttpAgent) -**Returns**: [Promise.<Response>](#HttpAgent..Response) - A promise that resolves to the - response. - -| Param | Type | Description | -| --- | --- | --- | -| url | string | The URL to which the request should be made. | -| data | string \| Object.<string, \*> | The data to send to the server as the request body. | -| [options] | [RequestOptions](#HttpAgent..RequestOptions) | Optional request options. | - - -* * * - -### httpAgent.delete(url, data, [options]) ⇒ [Promise.<Response>](#HttpAgent..Response)  -Sends an HTTP DELETE request to the specified URL, sending the provided -data as the request body. If an object is provided as the request data, -the data will be JSON-encoded. Sending other primitive non-string values -as the request body is not supported. - -**Kind**: instance method of [HttpAgent](#HttpAgent) -**Returns**: [Promise.<Response>](#HttpAgent..Response) - A promise that resolves to the - response. - -| Param | Type | Description | -| --- | --- | --- | -| url | string | The URL to which the request should be made. | -| data | string \| Object.<string, \*> | The data to send to the server as the request body. | -| [options] | [RequestOptions](#HttpAgent..RequestOptions) | Optional request options. | - - -* * * - -### httpAgent.getCacheKey(method, url, data) ⇒ string  -Generates a cache key to use for identifying a request to the specified -URL using the specified HTTP method, submitting the provided data. - -**Kind**: instance method of [HttpAgent](#HttpAgent) -**Returns**: string - The key to use for identifying such a request in the - cache. - -| Param | Type | Description | -| --- | --- | --- | -| method | string | The HTTP method used by the request. | -| url | string | The URL to which the request is sent. | -| data | Object.<string, string> | The data associated with the request. These can be either the query parameters or request body data. | - - -* * * - -### httpAgent.setDefaultHeader(header, value) ⇒ [HttpAgent](#HttpAgent)  -Sets the specified header to be sent with every subsequent HTTP request, -unless explicitly overridden by request options. - -**Kind**: instance method of [HttpAgent](#HttpAgent) -**Returns**: [HttpAgent](#HttpAgent) - This HTTP agent. - -| Param | Type | Description | -| --- | --- | --- | -| header | string | The name of the header. | -| value | string | The header value. To provide multiple values, separate them with commas (see http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2). | - - -* * * - -### httpAgent.clearDefaultHeaders() ⇒ [HttpAgent](#HttpAgent)  -Clears all configured default headers. - -**Kind**: instance method of [HttpAgent](#HttpAgent) -**Returns**: [HttpAgent](#HttpAgent) - This HTTP agent. - -* * * - -### HttpAgent~RequestOptions : Object  -Options for a request sent using the HTTP agent. - -**Kind**: inner typedef of [HttpAgent](#HttpAgent) -**Properties** - -| Name | Type | Description | -| --- | --- | --- | -| [timeout] | number | Specifies the request timeout in milliseconds. | -| [ttl] | number | Specified how long the request may be cached in milliseconds. | -| [repeatRequest] | number | Specifies the maximum number of tries to repeat the request if the request fails. | -| [headers] | Object.<string, string> | Sets the additional request headers (the keys are case-insensitive header names, the values are header values). | -| [fetchOptions] | Object.<string, \*> | Sets the fetch request options. | -| [cache] | boolean | Flag that enables caching the HTTP request (enabled by default, also applies to requests in progress). | -| [withCredentials] | boolean | Flag that indicates whether the request should be made using credentials such as cookies or authorization headers. | -| [listeners] | Object | Listeners for request events. | -| [postProcessor] | function | Response post-processor applied just before the response is stored in the cache and returned. | - - -* * * - -### HttpAgent~Response : Object  -A response from the server. - -**Kind**: inner typedef of [HttpAgent](#HttpAgent) -**Properties** - -| Name | Type | Description | -| --- | --- | --- | -| status | number | The HTTP response status code. | -| body | \* | The parsed response body, parsed as JSON. | -| params | HttpProxy~RequestParams | The original request params. | -| headers | Object.<string, string> | The response HTTP headers. | -| cached | boolean | Whether or not the response has been cached. | - - -* * * - diff --git a/docs/_posts/2022-07-14-http-http-proxy.md b/docs/_posts/2022-07-14-http-http-proxy.md deleted file mode 100644 index 99c3dee1f2..0000000000 --- a/docs/_posts/2022-07-14-http-http-proxy.md +++ /dev/null @@ -1,337 +0,0 @@ ---- -category: "http" -title: "API - HttpProxy" -menuTitle: "HttpProxy" ---- - -## HttpProxy  -Middleware proxy between [HttpAgent](HttpAgent) implementations and the -[Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API), -providing a Promise-oriented API for sending requests. - -**Kind**: global class - -* [HttpProxy](#HttpProxy) - * [new HttpProxy(transformer, window)](#new_HttpProxy_new) - * _instance_ - * [._transformer](#HttpProxy+_transformer) : UrlTransformer - * [._window](#HttpProxy+_window) : Window - * [._defaultHeaders](#HttpProxy+_defaultHeaders) : Map.<string, string> - * [.request(method, url, data, [options])](#HttpProxy+request) ⇒ Promise.<HttpAgent~Response> - * [.setDefaultHeader(header, value)](#HttpProxy+setDefaultHeader) - * [.clearDefaultHeaders()](#HttpProxy+clearDefaultHeaders) - * [.getErrorParams(method, url, data, options, status, body, cause)](#HttpProxy+getErrorParams) ⇒ [ErrorParams](#HttpProxy..ErrorParams) - * [.haveToSetCookiesManually()](#HttpProxy+haveToSetCookiesManually) ⇒ boolean - * [._processResponse(requestParams, response, responseBody)](#HttpProxy+_processResponse) ⇒ HttpAgent~Response - * [._headersToPlainObject(headers)](#HttpProxy+_headersToPlainObject) ⇒ Object.<string, string> - * [._processError(fetchError, requestParams)](#HttpProxy+_processError) ⇒ GenericError - * [._createError(cause, requestParams, status, responseBody)](#HttpProxy+_createError) ⇒ GenericError - * [._composeRequestParams(method, url, data, options)](#HttpProxy+_composeRequestParams) ⇒ [RequestParams](#HttpProxy..RequestParams) - * [._composeRequestInit(method, data, options)](#HttpProxy+_composeRequestInit) ⇒ RequestInit - * [._getContentType(method, data, options)](#HttpProxy+_getContentType) ⇒ string \| null - * [._composeRequestUrl(url, data)](#HttpProxy+_composeRequestUrl) ⇒ string - * [._shouldRequestHaveBody(method, data)](#HttpProxy+_shouldRequestHaveBody) ⇒ boolean - * _inner_ - * [~RequestParams](#HttpProxy..RequestParams) : Object - * [~ErrorParams](#HttpProxy..ErrorParams) : Object - - -* * * - -### new HttpProxy(transformer, window)  -Initializes the HTTP proxy. - - -| Param | Type | Description | -| --- | --- | --- | -| transformer | UrlTransformer | A transformer of URLs to which requests are made. | -| window | Window | Helper for manipulating the global object `window` regardless of the client/server-side environment. | - - -* * * - -### httpProxy.\_transformer : UrlTransformer  -A transformer of URLs to which requests are made. - -**Kind**: instance property of [HttpProxy](#HttpProxy) - -* * * - -### httpProxy.\_window : Window  -Helper for manipulating the global object `window` regardless of the -client/server-side environment. - -**Kind**: instance property of [HttpProxy](#HttpProxy) - -* * * - -### httpProxy.\_defaultHeaders : Map.<string, string>  -The default HTTP headers to include with the HTTP requests, unless -overridden. - -**Kind**: instance property of [HttpProxy](#HttpProxy) - -* * * - -### httpProxy.request(method, url, data, [options]) ⇒ Promise.<HttpAgent~Response>  -Executes a HTTP request to the specified URL using the specified HTTP -method, carrying the provided data. - -**Kind**: instance method of [HttpProxy](#HttpProxy) -**Returns**: Promise.<HttpAgent~Response> - A promise that resolves to the server - response. - -| Param | Type | Description | -| --- | --- | --- | -| method | string | The HTTP method to use. | -| url | string | The URL to which the request should be made. | -| data | Object.<string, (boolean\|number\|string\|Date)> | The data to be send to the server. The data will be included as query parameters if the request method is `GET` or `HEAD`, and as a request body for any other request method. | -| [options] | HttpAgent~RequestOptions | Optional request options. | - - -* * * - -### httpProxy.setDefaultHeader(header, value)  -Sets the specified default HTTP header. The header will be sent with all -subsequent HTTP requests unless reconfigured using this method, -overridden by request options, or cleared by -[clearDefaultHeaders](#HttpProxy+clearDefaultHeaders) method. - -**Kind**: instance method of [HttpProxy](#HttpProxy) - -| Param | Type | Description | -| --- | --- | --- | -| header | string | A header name. | -| value | string | A header value. | - - -* * * - -### httpProxy.clearDefaultHeaders()  -Clears all defaults headers sent with all requests. - -**Kind**: instance method of [HttpProxy](#HttpProxy) - -* * * - -### httpProxy.getErrorParams(method, url, data, options, status, body, cause) ⇒ [ErrorParams](#HttpProxy..ErrorParams)  -Gets an object that describes a failed HTTP request, providing -information about both the failure reported by the server and how the -request has been sent to the server. - -**Kind**: instance method of [HttpProxy](#HttpProxy) -**Returns**: [ErrorParams](#HttpProxy..ErrorParams) - An object containing both the details of - the error and the request that lead to it. - -| Param | Type | Description | -| --- | --- | --- | -| method | string | The HTTP method used to make the request. | -| url | string | The URL to which the request has been made. | -| data | Object.<string, (boolean\|number\|string\|Date)> | The data sent with the request. | -| options | HttpAgent~RequestOptions | Optional request options. | -| status | number | The HTTP response status code send by the server. | -| body | object | The body of HTTP error response (detailed information). | -| cause | Error | The low-level cause error. | - - -* * * - -### httpProxy.haveToSetCookiesManually() ⇒ boolean  -Returns `true` if cookies have to be processed manually by setting -`Cookie` HTTP header on requests and parsing the `Set-Cookie` HTTP -response header. - -The result of this method depends on the current application -environment, the client-side usually handles cookie processing -automatically, leading this method returning `false`. - -At the client-side, the method tests whether the client has cookies -enabled (which results in cookies being automatically processed by the -browser), and returns `true` or `false` accordingly. - -**Kind**: instance method of [HttpProxy](#HttpProxy) -**Returns**: boolean - `true` if cookies are not processed automatically by - the environment and have to be handled manually by parsing - response headers and setting request headers, otherwise `false`. - -* * * - -### httpProxy.\_processResponse(requestParams, response, responseBody) ⇒ HttpAgent~Response  -Processes the response received from the server. - -**Kind**: instance method of [HttpProxy](#HttpProxy) -**Returns**: HttpAgent~Response - The server's response along with all related - metadata. - -| Param | Type | Description | -| --- | --- | --- | -| requestParams | [RequestParams](#HttpProxy..RequestParams) | The original request's parameters. | -| response | Response | The Fetch API's `Response` object representing the server's response. | -| responseBody | \* | The server's response body. | - - -* * * - -### httpProxy.\_headersToPlainObject(headers) ⇒ Object.<string, string>  -Converts the provided Fetch API's `Headers` object to a plain object. - -**Kind**: instance method of [HttpProxy](#HttpProxy) -**Returns**: Object.<string, string> - Converted headers. - -| Param | Type | Description | -| --- | --- | --- | -| headers | Headers | The headers to convert. | - - -* * * - -### httpProxy.\_processError(fetchError, requestParams) ⇒ GenericError  -Processes the provided Fetch API or internal error and creates an error -to expose to the calling API. - -**Kind**: instance method of [HttpProxy](#HttpProxy) -**Returns**: GenericError - The error to provide to the calling API. - -| Param | Type | Description | -| --- | --- | --- | -| fetchError | Error | The internal error to process. | -| requestParams | [RequestParams](#HttpProxy..RequestParams) | An object representing the complete request parameters used to create and send the HTTP request. | - - -* * * - -### httpProxy.\_createError(cause, requestParams, status, responseBody) ⇒ GenericError  -Creates an error that represents a failed HTTP request. - -**Kind**: instance method of [HttpProxy](#HttpProxy) -**Returns**: GenericError - The error representing a failed HTTP request. - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| cause | Error | | The error's message. | -| requestParams | [RequestParams](#HttpProxy..RequestParams) | | An object representing the complete request parameters used to create and send the HTTP request. | -| status | number | | Server's response HTTP status code. | -| responseBody | \* | | The body of the server's response, if any. | - - -* * * - -### httpProxy.\_composeRequestParams(method, url, data, options) ⇒ [RequestParams](#HttpProxy..RequestParams)  -Composes an object representing the HTTP request parameters from the -provided arguments. - -**Kind**: instance method of [HttpProxy](#HttpProxy) -**Returns**: [RequestParams](#HttpProxy..RequestParams) - An object - representing the complete request parameters used to create and - send the HTTP request. - -| Param | Type | Description | -| --- | --- | --- | -| method | string | The HTTP method to use. | -| url | string | The URL to which the request should be sent. | -| data | Object.<string, (boolean\|number\|string\|Date)> | The data to send with the request. | -| options | HttpAgent~RequestOptions | Optional request options. | - - -* * * - -### httpProxy.\_composeRequestInit(method, data, options) ⇒ RequestInit  -Composes an init object, which can be used as a second argument of -`window.fetch` method. - -**Kind**: instance method of [HttpProxy](#HttpProxy) -**Returns**: RequestInit - A `RequestInit` object of the Fetch API. - -| Param | Type | Description | -| --- | --- | --- | -| method | string | The HTTP method to use. | -| data | Object.<string, (boolean\|number\|string\|Date)> | The data to be send with a request. | -| options | HttpAgent~RequestOptions | Options provided by the HTTP agent. | - - -* * * - -### httpProxy.\_getContentType(method, data, options) ⇒ string \| null  -Gets a `Content-Type` header value for defined method, data and options. - -**Kind**: instance method of [HttpProxy](#HttpProxy) -**Returns**: string \| null - A `Content-Type` header value, null for requests - with no body. - -| Param | Type | Description | -| --- | --- | --- | -| method | string | The HTTP method to use. | -| data | Object.<string, (boolean\|number\|string\|Date)> | The data to be send with a request. | -| options | HttpAgent~RequestOptions | Options provided by the HTTP agent. | - - -* * * - -### httpProxy.\_composeRequestUrl(url, data) ⇒ string  -Transforms the provided URL using the current URL transformer and adds -the provided data to the URL's query string. - -**Kind**: instance method of [HttpProxy](#HttpProxy) -**Returns**: string - The transformed URL with the provided data attached to - its query string. - -| Param | Type | Description | -| --- | --- | --- | -| url | string | The URL to prepare for use with the fetch API. | -| data | Object.<string, (boolean\|number\|string\|Date)> | The data to be attached to the query string. | - - -* * * - -### httpProxy.\_shouldRequestHaveBody(method, data) ⇒ boolean  -Checks if a request should have a body (`GET` and `HEAD` requests don't -have a body). - -**Kind**: instance method of [HttpProxy](#HttpProxy) -**Returns**: boolean - `true` if a request has a body, otherwise `false`. - -| Param | Type | Description | -| --- | --- | --- | -| method | string | The HTTP method. | -| data | Object.<string, (boolean\|number\|string\|Date)> | The data to be send with a request. | - - -* * * - -### HttpProxy~RequestParams : Object  -An object representing the complete request parameters used to create and -send the HTTP request. - -**Kind**: inner typedef of [HttpProxy](#HttpProxy) -**Properties** - -| Name | Type | Description | -| --- | --- | --- | -| method | string | The HTTP method. | -| url | string | The original URL to which to make the request. | -| transformedUrl | string | The actual URL to which to make the request, created by applying the URL transformer to the original URL. | -| data | Object.<string, (boolean\|number\|string\|Date)> | The request data, sent as query or body. | -| options | HttpAgent~RequestOptions | The high-level request options provided by the HTTP agent. | - - -* * * - -### HttpProxy~ErrorParams : Object  -An object that describes a failed HTTP request, providing -information about both the failure reported by the server and how the -request has been sent to the server. - -**Kind**: inner typedef of [HttpProxy](#HttpProxy) -**Properties** - -| Name | Type | Description | -| --- | --- | --- | -| errorName | string | An error name. | -| status | number | The HTTP response status code send by the server. | -| body | object | The body of HTTP error response (detailed information). | -| cause | Error | The low-level cause error. | -| params | [RequestParams](#HttpProxy..RequestParams) | An object representing the complete request parameters used to create and send the HTTP request. | - - -* * * - diff --git a/docs/_posts/2022-07-14-http-status-code.md b/docs/_posts/2022-07-14-http-status-code.md deleted file mode 100644 index ddf54ace11..0000000000 --- a/docs/_posts/2022-07-14-http-status-code.md +++ /dev/null @@ -1,100 +0,0 @@ ---- -category: "http" -title: "API - StatusCode" -menuTitle: "StatusCode" ---- - -## Members - -
    -
    OK : number
    -

    OK

    -
    -
    NO_CONTENT : number
    -

    No content

    -
    -
    BAD_REQUEST : number
    -

    Bad request

    -
    -
    UNAUTHORIZED : number
    -

    Unauthorized

    -
    -
    FORBIDDEN : number
    -

    Forbidden

    -
    -
    NOT_FOUND : number
    -

    Not found

    -
    -
    TIMEOUT : number
    -

    Request timeout

    -
    -
    SERVER_ERROR : number
    -

    Internal Server Error

    -
    -
    - -## OK : number  -OK - -**Kind**: global variable - -* * * - -## NO\_CONTENT : number  -No content - -**Kind**: global variable - -* * * - -## BAD\_REQUEST : number  -Bad request - -**Kind**: global variable - -* * * - -## UNAUTHORIZED : number  -Unauthorized - -**Kind**: global variable - -* * * - -## FORBIDDEN : number  -Forbidden - -**Kind**: global variable - -* * * - -## NOT\_FOUND : number  -Not found - -**Kind**: global variable - -* * * - -## TIMEOUT : number  -Request timeout - -**Kind**: global variable - -* * * - -## SERVER\_ERROR : number  -Internal Server Error - -**Kind**: global variable - -* * * - -## StatusCode : enum  -HTTP status code constants, representing the HTTP status codes recognized -and processed by this proxy. - -**Kind**: global enum -**See**: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html - -* * * - diff --git a/docs/_posts/2022-07-14-http-url-transformer.md b/docs/_posts/2022-07-14-http-url-transformer.md deleted file mode 100644 index a76de48e5a..0000000000 --- a/docs/_posts/2022-07-14-http-url-transformer.md +++ /dev/null @@ -1,70 +0,0 @@ ---- -category: "http" -title: "API - UrlTransformer" -menuTitle: "UrlTransformer" ---- - -## UrlTransformer  -Utility for transforming URLs according to the configured replacement rules. - -**Kind**: global class - -* [UrlTransformer](#UrlTransformer) - * [new UrlTransformer()](#new_UrlTransformer_new) - * [._rules](#UrlTransformer+_rules) : Object.<string, string> - * [.addRule(pattern, replacement)](#UrlTransformer+addRule) ⇒ [UrlTransformer](#UrlTransformer) - * [.clear()](#UrlTransformer+clear) ⇒ [UrlTransformer](#UrlTransformer) - * [.transform(str)](#UrlTransformer+transform) ⇒ string - - -* * * - -### new UrlTransformer()  -Initializes the URL transformer. - - -* * * - -### urlTransformer.\_rules : Object.<string, string>  -**Kind**: instance property of [UrlTransformer](#UrlTransformer) - -* * * - -### urlTransformer.addRule(pattern, replacement) ⇒ [UrlTransformer](#UrlTransformer)  -Adds the provided replacement rule to the rules used by this URL -transformer. - -**Kind**: instance method of [UrlTransformer](#UrlTransformer) -**Returns**: [UrlTransformer](#UrlTransformer) - This transformer. - -| Param | Type | Description | -| --- | --- | --- | -| pattern | string | Regexp patter to look for (must be escaped as if for use in the {@linkcode Regexp} constructor). | -| replacement | string | The replacement of the matched patter in any matched URL. | - - -* * * - -### urlTransformer.clear() ⇒ [UrlTransformer](#UrlTransformer)  -Clears all rules. - -**Kind**: instance method of [UrlTransformer](#UrlTransformer) -**Returns**: [UrlTransformer](#UrlTransformer) - This transformer. - -* * * - -### urlTransformer.transform(str) ⇒ string  -Applies all rules registered with this URL transformer to the provided -URL and returns the result. The rules will be applied in the order they -were registered. - -**Kind**: instance method of [UrlTransformer](#UrlTransformer) -**Returns**: string - Transformed URL. - -| Param | Type | Description | -| --- | --- | --- | -| str | string | The URL for transformation. | - - -* * * - diff --git a/docs/_posts/2022-07-14-index.md b/docs/_posts/2022-07-14-index.md deleted file mode 100644 index ec380ec43f..0000000000 --- a/docs/_posts/2022-07-14-index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- ---- - diff --git a/docs/_posts/2022-07-14-meta-meta-manager-impl.md b/docs/_posts/2022-07-14-meta-meta-manager-impl.md deleted file mode 100644 index 11cd9808c3..0000000000 --- a/docs/_posts/2022-07-14-meta-meta-manager-impl.md +++ /dev/null @@ -1,121 +0,0 @@ ---- -category: "meta" -title: "API - MetaManagerImpl" -menuTitle: "MetaManagerImpl" ---- - -## MetaManagerImpl  -Default implementation of the MetaManager interface. - -**Kind**: global class - -* [MetaManagerImpl](#MetaManagerImpl) - * [new MetaManagerImpl()](#new_MetaManagerImpl_new) - * [._title](#MetaManagerImpl+_title) : string - * [._metaName](#MetaManagerImpl+_metaName) : Map.<string, string> - * [._metaProperty](#MetaManagerImpl+_metaProperty) : Map.<string, string> - * [._link](#MetaManagerImpl+_link) : Map.<string, string> - * [.setTitle()](#MetaManagerImpl+setTitle) - * [.getTitle()](#MetaManagerImpl+getTitle) - * [.setMetaName()](#MetaManagerImpl+setMetaName) - * [.getMetaName()](#MetaManagerImpl+getMetaName) - * [.getMetaNames()](#MetaManagerImpl+getMetaNames) - * [.setMetaProperty()](#MetaManagerImpl+setMetaProperty) - * [.getMetaProperty()](#MetaManagerImpl+getMetaProperty) - * [.getMetaProperties()](#MetaManagerImpl+getMetaProperties) - * [.setLink()](#MetaManagerImpl+setLink) - * [.getLink()](#MetaManagerImpl+getLink) - * [.getLinks()](#MetaManagerImpl+getLinks) - - -* * * - -### new MetaManagerImpl()  -Initializes the meta page attributes manager. - - -* * * - -### metaManagerImpl.\_title : string  -The page title. - -**Kind**: instance property of [MetaManagerImpl](#MetaManagerImpl) - -* * * - -### metaManagerImpl.\_metaName : Map.<string, string>  -Storage of generic meta information. - -**Kind**: instance property of [MetaManagerImpl](#MetaManagerImpl) - -* * * - -### metaManagerImpl.\_metaProperty : Map.<string, string>  -Storage of specialized meta information. - -**Kind**: instance property of [MetaManagerImpl](#MetaManagerImpl) - -* * * - -### metaManagerImpl.\_link : Map.<string, string>  -Storage of generic link information. - -**Kind**: instance property of [MetaManagerImpl](#MetaManagerImpl) - -* * * - -### metaManagerImpl.setTitle()  -**Kind**: instance method of [MetaManagerImpl](#MetaManagerImpl) - -* * * - -### metaManagerImpl.getTitle()  -**Kind**: instance method of [MetaManagerImpl](#MetaManagerImpl) - -* * * - -### metaManagerImpl.setMetaName()  -**Kind**: instance method of [MetaManagerImpl](#MetaManagerImpl) - -* * * - -### metaManagerImpl.getMetaName()  -**Kind**: instance method of [MetaManagerImpl](#MetaManagerImpl) - -* * * - -### metaManagerImpl.getMetaNames()  -**Kind**: instance method of [MetaManagerImpl](#MetaManagerImpl) - -* * * - -### metaManagerImpl.setMetaProperty()  -**Kind**: instance method of [MetaManagerImpl](#MetaManagerImpl) - -* * * - -### metaManagerImpl.getMetaProperty()  -**Kind**: instance method of [MetaManagerImpl](#MetaManagerImpl) - -* * * - -### metaManagerImpl.getMetaProperties()  -**Kind**: instance method of [MetaManagerImpl](#MetaManagerImpl) - -* * * - -### metaManagerImpl.setLink()  -**Kind**: instance method of [MetaManagerImpl](#MetaManagerImpl) - -* * * - -### metaManagerImpl.getLink()  -**Kind**: instance method of [MetaManagerImpl](#MetaManagerImpl) - -* * * - -### metaManagerImpl.getLinks()  -**Kind**: instance method of [MetaManagerImpl](#MetaManagerImpl) - -* * * - diff --git a/docs/_posts/2022-07-14-meta-meta-manager.md b/docs/_posts/2022-07-14-meta-meta-manager.md deleted file mode 100644 index 8f5e620b1e..0000000000 --- a/docs/_posts/2022-07-14-meta-meta-manager.md +++ /dev/null @@ -1,165 +0,0 @@ ---- -category: "meta" -title: "API - MetaManager" -menuTitle: "MetaManager" ---- - -## MetaManager  -**Kind**: global interface - -* [MetaManager](#MetaManager) - * [.setTitle(title)](#MetaManager+setTitle) - * [.getTitle()](#MetaManager+getTitle) ⇒ string - * [.setMetaName(name, value)](#MetaManager+setMetaName) - * [.getMetaName(name)](#MetaManager+getMetaName) ⇒ string - * [.getMetaNames()](#MetaManager+getMetaNames) ⇒ Array.<string> - * [.setMetaProperty(name, value)](#MetaManager+setMetaProperty) - * [.getMetaProperty(name)](#MetaManager+getMetaProperty) ⇒ string - * [.getMetaProperties()](#MetaManager+getMetaProperties) ⇒ Array.<string> - * [.setLink(relation, reference)](#MetaManager+setLink) - * [.getLink(relation)](#MetaManager+getLink) ⇒ string - * [.getLinks()](#MetaManager+getLinks) ⇒ Array.<string> - - -* * * - -### metaManager.setTitle(title)  -Sets the page title. - -**Kind**: instance method of [MetaManager](#MetaManager) - -| Param | Type | Description | -| --- | --- | --- | -| title | string | The new page title. | - - -* * * - -### metaManager.getTitle() ⇒ string  -Returns the page title. The method returns an empty string if no page -title has been set yet. - -Note that the page title is cached internally by the meta manager and -may therefore differ from the current document title if it has been -modified by a 3rd party code. - -**Kind**: instance method of [MetaManager](#MetaManager) -**Returns**: string - The current page title. - -* * * - -### metaManager.setMetaName(name, value)  -Set the specified named meta information property. - -**Kind**: instance method of [MetaManager](#MetaManager) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Meta information property name, for example keywords. | -| value | string | The meta information value. | - - -* * * - -### metaManager.getMetaName(name) ⇒ string  -Returns the value of the specified named meta information property. The -method returns an empty string for missing meta information (to make the -returned value React-friendly). - -**Kind**: instance method of [MetaManager](#MetaManager) -**Returns**: string - The value of the generic meta information, or an empty - string. - -| Param | Type | Description | -| --- | --- | --- | -| name | string | The name of the named meta information property. | - - -* * * - -### metaManager.getMetaNames() ⇒ Array.<string>  -Returns the names of the currently specified named meta information -properties. - -**Kind**: instance method of [MetaManager](#MetaManager) -**Returns**: Array.<string> - The names of the currently specified named meta - information properties. - -* * * - -### metaManager.setMetaProperty(name, value)  -Sets the specified specialized meta information property. - -**Kind**: instance method of [MetaManager](#MetaManager) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the specialized meta information property. | -| value | string | The value of the meta information property. | - - -* * * - -### metaManager.getMetaProperty(name) ⇒ string  -Returns the value of the specified specialized meta information -property. The method returns an empty string for missing meta -information (to make the returned value React-friendly). - -**Kind**: instance method of [MetaManager](#MetaManager) -**Returns**: string - The value of the specified meta information, or an - empty string. - -| Param | Type | Description | -| --- | --- | --- | -| name | string | The name of the specialized meta information property. | - - -* * * - -### metaManager.getMetaProperties() ⇒ Array.<string>  -Returns the names of the currently specified specialized meta -information properties. - -**Kind**: instance method of [MetaManager](#MetaManager) -**Returns**: Array.<string> - The names of the currently specified specialized meta - information properties. - -* * * - -### metaManager.setLink(relation, reference)  -Sets the specified specialized link information. - -**Kind**: instance method of [MetaManager](#MetaManager) - -| Param | Type | Description | -| --- | --- | --- | -| relation | string | The relation of the link target to the current page. | -| reference | string | The reference to the location of the related document, e.g. a URL. | - - -* * * - -### metaManager.getLink(relation) ⇒ string  -Return the reference to the specified related linked document. The -method returns an empty string for missing meta information (to make the -returned value React-friendly). - -**Kind**: instance method of [MetaManager](#MetaManager) -**Returns**: string - The reference to the location of the related document, - e.g. a URL. - -| Param | Type | Description | -| --- | --- | --- | -| relation | string | The relation of the link target to the current page. | - - -* * * - -### metaManager.getLinks() ⇒ Array.<string>  -Returns the relations of the currently set related documents linked to -the current page. - -**Kind**: instance method of [MetaManager](#MetaManager) - -* * * - diff --git a/docs/_posts/2022-07-14-namespace.md b/docs/_posts/2022-07-14-namespace.md deleted file mode 100644 index ec380ec43f..0000000000 --- a/docs/_posts/2022-07-14-namespace.md +++ /dev/null @@ -1,3 +0,0 @@ ---- ---- - diff --git a/docs/_posts/2022-07-14-object-container.md b/docs/_posts/2022-07-14-object-container.md deleted file mode 100644 index f54121db0e..0000000000 --- a/docs/_posts/2022-07-14-object-container.md +++ /dev/null @@ -1,560 +0,0 @@ ---- -category: "general" -title: "API - ObjectContainer" -menuTitle: "ObjectContainer" ---- - -## Classes - -
    -
    ObjectContainer
    -

    The Object Container is an enhanced dependency injector with support for -aliases and constants, and allowing to reference classes in the application -namespace by specifying their fully qualified names.

    -
    -
    Entry
    -

    Object container entry, representing either a class, interface, constant or -an alias.

    -
    -
    - -## ObjectContainer  -The Object Container is an enhanced dependency injector with support for -aliases and constants, and allowing to reference classes in the application -namespace by specifying their fully qualified names. - -**Kind**: global class - -* [ObjectContainer](#ObjectContainer) - * [new ObjectContainer(namespace)](#new_ObjectContainer_new) - * _instance_ - * [._namespace](#ObjectContainer+_namespace) : ima.core.Namespace - * [._entries](#ObjectContainer+_entries) : Map.<(string\|function(new:\*, ...\*)\|function(...\*): \*), Entry.<\*>> - * [._bindingState](#ObjectContainer+_bindingState) : string - * [._bindingPlugin](#ObjectContainer+_bindingPlugin) : string - * [.bind(name, classConstructor, [dependencies])](#ObjectContainer+bind) ⇒ [ObjectContainer](#ObjectContainer) - * [.constant(name, value)](#ObjectContainer+constant) ⇒ [ObjectContainer](#ObjectContainer) - * [.inject(classConstructor, dependencies)](#ObjectContainer+inject) ⇒ [ObjectContainer](#ObjectContainer) - * [.provide(interfaceConstructor, implementationConstructor, dependencies)](#ObjectContainer+provide) ⇒ [ObjectContainer](#ObjectContainer) - * [.get(name)](#ObjectContainer+get) ⇒ T - * [.getConstructorOf(name)](#ObjectContainer+getConstructorOf) ⇒ function - * [.has(name)](#ObjectContainer+has) ⇒ boolean - * [.create(name, dependencies)](#ObjectContainer+create) ⇒ T - * [.clear()](#ObjectContainer+clear) ⇒ [ObjectContainer](#ObjectContainer) - * [.setBindingState(bindingState, bindingPluginName)](#ObjectContainer+setBindingState) - * [._getEntry(name)](#ObjectContainer+_getEntry) ⇒ Entry.<T> - * [._updateEntryValues(classConstructor, entry, dependencies)](#ObjectContainer+_updateEntryValues) - * [._createEntry(classConstructor, [dependencies], options)](#ObjectContainer+_createEntry) ⇒ T - * [._createInstanceFromEntry(entry, [dependencies])](#ObjectContainer+_createInstanceFromEntry) ⇒ T - * [._getEntryFromConstant(compositionName)](#ObjectContainer+_getEntryFromConstant) ⇒ Entry.<\*> - * [._getEntryFromNamespace(path)](#ObjectContainer+_getEntryFromNamespace) ⇒ Entry.<T> - * [._getEntryFromClassConstructor(classConstructor)](#ObjectContainer+_getEntryFromClassConstructor) ⇒ Entry.<T> - * _static_ - * [.PLUGIN_BINDING_STATE](#ObjectContainer.PLUGIN_BINDING_STATE) ⇒ string - * [.IMA_BINDING_STATE](#ObjectContainer.IMA_BINDING_STATE) ⇒ string - * [.APP_BINDING_STATE](#ObjectContainer.APP_BINDING_STATE) ⇒ string - - -* * * - -### new ObjectContainer(namespace)  -Initializes the object container. - - -| Param | Type | Description | -| --- | --- | --- | -| namespace | ima.core.Namespace | The namespace container, used to access classes and values using their fully qualified names. | - - -* * * - -### objectContainer.\_namespace : ima.core.Namespace  -The namespace container, used to access classes and values using -their fully qualified names. - -**Kind**: instance property of [ObjectContainer](#ObjectContainer) - -* * * - -### objectContainer.\_entries : Map.<(string\|function(new:\*, ...\*)\|function(...\*): \*), Entry.<\*>>  -**Kind**: instance property of [ObjectContainer](#ObjectContainer) - -* * * - -### objectContainer.\_bindingState : string  -The current binding state. - -The {@linkcode setBindingState()} method may be called for changing -object container binding state only by the bootstrap script. - -**Kind**: instance property of [ObjectContainer](#ObjectContainer) - -* * * - -### objectContainer.\_bindingPlugin : string  -The current plugin binding to OC. - -The {@linkcode setBindingState()} method may be called for changing -object container binding state only by the bootstrap script. - -**Kind**: instance property of [ObjectContainer](#ObjectContainer) - -* * * - -### objectContainer.bind(name, classConstructor, [dependencies]) ⇒ [ObjectContainer](#ObjectContainer)  -Binds the specified class or factory function and dependencies to the -specified alias. Binding a class or factory function to an alias allows -the class or function to be specied as a dependency by specifying the -alias and creating new instances by referring to the class or function -by the alias. - -Also note that the same class or function may be bound to several -aliases and each may use different dependencies. - -The alias will use the default dependencies bound for the class if no -dependencies are provided. - -**Kind**: instance method of [ObjectContainer](#ObjectContainer) -**Returns**: [ObjectContainer](#ObjectContainer) - This object container. - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Alias name. | -| classConstructor | function \| function | The class constructor or a factory function. | -| [dependencies] | Array.<\*> | The dependencies to pass into the constructor or factory function. | - - -* * * - -### objectContainer.constant(name, value) ⇒ [ObjectContainer](#ObjectContainer)  -Defines a new constant registered with this object container. Note that -this is the only way of passing string values to constructors -because the object container treats strings as class, interface, alias -or constant names. - -**Kind**: instance method of [ObjectContainer](#ObjectContainer) -**Returns**: [ObjectContainer](#ObjectContainer) - This object container. - -| Param | Type | Description | -| --- | --- | --- | -| name | string | The constant name. | -| value | \* | The constant value. | - - -* * * - -### objectContainer.inject(classConstructor, dependencies) ⇒ [ObjectContainer](#ObjectContainer)  -Configures the object loader with the specified default dependencies for -the specified class. - -New instances of the class created by this object container will receive -the provided dependencies into constructor unless custom dependencies -are provided. - -**Kind**: instance method of [ObjectContainer](#ObjectContainer) -**Returns**: [ObjectContainer](#ObjectContainer) - This object container. - -| Param | Type | Description | -| --- | --- | --- | -| classConstructor | function | The class constructor. | -| dependencies | Array.<\*> | The dependencies to pass into the constructor function. | - - -* * * - -### objectContainer.provide(interfaceConstructor, implementationConstructor, dependencies) ⇒ [ObjectContainer](#ObjectContainer)  -Configures the default implementation of the specified interface to use -when an implementation provider of the specified interface is requested -from this object container. - -The implementation constructor will obtain the provided default -dependencies or the dependencies provided to the create() -method. - -**Kind**: instance method of [ObjectContainer](#ObjectContainer) -**Returns**: [ObjectContainer](#ObjectContainer) - This object container. - -| Param | Type | Description | -| --- | --- | --- | -| interfaceConstructor | function | The constructor of the interface representing the service. | -| implementationConstructor | function | The constructor of the class implementing the service interface. | -| dependencies | Array.<\*> | The dependencies to pass into the constructor function. | - - -* * * - -### objectContainer.get(name) ⇒ T  -Retrieves the shared instance or value of the specified constant, alias, -class or factory function, interface, or fully qualified namespace path -(the method checks these in this order in case of a name clash). - -The instance or value is created lazily the first time it is requested. - -**Kind**: instance method of [ObjectContainer](#ObjectContainer) -**Returns**: T - The shared instance or value. - -| Param | Type | Description | -| --- | --- | --- | -| name | string \| function \| function | The name of the alias, class, interface, or the class, interface or a factory function. | - - -* * * - -### objectContainer.getConstructorOf(name) ⇒ function  -Returns the class constructor function of the specified class. - -**Kind**: instance method of [ObjectContainer](#ObjectContainer) -**Returns**: function - The constructor function. - -| Param | Type | Description | -| --- | --- | --- | -| name | string \| function | The name by which the class is registered with this object container. | - - -* * * - -### objectContainer.has(name) ⇒ boolean  -Returns true if the specified object, class or resource is -registered with this object container. - -**Kind**: instance method of [ObjectContainer](#ObjectContainer) -**Returns**: boolean - true if the specified object, class or - resource is registered with this object container. - -| Param | Type | Description | -| --- | --- | --- | -| name | string \| function | The resource name. | - - -* * * - -### objectContainer.create(name, dependencies) ⇒ T  -Creates a new instance of the class or retrieves the value generated by -the factory function identified by the provided name, class, interface, -or factory function, passing in the provided dependencies. - -The method uses the dependencies specified when the class, interface or -factory function has been registered with the object container if no -custom dependencies are provided. - -**Kind**: instance method of [ObjectContainer](#ObjectContainer) -**Returns**: T - Created instance or generated value. - -| Param | Type | Description | -| --- | --- | --- | -| name | string \| function \| function | The name of the alias, class, interface, or the class, interface or a factory function to use. | -| dependencies | Array.<\*> | The dependencies to pass into the constructor or factory function. | - - -* * * - -### objectContainer.clear() ⇒ [ObjectContainer](#ObjectContainer)  -Clears all entries from this object container and resets the locking -mechanism of this object container. - -**Kind**: instance method of [ObjectContainer](#ObjectContainer) -**Returns**: [ObjectContainer](#ObjectContainer) - This object container. - -* * * - -### objectContainer.setBindingState(bindingState, bindingPluginName)  -**Kind**: instance method of [ObjectContainer](#ObjectContainer) - -| Param | Type | Default | -| --- | --- | --- | -| bindingState | string | | -| bindingPluginName | string | null | - - -* * * - -### objectContainer.\_getEntry(name) ⇒ Entry.<T>  -Retrieves the entry for the specified constant, alias, class or factory -function, interface, or fully qualified namespace path (the method -checks these in this order in case of a name clash). - -The method retrieves an existing entry even if a qualified namespace -path is provided (if the target class or interface has been configured -in this object container). - -The method throws an Error if no such constant, alias, -registry, interface implementation is known to this object container and -the provided identifier is not a valid namespace path specifying an -existing class, interface or value. - -**Kind**: instance method of [ObjectContainer](#ObjectContainer) -**Returns**: Entry.<T> - The retrieved entry. -**Throws**: - -- Error If no such constant, alias, registry, interface - implementation is known to this object container. - - -| Param | Type | Description | -| --- | --- | --- | -| name | string \| function | Name of a constant or alias, factory function, class or interface constructor, or a fully qualified namespace path. | - - -* * * - -### objectContainer.\_updateEntryValues(classConstructor, entry, dependencies)  -The method update classConstructor and dependencies for defined entry. -The entry throw Error for constants and if you try override dependencies -more than once. - -**Kind**: instance method of [ObjectContainer](#ObjectContainer) - -| Param | Type | Description | -| --- | --- | --- | -| classConstructor | function \| function | The class constructor or factory function. | -| entry | [Entry](#Entry) | The entry representing the class that should have its instance created or factory faction to use to create a value. | -| dependencies | Array.<\*> | The dependencies to pass into the constructor or factory function. | - - -* * * - -### objectContainer.\_createEntry(classConstructor, [dependencies], options) ⇒ T  -Creates a new entry for the provided class or factory function, the -provided dependencies and entry options. - -**Kind**: instance method of [ObjectContainer](#ObjectContainer) -**Returns**: T - Created instance or generated value. - -| Param | Type | Description | -| --- | --- | --- | -| classConstructor | function \| function | The class constructor or factory function. | -| [dependencies] | Array.<\*> | The dependencies to pass into the constructor or factory function. | -| options | Object | | - - -* * * - -### objectContainer.\_createInstanceFromEntry(entry, [dependencies]) ⇒ T  -Creates a new instance of the class or retrieves the value generated by -the factory function represented by the provided entry, passing in the -provided dependencies. - -The method uses the dependencies specified by the entry if no custom -dependencies are provided. - -**Kind**: instance method of [ObjectContainer](#ObjectContainer) -**Returns**: T - Created instance or generated value. - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| entry | Entry.<T> | | The entry representing the class that should have its instance created or factory faction to use to create a value. | -| [dependencies] | Array.<\*> | [] | The dependencies to pass into the constructor or factory function. | - - -* * * - -### objectContainer.\_getEntryFromConstant(compositionName) ⇒ Entry.<\*>  -Retrieves the constant value denoted by the provided fully qualified -composition name. - -The method returns the entry for the constant if the constant is registered -with this object container, otherwise return null. - -Finally, if the constant composition name does not resolve to value, -the method return null. - -**Kind**: instance method of [ObjectContainer](#ObjectContainer) -**Returns**: Entry.<\*> - An entry representing the value at the specified - composition name in the constants. The method returns null - if the specified composition name does not exist in the constants. - -| Param | Type | -| --- | --- | -| compositionName | string | - - -* * * - -### objectContainer.\_getEntryFromNamespace(path) ⇒ Entry.<T>  -Retrieves the class denoted by the provided fully qualified name within -the application namespace. - -The method then checks whether there are dependecies configured for the -class, no matter whether the class is an implementation class or an -"interface" class. - -The method returns the entry for the class if the class is registered -with this object container, otherwise an unregistered entry is created -and returned. - -Finally, if the namespace path does not resolve to a class, the method -return an unregistered entry resolved to the value denoted by the -namespace path. - -Alternatively, if a constructor function is passed in instead of a -namespace path, the method returns null. - -**Kind**: instance method of [ObjectContainer](#ObjectContainer) -**Returns**: Entry.<T> - An entry representing the value or class at the - specified path in the namespace. The method returns null - if the specified path does not exist in the namespace. - -| Param | Type | Description | -| --- | --- | --- | -| path | string \| function | Namespace path pointing to a class or a value in the application namespace, or a constructor function. | - - -* * * - -### objectContainer.\_getEntryFromClassConstructor(classConstructor) ⇒ Entry.<T>  -Retrieves the class denoted by the provided class constructor. - -The method then checks whether there are defined $dependencies -property for class. Then the class is registered to this object -container. - -The method returns the entry for the class if the specified class -does not have defined $dependencies property return -null. - -**Kind**: instance method of [ObjectContainer](#ObjectContainer) -**Returns**: Entry.<T> - An entry representing the value at the specified - classConstructor. The method returns null - if the specified classConstructor does not have defined - $dependencies. - -| Param | Type | -| --- | --- | -| classConstructor | function | - - -* * * - -### ObjectContainer.PLUGIN\_BINDING\_STATE ⇒ string  -Returns constant for plugin binding state. - -When the object container is in plugin binding state, it is impossible -to register new aliases using the {@linkcode bind()} method and register -new constant using the {@linkcode constant()} method, or override the -default class dependencies of any already-configured class using the -{@linkcode inject()} method (classes that were not configured yet may be -configured using the {@linkcode inject()} method or {@linkcode provide()} -method). - -This prevents the unpriviledged code (e.g. 3rd party plugins) from -overriding the default dependency configuration provided by ima, or -overriding the configuration of a 3rd party plugin by another 3rd party -plugin. - -The application itself has always access to the unlocked object -container. - -**Kind**: static property of [ObjectContainer](#ObjectContainer) -**Returns**: string - The plugin binding state. - -* * * - -### ObjectContainer.IMA\_BINDING\_STATE ⇒ string  -Returns constant for IMA binding state. - -When the object container is in ima binding state, it is possible -to register new aliases using the {@linkcode bind()} method and register -new constant using the {@linkcode constant()} method, or override the -default class dependencies of any already-configured class using the -{@linkcode inject()} method (classes that were not configured yet may be -configured using the {@linkcode inject()} method or {@linkcode provide()} -method). - -**Kind**: static property of [ObjectContainer](#ObjectContainer) -**Returns**: string - The IMA binding state. - -* * * - -### ObjectContainer.APP\_BINDING\_STATE ⇒ string  -Returns constant for app binding state. - -When the object container is in app binding state, it is possible -to register new aliases using the {@linkcode bind()} method and register -new constant using the {@linkcode constant()} method, or override the -default class dependencies of any already-configured class using the -{@linkcode inject()} method (classes that were not configured yet may be -configured using the {@linkcode inject()} method or {@linkcode provide()} -method). - -**Kind**: static property of [ObjectContainer](#ObjectContainer) -**Returns**: string - The app binding state. - -* * * - -## Entry  -Object container entry, representing either a class, interface, constant or -an alias. - -**Kind**: global class - -* [Entry](#Entry) - * [new Entry(classConstructor, [dependencies], referrer, [options])](#new_Entry_new) - * [.classConstructor](#Entry+classConstructor) : function \| function - * [.sharedInstance](#Entry+sharedInstance) : T - * [._options](#Entry+_options) : Object - * [._referrer](#Entry+_referrer) : string - * [._dependencies](#Entry+_dependencies) : Array.<\*> - * [._overrideCounter](#Entry+_overrideCounter) : number - - -* * * - -### new Entry(classConstructor, [dependencies], referrer, [options])  -Initializes the entry. - - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| classConstructor | function \| function | | The class constructor or constant value getter. | -| [dependencies] | Array.<\*> | [] | The dependencies to pass into the constructor function. | -| referrer | string | | Reference to part of application that created this entry. | -| [options] | Object | | The Entry options. | - - -* * * - -### entry.classConstructor : function \| function  -The constructor of the class represented by this entry, or the -getter of the value of the constant represented by this entry. - -**Kind**: instance property of [Entry](#Entry) - -* * * - -### entry.sharedInstance : T  -The shared instance of the class represented by this entry. - -**Kind**: instance property of [Entry](#Entry) - -* * * - -### entry.\_options : Object  -The Entry options. - -**Kind**: instance property of [Entry](#Entry) - -* * * - -### entry.\_referrer : string  -Reference to part of application that created -this entry. - -**Kind**: instance property of [Entry](#Entry) - -* * * - -### entry.\_dependencies : Array.<\*>  -Dependencies of the class constructor of the class represented by -this entry. - -**Kind**: instance property of [Entry](#Entry) - -* * * - -### entry.\_overrideCounter : number  -The override counter - -**Kind**: instance property of [Entry](#Entry) - -* * * - diff --git a/docs/_posts/2022-07-14-page-abstract-component.md b/docs/_posts/2022-07-14-page-abstract-component.md deleted file mode 100644 index 75b679831e..0000000000 --- a/docs/_posts/2022-07-14-page-abstract-component.md +++ /dev/null @@ -1,158 +0,0 @@ ---- -category: "page" -title: "API - AbstractComponent" -menuTitle: "AbstractComponent" ---- - -## *AbstractComponent*  -The base class for all view components. - -**Kind**: global abstract class - -* *[AbstractComponent](#AbstractComponent)* - * *[new AbstractComponent(props, context)](#new_AbstractComponent_new)* - * *[._utils](#AbstractComponent+_utils) : Object.<string, \*>* - * *[.utils](#AbstractComponent+utils) ⇒ Object.<string, \*>* - * *[.localize(key, [params])](#AbstractComponent+localize) ⇒ string* - * *[.link(name, [params])](#AbstractComponent+link) ⇒ string* - * *[.cssClasses(classRules, includeComponentClassName)](#AbstractComponent+cssClasses) ⇒ string* - * *[.fire(eventName, [data])](#AbstractComponent+fire)* - * *[.listen(eventTarget, eventName, listener)](#AbstractComponent+listen)* - * *[.unlisten(eventTarget, eventName, listener)](#AbstractComponent+unlisten)* - - -* * * - -### *new AbstractComponent(props, context)*  -Initializes the component. - - -| Param | Type | Description | -| --- | --- | --- | -| props | Object.<string, \*> | The component properties. | -| context | Object.<string, \*> | The component context. | - - -* * * - -### *abstractComponent.\_utils : Object.<string, \*> -The view utilities, initialized lazily upon first use from either -the context, or the component's props. - -**Kind**: instance property of [AbstractComponent](#AbstractComponent) - -* * * - -### *abstractComponent.utils ⇒ Object.<string, \*> -Returns the utilities for the view components. The returned value is the -value bound to the $Utils object container constant. - -**Kind**: instance property of [AbstractComponent](#AbstractComponent) -**Returns**: Object.<string, \*> - The utilities for the view components. - -* * * - -### *abstractComponent.localize(key, [params]) ⇒ string -Returns the localized phrase identified by the specified key. The -placeholders in the localization phrase will be replaced by the provided -values. - -**Kind**: instance method of [AbstractComponent](#AbstractComponent) -**Returns**: string - Localized phrase. - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Localization key. | -| [params] | Object.<string, (number\|string)> | Values for replacing the placeholders in the localization phrase. | - - -* * * - -### *abstractComponent.link(name, [params]) ⇒ string -Generates an absolute URL using the provided route name (see the -app/config/routes.js file). The provided parameters will -replace the placeholders in the route pattern, while the extraneous -parameters will be appended to the generated URL's query string. - -**Kind**: instance method of [AbstractComponent](#AbstractComponent) -**Returns**: string - The generated URL. - -| Param | Type | Description | -| --- | --- | --- | -| name | string | The route name. | -| [params] | Object.<string, (number\|string)> | Router parameters and extraneous parameters to add to the URL as a query string. | - - -* * * - -### *abstractComponent.cssClasses(classRules, includeComponentClassName) ⇒ string -Generate a string of CSS classes from the properties of the passed-in -object that resolve to true. - -**Kind**: instance method of [AbstractComponent](#AbstractComponent) -**Returns**: string - String of CSS classes that had their property resolved - to true. - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| classRules | string \| Object.<string, boolean> | | CSS classes in a string separated by whitespace, or a map of CSS class names to boolean values. The CSS class name will be included in the result only if the value is true. | -| includeComponentClassName | boolean | false | | - -**Example** -```js -this.cssClasses('my-class my-class-modificator', true); -``` -**Example** -```js -this.cssClasses({ - 'my-class': true, - 'my-class-modificator': this.props.modificator - }, true); -``` - -* * * - -### *abstractComponent.fire(eventName, [data])*  -Creates and sends a new IMA.js DOM custom event from this component. - -**Kind**: instance method of [AbstractComponent](#AbstractComponent) - -| Param | Type | Description | -| --- | --- | --- | -| eventName | string | The name of the event. | -| [data] | \* | Data to send within the event. | - - -* * * - -### *abstractComponent.listen(eventTarget, eventName, listener)*  -Registers the provided event listener for execution whenever an IMA.js -DOM custom event of the specified name occurs at the specified event -target. - -**Kind**: instance method of [AbstractComponent](#AbstractComponent) - -| Param | Type | Description | -| --- | --- | --- | -| eventTarget | React.Element \| EventTarget | The react component or event target at which the listener should listen for the event. | -| eventName | string | The name of the event for which to listen. | -| listener | function | The listener for event to register. | - - -* * * - -### *abstractComponent.unlisten(eventTarget, eventName, listener)*  -Deregisters the provided event listener for an IMA.js DOM custom event -of the specified name at the specified event target. - -**Kind**: instance method of [AbstractComponent](#AbstractComponent) - -| Param | Type | Description | -| --- | --- | --- | -| eventTarget | React.Element \| EventTarget | The react component or event target at which the listener should listen for the event. | -| eventName | string | The name of the event for which to listen. | -| listener | function | The listener for event to register. | - - -* * * - diff --git a/docs/_posts/2022-07-14-page-abstract-document-view.md b/docs/_posts/2022-07-14-page-abstract-document-view.md deleted file mode 100644 index ed791f2e66..0000000000 --- a/docs/_posts/2022-07-14-page-abstract-document-view.md +++ /dev/null @@ -1,51 +0,0 @@ ---- -category: "page" -title: "API - AbstractDocumentView" -menuTitle: "AbstractDocumentView" ---- - -## *AbstractDocumentView*  -The base class for document view components. The document view components -create the basic markup, i.e. the html or head elements, -along with an element that will contain the view associated with the current -route. - -Note that the document views are always rendered only at the server-side and -cannot be switched at the client-side. Because of this, the document view -component must be pure and cannot contain a state. - -**Kind**: global abstract class - -* *[AbstractDocumentView](#AbstractDocumentView)* - * **[.masterElementId](#AbstractDocumentView.masterElementId) ⇒ string** - * *[.masterElementId](#AbstractDocumentView.masterElementId)* - - -* * * - -### **AbstractDocumentView.masterElementId ⇒ string**  -Returns the ID of the element (the value of the id attribute) -generated by this component that will contain the rendered page view. - -**Kind**: static abstract property of [AbstractDocumentView](#AbstractDocumentView) -**Returns**: string - The ID of the element generated by this component that - will contain the rendered page view. - -* * * - -### *AbstractDocumentView.masterElementId*  -Setter for the ID of the element (the value of the id attribute) -generated by this component that will contain the rendered page view. - -This setter is used only for compatibility with the public class fields -and can only be used once per component. - -**Kind**: static property of [AbstractDocumentView](#AbstractDocumentView) - -| Param | Type | Description | -| --- | --- | --- | -| masterElementId | string | The ID of the element generated by this component that will contain the rendered page view. | - - -* * * - diff --git a/docs/_posts/2022-07-14-page-abstract-pure-component.md b/docs/_posts/2022-07-14-page-abstract-pure-component.md deleted file mode 100644 index c38c87f9b4..0000000000 --- a/docs/_posts/2022-07-14-page-abstract-pure-component.md +++ /dev/null @@ -1,167 +0,0 @@ ---- -category: "page" -title: "API - AbstractPureComponent" -menuTitle: "AbstractPureComponent" ---- - -## *AbstractPureComponent*  -The base class for all pure (state-less) view components. - -Unlike the "regular" components, pure components do not have any external -state, and therefore are pure functions of their props and state. This -allows for some nice optimizations on react's part (see the link). - -Because of this, this class does not provide all the APIs provided by the -{@linkcode AbstractComponent} class (e.g. listen) as there is next -to none use of them with pure components. - -**Kind**: global abstract class -**See**: https://facebook.github.io/react/docs/react-api.html#react.purecomponent - -* *[AbstractPureComponent](#AbstractPureComponent)* - * *[new AbstractPureComponent(props, context)](#new_AbstractPureComponent_new)* - * *[._utils](#AbstractPureComponent+_utils) : Object.<string, \*>* - * *[.utils](#AbstractPureComponent+utils) ⇒ Object.<string, \*>* - * *[.localize(key, [params])](#AbstractPureComponent+localize) ⇒ string* - * *[.link(name, [params])](#AbstractPureComponent+link) ⇒ string* - * *[.cssClasses(classRules, includeComponentClassName)](#AbstractPureComponent+cssClasses) ⇒ string* - * *[.fire(eventName, [data])](#AbstractPureComponent+fire)* - * *[.listen(eventTarget, eventName, listener)](#AbstractPureComponent+listen)* - * *[.unlisten(eventTarget, eventName, listener)](#AbstractPureComponent+unlisten)* - - -* * * - -### *new AbstractPureComponent(props, context)*  -Initializes the component. - - -| Param | Type | Description | -| --- | --- | --- | -| props | Object.<string, \*> | The component properties. | -| context | Object.<string, \*> | The component context. | - - -* * * - -### *abstractPureComponent.\_utils : Object.<string, \*> -The view utilities, initialized lazily upon first use from either -the context, or the component's props. - -**Kind**: instance property of [AbstractPureComponent](#AbstractPureComponent) - -* * * - -### *abstractPureComponent.utils ⇒ Object.<string, \*> -Returns the utilities for the view components. The returned value is the -value bound to the $Utils object container constant. - -**Kind**: instance property of [AbstractPureComponent](#AbstractPureComponent) -**Returns**: Object.<string, \*> - The utilities for the view components. - -* * * - -### *abstractPureComponent.localize(key, [params]) ⇒ string -Returns the localized phrase identified by the specified key. The -placeholders in the localization phrase will be replaced by the provided -values. - -**Kind**: instance method of [AbstractPureComponent](#AbstractPureComponent) -**Returns**: string - Localized phrase. - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Localization key. | -| [params] | Object.<string, (number\|string)> | Values for replacing the placeholders in the localization phrase. | - - -* * * - -### *abstractPureComponent.link(name, [params]) ⇒ string -Generates an absolute URL using the provided route name (see the -app/config/routes.js file). The provided parameters will -replace the placeholders in the route pattern, while the extraneous -parameters will be appended to the generated URL's query string. - -**Kind**: instance method of [AbstractPureComponent](#AbstractPureComponent) -**Returns**: string - The generated URL. - -| Param | Type | Description | -| --- | --- | --- | -| name | string | The route name. | -| [params] | Object.<string, (number\|string)> | Router parameters and extraneous parameters to add to the URL as a query string. | - - -* * * - -### *abstractPureComponent.cssClasses(classRules, includeComponentClassName) ⇒ string -Generate a string of CSS classes from the properties of the passed-in -object that resolve to true. - -**Kind**: instance method of [AbstractPureComponent](#AbstractPureComponent) -**Returns**: string - String of CSS classes that had their property resolved - to true. - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| classRules | string \| Object.<string, boolean> | | CSS classes in a string separated by whitespace, or a map of CSS class names to boolean values. The CSS class name will be included in the result only if the value is true. | -| includeComponentClassName | boolean | false | | - -**Example** -```js -this.cssClasses('my-class my-class-modificator', true); -``` -**Example** -```js -this.cssClasses({ - 'my-class': true, - 'my-class-modificator': this.props.modificator - }, true); -``` - -* * * - -### *abstractPureComponent.fire(eventName, [data])*  -Creates and sends a new IMA.js DOM custom event from this component. - -**Kind**: instance method of [AbstractPureComponent](#AbstractPureComponent) - -| Param | Type | Description | -| --- | --- | --- | -| eventName | string | The name of the event. | -| [data] | \* | Data to send within the event. | - - -* * * - -### *abstractPureComponent.listen(eventTarget, eventName, listener)*  -Registers the provided event listener for execution whenever an IMA.js -DOM custom event of the specified name occurs at the specified event -target. - -**Kind**: instance method of [AbstractPureComponent](#AbstractPureComponent) - -| Param | Type | Description | -| --- | --- | --- | -| eventTarget | React.Element \| EventTarget | The react component or event target at which the listener should listen for the event. | -| eventName | string | The name of the event for which to listen. | -| listener | function | The listener for event to register. | - - -* * * - -### *abstractPureComponent.unlisten(eventTarget, eventName, listener)*  -Deregisters the provided event listener for an IMA.js DOM custom event -of the specified name at the specified event target. - -**Kind**: instance method of [AbstractPureComponent](#AbstractPureComponent) - -| Param | Type | Description | -| --- | --- | --- | -| eventTarget | React.Element \| EventTarget | The react component or event target at which the listener should listen for the event. | -| eventName | string | The name of the event for which to listen. | -| listener | function | The listener for event to register. | - - -* * * - diff --git a/docs/_posts/2022-07-14-page-context.md b/docs/_posts/2022-07-14-page-context.md deleted file mode 100644 index ec380ec43f..0000000000 --- a/docs/_posts/2022-07-14-page-context.md +++ /dev/null @@ -1,3 +0,0 @@ ---- ---- - diff --git a/docs/_posts/2022-07-14-page-page-factory.md b/docs/_posts/2022-07-14-page-page-factory.md deleted file mode 100644 index 3dbbd5ca5f..0000000000 --- a/docs/_posts/2022-07-14-page-page-factory.md +++ /dev/null @@ -1,91 +0,0 @@ ---- -category: "page" -title: "API - PageFactory" -menuTitle: "PageFactory" ---- - -## PageFactory  -Factory for page. - -**Kind**: global class - -* [PageFactory](#PageFactory) - * [new PageFactory(oc)](#new_PageFactory_new) - * [._oc](#PageFactory+_oc) : ObjectContainer - * [.createController(controller)](#PageFactory+createController) ⇒ Controller - * [.createView(view)](#PageFactory+createView) ⇒ function - * [.decorateController(controller)](#PageFactory+decorateController) ⇒ Controller - * [.decoratePageStateManager(pageStateManager, allowedStateKeys)](#PageFactory+decoratePageStateManager) ⇒ PageStateManager - - -* * * - -### new PageFactory(oc)  -Factory used by page management classes. - - -| Param | Type | -| --- | --- | -| oc | ObjectContainer | - - -* * * - -### pageFactory.\_oc : ObjectContainer  -The current application object container. - -**Kind**: instance property of [PageFactory](#PageFactory) - -* * * - -### pageFactory.createController(controller) ⇒ Controller  -Create new instance of {@linkcode Controller}. - -**Kind**: instance method of [PageFactory](#PageFactory) - -| Param | Type | -| --- | --- | -| controller | string \| function | - - -* * * - -### pageFactory.createView(view) ⇒ function  -Retrieves the specified react component class. - -**Kind**: instance method of [PageFactory](#PageFactory) -**Returns**: function - The react component class - constructor. - -| Param | Type | Description | -| --- | --- | --- | -| view | string \| function | The namespace referring to a react component class, or a react component class constructor. | - - -* * * - -### pageFactory.decorateController(controller) ⇒ Controller  -Returns decorated controller for ease setting seo params in controller. - -**Kind**: instance method of [PageFactory](#PageFactory) - -| Param | Type | -| --- | --- | -| controller | Controller | - - -* * * - -### pageFactory.decoratePageStateManager(pageStateManager, allowedStateKeys) ⇒ PageStateManager  -Returns decorated page state manager for extension. - -**Kind**: instance method of [PageFactory](#PageFactory) - -| Param | Type | -| --- | --- | -| pageStateManager | PageStateManager | -| allowedStateKeys | Array.<string> | - - -* * * - diff --git a/docs/_posts/2022-07-14-pagecomponent-helpers.md b/docs/_posts/2022-07-14-pagecomponent-helpers.md deleted file mode 100644 index 6a4d01a474..0000000000 --- a/docs/_posts/2022-07-14-pagecomponent-helpers.md +++ /dev/null @@ -1,192 +0,0 @@ ---- -category: "page" -title: "API - componentHelpers" -menuTitle: "componentHelpers" ---- - -## Functions - -
    -
    getUtils(props, context)Object.<string, *>
    -

    Retrieves the view utilities from the component's current context or -properties (preferring the context).

    -
    -
    localize(component, key, [params])string
    -

    Returns the localized phrase identified by the specified key. The -placeholders in the localization phrase will be replaced by the provided -values.

    -
    -
    link(component, name, [params])string
    -

    Generates an absolute URL using the provided route name (see the -app/config/routes.js file). The provided parameters will -replace the placeholders in the route pattern, while the extraneous -parameters will be appended to the generated URL's query string.

    -
    -
    cssClasses(component, classRules, includeComponentClassName)string
    -

    Generate a string of CSS classes from the properties of the passed-in -object that resolve to true.

    -
    -
    defaultCssClasses(classRules, component)string
    -

    Generate a string of CSS classes from the properties of the passed-in -object that resolve to true.

    -
    -
    fire(component, eventName, [data])
    -

    Creates and sends a new IMA.js DOM custom event from the provided component.

    -
    -
    listen(component, eventTarget, eventName, listener)
    -

    Registers the provided event listener for execution whenever an IMA.js -DOM custom event of the specified name occurs at the specified event -target.

    -
    -
    unlisten(component, eventTarget, eventName, listener)
    -

    Deregisters the provided event listener for an IMA.js DOM custom event -of the specified name at the specified event target.

    -
    -
    - -## getUtils(props, context) ⇒ Object.<string, \*>  -Retrieves the view utilities from the component's current context or -properties (preferring the context). - -**Kind**: global function -**Returns**: Object.<string, \*> - The retrieved view utilities. -**Throws**: - -- Error Throw if the view utils cannot be located in the provided - properties nor context. - - -| Param | Type | Description | -| --- | --- | --- | -| props | Object.<string, \*> | The component's current properties. | -| context | Object.<string, \*> | The component's current context. | - - -* * * - -## localize(component, key, [params]) ⇒ string  -Returns the localized phrase identified by the specified key. The -placeholders in the localization phrase will be replaced by the provided -values. - -**Kind**: global function -**Returns**: string - Localized phrase. - -| Param | Type | Description | -| --- | --- | --- | -| component | AbstractComponent \| AbstractPureComponent | The component requiring the localization. | -| key | string | Localization key. | -| [params] | Object.<string, (number\|string)> | Values for replacing the placeholders in the localization phrase. | - - -* * * - -## link(component, name, [params]) ⇒ string  -Generates an absolute URL using the provided route name (see the -app/config/routes.js file). The provided parameters will -replace the placeholders in the route pattern, while the extraneous -parameters will be appended to the generated URL's query string. - -**Kind**: global function -**Returns**: string - The generated URL. - -| Param | Type | Description | -| --- | --- | --- | -| component | AbstractComponent \| AbstractPureComponent | The component requiring the generating of the URL. | -| name | string | The route name. | -| [params] | Object.<string, (number\|string)> | Router parameters and extraneous parameters to add to the URL as a query string. | - - -* * * - -## cssClasses(component, classRules, includeComponentClassName) ⇒ string  -Generate a string of CSS classes from the properties of the passed-in -object that resolve to true. - -**Kind**: global function -**Returns**: string - String of CSS classes that had their property resolved - to true. - -| Param | Type | Description | -| --- | --- | --- | -| component | AbstractComponent \| AbstractPureComponent | The component requiring the composition of the CSS class names. | -| classRules | string \| Object.<string, boolean> | CSS classes in a string separated by whitespace, or a map of CSS class names to boolean values. The CSS class name will be included in the result only if the value is true. | -| includeComponentClassName | boolean | | - -**Example** -```js -this.cssClasses('my-class my-class-modificator', true); -``` -**Example** -```js -this.cssClasses({ - 'my-class': true, - 'my-class-modificator': this.props.modificator - }, true); -``` - -* * * - -## defaultCssClasses(classRules, component) ⇒ string  -Generate a string of CSS classes from the properties of the passed-in -object that resolve to true. - -**Kind**: global function -**Returns**: string - String of CSS classes that had their property resolved - to true. - -| Param | Type | Description | -| --- | --- | --- | -| classRules | string \| Object.<string, boolean> | CSS classes in a string separated by whitespace, or a map of CSS class names to boolean values. The CSS class name will be included in the result only if the value is true. | -| component | AbstractComponent \| AbstractPureComponent \| string | The component requiring the composition of the CSS class names, if it has the className property set and requires its inclusion this time. | - - -* * * - -## fire(component, eventName, [data])  -Creates and sends a new IMA.js DOM custom event from the provided component. - -**Kind**: global function - -| Param | Type | Description | -| --- | --- | --- | -| component | AbstractComponent \| AbstractPureComponent | The component at which's root element the event will originate. | -| eventName | string | The name of the event. | -| [data] | \* | Data to send within the event. | - - -* * * - -## listen(component, eventTarget, eventName, listener)  -Registers the provided event listener for execution whenever an IMA.js -DOM custom event of the specified name occurs at the specified event -target. - -**Kind**: global function - -| Param | Type | Description | -| --- | --- | --- | -| component | AbstractComponent \| AbstractPureComponent | The component requesting the registration of the event listener. | -| eventTarget | React.Element \| EventTarget | The react component or event target at which the listener should listen for the event. | -| eventName | string | The name of the event for which to listen. | -| listener | function | The listener for event to register. | - - -* * * - -## unlisten(component, eventTarget, eventName, listener)  -Deregisters the provided event listener for an IMA.js DOM custom event -of the specified name at the specified event target. - -**Kind**: global function - -| Param | Type | Description | -| --- | --- | --- | -| component | AbstractComponent \| AbstractPureComponent | The component that requested the registration of the event listener. | -| eventTarget | React.Element \| EventTarget | The react component or event target at which the listener should listen for the event. | -| eventName | string | The name of the event for which to listen. | -| listener | function | The listener for event to register. | - - -* * * - diff --git a/docs/_posts/2022-07-14-pagehandler-page-handler-registry.md b/docs/_posts/2022-07-14-pagehandler-page-handler-registry.md deleted file mode 100644 index ec380ec43f..0000000000 --- a/docs/_posts/2022-07-14-pagehandler-page-handler-registry.md +++ /dev/null @@ -1,3 +0,0 @@ ---- ---- - diff --git a/docs/_posts/2022-07-14-pagehandler-page-handler.md b/docs/_posts/2022-07-14-pagehandler-page-handler.md deleted file mode 100644 index 69ebd9a690..0000000000 --- a/docs/_posts/2022-07-14-pagehandler-page-handler.md +++ /dev/null @@ -1,63 +0,0 @@ ---- -category: "page/handler" -title: "API - PageHandler" -menuTitle: "PageHandler" ---- - -## PageHandler  -**Kind**: global class - -* [PageHandler](#PageHandler) - * [.init()](#PageHandler+init) - * [.handlePreManagedState(managedPage, nextManagedPage, [action])](#PageHandler+handlePreManagedState) - * [.handlePostManagedState(managedPage, previousManagedPage, [action])](#PageHandler+handlePostManagedState) - * [.destroy()](#PageHandler+destroy) - - -* * * - -### pageHandler.init()  -Initializes the page handler. - -**Kind**: instance method of [PageHandler](#PageHandler) - -* * * - -### pageHandler.handlePreManagedState(managedPage, nextManagedPage, [action])  -Called before a PageManager starts to transition from previous page to -a new one. - -**Kind**: instance method of [PageHandler](#PageHandler) - -| Param | Type | Description | -| --- | --- | --- | -| managedPage | ManagedPage | The currently managed page - soon-to-be previously managed page. | -| nextManagedPage | ManagedPage | The data of the page that's about to be managed. | -| [action] | Object | An action object describing what triggered the routing. | - - -* * * - -### pageHandler.handlePostManagedState(managedPage, previousManagedPage, [action])  -Called after a PageManager finishes transition from previous page to -a new one. - -**Kind**: instance method of [PageHandler](#PageHandler) - -| Param | Type | Description | -| --- | --- | --- | -| managedPage | ManagedPage | The currently managed page. | -| previousManagedPage | ManagedPage | The data of the page that was previously managed. | -| [action] | Object | An action object describing what triggered the routing. | - - -* * * - -### pageHandler.destroy()  -Finalization callback, called when the page manager is being discarded. -This usually happens when the page is hot-reloaded at the client side. - -**Kind**: instance method of [PageHandler](#PageHandler) - -* * * - diff --git a/docs/_posts/2022-07-14-pagehandler-page-navigation-handler.md b/docs/_posts/2022-07-14-pagehandler-page-navigation-handler.md deleted file mode 100644 index 6a6d829576..0000000000 --- a/docs/_posts/2022-07-14-pagehandler-page-navigation-handler.md +++ /dev/null @@ -1,96 +0,0 @@ ---- -category: "page/handler" -title: "API - PageNavigationHandler" -menuTitle: "PageNavigationHandler" ---- - -## PageNavigationHandler  -**Kind**: global class - -* [PageNavigationHandler](#PageNavigationHandler) - * [new PageNavigationHandler(window)](#new_PageNavigationHandler_new) - * [._window](#PageNavigationHandler+_window) : ima.core.window.Window - * [.init()](#PageNavigationHandler+init) - * [.handlePreManagedState()](#PageNavigationHandler+handlePreManagedState) - * [.handlePostManagedState()](#PageNavigationHandler+handlePostManagedState) - * [._saveScrollHistory()](#PageNavigationHandler+_saveScrollHistory) - * [._scrollTo(scroll)](#PageNavigationHandler+_scrollTo) - * [._setAddressBar(url, isRedirection)](#PageNavigationHandler+_setAddressBar) - - -* * * - -### new PageNavigationHandler(window)  - -| Param | Type | Description | -| --- | --- | --- | -| window | Window | The utility for manipulating the global context and global client-side-specific APIs. | - - -* * * - -### pageNavigationHandler.\_window : ima.core.window.Window  -The utility for manipulating the global context and global -client-side-specific APIs. - -**Kind**: instance property of [PageNavigationHandler](#PageNavigationHandler) - -* * * - -### pageNavigationHandler.init()  -**Kind**: instance method of [PageNavigationHandler](#PageNavigationHandler) - -* * * - -### pageNavigationHandler.handlePreManagedState()  -**Kind**: instance method of [PageNavigationHandler](#PageNavigationHandler) - -* * * - -### pageNavigationHandler.handlePostManagedState()  -**Kind**: instance method of [PageNavigationHandler](#PageNavigationHandler) - -* * * - -### pageNavigationHandler.\_saveScrollHistory()  -Save user's scroll state to history. - -Replace scroll values in current state for actual scroll values in -document. - -**Kind**: instance method of [PageNavigationHandler](#PageNavigationHandler) - -* * * - -### pageNavigationHandler.\_scrollTo(scroll)  -Scrolls to give coordinates on a page. - -**Kind**: instance method of [PageNavigationHandler](#PageNavigationHandler) - -| Param | Type | -| --- | --- | -| scroll | Object | -| [scroll.x] | number | -| [scroll.y] | number | - - -* * * - -### pageNavigationHandler.\_setAddressBar(url, isRedirection)  -Sets the provided URL to the browser's address bar by pushing or replacing a new -state to the history. - -The state object pushed to or replaced in the history will be an object with the -following structure: {url: string}. The url field will -be set to the provided URL. - -**Kind**: instance method of [PageNavigationHandler](#PageNavigationHandler) - -| Param | Type | Description | -| --- | --- | --- | -| url | string | The URL. | -| isRedirection | boolean | If replaceState should be used instead of pushState. | - - -* * * - diff --git a/docs/_posts/2022-07-14-pagemanager-abstract-page-manager.md b/docs/_posts/2022-07-14-pagemanager-abstract-page-manager.md deleted file mode 100644 index cca7551ff6..0000000000 --- a/docs/_posts/2022-07-14-pagemanager-abstract-page-manager.md +++ /dev/null @@ -1,482 +0,0 @@ ---- -category: "page/manager" -title: "API - AbstractPageManager" -menuTitle: "AbstractPageManager" ---- - -## Classes - -
    -
    AbstractPageManager
    -

    Page manager for controller.

    -
    -
    - -## Typedefs - -
    -
    RouteOptions : Object
    -

    An Object used to configure a route

    -
    -
    ManagedPage : Object
    -

    An object representing a page that's currently managed by PageManager

    -
    -
    - -## AbstractPageManager  -Page manager for controller. - -**Kind**: global class - -* [AbstractPageManager](#AbstractPageManager) - * [new AbstractPageManager(pageFactory, pageRenderer, pageStateManager, pageHandlerRegistry)](#new_AbstractPageManager_new) - * [._pageFactory](#AbstractPageManager+_pageFactory) : PageFactory - * [._pageRenderer](#AbstractPageManager+_pageRenderer) : PageRenderer - * [._pageStateManager](#AbstractPageManager+_pageStateManager) : PageStateManager - * [._pageHandlerRegistry](#AbstractPageManager+_pageHandlerRegistry) : PageHandlerRegistry - * [._managedPage](#AbstractPageManager+_managedPage) : [ManagedPage](#ManagedPage) - * [._previousManagedPage](#AbstractPageManager+_previousManagedPage) : [ManagedPage](#ManagedPage) - * [.init()](#AbstractPageManager+init) - * [.manage()](#AbstractPageManager+manage) - * [.destroy()](#AbstractPageManager+destroy) - * [._constructManagedPageValue(controller, view, route, options, params, controllerInstance, decoratedController, viewInstance)](#AbstractPageManager+_constructManagedPageValue) ⇒ [ManagedPage](#ManagedPage) - * [._storeManagedPageSnapshot()](#AbstractPageManager+_storeManagedPageSnapshot) ⇒ [ManagedPage](#ManagedPage) - * [._clearManagedPageValue()](#AbstractPageManager+_clearManagedPageValue) - * [._stripManagedPageValueForPublic(value)](#AbstractPageManager+_stripManagedPageValueForPublic) ⇒ Object - * [._setRestrictedPageStateManager(extension, extensionState)](#AbstractPageManager+_setRestrictedPageStateManager) - * [._switchToPageStateManagerAfterLoaded(extension, extensionState)](#AbstractPageManager+_switchToPageStateManagerAfterLoaded) - * [._initPageSource()](#AbstractPageManager+_initPageSource) ⇒ Promise.<undefined> - * [._initController()](#AbstractPageManager+_initController) ⇒ Promise.<undefined> - * [._initExtensions()](#AbstractPageManager+_initExtensions) ⇒ Promise.<undefined> - * [._switchToPageStateManager()](#AbstractPageManager+_switchToPageStateManager) - * [._loadPageSource()](#AbstractPageManager+_loadPageSource) ⇒ Object.<string, (Promise.<\*>\|\*)> - * [._getLoadedControllerState()](#AbstractPageManager+_getLoadedControllerState) ⇒ Object.<string, (Promise.<\*>\|\*)> - * [._getLoadedExtensionsState(controllerState)](#AbstractPageManager+_getLoadedExtensionsState) ⇒ Object.<string, (Promise.<\*>\|\*)> - * [._activatePageSource()](#AbstractPageManager+_activatePageSource) ⇒ Promise.<undefined> - * [._activateController()](#AbstractPageManager+_activateController) ⇒ Promise.<undefined> - * [._activateExtensions()](#AbstractPageManager+_activateExtensions) ⇒ Promise.<undefined> - * [._updatePageSource()](#AbstractPageManager+_updatePageSource) ⇒ Promise.<{status: number, content: ?string}> - * [._getUpdatedControllerState()](#AbstractPageManager+_getUpdatedControllerState) ⇒ Object.<string, (Promise.<\*>\|\*)> - * [._getUpdatedExtensionsState(controllerState)](#AbstractPageManager+_getUpdatedExtensionsState) ⇒ Object.<string, (Promise\|\*)> - * [._deactivatePageSource()](#AbstractPageManager+_deactivatePageSource) ⇒ Promise.<undefined> - * [._deactivateController()](#AbstractPageManager+_deactivateController) ⇒ Promise.<undefined> - * [._deactivateExtensions()](#AbstractPageManager+_deactivateExtensions) ⇒ Promise.<undefined> - * [._destroyPageSource()](#AbstractPageManager+_destroyPageSource) ⇒ Promise.<undefined> - * [._destroyController()](#AbstractPageManager+_destroyController) ⇒ Promise.<undefined> - * [._destroyExtensions()](#AbstractPageManager+_destroyExtensions) ⇒ Promise.<undefined> - * [._clearComponentState(options)](#AbstractPageManager+_clearComponentState) - * [._onChangeStateHandler(state)](#AbstractPageManager+_onChangeStateHandler) - * [._hasOnlyUpdate(controller, view, options)](#AbstractPageManager+_hasOnlyUpdate) ⇒ boolean - * [._runPreManageHandlers(nextManagedPage, action)](#AbstractPageManager+_runPreManageHandlers) ⇒ Promise.<any> - * [._runPostManageHandlers(previousManagedPage, action)](#AbstractPageManager+_runPostManageHandlers) ⇒ Promise.<any> - - -* * * - -### new AbstractPageManager(pageFactory, pageRenderer, pageStateManager, pageHandlerRegistry)  -Initializes the page manager. - - -| Param | Type | Description | -| --- | --- | --- | -| pageFactory | PageFactory | Factory used by the page manager to create instances of the controller for the current route, and decorate the controllers and page state managers. | -| pageRenderer | PageRenderer | The current renderer of the page. | -| pageStateManager | PageStateManager | The current page state manager. | -| pageHandlerRegistry | HandlerRegistry | Instance of HandlerRegistry that holds a list of pre-manage and post-manage handlers. | - - -* * * - -### abstractPageManager.\_pageFactory : PageFactory  -Factory used by the page manager to create instances of the -controller for the current route, and decorate the controllers and -page state managers. - -**Kind**: instance property of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_pageRenderer : PageRenderer  -The current renderer of the page. - -**Kind**: instance property of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_pageStateManager : PageStateManager  -The current page state manager. - -**Kind**: instance property of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_pageHandlerRegistry : PageHandlerRegistry  -A registry that holds a list of pre-manage and post-manage handlers. - -**Kind**: instance property of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_managedPage : [ManagedPage](#ManagedPage)  -Details of the currently managed page. - -**Kind**: instance property of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_previousManagedPage : [ManagedPage](#ManagedPage)  -Snapshot of the previously managed page before it was replaced with -a new one - -**Kind**: instance property of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.init()  -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) - -* * * - -### abstractPageManager.manage()  -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) - -* * * - -### abstractPageManager.destroy()  -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) - -* * * - -### abstractPageManager.\_constructManagedPageValue(controller, view, route, options, params, controllerInstance, decoratedController, viewInstance) ⇒ [ManagedPage](#ManagedPage)  -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -| Param | Type | Description | -| --- | --- | --- | -| controller | string \| function | | -| view | string \| function | | -| route | AbstractRoute | | -| options | [RouteOptions](#RouteOptions) | | -| params | Object.<string, string> | The route parameters. | -| controllerInstance | AbstractController | | -| decoratedController | ControllerDecorator | | -| viewInstance | React.Component | | - - -* * * - -### abstractPageManager.\_storeManagedPageSnapshot() ⇒ [ManagedPage](#ManagedPage)  -Creates a cloned version of currently managed page and stores it in -a helper property. -Snapshot is used in manager handlers to easily determine differences -between the current and the previous state. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_clearManagedPageValue()  -Clear value from managed page. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_stripManagedPageValueForPublic(value) ⇒ Object  -Removes properties we do not want to propagate outside of the page manager - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -| Param | Type | Description | -| --- | --- | --- | -| value | [ManagedPage](#ManagedPage) | The managed page object to strip down | - - -* * * - -### abstractPageManager.\_setRestrictedPageStateManager(extension, extensionState)  -Set page state manager to extension which has restricted rights to set -global state. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) - -| Param | Type | -| --- | --- | -| extension | ima.core.extension.Extension | -| extensionState | Object.<string, \*> | - - -* * * - -### abstractPageManager.\_switchToPageStateManagerAfterLoaded(extension, extensionState)  -For defined extension switches to pageStageManager and clears partial state -after extension state is loaded. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) - -| Param | Type | -| --- | --- | -| extension | ima.core.extension.Extension | -| extensionState | Object.<string, \*> | - - -* * * - -### abstractPageManager.\_initPageSource() ⇒ Promise.<undefined>  -Initialize page source so call init method on controller and his -extensions. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_initController() ⇒ Promise.<undefined>  -Initializes managed instance of controller with the provided parameters. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_initExtensions() ⇒ Promise.<undefined>  -Initialize extensions for managed instance of controller with the -provided parameters. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_switchToPageStateManager()  -Iterates over extensions of current controller and switches each one to -pageStateManager and clears their partial state. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_loadPageSource() ⇒ Object.<string, (Promise.<\*>\|\*)>  -Load page source so call load method on controller and his extensions. -Merge loaded state and render it. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_getLoadedControllerState() ⇒ Object.<string, (Promise.<\*>\|\*)>  -Load controller state from managed instance of controller. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_getLoadedExtensionsState(controllerState) ⇒ Object.<string, (Promise.<\*>\|\*)>  -Load extensions state from managed instance of controller. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -| Param | Type | -| --- | --- | -| controllerState | Object.<string, \*> | - - -* * * - -### abstractPageManager.\_activatePageSource() ⇒ Promise.<undefined>  -Activate page source so call activate method on controller and his -extensions. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_activateController() ⇒ Promise.<undefined>  -Activate managed instance of controller. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_activateExtensions() ⇒ Promise.<undefined>  -Activate extensions for managed instance of controller. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_updatePageSource() ⇒ Promise.<{status: number, content: ?string}>  -Update page source so call update method on controller and his -extensions. Merge updated state and render it. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_getUpdatedControllerState() ⇒ Object.<string, (Promise.<\*>\|\*)>  -Return updated controller state for current page controller. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_getUpdatedExtensionsState(controllerState) ⇒ Object.<string, (Promise\|\*)>  -Return updated extensions state for current page controller. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -| Param | Type | -| --- | --- | -| controllerState | Object.<string, \*> | - - -* * * - -### abstractPageManager.\_deactivatePageSource() ⇒ Promise.<undefined>  -Deactivate page source so call deactivate method on controller and his -extensions. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_deactivateController() ⇒ Promise.<undefined>  -Deactivate last managed instance of controller only If controller was -activated. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_deactivateExtensions() ⇒ Promise.<undefined>  -Deactivate extensions for last managed instance of controller only if -they were activated. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_destroyPageSource() ⇒ Promise.<undefined>  -Destroy page source so call destroy method on controller and his -extensions. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_destroyController() ⇒ Promise.<undefined>  -Destroy last managed instance of controller. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_destroyExtensions() ⇒ Promise.<undefined>  -Destroy extensions for last managed instance of controller. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -* * * - -### abstractPageManager.\_clearComponentState(options)  -The method clear state on current renderred component to DOM. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) - -| Param | Type | Description | -| --- | --- | --- | -| options | [RouteOptions](#RouteOptions) | The current route options. | - - -* * * - -### abstractPageManager.\_onChangeStateHandler(state)  -On change event handler set state to view. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) - -| Param | Type | -| --- | --- | -| state | Object.<string, \*> | - - -* * * - -### abstractPageManager.\_hasOnlyUpdate(controller, view, options) ⇒ boolean  -Return true if manager has to update last managed controller and view. - -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -| Param | Type | -| --- | --- | -| controller | string \| function | -| view | string \| function | -| options | [RouteOptions](#RouteOptions) | - - -* * * - -### abstractPageManager.\_runPreManageHandlers(nextManagedPage, action) ⇒ Promise.<any>  -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -| Param | Type | -| --- | --- | -| nextManagedPage | [ManagedPage](#ManagedPage) | -| action | Object | - - -* * * - -### abstractPageManager.\_runPostManageHandlers(previousManagedPage, action) ⇒ Promise.<any>  -**Kind**: instance method of [AbstractPageManager](#AbstractPageManager) -**Access**: protected - -| Param | Type | -| --- | --- | -| previousManagedPage | [ManagedPage](#ManagedPage) | -| action | Object | - - -* * * - -## RouteOptions : Object  -An Object used to configure a route - -**Kind**: global typedef - -* * * - -## ManagedPage : Object  -An object representing a page that's currently managed by PageManager - -**Kind**: global typedef - -* * * - diff --git a/docs/_posts/2022-07-14-pagemanager-client-page-manager.md b/docs/_posts/2022-07-14-pagemanager-client-page-manager.md deleted file mode 100644 index c9cb1ae27f..0000000000 --- a/docs/_posts/2022-07-14-pagemanager-client-page-manager.md +++ /dev/null @@ -1,157 +0,0 @@ ---- -category: "page/manager" -title: "API - ClientPageManager" -menuTitle: "ClientPageManager" ---- - -## ClientPageManager  -Page manager for controller on the client side. - -**Kind**: global class - -* [ClientPageManager](#ClientPageManager) - * [new ClientPageManager(pageFactory, pageRenderer, stateManager, handlerRegistry, window, eventBus)](#new_ClientPageManager_new) - * [._window](#ClientPageManager+_window) : ima.core.window.Window - * [._eventBus](#ClientPageManager+_eventBus) : ima.core.event.EventBus - * [._boundOnCustomEventHandler()](#ClientPageManager+_boundOnCustomEventHandler) : function - * [.init()](#ClientPageManager+init) - * [.manage()](#ClientPageManager+manage) - * [.destroy()](#ClientPageManager+destroy) - * [._onCustomEventHandler(event)](#ClientPageManager+_onCustomEventHandler) - * [._parseCustomEvent(event)](#ClientPageManager+_parseCustomEvent) ⇒ Object - * [._handleEventWithController(method, data)](#ClientPageManager+_handleEventWithController) ⇒ boolean - * [._handleEventWithExtensions(method, data)](#ClientPageManager+_handleEventWithExtensions) ⇒ boolean - - -* * * - -### new ClientPageManager(pageFactory, pageRenderer, stateManager, handlerRegistry, window, eventBus)  -Initializes the client-side page manager. - - -| Param | Type | Description | -| --- | --- | --- | -| pageFactory | PageFactory | Factory used by the page manager to create instances of the controller for the current route, and decorate the controllers and page state managers. | -| pageRenderer | PageRenderer | The current renderer of the page. | -| stateManager | PageStateManager | The current page state manager. | -| handlerRegistry | HandlerRegistry | Instance of HandlerRegistry that holds a list of pre-manage and post-manage handlers. | -| window | Window | The utility for manipulating the global context and global client-side-specific APIs. | -| eventBus | EventBus | The event bus for dispatching and listening for custom IMA events propagated through the DOM. | - - -* * * - -### clientPageManager.\_window : ima.core.window.Window  -The utility for manipulating the global context and global -client-side-specific APIs. - -**Kind**: instance property of [ClientPageManager](#ClientPageManager) - -* * * - -### clientPageManager.\_eventBus : ima.core.event.EventBus  -The event bus for dispatching and listening for custom IMA events -propagated through the DOM. - -**Kind**: instance property of [ClientPageManager](#ClientPageManager) - -* * * - -### clientPageManager.\_boundOnCustomEventHandler() : function  -Event listener for the custom DOM events used by the event bus, -bound to this instance. - -**Kind**: instance method of [ClientPageManager](#ClientPageManager) - -* * * - -### clientPageManager.init()  -**Kind**: instance method of [ClientPageManager](#ClientPageManager) - -* * * - -### clientPageManager.manage()  -**Kind**: instance method of [ClientPageManager](#ClientPageManager) - -* * * - -### clientPageManager.destroy()  -**Kind**: instance method of [ClientPageManager](#ClientPageManager) - -* * * - -### clientPageManager.\_onCustomEventHandler(event)  -Custom DOM event handler. - -The handler invokes the event listener in the active controller, if such -listener is present. The name of the controller's listener method is -created by turning the first symbol of the event's name to upper case, -and then prefixing the result with the 'on' prefix. - -For example: for an event named 'toggle' the controller's listener -would be named 'onToggle'. - -The controller's listener will be invoked with the event's data as an -argument. - -**Kind**: instance method of [ClientPageManager](#ClientPageManager) - -| Param | Type | Description | -| --- | --- | --- | -| event | CustomEvent | The encountered event bus DOM event. | - - -* * * - -### clientPageManager.\_parseCustomEvent(event) ⇒ Object  -Extracts the details of the provided event bus custom DOM event, along -with the expected name of the current controller's method for -intercepting the event. - -**Kind**: instance method of [ClientPageManager](#ClientPageManager) -**Returns**: Object - The event's - details. - -| Param | Type | Description | -| --- | --- | --- | -| event | CustomEvent | The encountered event bus custom DOM event. | - - -* * * - -### clientPageManager.\_handleEventWithController(method, data) ⇒ boolean  -Attempts to handle the currently processed event bus custom DOM event -using the current controller. The method returns true if the -event is handled by the controller. - -**Kind**: instance method of [ClientPageManager](#ClientPageManager) -**Returns**: boolean - true if the event has been handled by the - controller, false if the controller does not have a - method for processing the event. - -| Param | Type | Description | -| --- | --- | --- | -| method | string | The name of the method the current controller should use to process the currently processed event bus custom DOM event. | -| data | Object.<string, \*> | The custom event's data. | - - -* * * - -### clientPageManager.\_handleEventWithExtensions(method, data) ⇒ boolean  -Attempts to handle the currently processed event bus custom DOM event -using the registered extensions of the current controller. The method -returns true if the event is handled by the controller. - -**Kind**: instance method of [ClientPageManager](#ClientPageManager) -**Returns**: boolean - true if the event has been handled by one of - the controller's extensions, false if none of the - controller's extensions has a method for processing the event. - -| Param | Type | Description | -| --- | --- | --- | -| method | string | The name of the method the current controller should use to process the currently processed event bus custom DOM event. | -| data | Object.<string, \*> | The custom event's data. | - - -* * * - diff --git a/docs/_posts/2022-07-14-pagemanager-page-manager.md b/docs/_posts/2022-07-14-pagemanager-page-manager.md deleted file mode 100644 index a1703c30f3..0000000000 --- a/docs/_posts/2022-07-14-pagemanager-page-manager.md +++ /dev/null @@ -1,61 +0,0 @@ ---- -category: "page/manager" -title: "API - PageManager" -menuTitle: "PageManager" ---- - -## PageManager  -The page manager is a utility for managing the current controller and its -view. - -**Kind**: global class - -* [PageManager](#PageManager) - * [.init()](#PageManager+init) - * [.manage(route, options, [params], [action])](#PageManager+manage) ⇒ Promise.<{status: number, content: ?string, pageState: Object.<string, \*>}> - * [.destroy()](#PageManager+destroy) ⇒ Promise.<undefined> - - -* * * - -### pageManager.init()  -Initializes the page manager. - -**Kind**: instance method of [PageManager](#PageManager) - -* * * - -### pageManager.manage(route, options, [params], [action]) ⇒ Promise.<{status: number, content: ?string, pageState: Object.<string, \*>}>  -Starts to manage the provided controller and its view. The manager -stops the management of any previously managed controller and view. - -The controller and view will be initialized and rendered either into the -UI (at the client-side) or to the response to send to the client (at the -server-side). - -**Kind**: instance method of [PageManager](#PageManager) -**Returns**: Promise.<{status: number, content: ?string, pageState: Object.<string, \*>}> - A promise that will resolve to information about the rendered page. - The status will contain the HTTP status code to send to the - client (at the server side) or determine the type of error page - to navigate to (at the client side). - The content field will contain the rendered markup of - the page at the server-side, or null at the client-side. - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| route | AbstractRoute | | A route instance that holds information about the page we should manage. | -| options | Object | | The current route options. | -| [params] | Object.<string, string> | {} | The route parameters of the current route. | -| [action] | Object | | An action object describing what triggered the routing. | - - -* * * - -### pageManager.destroy() ⇒ Promise.<undefined>  -Finalization callback, called when the page manager is being discarded. -This usually happens when the page is hot-reloaded at the client side. - -**Kind**: instance method of [PageManager](#PageManager) - -* * * - diff --git a/docs/_posts/2022-07-14-pagemanager-server-page-manager.md b/docs/_posts/2022-07-14-pagemanager-server-page-manager.md deleted file mode 100644 index 834fd4a699..0000000000 --- a/docs/_posts/2022-07-14-pagemanager-server-page-manager.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -category: "page/manager" -title: "API - ServerPageManager" -menuTitle: "ServerPageManager" ---- - -## ServerPageManager  -Page manager for controller on the server side. - -**Kind**: global class - -* * * - diff --git a/docs/_posts/2022-07-14-pagerenderer-abstract-page-renderer.md b/docs/_posts/2022-07-14-pagerenderer-abstract-page-renderer.md deleted file mode 100644 index b55bb1df86..0000000000 --- a/docs/_posts/2022-07-14-pagerenderer-abstract-page-renderer.md +++ /dev/null @@ -1,152 +0,0 @@ ---- -category: "page/renderer" -title: "API - AbstractPageRenderer" -menuTitle: "AbstractPageRenderer" ---- - -## AbstractPageRenderer  -Base class for implementations of the {@linkcode PageRenderer} interface. - -**Kind**: global class - -* [AbstractPageRenderer](#AbstractPageRenderer) - * [new AbstractPageRenderer(factory, Helper, ReactDOM, dispatcher, settings)](#new_AbstractPageRenderer_new) - * [._factory](#AbstractPageRenderer+_factory) : PageRendererFactory - * [._Helper](#AbstractPageRenderer+_Helper) : Vendor.$Helper - * [._ReactDOM](#AbstractPageRenderer+_ReactDOM) : Vendor.ReactDOM - * [._dispatcher](#AbstractPageRenderer+_dispatcher) : Dispatcher - * [._settings](#AbstractPageRenderer+_settings) : Object.<string, \*> - * [._reactiveView](#AbstractPageRenderer+_reactiveView) : React.Component - * *[.mount()](#AbstractPageRenderer+mount)* - * [.update()](#AbstractPageRenderer+update) - * [.unmount()](#AbstractPageRenderer+unmount) - * [.setState()](#AbstractPageRenderer+setState) - * [._generateViewProps(view, [state])](#AbstractPageRenderer+_generateViewProps) ⇒ Object.<string, \*> - * [._getWrappedPageView(controller, view, routeOptions)](#AbstractPageRenderer+_getWrappedPageView) - * [._getDocumentView(documentView)](#AbstractPageRenderer+_getDocumentView) ⇒ function - - -* * * - -### new AbstractPageRenderer(factory, Helper, ReactDOM, dispatcher, settings)  -Initializes the abstract page renderer. - - -| Param | Type | Description | -| --- | --- | --- | -| factory | PageRendererFactory | Factory for receive $Utils to view. | -| Helper | vendor.$Helper | The IMA.js helper methods. | -| ReactDOM | vendor.ReactDOM | React framework instance, will be used to render the page. | -| dispatcher | Dispatcher | Dispatcher fires events to app. | -| settings | Object.<string, \*> | Application settings for the current application environment. | - - -* * * - -### abstractPageRenderer.\_factory : PageRendererFactory  -Factory for receive $Utils to view. - -**Kind**: instance property of [AbstractPageRenderer](#AbstractPageRenderer) -**Access**: protected - -* * * - -### abstractPageRenderer.\_Helper : Vendor.$Helper  -The IMA.js helper methods. - -**Kind**: instance property of [AbstractPageRenderer](#AbstractPageRenderer) -**Access**: protected - -* * * - -### abstractPageRenderer.\_ReactDOM : Vendor.ReactDOM  -Rect framework instance, used to render the page. - -**Kind**: instance property of [AbstractPageRenderer](#AbstractPageRenderer) -**Access**: protected - -* * * - -### abstractPageRenderer.\_dispatcher : Dispatcher  -Dispatcher fires events to app. - -**Kind**: instance property of [AbstractPageRenderer](#AbstractPageRenderer) - -* * * - -### abstractPageRenderer.\_settings : Object.<string, \*>  -Application setting for the current application environment. - -**Kind**: instance property of [AbstractPageRenderer](#AbstractPageRenderer) -**Access**: protected - -* * * - -### abstractPageRenderer.\_reactiveView : React.Component  -**Kind**: instance property of [AbstractPageRenderer](#AbstractPageRenderer) -**Access**: protected - -* * * - -### *abstractPageRenderer.mount()*  -**Kind**: instance abstract method of [AbstractPageRenderer](#AbstractPageRenderer) - -* * * - -### abstractPageRenderer.update()  -**Kind**: instance method of [AbstractPageRenderer](#AbstractPageRenderer) - -* * * - -### abstractPageRenderer.unmount()  -**Kind**: instance method of [AbstractPageRenderer](#AbstractPageRenderer) - -* * * - -### abstractPageRenderer.setState()  -**Kind**: instance method of [AbstractPageRenderer](#AbstractPageRenderer) - -* * * - -### abstractPageRenderer.\_generateViewProps(view, [state]) ⇒ Object.<string, \*>  -Generate properties for view from state. - -**Kind**: instance method of [AbstractPageRenderer](#AbstractPageRenderer) -**Access**: protected - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| view | function | | The page view React component to wrap. | -| [state] | Object.<string, \*> | {} | | - - -* * * - -### abstractPageRenderer.\_getWrappedPageView(controller, view, routeOptions)  -Returns wrapped page view component with managed root view and view adapter. - -**Kind**: instance method of [AbstractPageRenderer](#AbstractPageRenderer) - -| Param | Type | Description | -| --- | --- | --- | -| controller | ControllerDecorator | | -| view | function | | -| routeOptions | Object | The current route options. | - - -* * * - -### abstractPageRenderer.\_getDocumentView(documentView) ⇒ function  -Returns the class constructor of the specified document view component. - -**Kind**: instance method of [AbstractPageRenderer](#AbstractPageRenderer) -**Returns**: function - The constructor of the document - view component. - -| Param | Type | Description | -| --- | --- | --- | -| documentView | function \| string | The namespace path pointing to the document view component, or the constructor of the document view component. | - - -* * * - diff --git a/docs/_posts/2022-07-14-pagerenderer-blank-managed-root-view.md b/docs/_posts/2022-07-14-pagerenderer-blank-managed-root-view.md deleted file mode 100644 index e595d7c520..0000000000 --- a/docs/_posts/2022-07-14-pagerenderer-blank-managed-root-view.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -category: "page/renderer" -title: "API - BlankManagedRootView" -menuTitle: "BlankManagedRootView" ---- - -## BlankManagedRootView  -Blank managed root view does not nothing except for rendering the current -page view. - -This is the default managed root view. - -**Kind**: global class - -* * * - -### blankManagedRootView.render()  -**Kind**: instance method of [BlankManagedRootView](#BlankManagedRootView) - -* * * - diff --git a/docs/_posts/2022-07-14-pagerenderer-client-page-renderer.md b/docs/_posts/2022-07-14-pagerenderer-client-page-renderer.md deleted file mode 100644 index 7c6d5a6f91..0000000000 --- a/docs/_posts/2022-07-14-pagerenderer-client-page-renderer.md +++ /dev/null @@ -1,232 +0,0 @@ ---- -category: "page/renderer" -title: "API - ClientPageRenderer" -menuTitle: "ClientPageRenderer" ---- - -## ClientPageRenderer  -Client-side page renderer. The renderer attempts to reuse the markup sent by -server if possible. - -**Kind**: global class - -* [ClientPageRenderer](#ClientPageRenderer) - * [new ClientPageRenderer(factory, Helper, ReactDOM, dispatcher, settings, window)](#new_ClientPageRenderer_new) - * [._firstTime](#ClientPageRenderer+_firstTime) : boolean - * [._window](#ClientPageRenderer+_window) : Window - * [._viewContainer](#ClientPageRenderer+_viewContainer) : HTMLElement - * [.mount()](#ClientPageRenderer+mount) - * [.update()](#ClientPageRenderer+update) - * [.unmount()](#ClientPageRenderer+unmount) - * [._handleError(error)](#ClientPageRenderer+_handleError) - * [._patchPromisesToState(controller, patchedPromises)](#ClientPageRenderer+_patchPromisesToState) - * [._startBatchTransactions(controller, patchedPromises)](#ClientPageRenderer+_startBatchTransactions) - * [._setStateWithoutRendering(controller, defaultPageState)](#ClientPageRenderer+_setStateWithoutRendering) - * [._patchStateToClearPreviousState(state)](#ClientPageRenderer+_patchStateToClearPreviousState) ⇒ Object.<string, \*> - * [._renderToDOM(controller, view, routeOptions)](#ClientPageRenderer+_renderToDOM) ⇒ Promise.<undefined> - * [._separatePromisesAndValues(dataMap)](#ClientPageRenderer+_separatePromisesAndValues) ⇒ Object - * [._updateMetaAttributes(metaManager)](#ClientPageRenderer+_updateMetaAttributes) - * [._updateMetaNameAttributes(metaManager)](#ClientPageRenderer+_updateMetaNameAttributes) - * [._updateMetaPropertyAttributes(metaManager)](#ClientPageRenderer+_updateMetaPropertyAttributes) - * [._updateMetaLinkAttributes(metaManager)](#ClientPageRenderer+_updateMetaLinkAttributes) - - -* * * - -### new ClientPageRenderer(factory, Helper, ReactDOM, dispatcher, settings, window)  -Initializes the client-side page renderer. - - -| Param | Type | Description | -| --- | --- | --- | -| factory | PageRendererFactory | Factory for receive $Utils to view. | -| Helper | vendor.$Helper | The IMA.js helper methods. | -| ReactDOM | vendor.ReactDOM | React framework instance to use to render the page on the client side. | -| dispatcher | Dispatcher | Dispatcher fires events to app. | -| settings | Object.<string, \*> | The application setting for the current application environment. | -| window | Window | Helper for manipulating the global object (window) regardless of the client/server-side environment. | - - -* * * - -### clientPageRenderer.\_firstTime : boolean  -Flag signalling that the page is being rendered for the first time. - -**Kind**: instance property of [ClientPageRenderer](#ClientPageRenderer) - -* * * - -### clientPageRenderer.\_window : Window  -Helper for manipulating the global object (window) -regardless of the client/server-side environment. - -**Kind**: instance property of [ClientPageRenderer](#ClientPageRenderer) - -* * * - -### clientPageRenderer.\_viewContainer : HTMLElement  -The HTML element containing the current application view for the -current route. - -**Kind**: instance property of [ClientPageRenderer](#ClientPageRenderer) - -* * * - -### clientPageRenderer.mount()  -**Kind**: instance method of [ClientPageRenderer](#ClientPageRenderer) - -* * * - -### clientPageRenderer.update()  -**Kind**: instance method of [ClientPageRenderer](#ClientPageRenderer) - -* * * - -### clientPageRenderer.unmount()  -**Kind**: instance method of [ClientPageRenderer](#ClientPageRenderer) - -* * * - -### clientPageRenderer.\_handleError(error)  -Show error to console in $Debug mode and re-throw that error -for other error handler. - -**Kind**: instance method of [ClientPageRenderer](#ClientPageRenderer) -**Throws**: - -- Error Re-throws the handled error. - - -| Param | Type | -| --- | --- | -| error | Error | - - -* * * - -### clientPageRenderer.\_patchPromisesToState(controller, patchedPromises)  -Patch promise values to controller state. - -**Kind**: instance method of [ClientPageRenderer](#ClientPageRenderer) - -| Param | Type | -| --- | --- | -| controller | ControllerDecorator | -| patchedPromises | Object.<string, Promise.<\*>> | - - -* * * - -### clientPageRenderer.\_startBatchTransactions(controller, patchedPromises)  -Batch patch promise values to controller state. - -**Kind**: instance method of [ClientPageRenderer](#ClientPageRenderer) - -| Param | Type | -| --- | --- | -| controller | ControllerDecorator | -| patchedPromises | Object.<string, Promise.<\*>> | - - -* * * - -### clientPageRenderer.\_setStateWithoutRendering(controller, defaultPageState)  -The method is hacky for IMA@17 and we must rewrite logic for IMA@18. - -**Kind**: instance method of [ClientPageRenderer](#ClientPageRenderer) - -| Param | Type | -| --- | --- | -| controller | Controller | -| defaultPageState | Object.<string, \*> | - - -* * * - -### clientPageRenderer.\_patchStateToClearPreviousState(state) ⇒ Object.<string, \*>  -**Kind**: instance method of [ClientPageRenderer](#ClientPageRenderer) - -| Param | Type | -| --- | --- | -| state | Object.<string, \*> | - - -* * * - -### clientPageRenderer.\_renderToDOM(controller, view, routeOptions) ⇒ Promise.<undefined>  -Renders the current route to DOM. - -**Kind**: instance method of [ClientPageRenderer](#ClientPageRenderer) - -| Param | Type | Description | -| --- | --- | --- | -| controller | ControllerDecorator | | -| view | function | | -| routeOptions | Object | The current route options. | - - -* * * - -### clientPageRenderer.\_separatePromisesAndValues(dataMap) ⇒ Object  -Separate promises and values from provided data map. Values will be use -for default page state. Promises will be patched to state after their -resolve. - -**Kind**: instance method of [ClientPageRenderer](#ClientPageRenderer) -**Returns**: Object - Return separated promises and other values. - -| Param | Type | Description | -| --- | --- | --- | -| dataMap | Object.<string, \*> | A map of data. | - - -* * * - -### clientPageRenderer.\_updateMetaAttributes(metaManager)  -Updates the title and the contents of the meta elements used for SEO. - -**Kind**: instance method of [ClientPageRenderer](#ClientPageRenderer) - -| Param | Type | Description | -| --- | --- | --- | -| metaManager | MetaManager | meta attributes storage providing the new values for page meta elements and title. | - - -* * * - -### clientPageRenderer.\_updateMetaNameAttributes(metaManager)  -Updates the contents of the generic meta elements used for SEO. - -**Kind**: instance method of [ClientPageRenderer](#ClientPageRenderer) - -| Param | Type | Description | -| --- | --- | --- | -| metaManager | MetaManager | meta attributes storage providing the new values for page meta elements and title. | - - -* * * - -### clientPageRenderer.\_updateMetaPropertyAttributes(metaManager)  -Updates the contents of the specialized meta elements used for SEO. - -**Kind**: instance method of [ClientPageRenderer](#ClientPageRenderer) - -| Param | Type | Description | -| --- | --- | --- | -| metaManager | MetaManager | meta attributes storage providing the new values for page meta elements and title. | - - -* * * - -### clientPageRenderer.\_updateMetaLinkAttributes(metaManager)  -Updates the href of the specialized link elements used for SEO. - -**Kind**: instance method of [ClientPageRenderer](#ClientPageRenderer) - -| Param | Type | Description | -| --- | --- | --- | -| metaManager | MetaManager | meta attributes storage providing the new values for page meta elements and title. | - - -* * * - diff --git a/docs/_posts/2022-07-14-pagerenderer-component-utils.md b/docs/_posts/2022-07-14-pagerenderer-component-utils.md deleted file mode 100644 index 3248b3a007..0000000000 --- a/docs/_posts/2022-07-14-pagerenderer-component-utils.md +++ /dev/null @@ -1,99 +0,0 @@ ---- -category: "page/renderer" -title: "API - ComponentUtils" -menuTitle: "ComponentUtils" ---- - -## ComponentUtils  -**Kind**: global class - -* [ComponentUtils](#ComponentUtils) - * [new ComponentUtils(oc)](#new_ComponentUtils_new) - * [._oc](#ComponentUtils+_oc) : ObjectContainer - * [._utilityClasses](#ComponentUtils+_utilityClasses) : Object.<string, (function(new:T, ...\*)\|function(...\*): T)> - * [._utilities](#ComponentUtils+_utilities) : Object.<string, Object> - * [._utilityReferrers](#ComponentUtils+_utilityReferrers) : Object.<string, string> - * [.register(name, componentUtilityClass, referrer)](#ComponentUtils+register) - * [.getUtils()](#ComponentUtils+getUtils) ⇒ Object.<string, Object> - * [.getReferrers()](#ComponentUtils+getReferrers) ⇒ Object.<string, string> - * [._createUtilityInstance(alias, utilityClass)](#ComponentUtils+_createUtilityInstance) ⇒ T - - -* * * - -### new ComponentUtils(oc)  -Initializes the registry used for managing component utils. - - -| Param | Type | Description | -| --- | --- | --- | -| oc | ObjectContainer | The application's dependency injector - the object container. | - - -* * * - -### componentUtils.\_oc : ObjectContainer  -The application's dependency injector - the object container. - -**Kind**: instance property of [ComponentUtils](#ComponentUtils) - -* * * - -### componentUtils.\_utilityClasses : Object.<string, (function(new:T, ...\*)\|function(...\*): T)>  -Map of registered utilities. - -**Kind**: instance property of [ComponentUtils](#ComponentUtils) - -* * * - -### componentUtils.\_utilities : Object.<string, Object>  -Map of instantiated utilities - -**Kind**: instance property of [ComponentUtils](#ComponentUtils) - -* * * - -### componentUtils.\_utilityReferrers : Object.<string, string>  -Map of referrers to utilities - -**Kind**: instance property of [ComponentUtils](#ComponentUtils) - -* * * - -### componentUtils.register(name, componentUtilityClass, referrer)  -Registers single utility class or multiple classes in alias->class mapping. - -**Kind**: instance method of [ComponentUtils](#ComponentUtils) - -| Param | Type | Default | -| --- | --- | --- | -| name | string \| Object.<string, (function(new:T, ...\*)\|function(...\*): T)> | | -| componentUtilityClass | function \| function | | -| referrer | string | null | - - -* * * - -### componentUtils.getUtils() ⇒ Object.<string, Object>  -Returns object containing all registered utilities - -**Kind**: instance method of [ComponentUtils](#ComponentUtils) - -* * * - -### componentUtils.getReferrers() ⇒ Object.<string, string>  -**Kind**: instance method of [ComponentUtils](#ComponentUtils) - -* * * - -### componentUtils.\_createUtilityInstance(alias, utilityClass) ⇒ T  -**Kind**: instance method of [ComponentUtils](#ComponentUtils) - -| Param | Type | -| --- | --- | -| alias | string | -| utilityClass | function \| function | - - -* * * - diff --git a/docs/_posts/2022-07-14-pagerenderer-error-boundary.md b/docs/_posts/2022-07-14-pagerenderer-error-boundary.md deleted file mode 100644 index c058cf0855..0000000000 --- a/docs/_posts/2022-07-14-pagerenderer-error-boundary.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -category: "page/renderer" -title: "API - ErrorBoundary" -menuTitle: "ErrorBoundary" ---- - -## ErrorBoundary  -Error boundary wrapper which connects the IMA application to the -dev HMR api and handles error reporting. - -**Kind**: global class - -* * * - diff --git a/docs/_posts/2022-07-14-pagerenderer-events.md b/docs/_posts/2022-07-14-pagerenderer-events.md deleted file mode 100644 index 4074f986da..0000000000 --- a/docs/_posts/2022-07-14-pagerenderer-events.md +++ /dev/null @@ -1,74 +0,0 @@ ---- -category: "page/renderer" -title: "API - Events" -menuTitle: "Events" ---- - -## Constants - -
    -
    MOUNTED : string
    -

    PageRenderer fires event $IMA.$PageRenderer.mounted after -current page view is mounted to the DOM. Event's data contain -{type: string}.

    -
    -
    UPDATED : string
    -

    PageRenderer fires event $IMA.$PageRenderer.updated after -current state is updated in the DOM. Event's data contain -{state: Object}.

    -
    -
    UNMOUNTED : string
    -

    PageRenderer fires event $IMA.$PageRenderer.unmounted after current view is -unmounted from the DOM. Event's data contain -{type: string}.

    -
    -
    ERROR : string
    -

    PageRenderer fires event $IMA.$PageRenderer.error when there is -no _viewContainer in _renderToDOM method. Event's data contain -{message: string}.

    -
    -
    - -## Events : enum  -Events constants, which is firing to app. - -**Kind**: global enum - -* * * - -## MOUNTED : string  -PageRenderer fires event $IMA.$PageRenderer.mounted after -current page view is mounted to the DOM. Event's data contain -{type: string}. - -**Kind**: global constant - -* * * - -## UPDATED : string  -PageRenderer fires event $IMA.$PageRenderer.updated after -current state is updated in the DOM. Event's data contain -{state: Object}. - -**Kind**: global constant - -* * * - -## UNMOUNTED : string  -PageRenderer fires event $IMA.$PageRenderer.unmounted after current view is -unmounted from the DOM. Event's data contain -{type: string}. - -**Kind**: global constant - -* * * - -## ERROR : string  -PageRenderer fires event $IMA.$PageRenderer.error when there is -no _viewContainer in _renderToDOM method. Event's data contain -{message: string}. - -**Kind**: global constant - -* * * - diff --git a/docs/_posts/2022-07-14-pagerenderer-page-renderer-factory.md b/docs/_posts/2022-07-14-pagerenderer-page-renderer-factory.md deleted file mode 100644 index 122c09f1c8..0000000000 --- a/docs/_posts/2022-07-14-pagerenderer-page-renderer-factory.md +++ /dev/null @@ -1,142 +0,0 @@ ---- -category: "page/renderer" -title: "API - PageRendererFactory" -menuTitle: "PageRendererFactory" ---- - -## PageRendererFactory  -Factory for page render. - -**Kind**: global class - -* [PageRendererFactory](#PageRendererFactory) - * [new PageRendererFactory(componentUtils, React)](#new_PageRendererFactory_new) - * [._componentUtils](#PageRendererFactory+_componentUtils) : ComponentUtils - * [._React](#PageRendererFactory+_React) : React - * [.getUtils()](#PageRendererFactory+getUtils) - * [.getDocumentView(documentView)](#PageRendererFactory+getDocumentView) ⇒ function - * [.getManagedRootView(managedRootView)](#PageRendererFactory+getManagedRootView) ⇒ function - * [._resolveClassConstructor(view)](#PageRendererFactory+_resolveClassConstructor) ⇒ function - * [.wrapView(view, props)](#PageRendererFactory+wrapView) ⇒ React.Element - * [.createReactElementFactory(view)](#PageRendererFactory+createReactElementFactory) ⇒ function - - -* * * - -### new PageRendererFactory(componentUtils, React)  -Initializes the factory used by the page renderer. - - -| Param | Type | Description | -| --- | --- | --- | -| componentUtils | ComponentUtils | The registry of component utilities. | -| React | React | The React framework instance to use to render the page. | - - -* * * - -### pageRendererFactory.\_componentUtils : ComponentUtils  -The registry of component utilities. - -**Kind**: instance property of [PageRendererFactory](#PageRendererFactory) - -* * * - -### pageRendererFactory.\_React : React  -Rect framework instance, used to render the page. - -**Kind**: instance property of [PageRendererFactory](#PageRendererFactory) -**Access**: protected - -* * * - -### pageRendererFactory.getUtils()  -Return object of services which are defined for alias $Utils. - -**Kind**: instance method of [PageRendererFactory](#PageRendererFactory) - -* * * - -### pageRendererFactory.getDocumentView(documentView) ⇒ function  -Returns the class constructor of the specified document view component. -Document view may be specified as a namespace path or as a class -constructor. - -**Kind**: instance method of [PageRendererFactory](#PageRendererFactory) -**Returns**: function - The constructor of the document - view component. - -| Param | Type | Description | -| --- | --- | --- | -| documentView | function \| string | The namespace path pointing to the document view component, or the constructor of the document view component. | - - -* * * - -### pageRendererFactory.getManagedRootView(managedRootView) ⇒ function  -Returns the class constructor of the specified managed root view -component. Managed root view may be specified as a namespace -path or as a class constructor. - -**Kind**: instance method of [PageRendererFactory](#PageRendererFactory) -**Returns**: function - The constructor of the managed - root view component. - -| Param | Type | Description | -| --- | --- | --- | -| managedRootView | function \| string | The namespace path pointing to the managed root view component, or the constructor of the React component. | - - -* * * - -### pageRendererFactory.\_resolveClassConstructor(view) ⇒ function  -Returns the class constructor of the specified view component. -View may be specified as a namespace path or as a class -constructor. - -**Kind**: instance method of [PageRendererFactory](#PageRendererFactory) -**Returns**: function - The constructor of the view - component. - -| Param | Type | Description | -| --- | --- | --- | -| view | function | The namespace path pointing to the view component, or the constructor of the React.Component. | - - -* * * - -### pageRendererFactory.wrapView(view, props) ⇒ React.Element  -Wraps the provided view into the view adapter so it can access the state -passed from controller through the props property instead of the -state property. - -**Kind**: instance method of [PageRendererFactory](#PageRendererFactory) -**Returns**: React.Element - View adapter handling passing the controller's - state to an instance of the specified page view through - properties. - -| Param | Type | Description | -| --- | --- | --- | -| view | function \| string | The namespace path pointing to the view component, or the constructor of the React.Component. | -| props | Object | The initial props to pass to the view. | - - -* * * - -### pageRendererFactory.createReactElementFactory(view) ⇒ function  -Return a function that produces ReactElements of a given type. -Like React.createElement. - -**Kind**: instance method of [PageRendererFactory](#PageRendererFactory) -**Returns**: function - The created factory - function. The factory accepts an object containing the - component's properties as the argument and returns a rendered - component. - -| Param | Type | Description | -| --- | --- | --- | -| view | string \| function | The react component for which a factory function should be created. | - - -* * * - diff --git a/docs/_posts/2022-07-14-pagerenderer-page-renderer.md b/docs/_posts/2022-07-14-pagerenderer-page-renderer.md deleted file mode 100644 index cd4c9dfd24..0000000000 --- a/docs/_posts/2022-07-14-pagerenderer-page-renderer.md +++ /dev/null @@ -1,108 +0,0 @@ ---- -category: "page/renderer" -title: "API - PageRenderer" -menuTitle: "PageRenderer" ---- - -## PageRenderer  -The page renderer is a utility for rendering the page at either the -client-side or the server-side, handling the differences in the environment. - -**Kind**: global class - -* [PageRenderer](#PageRenderer) - * [.mount(controller, view, pageResources, routeOptions)](#PageRenderer+mount) ⇒ Promise.<{status: number, content: ?string, pageState: Object.<string, ?>}> - * [.update(controller, view, resourcesUpdate, routeOptions)](#PageRenderer+update) ⇒ Promise.<{status: number, content: ?string, pageState: Object.<string, \*>}> - * [.unmount()](#PageRenderer+unmount) - * [.setState([state])](#PageRenderer+setState) - - -* * * - -### pageRenderer.mount(controller, view, pageResources, routeOptions) ⇒ Promise.<{status: number, content: ?string, pageState: Object.<string, ?>}>  -Renders the page using the provided controller and view. The actual -behavior of this method differs at the client-side and the at -server-side in the following way: - -At the server, the method first waits for all the resources to load, and -then renders the page to a string containing HTML markup to send to the -client. - -At the client, the method uses the already available resources to render -the page into DOM, re-using the DOM created from the HTML markup send by -the server if possible. After this the method will re-render the page -every time another resource being loaded finishes its loading and -becomes available. - -Note that the method renders the page at the client-side only after all -resources have been loaded if this is the first time this method is -invoked at the client. - -**Kind**: instance method of [PageRenderer](#PageRenderer) -**Returns**: Promise.<{status: number, content: ?string, pageState: Object.<string, ?>}> - A promise that will resolve to information about the - rendered page. The status will contain the HTTP status - code to send to the client (at the server side) or determine the - type of error page to navigate to (at the client side). - The content field will contain the rendered markup of - the page at the server-side, or null at the client-side. - -| Param | Type | Description | -| --- | --- | --- | -| controller | Controller | The current page controller. | -| view | Component | The page's view. | -| pageResources | Object.<string, (\*\|Promise.<\*>)> | The resources for the view loaded by the controller. | -| routeOptions | Object | The current route options. | - - -* * * - -### pageRenderer.update(controller, view, resourcesUpdate, routeOptions) ⇒ Promise.<{status: number, content: ?string, pageState: Object.<string, \*>}>  -Handles update of the current route that does not replace the current -controller and view. - -The method will use the already available resource to update the -controller's state and the view immediately. After that, the method will -update the controller's state and view with every resource that becomes -resolved. - -**Kind**: instance method of [PageRenderer](#PageRenderer) -**Returns**: Promise.<{status: number, content: ?string, pageState: Object.<string, \*>}> - A promise that will resolve to information about the - rendered page. The status will contain the HTTP status - code to send to the client (at the server side) or determine the - type of error page to navigate to (at the client side). - The content field will contain the rendered markup of - the page at the server-side, or null at the client-side. - -| Param | Type | Description | -| --- | --- | --- | -| controller | Controller | The current page controller. | -| view | React.Component | The page's view. | -| resourcesUpdate | Object.<string, (\*\|Promise.<\*>)> | The resources that represent the update the of current state according to the current route and its parameters. | -| routeOptions | Object | The current route options. | - - -* * * - -### pageRenderer.unmount()  -Unmounts the view from the DOM. - -This method has no effect at the server-side. - -**Kind**: instance method of [PageRenderer](#PageRenderer) - -* * * - -### pageRenderer.setState([state])  -Sets the provided state to the currently rendered view. - -This method has no effect at the server-side. - -**Kind**: instance method of [PageRenderer](#PageRenderer) - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| [state] | Object.<string, \*> | {} | The state to set to the currently rendered view. | - - -* * * - diff --git a/docs/_posts/2022-07-14-pagerenderer-server-page-renderer.md b/docs/_posts/2022-07-14-pagerenderer-server-page-renderer.md deleted file mode 100644 index f6e28851c1..0000000000 --- a/docs/_posts/2022-07-14-pagerenderer-server-page-renderer.md +++ /dev/null @@ -1,157 +0,0 @@ ---- -category: "page/renderer" -title: "API - ServerPageRenderer" -menuTitle: "ServerPageRenderer" ---- - -## ima ⇐ AbstractPageRenderer  -Server-side page renderer. The renderer renders the page into the HTML -markup and sends it to the client. - -**Extends**: AbstractPageRenderer -**Implements**: PageRenderer -**Submodule**: ima.core.page - -* [ima](#module_ima) ⇐ AbstractPageRenderer - * [~ServerPageRenderer](#module_ima..ServerPageRenderer) - * [new ServerPageRenderer(factory, Helper, ReactDOMServer, dispatcher, settings, response, cache)](#new_module_ima..ServerPageRenderer_new) - * [._response](#module_ima..ServerPageRenderer+_response) : Response - * [._cache](#module_ima..ServerPageRenderer+_cache) : Cache - * [._getRevivalSettings(props)](#module_ima..ServerPageRenderer+_getRevivalSettings) ⇒ string - * [._wrapEachKeyToPromise([dataMap])](#module_ima..ServerPageRenderer+_wrapEachKeyToPromise) ⇒ Object.<string, Promise> - * [._renderPage(controller, view, pageState, routeOptions)](#module_ima..ServerPageRenderer+_renderPage) ⇒ Object - * [._renderPageContentToString(controller, view, routeOptions)](#module_ima..ServerPageRenderer+_renderPageContentToString) ⇒ string - * *[~mount()](#module_ima..mount)* - * [~update()](#module_ima..update) - * [~unmount()](#module_ima..unmount) - - -* * * - -### ima~ServerPageRenderer  -**Kind**: inner class of [ima](#module_ima) - -* [~ServerPageRenderer](#module_ima..ServerPageRenderer) - * [new ServerPageRenderer(factory, Helper, ReactDOMServer, dispatcher, settings, response, cache)](#new_module_ima..ServerPageRenderer_new) - * [._response](#module_ima..ServerPageRenderer+_response) : Response - * [._cache](#module_ima..ServerPageRenderer+_cache) : Cache - * [._getRevivalSettings(props)](#module_ima..ServerPageRenderer+_getRevivalSettings) ⇒ string - * [._wrapEachKeyToPromise([dataMap])](#module_ima..ServerPageRenderer+_wrapEachKeyToPromise) ⇒ Object.<string, Promise> - * [._renderPage(controller, view, pageState, routeOptions)](#module_ima..ServerPageRenderer+_renderPage) ⇒ Object - * [._renderPageContentToString(controller, view, routeOptions)](#module_ima..ServerPageRenderer+_renderPageContentToString) ⇒ string - - -* * * - -#### new ServerPageRenderer(factory, Helper, ReactDOMServer, dispatcher, settings, response, cache)  -Initializes the server-side page renderer. - - -| Param | Type | Description | -| --- | --- | --- | -| factory | PageRendererFactory | Factory for receive $Utils to view. | -| Helper | vendor.$Helper | The IMA.js helper methods. | -| ReactDOMServer | vendor.ReactDOMServer | React framework instance to use to render the page on the server side. | -| dispatcher | Dispatcher | Dispatcher fires events to app. | -| settings | Object.<string, \*> | Application setting for the current application environment. | -| response | Response | Utility for sending the page markup to the client as a response to the current HTTP request. | -| cache | Cache | Resource cache caching the results of HTTP requests made by services used by the rendered page. | - - -* * * - -#### serverPageRenderer.\_response : Response  -Utility for sending the page markup to the client as a response to -the current HTTP request. - -**Kind**: instance property of [ServerPageRenderer](#module_ima..ServerPageRenderer) - -* * * - -#### serverPageRenderer.\_cache : Cache  -The resource cache, caching the results of all HTTP requests made by -the services using by the rendered page. The state of the cache will -then be serialized and sent to the client to re-initialize the page -at the client side. - -**Kind**: instance property of [ServerPageRenderer](#module_ima..ServerPageRenderer) - -* * * - -#### serverPageRenderer.\_getRevivalSettings(props) ⇒ string  -The javascript code will include a settings the "revival" data for the -application at the client-side. - -**Kind**: instance method of [ServerPageRenderer](#module_ima..ServerPageRenderer) -**Returns**: string - The javascript code to include into the - rendered page. - -| Param | Type | Description | -| --- | --- | --- | -| props | object | Revival settings properties passed to $IMA object on window. | - - -* * * - -#### serverPageRenderer.\_wrapEachKeyToPromise([dataMap]) ⇒ Object.<string, Promise>  -Creates a copy of the provided data map object that has the values of -its fields wrapped into Promises. - -The the values that are already Promises will referenced directly -without wrapping then into another Promise. - -**Kind**: instance method of [ServerPageRenderer](#module_ima..ServerPageRenderer) -**Returns**: Object.<string, Promise> - A copy of the provided data map that - has all its values wrapped into promises. - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| [dataMap] | Object.<string, \*> | {} | A map of data that should have its values wrapped into Promises. | - - -* * * - -#### serverPageRenderer.\_renderPage(controller, view, pageState, routeOptions) ⇒ Object  -Render page after all promises from loaded resources is resolved. - -**Kind**: instance method of [ServerPageRenderer](#module_ima..ServerPageRenderer) - -| Param | Type | -| --- | --- | -| controller | AbstractController | -| view | React.Component | -| pageState | Object.<string, \*> | -| routeOptions | Object.<string, \*> | - - -* * * - -#### serverPageRenderer.\_renderPageContentToString(controller, view, routeOptions) ⇒ string  -Render page content to a string containing HTML markup. - -**Kind**: instance method of [ServerPageRenderer](#module_ima..ServerPageRenderer) - -| Param | Type | -| --- | --- | -| controller | AbstractController | -| view | function | -| routeOptions | Object.<string, \*> | - - -* * * - -### *ima~mount()*  -**Kind**: inner abstract method of [ima](#module_ima) - -* * * - -### ima~update()  -**Kind**: inner method of [ima](#module_ima) - -* * * - -### ima~unmount()  -**Kind**: inner method of [ima](#module_ima) - -* * * - diff --git a/docs/_posts/2022-07-14-pagerenderer-types.md b/docs/_posts/2022-07-14-pagerenderer-types.md deleted file mode 100644 index 0edcb453d5..0000000000 --- a/docs/_posts/2022-07-14-pagerenderer-types.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -category: "page/renderer" -title: "API - Types" -menuTitle: "Types" ---- - -## Constants - -
    -
    RENDER : string
    -

    The RENDER type is set if mounting use React.render method.

    -
    -
    HYDRATE : string
    -

    The HYDRATE type is set if mounting use React.hydrate method.

    -
    -
    UNMOUNT : string
    -

    The UNMOUNT type is set if unmounting use React.unmountComponentAtNode method.

    -
    -
    - -## Types : enum  -Events constants, which is firing to app. - -**Kind**: global enum - -* * * - -## RENDER : string  -The RENDER type is set if mounting use React.render method. - -**Kind**: global constant - -* * * - -## HYDRATE : string  -The HYDRATE type is set if mounting use React.hydrate method. - -**Kind**: global constant - -* * * - -## UNMOUNT : string  -The UNMOUNT type is set if unmounting use React.unmountComponentAtNode method. - -**Kind**: global constant - -* * * - diff --git a/docs/_posts/2022-07-14-pagerenderer-view-adapter.md b/docs/_posts/2022-07-14-pagerenderer-view-adapter.md deleted file mode 100644 index b7fc11f5b1..0000000000 --- a/docs/_posts/2022-07-14-pagerenderer-view-adapter.md +++ /dev/null @@ -1,75 +0,0 @@ ---- -category: "page/renderer" -title: "API - ViewAdapter" -menuTitle: "ViewAdapter" ---- - -## ViewAdapter  -An adapter component providing the current page controller's state to the -page view component through its properties. - -**Kind**: global class - -* [ViewAdapter](#ViewAdapter) - * [new ViewAdapter(props)](#new_ViewAdapter_new) - * [.state](#ViewAdapter+state) : Object.<string, \*> - * [._view](#ViewAdapter+_view) : function - * [._getContextValue](#ViewAdapter+_getContextValue) : function - * [.contextSelectors](#ViewAdapter+contextSelectors) : Array.<function()> - * [.createContext](#ViewAdapter+createContext) : function - * [.render()](#ViewAdapter+render) - - -* * * - -### new ViewAdapter(props)  -Initializes the adapter component. - - -| Param | Type | Description | -| --- | --- | --- | -| props | Object | Component properties, containing the actual page view and the initial page state to pass to the view. | - - -* * * - -### viewAdapter.state : Object.<string, \*>  -The current page state as provided by the controller. - -**Kind**: instance property of [ViewAdapter](#ViewAdapter) - -* * * - -### viewAdapter.\_view : function  -The actual page view to render. - -**Kind**: instance property of [ViewAdapter](#ViewAdapter) - -* * * - -### viewAdapter.\_getContextValue : function  -The memoized context value. - -**Kind**: instance property of [ViewAdapter](#ViewAdapter) - -* * * - -### viewAdapter.contextSelectors : Array.<function()>  -The array of selectors for context values. - -**Kind**: instance property of [ViewAdapter](#ViewAdapter) - -* * * - -### viewAdapter.createContext : function  -The function for creating context. - -**Kind**: instance property of [ViewAdapter](#ViewAdapter) - -* * * - -### viewAdapter.render()  -**Kind**: instance method of [ViewAdapter](#ViewAdapter) - -* * * - diff --git a/docs/_posts/2022-07-14-pagestate-events.md b/docs/_posts/2022-07-14-pagestate-events.md deleted file mode 100644 index d8c7958791..0000000000 --- a/docs/_posts/2022-07-14-pagestate-events.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -category: "page/state" -title: "API - Events" -menuTitle: "Events" ---- - -## Constants - -
    -
    BEFORE_CHANGE_STATE : string
    -

    PateStateManager fire event $IMA.$PageStateManager.beforeChangeState before -state is patched. Event's data contain -{ oldState: Object, newState: Object, -pathState: Object }.

    -
    -
    AFTER_CHANGE_STATE : string
    -

    PateStateManager fire event $IMA.$PageStateManager.afterChangeState after state -is patched. Event's data contain {newState: Object}.

    -
    -
    - -## Events : enum  -Events constants, which is firing to app. - -**Kind**: global enum - -* * * - -## BEFORE\_CHANGE\_STATE : string  -PateStateManager fire event $IMA.$PageStateManager.beforeChangeState before -state is patched. Event's data contain -{ oldState: Object, newState: Object, -pathState: Object }. - -**Kind**: global constant - -* * * - -## AFTER\_CHANGE\_STATE : string  -PateStateManager fire event $IMA.$PageStateManager.afterChangeState after state -is patched. Event's data contain {newState: Object}. - -**Kind**: global constant - -* * * - diff --git a/docs/_posts/2022-07-14-pagestate-page-state-manager-decorator.md b/docs/_posts/2022-07-14-pagestate-page-state-manager-decorator.md deleted file mode 100644 index 3766451ed0..0000000000 --- a/docs/_posts/2022-07-14-pagestate-page-state-manager-decorator.md +++ /dev/null @@ -1,94 +0,0 @@ ---- -category: "page/state" -title: "API - PageStateManagerDecorator" -menuTitle: "PageStateManagerDecorator" ---- - -## PageStateManagerDecorator  -Decorator for page state manager, which add logic for limiting Extension -competence. - -**Kind**: global class - -* [PageStateManagerDecorator](#PageStateManagerDecorator) - * [new PageStateManagerDecorator(pageStateManager, allowedStateKeys)](#new_PageStateManagerDecorator_new) - * [._pageStateManager](#PageStateManagerDecorator+_pageStateManager) : PageStateManager - * [._allowedStateKeys](#PageStateManagerDecorator+_allowedStateKeys) : Array.<string> - * [.clear()](#PageStateManagerDecorator+clear) - * [.setState()](#PageStateManagerDecorator+setState) - * [.getState()](#PageStateManagerDecorator+getState) - * [.getAllStates()](#PageStateManagerDecorator+getAllStates) - * [.getTransactionStatePatches()](#PageStateManagerDecorator+getTransactionStatePatches) - * [.beginTransaction()](#PageStateManagerDecorator+beginTransaction) - * [.commitTransaction()](#PageStateManagerDecorator+commitTransaction) - * [.cancelTransaction()](#PageStateManagerDecorator+cancelTransaction) - - -* * * - -### new PageStateManagerDecorator(pageStateManager, allowedStateKeys)  -Initializes the page state manager decorator. - - -| Param | Type | -| --- | --- | -| pageStateManager | PageStateManager | -| allowedStateKeys | Array.<string> | - - -* * * - -### pageStateManagerDecorator.\_pageStateManager : PageStateManager  -The current page state manager. - -**Kind**: instance property of [PageStateManagerDecorator](#PageStateManagerDecorator) - -* * * - -### pageStateManagerDecorator.\_allowedStateKeys : Array.<string>  -Array of access keys for state. - -**Kind**: instance property of [PageStateManagerDecorator](#PageStateManagerDecorator) - -* * * - -### pageStateManagerDecorator.clear()  -**Kind**: instance method of [PageStateManagerDecorator](#PageStateManagerDecorator) - -* * * - -### pageStateManagerDecorator.setState()  -**Kind**: instance method of [PageStateManagerDecorator](#PageStateManagerDecorator) - -* * * - -### pageStateManagerDecorator.getState()  -**Kind**: instance method of [PageStateManagerDecorator](#PageStateManagerDecorator) - -* * * - -### pageStateManagerDecorator.getAllStates()  -**Kind**: instance method of [PageStateManagerDecorator](#PageStateManagerDecorator) - -* * * - -### pageStateManagerDecorator.getTransactionStatePatches()  -**Kind**: instance method of [PageStateManagerDecorator](#PageStateManagerDecorator) - -* * * - -### pageStateManagerDecorator.beginTransaction()  -**Kind**: instance method of [PageStateManagerDecorator](#PageStateManagerDecorator) - -* * * - -### pageStateManagerDecorator.commitTransaction()  -**Kind**: instance method of [PageStateManagerDecorator](#PageStateManagerDecorator) - -* * * - -### pageStateManagerDecorator.cancelTransaction()  -**Kind**: instance method of [PageStateManagerDecorator](#PageStateManagerDecorator) - -* * * - diff --git a/docs/_posts/2022-07-14-pagestate-page-state-manager-impl.md b/docs/_posts/2022-07-14-pagestate-page-state-manager-impl.md deleted file mode 100644 index 469a1296ca..0000000000 --- a/docs/_posts/2022-07-14-pagestate-page-state-manager-impl.md +++ /dev/null @@ -1,147 +0,0 @@ ---- -category: "page/state" -title: "API - PageStateManagerImpl" -menuTitle: "PageStateManagerImpl" ---- - -## PageStateManagerImpl  -The implementation of the {@linkcode PageStateManager} interface. - -**Kind**: global class - -* [PageStateManagerImpl](#PageStateManagerImpl) - * [new PageStateManagerImpl(dispatcher)](#new_PageStateManagerImpl_new) - * [._states](#PageStateManagerImpl+_states) : Array.<Object.<string, \*>> - * [._statePatchQueue](#PageStateManagerImpl+_statePatchQueue) : Array.<Object.<string, \*>> - * [._cursor](#PageStateManagerImpl+_cursor) : number - * [.onChange](#PageStateManagerImpl+onChange) : function - * [._dispatcher](#PageStateManagerImpl+_dispatcher) : Dispatcher - * [._ongoingTransaction](#PageStateManagerImpl+_ongoingTransaction) : boolean - * [.clear()](#PageStateManagerImpl+clear) - * [.setState()](#PageStateManagerImpl+setState) - * [.getState()](#PageStateManagerImpl+getState) - * [.getAllStates()](#PageStateManagerImpl+getAllStates) - * [.getTransactionStatePatches()](#PageStateManagerImpl+getTransactionStatePatches) - * [.beginTransaction()](#PageStateManagerImpl+beginTransaction) - * [.commitTransaction()](#PageStateManagerImpl+commitTransaction) - * [.cancelTransaction()](#PageStateManagerImpl+cancelTransaction) - * [._eraseExcessHistory()](#PageStateManagerImpl+_eraseExcessHistory) - * [._pushToHistory(newState)](#PageStateManagerImpl+_pushToHistory) - * [._callOnChangeCallback(newState)](#PageStateManagerImpl+_callOnChangeCallback) - - -* * * - -### new PageStateManagerImpl(dispatcher)  -Initializes the page state manager. - - -| Param | Type | Description | -| --- | --- | --- | -| dispatcher | Dispatcher | Dispatcher fires events to app. | - - -* * * - -### pageStateManagerImpl.\_states : Array.<Object.<string, \*>>  -**Kind**: instance property of [PageStateManagerImpl](#PageStateManagerImpl) - -* * * - -### pageStateManagerImpl.\_statePatchQueue : Array.<Object.<string, \*>>  -**Kind**: instance property of [PageStateManagerImpl](#PageStateManagerImpl) - -* * * - -### pageStateManagerImpl.\_cursor : number  -**Kind**: instance property of [PageStateManagerImpl](#PageStateManagerImpl) - -* * * - -### pageStateManagerImpl.onChange : function  -**Kind**: instance property of [PageStateManagerImpl](#PageStateManagerImpl) - -* * * - -### pageStateManagerImpl.\_dispatcher : Dispatcher  -**Kind**: instance property of [PageStateManagerImpl](#PageStateManagerImpl) - -* * * - -### pageStateManagerImpl.\_ongoingTransaction : boolean  -**Kind**: instance property of [PageStateManagerImpl](#PageStateManagerImpl) - -* * * - -### pageStateManagerImpl.clear()  -**Kind**: instance method of [PageStateManagerImpl](#PageStateManagerImpl) - -* * * - -### pageStateManagerImpl.setState()  -**Kind**: instance method of [PageStateManagerImpl](#PageStateManagerImpl) - -* * * - -### pageStateManagerImpl.getState()  -**Kind**: instance method of [PageStateManagerImpl](#PageStateManagerImpl) - -* * * - -### pageStateManagerImpl.getAllStates()  -**Kind**: instance method of [PageStateManagerImpl](#PageStateManagerImpl) - -* * * - -### pageStateManagerImpl.getTransactionStatePatches()  -**Kind**: instance method of [PageStateManagerImpl](#PageStateManagerImpl) - -* * * - -### pageStateManagerImpl.beginTransaction()  -**Kind**: instance method of [PageStateManagerImpl](#PageStateManagerImpl) - -* * * - -### pageStateManagerImpl.commitTransaction()  -**Kind**: instance method of [PageStateManagerImpl](#PageStateManagerImpl) - -* * * - -### pageStateManagerImpl.cancelTransaction()  -**Kind**: instance method of [PageStateManagerImpl](#PageStateManagerImpl) - -* * * - -### pageStateManagerImpl.\_eraseExcessHistory()  -Erase the oldest state from storage only if it exceed max -defined size of history. - -**Kind**: instance method of [PageStateManagerImpl](#PageStateManagerImpl) - -* * * - -### pageStateManagerImpl.\_pushToHistory(newState)  -Push new state to history storage. - -**Kind**: instance method of [PageStateManagerImpl](#PageStateManagerImpl) - -| Param | Type | -| --- | --- | -| newState | Object.<string, \*> | - - -* * * - -### pageStateManagerImpl.\_callOnChangeCallback(newState)  -Call registered callback function on (@codelink onChange) with newState. - -**Kind**: instance method of [PageStateManagerImpl](#PageStateManagerImpl) - -| Param | Type | -| --- | --- | -| newState | Object.<string, \*> | - - -* * * - diff --git a/docs/_posts/2022-07-14-pagestate-page-state-manager.md b/docs/_posts/2022-07-14-pagestate-page-state-manager.md deleted file mode 100644 index c972b4e67b..0000000000 --- a/docs/_posts/2022-07-14-pagestate-page-state-manager.md +++ /dev/null @@ -1,98 +0,0 @@ ---- -category: "page/state" -title: "API - PageStateManager" -menuTitle: "PageStateManager" ---- - -## PageStateManager  -Manager of the current page state and state history. - -**Kind**: global class - -* [PageStateManager](#PageStateManager) - * [.clear()](#PageStateManager+clear) - * [.setState(statePatch)](#PageStateManager+setState) - * [.getState()](#PageStateManager+getState) ⇒ Object.<string, \*> - * [.getAllStates()](#PageStateManager+getAllStates) ⇒ Array.<Object.<string, \*>> - * [.getTransactionStatePatches()](#PageStateManager+getTransactionStatePatches) ⇒ Array.<Object.<string, \*>> - * [.beginTransaction()](#PageStateManager+beginTransaction) - * [.commitTransaction()](#PageStateManager+commitTransaction) - * [.cancelTransaction()](#PageStateManager+cancelTransaction) - - -* * * - -### pageStateManager.clear()  -Clears the state history. - -**Kind**: instance method of [PageStateManager](#PageStateManager) - -* * * - -### pageStateManager.setState(statePatch)  -Sets a new page state by applying the provided patch to the current -state. - -**Kind**: instance method of [PageStateManager](#PageStateManager) - -| Param | Type | Description | -| --- | --- | --- | -| statePatch | Object.<string, \*> | The patch of the current state. | - - -* * * - -### pageStateManager.getState() ⇒ Object.<string, \*>  -Returns the current page state. - -**Kind**: instance method of [PageStateManager](#PageStateManager) -**Returns**: Object.<string, \*> - The current page state. - -* * * - -### pageStateManager.getAllStates() ⇒ Array.<Object.<string, \*>>  -Returns the recorded history of page states. The states will be -chronologically sorted from the oldest to the newest. - -Note that the implementation may limit the size of the recorded history, -therefore the complete history may not be available. - -**Kind**: instance method of [PageStateManager](#PageStateManager) -**Returns**: Array.<Object.<string, \*>> - The recorded history of page states. - -* * * - -### pageStateManager.getTransactionStatePatches() ⇒ Array.<Object.<string, \*>>  -Returns queueing state patches off the main state from the begin of transaction. - -**Kind**: instance method of [PageStateManager](#PageStateManager) -**Returns**: Array.<Object.<string, \*>> - State patches from the begin of transaction. - -* * * - -### pageStateManager.beginTransaction()  -Starts queueing state patches off the main state. While the transaction -is active every {@method setState} call has no effect on the current state. - -Note that call to {@method getState} after the transaction has begun will -return state as it was before the transaction. - -**Kind**: instance method of [PageStateManager](#PageStateManager) - -* * * - -### pageStateManager.commitTransaction()  -Applies queued state patches to the main state. All patches are squashed -and applied with one {@method setState} call. - -**Kind**: instance method of [PageStateManager](#PageStateManager) - -* * * - -### pageStateManager.cancelTransaction()  -Cancels ongoing transaction. Uncommited state changes are lost. - -**Kind**: instance method of [PageStateManager](#PageStateManager) - -* * * - diff --git a/docs/_posts/2022-07-14-plugin-loader.md b/docs/_posts/2022-07-14-plugin-loader.md deleted file mode 100644 index ec380ec43f..0000000000 --- a/docs/_posts/2022-07-14-plugin-loader.md +++ /dev/null @@ -1,3 +0,0 @@ ---- ---- - diff --git a/docs/_posts/2022-07-14-router-abstract-route.md b/docs/_posts/2022-07-14-router-abstract-route.md deleted file mode 100644 index 9e7e68885a..0000000000 --- a/docs/_posts/2022-07-14-router-abstract-route.md +++ /dev/null @@ -1,297 +0,0 @@ ---- -category: "router" -title: "API - AbstractRoute" -menuTitle: "AbstractRoute" ---- - -## Classes - -
    -
    AbstractRoute
    -

    Utility for representing and manipulating a single route in the router's -configuration.

    -
    -
    - -## Constants - -
    -
    LOOSE_SLASHES_REGEXP : RegExp
    -

    Regular expression used to match and remove the starting and trailing -forward slashes from a path expression or a URL path.

    -
    -
    - -## AbstractRoute  -Utility for representing and manipulating a single route in the router's -configuration. - -**Kind**: global class - -* [AbstractRoute](#AbstractRoute) - * [new AbstractRoute(name, pathExpression, controller, view, options)](#new_AbstractRoute_new) - * _instance_ - * [._name](#AbstractRoute+_name) : string - * [._pathExpression](#AbstractRoute+_pathExpression) : any - * [._controller](#AbstractRoute+_controller) : string - * [._view](#AbstractRoute+_view) : React.Component - * [._options](#AbstractRoute+_options) : Object - * [.getName()](#AbstractRoute+getName) ⇒ string - * [.getController()](#AbstractRoute+getController) ⇒ string - * [.getView()](#AbstractRoute+getView) ⇒ string - * [.getOptions()](#AbstractRoute+getOptions) ⇒ Object - * [.getPathExpression()](#AbstractRoute+getPathExpression) ⇒ any - * *[.toPath([params])](#AbstractRoute+toPath) ⇒ string* - * *[.matches(path)](#AbstractRoute+matches) ⇒ boolean* - * *[.extractParameters(path)](#AbstractRoute+extractParameters) ⇒ Object.<string, ?string>* - * _static_ - * [.pairsToQuery([pairs])](#AbstractRoute.pairsToQuery) ⇒ string - * [.paramsToQuery(params)](#AbstractRoute.paramsToQuery) - * [.getQuery(path)](#AbstractRoute.getQuery) ⇒ Object.<string, ?string> - * [.decodeURIParameter(parameterValue)](#AbstractRoute.decodeURIParameter) ⇒ string - * [.getTrimmedPath(path)](#AbstractRoute.getTrimmedPath) ⇒ string - - -* * * - -### new AbstractRoute(name, pathExpression, controller, view, options)  -Initializes the route. - - -| Param | Type | Description | -| --- | --- | --- | -| name | string | The unique name of this route, identifying it among the rest of the routes in the application. | -| pathExpression | any | Path expression used in route matching, to generate valid path with provided params and parsing params from current path. | -| controller | string | The full name of Object Container alias identifying the controller associated with this route. | -| view | string | The full name or Object Container alias identifying the view class associated with this route. | -| options | Object | The route additional options. | - - -* * * - -### abstractRoute.\_name : string  -The unique name of this route, identifying it among the rest of the -routes in the application. - -**Kind**: instance property of [AbstractRoute](#AbstractRoute) - -* * * - -### abstractRoute.\_pathExpression : any  -Path expression used in route matching, to generate valid path with -provided params and parsing params from current path. - -**Kind**: instance property of [AbstractRoute](#AbstractRoute) - -* * * - -### abstractRoute.\_controller : string  -The full name of Object Container alias identifying the controller -associated with this route. - -**Kind**: instance property of [AbstractRoute](#AbstractRoute) - -* * * - -### abstractRoute.\_view : React.Component  -The full name or Object Container alias identifying the view class -associated with this route. - -**Kind**: instance property of [AbstractRoute](#AbstractRoute) - -* * * - -### abstractRoute.\_options : Object  -The route additional options. - -**Kind**: instance property of [AbstractRoute](#AbstractRoute) - -* * * - -### abstractRoute.getName() ⇒ string  -Returns the unique identifying name of this route. - -**Kind**: instance method of [AbstractRoute](#AbstractRoute) -**Returns**: string - The name of the route, identifying it. - -* * * - -### abstractRoute.getController() ⇒ string  -Returns the full name of the controller to use when this route is -matched by the current URL, or an Object Container-registered alias of -the controller. - -**Kind**: instance method of [AbstractRoute](#AbstractRoute) -**Returns**: string - The name of alias of the controller. - -* * * - -### abstractRoute.getView() ⇒ string  -Returns the full name of the view class or an Object -Container-registered alias for the view class, representing the view to -use when this route is matched by the current URL. - -**Kind**: instance method of [AbstractRoute](#AbstractRoute) -**Returns**: string - The name or alias of the view class. - -* * * - -### abstractRoute.getOptions() ⇒ Object  -Return route additional options. - -**Kind**: instance method of [AbstractRoute](#AbstractRoute) - -* * * - -### abstractRoute.getPathExpression() ⇒ any  -Path expression used in route matching, to generate valid path with -provided params and parsing params from current path. - -**Kind**: instance method of [AbstractRoute](#AbstractRoute) -**Returns**: any - The path expression. - -* * * - -### *abstractRoute.toPath([params]) ⇒ string -Creates the URL and query parts of a URL by substituting the route's -parameter placeholders by the provided parameter value. - -The extraneous parameters that do not match any of the route's -placeholders will be appended as the query string. - -**Kind**: instance abstract method of [AbstractRoute](#AbstractRoute) -**Returns**: string - Path and, if necessary, query parts of the URL - representing this route with its parameters replaced by the - provided parameter values. - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| [params] | Object.<string, (number\|string)> | {} | The route parameter values. | - - -* * * - -### *abstractRoute.matches(path) ⇒ boolean -Tests whether the provided URL path matches this route. The provided -path may contain the query. - -**Kind**: instance abstract method of [AbstractRoute](#AbstractRoute) -**Returns**: boolean - true if the provided path matches this route. - -| Param | Type | Description | -| --- | --- | --- | -| path | string | The URL path. | - - -* * * - -### *abstractRoute.extractParameters(path) ⇒ Object.<string, ?string> -Extracts the parameter values from the provided path. The method -extracts both the in-path parameters and parses the query, allowing the -query parameters to override the in-path parameters. - -The method returns an empty hash object if the path does not match this -route. - -**Kind**: instance abstract method of [AbstractRoute](#AbstractRoute) -**Returns**: Object.<string, ?string> - Map of parameter names to parameter - values. - -| Param | Type | -| --- | --- | -| path | string | - - -* * * - -### AbstractRoute.pairsToQuery([pairs]) ⇒ string  -TODO IMA@18 remove static method - -Converts array of pairs (tuples) into valid URI query component. -Filters out invalid inputs (undefined, null, object, array, non-pair). - -**Kind**: static method of [AbstractRoute](#AbstractRoute) -**Returns**: string - Valid URI query component or empty string if - there are no valid pairs provided. - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| [pairs] | Array.<(string\|number), any> | [] | Array of arrays where the first element must be string|number and the second element can be any. | - -**Example** -```js -let pairs = [['a', true], ['hello world', 123]]; -pairsToQuery(pairs); // => "?a=true&hello%20world=123" -``` - -* * * - -### AbstractRoute.paramsToQuery(params)  -TODO IMA@18 remove static method - -Converts object of key/value pairs to URI query, -which can be appended to url. - -**Kind**: static method of [AbstractRoute](#AbstractRoute) - -| Param | Type | Description | -| --- | --- | --- | -| params | Object.<string, any> | Key/value pairs. | - - -* * * - -### AbstractRoute.getQuery(path) ⇒ Object.<string, ?string>  -TODO IMA@18 remove static method - -Extracts and decodes the query parameters from the provided URL path and -query. - -**Kind**: static method of [AbstractRoute](#AbstractRoute) -**Returns**: Object.<string, ?string> - Parsed query parameters. - -| Param | Type | Description | -| --- | --- | --- | -| path | string | The URL path, including the optional query string (if any). | - - -* * * - -### AbstractRoute.decodeURIParameter(parameterValue) ⇒ string  -TODO IMA@18 remove static method - -Decoding parameters. - -**Kind**: static method of [AbstractRoute](#AbstractRoute) -**Returns**: string - decodedValue - -| Param | Type | -| --- | --- | -| parameterValue | string | - - -* * * - -### AbstractRoute.getTrimmedPath(path) ⇒ string  -TODO IMA@18 remove static method - -Trims the trailing forward slash from the provided URL path. - -**Kind**: static method of [AbstractRoute](#AbstractRoute) -**Returns**: string - Trimmed path. - -| Param | Type | Description | -| --- | --- | --- | -| path | string | The path to trim. | - - -* * * - -## LOOSE\_SLASHES\_REGEXP : RegExp  -Regular expression used to match and remove the starting and trailing -forward slashes from a path expression or a URL path. - -**Kind**: global constant - -* * * - diff --git a/docs/_posts/2022-07-14-router-abstract-router.md b/docs/_posts/2022-07-14-router-abstract-router.md deleted file mode 100644 index 31582f327e..0000000000 --- a/docs/_posts/2022-07-14-router-abstract-router.md +++ /dev/null @@ -1,361 +0,0 @@ ---- -category: "router" -title: "API - AbstractRouter" -menuTitle: "AbstractRouter" ---- - -## *AbstractRouter*  -The basic implementation of the Router interface, providing the -common or default functionality for parts of the API. - -**Kind**: global abstract class - -* *[AbstractRouter](#AbstractRouter)* - * *[new AbstractRouter(pageManager, factory, dispatcher)](#new_AbstractRouter_new)* - * *[._pageManager](#AbstractRouter+_pageManager) : PageManager* - * *[._factory](#AbstractRouter+_factory) : RouteFactory* - * *[._dispatcher](#AbstractRouter+_dispatcher) : Dispatcher* - * *[._protocol](#AbstractRouter+_protocol) : string* - * *[._host](#AbstractRouter+_host) : string* - * *[._root](#AbstractRouter+_root) : string* - * *[._languagePartPath](#AbstractRouter+_languagePartPath) : string* - * *[._routeHandlers](#AbstractRouter+_routeHandlers) : Map.<string, AbstractRoute>* - * *[._currentMiddlewareId](#AbstractRouter+_currentMiddlewareId)* - * *[.init()](#AbstractRouter+init)* - * *[.add()](#AbstractRouter+add)* - * *[.use()](#AbstractRouter+use)* - * *[.remove()](#AbstractRouter+remove)* - * *[.getPath()](#AbstractRouter+getPath)* - * *[.getUrl()](#AbstractRouter+getUrl)* - * *[.getBaseUrl()](#AbstractRouter+getBaseUrl)* - * *[.getDomain()](#AbstractRouter+getDomain)* - * *[.getHost()](#AbstractRouter+getHost)* - * *[.getProtocol()](#AbstractRouter+getProtocol)* - * *[.getCurrentRouteInfo()](#AbstractRouter+getCurrentRouteInfo)* - * **[.listen()](#AbstractRouter+listen)** - * **[.unlisten()](#AbstractRouter+unlisten)** - * **[.redirect()](#AbstractRouter+redirect)** - * *[.link()](#AbstractRouter+link)* - * *[.route()](#AbstractRouter+route)* - * *[.handleError()](#AbstractRouter+handleError)* - * *[.handleNotFound()](#AbstractRouter+handleNotFound)* - * *[.isClientError()](#AbstractRouter+isClientError)* - * *[.isRedirection()](#AbstractRouter+isRedirection)* - * *[._extractRoutePath(path)](#AbstractRouter+_extractRoutePath) ⇒ string* - * *[._handle(route, params, options, [action])](#AbstractRouter+_handle) ⇒ Promise.<Object.<string, \*>>* - * *[._getRouteHandlersByPath(path)](#AbstractRouter+_getRouteHandlersByPath) ⇒ Object* - * *[._getMiddlewaresForRoute(routeName)](#AbstractRouter+_getMiddlewaresForRoute) ⇒ Array.<RouterMiddleware>* - * *[._getCurrentlyRoutedPath()](#AbstractRouter+_getCurrentlyRoutedPath) ⇒ string* - * *[._runMiddlewares(middlewares, params, locals)](#AbstractRouter+_runMiddlewares)* - * *[._addParamsFromOriginalRoute(params)](#AbstractRouter+_addParamsFromOriginalRoute) ⇒ Object.<string, string>* - - -* * * - -### *new AbstractRouter(pageManager, factory, dispatcher)*  -Initializes the router. - - -| Param | Type | Description | -| --- | --- | --- | -| pageManager | PageManager | The page manager handling UI rendering, and transitions between pages if at the client side. | -| factory | RouteFactory | Factory for routes. | -| dispatcher | Dispatcher | Dispatcher fires events to app. | - -**Example** -```js -router.link('article', {articleId: 1}); -``` -**Example** -```js -router.redirect('http://www.example.com/web'); -``` -**Example** -```js -router.add( - 'home', - '/', - ns.app.page.home.Controller, - ns.app.page.home.View, - { - onlyUpdate: false, - autoScroll: true, - allowSPA: true, - documentView: null, - managedRootView: null, - viewAdapter: null - } - ); -``` - -* * * - -### *abstractRouter.\_pageManager : PageManager -The page manager handling UI rendering, and transitions between -pages if at the client side. - -**Kind**: instance property of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.\_factory : RouteFactory -Factory for routes. - -**Kind**: instance property of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.\_dispatcher : Dispatcher -Dispatcher fires events to app. - -**Kind**: instance property of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.\_protocol : string -The current protocol used to access the application, terminated by a -colon (for example https:). - -**Kind**: instance property of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.\_host : string -The application's host. - -**Kind**: instance property of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.\_root : string -The URL path pointing to the application's root. - -**Kind**: instance property of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.\_languagePartPath : string -The URL path fragment used as a suffix to the _root field -that specifies the current language. - -**Kind**: instance property of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.\_routeHandlers : Map.<string, AbstractRoute> -Storage of all known routes and middlewares. The key are their names. - -**Kind**: instance property of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.\_currentMiddlewareId*  -Middleware ID counter which is used to auto-generate unique middleware -names when adding them to routeHandlers map. - -**Kind**: instance property of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.init()*  -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.add()*  -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.use()*  -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.remove()*  -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.getPath()*  -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.getUrl()*  -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.getBaseUrl()*  -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.getDomain()*  -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.getHost()*  -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.getProtocol()*  -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.getCurrentRouteInfo()*  -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### **abstractRouter.listen()**  -**Kind**: instance abstract method of [AbstractRouter](#AbstractRouter) - -* * * - -### **abstractRouter.unlisten()**  -**Kind**: instance abstract method of [AbstractRouter](#AbstractRouter) - -* * * - -### **abstractRouter.redirect()**  -**Kind**: instance abstract method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.link()*  -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.route()*  -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.handleError()*  -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.handleNotFound()*  -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.isClientError()*  -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.isRedirection()*  -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.\_extractRoutePath(path) ⇒ string -Strips the URL path part that points to the application's root (base -URL) from the provided path. - -**Kind**: instance method of [AbstractRouter](#AbstractRouter) -**Returns**: string - URL path relative to the application's base URL. -**Access**: protected - -| Param | Type | Description | -| --- | --- | --- | -| path | string | Relative or absolute URL path. | - - -* * * - -### *abstractRouter.\_handle(route, params, options, [action]) ⇒ Promise.<Object.<string, \*>> -Handles the provided route and parameters by initializing the route's -controller and rendering its state via the route's view. - -The result is then sent to the client if used at the server side, or -displayed if used as the client side. - -**Kind**: instance method of [AbstractRouter](#AbstractRouter) -**Returns**: Promise.<Object.<string, \*>> - A promise that resolves when the - page is rendered and the result is sent to the client, or - displayed if used at the client side. - -| Param | Type | Description | -| --- | --- | --- | -| route | AbstractRoute | The route that should have its associated controller rendered via the associated view. | -| params | Object.<string, (Error\|string)> | Parameters extracted from the URL path and query. | -| options | Object | The options overrides route options defined in the routes.js configuration file. | -| [action] | Object | An action object describing what triggered this routing. | - - -* * * - -### *abstractRouter.\_getRouteHandlersByPath(path) ⇒ Object -Returns the route matching the provided URL path part (the path may -contain a query) and all middlewares preceding this route definition. - -**Kind**: instance method of [AbstractRouter](#AbstractRouter) -**Returns**: Object - The route - matching the path and middlewares preceding it or {} - (empty object) if no such route exists. - -| Param | Type | Description | -| --- | --- | --- | -| path | string | The URL path. | - - -* * * - -### *abstractRouter.\_getMiddlewaresForRoute(routeName) ⇒ Array.<RouterMiddleware> -Returns middlewares preceding given route name. - -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -| Param | Type | -| --- | --- | -| routeName | string | - - -* * * - -### *abstractRouter.\_getCurrentlyRoutedPath() ⇒ string -Returns path that is stored in private property when a route -method is called. - -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -* * * - -### *abstractRouter.\_runMiddlewares(middlewares, params, locals)*  -Runs provided middlewares in sequence. - -**Kind**: instance method of [AbstractRouter](#AbstractRouter) - -| Param | Type | Description | -| --- | --- | --- | -| middlewares | Array.<Promise.<RouterMiddleware>> | Array of middlewares. | -| params | Object.<string, string> | Router params that can be mutated by middlewares. | -| locals | object | The locals param is used to pass local data between middlewares. | - - -* * * - -### *abstractRouter.\_addParamsFromOriginalRoute(params) ⇒ Object.<string, string> -Obtains original route that was handled before not-found / error route -and assigns its params to current params - -**Kind**: instance method of [AbstractRouter](#AbstractRouter) -**Returns**: Object.<string, string> - Provided params merged with params - from original route - -| Param | Type | Description | -| --- | --- | --- | -| params | Object.<string, string> | Route params for not-found or error page | - - -* * * - diff --git a/docs/_posts/2022-07-14-router-action-types.md b/docs/_posts/2022-07-14-router-action-types.md deleted file mode 100644 index 2472e8b415..0000000000 --- a/docs/_posts/2022-07-14-router-action-types.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -category: "router" -title: "API - ActionTypes" -menuTitle: "ActionTypes" ---- - -## Constants - -
    -
    REDIRECT : string
    -
    -
    CLICK : string
    -
    -
    POP_STATE : string
    -
    -
    ERROR : string
    -
    -
    - -## ActionTypes : enum  -Name of actions that can trigger routing - -**Kind**: global enum - -* * * - -## REDIRECT : string  -**Kind**: global constant - -* * * - -## CLICK : string  -**Kind**: global constant - -* * * - -## POP\_STATE : string  -**Kind**: global constant - -* * * - -## ERROR : string  -**Kind**: global constant - -* * * - diff --git a/docs/_posts/2022-07-14-router-client-router.md b/docs/_posts/2022-07-14-router-client-router.md deleted file mode 100644 index f7c168e8a6..0000000000 --- a/docs/_posts/2022-07-14-router-client-router.md +++ /dev/null @@ -1,259 +0,0 @@ ---- -category: "router" -title: "API - ClientRouter" -menuTitle: "ClientRouter" ---- - -## Classes - -
    -
    ClientRouter
    -

    The client-side implementation of the Router interface.

    -
    -
    - -## Constants - -
    -
    CLICK : string
    -

    Name of the event produced when the user clicks the page using the -mouse, or touches the page and the touch event is not stopped.

    -
    -
    POP_STATE : string
    -

    Name of the event fired when the user navigates back in the history.

    -
    -
    MOUSE_LEFT_BUTTON : number
    -

    The number used as the index of the mouse left button in DOM -MouseEvents.

    -
    -
    - -## ClientRouter  -The client-side implementation of the Router interface. - -**Kind**: global class - -* [ClientRouter](#ClientRouter) - * [new ClientRouter(pageManager, factory, dispatcher, window)](#new_ClientRouter_new) - * [._window](#ClientRouter+_window) : Window - * [._boundedHandleClick()](#ClientRouter+_boundedHandleClick) : function - * [._boundedHandlePopState()](#ClientRouter+_boundedHandlePopState) : function - * [.init()](#ClientRouter+init) - * [.getUrl()](#ClientRouter+getUrl) - * [.getPath()](#ClientRouter+getPath) - * [.listen()](#ClientRouter+listen) - * [.unlisten()](#ClientRouter+unlisten) - * [.redirect()](#ClientRouter+redirect) - * [.route()](#ClientRouter+route) - * [.handleError()](#ClientRouter+handleError) - * [.handleNotFound()](#ClientRouter+handleNotFound) - * [._handleFatalError(error)](#ClientRouter+_handleFatalError) - * [._handlePopState(event)](#ClientRouter+_handlePopState) - * [._handleClick(event)](#ClientRouter+_handleClick) - * [._getAnchorElement(target)](#ClientRouter+_getAnchorElement) ⇒ Node - * [._isHashLink(targetUrl)](#ClientRouter+_isHashLink) ⇒ boolean - * [._isSameDomain([url])](#ClientRouter+_isSameDomain) ⇒ boolean - - -* * * - -### new ClientRouter(pageManager, factory, dispatcher, window)  -Initializes the client-side router. - - -| Param | Type | Description | -| --- | --- | --- | -| pageManager | PageManager | The page manager handling UI rendering, and transitions between pages if at the client side. | -| factory | RouteFactory | Factory for routes. | -| dispatcher | Dispatcher | Dispatcher fires events to app. | -| window | Window | The current global client-side APIs provider. | - - -* * * - -### clientRouter.\_window : Window  -Helper for accessing the native client-side APIs. - -**Kind**: instance property of [ClientRouter](#ClientRouter) - -* * * - -### clientRouter.\_boundedHandleClick() : function  -Helper function with right context for binding listener to DOM. - -**Kind**: instance method of [ClientRouter](#ClientRouter) - -* * * - -### clientRouter.\_boundedHandlePopState() : function  -Helper function with right context for binding listener to DOM. - -**Kind**: instance method of [ClientRouter](#ClientRouter) - -* * * - -### clientRouter.init()  -**Kind**: instance method of [ClientRouter](#ClientRouter) - -* * * - -### clientRouter.getUrl()  -**Kind**: instance method of [ClientRouter](#ClientRouter) - -* * * - -### clientRouter.getPath()  -**Kind**: instance method of [ClientRouter](#ClientRouter) - -* * * - -### clientRouter.listen()  -**Kind**: instance method of [ClientRouter](#ClientRouter) - -* * * - -### clientRouter.unlisten()  -**Kind**: instance method of [ClientRouter](#ClientRouter) - -* * * - -### clientRouter.redirect()  -**Kind**: instance method of [ClientRouter](#ClientRouter) - -* * * - -### clientRouter.route()  -**Kind**: instance method of [ClientRouter](#ClientRouter) - -* * * - -### clientRouter.handleError()  -**Kind**: instance method of [ClientRouter](#ClientRouter) - -* * * - -### clientRouter.handleNotFound()  -**Kind**: instance method of [ClientRouter](#ClientRouter) - -* * * - -### clientRouter.\_handleFatalError(error)  -Handle a fatal error application state. IMA handle fatal error when IMA -handle error. - -**Kind**: instance method of [ClientRouter](#ClientRouter) - -| Param | Type | -| --- | --- | -| error | Error | - - -* * * - -### clientRouter.\_handlePopState(event)  -Handles a popstate event. The method is performed when the active history -entry changes. - -The navigation will be handled by the router if the event state is defined -and event is not defaultPrevented. - -**Kind**: instance method of [ClientRouter](#ClientRouter) - -| Param | Type | Description | -| --- | --- | --- | -| event | PopStateEvent | The popstate event. | - - -* * * - -### clientRouter.\_handleClick(event)  -Handles a click event. The method performs navigation to the target -location of the anchor (if it has one). - -The navigation will be handled by the router if the protocol and domain -of the anchor's target location (href) is the same as the current, -otherwise the method results in a hard redirect. - -**Kind**: instance method of [ClientRouter](#ClientRouter) - -| Param | Type | Description | -| --- | --- | --- | -| event | MouseEvent | The click event. | - - -* * * - -### clientRouter.\_getAnchorElement(target) ⇒ Node  -The method determines whether an anchor element or a child of an anchor -element has been clicked, and if it was, the method returns anchor -element else null. - -**Kind**: instance method of [ClientRouter](#ClientRouter) - -| Param | Type | -| --- | --- | -| target | Node | - - -* * * - -### clientRouter.\_isHashLink(targetUrl) ⇒ boolean  -Tests whether the provided target URL contains only an update of the -hash fragment of the current URL. - -**Kind**: instance method of [ClientRouter](#ClientRouter) -**Returns**: boolean - true if the navigation to target URL would - result only in updating the hash fragment of the current URL. - -| Param | Type | Description | -| --- | --- | --- | -| targetUrl | string | The target URL. | - - -* * * - -### clientRouter.\_isSameDomain([url]) ⇒ boolean  -Tests whether the the protocol and domain of the provided URL are the -same as the current. - -**Kind**: instance method of [ClientRouter](#ClientRouter) -**Returns**: boolean - true if the protocol and domain of the - provided URL are the same as the current. - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| [url] | string | "''" | The URL. | - - -* * * - -## Events : enum  -Names of the DOM events the router responds to. - -**Kind**: global enum - -* * * - -## CLICK : string  -Name of the event produced when the user clicks the page using the -mouse, or touches the page and the touch event is not stopped. - -**Kind**: global constant - -* * * - -## POP\_STATE : string  -Name of the event fired when the user navigates back in the history. - -**Kind**: global constant - -* * * - -## MOUSE\_LEFT\_BUTTON : number  -The number used as the index of the mouse left button in DOM -MouseEvents. - -**Kind**: global constant - -* * * - diff --git a/docs/_posts/2022-07-14-router-dynamic-route.md b/docs/_posts/2022-07-14-router-dynamic-route.md deleted file mode 100644 index 0252ca8c3d..0000000000 --- a/docs/_posts/2022-07-14-router-dynamic-route.md +++ /dev/null @@ -1,76 +0,0 @@ ---- -category: "router" -title: "API - DynamicRoute" -menuTitle: "DynamicRoute" ---- - -## DynamicRoute ⇐ AbstractRoute  -Utility for representing and manipulating a single dynamic route in the -router's configuration. Dynamic route is defined by regExp used for route -matching and overrides for toPath and extractParameters functions to generate -and put together valid path. - -**Kind**: global class -**Extends**: AbstractRoute - -* [DynamicRoute](#DynamicRoute) ⇐ AbstractRoute - * [new DynamicRoute(pathExpression)](#new_DynamicRoute_new) - * [._matcher](#DynamicRoute+_matcher) : RegExp - * [._toPath](#DynamicRoute+_toPath) : function - * [._extractParameters](#DynamicRoute+_extractParameters) : function - * [.toPath()](#DynamicRoute+toPath) - * [.matches()](#DynamicRoute+matches) - * [.extractParameters()](#DynamicRoute+extractParameters) - - -* * * - -### new DynamicRoute(pathExpression)  -Initializes the route. - - -| Param | Type | Description | -| --- | --- | --- | -| pathExpression | [PathExpression](#Route..PathExpression) | Path expression used in route matching, to generate valid path with provided params and parsing params from current path. | - - -* * * - -### dynamicRoute.\_matcher : RegExp  -RegExp use in router for path matching to current route. - -**Kind**: instance property of [DynamicRoute](#DynamicRoute) - -* * * - -### dynamicRoute.\_toPath : function  -Function that generates valid path from current route and passed route params. - -**Kind**: instance property of [DynamicRoute](#DynamicRoute) - -* * * - -### dynamicRoute.\_extractParameters : function  -Function which takes care of parsing url params from given path. -It returns object of key/value pairs which correspond to expected path url -params and their values. - -**Kind**: instance property of [DynamicRoute](#DynamicRoute) - -* * * - -### dynamicRoute.toPath()  -**Kind**: instance method of [DynamicRoute](#DynamicRoute) - -* * * - -### dynamicRoute.matches()  -**Kind**: instance method of [DynamicRoute](#DynamicRoute) - -* * * - -### dynamicRoute.extractParameters()  -**Kind**: instance method of [DynamicRoute](#DynamicRoute) - -* * * - diff --git a/docs/_posts/2022-07-14-router-events.md b/docs/_posts/2022-07-14-router-events.md deleted file mode 100644 index c599180ca2..0000000000 --- a/docs/_posts/2022-07-14-router-events.md +++ /dev/null @@ -1,64 +0,0 @@ ---- -category: "router" -title: "API - Events" -menuTitle: "Events" ---- - -## Constants - -
    -
    BEFORE_HANDLE_ROUTE : string
    -

    Router fire event $IMA.$Router.beforeHandleRoute before page -manager handle the route. Event's data contain -{ params: Object, route: ima.core.router.AbstractRoute, -path: string, options: Object<string, *>}}. The path is current -path, the params are params extracted from path, the -route is handle route for path and the options is route -additional options.

    -
    -
    AFTER_HANDLE_ROUTE : string
    -

    Router fire event $IMA.$Router.afterHandleRoute after page -manager handle the route. Event's data contain -{response: Object, params: Object, -route: ima.core.router.AbstractRoute, path: string, options: Object<string, *>}}. -The response is page render result. The path is current -path, the params are params extracted from path, the -route is handle route for path and the options is route -additional options.

    -
    -
    - -## Events : enum  -Events constants, which is firing to app. - -**Kind**: global enum - -* * * - -## BEFORE\_HANDLE\_ROUTE : string  -Router fire event $IMA.$Router.beforeHandleRoute before page -manager handle the route. Event's data contain -{ params: Object, route: ima.core.router.AbstractRoute, -path: string, options: Object}}. The path is current -path, the params are params extracted from path, the -route is handle route for path and the options is route -additional options. - -**Kind**: global constant - -* * * - -## AFTER\_HANDLE\_ROUTE : string  -Router fire event $IMA.$Router.afterHandleRoute after page -manager handle the route. Event's data contain -{response: Object, params: Object, -route: ima.core.router.AbstractRoute, path: string, options: Object}}. -The response is page render result. The path is current -path, the params are params extracted from path, the -route is handle route for path and the options is route -additional options. - -**Kind**: global constant - -* * * - diff --git a/docs/_posts/2022-07-14-router-request.md b/docs/_posts/2022-07-14-router-request.md deleted file mode 100644 index 0657cd128d..0000000000 --- a/docs/_posts/2022-07-14-router-request.md +++ /dev/null @@ -1,117 +0,0 @@ ---- -category: "router" -title: "API - Request" -menuTitle: "Request" ---- - -## Request  -Wrapper for the ExpressJS request, exposing only the necessary minimum. - -**Kind**: global class - -* [Request](#Request) - * [new Request()](#new_Request_new) - * [._request](#Request+_request) : Express.Request - * [.init(request)](#Request+init) - * [.getPath()](#Request+getPath) ⇒ string - * [.getCookieHeader()](#Request+getCookieHeader) ⇒ string - * [.getFile()](#Request+getFile) ⇒ Object.<string, \*> - * [.getFiles()](#Request+getFiles) ⇒ Object.<string, \*> - * [.getBody()](#Request+getBody) ⇒ string - * [.getHeader(header)](#Request+getHeader) ⇒ string - * [.getIP()](#Request+getIP) ⇒ string - * [.getIPs()](#Request+getIPs) ⇒ Array.<string> - - -* * * - -### new Request()  -Initializes the request. - - -* * * - -### request.\_request : Express.Request  -The current ExpressJS request object, or null if running at -the client side. - -**Kind**: instance property of [Request](#Request) - -* * * - -### request.init(request)  -Initializes the request using the provided ExpressJS request object. - -**Kind**: instance method of [Request](#Request) - -| Param | Type | Description | -| --- | --- | --- | -| request | Express.Request | The ExpressJS request object representing the current request. Use null at the client side. | - - -* * * - -### request.getPath() ⇒ string  -Returns the path part of the URL to which the request was made. - -**Kind**: instance method of [Request](#Request) -**Returns**: string - The path to which the request was made. - -* * * - -### request.getCookieHeader() ⇒ string  -Returns the Cookie HTTP header value. - -**Kind**: instance method of [Request](#Request) -**Returns**: string - The value of the Cookie header. - -* * * - -### request.getFile() ⇒ Object.<string, \*>  -Returns uploaded file to server and meta information. - -**Kind**: instance method of [Request](#Request) - -* * * - -### request.getFiles() ⇒ Object.<string, \*>  -Returns upaloaded files to server with their meta information. - -**Kind**: instance method of [Request](#Request) - -* * * - -### request.getBody() ⇒ string  -Returns body of request. - -**Kind**: instance method of [Request](#Request) - -* * * - -### request.getHeader(header) ⇒ string  -Returns the specified HTTP request header. - -**Kind**: instance method of [Request](#Request) - -| Param | Type | -| --- | --- | -| header | string | - - -* * * - -### request.getIP() ⇒ string  -Returns the remote IP address of the request. - -**Kind**: instance method of [Request](#Request) - -* * * - -### request.getIPs() ⇒ Array.<string>  -Returns array of IP addresses specified in the “X-Forwarded-For” -request header. - -**Kind**: instance method of [Request](#Request) - -* * * - diff --git a/docs/_posts/2022-07-14-router-response.md b/docs/_posts/2022-07-14-router-response.md deleted file mode 100644 index 9532080535..0000000000 --- a/docs/_posts/2022-07-14-router-response.md +++ /dev/null @@ -1,222 +0,0 @@ ---- -category: "router" -title: "API - Response" -menuTitle: "Response" ---- - -## Response  -Wrapper for the ExpressJS response, exposing only the necessary minimum. - -**Kind**: global class - -* [Response](#Response) - * [new Response()](#new_Response_new) - * [._response](#Response+_response) : Express.Response - * [._isSent](#Response+_isSent) : boolean - * [._status](#Response+_status) : number - * [._content](#Response+_content) : string - * [._pageState](#Response+_pageState) : Object.<string, \*> - * [._internalCookieStorage](#Response+_internalCookieStorage) : Map.<string, {value: string, options: {domain: string=, expires: (number\|string)=}}> - * [._cookieTransformFunction](#Response+_cookieTransformFunction) : Object - * [.init(response, [cookieTransformFunction])](#Response+init) ⇒ ima.core.router.Response - * [.redirect(url, [status], [headers])](#Response+redirect) ⇒ [Response](#Response) - * [.status(httpStatus)](#Response+status) ⇒ [Response](#Response) - * [.send(content)](#Response+send) ⇒ [Response](#Response) - * [.setPageState(pageState)](#Response+setPageState) ⇒ [Response](#Response) - * [.setCookie(name, value, options)](#Response+setCookie) ⇒ [Response](#Response) - * [.getResponseParams()](#Response+getResponseParams) ⇒ Object - * [.isResponseSent()](#Response+isResponseSent) ⇒ boolean - * [._setCookieHeaders()](#Response+_setCookieHeaders) - * [._prepareCookieOptionsForExpress(options)](#Response+_prepareCookieOptionsForExpress) ⇒ Object - - -* * * - -### new Response()  -Initializes the response. - - -* * * - -### response.\_response : Express.Response  -The ExpressJS response object, or null if running at the -client side. - -**Kind**: instance property of [Response](#Response) - -* * * - -### response.\_isSent : boolean  -It is flag for sent response for request. - -**Kind**: instance property of [Response](#Response) - -* * * - -### response.\_status : number  -HTTP Status code. - -**Kind**: instance property of [Response](#Response) - -* * * - -### response.\_content : string  -The content of response. - -**Kind**: instance property of [Response](#Response) - -* * * - -### response.\_pageState : Object.<string, \*>  -The rendered page state. - -**Kind**: instance property of [Response](#Response) - -* * * - -### response.\_internalCookieStorage : Map.<string, {value: string, options: {domain: string=, expires: (number\|string)=}}>  -Internal cookie storage for Set-Cookie header. - -**Kind**: instance property of [Response](#Response) - -* * * - -### response.\_cookieTransformFunction : Object  -Transform function for cookie value. - -**Kind**: instance property of [Response](#Response) - -* * * - -### response.init(response, [cookieTransformFunction]) ⇒ ima.core.router.Response  -Initializes this response wrapper with the provided ExpressJS response -object. - -**Kind**: instance method of [Response](#Response) -**Returns**: ima.core.router.Response - This response. - -| Param | Type | Description | -| --- | --- | --- | -| response | Express.Response | The ExpressJS response, or null if the code is running at the client side. | -| [cookieTransformFunction] | Object | | - - -* * * - -### response.redirect(url, [status], [headers]) ⇒ [Response](#Response)  -Redirects the client to the specified location, with the specified -redirect HTTP response code. - -For full list of HTTP response status codes see -http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html - -Use this method only at the server side. - -**Kind**: instance method of [Response](#Response) -**Returns**: [Response](#Response) - This response. - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| url | string | | The URL to which the client should be redirected. | -| [status] | number | 302 | The HTTP status code to send to the client. | -| [headers] | Object.<string, string> | {} | Custom headers to be used on the response. | - - -* * * - -### response.status(httpStatus) ⇒ [Response](#Response)  -Sets the HTTP status code that will be sent to the client when the -response is sent. - -For full list of available response codes see -http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html - -Use this method only at the server side. - -**Kind**: instance method of [Response](#Response) -**Returns**: [Response](#Response) - This response. - -| Param | Type | Description | -| --- | --- | --- | -| httpStatus | number | HTTP response status code to send to the client. | - - -* * * - -### response.send(content) ⇒ [Response](#Response)  -Sends the response to the client with the provided content. Use this -method only at the server side. - -**Kind**: instance method of [Response](#Response) -**Returns**: [Response](#Response) - This response. - -| Param | Type | Description | -| --- | --- | --- | -| content | string | The response body. | - - -* * * - -### response.setPageState(pageState) ⇒ [Response](#Response)  -Sets the rendered page state. - -**Kind**: instance method of [Response](#Response) -**Returns**: [Response](#Response) - This response. - -| Param | Type | Description | -| --- | --- | --- | -| pageState | Object.<string, \*> | The rendered page state. | - - -* * * - -### response.setCookie(name, value, options) ⇒ [Response](#Response)  -Sets a cookie, which will be sent to the client with the response. - -**Kind**: instance method of [Response](#Response) -**Returns**: [Response](#Response) - This response. - -| Param | Type | Description | -| --- | --- | --- | -| name | string | The cookie name. | -| value | boolean \| number \| string | The cookie value, will be converted to string. | -| options | Object | Cookie attributes. Only the attributes listed in the type annotation of this field are supported. For documentation and full list of cookie attributes see http://tools.ietf.org/html/rfc2965#page-5 | - - -* * * - -### response.getResponseParams() ⇒ Object  -Return object which contains response status, content and rendered -page state. - -**Kind**: instance method of [Response](#Response) - -* * * - -### response.isResponseSent() ⇒ boolean  -Return true if response is sent from server to client. - -**Kind**: instance method of [Response](#Response) - -* * * - -### response.\_setCookieHeaders()  -Set cookie headers for response. - -**Kind**: instance method of [Response](#Response) - -* * * - -### response.\_prepareCookieOptionsForExpress(options) ⇒ Object  -Prepares cookie options for Express. - -**Kind**: instance method of [Response](#Response) -**Returns**: Object - Cookie options prepared for Express. - -| Param | Type | Description | -| --- | --- | --- | -| options | Object | Cookie attributes. Only the attributes listed in the type annotation of this field are supported. For documentation and full list of cookie attributes see http://tools.ietf.org/html/rfc2965#page-5 | - - -* * * - diff --git a/docs/_posts/2022-07-14-router-route-factory.md b/docs/_posts/2022-07-14-router-route-factory.md deleted file mode 100644 index 9ffdda9af2..0000000000 --- a/docs/_posts/2022-07-14-router-route-factory.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -category: "router" -title: "API - RouteFactory" -menuTitle: "RouteFactory" ---- - -## RouteFactory  -Utility factory used by router to create routes. - -**Kind**: global class - -* * * - -### routeFactory.createRoute(name, pathExpression, controller, view, options) ⇒ AbstractRoute  -Create new instance of ima.core.router.AbstractRoute. - -**Kind**: instance method of [RouteFactory](#RouteFactory) -**Returns**: AbstractRoute - The constructed route. - -| Param | Type | Description | -| --- | --- | --- | -| name | string | The unique name of this route, identifying it among the rest of the routes in the application. | -| pathExpression | string \| Route~PathExpression | A path expression specifying either the URL path part matching this route (must not\ contain a query string) with optionally containing named parameter placeholders specified as :parameterName. Or object defining matcher in form of regular expression and toPath and extractParameters function overrides. | -| controller | string | The full name of Object Container alias identifying the controller associated with this route. | -| view | string | The full name or Object Container alias identifying the view class associated with this route. | -| options | Object | The route additional options. | - - -* * * - diff --git a/docs/_posts/2022-07-14-router-route-names.md b/docs/_posts/2022-07-14-router-route-names.md deleted file mode 100644 index 8461503ac7..0000000000 --- a/docs/_posts/2022-07-14-router-route-names.md +++ /dev/null @@ -1,44 +0,0 @@ ---- -category: "router" -title: "API - RouteNames" -menuTitle: "RouteNames" ---- - -## Constants - -
    -
    NOT_FOUND : string
    -

    The internal route name used for the "not found" error page (the 4XX -HTTP status code error page).

    -
    -
    ERROR : string
    -

    The internal route name used for the error page (the 5XX HTTP status -code error page).

    -
    -
    - -## RouteNames : enum  -HTTP status code constants, representing the HTTP status codes recognized -and processed by this proxy. - -**Kind**: global enum -**See**: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html - -* * * - -## NOT\_FOUND : string  -The internal route name used for the "not found" error page (the 4XX -HTTP status code error page). - -**Kind**: global constant - -* * * - -## ERROR : string  -The internal route name used for the error page (the 5XX HTTP status -code error page). - -**Kind**: global constant - -* * * - diff --git a/docs/_posts/2022-07-14-router-router-middleware.md b/docs/_posts/2022-07-14-router-router-middleware.md deleted file mode 100644 index 82d71443d2..0000000000 --- a/docs/_posts/2022-07-14-router-router-middleware.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -category: "router" -title: "API - RouterMiddleware" -menuTitle: "RouterMiddleware" ---- - -## RouterMiddleware  -Utility for representing and running router middleware. - -**Kind**: global class - -* [RouterMiddleware](#RouterMiddleware) - * [new RouterMiddleware(middleware)](#new_RouterMiddleware_new) - * [._middleware](#RouterMiddleware+_middleware) : function - * [.run([params], locals)](#RouterMiddleware+run) ⇒ Promise.<void> - - -* * * - -### new RouterMiddleware(middleware)  -Initializes the middleware - - -| Param | Type | Description | -| --- | --- | --- | -| middleware | function | Middleware function accepting routeParams as a first argument, which can be mutated and locals object as second argument. This can be used to pass data between middlewares. | - - -* * * - -### routerMiddleware.\_middleware : function  -Middleware function accepting routeParams as a first argument, which can be -mutated and locals object as second argument. This can be used to pass data -between middlewares. - -**Kind**: instance property of [RouterMiddleware](#RouterMiddleware) - -* * * - -### routerMiddleware.run([params], locals) ⇒ Promise.<void>  -Passes provided params to router middleware and runs it. - -**Kind**: instance method of [RouterMiddleware](#RouterMiddleware) -**Returns**: Promise.<void> - Middleware function. - -| Param | Type | Description | -| --- | --- | --- | -| [params] | Object.<string, (number\|string)> | The route parameter values. | -| locals | object | Object used to pass data between middlewares. | - - -* * * - diff --git a/docs/_posts/2022-07-14-router-router.md b/docs/_posts/2022-07-14-router-router.md deleted file mode 100644 index 5f6f6cc643..0000000000 --- a/docs/_posts/2022-07-14-router-router.md +++ /dev/null @@ -1,330 +0,0 @@ ---- -category: "router" -title: "API - Router" -menuTitle: "Router" ---- - -## Router  -**Kind**: global interface - -* [Router](#Router) - * [.init(config)](#Router+init) - * [.add(name, pathExpression, controller, view, [options])](#Router+add) ⇒ [Router](#Router) - * [.use(middleware)](#Router+use) ⇒ [Router](#Router) - * [.remove(name)](#Router+remove) ⇒ [Router](#Router) - * [.getPath()](#Router+getPath) ⇒ string - * [.getUrl()](#Router+getUrl) ⇒ string - * [.getBaseUrl()](#Router+getBaseUrl) ⇒ string - * [.getDomain()](#Router+getDomain) ⇒ string - * [.getHost()](#Router+getHost) ⇒ string - * [.getProtocol()](#Router+getProtocol) ⇒ string - * [.getCurrentRouteInfo()](#Router+getCurrentRouteInfo) ⇒ Object - * [.listen()](#Router+listen) ⇒ [Router](#Router) - * [.unlisten()](#Router+unlisten) ⇒ [Router](#Router) - * [.redirect(url, [options], [action], [locals])](#Router+redirect) - * [.link(routeName, params)](#Router+link) ⇒ string - * [.route(path, [options], [action], [locals])](#Router+route) ⇒ Promise.<Object.<string, \*>> - * [.handleError(params, [options], [locals])](#Router+handleError) ⇒ Promise.<Object.<string, \*>> - * [.handleNotFound(params, [options], [locals])](#Router+handleNotFound) ⇒ Promise.<Object.<string, \*>> - * [.isClientError(reason)](#Router+isClientError) ⇒ boolean - * [.isRedirection(reason)](#Router+isRedirection) ⇒ boolean - - -* * * - -### router.init(config)  -Initializes the router with the provided configuration. - -**Kind**: instance method of [Router](#Router) - -| Param | Type | Description | -| --- | --- | --- | -| config | Object | Router configuration. The $Protocol field must be the current protocol used to access the application, terminated by a colon (for example https:). The $Root field must specify the URL path pointing to the application's root. The $LanguagePartPath field must be the URL path fragment used as a suffix to the $Root field that specifies the current language. The $Host field must be the application's domain (and the port number if other than the default is used) in the following form: `${protocol//${host}`}. | - - -* * * - -### router.add(name, pathExpression, controller, view, [options]) ⇒ [Router](#Router)  -Adds a new route to router. - -**Kind**: instance method of [Router](#Router) -**Returns**: [Router](#Router) - This router. -**Throws**: - -- ImaError Thrown if a route with the same name already exists. - - -| Param | Type | Description | -| --- | --- | --- | -| name | string | The unique name of this route, identifying it among the rest of the routes in the application. | -| pathExpression | string | A path expression specifying the URL path part matching this route (must not contain a query string), optionally containing named parameter placeholders specified as :parameterName. The name of the parameter is terminated by a forward slash (/) or the end of the path expression string. The path expression may also contain optional parameters, which are specified as :?parameterName. It is recommended to specify the optional parameters at the end of the path expression. | -| controller | string | The full name of Object Container alias identifying the controller associated with this route. | -| view | string | The full name or Object Container alias identifying the view class associated with this route. | -| [options] | Object | Additional route options, specified how the navigation to the route will be handled. The onlyUpdate can be either a flag signalling whether the current controller and view instances should be kept if they match the ones used by the previous route; or a callback function that will receive the previous controller and view identifiers used in the previously matching route, and returns a boolean representing the value of the flag. This flag is disabled by default. The autoScroll flag signals whether the page should be scrolled to the top when the navigation takes place. This flag is enabled by default. The allowSPA flag can be used to make the route always served from the server and never using the SPA page even if the server is overloaded. This is useful for routes that use different document views (specified by the documentView option), for example for rendering the content of iframes. The route specific middlewares which are run after extracting parameters before route handling. | - - -* * * - -### router.use(middleware) ⇒ [Router](#Router)  -Adds a new middleware to router. - -**Kind**: instance method of [Router](#Router) -**Returns**: [Router](#Router) - This router. -**Throws**: - -- ImaError Thrown if a middleware with the same name already exists. - - -| Param | Type | Description | -| --- | --- | --- | -| middleware | function | Middleware function accepting routeParams as a first argument, which can be mutated and locals object as second argument. This can be used to pass data between middlewares. | - - -* * * - -### router.remove(name) ⇒ [Router](#Router)  -Removes the specified route from the router's known routes. - -**Kind**: instance method of [Router](#Router) -**Returns**: [Router](#Router) - This router. - -| Param | Type | Description | -| --- | --- | --- | -| name | string | The route's unique name, identifying the route to remove. | - - -* * * - -### router.getPath() ⇒ string  -Returns the current path part of the current URL, including the query -string (if any). - -**Kind**: instance method of [Router](#Router) -**Returns**: string - The path and query parts of the current URL. - -* * * - -### router.getUrl() ⇒ string  -Returns the current absolute URL (including protocol, host, query, etc). - -**Kind**: instance method of [Router](#Router) -**Returns**: string - The current absolute URL. - -* * * - -### router.getBaseUrl() ⇒ string  -Returns the application's absolute base URL, pointing to the public root -of the application. - -**Kind**: instance method of [Router](#Router) -**Returns**: string - The application's base URL. - -* * * - -### router.getDomain() ⇒ string  -Returns the application's domain in the following form -`${protocol//${host}`}. - -**Kind**: instance method of [Router](#Router) -**Returns**: string - The current application's domain. - -* * * - -### router.getHost() ⇒ string  -Returns application's host (domain and, if necessary, the port number). - -**Kind**: instance method of [Router](#Router) -**Returns**: string - The current application's host. - -* * * - -### router.getProtocol() ⇒ string  -Returns the current protocol used to access the application, terminated -by a colon (for example https:). - -**Kind**: instance method of [Router](#Router) -**Returns**: string - The current application protocol used to access the - application. - -* * * - -### router.getCurrentRouteInfo() ⇒ Object  -Returns the information about the currently active route. - -**Kind**: instance method of [Router](#Router) -**Returns**: Object - The information about the current route. -**Throws**: - -- ImaError Thrown if a route is not define for current path. - - -* * * - -### router.listen() ⇒ [Router](#Router)  -Registers event listeners at the client side window object allowing the -router to capture user's history (history pop state - going "back") and -page (clicking links) navigation. - -The router will start processing the navigation internally, handling the -user's navigation to display the page related to the URL resulting from -the user's action. - -Note that the router will not prevent forms from being submitted to the -server. - -The effects of this method can be reverted with unlisten. This -method has no effect at the server side. - -**Kind**: instance method of [Router](#Router) -**Returns**: [Router](#Router) - This router. - -* * * - -### router.unlisten() ⇒ [Router](#Router)  -Unregisters event listeners at the client side window object allowing the -router to capture user's history (history pop state - going "back") and -page (clicking links) navigation. - -The router will stop processing the navigation internally, handling the -user's navigation to display the page related to the URL resulting from -the user's action. - -Note that the router will not prevent forms from being submitted to the -server. - -The effects of this method can be reverted with unlisten. This method has no effect -at the server side. - -**Kind**: instance method of [Router](#Router) -**Returns**: [Router](#Router) - This router. - -* * * - -### router.redirect(url, [options], [action], [locals])  -Redirects the client to the specified location. - -At the server side the method results in responding to the client with a -redirect HTTP status code and the Location header. - -At the client side the method updates the current URL by manipulating -the browser history (if the target URL is at the same domain and -protocol as the current one) or performs a hard redirect (if the target -URL points to a different protocol or domain). - -The method will result in the router handling the new URL and routing -the client to the related page if the URL is set at the client side and -points to the same domain and protocol. - -**Kind**: instance method of [Router](#Router) - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| url | string | | The URL to which the client should be redirected. | -| [options] | Object | {} | The options overrides route options defined in the routes.js configuration file. | -| [action] | Object | | An action object describing what triggered this routing. | -| [locals] | object | {} | The locals param is used to pass local data between middlewares. | - - -* * * - -### router.link(routeName, params) ⇒ string  -Generates an absolute URL (including protocol, domain, etc) for the -specified route by substituting the route's parameter placeholders with -the provided parameter values. - -**Kind**: instance method of [Router](#Router) -**Returns**: string - An absolute URL for the specified route and parameters. - -| Param | Type | Description | -| --- | --- | --- | -| routeName | string | The unique name of the route, identifying the route to use. | -| params | Object.<string, string> | Parameter values for the route's parameter placeholders. Extraneous parameters will be added as URL query. | - - -* * * - -### router.route(path, [options], [action], [locals]) ⇒ Promise.<Object.<string, \*>>  -Routes the application to the route matching the providing path, renders -the route page and sends the result to the client. - -**Kind**: instance method of [Router](#Router) -**Returns**: Promise.<Object.<string, \*>> - A promise resolved - when the error has been handled and the response has been sent - to the client, or displayed if used at the client side. - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| path | string | | The URL path part received from the client, with optional query. | -| [options] | Object | {} | The options overrides route options defined in the routes.js configuration file. | -| [action] | Object | | An action object describing what triggered this routing. | -| [locals] | object | {} | The locals param is used to pass local data between middlewares. | - - -* * * - -### router.handleError(params, [options], [locals]) ⇒ Promise.<Object.<string, \*>>  -Handles an internal server error by responding with the appropriate -"internal server error" error page. - -**Kind**: instance method of [Router](#Router) -**Returns**: Promise.<Object.<string, \*>> - A promise resolved when the error - has been handled and the response has been sent to the client, - or displayed if used at the client side. - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| params | Object.<string, (Error\|string)> | | Parameters extracted from the current URL path and query. | -| [options] | Object | {} | The options overrides route options defined in the routes.js configuration file. | -| [locals] | object | {} | The locals param is used to pass local data between middlewares. | - - -* * * - -### router.handleNotFound(params, [options], [locals]) ⇒ Promise.<Object.<string, \*>>  -Handles a "not found" error by responding with the appropriate "not -found" error page. - -**Kind**: instance method of [Router](#Router) -**Returns**: Promise.<Object.<string, \*>> - A promise resolved - when the error has been handled and the response has been sent - to the client, or displayed if used at the client side. - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| params | Object.<string, (Error\|string)> | | Parameters extracted from the current URL path and query. | -| [options] | Object | {} | The options overrides route options defined in the routes.js configuration file. | -| [locals] | object | {} | The locals param is used to pass local data between middlewares. | - - -* * * - -### router.isClientError(reason) ⇒ boolean  -Tests, if possible, whether the specified error was caused by the -client's action (for example wrong URL or request encoding) or by a -failure at the server side. - -**Kind**: instance method of [Router](#Router) -**Returns**: boolean - true if the error was caused the action of the - client. - -| Param | Type | Description | -| --- | --- | --- | -| reason | ImaError \| Error | The encountered error. | - - -* * * - -### router.isRedirection(reason) ⇒ boolean  -Tests, if possible, whether the specified error lead to redirection. - -**Kind**: instance method of [Router](#Router) -**Returns**: boolean - true if the error was caused the action of the - redirection. - -| Param | Type | Description | -| --- | --- | --- | -| reason | ImaError \| Error | The encountered error. | - - -* * * - diff --git a/docs/_posts/2022-07-14-router-server-router.md b/docs/_posts/2022-07-14-router-server-router.md deleted file mode 100644 index 5fba70bd96..0000000000 --- a/docs/_posts/2022-07-14-router-server-router.md +++ /dev/null @@ -1,72 +0,0 @@ ---- -category: "router" -title: "API - ServerRouter" -menuTitle: "ServerRouter" ---- - -## ServerRouter  -The server-side implementation of the Router interface. - -**Kind**: global class - -* [ServerRouter](#ServerRouter) - * [new ServerRouter(pageManager, factory, dispatcher, request, response)](#new_ServerRouter_new) - * [._request](#ServerRouter+_request) : Request - * [._response](#ServerRouter+_response) : Response - * [.getPath()](#ServerRouter+getPath) - * [.listen()](#ServerRouter+listen) - * [.unlisten()](#ServerRouter+unlisten) - * [.redirect()](#ServerRouter+redirect) - - -* * * - -### new ServerRouter(pageManager, factory, dispatcher, request, response)  -Initializes the router. - - -| Param | Type | Description | -| --- | --- | --- | -| pageManager | PageManager | The current page manager. | -| factory | RouteFactory | The router factory used to create routes. | -| dispatcher | Dispatcher | Dispatcher fires events to app. | -| request | Request | The current HTTP request. | -| response | Response | The current HTTP response. | - - -* * * - -### serverRouter.\_request : Request  -The current HTTP request. - -**Kind**: instance property of [ServerRouter](#ServerRouter) - -* * * - -### serverRouter.\_response : Response  -The current HTTP response. - -**Kind**: instance property of [ServerRouter](#ServerRouter) - -* * * - -### serverRouter.getPath()  -**Kind**: instance method of [ServerRouter](#ServerRouter) - -* * * - -### serverRouter.listen()  -**Kind**: instance method of [ServerRouter](#ServerRouter) - -* * * - -### serverRouter.unlisten()  -**Kind**: instance method of [ServerRouter](#ServerRouter) - -* * * - -### serverRouter.redirect()  -**Kind**: instance method of [ServerRouter](#ServerRouter) - -* * * - diff --git a/docs/_posts/2022-07-14-router-static-route.md b/docs/_posts/2022-07-14-router-static-route.md deleted file mode 100644 index 8c7a3dbea4..0000000000 --- a/docs/_posts/2022-07-14-router-static-route.md +++ /dev/null @@ -1,477 +0,0 @@ ---- -category: "router" -title: "API - StaticRoute" -menuTitle: "StaticRoute" ---- - -## Classes - -
    -
    StaticRouteAbstractRoute
    -

    Utility for representing and manipulating a single static route in the -router's configuration using string representation of the path expression -with special param fields identified by :paramName prefix.

    -
    -
    - -## Constants - -
    -
    CONTROL_CHARACTERS_REGEXP : RegExp
    -

    Regular expression matching all control characters used in regular -expressions. The regular expression is used to match these characters in -path expressions and replace them appropriately so the path expression can -be compiled to a regular expression.

    -
    -
    PARAMS_REGEXP_UNIVERSAL : RegExp
    -

    Regular expression used to match the parameter names from a path expression.

    -
    -
    PARAMS_REGEXP_REQUIRED : RegExp
    -

    Regular expression used to match the required parameter names from a path expression.

    -
    -
    PARAMS_REGEXP_CORE_NAME : RegExp
    -

    Regular expression used to separate a camelCase parameter name

    -
    -
    PARAMS_START_PATTERN : String
    -

    Regular expression used to match start of parameter names from a path expression.

    -
    -
    PARAMS_END_PATTERN : String
    -

    Regular expression used to match end of parameter names from a path expression.

    -
    -
    PARAMS_NEVER_MATCH_REGEXP : RegExp
    -

    Regular expression used to never match the parameter names from a path expression. -It's used for wrong parameters order (optional vs. required ones)

    -
    -
    PARAMS_MAIN_REGEXP : RegExp
    -

    Regular expression used to match all main parameter names from a path expression.

    -
    -
    SUBPARAMS_REQUIRED_REGEXP : Object.<String, RegExp>
    -

    Regular expression used to match the required subparameter names from a path expression. -(e.g. for path '/:paramA-:paramB/:nextParam' are subparametres 'paramA' and 'paramB')

    -
    -
    SUBPARAMS_OPT_REGEXP : Object.<String, RegExp>
    -

    Regular expression used to match the optional parameter names from a path expression.

    -
    -
    PARAMS_REGEXP_OPT : RegExp
    -

    Regular expression used to match the parameter names from a path expression.

    -
    -
    - -## StaticRoute ⇐ AbstractRoute  -Utility for representing and manipulating a single static route in the -router's configuration using string representation of the path expression -with special param fields identified by :paramName prefix. - -**Kind**: global class -**Extends**: AbstractRoute - -* [StaticRoute](#StaticRoute) ⇐ AbstractRoute - * [new StaticRoute(pathExpression)](#new_StaticRoute_new) - * [._trimmedPathExpression](#StaticRoute+_trimmedPathExpression) : string - * [._parameterNames](#StaticRoute+_parameterNames) : Array.<string> - * [._hasParameters](#StaticRoute+_hasParameters) : boolean - * [._matcher](#StaticRoute+_matcher) : RegExp - * [.toPath()](#StaticRoute+toPath) - * [.matches()](#StaticRoute+matches) - * [.extractParameters()](#StaticRoute+extractParameters) - * [._substituteRequiredParamInPath(path, paramName, paramValue)](#StaticRoute+_substituteRequiredParamInPath) ⇒ string - * [._substituteOptionalParamInPath(path, paramName, paramValue)](#StaticRoute+_substituteOptionalParamInPath) ⇒ string - * [._cleanUnusedOptionalParams(path)](#StaticRoute+_cleanUnusedOptionalParams) ⇒ string - * [._isOptionalParamInPath(path, paramName)](#StaticRoute+_isOptionalParamInPath) ⇒ boolean - * [._isRequiredParamInPath(path, paramName)](#StaticRoute+_isRequiredParamInPath) ⇒ boolean - * [._getClearParamName(rawParam)](#StaticRoute+_getClearParamName) ⇒ string - * [._getSubparamPattern(delimeter)](#StaticRoute+_getSubparamPattern) ⇒ string - * [._checkOptionalParamsOrder(allMainParams)](#StaticRoute+_checkOptionalParamsOrder) ⇒ boolean - * [._checkParametersOrder(clearedPathExpr)](#StaticRoute+_checkParametersOrder) ⇒ Bool - * [._replaceOptionalParametersInPath(path, optionalParams)](#StaticRoute+_replaceOptionalParametersInPath) ⇒ string - * [._replaceRequiredSubParametersInPath(path, clearedPathExpr)](#StaticRoute+_replaceRequiredSubParametersInPath) ⇒ string - * [._replaceOptionalSubParametersInPath(path, optionalSubparamsOthers, optionalSubparamsLast)](#StaticRoute+_replaceOptionalSubParametersInPath) ⇒ string - * [._compileToRegExp(pathExpression)](#StaticRoute+_compileToRegExp) ⇒ RegExp - * [._getParameters(path)](#StaticRoute+_getParameters) ⇒ Object.<string, string> - * [._extractParameters(parameterValues)](#StaticRoute+_extractParameters) ⇒ Object.<string, ?string> - * [._cleanOptParamName(paramName)](#StaticRoute+_cleanOptParamName) ⇒ string - * [._isParamOptional(paramName)](#StaticRoute+_isParamOptional) ⇒ boolean - * [._getParameterNames(pathExpression)](#StaticRoute+_getParameterNames) ⇒ Array.<string> - - -* * * - -### new StaticRoute(pathExpression)  - -| Param | Type | Description | -| --- | --- | --- | -| pathExpression | string | A path expression specifying the URL path part matching this route (must not contain a query string), optionally containing named parameter placeholders specified as :parameterName. | - - -* * * - -### staticRoute.\_trimmedPathExpression : string  -The path expression with the trailing slashes trimmed. - -**Kind**: instance property of [StaticRoute](#StaticRoute) - -* * * - -### staticRoute.\_parameterNames : Array.<string>  -The names of the parameters in this route. - -**Kind**: instance property of [StaticRoute](#StaticRoute) - -* * * - -### staticRoute.\_hasParameters : boolean  -Set to true if this route contains parameters in its path. - -**Kind**: instance property of [StaticRoute](#StaticRoute) - -* * * - -### staticRoute.\_matcher : RegExp  -A regexp used to match URL path against this route and extract the -parameter values from the matched URL paths. - -**Kind**: instance property of [StaticRoute](#StaticRoute) - -* * * - -### staticRoute.toPath()  -**Kind**: instance method of [StaticRoute](#StaticRoute) - -* * * - -### staticRoute.matches()  -**Kind**: instance method of [StaticRoute](#StaticRoute) - -* * * - -### staticRoute.extractParameters()  -**Kind**: instance method of [StaticRoute](#StaticRoute) - -* * * - -### staticRoute.\_substituteRequiredParamInPath(path, paramName, paramValue) ⇒ string  -Replace required parameter placeholder in path with parameter value. - -**Kind**: instance method of [StaticRoute](#StaticRoute) -**Returns**: string - New path. - -| Param | Type | -| --- | --- | -| path | string | -| paramName | string | -| paramValue | string | - - -* * * - -### staticRoute.\_substituteOptionalParamInPath(path, paramName, paramValue) ⇒ string  -Replace optional param placeholder in path with parameter value. - -**Kind**: instance method of [StaticRoute](#StaticRoute) -**Returns**: string - New path. - -| Param | Type | -| --- | --- | -| path | string | -| paramName | string | -| paramValue | string | - - -* * * - -### staticRoute.\_cleanUnusedOptionalParams(path) ⇒ string  -Remove unused optional param placeholders in path. - -**Kind**: instance method of [StaticRoute](#StaticRoute) -**Returns**: string - New path. - -| Param | Type | -| --- | --- | -| path | string | - - -* * * - -### staticRoute.\_isOptionalParamInPath(path, paramName) ⇒ boolean  -Returns true, if paramName is placed in path. - -**Kind**: instance method of [StaticRoute](#StaticRoute) - -| Param | Type | -| --- | --- | -| path | string | -| paramName | string | - - -* * * - -### staticRoute.\_isRequiredParamInPath(path, paramName) ⇒ boolean  -Returns true, if paramName is placed in path and it's required. - -**Kind**: instance method of [StaticRoute](#StaticRoute) - -| Param | Type | -| --- | --- | -| path | string | -| paramName | string | - - -* * * - -### staticRoute.\_getClearParamName(rawParam) ⇒ string  -Extract clear parameter name, e.q. '?name' or 'name' - -**Kind**: instance method of [StaticRoute](#StaticRoute) - -| Param | Type | -| --- | --- | -| rawParam | string | - - -* * * - -### staticRoute.\_getSubparamPattern(delimeter) ⇒ string  -Get pattern for subparameter. - -**Kind**: instance method of [StaticRoute](#StaticRoute) - -| Param | Type | Description | -| --- | --- | --- | -| delimeter | string | Parameters delimeter | - - -* * * - -### staticRoute.\_checkOptionalParamsOrder(allMainParams) ⇒ boolean  -Check if all optional params are below required ones - -**Kind**: instance method of [StaticRoute](#StaticRoute) - -| Param | Type | -| --- | --- | -| allMainParams | array.<string> | - - -* * * - -### staticRoute.\_checkParametersOrder(clearedPathExpr) ⇒ Bool  -Check if main parametres have correct order. -It means that required param cannot follow optional one. - -**Kind**: instance method of [StaticRoute](#StaticRoute) -**Returns**: Bool - Returns TRUE if order is correct. - -| Param | Type | Description | -| --- | --- | --- | -| clearedPathExpr | string | The cleared URL path (removed first and last slash, ...). | - - -* * * - -### staticRoute.\_replaceOptionalParametersInPath(path, optionalParams) ⇒ string  -Convert main optional parameters to capture sequences - -**Kind**: instance method of [StaticRoute](#StaticRoute) -**Returns**: string - RegExp pattern. - -| Param | Type | Description | -| --- | --- | --- | -| path | string | The URL path. | -| optionalParams | array.<string> | List of main optimal parameter expressions | - - -* * * - -### staticRoute.\_replaceRequiredSubParametersInPath(path, clearedPathExpr) ⇒ string  -Convert required subparameters to capture sequences - -**Kind**: instance method of [StaticRoute](#StaticRoute) -**Returns**: string - RegExp pattern. - -| Param | Type | Description | -| --- | --- | --- | -| path | string | The URL path (route definition). | -| clearedPathExpr | string | The original cleared URL path. | - - -* * * - -### staticRoute.\_replaceOptionalSubParametersInPath(path, optionalSubparamsOthers, optionalSubparamsLast) ⇒ string  -Convert optional subparameters to capture sequences - -**Kind**: instance method of [StaticRoute](#StaticRoute) -**Returns**: string - RegExp pattern. - -| Param | Type | Description | -| --- | --- | --- | -| path | string | The URL path (route definition). | -| optionalSubparamsOthers | array.<string> | List of all subparam. expressions but last ones | -| optionalSubparamsLast | array.<string> | List of last subparam. expressions | - - -* * * - -### staticRoute.\_compileToRegExp(pathExpression) ⇒ RegExp  -Compiles the path expression to a regular expression that can be used -for easier matching of URL paths against this route, and extracting the -path parameter values from the URL path. - -**Kind**: instance method of [StaticRoute](#StaticRoute) -**Returns**: RegExp - The compiled regular expression. - -| Param | Type | Description | -| --- | --- | --- | -| pathExpression | string | The path expression to compile. | - - -* * * - -### staticRoute.\_getParameters(path) ⇒ Object.<string, string>  -Parses the provided path and extract the in-path parameters. The method -decodes the parameters and returns them in a hash object. - -**Kind**: instance method of [StaticRoute](#StaticRoute) -**Returns**: Object.<string, string> - The parsed path parameters. - -| Param | Type | Description | -| --- | --- | --- | -| path | string | The URL path. | - - -* * * - -### staticRoute.\_extractParameters(parameterValues) ⇒ Object.<string, ?string>  -Extract parameters from given path. - -**Kind**: instance method of [StaticRoute](#StaticRoute) -**Returns**: Object.<string, ?string> - Params object. - -| Param | Type | -| --- | --- | -| parameterValues | Array.<string> | - - -* * * - -### staticRoute.\_cleanOptParamName(paramName) ⇒ string  -Returns optional param name without "?" - -**Kind**: instance method of [StaticRoute](#StaticRoute) -**Returns**: string - Strict param name without "?" - -| Param | Type | Description | -| --- | --- | --- | -| paramName | string | Full param name with "?" | - - -* * * - -### staticRoute.\_isParamOptional(paramName) ⇒ boolean  -Checks if parameter is optional or not. - -**Kind**: instance method of [StaticRoute](#StaticRoute) -**Returns**: boolean - return true if is optional, otherwise false - -| Param | Type | -| --- | --- | -| paramName | string | - - -* * * - -### staticRoute.\_getParameterNames(pathExpression) ⇒ Array.<string>  -Extracts the parameter names from the provided path expression. - -**Kind**: instance method of [StaticRoute](#StaticRoute) -**Returns**: Array.<string> - The names of the parameters defined in the provided - path expression. - -| Param | Type | Description | -| --- | --- | --- | -| pathExpression | string | The path expression. | - - -* * * - -## CONTROL\_CHARACTERS\_REGEXP : RegExp  -Regular expression matching all control characters used in regular -expressions. The regular expression is used to match these characters in -path expressions and replace them appropriately so the path expression can -be compiled to a regular expression. - -**Kind**: global constant - -* * * - -## PARAMS\_REGEXP\_UNIVERSAL : RegExp  -Regular expression used to match the parameter names from a path expression. - -**Kind**: global constant - -* * * - -## PARAMS\_REGEXP\_REQUIRED : RegExp  -Regular expression used to match the required parameter names from a path expression. - -**Kind**: global constant - -* * * - -## PARAMS\_REGEXP\_CORE\_NAME : RegExp  -Regular expression used to separate a camelCase parameter name - -**Kind**: global constant - -* * * - -## PARAMS\_START\_PATTERN : String  -Regular expression used to match start of parameter names from a path expression. - -**Kind**: global constant - -* * * - -## PARAMS\_END\_PATTERN : String  -Regular expression used to match end of parameter names from a path expression. - -**Kind**: global constant - -* * * - -## PARAMS\_NEVER\_MATCH\_REGEXP : RegExp  -Regular expression used to never match the parameter names from a path expression. -It's used for wrong parameters order (optional vs. required ones) - -**Kind**: global constant - -* * * - -## PARAMS\_MAIN\_REGEXP : RegExp  -Regular expression used to match all main parameter names from a path expression. - -**Kind**: global constant - -* * * - -## SUBPARAMS\_REQUIRED\_REGEXP : Object.<String, RegExp>  -Regular expression used to match the required subparameter names from a path expression. -(e.g. for path '/:paramA-:paramB/:nextParam' are subparametres 'paramA' and 'paramB') - -**Kind**: global constant - -* * * - -## SUBPARAMS\_OPT\_REGEXP : Object.<String, RegExp>  -Regular expression used to match the optional parameter names from a path expression. - -**Kind**: global constant - -* * * - -## PARAMS\_REGEXP\_OPT : RegExp  -Regular expression used to match the parameter names from a path expression. - -**Kind**: global constant - -* * * - diff --git a/docs/_posts/2022-07-14-storage-cookie-storage.md b/docs/_posts/2022-07-14-storage-cookie-storage.md deleted file mode 100644 index ab39eee4f2..0000000000 --- a/docs/_posts/2022-07-14-storage-cookie-storage.md +++ /dev/null @@ -1,338 +0,0 @@ ---- -category: "storage" -title: "API - CookieStorage" -menuTitle: "CookieStorage" ---- - -## Classes - -
    -
    CookieStorage
    -

    Storage of cookies, mirroring the cookies to the current request / response -at the server side and the document.cookie property at the client -side. The storage caches the cookies internally.

    -
    -
    - -## Constants - -
    -
    MAX_EXPIRE_DATE : Date
    -

    Implementation note: This is the largest possible safe value that has been -tested, used to represent "infinity".

    -
    -
    COOKIE_SEPARATOR : string
    -

    Separator used to separate cookie declarations in the Cookie HTTP -header or the return value of the document.cookie property.

    -
    -
    - -## CookieStorage  -Storage of cookies, mirroring the cookies to the current request / response -at the server side and the document.cookie property at the client -side. The storage caches the cookies internally. - -**Kind**: global class - -* [CookieStorage](#CookieStorage) - * [new CookieStorage(window, request, response)](#new_CookieStorage_new) - * [._window](#CookieStorage+_window) : Window - * [._request](#CookieStorage+_request) : Request - * [._response](#CookieStorage+_response) : Response - * [._options](#CookieStorage+_options) : Object - * [._transformFunction](#CookieStorage+_transformFunction) : Object - * [.init(options, transformFunction)](#CookieStorage+init) - * [.has()](#CookieStorage+has) - * [.get()](#CookieStorage+get) - * [.set(name, value, [options])](#CookieStorage+set) - * [.delete(name, [options])](#CookieStorage+delete) ⇒ Storage - * [.clear()](#CookieStorage+clear) - * [.keys()](#CookieStorage+keys) - * [.size()](#CookieStorage+size) - * [.getCookiesStringForCookieHeader()](#CookieStorage+getCookiesStringForCookieHeader) ⇒ string - * [.parseFromSetCookieHeader(setCookieHeader)](#CookieStorage+parseFromSetCookieHeader) - * [._parse()](#CookieStorage+_parse) - * [._firstLetterToLowerCase(word)](#CookieStorage+_firstLetterToLowerCase) ⇒ string - * [._generateCookieString(name, value, options)](#CookieStorage+_generateCookieString) ⇒ string - * [._getExpirationAsDate(expiration)](#CookieStorage+_getExpirationAsDate) ⇒ Date - * [._extractCookie(cookieString)](#CookieStorage+_extractCookie) ⇒ Object - * [._extractNameAndValue(pair, pairIndex)](#CookieStorage+_extractNameAndValue) ⇒ Array.<?(boolean\|string\|Date)> - * [._sanitizeCookieValue(value)](#CookieStorage+_sanitizeCookieValue) ⇒ string - * [._recomputeCookieMaxAgeAndExpires(options)](#CookieStorage+_recomputeCookieMaxAgeAndExpires) - - -* * * - -### new CookieStorage(window, request, response)  -Initializes the cookie storage. - - -| Param | Type | Description | -| --- | --- | --- | -| window | Window | The window utility. | -| request | Request | The current HTTP request. | -| response | Response | The current HTTP response. | - -**Example** -```js -cookie.set('cookie', 'value', { expires: 10 }); // cookie expires - // after 10s - cookie.set('cookie'); // delete cookie -``` - -* * * - -### cookieStorage.\_window : Window  -The window utility used to determine whether the IMA is being run -at the client or at the server. - -**Kind**: instance property of [CookieStorage](#CookieStorage) - -* * * - -### cookieStorage.\_request : Request  -The current HTTP request. This field is used at the server side. - -**Kind**: instance property of [CookieStorage](#CookieStorage) - -* * * - -### cookieStorage.\_response : Response  -The current HTTP response. This field is used at the server side. - -**Kind**: instance property of [CookieStorage](#CookieStorage) - -* * * - -### cookieStorage.\_options : Object  -The overriding cookie attribute values. - -**Kind**: instance property of [CookieStorage](#CookieStorage) - -* * * - -### cookieStorage.\_transformFunction : Object  -Transform encode and decode functions for cookie value. - -**Kind**: instance property of [CookieStorage](#CookieStorage) - -* * * - -### cookieStorage.init(options, transformFunction)  -**Kind**: instance method of [CookieStorage](#CookieStorage) - -| Param | Type | -| --- | --- | -| options | Object | -| transformFunction | Object | - - -* * * - -### cookieStorage.has()  -**Kind**: instance method of [CookieStorage](#CookieStorage) - -* * * - -### cookieStorage.get()  -**Kind**: instance method of [CookieStorage](#CookieStorage) - -* * * - -### cookieStorage.set(name, value, [options])  -**Kind**: instance method of [CookieStorage](#CookieStorage) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | The key identifying the storage entry. | -| value | \* | The storage entry value. | -| [options] | Object | The cookie options. The maxAge is the maximum age in seconds of the cookie before it will be deleted, the expires is an alternative to that, specifying the moment at which the cookie will be discarded. The domain and path specify the cookie's domain and path. The httpOnly and secure flags set the flags of the same name of the cookie. | - - -* * * - -### cookieStorage.delete(name, [options]) ⇒ Storage  -Deletes the cookie identified by the specified name. - -**Kind**: instance method of [CookieStorage](#CookieStorage) -**Returns**: Storage - This storage. - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name identifying the cookie. | -| [options] | Object | The cookie options. The domain and path specify the cookie's domain and path. The httpOnly and secure flags set the flags of the same name of the cookie. | - - -* * * - -### cookieStorage.clear()  -**Kind**: instance method of [CookieStorage](#CookieStorage) - -* * * - -### cookieStorage.keys()  -**Kind**: instance method of [CookieStorage](#CookieStorage) - -* * * - -### cookieStorage.size()  -**Kind**: instance method of [CookieStorage](#CookieStorage) - -* * * - -### cookieStorage.getCookiesStringForCookieHeader() ⇒ string  -Returns all cookies in this storage serialized to a string compatible -with the Cookie HTTP header. - -**Kind**: instance method of [CookieStorage](#CookieStorage) -**Returns**: string - All cookies in this storage serialized to a string - compatible with the Cookie HTTP header. - -* * * - -### cookieStorage.parseFromSetCookieHeader(setCookieHeader)  -Parses cookies from the provided Set-Cookie HTTP header value. - -The parsed cookies will be set to the internal storage, and the current -HTTP response (via the Set-Cookie HTTP header) if at the server -side, or the browser (via the document.cookie property). - -**Kind**: instance method of [CookieStorage](#CookieStorage) - -| Param | Type | Description | -| --- | --- | --- | -| setCookieHeader | string | The value of the Set-Cookie HTTP header. | - - -* * * - -### cookieStorage.\_parse()  -Parses cookies from a cookie string and sets the parsed cookies to the -internal storage. - -The method obtains the cookie string from the request's Cookie -HTTP header when used at the server side, and the document.cookie -property at the client side. - -**Kind**: instance method of [CookieStorage](#CookieStorage) - -* * * - -### cookieStorage.\_firstLetterToLowerCase(word) ⇒ string  -Creates a copy of the provided word (or text) that has its first -character converted to lower case. - -**Kind**: instance method of [CookieStorage](#CookieStorage) -**Returns**: string - A copy of the provided string with its first character - converted to lower case. - -| Param | Type | Description | -| --- | --- | --- | -| word | string | The word (or any text) that should have its first character converted to lower case. | - - -* * * - -### cookieStorage.\_generateCookieString(name, value, options) ⇒ string  -Generates a string representing the specified cookied, usable either -with the document.cookie property or the Set-Cookie HTTP -header. - -(Note that the Cookie HTTP header uses a slightly different -syntax.) - -**Kind**: instance method of [CookieStorage](#CookieStorage) -**Returns**: string - A string representing the cookie. Setting this string - to the document.cookie property will set the cookie to - the browser's cookie storage. - -| Param | Type | Description | -| --- | --- | --- | -| name | string | The cookie name. | -| value | boolean \| number \| string | The cookie value, will be converted to string. | -| options | Object | Cookie attributes. Only the attributes listed in the type annotation of this field are supported. For documentation and full list of cookie attributes see http://tools.ietf.org/html/rfc2965#page-5 | - - -* * * - -### cookieStorage.\_getExpirationAsDate(expiration) ⇒ Date  -Converts the provided cookie expiration to a Date instance. - -**Kind**: instance method of [CookieStorage](#CookieStorage) -**Returns**: Date - Cookie expiration as a Date instance. - -| Param | Type | Description | -| --- | --- | --- | -| expiration | number \| string \| Date | Cookie expiration in seconds from now, or as a string compatible with the Date constructor. | - - -* * * - -### cookieStorage.\_extractCookie(cookieString) ⇒ Object  -Extract cookie name, value and options from cookie string. - -**Kind**: instance method of [CookieStorage](#CookieStorage) - -| Param | Type | Description | -| --- | --- | --- | -| cookieString | string | The value of the Set-Cookie HTTP header. | - - -* * * - -### cookieStorage.\_extractNameAndValue(pair, pairIndex) ⇒ Array.<?(boolean\|string\|Date)>  -Extract name and value for defined pair and pair index. - -**Kind**: instance method of [CookieStorage](#CookieStorage) - -| Param | Type | -| --- | --- | -| pair | string | -| pairIndex | number | - - -* * * - -### cookieStorage.\_sanitizeCookieValue(value) ⇒ string  -Sanitize cookie value by rules in -(@see http://tools.ietf.org/html/rfc6265#section-4r.1.1). Erase all -invalid characters from cookie value. - -**Kind**: instance method of [CookieStorage](#CookieStorage) -**Returns**: string - Sanitized value - -| Param | Type | Description | -| --- | --- | --- | -| value | string | Cookie value | - - -* * * - -### cookieStorage.\_recomputeCookieMaxAgeAndExpires(options)  -Recomputes cookie's attributes maxAge and expires between each other. - -**Kind**: instance method of [CookieStorage](#CookieStorage) - -| Param | Type | Description | -| --- | --- | --- | -| options | Object | Cookie attributes. Only the attributes listed in the type annotation of this field are supported. For documentation and full list of cookie attributes see http://tools.ietf.org/html/rfc2965#page-5 | - - -* * * - -## MAX\_EXPIRE\_DATE : Date  -Implementation note: This is the largest possible safe value that has been -tested, used to represent "infinity". - -**Kind**: global constant - -* * * - -## COOKIE\_SEPARATOR : string  -Separator used to separate cookie declarations in the Cookie HTTP -header or the return value of the document.cookie property. - -**Kind**: global constant - -* * * - diff --git a/docs/_posts/2022-07-14-storage-map-storage.md b/docs/_posts/2022-07-14-storage-map-storage.md deleted file mode 100644 index 3f64a68c03..0000000000 --- a/docs/_posts/2022-07-14-storage-map-storage.md +++ /dev/null @@ -1,81 +0,0 @@ ---- -category: "storage" -title: "API - MapStorage" -menuTitle: "MapStorage" ---- - -## MapStorage  -Implementation of the Storage interface that relies on the -native Map for storage. - -**Kind**: global class - -* [MapStorage](#MapStorage) - * [new MapStorage()](#new_MapStorage_new) - * [._storage](#MapStorage+_storage) : Map.<string, \*> - * [.init()](#MapStorage+init) - * [.has()](#MapStorage+has) - * [.get()](#MapStorage+get) - * [.set()](#MapStorage+set) - * [.delete()](#MapStorage+delete) - * [.clear()](#MapStorage+clear) - * [.keys()](#MapStorage+keys) - * [.size()](#MapStorage+size) - - -* * * - -### new MapStorage()  -Initializes the map storage. - - -* * * - -### mapStorage.\_storage : Map.<string, \*>  -The internal storage of entries. - -**Kind**: instance property of [MapStorage](#MapStorage) -**Access**: protected - -* * * - -### mapStorage.init()  -**Kind**: instance method of [MapStorage](#MapStorage) - -* * * - -### mapStorage.has()  -**Kind**: instance method of [MapStorage](#MapStorage) - -* * * - -### mapStorage.get()  -**Kind**: instance method of [MapStorage](#MapStorage) - -* * * - -### mapStorage.set()  -**Kind**: instance method of [MapStorage](#MapStorage) - -* * * - -### mapStorage.delete()  -**Kind**: instance method of [MapStorage](#MapStorage) - -* * * - -### mapStorage.clear()  -**Kind**: instance method of [MapStorage](#MapStorage) - -* * * - -### mapStorage.keys()  -**Kind**: instance method of [MapStorage](#MapStorage) - -* * * - -### mapStorage.size()  -**Kind**: instance method of [MapStorage](#MapStorage) - -* * * - diff --git a/docs/_posts/2022-07-14-storage-session-map-storage.md b/docs/_posts/2022-07-14-storage-session-map-storage.md deleted file mode 100644 index 9298e51633..0000000000 --- a/docs/_posts/2022-07-14-storage-session-map-storage.md +++ /dev/null @@ -1,95 +0,0 @@ ---- -category: "storage" -title: "API - SessionMapStorage" -menuTitle: "SessionMapStorage" ---- - -## SessionMapStorage  -The SessionMap storage is an implementation of the -Storage interface acting as a synchronization proxy between -the underlying map storage and the sessionStorage DOM storage. - -**Kind**: global class - -* [SessionMapStorage](#SessionMapStorage) - * [new SessionMapStorage(map, session)](#new_SessionMapStorage_new) - * [._map](#SessionMapStorage+_map) : MapStorage - * [._session](#SessionMapStorage+_session) : SessionStorage - * [.init()](#SessionMapStorage+init) - * [.has()](#SessionMapStorage+has) - * [.get()](#SessionMapStorage+get) - * [.set()](#SessionMapStorage+set) - * [.delete()](#SessionMapStorage+delete) - * [.clear()](#SessionMapStorage+clear) - * [.keys()](#SessionMapStorage+keys) - * [.size()](#SessionMapStorage+size) - - -* * * - -### new SessionMapStorage(map, session)  -Initializes the storage. - - -| Param | Type | Description | -| --- | --- | --- | -| map | MapStorage | The map storage to use. | -| session | SessionStorage | The session storage to use. | - - -* * * - -### sessionMapStorage.\_map : MapStorage  -The map storage, synced with the session storage. - -**Kind**: instance property of [SessionMapStorage](#SessionMapStorage) - -* * * - -### sessionMapStorage.\_session : SessionStorage  -The session storage, synced with the map storage. - -**Kind**: instance property of [SessionMapStorage](#SessionMapStorage) - -* * * - -### sessionMapStorage.init()  -**Kind**: instance method of [SessionMapStorage](#SessionMapStorage) - -* * * - -### sessionMapStorage.has()  -**Kind**: instance method of [SessionMapStorage](#SessionMapStorage) - -* * * - -### sessionMapStorage.get()  -**Kind**: instance method of [SessionMapStorage](#SessionMapStorage) - -* * * - -### sessionMapStorage.set()  -**Kind**: instance method of [SessionMapStorage](#SessionMapStorage) - -* * * - -### sessionMapStorage.delete()  -**Kind**: instance method of [SessionMapStorage](#SessionMapStorage) - -* * * - -### sessionMapStorage.clear()  -**Kind**: instance method of [SessionMapStorage](#SessionMapStorage) - -* * * - -### sessionMapStorage.keys()  -**Kind**: instance method of [SessionMapStorage](#SessionMapStorage) - -* * * - -### sessionMapStorage.size()  -**Kind**: instance method of [SessionMapStorage](#SessionMapStorage) - -* * * - diff --git a/docs/_posts/2022-07-14-storage-session-storage.md b/docs/_posts/2022-07-14-storage-session-storage.md deleted file mode 100644 index 9b80dc9560..0000000000 --- a/docs/_posts/2022-07-14-storage-session-storage.md +++ /dev/null @@ -1,158 +0,0 @@ ---- -category: "storage" -title: "API - SessionStorage" -menuTitle: "SessionStorage" ---- - -## Classes - -
    -
    SessionStorage
    -

    Implementation of the Storage interface that relies on the -native sessionStorage DOM storage for storing its entries.

    -
    -
    StorageIterator
    -

    Implementation of the iterator protocol and the iterable protocol for DOM -storage keys.

    -
    -
    - -## SessionStorage  -Implementation of the Storage interface that relies on the -native sessionStorage DOM storage for storing its entries. - -**Kind**: global class - -* [SessionStorage](#SessionStorage) - * [new SessionStorage(window)](#new_SessionStorage_new) - * [._storage](#SessionStorage+_storage) : Storage - * [.init()](#SessionStorage+init) - * [.has()](#SessionStorage+has) - * [.get()](#SessionStorage+get) - * [.set()](#SessionStorage+set) - * [.delete()](#SessionStorage+delete) - * [.clear()](#SessionStorage+clear) - * [.keys()](#SessionStorage+keys) - * [.size()](#SessionStorage+size) - * [._deleteOldestEntry()](#SessionStorage+_deleteOldestEntry) - - -* * * - -### new SessionStorage(window)  -Initializes the session storage. - - -| Param | Type | -| --- | --- | -| window | Window | - - -* * * - -### sessionStorage.\_storage : Storage  -The DOM storage providing the actual storage of the entries. - -**Kind**: instance property of [SessionStorage](#SessionStorage) - -* * * - -### sessionStorage.init()  -**Kind**: instance method of [SessionStorage](#SessionStorage) - -* * * - -### sessionStorage.has()  -**Kind**: instance method of [SessionStorage](#SessionStorage) - -* * * - -### sessionStorage.get()  -**Kind**: instance method of [SessionStorage](#SessionStorage) - -* * * - -### sessionStorage.set()  -**Kind**: instance method of [SessionStorage](#SessionStorage) - -* * * - -### sessionStorage.delete()  -**Kind**: instance method of [SessionStorage](#SessionStorage) - -* * * - -### sessionStorage.clear()  -**Kind**: instance method of [SessionStorage](#SessionStorage) - -* * * - -### sessionStorage.keys()  -**Kind**: instance method of [SessionStorage](#SessionStorage) - -* * * - -### sessionStorage.size()  -**Kind**: instance method of [SessionStorage](#SessionStorage) - -* * * - -### sessionStorage.\_deleteOldestEntry()  -Deletes the oldest entry in this storage. - -**Kind**: instance method of [SessionStorage](#SessionStorage) - -* * * - -## StorageIterator  -Implementation of the iterator protocol and the iterable protocol for DOM -storage keys. - -**Kind**: global class -**See**: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols - -* [StorageIterator](#StorageIterator) - * [new StorageIterator(storage)](#new_StorageIterator_new) - * [._storage](#StorageIterator+_storage) : Storage - * [._currentKeyIndex](#StorageIterator+_currentKeyIndex) : number - * [.next()](#StorageIterator+next) ⇒ Object - - -* * * - -### new StorageIterator(storage)  -Initializes the DOM storage iterator. - - -| Param | Type | Description | -| --- | --- | --- | -| storage | Storage | The DOM storage to iterate through. | - - -* * * - -### storageIterator.\_storage : Storage  -The DOM storage being iterated. - -**Kind**: instance property of [StorageIterator](#StorageIterator) - -* * * - -### storageIterator.\_currentKeyIndex : number  -The current index of the DOM storage key this iterator will return -next. - -**Kind**: instance property of [StorageIterator](#StorageIterator) - -* * * - -### storageIterator.next() ⇒ Object  -Iterates to the next item. This method implements the iterator protocol. - -**Kind**: instance method of [StorageIterator](#StorageIterator) -**Returns**: Object - The next value in - the sequence and whether the iterator is done iterating through - the values. - -* * * - diff --git a/docs/_posts/2022-07-14-storage-storage.md b/docs/_posts/2022-07-14-storage-storage.md deleted file mode 100644 index 1554c9723a..0000000000 --- a/docs/_posts/2022-07-14-storage-storage.md +++ /dev/null @@ -1,122 +0,0 @@ ---- -category: "storage" -title: "API - Storage" -menuTitle: "Storage" ---- - -## Storage  -**Kind**: global interface - -* [Storage](#Storage) - * [.init()](#Storage+init) ⇒ [Storage](#Storage) - * [.has(key)](#Storage+has) ⇒ boolean - * [.get(key)](#Storage+get) ⇒ \* - * [.set(key, value)](#Storage+set) ⇒ [Storage](#Storage) - * [.delete(key)](#Storage+delete) ⇒ [Storage](#Storage) - * [.clear()](#Storage+clear) ⇒ [Storage](#Storage) - * [.keys()](#Storage+keys) ⇒ Iterator.<string> - * [.size()](#Storage+size) ⇒ number - - -* * * - -### storage.init() ⇒ [Storage](#Storage)  -This method is used to finalize the initialization of the storage after -the dependencies provided through the constructor have been prepared for -use. - -This method must be invoked only once and it must be the first method -invoked on this instance. - -**Kind**: instance method of [Storage](#Storage) -**Returns**: [Storage](#Storage) - This storage. - -* * * - -### storage.has(key) ⇒ boolean  -Returns true if the entry identified by the specified key exists -in this storage. - -**Kind**: instance method of [Storage](#Storage) -**Returns**: boolean - true if the storage entry exists. - -| Param | Type | Description | -| --- | --- | --- | -| key | string | The key identifying the storage entry. | - - -* * * - -### storage.get(key) ⇒ \*  -Retrieves the value of the entry identified by the specified . The -method returns undefined if the entry does not exists. - -Entries set to the undefined value can be tested for existence -using the has method. - -**Kind**: instance method of [Storage](#Storage) -**Returns**: \* - The value of the storage entry. - -| Param | Type | Description | -| --- | --- | --- | -| key | string | The key identifying the storage entry. | - - -* * * - -### storage.set(key, value) ⇒ [Storage](#Storage)  -Sets the storage entry identified by the specified key to the provided -value. The method creates the entry if it does not exist already. - -**Kind**: instance method of [Storage](#Storage) -**Returns**: [Storage](#Storage) - This storage. - -| Param | Type | Description | -| --- | --- | --- | -| key | string | The key identifying the storage entry. | -| value | \* | The storage entry value. | - - -* * * - -### storage.delete(key) ⇒ [Storage](#Storage)  -Deletes the entry identified by the specified key from this storage. - -**Kind**: instance method of [Storage](#Storage) -**Returns**: [Storage](#Storage) - This storage. - -| Param | Type | Description | -| --- | --- | --- | -| key | string | The key identifying the storage entry. | - - -* * * - -### storage.clear() ⇒ [Storage](#Storage)  -Clears the storage of all entries. - -**Kind**: instance method of [Storage](#Storage) -**Returns**: [Storage](#Storage) - This storage. - -* * * - -### storage.keys() ⇒ Iterator.<string>  -Returns an iterator for traversing the keys in this storage. The order -in which the keys are traversed is undefined. - -**Kind**: instance method of [Storage](#Storage) -**Returns**: Iterator.<string> - An iterator for traversing the keys in this - storage. The iterator also implements the iterable protocol, - returning itself as its own iterator, allowing it to be used in - a for..of loop. - -* * * - -### storage.size() ⇒ number  -Returns the number of entries in this storage. - -**Kind**: instance method of [Storage](#Storage) -**Returns**: number - The number of entries in this storage. - -* * * - diff --git a/docs/_posts/2022-07-14-storage-weak-map-storage.md b/docs/_posts/2022-07-14-storage-weak-map-storage.md deleted file mode 100644 index 3d398f2fb8..0000000000 --- a/docs/_posts/2022-07-14-storage-weak-map-storage.md +++ /dev/null @@ -1,153 +0,0 @@ ---- -category: "storage" -title: "API - WeakMapStorage" -menuTitle: "WeakMapStorage" ---- - -## Classes - -
    -
    WeakMapStorage
    -

    A specialization of the MapStorage storage mimicking the native -WeakMap using its internal garbage collector used once the size of -the storage reaches the configured threshold.

    -
    -
    WeakRef
    -

    A simple reference wrapper that emulates a weak reference. We seem to have -no other option, since WeakMap and WeakSet are not enumerable (so what is -the point of WeakMap and WeakSet if you still need to manage the keys?!) and -there is no native way to create a weak reference.

    -
    -
    - -## WeakMapStorage  -A specialization of the MapStorage storage mimicking the native -WeakMap using its internal garbage collector used once the size of -the storage reaches the configured threshold. - -**Kind**: global class - -* [WeakMapStorage](#WeakMapStorage) - * [new WeakMapStorage(config)](#new_WeakMapStorage_new) - * [._entryTtl](#WeakMapStorage+_entryTtl) : number - * [.has()](#WeakMapStorage+has) - * [.get()](#WeakMapStorage+get) - * [.set()](#WeakMapStorage+set) - * [.delete()](#WeakMapStorage+delete) - * [.keys()](#WeakMapStorage+keys) - * [.size()](#WeakMapStorage+size) - * [._discardExpiredEntries()](#WeakMapStorage+_discardExpiredEntries) - - -* * * - -### new WeakMapStorage(config)  -Initializes the storage. - - -| Param | Type | Description | -| --- | --- | --- | -| config | Object | Weak map storage configuration. The fields have the following meaning: - entryTtl The time-to-live of a storage entry in milliseconds. | - - -* * * - -### weakMapStorage.\_entryTtl : number  -The time-to-live of a storage entry in milliseconds. - -**Kind**: instance property of [WeakMapStorage](#WeakMapStorage) - -* * * - -### weakMapStorage.has()  -**Kind**: instance method of [WeakMapStorage](#WeakMapStorage) - -* * * - -### weakMapStorage.get()  -**Kind**: instance method of [WeakMapStorage](#WeakMapStorage) - -* * * - -### weakMapStorage.set()  -**Kind**: instance method of [WeakMapStorage](#WeakMapStorage) - -* * * - -### weakMapStorage.delete()  -**Kind**: instance method of [WeakMapStorage](#WeakMapStorage) - -* * * - -### weakMapStorage.keys()  -**Kind**: instance method of [WeakMapStorage](#WeakMapStorage) - -* * * - -### weakMapStorage.size()  -**Kind**: instance method of [WeakMapStorage](#WeakMapStorage) - -* * * - -### weakMapStorage.\_discardExpiredEntries()  -Deletes all expired entries from this storage. - -**Kind**: instance method of [WeakMapStorage](#WeakMapStorage) - -* * * - -## WeakRef  -A simple reference wrapper that emulates a weak reference. We seem to have -no other option, since WeakMap and WeakSet are not enumerable (so what is -the point of WeakMap and WeakSet if you still need to manage the keys?!) and -there is no native way to create a weak reference. - -**Kind**: global class - -* [WeakRef](#WeakRef) - * [new WeakRef(target, ttl)](#new_WeakRef_new) - * [._reference](#WeakRef+_reference) : Object - * [._expiration](#WeakRef+_expiration) : number - * [.target](#WeakRef+target) ⇒ Object - - -* * * - -### new WeakRef(target, ttl)  -Initializes the weak reference to the target reference. - - -| Param | Type | Description | -| --- | --- | --- | -| target | Object | The target reference that should be referenced by this weak reference. | -| ttl | number | The maximum number of milliseconds the weak reference should be kept. The reference will be discarded once ACCESSED after the specified timeout. | - - -* * * - -### weakRef.\_reference : Object  -The actual target reference, or null if the reference has -been already discarded. - -**Kind**: instance property of [WeakRef](#WeakRef) - -* * * - -### weakRef.\_expiration : number  -The UNIX timestamp with millisecond precision marking the moment at -or after which the reference will be discarded. - -**Kind**: instance property of [WeakRef](#WeakRef) - -* * * - -### weakRef.target ⇒ Object  -Returns the target reference, provided that the target reference is -still alive. Returns null if the reference has been discarded. - -**Kind**: instance property of [WeakRef](#WeakRef) -**Returns**: Object - The target reference, or null if the reference - has been discarded by the garbage collector. - -* * * - diff --git a/docs/_posts/2022-07-14-window-client-window.md b/docs/_posts/2022-07-14-window-client-window.md deleted file mode 100644 index d03e6dacb3..0000000000 --- a/docs/_posts/2022-07-14-window-client-window.md +++ /dev/null @@ -1,160 +0,0 @@ ---- -category: "window" -title: "API - ClientWindow" -menuTitle: "ClientWindow" ---- - -## ClientWindow  -Client-side implementation of the Window utility API. - -**Kind**: global class - -* [ClientWindow](#ClientWindow) - * [.isClient()](#ClientWindow+isClient) - * [.isCookieEnabled()](#ClientWindow+isCookieEnabled) - * [.hasSessionStorage()](#ClientWindow+hasSessionStorage) - * [.setTitle()](#ClientWindow+setTitle) - * [.getWindow()](#ClientWindow+getWindow) - * [.getDocument()](#ClientWindow+getDocument) - * [.getScrollX()](#ClientWindow+getScrollX) - * [.getScrollY()](#ClientWindow+getScrollY) - * [.scrollTo()](#ClientWindow+scrollTo) - * [.getDomain()](#ClientWindow+getDomain) - * [.getHost()](#ClientWindow+getHost) - * [.getPath()](#ClientWindow+getPath) - * [.getUrl()](#ClientWindow+getUrl) - * [.getBody()](#ClientWindow+getBody) - * [.getElementById()](#ClientWindow+getElementById) - * [.getHistoryState()](#ClientWindow+getHistoryState) - * [.querySelector()](#ClientWindow+querySelector) - * [.querySelectorAll()](#ClientWindow+querySelectorAll) - * [.redirect()](#ClientWindow+redirect) - * [.pushState()](#ClientWindow+pushState) - * [.replaceState()](#ClientWindow+replaceState) - * [.createCustomEvent()](#ClientWindow+createCustomEvent) - * [.bindEventListener()](#ClientWindow+bindEventListener) - * [.unbindEventListener()](#ClientWindow+unbindEventListener) - - -* * * - -### clientWindow.isClient()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.isCookieEnabled()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.hasSessionStorage()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.setTitle()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.getWindow()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.getDocument()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.getScrollX()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.getScrollY()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.scrollTo()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.getDomain()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.getHost()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.getPath()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.getUrl()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.getBody()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.getElementById()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.getHistoryState()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.querySelector()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.querySelectorAll()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.redirect()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.pushState()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.replaceState()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.createCustomEvent()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.bindEventListener()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - -### clientWindow.unbindEventListener()  -**Kind**: instance method of [ClientWindow](#ClientWindow) - -* * * - diff --git a/docs/_posts/2022-07-14-window-server-window.md b/docs/_posts/2022-07-14-window-server-window.md deleted file mode 100644 index a719cad813..0000000000 --- a/docs/_posts/2022-07-14-window-server-window.md +++ /dev/null @@ -1,160 +0,0 @@ ---- -category: "window" -title: "API - ServerWindow" -menuTitle: "ServerWindow" ---- - -## ServerWindow  -Server-side implementation of the Window utility API. - -**Kind**: global class - -* [ServerWindow](#ServerWindow) - * [.isClient()](#ServerWindow+isClient) - * [.isCookieEnabled()](#ServerWindow+isCookieEnabled) - * [.hasSessionStorage()](#ServerWindow+hasSessionStorage) - * [.setTitle()](#ServerWindow+setTitle) - * [.getWindow()](#ServerWindow+getWindow) - * [.getDocument()](#ServerWindow+getDocument) - * [.getScrollX()](#ServerWindow+getScrollX) - * [.getScrollY()](#ServerWindow+getScrollY) - * [.scrollTo()](#ServerWindow+scrollTo) - * [.getDomain()](#ServerWindow+getDomain) - * [.getHost()](#ServerWindow+getHost) - * [.getPath()](#ServerWindow+getPath) - * [.getUrl()](#ServerWindow+getUrl) - * [.getBody()](#ServerWindow+getBody) - * [.getElementById()](#ServerWindow+getElementById) - * [.getHistoryState()](#ServerWindow+getHistoryState) - * [.querySelector()](#ServerWindow+querySelector) - * [.querySelectorAll()](#ServerWindow+querySelectorAll) - * [.redirect()](#ServerWindow+redirect) - * [.pushState()](#ServerWindow+pushState) - * [.replaceState()](#ServerWindow+replaceState) - * [.createCustomEvent()](#ServerWindow+createCustomEvent) - * [.bindEventListener()](#ServerWindow+bindEventListener) - * [.unbindEventListener()](#ServerWindow+unbindEventListener) - - -* * * - -### serverWindow.isClient()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.isCookieEnabled()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.hasSessionStorage()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.setTitle()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.getWindow()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.getDocument()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.getScrollX()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.getScrollY()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.scrollTo()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.getDomain()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.getHost()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.getPath()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.getUrl()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.getBody()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.getElementById()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.getHistoryState()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.querySelector()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.querySelectorAll()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.redirect()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.pushState()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.replaceState()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.createCustomEvent()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.bindEventListener()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - -### serverWindow.unbindEventListener()  -**Kind**: instance method of [ServerWindow](#ServerWindow) - -* * * - diff --git a/docs/_posts/2022-07-14-window-window.md b/docs/_posts/2022-07-14-window-window.md deleted file mode 100644 index e5d92d8ff2..0000000000 --- a/docs/_posts/2022-07-14-window-window.md +++ /dev/null @@ -1,334 +0,0 @@ ---- -category: "window" -title: "API - Window" -menuTitle: "Window" ---- - -## Window  -**Kind**: global interface - -* [Window](#Window) - * [.isClient()](#Window+isClient) ⇒ boolean - * [.isCookieEnabled()](#Window+isCookieEnabled) ⇒ boolean - * [.hasSessionStorage()](#Window+hasSessionStorage) ⇒ boolean - * [.setTitle(title)](#Window+setTitle) - * ~~[.getWebSocket()](#Window+getWebSocket) ⇒ function~~ - * [.getWindow()](#Window+getWindow) ⇒ undefined \| [Window](#Window) - * [.getDocument()](#Window+getDocument) ⇒ undefined \| Document - * [.getScrollX()](#Window+getScrollX) ⇒ number - * [.getScrollY()](#Window+getScrollY) ⇒ number - * [.scrollTo(x, y)](#Window+scrollTo) - * [.getDomain()](#Window+getDomain) ⇒ string - * [.getHost()](#Window+getHost) ⇒ string - * [.getPath()](#Window+getPath) ⇒ string - * [.getUrl()](#Window+getUrl) ⇒ string - * [.getBody()](#Window+getBody) ⇒ undefined \| HTMLBodyElement - * [.getElementById(id)](#Window+getElementById) ⇒ HTMLElement - * [.getHistoryState()](#Window+getHistoryState) ⇒ Object - * [.querySelector(selector)](#Window+querySelector) ⇒ HTMLElement - * [.querySelectorAll(selector)](#Window+querySelectorAll) ⇒ NodeList - * [.redirect(url)](#Window+redirect) - * [.pushState(state, title, url)](#Window+pushState) - * [.replaceState(state, title, [url])](#Window+replaceState) - * [.createCustomEvent(name, options)](#Window+createCustomEvent) ⇒ CustomEvent - * [.bindEventListener(eventTarget, event, listener, [useCapture])](#Window+bindEventListener) - * [.unbindEventListener(eventTarget, event, listener, [useCapture])](#Window+unbindEventListener) - - -* * * - -### window.isClient() ⇒ boolean  -Returns true if invoked at the client side. - -**Kind**: instance method of [Window](#Window) -**Returns**: boolean - true if invoked at the client side. - -* * * - -### window.isCookieEnabled() ⇒ boolean  -Returns true if the cookies are set and processed with every -HTTP request and response automatically by the environment. - -**Kind**: instance method of [Window](#Window) -**Returns**: boolean - true if cookies are handled automatically by - the environment. - -* * * - -### window.hasSessionStorage() ⇒ boolean  -Returns true if the session storage is supported. - -**Kind**: instance method of [Window](#Window) -**Returns**: boolean - true if the session storage is supported. - -* * * - -### window.setTitle(title)  -Sets the new page title of the document. - -**Kind**: instance method of [Window](#Window) - -| Param | Type | Description | -| --- | --- | --- | -| title | string | The new page title. | - - -* * * - -### ~~window.getWebSocket() ⇒ function~~  -***Deprecated*** - -Returns the current WebSocket implementation to use. - -**Kind**: instance method of [Window](#Window) -**Returns**: function - The current WebSocket - implementation. - -* * * - -### window.getWindow() ⇒ undefined \| [Window](#Window)  -Returns the native window object representing the global context -at the client-side. The method returns undefined if used at the -server-side. - -**Kind**: instance method of [Window](#Window) -**Returns**: undefined \| [Window](#Window) - The window object at the - client-side, or undefined at the server-side. - -* * * - -### window.getDocument() ⇒ undefined \| Document  -Returns the native document object representing any web page loaded -in the browser and serves as an entry point into the web page's content -which is the DOM tree at the client-side. The method returns undefined -if used at the server-side. - -**Kind**: instance method of [Window](#Window) -**Returns**: undefined \| Document - The document object at the - client-side, or undefined at the server-side. - -* * * - -### window.getScrollX() ⇒ number  -Returns the number of pixels the viewport is scrolled horizontally. - -**Kind**: instance method of [Window](#Window) -**Returns**: number - The number of pixels the viewport is scrolled - horizontally. - -* * * - -### window.getScrollY() ⇒ number  -Returns the number of pixels the document is scrolled vertically. - -**Kind**: instance method of [Window](#Window) -**Returns**: number - The number of pixels the document is scrolled - vertically. - -* * * - -### window.scrollTo(x, y)  -Scrolls the viewport to the specified location (if possible). - -**Kind**: instance method of [Window](#Window) - -| Param | Type | Description | -| --- | --- | --- | -| x | number | Horizontal scroll offset in pixels. | -| y | number | Vertical scroll offset in pixels. | - - -* * * - -### window.getDomain() ⇒ string  -Returns the domain of the current document's URL as -`${protocol://${host}`}. - -**Kind**: instance method of [Window](#Window) -**Returns**: string - The current domain. - -* * * - -### window.getHost() ⇒ string  -Returns the application's host. - -**Kind**: instance method of [Window](#Window) -**Returns**: string - The current host. - -* * * - -### window.getPath() ⇒ string  -Returns the path part of the current URL, including the query string. - -**Kind**: instance method of [Window](#Window) -**Returns**: string - The path and query string parts of the current URL. - -* * * - -### window.getUrl() ⇒ string  -Returns the current document's URL. - -**Kind**: instance method of [Window](#Window) -**Returns**: string - The current document's URL. - -* * * - -### window.getBody() ⇒ undefined \| HTMLBodyElement  -Returns the document's body element. The method returns -undefined if invoked at the server-side. - -**Kind**: instance method of [Window](#Window) -**Returns**: undefined \| HTMLBodyElement - The document's body element, or - undefined if invoked at the server side. - -* * * - -### window.getElementById(id) ⇒ HTMLElement  -Returns the HTML element with the specified id attribute value. - -**Kind**: instance method of [Window](#Window) -**Returns**: HTMLElement - The element with the specified id, or - null if no such element exists. - -| Param | Type | Description | -| --- | --- | --- | -| id | string | The value of the id attribute to look for. | - - -* * * - -### window.getHistoryState() ⇒ Object  -Returns the history state. - -**Kind**: instance method of [Window](#Window) -**Returns**: Object - The current history state - -* * * - -### window.querySelector(selector) ⇒ HTMLElement  -Returns the first element matching the specified CSS 3 selector. - -**Kind**: instance method of [Window](#Window) -**Returns**: HTMLElement - The first element matching the CSS selector or - null if no such element exists. - -| Param | Type | Description | -| --- | --- | --- | -| selector | string | The CSS selector. | - - -* * * - -### window.querySelectorAll(selector) ⇒ NodeList  -Returns a node list of all elements matching the specified CSS 3 -selector. - -**Kind**: instance method of [Window](#Window) -**Returns**: NodeList - A node list containing all elements matching the - specified CSS selector. - -| Param | Type | Description | -| --- | --- | --- | -| selector | string | The CSS selector. | - - -* * * - -### window.redirect(url)  -Performs a hard redirect (discarding the current JavaScript state) to -the specified URL. - -**Kind**: instance method of [Window](#Window) - -| Param | Type | Description | -| --- | --- | --- | -| url | string | The URL to which the browser will be redirected. | - - -* * * - -### window.pushState(state, title, url)  -Pushes a new state to the browser history. The method has no effect if -the current browser does not support the history API (IE9). - -**Kind**: instance method of [Window](#Window) - -| Param | Type | Description | -| --- | --- | --- | -| state | Object.<string, \*> | A state object associated with the history item, preferably representing the page state. | -| title | string | The page title related to the state. Note that this parameter is ignored by some browsers. | -| url | string | The new URL at which the state is available. | - - -* * * - -### window.replaceState(state, title, [url])  -Replaces the current history entry. The method has no effect if the -current browser does not support the history API (IE9). - -**Kind**: instance method of [Window](#Window) - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| state | Object.<string, \*> | | A state object associated with the history item, preferably representing the page state. | -| title | string | | The page title related to the state. Note that this parameter is ignored by some browsers. | -| [url] | string | null | The new URL at which the state is available. | - - -* * * - -### window.createCustomEvent(name, options) ⇒ CustomEvent  -Create new instance of CustomEvent of the specified name and using the -provided options. - -**Kind**: instance method of [Window](#Window) -**Returns**: CustomEvent - The created custom event. -**See**: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Custom event's name (sometimes referred to as the event's type). | -| options | Object.<string, \*> | The custom event's options. | - - -* * * - -### window.bindEventListener(eventTarget, event, listener, [useCapture])  -Registers the provided event listener to be executed when the specified -event occurs on the specified event target. - -Registering the same event listener for the same event on the same event -target with the same useCapture flag value repeatedly has no -effect. - -**Kind**: instance method of [Window](#Window) - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| eventTarget | EventTarget | | The event target. | -| event | string | | The name of the event. | -| listener | function | | The event listener. | -| [useCapture] | boolean | false | If true, the method initiates event capture. After initiating capture, all events of the specified type will be dispatched to the registered listener before being dispatched to any EventTarget beneath it in the DOM tree. Events which are bubbling upward through the tree will not trigger a listener designated to use capture. | - - -* * * - -### window.unbindEventListener(eventTarget, event, listener, [useCapture])  -Deregisters the provided event listener, so it will no longer we -executed when the specified event occurs on the specified event target. - -The method has no effect if the provided event listener is not -registered to be executed at the specified event. - -**Kind**: instance method of [Window](#Window) - -| Param | Type | Default | Description | -| --- | --- | --- | --- | -| eventTarget | EventTarget | | The event target. | -| event | string | | The name of the event. | -| listener | function | | The event listener. | -| [useCapture] | boolean | false | The useCapture flag value that was used when the listener was registered. | - - -* * * - diff --git a/docs/_sass/bulma.sass b/docs/_sass/bulma.sass deleted file mode 100644 index d1c1a1d272..0000000000 --- a/docs/_sass/bulma.sass +++ /dev/null @@ -1,9 +0,0 @@ -@charset "utf-8" -/*! bulma.io v0.8.0 | MIT License | github.com/jgthms/bulma */ -@import "sass/utilities/_all" -@import "sass/base/_all" -@import "sass/elements/_all" -@import "sass/form/_all" -@import "sass/components/_all" -@import "sass/grid/_all" -@import "sass/layout/_all" diff --git a/docs/_sass/custom-bulma.scss b/docs/_sass/custom-bulma.scss deleted file mode 100644 index 7ed0e90318..0000000000 --- a/docs/_sass/custom-bulma.scss +++ /dev/null @@ -1,19 +0,0 @@ -@charset "utf-8"; - -$red: #de0304; -$dark: #202020; - -$body-color: $dark; -$footer-background-color: hsl(0, 0%, 100%); -$link: $red; -$navbar-item-active-color: $red; -$primary: $red; - -$menu-item-active-background-color: $red; -$menu-label-color: #606060; -$menu-label-letter-spacing: 0.05em; - -$content-heading-weight: 700; -$fullhd-enabled: false; - -@import "bulma"; diff --git a/docs/_sass/rouge-github.scss b/docs/_sass/rouge-github.scss deleted file mode 100644 index 186c078947..0000000000 --- a/docs/_sass/rouge-github.scss +++ /dev/null @@ -1,114 +0,0 @@ -$color00: #f7f7f7; -$color01: #495057; -$color02: #adb5bd; -$color03: #d73a49; -$color04: #6f42c1; -$color05: #f59f00; -$color06: #800080; -$color07: #005cc5; -$color08: #008080; - -// Inline code snippets -code { - font-family: 'Menlo', 'Source Code Pro', monospace; - letter-spacing: -0.01em; - font-size: 0.8em; - background: #f2f2f2; - padding: 3px 6px; -} - -// Code blocks -pre code { - padding: 0; - background: none; - font-size: 13px; - white-space: pre; - word-break: break-all; - word-wrap: break-word; - overflow: auto; -} - -.highlight { - background: $color00; - border-radius: 3px; - line-height: 20px; - padding: 0; - margin: 0; - font-family: 'Menlo', 'Source Code Pro', monospace; - letter-spacing: -0.01em; - - pre code { - color: $color01; - letter-spacing: -0.01em; - } - - .c { color: $color02; } - .g { color: $color01; } - .k { color: $color03; } - .l { color: $color01; } - .n { color: $color01; } - .o { color: $color03; } - .p { color: $color01; } - .x { color: $color04; } - .cm { color: $color02; } - .cp { color: $color03; } - .c1 { color: $color02; } - .cs { color: $color03; } - .gd { color: $color05; } - .ge { color: $color01; font-style: italic; } - .gr { color: $color06; } - .gh { color: $color04; } - .gi { color: $color03; } - .go { color: $color01; } - .gp { color: $color01; } - .gs { color: $color01; font-weight: bold; } - .gu { color: $color04; } - .gt { color: $color01; } - .kc { color: $color04; } - .kd { color: $color07; } - .kn { color: $color03; } - .kp { color: $color03; } - .kr { color: $color07; } - .kt { color: $color06; } - .ld { color: $color01; } - .m { color: $color05; } - .s { color: $color05; } - .na { color: $color01; } - .nb { color: $color08; } - .nc { color: $color07; } - .no { color: $color04; } - .nd { color: $color07; } - .ni { color: $color04; } - .ne { color: $color04; } - .nf { color: $color07; } - .nl { color: $color01; } - .nn { color: $color01; } - .nx { color: $color01; } - .py { color: $color01; } - .nt { color: $color07; } - .nv { color: $color07; } - .ow { color: $color03; } - .w { color: $color01; } - .mf { color: $color05; } - .mh { color: $color05; } - .mi { color: $color05; } - .mo { color: $color05; } - .sb { color: $color02; } - .sc { color: $color05; } - .sd { color: $color01; } - .se { color: $color04; } - .sh { color: $color01; } - .si { color: $color05; } - .sx { color: $color05; } - .sr { color: $color06; } - .s1 { color: #37b24d; } - .s2 { color: #37b24d; } - .ss { color: $color05; } - .bp { color: $color07; } - .vc { color: $color07; } - .vg { color: $color07; } - .vi { color: $color07; } - .il { color: $color05; } - .dl { color: #37b24d; } - .nx { color: $color04; } -} diff --git a/docs/_sass/sass/base/_all.sass b/docs/_sass/sass/base/_all.sass deleted file mode 100644 index e913d6ba39..0000000000 --- a/docs/_sass/sass/base/_all.sass +++ /dev/null @@ -1,5 +0,0 @@ -@charset "utf-8" - -@import "minireset.sass" -@import "generic.sass" -@import "helpers.sass" diff --git a/docs/_sass/sass/base/generic.sass b/docs/_sass/sass/base/generic.sass deleted file mode 100644 index 31eedfe9b5..0000000000 --- a/docs/_sass/sass/base/generic.sass +++ /dev/null @@ -1,142 +0,0 @@ -$body-background-color: $scheme-main !default -$body-size: 16px !default -$body-min-width: 300px !default -$body-rendering: optimizeLegibility !default -$body-family: $family-primary !default -$body-overflow-x: hidden !default -$body-overflow-y: scroll !default - -$body-color: $text !default -$body-font-size: 1em !default -$body-weight: $weight-normal !default -$body-line-height: 1.5 !default - -$code-family: $family-code !default -$code-padding: 0.25em 0.5em 0.25em !default -$code-weight: normal !default -$code-size: 0.875em !default - -$small-font-size: 0.875em !default - -$hr-background-color: $background !default -$hr-height: 2px !default -$hr-margin: 1.5rem 0 !default - -$strong-color: $text-strong !default -$strong-weight: $weight-bold !default - -$pre-font-size: 0.875em !default -$pre-padding: 1.25rem 1.5rem !default -$pre-code-font-size: 1em !default - -html - background-color: $body-background-color - font-size: $body-size - -moz-osx-font-smoothing: grayscale - -webkit-font-smoothing: antialiased - min-width: $body-min-width - overflow-x: $body-overflow-x - overflow-y: $body-overflow-y - text-rendering: $body-rendering - text-size-adjust: 100% - -article, -aside, -figure, -footer, -header, -hgroup, -section - display: block - -body, -button, -input, -select, -textarea - font-family: $body-family - -code, -pre - -moz-osx-font-smoothing: auto - -webkit-font-smoothing: auto - font-family: $code-family - -body - color: $body-color - font-size: $body-font-size - font-weight: $body-weight - line-height: $body-line-height - -// Inline - -a - color: $link - cursor: pointer - text-decoration: none - strong - color: currentColor - &:hover - color: $link-hover - -code - background-color: $code-background - color: $code - font-size: $code-size - font-weight: $code-weight - padding: $code-padding - -hr - background-color: $hr-background-color - border: none - display: block - height: $hr-height - margin: $hr-margin - -img - height: auto - max-width: 100% - -input[type="checkbox"], -input[type="radio"] - vertical-align: baseline - -small - font-size: $small-font-size - -span - font-style: inherit - font-weight: inherit - -strong - color: $strong-color - font-weight: $strong-weight - -// Block - -fieldset - border: none - -pre - +overflow-touch - background-color: $pre-background - color: $pre - font-size: $pre-font-size - overflow-x: auto - padding: $pre-padding - white-space: pre - word-wrap: normal - code - background-color: transparent - color: currentColor - font-size: $pre-code-font-size - padding: 0 - -table - td, - th - vertical-align: top - &:not([align]) - text-align: left - th - color: $text-strong diff --git a/docs/_sass/sass/base/helpers.sass b/docs/_sass/sass/base/helpers.sass deleted file mode 100644 index bbb489dddc..0000000000 --- a/docs/_sass/sass/base/helpers.sass +++ /dev/null @@ -1,281 +0,0 @@ -// Float - -.is-clearfix - +clearfix - -.is-pulled-left - float: left !important - -.is-pulled-right - float: right !important - -// Overflow - -.is-clipped - overflow: hidden !important - -// Overlay - -.is-overlay - @extend %overlay - -// Typography - -=typography-size($target:'') - @each $size in $sizes - $i: index($sizes, $size) - .is-size-#{$i}#{if($target == '', '', '-' + $target)} - font-size: $size !important - -+typography-size() - -+mobile - +typography-size('mobile') - -+tablet - +typography-size('tablet') - -+touch - +typography-size('touch') - -+desktop - +typography-size('desktop') - -+widescreen - +typography-size('widescreen') - -+fullhd - +typography-size('fullhd') - -$alignments: ('centered': 'center', 'justified': 'justify', 'left': 'left', 'right': 'right') - -@each $alignment, $text-align in $alignments - .has-text-#{$alignment} - text-align: #{$text-align} !important - -@each $alignment, $text-align in $alignments - +mobile - .has-text-#{$alignment}-mobile - text-align: #{$text-align} !important - +tablet - .has-text-#{$alignment}-tablet - text-align: #{$text-align} !important - +tablet-only - .has-text-#{$alignment}-tablet-only - text-align: #{$text-align} !important - +touch - .has-text-#{$alignment}-touch - text-align: #{$text-align} !important - +desktop - .has-text-#{$alignment}-desktop - text-align: #{$text-align} !important - +desktop-only - .has-text-#{$alignment}-desktop-only - text-align: #{$text-align} !important - +widescreen - .has-text-#{$alignment}-widescreen - text-align: #{$text-align} !important - +widescreen-only - .has-text-#{$alignment}-widescreen-only - text-align: #{$text-align} !important - +fullhd - .has-text-#{$alignment}-fullhd - text-align: #{$text-align} !important - -.is-capitalized - text-transform: capitalize !important - -.is-lowercase - text-transform: lowercase !important - -.is-uppercase - text-transform: uppercase !important - -.is-italic - font-style: italic !important - -@each $name, $pair in $colors - $color: nth($pair, 1) - .has-text-#{$name} - color: $color !important - a.has-text-#{$name} - &:hover, - &:focus - color: darken($color, 10%) !important - .has-background-#{$name} - background-color: $color !important - -@each $name, $shade in $shades - .has-text-#{$name} - color: $shade !important - .has-background-#{$name} - background-color: $shade !important - -.has-text-weight-light - font-weight: $weight-light !important -.has-text-weight-normal - font-weight: $weight-normal !important -.has-text-weight-medium - font-weight: $weight-medium !important -.has-text-weight-semibold - font-weight: $weight-semibold !important -.has-text-weight-bold - font-weight: $weight-bold !important - -.is-family-primary - font-family: $family-primary !important - -.is-family-secondary - font-family: $family-secondary !important - -.is-family-sans-serif - font-family: $family-sans-serif !important - -.is-family-monospace - font-family: $family-monospace !important - -.is-family-code - font-family: $family-code !important - -// Visibility - -$displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex' - -@each $display in $displays - .is-#{$display} - display: #{$display} !important - +mobile - .is-#{$display}-mobile - display: #{$display} !important - +tablet - .is-#{$display}-tablet - display: #{$display} !important - +tablet-only - .is-#{$display}-tablet-only - display: #{$display} !important - +touch - .is-#{$display}-touch - display: #{$display} !important - +desktop - .is-#{$display}-desktop - display: #{$display} !important - +desktop-only - .is-#{$display}-desktop-only - display: #{$display} !important - +widescreen - .is-#{$display}-widescreen - display: #{$display} !important - +widescreen-only - .is-#{$display}-widescreen-only - display: #{$display} !important - +fullhd - .is-#{$display}-fullhd - display: #{$display} !important - -.is-hidden - display: none !important - -.is-sr-only - border: none !important - clip: rect(0, 0, 0, 0) !important - height: 0.01em !important - overflow: hidden !important - padding: 0 !important - position: absolute !important - white-space: nowrap !important - width: 0.01em !important - -+mobile - .is-hidden-mobile - display: none !important - -+tablet - .is-hidden-tablet - display: none !important - -+tablet-only - .is-hidden-tablet-only - display: none !important - -+touch - .is-hidden-touch - display: none !important - -+desktop - .is-hidden-desktop - display: none !important - -+desktop-only - .is-hidden-desktop-only - display: none !important - -+widescreen - .is-hidden-widescreen - display: none !important - -+widescreen-only - .is-hidden-widescreen-only - display: none !important - -+fullhd - .is-hidden-fullhd - display: none !important - -.is-invisible - visibility: hidden !important - -+mobile - .is-invisible-mobile - visibility: hidden !important - -+tablet - .is-invisible-tablet - visibility: hidden !important - -+tablet-only - .is-invisible-tablet-only - visibility: hidden !important - -+touch - .is-invisible-touch - visibility: hidden !important - -+desktop - .is-invisible-desktop - visibility: hidden !important - -+desktop-only - .is-invisible-desktop-only - visibility: hidden !important - -+widescreen - .is-invisible-widescreen - visibility: hidden !important - -+widescreen-only - .is-invisible-widescreen-only - visibility: hidden !important - -+fullhd - .is-invisible-fullhd - visibility: hidden !important - -// Other - -.is-marginless - margin: 0 !important - -.is-paddingless - padding: 0 !important - -.is-radiusless - border-radius: 0 !important - -.is-shadowless - box-shadow: none !important - -.is-unselectable - @extend %unselectable - -.is-relative - position: relative !important diff --git a/docs/_sass/sass/base/minireset.sass b/docs/_sass/sass/base/minireset.sass deleted file mode 100644 index c5657ebdd4..0000000000 --- a/docs/_sass/sass/base/minireset.sass +++ /dev/null @@ -1,79 +0,0 @@ -/*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */ -// Blocks -html, -body, -p, -ol, -ul, -li, -dl, -dt, -dd, -blockquote, -figure, -fieldset, -legend, -textarea, -pre, -iframe, -hr, -h1, -h2, -h3, -h4, -h5, -h6 - margin: 0 - padding: 0 - -// Headings -h1, -h2, -h3, -h4, -h5, -h6 - font-size: 100% - font-weight: normal - -// List -ul - list-style: none - -// Form -button, -input, -select, -textarea - margin: 0 - -// Box sizing -html - box-sizing: border-box - -* - &, - &::before, - &::after - box-sizing: inherit - -// Media -img, -video - height: auto - max-width: 100% - -// Iframe -iframe - border: 0 - -// Table -table - border-collapse: collapse - border-spacing: 0 - -td, -th - padding: 0 - &:not([align]) - text-align: left diff --git a/docs/_sass/sass/components/_all.sass b/docs/_sass/sass/components/_all.sass deleted file mode 100644 index 88fd45c5a6..0000000000 --- a/docs/_sass/sass/components/_all.sass +++ /dev/null @@ -1,15 +0,0 @@ -@charset "utf-8" - -@import "breadcrumb.sass" -@import "card.sass" -@import "dropdown.sass" -@import "level.sass" -@import "list.sass" -@import "media.sass" -@import "menu.sass" -@import "message.sass" -@import "modal.sass" -@import "navbar.sass" -@import "pagination.sass" -@import "panel.sass" -@import "tabs.sass" diff --git a/docs/_sass/sass/components/breadcrumb.sass b/docs/_sass/sass/components/breadcrumb.sass deleted file mode 100644 index 3d7f4eb3c5..0000000000 --- a/docs/_sass/sass/components/breadcrumb.sass +++ /dev/null @@ -1,75 +0,0 @@ -$breadcrumb-item-color: $link !default -$breadcrumb-item-hover-color: $link-hover !default -$breadcrumb-item-active-color: $text-strong !default - -$breadcrumb-item-padding-vertical: 0 !default -$breadcrumb-item-padding-horizontal: 0.75em !default - -$breadcrumb-item-separator-color: $border-hover !default - -.breadcrumb - @extend %block - @extend %unselectable - font-size: $size-normal - white-space: nowrap - a - align-items: center - color: $breadcrumb-item-color - display: flex - justify-content: center - padding: $breadcrumb-item-padding-vertical $breadcrumb-item-padding-horizontal - &:hover - color: $breadcrumb-item-hover-color - li - align-items: center - display: flex - &:first-child a - padding-left: 0 - &.is-active - a - color: $breadcrumb-item-active-color - cursor: default - pointer-events: none - & + li::before - color: $breadcrumb-item-separator-color - content: "\0002f" - ul, - ol - align-items: flex-start - display: flex - flex-wrap: wrap - justify-content: flex-start - .icon - &:first-child - margin-right: 0.5em - &:last-child - margin-left: 0.5em - // Alignment - &.is-centered - ol, - ul - justify-content: center - &.is-right - ol, - ul - justify-content: flex-end - // Sizes - &.is-small - font-size: $size-small - &.is-medium - font-size: $size-medium - &.is-large - font-size: $size-large - // Styles - &.has-arrow-separator - li + li::before - content: "\02192" - &.has-bullet-separator - li + li::before - content: "\02022" - &.has-dot-separator - li + li::before - content: "\000b7" - &.has-succeeds-separator - li + li::before - content: "\0227B" diff --git a/docs/_sass/sass/components/card.sass b/docs/_sass/sass/components/card.sass deleted file mode 100644 index 3cdf0008f1..0000000000 --- a/docs/_sass/sass/components/card.sass +++ /dev/null @@ -1,79 +0,0 @@ -$card-color: $text !default -$card-background-color: $scheme-main !default -$card-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default - -$card-header-background-color: transparent !default -$card-header-color: $text-strong !default -$card-header-padding: 0.75rem 1rem !default -$card-header-shadow: 0 0.125em 0.25em rgba($scheme-invert, 0.1) !default -$card-header-weight: $weight-bold !default - -$card-content-background-color: transparent !default -$card-content-padding: 1.5rem !default - -$card-footer-background-color: transparent !default -$card-footer-border-top: 1px solid $border-light !default -$card-footer-padding: 0.75rem !default - -$card-media-margin: $block-spacing !default - -.card - background-color: $card-background-color - box-shadow: $card-shadow - color: $card-color - max-width: 100% - position: relative - -.card-header - background-color: $card-header-background-color - align-items: stretch - box-shadow: $card-header-shadow - display: flex - -.card-header-title - align-items: center - color: $card-header-color - display: flex - flex-grow: 1 - font-weight: $card-header-weight - padding: $card-header-padding - &.is-centered - justify-content: center - -.card-header-icon - align-items: center - cursor: pointer - display: flex - justify-content: center - padding: $card-header-padding - -.card-image - display: block - position: relative - -.card-content - background-color: $card-content-background-color - padding: $card-content-padding - -.card-footer - background-color: $card-footer-background-color - border-top: $card-footer-border-top - align-items: stretch - display: flex - -.card-footer-item - align-items: center - display: flex - flex-basis: 0 - flex-grow: 1 - flex-shrink: 0 - justify-content: center - padding: $card-footer-padding - &:not(:last-child) - border-right: $card-footer-border-top - -// Combinations - -.card - .media:not(:last-child) - margin-bottom: $card-media-margin diff --git a/docs/_sass/sass/components/dropdown.sass b/docs/_sass/sass/components/dropdown.sass deleted file mode 100644 index d62a6d88ef..0000000000 --- a/docs/_sass/sass/components/dropdown.sass +++ /dev/null @@ -1,81 +0,0 @@ -$dropdown-menu-min-width: 12rem !default - -$dropdown-content-background-color: $scheme-main !default -$dropdown-content-arrow: $link !default -$dropdown-content-offset: 4px !default -$dropdown-content-padding-bottom: 0.5rem !default -$dropdown-content-padding-top: 0.5rem !default -$dropdown-content-radius: $radius !default -$dropdown-content-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default -$dropdown-content-z: 20 !default - -$dropdown-item-color: $text !default -$dropdown-item-hover-color: $scheme-invert !default -$dropdown-item-hover-background-color: $background !default -$dropdown-item-active-color: $link-invert !default -$dropdown-item-active-background-color: $link !default - -$dropdown-divider-background-color: $border-light !default - -.dropdown - display: inline-flex - position: relative - vertical-align: top - &.is-active, - &.is-hoverable:hover - .dropdown-menu - display: block - &.is-right - .dropdown-menu - left: auto - right: 0 - &.is-up - .dropdown-menu - bottom: 100% - padding-bottom: $dropdown-content-offset - padding-top: initial - top: auto - -.dropdown-menu - display: none - left: 0 - min-width: $dropdown-menu-min-width - padding-top: $dropdown-content-offset - position: absolute - top: 100% - z-index: $dropdown-content-z - -.dropdown-content - background-color: $dropdown-content-background-color - border-radius: $dropdown-content-radius - box-shadow: $dropdown-content-shadow - padding-bottom: $dropdown-content-padding-bottom - padding-top: $dropdown-content-padding-top - -.dropdown-item - color: $dropdown-item-color - display: block - font-size: 0.875rem - line-height: 1.5 - padding: 0.375rem 1rem - position: relative - -a.dropdown-item, -button.dropdown-item - padding-right: 3rem - text-align: left - white-space: nowrap - width: 100% - &:hover - background-color: $dropdown-item-hover-background-color - color: $dropdown-item-hover-color - &.is-active - background-color: $dropdown-item-active-background-color - color: $dropdown-item-active-color - -.dropdown-divider - background-color: $dropdown-divider-background-color - border: none - display: block - height: 1px - margin: 0.5rem 0 diff --git a/docs/_sass/sass/components/level.sass b/docs/_sass/sass/components/level.sass deleted file mode 100644 index 608f291e75..0000000000 --- a/docs/_sass/sass/components/level.sass +++ /dev/null @@ -1,77 +0,0 @@ -$level-item-spacing: ($block-spacing / 2) !default - -.level - @extend %block - align-items: center - justify-content: space-between - code - border-radius: $radius - img - display: inline-block - vertical-align: top - // Modifiers - &.is-mobile - display: flex - .level-left, - .level-right - display: flex - .level-left + .level-right - margin-top: 0 - .level-item - &:not(:last-child) - margin-bottom: 0 - margin-right: $level-item-spacing - &:not(.is-narrow) - flex-grow: 1 - // Responsiveness - +tablet - display: flex - & > .level-item - &:not(.is-narrow) - flex-grow: 1 - -.level-item - align-items: center - display: flex - flex-basis: auto - flex-grow: 0 - flex-shrink: 0 - justify-content: center - .title, - .subtitle - margin-bottom: 0 - // Responsiveness - +mobile - &:not(:last-child) - margin-bottom: $level-item-spacing - -.level-left, -.level-right - flex-basis: auto - flex-grow: 0 - flex-shrink: 0 - .level-item - // Modifiers - &.is-flexible - flex-grow: 1 - // Responsiveness - +tablet - &:not(:last-child) - margin-right: $level-item-spacing - -.level-left - align-items: center - justify-content: flex-start - // Responsiveness - +mobile - & + .level-right - margin-top: 1.5rem - +tablet - display: flex - -.level-right - align-items: center - justify-content: flex-end - // Responsiveness - +tablet - display: flex diff --git a/docs/_sass/sass/components/list.sass b/docs/_sass/sass/components/list.sass deleted file mode 100644 index bc99428a9a..0000000000 --- a/docs/_sass/sass/components/list.sass +++ /dev/null @@ -1,39 +0,0 @@ -$list-background-color: $scheme-main !default -$list-shadow: 0 2px 3px rgba($scheme-invert, 0.1), 0 0 0 1px rgba($scheme-invert, 0.1) !default -$list-radius: $radius !default - -$list-item-border: 1px solid $border !default -$list-item-color: $text !default -$list-item-active-background-color: $link !default -$list-item-active-color: $link-invert !default -$list-item-hover-background-color: $background !default - -.list - @extend %block - background-color: $list-background-color - border-radius: $list-radius - box-shadow: $list-shadow - // &.is-hoverable > .list-item:hover:not(.is-active) - // background-color: $list-item-hover-background-color - // cursor: pointer - -.list-item - display: block - padding: 0.5em 1em - &:not(a) - color: $list-item-color - &:first-child - border-top-left-radius: $list-radius - border-top-right-radius: $list-radius - &:last-child - border-bottom-left-radius: $list-radius - border-bottom-right-radius: $list-radius - &:not(:last-child) - border-bottom: $list-item-border - &.is-active - background-color: $list-item-active-background-color - color: $list-item-active-color - -a.list-item - background-color: $list-item-hover-background-color - cursor: pointer diff --git a/docs/_sass/sass/components/media.sass b/docs/_sass/sass/components/media.sass deleted file mode 100644 index 65939fca13..0000000000 --- a/docs/_sass/sass/components/media.sass +++ /dev/null @@ -1,50 +0,0 @@ -$media-border-color: rgba($border, 0.5) !default - -.media - align-items: flex-start - display: flex - text-align: left - .content:not(:last-child) - margin-bottom: 0.75rem - .media - border-top: 1px solid $media-border-color - display: flex - padding-top: 0.75rem - .content:not(:last-child), - .control:not(:last-child) - margin-bottom: 0.5rem - .media - padding-top: 0.5rem - & + .media - margin-top: 0.5rem - & + .media - border-top: 1px solid $media-border-color - margin-top: 1rem - padding-top: 1rem - // Sizes - &.is-large - & + .media - margin-top: 1.5rem - padding-top: 1.5rem - -.media-left, -.media-right - flex-basis: auto - flex-grow: 0 - flex-shrink: 0 - -.media-left - margin-right: 1rem - -.media-right - margin-left: 1rem - -.media-content - flex-basis: auto - flex-grow: 1 - flex-shrink: 1 - text-align: left - -+mobile - .media-content - overflow-x: auto diff --git a/docs/_sass/sass/components/menu.sass b/docs/_sass/sass/components/menu.sass deleted file mode 100644 index 3de7e18db0..0000000000 --- a/docs/_sass/sass/components/menu.sass +++ /dev/null @@ -1,57 +0,0 @@ -$menu-item-color: $text !default -$menu-item-radius: $radius-small !default -$menu-item-hover-color: $text-strong !default -$menu-item-hover-background-color: $background !default -$menu-item-active-color: $link-invert !default -$menu-item-active-background-color: $link !default - -$menu-list-border-left: 1px solid $border !default -$menu-list-line-height: 1.25 !default -$menu-list-link-padding: 0.5em 0.75em !default -$menu-nested-list-margin: 0.75em !default -$menu-nested-list-padding-left: 0.75em !default - -$menu-label-color: $text-light !default -$menu-label-font-size: 0.75em !default -$menu-label-letter-spacing: 0.1em !default -$menu-label-spacing: 1em !default - -.menu - font-size: $size-normal - // Sizes - &.is-small - font-size: $size-small - &.is-medium - font-size: $size-medium - &.is-large - font-size: $size-large - -.menu-list - line-height: $menu-list-line-height - a - border-radius: $menu-item-radius - color: $menu-item-color - display: block - padding: $menu-list-link-padding - &:hover - background-color: $menu-item-hover-background-color - color: $menu-item-hover-color - // Modifiers - &.is-active - background-color: $menu-item-active-background-color - color: $menu-item-active-color - li - ul - border-left: $menu-list-border-left - margin: $menu-nested-list-margin - padding-left: $menu-nested-list-padding-left - -.menu-label - color: $menu-label-color - font-size: $menu-label-font-size - letter-spacing: $menu-label-letter-spacing - text-transform: uppercase - &:not(:first-child) - margin-top: $menu-label-spacing - &:not(:last-child) - margin-bottom: $menu-label-spacing diff --git a/docs/_sass/sass/components/message.sass b/docs/_sass/sass/components/message.sass deleted file mode 100644 index 89e4cc9a84..0000000000 --- a/docs/_sass/sass/components/message.sass +++ /dev/null @@ -1,99 +0,0 @@ -$message-background-color: $background !default -$message-radius: $radius !default - -$message-header-background-color: $text !default -$message-header-color: $text-invert !default -$message-header-weight: $weight-bold !default -$message-header-padding: 0.75em 1em !default -$message-header-radius: $radius !default - -$message-body-border-color: $border !default -$message-body-border-width: 0 0 0 4px !default -$message-body-color: $text !default -$message-body-padding: 1.25em 1.5em !default -$message-body-radius: $radius !default - -$message-body-pre-background-color: $scheme-main !default -$message-body-pre-code-background-color: transparent !default - -$message-header-body-border-width: 0 !default -$message-colors: $colors !default - -.message - @extend %block - background-color: $message-background-color - border-radius: $message-radius - font-size: $size-normal - strong - color: currentColor - a:not(.button):not(.tag):not(.dropdown-item) - color: currentColor - text-decoration: underline - // Sizes - &.is-small - font-size: $size-small - &.is-medium - font-size: $size-medium - &.is-large - font-size: $size-large - // Colors - @each $name, $components in $message-colors - $color: nth($components, 1) - $color-invert: nth($components, 2) - $color-light: null - $color-dark: null - - @if length($components) >= 3 - $color-light: nth($components, 3) - @if length($components) >= 4 - $color-dark: nth($components, 4) - @else - $color-luminance: colorLuminance($color) - $darken-percentage: $color-luminance * 70% - $desaturate-percentage: $color-luminance * 30% - $color-dark: desaturate(darken($color, $darken-percentage), $desaturate-percentage) - @else - $color-lightning: max((100% - lightness($color)) - 2%, 0%) - $color-light: lighten($color, $color-lightning) - - &.is-#{$name} - background-color: $color-light - .message-header - background-color: $color - color: $color-invert - .message-body - border-color: $color - color: $color-dark - -.message-header - align-items: center - background-color: $message-header-background-color - border-radius: $message-header-radius $message-header-radius 0 0 - color: $message-header-color - display: flex - font-weight: $message-header-weight - justify-content: space-between - line-height: 1.25 - padding: $message-header-padding - position: relative - .delete - flex-grow: 0 - flex-shrink: 0 - margin-left: 0.75em - & + .message-body - border-width: $message-header-body-border-width - border-top-left-radius: 0 - border-top-right-radius: 0 - -.message-body - border-color: $message-body-border-color - border-radius: $message-body-radius - border-style: solid - border-width: $message-body-border-width - color: $message-body-color - padding: $message-body-padding - code, - pre - background-color: $message-body-pre-background-color - pre code - background-color: $message-body-pre-code-background-color diff --git a/docs/_sass/sass/components/modal.sass b/docs/_sass/sass/components/modal.sass deleted file mode 100644 index c3a5a0c6c1..0000000000 --- a/docs/_sass/sass/components/modal.sass +++ /dev/null @@ -1,113 +0,0 @@ -$modal-z: 40 !default - -$modal-background-background-color: rgba($scheme-invert, 0.86) !default - -$modal-content-width: 640px !default -$modal-content-margin-mobile: 20px !default -$modal-content-spacing-mobile: 160px !default -$modal-content-spacing-tablet: 40px !default - -$modal-close-dimensions: 40px !default -$modal-close-right: 20px !default -$modal-close-top: 20px !default - -$modal-card-spacing: 40px !default - -$modal-card-head-background-color: $background !default -$modal-card-head-border-bottom: 1px solid $border !default -$modal-card-head-padding: 20px !default -$modal-card-head-radius: $radius-large !default - -$modal-card-title-color: $text-strong !default -$modal-card-title-line-height: 1 !default -$modal-card-title-size: $size-4 !default - -$modal-card-foot-radius: $radius-large !default -$modal-card-foot-border-top: 1px solid $border !default - -$modal-card-body-background-color: $scheme-main !default -$modal-card-body-padding: 20px !default - -.modal - @extend %overlay - align-items: center - display: none - flex-direction: column - justify-content: center - overflow: hidden - position: fixed - z-index: $modal-z - // Modifiers - &.is-active - display: flex - -.modal-background - @extend %overlay - background-color: $modal-background-background-color - -.modal-content, -.modal-card - margin: 0 $modal-content-margin-mobile - max-height: calc(100vh - #{$modal-content-spacing-mobile}) - overflow: auto - position: relative - width: 100% - // Responsiveness - +tablet - margin: 0 auto - max-height: calc(100vh - #{$modal-content-spacing-tablet}) - width: $modal-content-width - -.modal-close - @extend %delete - background: none - height: $modal-close-dimensions - position: fixed - right: $modal-close-right - top: $modal-close-top - width: $modal-close-dimensions - -.modal-card - display: flex - flex-direction: column - max-height: calc(100vh - #{$modal-card-spacing}) - overflow: hidden - -ms-overflow-y: visible - -.modal-card-head, -.modal-card-foot - align-items: center - background-color: $modal-card-head-background-color - display: flex - flex-shrink: 0 - justify-content: flex-start - padding: $modal-card-head-padding - position: relative - -.modal-card-head - border-bottom: $modal-card-head-border-bottom - border-top-left-radius: $modal-card-head-radius - border-top-right-radius: $modal-card-head-radius - -.modal-card-title - color: $modal-card-title-color - flex-grow: 1 - flex-shrink: 0 - font-size: $modal-card-title-size - line-height: $modal-card-title-line-height - -.modal-card-foot - border-bottom-left-radius: $modal-card-foot-radius - border-bottom-right-radius: $modal-card-foot-radius - border-top: $modal-card-foot-border-top - .button - &:not(:last-child) - margin-right: 0.5em - -.modal-card-body - +overflow-touch - background-color: $modal-card-body-background-color - flex-grow: 1 - flex-shrink: 1 - overflow: auto - padding: $modal-card-body-padding diff --git a/docs/_sass/sass/components/navbar.sass b/docs/_sass/sass/components/navbar.sass deleted file mode 100644 index 664558f726..0000000000 --- a/docs/_sass/sass/components/navbar.sass +++ /dev/null @@ -1,443 +0,0 @@ -$navbar-background-color: $scheme-main !default -$navbar-box-shadow-size: 0 2px 0 0 !default -$navbar-box-shadow-color: $background !default -$navbar-height: 3.25rem !default -$navbar-padding-vertical: 1rem !default -$navbar-padding-horizontal: 2rem !default -$navbar-z: 30 !default -$navbar-fixed-z: 30 !default - -$navbar-item-color: $text !default -$navbar-item-hover-color: $link !default -$navbar-item-hover-background-color: $scheme-main-bis !default -$navbar-item-active-color: $scheme-invert !default -$navbar-item-active-background-color: transparent !default -$navbar-item-img-max-height: 1.75rem !default - -$navbar-burger-color: $navbar-item-color !default - -$navbar-tab-hover-background-color: transparent !default -$navbar-tab-hover-border-bottom-color: $link !default -$navbar-tab-active-color: $link !default -$navbar-tab-active-background-color: transparent !default -$navbar-tab-active-border-bottom-color: $link !default -$navbar-tab-active-border-bottom-style: solid !default -$navbar-tab-active-border-bottom-width: 3px !default - -$navbar-dropdown-background-color: $scheme-main !default -$navbar-dropdown-border-top: 2px solid $border !default -$navbar-dropdown-offset: -4px !default -$navbar-dropdown-arrow: $link !default -$navbar-dropdown-radius: $radius-large !default -$navbar-dropdown-z: 20 !default - -$navbar-dropdown-boxed-radius: $radius-large !default -$navbar-dropdown-boxed-shadow: 0 8px 8px rgba($scheme-invert, 0.1), 0 0 0 1px rgba($scheme-invert, 0.1) !default - -$navbar-dropdown-item-hover-color: $scheme-invert !default -$navbar-dropdown-item-hover-background-color: $background !default -$navbar-dropdown-item-active-color: $link !default -$navbar-dropdown-item-active-background-color: $background !default - -$navbar-divider-background-color: $background !default -$navbar-divider-height: 2px !default - -$navbar-bottom-box-shadow-size: 0 -2px 0 0 !default - -$navbar-breakpoint: $desktop !default - -=navbar-fixed - left: 0 - position: fixed - right: 0 - z-index: $navbar-fixed-z - -.navbar - background-color: $navbar-background-color - min-height: $navbar-height - position: relative - z-index: $navbar-z - @each $name, $pair in $colors - $color: nth($pair, 1) - $color-invert: nth($pair, 2) - &.is-#{$name} - background-color: $color - color: $color-invert - .navbar-brand - & > .navbar-item, - .navbar-link - color: $color-invert - & > a.navbar-item, - .navbar-link - &:focus, - &:hover, - &.is-active - background-color: darken($color, 5%) - color: $color-invert - .navbar-link - &::after - border-color: $color-invert - .navbar-burger - color: $color-invert - +from($navbar-breakpoint) - .navbar-start, - .navbar-end - & > .navbar-item, - .navbar-link - color: $color-invert - & > a.navbar-item, - .navbar-link - &:focus, - &:hover, - &.is-active - background-color: darken($color, 5%) - color: $color-invert - .navbar-link - &::after - border-color: $color-invert - .navbar-item.has-dropdown:focus .navbar-link, - .navbar-item.has-dropdown:hover .navbar-link, - .navbar-item.has-dropdown.is-active .navbar-link - background-color: darken($color, 5%) - color: $color-invert - .navbar-dropdown - a.navbar-item - &.is-active - background-color: $color - color: $color-invert - & > .container - align-items: stretch - display: flex - min-height: $navbar-height - width: 100% - &.has-shadow - box-shadow: $navbar-box-shadow-size $navbar-box-shadow-color - &.is-fixed-bottom, - &.is-fixed-top - +navbar-fixed - &.is-fixed-bottom - bottom: 0 - &.has-shadow - box-shadow: $navbar-bottom-box-shadow-size $navbar-box-shadow-color - &.is-fixed-top - top: 0 - -html, -body - &.has-navbar-fixed-top - padding-top: $navbar-height - &.has-navbar-fixed-bottom - padding-bottom: $navbar-height - -.navbar-brand, -.navbar-tabs - align-items: stretch - display: flex - flex-shrink: 0 - min-height: $navbar-height - -.navbar-brand - a.navbar-item - &:focus, - &:hover - background-color: transparent - -.navbar-tabs - +overflow-touch - max-width: 100vw - overflow-x: auto - overflow-y: hidden - -.navbar-burger - color: $navbar-burger-color - +hamburger($navbar-height) - margin-left: auto - -.navbar-menu - display: none - -.navbar-item, -.navbar-link - color: $navbar-item-color - display: block - line-height: 1.5 - padding: 0.5rem 0.75rem - position: relative - .icon - &:only-child - margin-left: -0.25rem - margin-right: -0.25rem - -a.navbar-item, -.navbar-link - cursor: pointer - &:focus, - &:focus-within, - &:hover, - &.is-active - background-color: $navbar-item-hover-background-color - color: $navbar-item-hover-color - -.navbar-item - display: block - flex-grow: 0 - flex-shrink: 0 - img - max-height: $navbar-item-img-max-height - &.has-dropdown - padding: 0 - &.is-expanded - flex-grow: 1 - flex-shrink: 1 - &.is-tab - border-bottom: 1px solid transparent - min-height: $navbar-height - padding-bottom: calc(0.5rem - 1px) - &:focus, - &:hover - background-color: $navbar-tab-hover-background-color - border-bottom-color: $navbar-tab-hover-border-bottom-color - &.is-active - background-color: $navbar-tab-active-background-color - border-bottom-color: $navbar-tab-active-border-bottom-color - border-bottom-style: $navbar-tab-active-border-bottom-style - border-bottom-width: $navbar-tab-active-border-bottom-width - color: $navbar-tab-active-color - padding-bottom: calc(0.5rem - #{$navbar-tab-active-border-bottom-width}) - -.navbar-content - flex-grow: 1 - flex-shrink: 1 - -.navbar-link:not(.is-arrowless) - padding-right: 2.5em - &::after - @extend %arrow - border-color: $navbar-dropdown-arrow - margin-top: -0.375em - right: 1.125em - -.navbar-dropdown - font-size: 0.875rem - padding-bottom: 0.5rem - padding-top: 0.5rem - .navbar-item - padding-left: 1.5rem - padding-right: 1.5rem - -.navbar-divider - background-color: $navbar-divider-background-color - border: none - display: none - height: $navbar-divider-height - margin: 0.5rem 0 - -+until($navbar-breakpoint) - .navbar > .container - display: block - .navbar-brand, - .navbar-tabs - .navbar-item - align-items: center - display: flex - .navbar-link - &::after - display: none - .navbar-menu - background-color: $navbar-background-color - box-shadow: 0 8px 16px rgba($scheme-invert, 0.1) - padding: 0.5rem 0 - &.is-active - display: block - // Fixed navbar - .navbar - &.is-fixed-bottom-touch, - &.is-fixed-top-touch - +navbar-fixed - &.is-fixed-bottom-touch - bottom: 0 - &.has-shadow - box-shadow: 0 -2px 3px rgba($scheme-invert, 0.1) - &.is-fixed-top-touch - top: 0 - &.is-fixed-top, - &.is-fixed-top-touch - .navbar-menu - +overflow-touch - max-height: calc(100vh - #{$navbar-height}) - overflow: auto - html, - body - &.has-navbar-fixed-top-touch - padding-top: $navbar-height - &.has-navbar-fixed-bottom-touch - padding-bottom: $navbar-height - -+from($navbar-breakpoint) - .navbar, - .navbar-menu, - .navbar-start, - .navbar-end - align-items: stretch - display: flex - .navbar - min-height: $navbar-height - &.is-spaced - padding: $navbar-padding-vertical $navbar-padding-horizontal - .navbar-start, - .navbar-end - align-items: center - a.navbar-item, - .navbar-link - border-radius: $radius - &.is-transparent - a.navbar-item, - .navbar-link - &:focus, - &:hover, - &.is-active - background-color: transparent !important - .navbar-item.has-dropdown - &.is-active, - &.is-hoverable:focus, - &.is-hoverable:focus-within, - &.is-hoverable:hover - .navbar-link - background-color: transparent !important - .navbar-dropdown - a.navbar-item - &:focus, - &:hover - background-color: $navbar-dropdown-item-hover-background-color - color: $navbar-dropdown-item-hover-color - &.is-active - background-color: $navbar-dropdown-item-active-background-color - color: $navbar-dropdown-item-active-color - .navbar-burger - display: none - .navbar-item, - .navbar-link - align-items: center - display: flex - .navbar-item - display: flex - &.has-dropdown - align-items: stretch - &.has-dropdown-up - .navbar-link::after - transform: rotate(135deg) translate(0.25em, -0.25em) - .navbar-dropdown - border-bottom: $navbar-dropdown-border-top - border-radius: $navbar-dropdown-radius $navbar-dropdown-radius 0 0 - border-top: none - bottom: 100% - box-shadow: 0 -8px 8px rgba($scheme-invert, 0.1) - top: auto - &.is-active, - &.is-hoverable:focus, - &.is-hoverable:focus-within, - &.is-hoverable:hover - .navbar-dropdown - display: block - .navbar.is-spaced &, - &.is-boxed - opacity: 1 - pointer-events: auto - transform: translateY(0) - .navbar-menu - flex-grow: 1 - flex-shrink: 0 - .navbar-start - justify-content: flex-start - margin-right: auto - .navbar-end - justify-content: flex-end - margin-left: auto - .navbar-dropdown - background-color: $navbar-dropdown-background-color - border-bottom-left-radius: $navbar-dropdown-radius - border-bottom-right-radius: $navbar-dropdown-radius - border-top: $navbar-dropdown-border-top - box-shadow: 0 8px 8px rgba($scheme-invert, 0.1) - display: none - font-size: 0.875rem - left: 0 - min-width: 100% - position: absolute - top: 100% - z-index: $navbar-dropdown-z - .navbar-item - padding: 0.375rem 1rem - white-space: nowrap - a.navbar-item - padding-right: 3rem - &:focus, - &:hover - background-color: $navbar-dropdown-item-hover-background-color - color: $navbar-dropdown-item-hover-color - &.is-active - background-color: $navbar-dropdown-item-active-background-color - color: $navbar-dropdown-item-active-color - .navbar.is-spaced &, - &.is-boxed - border-radius: $navbar-dropdown-boxed-radius - border-top: none - box-shadow: $navbar-dropdown-boxed-shadow - display: block - opacity: 0 - pointer-events: none - top: calc(100% + (#{$navbar-dropdown-offset})) - transform: translateY(-5px) - transition-duration: $speed - transition-property: opacity, transform - &.is-right - left: auto - right: 0 - .navbar-divider - display: block - .navbar > .container, - .container > .navbar - .navbar-brand - margin-left: -.75rem - .navbar-menu - margin-right: -.75rem - // Fixed navbar - .navbar - &.is-fixed-bottom-desktop, - &.is-fixed-top-desktop - +navbar-fixed - &.is-fixed-bottom-desktop - bottom: 0 - &.has-shadow - box-shadow: 0 -2px 3px rgba($scheme-invert, 0.1) - &.is-fixed-top-desktop - top: 0 - html, - body - &.has-navbar-fixed-top-desktop - padding-top: $navbar-height - &.has-navbar-fixed-bottom-desktop - padding-bottom: $navbar-height - &.has-spaced-navbar-fixed-top - padding-top: $navbar-height + ($navbar-padding-vertical * 2) - &.has-spaced-navbar-fixed-bottom - padding-bottom: $navbar-height + ($navbar-padding-vertical * 2) - // Hover/Active states - a.navbar-item, - .navbar-link - &.is-active - color: $navbar-item-active-color - &.is-active:not(:focus):not(:hover) - background-color: $navbar-item-active-background-color - .navbar-item.has-dropdown - &:focus, - &:hover, - &.is-active - .navbar-link - background-color: $navbar-item-hover-background-color - -// Combination - -.hero - &.is-fullheight-with-navbar - min-height: calc(100vh - #{$navbar-height}) diff --git a/docs/_sass/sass/components/pagination.sass b/docs/_sass/sass/components/pagination.sass deleted file mode 100644 index 822c2e816b..0000000000 --- a/docs/_sass/sass/components/pagination.sass +++ /dev/null @@ -1,150 +0,0 @@ -$pagination-color: $text-strong !default -$pagination-border-color: $border !default -$pagination-margin: -0.25rem !default -$pagination-min-width: $control-height !default - -$pagination-item-font-size: 1em !default -$pagination-item-margin: 0.25rem !default -$pagination-item-padding-left: 0.5em !default -$pagination-item-padding-right: 0.5em !default - -$pagination-hover-color: $link-hover !default -$pagination-hover-border-color: $link-hover-border !default - -$pagination-focus-color: $link-focus !default -$pagination-focus-border-color: $link-focus-border !default - -$pagination-active-color: $link-active !default -$pagination-active-border-color: $link-active-border !default - -$pagination-disabled-color: $text-light !default -$pagination-disabled-background-color: $border !default -$pagination-disabled-border-color: $border !default - -$pagination-current-color: $link-invert !default -$pagination-current-background-color: $link !default -$pagination-current-border-color: $link !default - -$pagination-ellipsis-color: $grey-light !default - -$pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2) - -.pagination - @extend %block - font-size: $size-normal - margin: $pagination-margin - // Sizes - &.is-small - font-size: $size-small - &.is-medium - font-size: $size-medium - &.is-large - font-size: $size-large - &.is-rounded - .pagination-previous, - .pagination-next - padding-left: 1em - padding-right: 1em - border-radius: $radius-rounded - .pagination-link - border-radius: $radius-rounded - -.pagination, -.pagination-list - align-items: center - display: flex - justify-content: center - text-align: center - -.pagination-previous, -.pagination-next, -.pagination-link, -.pagination-ellipsis - @extend %control - @extend %unselectable - font-size: $pagination-item-font-size - justify-content: center - margin: $pagination-item-margin - padding-left: $pagination-item-padding-left - padding-right: $pagination-item-padding-right - text-align: center - -.pagination-previous, -.pagination-next, -.pagination-link - border-color: $pagination-border-color - color: $pagination-color - min-width: $pagination-min-width - &:hover - border-color: $pagination-hover-border-color - color: $pagination-hover-color - &:focus - border-color: $pagination-focus-border-color - &:active - box-shadow: $pagination-shadow-inset - &[disabled] - background-color: $pagination-disabled-background-color - border-color: $pagination-disabled-border-color - box-shadow: none - color: $pagination-disabled-color - opacity: 0.5 - -.pagination-previous, -.pagination-next - padding-left: 0.75em - padding-right: 0.75em - white-space: nowrap - -.pagination-link - &.is-current - background-color: $pagination-current-background-color - border-color: $pagination-current-border-color - color: $pagination-current-color - -.pagination-ellipsis - color: $pagination-ellipsis-color - pointer-events: none - -.pagination-list - flex-wrap: wrap - -+mobile - .pagination - flex-wrap: wrap - .pagination-previous, - .pagination-next - flex-grow: 1 - flex-shrink: 1 - .pagination-list - li - flex-grow: 1 - flex-shrink: 1 - -+tablet - .pagination-list - flex-grow: 1 - flex-shrink: 1 - justify-content: flex-start - order: 1 - .pagination-previous - order: 2 - .pagination-next - order: 3 - .pagination - justify-content: space-between - &.is-centered - .pagination-previous - order: 1 - .pagination-list - justify-content: center - order: 2 - .pagination-next - order: 3 - &.is-right - .pagination-previous - order: 1 - .pagination-next - order: 2 - .pagination-list - justify-content: flex-end - order: 3 diff --git a/docs/_sass/sass/components/panel.sass b/docs/_sass/sass/components/panel.sass deleted file mode 100644 index 3c32be600d..0000000000 --- a/docs/_sass/sass/components/panel.sass +++ /dev/null @@ -1,118 +0,0 @@ -$panel-margin: $block-spacing !default -$panel-item-border: 1px solid $border-light !default -$panel-radius: $radius-large !default -$panel-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default - -$panel-heading-background-color: $border-light !default -$panel-heading-color: $text-strong !default -$panel-heading-line-height: 1.25 !default -$panel-heading-padding: 0.75em 1em !default -$panel-heading-radius: $radius !default -$panel-heading-size: 1.25em !default -$panel-heading-weight: $weight-bold !default - -$panel-tabs-font-size: 0.875em !default -$panel-tab-border-bottom: 1px solid $border !default -$panel-tab-active-border-bottom-color: $link-active-border !default -$panel-tab-active-color: $link-active !default - -$panel-list-item-color: $text !default -$panel-list-item-hover-color: $link !default - -$panel-block-color: $text-strong !default -$panel-block-hover-background-color: $background !default -$panel-block-active-border-left-color: $link !default -$panel-block-active-color: $link-active !default -$panel-block-active-icon-color: $link !default - -$panel-icon-color: $text-light !default - -.panel - border-radius: $panel-radius - box-shadow: $panel-shadow - font-size: $size-normal - &:not(:last-child) - margin-bottom: $panel-margin - // Colors - @each $name, $components in $message-colors - $color: nth($components, 1) - $color-invert: nth($components, 2) - &.is-#{$name} - .panel-heading - background-color: $color - color: $color-invert - .panel-tabs a.is-active - border-bottom-color: $color - .panel-block.is-active .panel-icon - color: $color - -.panel-tabs, -.panel-block - &:not(:last-child) - border-bottom: $panel-item-border - -.panel-heading - background-color: $panel-heading-background-color - border-radius: $panel-radius $panel-radius 0 0 - color: $panel-heading-color - font-size: $panel-heading-size - font-weight: $panel-heading-weight - line-height: $panel-heading-line-height - padding: $panel-heading-padding - -.panel-tabs - align-items: flex-end - display: flex - font-size: $panel-tabs-font-size - justify-content: center - a - border-bottom: $panel-tab-border-bottom - margin-bottom: -1px - padding: 0.5em - // Modifiers - &.is-active - border-bottom-color: $panel-tab-active-border-bottom-color - color: $panel-tab-active-color - -.panel-list - a - color: $panel-list-item-color - &:hover - color: $panel-list-item-hover-color - -.panel-block - align-items: center - color: $panel-block-color - display: flex - justify-content: flex-start - padding: 0.5em 0.75em - input[type="checkbox"] - margin-right: 0.75em - & > .control - flex-grow: 1 - flex-shrink: 1 - width: 100% - &.is-wrapped - flex-wrap: wrap - &.is-active - border-left-color: $panel-block-active-border-left-color - color: $panel-block-active-color - .panel-icon - color: $panel-block-active-icon-color - &:last-child - border-bottom-left-radius: $panel-radius - border-bottom-right-radius: $panel-radius - -a.panel-block, -label.panel-block - cursor: pointer - &:hover - background-color: $panel-block-hover-background-color - -.panel-icon - +fa(14px, 1em) - color: $panel-icon-color - margin-right: 0.75em - .fa - font-size: inherit - line-height: inherit diff --git a/docs/_sass/sass/components/tabs.sass b/docs/_sass/sass/components/tabs.sass deleted file mode 100644 index 8c28c257a5..0000000000 --- a/docs/_sass/sass/components/tabs.sass +++ /dev/null @@ -1,151 +0,0 @@ -$tabs-border-bottom-color: $border !default -$tabs-border-bottom-style: solid !default -$tabs-border-bottom-width: 1px !default -$tabs-link-color: $text !default -$tabs-link-hover-border-bottom-color: $text-strong !default -$tabs-link-hover-color: $text-strong !default -$tabs-link-active-border-bottom-color: $link !default -$tabs-link-active-color: $link !default -$tabs-link-padding: 0.5em 1em !default - -$tabs-boxed-link-radius: $radius !default -$tabs-boxed-link-hover-background-color: $background !default -$tabs-boxed-link-hover-border-bottom-color: $border !default - -$tabs-boxed-link-active-background-color: $scheme-main !default -$tabs-boxed-link-active-border-color: $border !default -$tabs-boxed-link-active-border-bottom-color: transparent !default - -$tabs-toggle-link-border-color: $border !default -$tabs-toggle-link-border-style: solid !default -$tabs-toggle-link-border-width: 1px !default -$tabs-toggle-link-hover-background-color: $background !default -$tabs-toggle-link-hover-border-color: $border-hover !default -$tabs-toggle-link-radius: $radius !default -$tabs-toggle-link-active-background-color: $link !default -$tabs-toggle-link-active-border-color: $link !default -$tabs-toggle-link-active-color: $link-invert !default - -.tabs - @extend %block - +overflow-touch - @extend %unselectable - align-items: stretch - display: flex - font-size: $size-normal - justify-content: space-between - overflow: hidden - overflow-x: auto - white-space: nowrap - a - align-items: center - border-bottom-color: $tabs-border-bottom-color - border-bottom-style: $tabs-border-bottom-style - border-bottom-width: $tabs-border-bottom-width - color: $tabs-link-color - display: flex - justify-content: center - margin-bottom: -#{$tabs-border-bottom-width} - padding: $tabs-link-padding - vertical-align: top - &:hover - border-bottom-color: $tabs-link-hover-border-bottom-color - color: $tabs-link-hover-color - li - display: block - &.is-active - a - border-bottom-color: $tabs-link-active-border-bottom-color - color: $tabs-link-active-color - ul - align-items: center - border-bottom-color: $tabs-border-bottom-color - border-bottom-style: $tabs-border-bottom-style - border-bottom-width: $tabs-border-bottom-width - display: flex - flex-grow: 1 - flex-shrink: 0 - justify-content: flex-start - &.is-left - padding-right: 0.75em - &.is-center - flex: none - justify-content: center - padding-left: 0.75em - padding-right: 0.75em - &.is-right - justify-content: flex-end - padding-left: 0.75em - .icon - &:first-child - margin-right: 0.5em - &:last-child - margin-left: 0.5em - // Alignment - &.is-centered - ul - justify-content: center - &.is-right - ul - justify-content: flex-end - // Styles - &.is-boxed - a - border: 1px solid transparent - border-radius: $tabs-boxed-link-radius $tabs-boxed-link-radius 0 0 - &:hover - background-color: $tabs-boxed-link-hover-background-color - border-bottom-color: $tabs-boxed-link-hover-border-bottom-color - li - &.is-active - a - background-color: $tabs-boxed-link-active-background-color - border-color: $tabs-boxed-link-active-border-color - border-bottom-color: $tabs-boxed-link-active-border-bottom-color !important - &.is-fullwidth - li - flex-grow: 1 - flex-shrink: 0 - &.is-toggle - a - border-color: $tabs-toggle-link-border-color - border-style: $tabs-toggle-link-border-style - border-width: $tabs-toggle-link-border-width - margin-bottom: 0 - position: relative - &:hover - background-color: $tabs-toggle-link-hover-background-color - border-color: $tabs-toggle-link-hover-border-color - z-index: 2 - li - & + li - margin-left: -#{$tabs-toggle-link-border-width} - &:first-child a - border-radius: $tabs-toggle-link-radius 0 0 $tabs-toggle-link-radius - &:last-child a - border-radius: 0 $tabs-toggle-link-radius $tabs-toggle-link-radius 0 - &.is-active - a - background-color: $tabs-toggle-link-active-background-color - border-color: $tabs-toggle-link-active-border-color - color: $tabs-toggle-link-active-color - z-index: 1 - ul - border-bottom: none - &.is-toggle-rounded - li - &:first-child a - border-bottom-left-radius: $radius-rounded - border-top-left-radius: $radius-rounded - padding-left: 1.25em - &:last-child a - border-bottom-right-radius: $radius-rounded - border-top-right-radius: $radius-rounded - padding-right: 1.25em - // Sizes - &.is-small - font-size: $size-small - &.is-medium - font-size: $size-medium - &.is-large - font-size: $size-large diff --git a/docs/_sass/sass/elements/_all.sass b/docs/_sass/sass/elements/_all.sass deleted file mode 100644 index 7490c00d86..0000000000 --- a/docs/_sass/sass/elements/_all.sass +++ /dev/null @@ -1,15 +0,0 @@ -@charset "utf-8" - -@import "box.sass" -@import "button.sass" -@import "container.sass" -@import "content.sass" -@import "icon.sass" -@import "image.sass" -@import "notification.sass" -@import "progress.sass" -@import "table.sass" -@import "tag.sass" -@import "title.sass" - -@import "other.sass" diff --git a/docs/_sass/sass/elements/box.sass b/docs/_sass/sass/elements/box.sass deleted file mode 100644 index 2fd18d4984..0000000000 --- a/docs/_sass/sass/elements/box.sass +++ /dev/null @@ -1,24 +0,0 @@ -$box-color: $text !default -$box-background-color: $scheme-main !default -$box-radius: $radius-large !default -$box-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default -$box-padding: 1.25rem !default - -$box-link-hover-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0 0 1px $link !default -$box-link-active-shadow: inset 0 1px 2px rgba($scheme-invert, 0.2), 0 0 0 1px $link !default - -.box - @extend %block - background-color: $box-background-color - border-radius: $box-radius - box-shadow: $box-shadow - color: $box-color - display: block - padding: $box-padding - -a.box - &:hover, - &:focus - box-shadow: $box-link-hover-shadow - &:active - box-shadow: $box-link-active-shadow diff --git a/docs/_sass/sass/elements/button.sass b/docs/_sass/sass/elements/button.sass deleted file mode 100644 index 22078aef60..0000000000 --- a/docs/_sass/sass/elements/button.sass +++ /dev/null @@ -1,322 +0,0 @@ -$button-color: $text-strong !default -$button-background-color: $scheme-main !default -$button-family: false !default - -$button-border-color: $border !default -$button-border-width: $control-border-width !default - -$button-padding-vertical: calc(0.5em - #{$button-border-width}) !default -$button-padding-horizontal: 1em !default - -$button-hover-color: $link-hover !default -$button-hover-border-color: $link-hover-border !default - -$button-focus-color: $link-focus !default -$button-focus-border-color: $link-focus-border !default -$button-focus-box-shadow-size: 0 0 0 0.125em !default -$button-focus-box-shadow-color: rgba($link, 0.25) !default - -$button-active-color: $link-active !default -$button-active-border-color: $link-active-border !default - -$button-text-color: $text !default -$button-text-hover-background-color: $background !default -$button-text-hover-color: $text-strong !default - -$button-disabled-background-color: $scheme-main !default -$button-disabled-border-color: $border !default -$button-disabled-shadow: none !default -$button-disabled-opacity: 0.5 !default - -$button-static-color: $text-light !default -$button-static-background-color: $scheme-main-ter !default -$button-static-border-color: $border !default - -// The button sizes use mixins so they can be used at different breakpoints -=button-small - border-radius: $radius-small - font-size: $size-small -=button-normal - font-size: $size-normal -=button-medium - font-size: $size-medium -=button-large - font-size: $size-large - -.button - @extend %control - @extend %unselectable - background-color: $button-background-color - border-color: $button-border-color - border-width: $button-border-width - color: $button-color - cursor: pointer - @if $button-family - font-family: $button-family - justify-content: center - padding-bottom: $button-padding-vertical - padding-left: $button-padding-horizontal - padding-right: $button-padding-horizontal - padding-top: $button-padding-vertical - text-align: center - white-space: nowrap - strong - color: inherit - .icon - &, - &.is-small, - &.is-medium, - &.is-large - height: 1.5em - width: 1.5em - &:first-child:not(:last-child) - margin-left: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width}) - margin-right: $button-padding-horizontal / 4 - &:last-child:not(:first-child) - margin-left: $button-padding-horizontal / 4 - margin-right: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width}) - &:first-child:last-child - margin-left: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width}) - margin-right: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width}) - // States - &:hover, - &.is-hovered - border-color: $button-hover-border-color - color: $button-hover-color - &:focus, - &.is-focused - border-color: $button-focus-border-color - color: $button-focus-color - &:not(:active) - box-shadow: $button-focus-box-shadow-size $button-focus-box-shadow-color - &:active, - &.is-active - border-color: $button-active-border-color - color: $button-active-color - // Colors - &.is-text - background-color: transparent - border-color: transparent - color: $button-text-color - text-decoration: underline - &:hover, - &.is-hovered, - &:focus, - &.is-focused - background-color: $button-text-hover-background-color - color: $button-text-hover-color - &:active, - &.is-active - background-color: darken($button-text-hover-background-color, 5%) - color: $button-text-hover-color - &[disabled], - fieldset[disabled] & - background-color: transparent - border-color: transparent - box-shadow: none - @each $name, $pair in $colors - $color: nth($pair, 1) - $color-invert: nth($pair, 2) - &.is-#{$name} - background-color: $color - border-color: transparent - color: $color-invert - &:hover, - &.is-hovered - background-color: darken($color, 2.5%) - border-color: transparent - color: $color-invert - &:focus, - &.is-focused - border-color: transparent - color: $color-invert - &:not(:active) - box-shadow: $button-focus-box-shadow-size rgba($color, 0.25) - &:active, - &.is-active - background-color: darken($color, 5%) - border-color: transparent - color: $color-invert - &[disabled], - fieldset[disabled] & - background-color: $color - border-color: transparent - box-shadow: none - &.is-inverted - background-color: $color-invert - color: $color - &:hover, - &.is-hovered - background-color: darken($color-invert, 5%) - &[disabled], - fieldset[disabled] & - background-color: $color-invert - border-color: transparent - box-shadow: none - color: $color - &.is-loading - &::after - border-color: transparent transparent $color-invert $color-invert !important - &.is-outlined - background-color: transparent - border-color: $color - color: $color - &:hover, - &.is-hovered, - &:focus, - &.is-focused - background-color: $color - border-color: $color - color: $color-invert - &.is-loading - &::after - border-color: transparent transparent $color $color !important - &:hover, - &.is-hovered, - &:focus, - &.is-focused - &::after - border-color: transparent transparent $color-invert $color-invert !important - &[disabled], - fieldset[disabled] & - background-color: transparent - border-color: $color - box-shadow: none - color: $color - &.is-inverted.is-outlined - background-color: transparent - border-color: $color-invert - color: $color-invert - &:hover, - &.is-hovered, - &:focus, - &.is-focused - background-color: $color-invert - color: $color - &.is-loading - &:hover, - &.is-hovered, - &:focus, - &.is-focused - &::after - border-color: transparent transparent $color $color !important - &[disabled], - fieldset[disabled] & - background-color: transparent - border-color: $color-invert - box-shadow: none - color: $color-invert - // If light and dark colors are provided - @if length($pair) >= 4 - $color-light: nth($pair, 3) - $color-dark: nth($pair, 4) - &.is-light - background-color: $color-light - color: $color-dark - &:hover, - &.is-hovered - background-color: darken($color-light, 2.5%) - border-color: transparent - color: $color-dark - &:active, - &.is-active - background-color: darken($color-light, 5%) - border-color: transparent - color: $color-dark - // Sizes - &.is-small - +button-small - &.is-normal - +button-normal - &.is-medium - +button-medium - &.is-large - +button-large - // Modifiers - &[disabled], - fieldset[disabled] & - background-color: $button-disabled-background-color - border-color: $button-disabled-border-color - box-shadow: $button-disabled-shadow - opacity: $button-disabled-opacity - &.is-fullwidth - display: flex - width: 100% - &.is-loading - color: transparent !important - pointer-events: none - &::after - @extend %loader - +center(1em) - position: absolute !important - &.is-static - background-color: $button-static-background-color - border-color: $button-static-border-color - color: $button-static-color - box-shadow: none - pointer-events: none - &.is-rounded - border-radius: $radius-rounded - padding-left: calc(#{$button-padding-horizontal} + 0.25em) - padding-right: calc(#{$button-padding-horizontal} + 0.25em) - -.buttons - align-items: center - display: flex - flex-wrap: wrap - justify-content: flex-start - .button - margin-bottom: 0.5rem - &:not(:last-child):not(.is-fullwidth) - margin-right: 0.5rem - &:last-child - margin-bottom: -0.5rem - &:not(:last-child) - margin-bottom: 1rem - // Sizes - &.are-small - .button:not(.is-normal):not(.is-medium):not(.is-large) - +button-small - &.are-medium - .button:not(.is-small):not(.is-normal):not(.is-large) - +button-medium - &.are-large - .button:not(.is-small):not(.is-normal):not(.is-medium) - +button-large - &.has-addons - .button - &:not(:first-child) - border-bottom-left-radius: 0 - border-top-left-radius: 0 - &:not(:last-child) - border-bottom-right-radius: 0 - border-top-right-radius: 0 - margin-right: -1px - &:last-child - margin-right: 0 - &:hover, - &.is-hovered - z-index: 2 - &:focus, - &.is-focused, - &:active, - &.is-active, - &.is-selected - z-index: 3 - &:hover - z-index: 4 - &.is-expanded - flex-grow: 1 - flex-shrink: 1 - &.is-centered - justify-content: center - &:not(.has-addons) - .button:not(.is-fullwidth) - margin-left: 0.25rem - margin-right: 0.25rem - &.is-right - justify-content: flex-end - &:not(.has-addons) - .button:not(.is-fullwidth) - margin-left: 0.25rem - margin-right: 0.25rem diff --git a/docs/_sass/sass/elements/container.sass b/docs/_sass/sass/elements/container.sass deleted file mode 100644 index d88eb94acc..0000000000 --- a/docs/_sass/sass/elements/container.sass +++ /dev/null @@ -1,24 +0,0 @@ -$container-offset: (2 * $gap) !default - -.container - flex-grow: 1 - margin: 0 auto - position: relative - width: auto - &.is-fluid - max-width: none - padding-left: $gap - padding-right: $gap - width: 100% - +desktop - max-width: $desktop - $container-offset - +until-widescreen - &.is-widescreen - max-width: $widescreen - $container-offset - +until-fullhd - &.is-fullhd - max-width: $fullhd - $container-offset - +widescreen - max-width: $widescreen - $container-offset - +fullhd - max-width: $fullhd - $container-offset diff --git a/docs/_sass/sass/elements/content.sass b/docs/_sass/sass/elements/content.sass deleted file mode 100644 index 001419abd8..0000000000 --- a/docs/_sass/sass/elements/content.sass +++ /dev/null @@ -1,155 +0,0 @@ -$content-heading-color: $text-strong !default -$content-heading-weight: $weight-semibold !default -$content-heading-line-height: 1.125 !default - -$content-blockquote-background-color: $background !default -$content-blockquote-border-left: 5px solid $border !default -$content-blockquote-padding: 1.25em 1.5em !default - -$content-pre-padding: 1.25em 1.5em !default - -$content-table-cell-border: 1px solid $border !default -$content-table-cell-border-width: 0 0 1px !default -$content-table-cell-padding: 0.5em 0.75em !default -$content-table-cell-heading-color: $text-strong !default -$content-table-head-cell-border-width: 0 0 2px !default -$content-table-head-cell-color: $text-strong !default -$content-table-foot-cell-border-width: 2px 0 0 !default -$content-table-foot-cell-color: $text-strong !default - -.content - @extend %block - // Inline - li + li - margin-top: 0.25em - // Block - p, - dl, - ol, - ul, - blockquote, - pre, - table - &:not(:last-child) - margin-bottom: 1em - h1, - h2, - h3, - h4, - h5, - h6 - color: $content-heading-color - font-weight: $content-heading-weight - line-height: $content-heading-line-height - h1 - font-size: 2em - margin-bottom: 0.5em - &:not(:first-child) - margin-top: 1em - h2 - font-size: 1.75em - margin-bottom: 0.5714em - &:not(:first-child) - margin-top: 1.1428em - h3 - font-size: 1.5em - margin-bottom: 0.6666em - &:not(:first-child) - margin-top: 1.3333em - h4 - font-size: 1.25em - margin-bottom: 0.8em - h5 - font-size: 1.125em - margin-bottom: 0.8888em - h6 - font-size: 1em - margin-bottom: 1em - blockquote - background-color: $content-blockquote-background-color - border-left: $content-blockquote-border-left - padding: $content-blockquote-padding - ol - list-style-position: outside - margin-left: 2em - margin-top: 1em - &:not([type]) - list-style-type: decimal - &.is-lower-alpha - list-style-type: lower-alpha - &.is-lower-roman - list-style-type: lower-roman - &.is-upper-alpha - list-style-type: upper-alpha - &.is-upper-roman - list-style-type: upper-roman - ul - list-style: disc outside - margin-left: 2em - margin-top: 1em - ul - list-style-type: circle - margin-top: 0.5em - ul - list-style-type: square - dd - margin-left: 2em - figure - margin-left: 2em - margin-right: 2em - text-align: center - &:not(:first-child) - margin-top: 2em - &:not(:last-child) - margin-bottom: 2em - img - display: inline-block - figcaption - font-style: italic - pre - +overflow-touch - overflow-x: auto - padding: $content-pre-padding - white-space: pre - word-wrap: normal - sup, - sub - font-size: 75% - table - width: 100% - td, - th - border: $content-table-cell-border - border-width: $content-table-cell-border-width - padding: $content-table-cell-padding - vertical-align: top - th - color: $content-table-cell-heading-color - &:not([align]) - text-align: left - thead - td, - th - border-width: $content-table-head-cell-border-width - color: $content-table-head-cell-color - tfoot - td, - th - border-width: $content-table-foot-cell-border-width - color: $content-table-foot-cell-color - tbody - tr - &:last-child - td, - th - border-bottom-width: 0 - .tabs - li + li - margin-top: 0 - // Sizes - &.is-small - font-size: $size-small - &.is-medium - font-size: $size-medium - &.is-large - font-size: $size-large diff --git a/docs/_sass/sass/elements/form.sass b/docs/_sass/sass/elements/form.sass deleted file mode 100644 index 3122dc4c5e..0000000000 --- a/docs/_sass/sass/elements/form.sass +++ /dev/null @@ -1 +0,0 @@ -@warn "The form.sass file is DEPRECATED. It has moved into its own /form folder. Please import sass/form/_all instead." diff --git a/docs/_sass/sass/elements/icon.sass b/docs/_sass/sass/elements/icon.sass deleted file mode 100644 index 988546c7fc..0000000000 --- a/docs/_sass/sass/elements/icon.sass +++ /dev/null @@ -1,21 +0,0 @@ -$icon-dimensions: 1.5rem !default -$icon-dimensions-small: 1rem !default -$icon-dimensions-medium: 2rem !default -$icon-dimensions-large: 3rem !default - -.icon - align-items: center - display: inline-flex - justify-content: center - height: $icon-dimensions - width: $icon-dimensions - // Sizes - &.is-small - height: $icon-dimensions-small - width: $icon-dimensions-small - &.is-medium - height: $icon-dimensions-medium - width: $icon-dimensions-medium - &.is-large - height: $icon-dimensions-large - width: $icon-dimensions-large diff --git a/docs/_sass/sass/elements/image.sass b/docs/_sass/sass/elements/image.sass deleted file mode 100644 index 7547abcfd6..0000000000 --- a/docs/_sass/sass/elements/image.sass +++ /dev/null @@ -1,71 +0,0 @@ -$dimensions: 16 24 32 48 64 96 128 !default - -.image - display: block - position: relative - img - display: block - height: auto - width: 100% - &.is-rounded - border-radius: $radius-rounded - &.is-fullwidth - width: 100% - // Ratio - &.is-square, - &.is-1by1, - &.is-5by4, - &.is-4by3, - &.is-3by2, - &.is-5by3, - &.is-16by9, - &.is-2by1, - &.is-3by1, - &.is-4by5, - &.is-3by4, - &.is-2by3, - &.is-3by5, - &.is-9by16, - &.is-1by2, - &.is-1by3 - img, - .has-ratio - @extend %overlay - height: 100% - width: 100% - &.is-square, - &.is-1by1 - padding-top: 100% - &.is-5by4 - padding-top: 80% - &.is-4by3 - padding-top: 75% - &.is-3by2 - padding-top: 66.6666% - &.is-5by3 - padding-top: 60% - &.is-16by9 - padding-top: 56.25% - &.is-2by1 - padding-top: 50% - &.is-3by1 - padding-top: 33.3333% - &.is-4by5 - padding-top: 125% - &.is-3by4 - padding-top: 133.3333% - &.is-2by3 - padding-top: 150% - &.is-3by5 - padding-top: 166.6666% - &.is-9by16 - padding-top: 177.7777% - &.is-1by2 - padding-top: 200% - &.is-1by3 - padding-top: 300% - // Sizes - @each $dimension in $dimensions - &.is-#{$dimension}x#{$dimension} - height: $dimension * 1px - width: $dimension * 1px diff --git a/docs/_sass/sass/elements/notification.sass b/docs/_sass/sass/elements/notification.sass deleted file mode 100644 index 24122e78d3..0000000000 --- a/docs/_sass/sass/elements/notification.sass +++ /dev/null @@ -1,36 +0,0 @@ -$notification-background-color: $background !default -$notification-code-background-color: $scheme-main !default -$notification-radius: $radius !default -$notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default - -.notification - @extend %block - background-color: $notification-background-color - border-radius: $notification-radius - padding: $notification-padding - position: relative - a:not(.button):not(.dropdown-item) - color: currentColor - text-decoration: underline - strong - color: currentColor - code, - pre - background: $notification-code-background-color - pre code - background: transparent - & > .delete - position: absolute - right: 0.5rem - top: 0.5rem - .title, - .subtitle, - .content - color: currentColor - // Colors - @each $name, $pair in $colors - $color: nth($pair, 1) - $color-invert: nth($pair, 2) - &.is-#{$name} - background-color: $color - color: $color-invert diff --git a/docs/_sass/sass/elements/other.sass b/docs/_sass/sass/elements/other.sass deleted file mode 100644 index 5725617c26..0000000000 --- a/docs/_sass/sass/elements/other.sass +++ /dev/null @@ -1,39 +0,0 @@ -.block - @extend %block - -.delete - @extend %delete - -.heading - display: block - font-size: 11px - letter-spacing: 1px - margin-bottom: 5px - text-transform: uppercase - -.highlight - @extend %block - font-weight: $weight-normal - max-width: 100% - overflow: hidden - padding: 0 - pre - overflow: auto - max-width: 100% - -.loader - @extend %loader - -.number - align-items: center - background-color: $background - border-radius: $radius-rounded - display: inline-flex - font-size: $size-medium - height: 2em - justify-content: center - margin-right: 1.5rem - min-width: 2.5em - padding: 0.25rem 0.5rem - text-align: center - vertical-align: top diff --git a/docs/_sass/sass/elements/progress.sass b/docs/_sass/sass/elements/progress.sass deleted file mode 100644 index bb43bb6017..0000000000 --- a/docs/_sass/sass/elements/progress.sass +++ /dev/null @@ -1,67 +0,0 @@ -$progress-bar-background-color: $border-light !default -$progress-value-background-color: $text !default -$progress-border-radius: $radius-rounded !default - -$progress-indeterminate-duration: 1.5s !default - -.progress - @extend %block - -moz-appearance: none - -webkit-appearance: none - border: none - border-radius: $progress-border-radius - display: block - height: $size-normal - overflow: hidden - padding: 0 - width: 100% - &::-webkit-progress-bar - background-color: $progress-bar-background-color - &::-webkit-progress-value - background-color: $progress-value-background-color - &::-moz-progress-bar - background-color: $progress-value-background-color - &::-ms-fill - background-color: $progress-value-background-color - border: none - // Colors - @each $name, $pair in $colors - $color: nth($pair, 1) - &.is-#{$name} - &::-webkit-progress-value - background-color: $color - &::-moz-progress-bar - background-color: $color - &::-ms-fill - background-color: $color - &:indeterminate - background-image: linear-gradient(to right, $color 30%, $progress-bar-background-color 30%) - - &:indeterminate - animation-duration: $progress-indeterminate-duration - animation-iteration-count: infinite - animation-name: moveIndeterminate - animation-timing-function: linear - background-color: $progress-bar-background-color - background-image: linear-gradient(to right, $text 30%, $progress-bar-background-color 30%) - background-position: top left - background-repeat: no-repeat - background-size: 150% 150% - &::-webkit-progress-bar - background-color: transparent - &::-moz-progress-bar - background-color: transparent - - // Sizes - &.is-small - height: $size-small - &.is-medium - height: $size-medium - &.is-large - height: $size-large - -@keyframes moveIndeterminate - from - background-position: 200% 0 - to - background-position: -200% 0 diff --git a/docs/_sass/sass/elements/table.sass b/docs/_sass/sass/elements/table.sass deleted file mode 100644 index 2e6036ad38..0000000000 --- a/docs/_sass/sass/elements/table.sass +++ /dev/null @@ -1,127 +0,0 @@ -$table-color: $text-strong !default -$table-background-color: $scheme-main !default - -$table-cell-border: 1px solid $border !default -$table-cell-border-width: 0 0 1px !default -$table-cell-padding: 0.5em 0.75em !default -$table-cell-heading-color: $text-strong !default - -$table-head-cell-border-width: 0 0 2px !default -$table-head-cell-color: $text-strong !default -$table-foot-cell-border-width: 2px 0 0 !default -$table-foot-cell-color: $text-strong !default - -$table-head-background-color: transparent !default -$table-body-background-color: transparent !default -$table-foot-background-color: transparent !default - -$table-row-hover-background-color: $scheme-main-bis !default - -$table-row-active-background-color: $primary !default -$table-row-active-color: $primary-invert !default - -$table-striped-row-even-background-color: $scheme-main-bis !default -$table-striped-row-even-hover-background-color: $scheme-main-ter !default - -.table - @extend %block - background-color: $table-background-color - color: $table-color - td, - th - border: $table-cell-border - border-width: $table-cell-border-width - padding: $table-cell-padding - vertical-align: top - // Colors - @each $name, $pair in $colors - $color: nth($pair, 1) - $color-invert: nth($pair, 2) - &.is-#{$name} - background-color: $color - border-color: $color - color: $color-invert - // Modifiers - &.is-narrow - white-space: nowrap - width: 1% - &.is-selected - background-color: $table-row-active-background-color - color: $table-row-active-color - a, - strong - color: currentColor - th - color: $table-cell-heading-color - &:not([align]) - text-align: left - tr - &.is-selected - background-color: $table-row-active-background-color - color: $table-row-active-color - a, - strong - color: currentColor - td, - th - border-color: $table-row-active-color - color: currentColor - thead - background-color: $table-head-background-color - td, - th - border-width: $table-head-cell-border-width - color: $table-head-cell-color - tfoot - background-color: $table-foot-background-color - td, - th - border-width: $table-foot-cell-border-width - color: $table-foot-cell-color - tbody - background-color: $table-body-background-color - tr - &:last-child - td, - th - border-bottom-width: 0 - // Modifiers - &.is-bordered - td, - th - border-width: 1px - tr - &:last-child - td, - th - border-bottom-width: 1px - &.is-fullwidth - width: 100% - &.is-hoverable - tbody - tr:not(.is-selected) - &:hover - background-color: $table-row-hover-background-color - &.is-striped - tbody - tr:not(.is-selected) - &:hover - background-color: $table-row-hover-background-color - &:nth-child(even) - background-color: $table-striped-row-even-hover-background-color - &.is-narrow - td, - th - padding: 0.25em 0.5em - &.is-striped - tbody - tr:not(.is-selected) - &:nth-child(even) - background-color: $table-striped-row-even-background-color - -.table-container - @extend %block - +overflow-touch - overflow: auto - overflow-y: hidden - max-width: 100% diff --git a/docs/_sass/sass/elements/tag.sass b/docs/_sass/sass/elements/tag.sass deleted file mode 100644 index e0fb89efe6..0000000000 --- a/docs/_sass/sass/elements/tag.sass +++ /dev/null @@ -1,128 +0,0 @@ -$tag-background-color: $background !default -$tag-color: $text !default -$tag-radius: $radius !default -$tag-delete-margin: 1px !default - -.tags - align-items: center - display: flex - flex-wrap: wrap - justify-content: flex-start - .tag - margin-bottom: 0.5rem - &:not(:last-child) - margin-right: 0.5rem - &:last-child - margin-bottom: -0.5rem - &:not(:last-child) - margin-bottom: 1rem - // Sizes - &.are-medium - .tag:not(.is-normal):not(.is-large) - font-size: $size-normal - &.are-large - .tag:not(.is-normal):not(.is-medium) - font-size: $size-medium - &.is-centered - justify-content: center - .tag - margin-right: 0.25rem - margin-left: 0.25rem - &.is-right - justify-content: flex-end - .tag - &:not(:first-child) - margin-left: 0.5rem - &:not(:last-child) - margin-right: 0 - &.has-addons - .tag - margin-right: 0 - &:not(:first-child) - margin-left: 0 - border-bottom-left-radius: 0 - border-top-left-radius: 0 - &:not(:last-child) - border-bottom-right-radius: 0 - border-top-right-radius: 0 - -.tag:not(body) - align-items: center - background-color: $tag-background-color - border-radius: $tag-radius - color: $tag-color - display: inline-flex - font-size: $size-small - height: 2em - justify-content: center - line-height: 1.5 - padding-left: 0.75em - padding-right: 0.75em - white-space: nowrap - .delete - margin-left: 0.25rem - margin-right: -0.375rem - // Colors - @each $name, $pair in $colors - $color: nth($pair, 1) - $color-invert: nth($pair, 2) - &.is-#{$name} - background-color: $color - color: $color-invert - // If a light and dark colors are provided - @if length($pair) > 3 - $color-light: nth($pair, 3) - $color-dark: nth($pair, 4) - &.is-light - background-color: $color-light - color: $color-dark - // Sizes - &.is-normal - font-size: $size-small - &.is-medium - font-size: $size-normal - &.is-large - font-size: $size-medium - .icon - &:first-child:not(:last-child) - margin-left: -0.375em - margin-right: 0.1875em - &:last-child:not(:first-child) - margin-left: 0.1875em - margin-right: -0.375em - &:first-child:last-child - margin-left: -0.375em - margin-right: -0.375em - // Modifiers - &.is-delete - margin-left: $tag-delete-margin - padding: 0 - position: relative - width: 2em - &::before, - &::after - background-color: currentColor - content: "" - display: block - left: 50% - position: absolute - top: 50% - transform: translateX(-50%) translateY(-50%) rotate(45deg) - transform-origin: center center - &::before - height: 1px - width: 50% - &::after - height: 50% - width: 1px - &:hover, - &:focus - background-color: darken($tag-background-color, 5%) - &:active - background-color: darken($tag-background-color, 10%) - &.is-rounded - border-radius: $radius-rounded - -a.tag - &:hover - text-decoration: underline diff --git a/docs/_sass/sass/elements/title.sass b/docs/_sass/sass/elements/title.sass deleted file mode 100644 index fa9947dd85..0000000000 --- a/docs/_sass/sass/elements/title.sass +++ /dev/null @@ -1,70 +0,0 @@ -$title-color: $text-strong !default -$title-family: false !default -$title-size: $size-3 !default -$title-weight: $weight-semibold !default -$title-line-height: 1.125 !default -$title-strong-color: inherit !default -$title-strong-weight: inherit !default -$title-sub-size: 0.75em !default -$title-sup-size: 0.75em !default - -$subtitle-color: $text !default -$subtitle-family: false !default -$subtitle-size: $size-5 !default -$subtitle-weight: $weight-normal !default -$subtitle-line-height: 1.25 !default -$subtitle-strong-color: $text-strong !default -$subtitle-strong-weight: $weight-semibold !default -$subtitle-negative-margin: -1.25rem !default - -.title, -.subtitle - @extend %block - word-break: break-word - em, - span - font-weight: inherit - sub - font-size: $title-sub-size - sup - font-size: $title-sup-size - .tag - vertical-align: middle - -.title - color: $title-color - @if $title-family - font-family: $title-family - font-size: $title-size - font-weight: $title-weight - line-height: $title-line-height - strong - color: $title-strong-color - font-weight: $title-strong-weight - & + .highlight - margin-top: -0.75rem - &:not(.is-spaced) + .subtitle - margin-top: $subtitle-negative-margin - // Sizes - @each $size in $sizes - $i: index($sizes, $size) - &.is-#{$i} - font-size: $size - -.subtitle - color: $subtitle-color - @if $subtitle-family - font-family: $subtitle-family - font-size: $subtitle-size - font-weight: $subtitle-weight - line-height: $subtitle-line-height - strong - color: $subtitle-strong-color - font-weight: $subtitle-strong-weight - &:not(.is-spaced) + .title - margin-top: $subtitle-negative-margin - // Sizes - @each $size in $sizes - $i: index($sizes, $size) - &.is-#{$i} - font-size: $size diff --git a/docs/_sass/sass/form/_all.sass b/docs/_sass/sass/form/_all.sass deleted file mode 100644 index d9a2b95525..0000000000 --- a/docs/_sass/sass/form/_all.sass +++ /dev/null @@ -1,8 +0,0 @@ -@charset "utf-8" - -@import "shared.sass" -@import "input-textarea.sass" -@import "checkbox-radio.sass" -@import "select.sass" -@import "file.sass" -@import "tools.sass" diff --git a/docs/_sass/sass/form/checkbox-radio.sass b/docs/_sass/sass/form/checkbox-radio.sass deleted file mode 100644 index d9f3ff0c5d..0000000000 --- a/docs/_sass/sass/form/checkbox-radio.sass +++ /dev/null @@ -1,21 +0,0 @@ -%checkbox-radio - cursor: pointer - display: inline-block - line-height: 1.25 - position: relative - input - cursor: pointer - &:hover - color: $input-hover-color - &[disabled], - fieldset[disabled] & - color: $input-disabled-color - cursor: not-allowed - -.checkbox - @extend %checkbox-radio - -.radio - @extend %checkbox-radio - & + .radio - margin-left: 0.5em diff --git a/docs/_sass/sass/form/file.sass b/docs/_sass/sass/form/file.sass deleted file mode 100644 index 41cc02154a..0000000000 --- a/docs/_sass/sass/form/file.sass +++ /dev/null @@ -1,180 +0,0 @@ -$file-border-color: $border !default -$file-radius: $radius !default - -$file-cta-background-color: $scheme-main-ter !default -$file-cta-color: $text !default -$file-cta-hover-color: $text-strong !default -$file-cta-active-color: $text-strong !default - -$file-name-border-color: $border !default -$file-name-border-style: solid !default -$file-name-border-width: 1px 1px 1px 0 !default -$file-name-max-width: 16em !default - -.file - @extend %unselectable - align-items: stretch - display: flex - justify-content: flex-start - position: relative - // Colors - @each $name, $pair in $colors - $color: nth($pair, 1) - $color-invert: nth($pair, 2) - &.is-#{$name} - .file-cta - background-color: $color - border-color: transparent - color: $color-invert - &:hover, - &.is-hovered - .file-cta - background-color: darken($color, 2.5%) - border-color: transparent - color: $color-invert - &:focus, - &.is-focused - .file-cta - border-color: transparent - box-shadow: 0 0 0.5em rgba($color, 0.25) - color: $color-invert - &:active, - &.is-active - .file-cta - background-color: darken($color, 5%) - border-color: transparent - color: $color-invert - // Sizes - &.is-small - font-size: $size-small - &.is-medium - font-size: $size-medium - .file-icon - .fa - font-size: 21px - &.is-large - font-size: $size-large - .file-icon - .fa - font-size: 28px - // Modifiers - &.has-name - .file-cta - border-bottom-right-radius: 0 - border-top-right-radius: 0 - .file-name - border-bottom-left-radius: 0 - border-top-left-radius: 0 - &.is-empty - .file-cta - border-radius: $file-radius - .file-name - display: none - &.is-boxed - .file-label - flex-direction: column - .file-cta - flex-direction: column - height: auto - padding: 1em 3em - .file-name - border-width: 0 1px 1px - .file-icon - height: 1.5em - width: 1.5em - .fa - font-size: 21px - &.is-small - .file-icon .fa - font-size: 14px - &.is-medium - .file-icon .fa - font-size: 28px - &.is-large - .file-icon .fa - font-size: 35px - &.has-name - .file-cta - border-radius: $file-radius $file-radius 0 0 - .file-name - border-radius: 0 0 $file-radius $file-radius - border-width: 0 1px 1px - &.is-centered - justify-content: center - &.is-fullwidth - .file-label - width: 100% - .file-name - flex-grow: 1 - max-width: none - &.is-right - justify-content: flex-end - .file-cta - border-radius: 0 $file-radius $file-radius 0 - .file-name - border-radius: $file-radius 0 0 $file-radius - border-width: 1px 0 1px 1px - order: -1 - -.file-label - align-items: stretch - display: flex - cursor: pointer - justify-content: flex-start - overflow: hidden - position: relative - &:hover - .file-cta - background-color: darken($file-cta-background-color, 2.5%) - color: $file-cta-hover-color - .file-name - border-color: darken($file-name-border-color, 2.5%) - &:active - .file-cta - background-color: darken($file-cta-background-color, 5%) - color: $file-cta-active-color - .file-name - border-color: darken($file-name-border-color, 5%) - -.file-input - height: 100% - left: 0 - opacity: 0 - outline: none - position: absolute - top: 0 - width: 100% - -.file-cta, -.file-name - @extend %control - border-color: $file-border-color - border-radius: $file-radius - font-size: 1em - padding-left: 1em - padding-right: 1em - white-space: nowrap - -.file-cta - background-color: $file-cta-background-color - color: $file-cta-color - -.file-name - border-color: $file-name-border-color - border-style: $file-name-border-style - border-width: $file-name-border-width - display: block - max-width: $file-name-max-width - overflow: hidden - text-align: left - text-overflow: ellipsis - -.file-icon - align-items: center - display: flex - height: 1em - justify-content: center - margin-right: 0.5em - width: 1em - .fa - font-size: 14px diff --git a/docs/_sass/sass/form/input-textarea.sass b/docs/_sass/sass/form/input-textarea.sass deleted file mode 100644 index 7636cdaed8..0000000000 --- a/docs/_sass/sass/form/input-textarea.sass +++ /dev/null @@ -1,64 +0,0 @@ -$textarea-padding: $control-padding-horizontal !default -$textarea-max-height: 40em !default -$textarea-min-height: 8em !default - -%input-textarea - @extend %input - box-shadow: $input-shadow - max-width: 100% - width: 100% - &[readonly] - box-shadow: none - // Colors - @each $name, $pair in $colors - $color: nth($pair, 1) - &.is-#{$name} - border-color: $color - &:focus, - &.is-focused, - &:active, - &.is-active - box-shadow: $input-focus-box-shadow-size rgba($color, 0.25) - // Sizes - &.is-small - +control-small - &.is-medium - +control-medium - &.is-large - +control-large - // Modifiers - &.is-fullwidth - display: block - width: 100% - &.is-inline - display: inline - width: auto - -.input - @extend %input-textarea - &.is-rounded - border-radius: $radius-rounded - padding-left: calc(#{$control-padding-horizontal} + 0.375em) - padding-right: calc(#{$control-padding-horizontal} + 0.375em) - &.is-static - background-color: transparent - border-color: transparent - box-shadow: none - padding-left: 0 - padding-right: 0 - -.textarea - @extend %input-textarea - display: block - max-width: 100% - min-width: 100% - padding: $textarea-padding - resize: vertical - &:not([rows]) - max-height: $textarea-max-height - min-height: $textarea-min-height - &[rows] - height: initial - // Modifiers - &.has-fixed-size - resize: none diff --git a/docs/_sass/sass/form/select.sass b/docs/_sass/sass/form/select.sass deleted file mode 100644 index 909b9d5249..0000000000 --- a/docs/_sass/sass/form/select.sass +++ /dev/null @@ -1,85 +0,0 @@ -.select - display: inline-block - max-width: 100% - position: relative - vertical-align: top - &:not(.is-multiple) - height: $input-height - &:not(.is-multiple):not(.is-loading) - &::after - @extend %arrow - border-color: $input-arrow - right: 1.125em - z-index: 4 - &.is-rounded - select - border-radius: $radius-rounded - padding-left: 1em - select - @extend %input - cursor: pointer - display: block - font-size: 1em - max-width: 100% - outline: none - &::-ms-expand - display: none - &[disabled]:hover, - fieldset[disabled] &:hover - border-color: $input-disabled-border-color - &:not([multiple]) - padding-right: 2.5em - &[multiple] - height: auto - padding: 0 - option - padding: 0.5em 1em - // States - &:not(.is-multiple):not(.is-loading):hover - &::after - border-color: $input-hover-color - // Colors - @each $name, $pair in $colors - $color: nth($pair, 1) - &.is-#{$name} - &:not(:hover)::after - border-color: $color - select - border-color: $color - &:hover, - &.is-hovered - border-color: darken($color, 5%) - &:focus, - &.is-focused, - &:active, - &.is-active - box-shadow: $input-focus-box-shadow-size rgba($color, 0.25) - // Sizes - &.is-small - +control-small - &.is-medium - +control-medium - &.is-large - +control-large - // Modifiers - &.is-disabled - &::after - border-color: $input-disabled-color - &.is-fullwidth - width: 100% - select - width: 100% - &.is-loading - &::after - @extend %loader - margin-top: 0 - position: absolute - right: 0.625em - top: 0.625em - transform: none - &.is-small:after - font-size: $size-small - &.is-medium:after - font-size: $size-medium - &.is-large:after - font-size: $size-large diff --git a/docs/_sass/sass/form/shared.sass b/docs/_sass/sass/form/shared.sass deleted file mode 100644 index f9c6890f46..0000000000 --- a/docs/_sass/sass/form/shared.sass +++ /dev/null @@ -1,55 +0,0 @@ -$input-color: $text-strong !default -$input-background-color: $scheme-main !default -$input-border-color: $border !default -$input-height: $control-height !default -$input-shadow: inset 0 0.0625em 0.125em rgba($scheme-invert, 0.05) !default -$input-placeholder-color: rgba($input-color, 0.3) !default - -$input-hover-color: $text-strong !default -$input-hover-border-color: $border-hover !default - -$input-focus-color: $text-strong !default -$input-focus-border-color: $link !default -$input-focus-box-shadow-size: 0 0 0 0.125em !default -$input-focus-box-shadow-color: rgba($link, 0.25) !default - -$input-disabled-color: $text-light !default -$input-disabled-background-color: $background !default -$input-disabled-border-color: $background !default -$input-disabled-placeholder-color: rgba($input-disabled-color, 0.3) !default - -$input-arrow: $link !default - -$input-icon-color: $border !default -$input-icon-active-color: $text !default - -$input-radius: $radius !default - -=input - @extend %control - background-color: $input-background-color - border-color: $input-border-color - border-radius: $input-radius - color: $input-color - +placeholder - color: $input-placeholder-color - &:hover, - &.is-hovered - border-color: $input-hover-border-color - &:focus, - &.is-focused, - &:active, - &.is-active - border-color: $input-focus-border-color - box-shadow: $input-focus-box-shadow-size $input-focus-box-shadow-color - &[disabled], - fieldset[disabled] & - background-color: $input-disabled-background-color - border-color: $input-disabled-border-color - box-shadow: none - color: $input-disabled-color - +placeholder - color: $input-disabled-placeholder-color - -%input - +input diff --git a/docs/_sass/sass/form/tools.sass b/docs/_sass/sass/form/tools.sass deleted file mode 100644 index ff2f8e208a..0000000000 --- a/docs/_sass/sass/form/tools.sass +++ /dev/null @@ -1,205 +0,0 @@ -$label-color: $text-strong !default -$label-weight: $weight-bold !default - -$help-size: $size-small !default - -.label - color: $label-color - display: block - font-size: $size-normal - font-weight: $label-weight - &:not(:last-child) - margin-bottom: 0.5em - // Sizes - &.is-small - font-size: $size-small - &.is-medium - font-size: $size-medium - &.is-large - font-size: $size-large - -.help - display: block - font-size: $help-size - margin-top: 0.25rem - @each $name, $pair in $colors - $color: nth($pair, 1) - &.is-#{$name} - color: $color - -// Containers - -.field - &:not(:last-child) - margin-bottom: 0.75rem - // Modifiers - &.has-addons - display: flex - justify-content: flex-start - .control - &:not(:last-child) - margin-right: -1px - &:not(:first-child):not(:last-child) - .button, - .input, - .select select - border-radius: 0 - &:first-child:not(:only-child) - .button, - .input, - .select select - border-bottom-right-radius: 0 - border-top-right-radius: 0 - &:last-child:not(:only-child) - .button, - .input, - .select select - border-bottom-left-radius: 0 - border-top-left-radius: 0 - .button, - .input, - .select select - &:not([disabled]) - &:hover, - &.is-hovered - z-index: 2 - &:focus, - &.is-focused, - &:active, - &.is-active - z-index: 3 - &:hover - z-index: 4 - &.is-expanded - flex-grow: 1 - flex-shrink: 1 - &.has-addons-centered - justify-content: center - &.has-addons-right - justify-content: flex-end - &.has-addons-fullwidth - .control - flex-grow: 1 - flex-shrink: 0 - &.is-grouped - display: flex - justify-content: flex-start - & > .control - flex-shrink: 0 - &:not(:last-child) - margin-bottom: 0 - margin-right: 0.75rem - &.is-expanded - flex-grow: 1 - flex-shrink: 1 - &.is-grouped-centered - justify-content: center - &.is-grouped-right - justify-content: flex-end - &.is-grouped-multiline - flex-wrap: wrap - & > .control - &:last-child, - &:not(:last-child) - margin-bottom: 0.75rem - &:last-child - margin-bottom: -0.75rem - &:not(:last-child) - margin-bottom: 0 - &.is-horizontal - +tablet - display: flex - -.field-label - .label - font-size: inherit - +mobile - margin-bottom: 0.5rem - +tablet - flex-basis: 0 - flex-grow: 1 - flex-shrink: 0 - margin-right: 1.5rem - text-align: right - &.is-small - font-size: $size-small - padding-top: 0.375em - &.is-normal - padding-top: 0.375em - &.is-medium - font-size: $size-medium - padding-top: 0.375em - &.is-large - font-size: $size-large - padding-top: 0.375em - -.field-body - .field .field - margin-bottom: 0 - +tablet - display: flex - flex-basis: 0 - flex-grow: 5 - flex-shrink: 1 - .field - margin-bottom: 0 - & > .field - flex-shrink: 1 - &:not(.is-narrow) - flex-grow: 1 - &:not(:last-child) - margin-right: 0.75rem - -.control - box-sizing: border-box - clear: both - font-size: $size-normal - position: relative - text-align: left - // Modifiers - &.has-icons-left, - &.has-icons-right - .input, - .select - &:focus - & ~ .icon - color: $input-icon-active-color - &.is-small ~ .icon - font-size: $size-small - &.is-medium ~ .icon - font-size: $size-medium - &.is-large ~ .icon - font-size: $size-large - .icon - color: $input-icon-color - height: $input-height - pointer-events: none - position: absolute - top: 0 - width: $input-height - z-index: 4 - &.has-icons-left - .input, - .select select - padding-left: $input-height - .icon.is-left - left: 0 - &.has-icons-right - .input, - .select select - padding-right: $input-height - .icon.is-right - right: 0 - &.is-loading - &::after - @extend %loader - position: absolute !important - right: 0.625em - top: 0.625em - z-index: 4 - &.is-small:after - font-size: $size-small - &.is-medium:after - font-size: $size-medium - &.is-large:after - font-size: $size-large diff --git a/docs/_sass/sass/grid/_all.sass b/docs/_sass/sass/grid/_all.sass deleted file mode 100644 index e53070f6c3..0000000000 --- a/docs/_sass/sass/grid/_all.sass +++ /dev/null @@ -1,4 +0,0 @@ -@charset "utf-8" - -@import "columns.sass" -@import "tiles.sass" diff --git a/docs/_sass/sass/grid/columns.sass b/docs/_sass/sass/grid/columns.sass deleted file mode 100644 index 34a8353313..0000000000 --- a/docs/_sass/sass/grid/columns.sass +++ /dev/null @@ -1,504 +0,0 @@ -$column-gap: 0.75rem !default - -.column - display: block - flex-basis: 0 - flex-grow: 1 - flex-shrink: 1 - padding: $column-gap - .columns.is-mobile > &.is-narrow - flex: none - .columns.is-mobile > &.is-full - flex: none - width: 100% - .columns.is-mobile > &.is-three-quarters - flex: none - width: 75% - .columns.is-mobile > &.is-two-thirds - flex: none - width: 66.6666% - .columns.is-mobile > &.is-half - flex: none - width: 50% - .columns.is-mobile > &.is-one-third - flex: none - width: 33.3333% - .columns.is-mobile > &.is-one-quarter - flex: none - width: 25% - .columns.is-mobile > &.is-one-fifth - flex: none - width: 20% - .columns.is-mobile > &.is-two-fifths - flex: none - width: 40% - .columns.is-mobile > &.is-three-fifths - flex: none - width: 60% - .columns.is-mobile > &.is-four-fifths - flex: none - width: 80% - .columns.is-mobile > &.is-offset-three-quarters - margin-left: 75% - .columns.is-mobile > &.is-offset-two-thirds - margin-left: 66.6666% - .columns.is-mobile > &.is-offset-half - margin-left: 50% - .columns.is-mobile > &.is-offset-one-third - margin-left: 33.3333% - .columns.is-mobile > &.is-offset-one-quarter - margin-left: 25% - .columns.is-mobile > &.is-offset-one-fifth - margin-left: 20% - .columns.is-mobile > &.is-offset-two-fifths - margin-left: 40% - .columns.is-mobile > &.is-offset-three-fifths - margin-left: 60% - .columns.is-mobile > &.is-offset-four-fifths - margin-left: 80% - @for $i from 0 through 12 - .columns.is-mobile > &.is-#{$i} - flex: none - width: percentage($i / 12) - .columns.is-mobile > &.is-offset-#{$i} - margin-left: percentage($i / 12) - +mobile - &.is-narrow-mobile - flex: none - &.is-full-mobile - flex: none - width: 100% - &.is-three-quarters-mobile - flex: none - width: 75% - &.is-two-thirds-mobile - flex: none - width: 66.6666% - &.is-half-mobile - flex: none - width: 50% - &.is-one-third-mobile - flex: none - width: 33.3333% - &.is-one-quarter-mobile - flex: none - width: 25% - &.is-one-fifth-mobile - flex: none - width: 20% - &.is-two-fifths-mobile - flex: none - width: 40% - &.is-three-fifths-mobile - flex: none - width: 60% - &.is-four-fifths-mobile - flex: none - width: 80% - &.is-offset-three-quarters-mobile - margin-left: 75% - &.is-offset-two-thirds-mobile - margin-left: 66.6666% - &.is-offset-half-mobile - margin-left: 50% - &.is-offset-one-third-mobile - margin-left: 33.3333% - &.is-offset-one-quarter-mobile - margin-left: 25% - &.is-offset-one-fifth-mobile - margin-left: 20% - &.is-offset-two-fifths-mobile - margin-left: 40% - &.is-offset-three-fifths-mobile - margin-left: 60% - &.is-offset-four-fifths-mobile - margin-left: 80% - @for $i from 0 through 12 - &.is-#{$i}-mobile - flex: none - width: percentage($i / 12) - &.is-offset-#{$i}-mobile - margin-left: percentage($i / 12) - +tablet - &.is-narrow, - &.is-narrow-tablet - flex: none - &.is-full, - &.is-full-tablet - flex: none - width: 100% - &.is-three-quarters, - &.is-three-quarters-tablet - flex: none - width: 75% - &.is-two-thirds, - &.is-two-thirds-tablet - flex: none - width: 66.6666% - &.is-half, - &.is-half-tablet - flex: none - width: 50% - &.is-one-third, - &.is-one-third-tablet - flex: none - width: 33.3333% - &.is-one-quarter, - &.is-one-quarter-tablet - flex: none - width: 25% - &.is-one-fifth, - &.is-one-fifth-tablet - flex: none - width: 20% - &.is-two-fifths, - &.is-two-fifths-tablet - flex: none - width: 40% - &.is-three-fifths, - &.is-three-fifths-tablet - flex: none - width: 60% - &.is-four-fifths, - &.is-four-fifths-tablet - flex: none - width: 80% - &.is-offset-three-quarters, - &.is-offset-three-quarters-tablet - margin-left: 75% - &.is-offset-two-thirds, - &.is-offset-two-thirds-tablet - margin-left: 66.6666% - &.is-offset-half, - &.is-offset-half-tablet - margin-left: 50% - &.is-offset-one-third, - &.is-offset-one-third-tablet - margin-left: 33.3333% - &.is-offset-one-quarter, - &.is-offset-one-quarter-tablet - margin-left: 25% - &.is-offset-one-fifth, - &.is-offset-one-fifth-tablet - margin-left: 20% - &.is-offset-two-fifths, - &.is-offset-two-fifths-tablet - margin-left: 40% - &.is-offset-three-fifths, - &.is-offset-three-fifths-tablet - margin-left: 60% - &.is-offset-four-fifths, - &.is-offset-four-fifths-tablet - margin-left: 80% - @for $i from 0 through 12 - &.is-#{$i}, - &.is-#{$i}-tablet - flex: none - width: percentage($i / 12) - &.is-offset-#{$i}, - &.is-offset-#{$i}-tablet - margin-left: percentage($i / 12) - +touch - &.is-narrow-touch - flex: none - &.is-full-touch - flex: none - width: 100% - &.is-three-quarters-touch - flex: none - width: 75% - &.is-two-thirds-touch - flex: none - width: 66.6666% - &.is-half-touch - flex: none - width: 50% - &.is-one-third-touch - flex: none - width: 33.3333% - &.is-one-quarter-touch - flex: none - width: 25% - &.is-one-fifth-touch - flex: none - width: 20% - &.is-two-fifths-touch - flex: none - width: 40% - &.is-three-fifths-touch - flex: none - width: 60% - &.is-four-fifths-touch - flex: none - width: 80% - &.is-offset-three-quarters-touch - margin-left: 75% - &.is-offset-two-thirds-touch - margin-left: 66.6666% - &.is-offset-half-touch - margin-left: 50% - &.is-offset-one-third-touch - margin-left: 33.3333% - &.is-offset-one-quarter-touch - margin-left: 25% - &.is-offset-one-fifth-touch - margin-left: 20% - &.is-offset-two-fifths-touch - margin-left: 40% - &.is-offset-three-fifths-touch - margin-left: 60% - &.is-offset-four-fifths-touch - margin-left: 80% - @for $i from 0 through 12 - &.is-#{$i}-touch - flex: none - width: percentage($i / 12) - &.is-offset-#{$i}-touch - margin-left: percentage($i / 12) - +desktop - &.is-narrow-desktop - flex: none - &.is-full-desktop - flex: none - width: 100% - &.is-three-quarters-desktop - flex: none - width: 75% - &.is-two-thirds-desktop - flex: none - width: 66.6666% - &.is-half-desktop - flex: none - width: 50% - &.is-one-third-desktop - flex: none - width: 33.3333% - &.is-one-quarter-desktop - flex: none - width: 25% - &.is-one-fifth-desktop - flex: none - width: 20% - &.is-two-fifths-desktop - flex: none - width: 40% - &.is-three-fifths-desktop - flex: none - width: 60% - &.is-four-fifths-desktop - flex: none - width: 80% - &.is-offset-three-quarters-desktop - margin-left: 75% - &.is-offset-two-thirds-desktop - margin-left: 66.6666% - &.is-offset-half-desktop - margin-left: 50% - &.is-offset-one-third-desktop - margin-left: 33.3333% - &.is-offset-one-quarter-desktop - margin-left: 25% - &.is-offset-one-fifth-desktop - margin-left: 20% - &.is-offset-two-fifths-desktop - margin-left: 40% - &.is-offset-three-fifths-desktop - margin-left: 60% - &.is-offset-four-fifths-desktop - margin-left: 80% - @for $i from 0 through 12 - &.is-#{$i}-desktop - flex: none - width: percentage($i / 12) - &.is-offset-#{$i}-desktop - margin-left: percentage($i / 12) - +widescreen - &.is-narrow-widescreen - flex: none - &.is-full-widescreen - flex: none - width: 100% - &.is-three-quarters-widescreen - flex: none - width: 75% - &.is-two-thirds-widescreen - flex: none - width: 66.6666% - &.is-half-widescreen - flex: none - width: 50% - &.is-one-third-widescreen - flex: none - width: 33.3333% - &.is-one-quarter-widescreen - flex: none - width: 25% - &.is-one-fifth-widescreen - flex: none - width: 20% - &.is-two-fifths-widescreen - flex: none - width: 40% - &.is-three-fifths-widescreen - flex: none - width: 60% - &.is-four-fifths-widescreen - flex: none - width: 80% - &.is-offset-three-quarters-widescreen - margin-left: 75% - &.is-offset-two-thirds-widescreen - margin-left: 66.6666% - &.is-offset-half-widescreen - margin-left: 50% - &.is-offset-one-third-widescreen - margin-left: 33.3333% - &.is-offset-one-quarter-widescreen - margin-left: 25% - &.is-offset-one-fifth-widescreen - margin-left: 20% - &.is-offset-two-fifths-widescreen - margin-left: 40% - &.is-offset-three-fifths-widescreen - margin-left: 60% - &.is-offset-four-fifths-widescreen - margin-left: 80% - @for $i from 0 through 12 - &.is-#{$i}-widescreen - flex: none - width: percentage($i / 12) - &.is-offset-#{$i}-widescreen - margin-left: percentage($i / 12) - +fullhd - &.is-narrow-fullhd - flex: none - &.is-full-fullhd - flex: none - width: 100% - &.is-three-quarters-fullhd - flex: none - width: 75% - &.is-two-thirds-fullhd - flex: none - width: 66.6666% - &.is-half-fullhd - flex: none - width: 50% - &.is-one-third-fullhd - flex: none - width: 33.3333% - &.is-one-quarter-fullhd - flex: none - width: 25% - &.is-one-fifth-fullhd - flex: none - width: 20% - &.is-two-fifths-fullhd - flex: none - width: 40% - &.is-three-fifths-fullhd - flex: none - width: 60% - &.is-four-fifths-fullhd - flex: none - width: 80% - &.is-offset-three-quarters-fullhd - margin-left: 75% - &.is-offset-two-thirds-fullhd - margin-left: 66.6666% - &.is-offset-half-fullhd - margin-left: 50% - &.is-offset-one-third-fullhd - margin-left: 33.3333% - &.is-offset-one-quarter-fullhd - margin-left: 25% - &.is-offset-one-fifth-fullhd - margin-left: 20% - &.is-offset-two-fifths-fullhd - margin-left: 40% - &.is-offset-three-fifths-fullhd - margin-left: 60% - &.is-offset-four-fifths-fullhd - margin-left: 80% - @for $i from 0 through 12 - &.is-#{$i}-fullhd - flex: none - width: percentage($i / 12) - &.is-offset-#{$i}-fullhd - margin-left: percentage($i / 12) - -.columns - margin-left: (-$column-gap) - margin-right: (-$column-gap) - margin-top: (-$column-gap) - &:last-child - margin-bottom: (-$column-gap) - &:not(:last-child) - margin-bottom: calc(1.5rem - #{$column-gap}) - // Modifiers - &.is-centered - justify-content: center - &.is-gapless - margin-left: 0 - margin-right: 0 - margin-top: 0 - & > .column - margin: 0 - padding: 0 !important - &:not(:last-child) - margin-bottom: 1.5rem - &:last-child - margin-bottom: 0 - &.is-mobile - display: flex - &.is-multiline - flex-wrap: wrap - &.is-vcentered - align-items: center - // Responsiveness - +tablet - &:not(.is-desktop) - display: flex - +desktop - // Modifiers - &.is-desktop - display: flex - -@if $variable-columns - .columns.is-variable - --columnGap: 0.75rem - margin-left: calc(-1 * var(--columnGap)) - margin-right: calc(-1 * var(--columnGap)) - .column - padding-left: var(--columnGap) - padding-right: var(--columnGap) - @for $i from 0 through 8 - &.is-#{$i} - --columnGap: #{$i * 0.25rem} - +mobile - &.is-#{$i}-mobile - --columnGap: #{$i * 0.25rem} - +tablet - &.is-#{$i}-tablet - --columnGap: #{$i * 0.25rem} - +tablet-only - &.is-#{$i}-tablet-only - --columnGap: #{$i * 0.25rem} - +touch - &.is-#{$i}-touch - --columnGap: #{$i * 0.25rem} - +desktop - &.is-#{$i}-desktop - --columnGap: #{$i * 0.25rem} - +desktop-only - &.is-#{$i}-desktop-only - --columnGap: #{$i * 0.25rem} - +widescreen - &.is-#{$i}-widescreen - --columnGap: #{$i * 0.25rem} - +widescreen-only - &.is-#{$i}-widescreen-only - --columnGap: #{$i * 0.25rem} - +fullhd - &.is-#{$i}-fullhd - --columnGap: #{$i * 0.25rem} diff --git a/docs/_sass/sass/grid/tiles.sass b/docs/_sass/sass/grid/tiles.sass deleted file mode 100644 index 15648c2981..0000000000 --- a/docs/_sass/sass/grid/tiles.sass +++ /dev/null @@ -1,34 +0,0 @@ -$tile-spacing: 0.75rem !default - -.tile - align-items: stretch - display: block - flex-basis: 0 - flex-grow: 1 - flex-shrink: 1 - min-height: min-content - // Modifiers - &.is-ancestor - margin-left: $tile-spacing * -1 - margin-right: $tile-spacing * -1 - margin-top: $tile-spacing * -1 - &:last-child - margin-bottom: $tile-spacing * -1 - &:not(:last-child) - margin-bottom: $tile-spacing - &.is-child - margin: 0 !important - &.is-parent - padding: $tile-spacing - &.is-vertical - flex-direction: column - & > .tile.is-child:not(:last-child) - margin-bottom: 1.5rem !important - // Responsiveness - +tablet - &:not(.is-child) - display: flex - @for $i from 1 through 12 - &.is-#{$i} - flex: none - width: ($i / 12) * 100% diff --git a/docs/_sass/sass/layout/_all.sass b/docs/_sass/sass/layout/_all.sass deleted file mode 100644 index 143ada35be..0000000000 --- a/docs/_sass/sass/layout/_all.sass +++ /dev/null @@ -1,5 +0,0 @@ -@charset "utf-8" - -@import "hero.sass" -@import "section.sass" -@import "footer.sass" diff --git a/docs/_sass/sass/layout/footer.sass b/docs/_sass/sass/layout/footer.sass deleted file mode 100644 index 8faa11ed09..0000000000 --- a/docs/_sass/sass/layout/footer.sass +++ /dev/null @@ -1,9 +0,0 @@ -$footer-background-color: $scheme-main-bis !default -$footer-color: false !default -$footer-padding: 3rem 1.5rem 6rem !default - -.footer - background-color: $footer-background-color - padding: $footer-padding - @if $footer-color - color: $footer-color diff --git a/docs/_sass/sass/layout/hero.sass b/docs/_sass/sass/layout/hero.sass deleted file mode 100644 index 9b18e4f938..0000000000 --- a/docs/_sass/sass/layout/hero.sass +++ /dev/null @@ -1,143 +0,0 @@ -// Main container - -.hero - align-items: stretch - display: flex - flex-direction: column - justify-content: space-between - .navbar - background: none - .tabs - ul - border-bottom: none - // Colors - @each $name, $pair in $colors - $color: nth($pair, 1) - $color-invert: nth($pair, 2) - &.is-#{$name} - background-color: $color - color: $color-invert - a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), - strong - color: inherit - .title - color: $color-invert - .subtitle - color: rgba($color-invert, 0.9) - a:not(.button), - strong - color: $color-invert - .navbar-menu - +touch - background-color: $color - .navbar-item, - .navbar-link - color: rgba($color-invert, 0.7) - a.navbar-item, - .navbar-link - &:hover, - &.is-active - background-color: darken($color, 5%) - color: $color-invert - .tabs - a - color: $color-invert - opacity: 0.9 - &:hover - opacity: 1 - li - &.is-active a - opacity: 1 - &.is-boxed, - &.is-toggle - a - color: $color-invert - &:hover - background-color: rgba($scheme-invert, 0.1) - li.is-active a - &, - &:hover - background-color: $color-invert - border-color: $color-invert - color: $color - // Modifiers - &.is-bold - $gradient-top-left: darken(saturate(adjust-hue($color, -10deg), 10%), 10%) - $gradient-bottom-right: lighten(saturate(adjust-hue($color, 10deg), 5%), 5%) - background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%) - +mobile - .navbar-menu - background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%) - // Sizes - &.is-small - .hero-body - padding-bottom: 1.5rem - padding-top: 1.5rem - &.is-medium - +tablet - .hero-body - padding-bottom: 9rem - padding-top: 9rem - &.is-large - +tablet - .hero-body - padding-bottom: 18rem - padding-top: 18rem - &.is-halfheight, - &.is-fullheight, - &.is-fullheight-with-navbar - .hero-body - align-items: center - display: flex - & > .container - flex-grow: 1 - flex-shrink: 1 - &.is-halfheight - min-height: 50vh - &.is-fullheight - min-height: 100vh - -// Components - -.hero-video - @extend %overlay - overflow: hidden - video - left: 50% - min-height: 100% - min-width: 100% - position: absolute - top: 50% - transform: translate3d(-50%, -50%, 0) - // Modifiers - &.is-transparent - opacity: 0.3 - // Responsiveness - +mobile - display: none - -.hero-buttons - margin-top: 1.5rem - // Responsiveness - +mobile - .button - display: flex - &:not(:last-child) - margin-bottom: 0.75rem - +tablet - display: flex - justify-content: center - .button:not(:last-child) - margin-right: 1.5rem - -// Containers - -.hero-head, -.hero-foot - flex-grow: 0 - flex-shrink: 0 - -.hero-body - flex-grow: 1 - flex-shrink: 0 - padding: 3rem 1.5rem diff --git a/docs/_sass/sass/layout/section.sass b/docs/_sass/sass/layout/section.sass deleted file mode 100644 index 6f2d35231f..0000000000 --- a/docs/_sass/sass/layout/section.sass +++ /dev/null @@ -1,13 +0,0 @@ -$section-padding: 3rem 1.5rem !default -$section-padding-medium: 9rem 1.5rem !default -$section-padding-large: 18rem 1.5rem !default - -.section - padding: $section-padding - // Responsiveness - +desktop - // Sizes - &.is-medium - padding: $section-padding-medium - &.is-large - padding: $section-padding-large diff --git a/docs/_sass/sass/utilities/_all.sass b/docs/_sass/sass/utilities/_all.sass deleted file mode 100644 index bf4ecfe358..0000000000 --- a/docs/_sass/sass/utilities/_all.sass +++ /dev/null @@ -1,8 +0,0 @@ -@charset "utf-8" - -@import "initial-variables.sass" -@import "functions.sass" -@import "derived-variables.sass" -@import "animations.sass" -@import "mixins.sass" -@import "controls.sass" diff --git a/docs/_sass/sass/utilities/animations.sass b/docs/_sass/sass/utilities/animations.sass deleted file mode 100644 index a14525d75e..0000000000 --- a/docs/_sass/sass/utilities/animations.sass +++ /dev/null @@ -1,5 +0,0 @@ -@keyframes spinAround - from - transform: rotate(0deg) - to - transform: rotate(359deg) diff --git a/docs/_sass/sass/utilities/controls.sass b/docs/_sass/sass/utilities/controls.sass deleted file mode 100644 index cc7672a198..0000000000 --- a/docs/_sass/sass/utilities/controls.sass +++ /dev/null @@ -1,50 +0,0 @@ -$control-radius: $radius !default -$control-radius-small: $radius-small !default - -$control-border-width: 1px !default - -$control-height: 2.5em !default -$control-line-height: 1.5 !default - -$control-padding-vertical: calc(0.5em - #{$control-border-width}) !default -$control-padding-horizontal: calc(0.75em - #{$control-border-width}) !default - -=control - -moz-appearance: none - -webkit-appearance: none - align-items: center - border: $control-border-width solid transparent - border-radius: $control-radius - box-shadow: none - display: inline-flex - font-size: $size-normal - height: $control-height - justify-content: flex-start - line-height: $control-line-height - padding-bottom: $control-padding-vertical - padding-left: $control-padding-horizontal - padding-right: $control-padding-horizontal - padding-top: $control-padding-vertical - position: relative - vertical-align: top - // States - &:focus, - &.is-focused, - &:active, - &.is-active - outline: none - &[disabled], - fieldset[disabled] & - cursor: not-allowed - -%control - +control - -// The controls sizes use mixins so they can be used at different breakpoints -=control-small - border-radius: $control-radius-small - font-size: $size-small -=control-medium - font-size: $size-medium -=control-large - font-size: $size-large diff --git a/docs/_sass/sass/utilities/derived-variables.sass b/docs/_sass/sass/utilities/derived-variables.sass deleted file mode 100644 index 18a7f46125..0000000000 --- a/docs/_sass/sass/utilities/derived-variables.sass +++ /dev/null @@ -1,106 +0,0 @@ -$primary: $turquoise !default - -$info: $cyan !default -$success: $green !default -$warning: $yellow !default -$danger: $red !default - -$light: $white-ter !default -$dark: $grey-darker !default - -// Invert colors - -$orange-invert: findColorInvert($orange) !default -$yellow-invert: findColorInvert($yellow) !default -$green-invert: findColorInvert($green) !default -$turquoise-invert: findColorInvert($turquoise) !default -$cyan-invert: findColorInvert($cyan) !default -$blue-invert: findColorInvert($blue) !default -$purple-invert: findColorInvert($purple) !default -$red-invert: findColorInvert($red) !default - -$primary-invert: findColorInvert($primary) !default -$primary-light: findLightColor($primary) !default -$primary-dark: findDarkColor($primary) !default -$info-invert: findColorInvert($info) !default -$info-light: findLightColor($info) !default -$info-dark: findDarkColor($info) !default -$success-invert: findColorInvert($success) !default -$success-light: findLightColor($success) !default -$success-dark: findDarkColor($success) !default -$warning-invert: findColorInvert($warning) !default -$warning-light: findLightColor($warning) !default -$warning-dark: findDarkColor($warning) !default -$danger-invert: findColorInvert($danger) !default -$danger-light: findLightColor($danger) !default -$danger-dark: findDarkColor($danger) !default -$light-invert: findColorInvert($light) !default -$dark-invert: findColorInvert($dark) !default - -// General colors - -$scheme-main: $white !default -$scheme-main-bis: $white-bis !default -$scheme-main-ter: $white-ter !default -$scheme-invert: $black !default -$scheme-invert-bis: $black-bis !default -$scheme-invert-ter: $black-ter !default - -$background: $white-ter !default - -$border: $grey-lighter !default -$border-hover: $grey-light !default -$border-light: $grey-lightest !default -$border-light-hover: $grey-light !default - -// Text colors - -$text: $grey-dark !default -$text-invert: findColorInvert($text) !default -$text-light: $grey !default -$text-strong: $grey-darker !default - -// Code colors - -$code: $red !default -$code-background: $background !default - -$pre: $text !default -$pre-background: $background !default - -// Link colors - -$link: $blue !default -$link-invert: findColorInvert($link) !default -$link-light: findLightColor($link) !default -$link-dark: findDarkColor($link) !default -$link-visited: $purple !default - -$link-hover: $grey-darker !default -$link-hover-border: $grey-light !default - -$link-focus: $grey-darker !default -$link-focus-border: $blue !default - -$link-active: $grey-darker !default -$link-active-border: $grey-dark !default - -// Typography - -$family-primary: $family-sans-serif !default -$family-secondary: $family-sans-serif !default -$family-code: $family-monospace !default - -$size-small: $size-7 !default -$size-normal: $size-6 !default -$size-medium: $size-5 !default -$size-large: $size-4 !default - -// Lists and maps -$custom-colors: null !default -$custom-shades: null !default - -$colors: mergeColorMaps(("white": ($white, $black), "black": ($black, $white), "light": ($light, $light-invert), "dark": ($dark, $dark-invert), "primary": ($primary, $primary-invert, $primary-light, $primary-dark), "link": ($link, $link-invert, $link-light, $link-dark), "info": ($info, $info-invert, $info-light, $info-dark), "success": ($success, $success-invert, $success-light, $success-dark), "warning": ($warning, $warning-invert, $warning-light, $warning-dark), "danger": ($danger, $danger-invert, $danger-light, $danger-dark)), $custom-colors) !default -$shades: mergeColorMaps(("black-bis": $black-bis, "black-ter": $black-ter, "grey-darker": $grey-darker, "grey-dark": $grey-dark, "grey": $grey, "grey-light": $grey-light, "grey-lighter": $grey-lighter, "white-ter": $white-ter, "white-bis": $white-bis), $custom-shades) !default - -$sizes: $size-1 $size-2 $size-3 $size-4 $size-5 $size-6 $size-7 !default diff --git a/docs/_sass/sass/utilities/functions.sass b/docs/_sass/sass/utilities/functions.sass deleted file mode 100644 index 481ab953b2..0000000000 --- a/docs/_sass/sass/utilities/functions.sass +++ /dev/null @@ -1,98 +0,0 @@ -@function mergeColorMaps($bulma-colors, $custom-colors) - // We return at least Bulma's hard-coded colors - $merged-colors: $bulma-colors - - // We want a map as input - @if type-of($custom-colors) == 'map' - @each $name, $components in $custom-colors - // The color name should be a string - // and the components either a single color - // or a colors list with at least one element - @if type-of($name) == 'string' and (type-of($components) == 'list' or type-of($components) == 'color') and length($components) >= 1 - $color-base: null - $color-invert: null - $color-light: null - $color-dark: null - $value: null - - // The param can either be a single color - // or a list of 2 colors - @if type-of($components) == 'color' - $color-base: $components - $color-invert: findColorInvert($color-base) - $color-light: findLightColor($color-base) - $color-dark: findDarkColor($color-base) - @else if type-of($components) == 'list' - $color-base: nth($components, 1) - // If Invert, Light and Dark are provided - @if length($components) > 3 - $color-invert: nth($components, 2) - $color-light: nth($components, 3) - $color-dark: nth($components, 4) - // If only Invert and Light are provided - @else if length($components) > 2 - $color-invert: nth($components, 2) - $color-light: nth($components, 3) - $color-dark: findDarkColor($color-base) - // If only Invert is provided - @else - $color-invert: nth($components, 2) - $color-light: findLightColor($color-base) - $color-dark: findDarkColor($color-base) - - $value: ($color-base, $color-invert, $color-light, $color-dark) - - // We only want to merge the map if the color base is an actual color - @if type-of($color-base) == 'color' - // We merge this colors elements as map with Bulma's colors map - // (we can override them this way, no multiple definition for the same name) - // $merged-colors: map_merge($merged-colors, ($name: ($color-base, $color-invert, $color-light, $color-dark))) - $merged-colors: map_merge($merged-colors, ($name: $value)) - - @return $merged-colors - -@function powerNumber($number, $exp) - $value: 1 - @if $exp > 0 - @for $i from 1 through $exp - $value: $value * $number - @else if $exp < 0 - @for $i from 1 through -$exp - $value: $value / $number - @return $value - -@function colorLuminance($color) - $color-rgb: ('red': red($color),'green': green($color),'blue': blue($color)) - @each $name, $value in $color-rgb - $adjusted: 0 - $value: $value / 255 - @if $value < 0.03928 - $value: $value / 12.92 - @else - $value: ($value + .055) / 1.055 - $value: powerNumber($value, 2) - $color-rgb: map-merge($color-rgb, ($name: $value)) - @return (map-get($color-rgb, 'red') * .2126) + (map-get($color-rgb, 'green') * .7152) + (map-get($color-rgb, 'blue') * .0722) - -@function findColorInvert($color) - @if (colorLuminance($color) > 0.55) - @return rgba(#000, 0.7) - @else - @return #fff - -@function findLightColor($color) - @if type-of($color) == 'color' - $l: 96% - @if lightness($color) > 96% - $l: lightness($color) - @return change-color($color, $lightness: $l) - @return $background - -@function findDarkColor($color) - @if type-of($color) == 'color' - $base-l: 29% - $luminance: colorLuminance($color) - $luminance-delta: (0.53 - $luminance) - $target-l: round($base-l + ($luminance-delta * 53)) - @return change-color($color, $lightness: max($base-l, $target-l)) - @return $text-strong diff --git a/docs/_sass/sass/utilities/initial-variables.sass b/docs/_sass/sass/utilities/initial-variables.sass deleted file mode 100644 index 03bbc128c7..0000000000 --- a/docs/_sass/sass/utilities/initial-variables.sass +++ /dev/null @@ -1,77 +0,0 @@ -// Colors - -$black: hsl(0, 0%, 4%) !default -$black-bis: hsl(0, 0%, 7%) !default -$black-ter: hsl(0, 0%, 14%) !default - -$grey-darker: hsl(0, 0%, 21%) !default -$grey-dark: hsl(0, 0%, 29%) !default -$grey: hsl(0, 0%, 48%) !default -$grey-light: hsl(0, 0%, 71%) !default -$grey-lighter: hsl(0, 0%, 86%) !default -$grey-lightest: hsl(0, 0%, 93%) !default - -$white-ter: hsl(0, 0%, 96%) !default -$white-bis: hsl(0, 0%, 98%) !default -$white: hsl(0, 0%, 100%) !default - -$orange: hsl(14, 100%, 53%) !default -$yellow: hsl(48, 100%, 67%) !default -$green: hsl(141, 53%, 53%) !default -$turquoise: hsl(171, 100%, 41%) !default -$cyan: hsl(204, 71%, 53%) !default -$blue: hsl(217, 71%, 53%) !default -$purple: hsl(271, 100%, 71%) !default -$red: hsl(348, 86%, 61%) !default - -// Typography - -$family-sans-serif: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !default -$family-monospace: monospace !default -$render-mode: optimizeLegibility !default - -$size-1: 3rem !default -$size-2: 2.5rem !default -$size-3: 2rem !default -$size-4: 1.5rem !default -$size-5: 1.25rem !default -$size-6: 1rem !default -$size-7: 0.75rem !default - -$weight-light: 300 !default -$weight-normal: 400 !default -$weight-medium: 500 !default -$weight-semibold: 600 !default -$weight-bold: 700 !default - -// Spacing - -$block-spacing: 1.5rem !default - -// Responsiveness - -// The container horizontal gap, which acts as the offset for breakpoints -$gap: 32px !default -// 960, 1152, and 1344 have been chosen because they are divisible by both 12 and 16 -$tablet: 769px !default -// 960px container + 4rem -$desktop: 960px + (2 * $gap) !default -// 1152px container + 4rem -$widescreen: 1152px + (2 * $gap) !default -$widescreen-enabled: true !default -// 1344px container + 4rem -$fullhd: 1344px + (2 * $gap) !default -$fullhd-enabled: true !default - -// Miscellaneous - -$easing: ease-out !default -$radius-small: 2px !default -$radius: 4px !default -$radius-large: 6px !default -$radius-rounded: 290486px !default -$speed: 86ms !default - -// Flags - -$variable-columns: true !default diff --git a/docs/_sass/sass/utilities/mixins.sass b/docs/_sass/sass/utilities/mixins.sass deleted file mode 100644 index 4ef2985be9..0000000000 --- a/docs/_sass/sass/utilities/mixins.sass +++ /dev/null @@ -1,261 +0,0 @@ -@import "initial-variables" - -=clearfix - &::after - clear: both - content: " " - display: table - -=center($width, $height: 0) - position: absolute - @if $height != 0 - left: calc(50% - (#{$width} / 2)) - top: calc(50% - (#{$height} / 2)) - @else - left: calc(50% - (#{$width} / 2)) - top: calc(50% - (#{$width} / 2)) - -=fa($size, $dimensions) - display: inline-block - font-size: $size - height: $dimensions - line-height: $dimensions - text-align: center - vertical-align: top - width: $dimensions - -=hamburger($dimensions) - cursor: pointer - display: block - height: $dimensions - position: relative - width: $dimensions - span - background-color: currentColor - display: block - height: 1px - left: calc(50% - 8px) - position: absolute - transform-origin: center - transition-duration: $speed - transition-property: background-color, opacity, transform - transition-timing-function: $easing - width: 16px - &:nth-child(1) - top: calc(50% - 6px) - &:nth-child(2) - top: calc(50% - 1px) - &:nth-child(3) - top: calc(50% + 4px) - &:hover - background-color: rgba(black, 0.05) - // Modifers - &.is-active - span - &:nth-child(1) - transform: translateY(5px) rotate(45deg) - &:nth-child(2) - opacity: 0 - &:nth-child(3) - transform: translateY(-5px) rotate(-45deg) - -=overflow-touch - -webkit-overflow-scrolling: touch - -=placeholder - $placeholders: ':-moz' ':-webkit-input' '-moz' '-ms-input' - @each $placeholder in $placeholders - &:#{$placeholder}-placeholder - @content - -// Responsiveness - -=from($device) - @media screen and (min-width: $device) - @content - -=until($device) - @media screen and (max-width: $device - 1px) - @content - -=mobile - @media screen and (max-width: $tablet - 1px) - @content - -=tablet - @media screen and (min-width: $tablet), print - @content - -=tablet-only - @media screen and (min-width: $tablet) and (max-width: $desktop - 1px) - @content - -=touch - @media screen and (max-width: $desktop - 1px) - @content - -=desktop - @media screen and (min-width: $desktop) - @content - -=desktop-only - @if $widescreen-enabled - @media screen and (min-width: $desktop) and (max-width: $widescreen - 1px) - @content - -=until-widescreen - @if $widescreen-enabled - @media screen and (max-width: $widescreen - 1px) - @content - -=widescreen - @if $widescreen-enabled - @media screen and (min-width: $widescreen) - @content - -=widescreen-only - @if $widescreen-enabled and $fullhd-enabled - @media screen and (min-width: $widescreen) and (max-width: $fullhd - 1px) - @content - -=until-fullhd - @if $fullhd-enabled - @media screen and (max-width: $fullhd - 1px) - @content - -=fullhd - @if $fullhd-enabled - @media screen and (min-width: $fullhd) - @content - -// Placeholders - -=unselectable - -webkit-touch-callout: none - -webkit-user-select: none - -moz-user-select: none - -ms-user-select: none - user-select: none - -%unselectable - +unselectable - -=arrow($color: transparent) - border: 3px solid $color - border-radius: 2px - border-right: 0 - border-top: 0 - content: " " - display: block - height: 0.625em - margin-top: -0.4375em - pointer-events: none - position: absolute - top: 50% - transform: rotate(-45deg) - transform-origin: center - width: 0.625em - -%arrow - +arrow - -=block($spacing: $block-spacing) - &:not(:last-child) - margin-bottom: $spacing - -%block - +block - -=delete - @extend %unselectable - -moz-appearance: none - -webkit-appearance: none - background-color: rgba($scheme-invert, 0.2) - border: none - border-radius: $radius-rounded - cursor: pointer - pointer-events: auto - display: inline-block - flex-grow: 0 - flex-shrink: 0 - font-size: 0 - height: 20px - max-height: 20px - max-width: 20px - min-height: 20px - min-width: 20px - outline: none - position: relative - vertical-align: top - width: 20px - &::before, - &::after - background-color: $scheme-main - content: "" - display: block - left: 50% - position: absolute - top: 50% - transform: translateX(-50%) translateY(-50%) rotate(45deg) - transform-origin: center center - &::before - height: 2px - width: 50% - &::after - height: 50% - width: 2px - &:hover, - &:focus - background-color: rgba($scheme-invert, 0.3) - &:active - background-color: rgba($scheme-invert, 0.4) - // Sizes - &.is-small - height: 16px - max-height: 16px - max-width: 16px - min-height: 16px - min-width: 16px - width: 16px - &.is-medium - height: 24px - max-height: 24px - max-width: 24px - min-height: 24px - min-width: 24px - width: 24px - &.is-large - height: 32px - max-height: 32px - max-width: 32px - min-height: 32px - min-width: 32px - width: 32px - -%delete - +delete - -=loader - animation: spinAround 500ms infinite linear - border: 2px solid $grey-lighter - border-radius: $radius-rounded - border-right-color: transparent - border-top-color: transparent - content: "" - display: block - height: 1em - position: relative - width: 1em - -%loader - +loader - -=overlay($offset: 0) - bottom: $offset - left: $offset - position: absolute - right: $offset - top: $offset - -%overlay - +overlay diff --git a/docs/api.md b/docs/api.md deleted file mode 100644 index 7939f45fee..0000000000 --- a/docs/api.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -title: "API" -layout: "api" ---- - -# API @ima/core - -
    - -
    -
    - Version - {{ site.data.common.version }} -
    -
    - -
    -
    - Generated - {{ 'now' | date: "%Y-%m-%d %H:%M" }} -
    -
    -
    diff --git a/docs/docs/controller-lifecycle.md b/docs/basic-features/controller-lifecycle.md similarity index 91% rename from docs/docs/controller-lifecycle.md rename to docs/basic-features/controller-lifecycle.md index d861d5654c..17324075ae 100644 --- a/docs/docs/controller-lifecycle.md +++ b/docs/basic-features/controller-lifecycle.md @@ -1,13 +1,12 @@ --- -layout: "docs" -title: "Docs - Controller lifecycle" +title: Controller lifecycle +description: Basic features > Controller lifecycle and it's API --- IMA.js **AbstractController** provides a few methods you can implement in order to catch various lifecycle events and react to them. Each method description has *@server* or *@client* notation next to them symbolizing where the method is executed. -
    - -
    +![](/img/docs/diagram-controller.png) + ## `init()` *@server/client* @@ -32,7 +31,7 @@ Any returned promise that gets **rejected** will redirect the application to the error page. The error page that will be used depends on the status code of the error. -Since **v17** you can use `async/await` instead of promises. This means the `load` method will have **async** prefix and resources will be loaded synchronously using **await** keyword. +Since **v17** you can use `async/await` instead of promises. This means the `load` method will have **async** prefix and resources will be loaded synchronously using **await** keyword. ```javascript async load() { @@ -57,7 +56,7 @@ async load() { if (article.commentsCount && article.commentsAllowed) { comments = await this._commentService.list({ articleId: article.id }); } - + return { article, comments, user: userPromise }; } ``` @@ -68,7 +67,7 @@ A benefit to using **async/await** is simplicity and better handling of data. Im async load() { const checkoutData = await this._checkoutService.getByCookie(); const { items, payment, shipping } = checkoutData; - + return { cartItems: items, paymentDetails: payment, @@ -85,7 +84,7 @@ loaded resources from the [`load()`](#load-serverclient) method and the view has `setMetaParams()` method receives following arguments: - **loadedResources** - A plain object representing a map of resource names to resources loaded by the [`load()`](#load-serverclient) method. This is the same object as the one passed to the `setState()` method. -- **metaManager** - Meta attributes manager instance to configure (See [SEO & MetaManager](/docs/seo-and-meta-manager) page). +- **metaManager** - Meta attributes manager instance to configure (See [SEO & MetaManager](./seo-and-meta-manager) page). - **router** - The current application router. - **dictionary** - The current localization dictionary - **settings** - The application settings for the current application environment. @@ -94,7 +93,7 @@ loaded resources from the [`load()`](#load-serverclient) method and the view has Callback for activating the controller when the **route updated** to one of those that are associated with the controller or the controller is **revived** at the client side. -This method is the last method invoked during controller initialization. `activate()` is called after all the promises returned from the [`load()`](#load-serverclient) method have been resolved and the controller has configured the meta manager. +This method is the last method invoked during controller initialization. `activate()` is called after all the promises returned from the [`load()`](#load-serverclient) method have been resolved and the controller has configured the meta manager. When reviving the state from the **server side** all promises are resolved and meta values set, therefore the controller state is fully complete. @@ -103,7 +102,7 @@ This method is a good place to register any React and DOM event listeners. The c ## `update()` *@client* Callback for updating the controller after a route update. This method -is invoked if the current [route has the `onlyUpdate = true` flag set](/docs/routing#4-options) and the current controller and view match those used by the previously active route, or, the `onlyUpdate` option of the current route is a callback and returned `true`. +is invoked if the current [route has the `onlyUpdate = true` flag set](./routing.md#4-options) and the current controller and view match those used by the previously active route, or, the `onlyUpdate` option of the current route is a callback and returned `true`. The method must return an object with the same semantics as the result of the [`load()`](#load-serverclient) method. The controller's state will only be @@ -111,7 +110,7 @@ patched by the returned object instead of replacing it completely. The other controller lifecycle callbacks ([`init()`](#init--serverclient), [`load()`](#load-serverclient), [`activate()`](#activate--client), [`deactivate()`](#deactivate--client), [`destroy()`](#destroy--client)) are not call in case this method is used. -`update()` method receives argument **prevParams**; an object containing previous route parameters. +`update()` method receives argument **prevParams**; an object containing previous route parameters. ## `deactivate()` *@client* @@ -119,7 +118,7 @@ Callback for deactivating the controller. This is the first method invoked during controller deinitialization. This usually happens when the user navigates to a different URL. -This method is the lifecycle counterpart of the [`activate()`](#activate--client) method. When the [`activate()`](#activate--client) method has not been called `deactivate()` won't be called either. +This method is the lifecycle counterpart of the [`activate()`](#activate--client) method. When the [`activate()`](#activate--client) method has not been called `deactivate()` won't be called either. The controller should deregister listeners and release all resources obtained in the [`activate()`](#activate--client) method. diff --git a/docs/docs/dictionary.md b/docs/basic-features/dictionary.md similarity index 91% rename from docs/docs/dictionary.md rename to docs/basic-features/dictionary.md index c78d27cb3d..f702b0ebb2 100644 --- a/docs/docs/dictionary.md +++ b/docs/basic-features/dictionary.md @@ -1,6 +1,6 @@ --- -layout: "docs" -title: "Docs - Dictionary )i18n & l10n)" +title: Dictionary +description: Basic features > Dictionary and language features --- Dictionary in IMA.js app serves many purposes. Simplest of them is keeping text strings out of component markup. More advanced one would be internationalisation and in-text replacements. @@ -61,4 +61,4 @@ _renderSubmitButton() { } ``` -Dictionary is also registered in [Object Container](/docs/object-container) and thus can be obtained in Controllers, Extensions and other classes constructed through OC. +Dictionary is also registered in [Object Container](./object-container.md) and thus can be obtained in Controllers, Extensions and other classes constructed through OC. diff --git a/docs/docs/errors.md b/docs/basic-features/errors.md similarity index 90% rename from docs/docs/errors.md rename to docs/basic-features/errors.md index 5394bf55de..31a811736b 100644 --- a/docs/docs/errors.md +++ b/docs/basic-features/errors.md @@ -1,6 +1,6 @@ --- -layout: "docs" -title: "Docs - Errors" +title: Errors +description: Basic features > Errors --- IMA.js implements a custom error class that poses a structure for http errors. diff --git a/docs/docs/events.md b/docs/basic-features/events.md similarity index 95% rename from docs/docs/events.md rename to docs/basic-features/events.md index e949ef9de8..65cb7d9406 100644 --- a/docs/docs/events.md +++ b/docs/basic-features/events.md @@ -1,6 +1,6 @@ --- -layout: "docs" -title: "Docs - EventBus, Dispatcher & Events" +title: Events +description: Basic features > EventBus and Dispatcher --- Major part of development in JavaScript relies on **events**. It's easy solution to @@ -115,8 +115,8 @@ to create events that propagate up the tree of the UI components. The common way to propagate event in other directions, or to other parts of the UI, or from the controller to the UI is using the `app/event/Dispatcher` API. -**Accessing Dispatcher in Controllers** is easy with [Dependency Injection](/docs/object-container#1-dependency-injection). -**To access Dispatcher from Views and Components** you should register it in [ComponentUtils](/docs/views-and-components#utilities-shared-across-views-and-components). +**Accessing Dispatcher in Controllers** is easy with [Dependency Injection](./object-container.md#1-dependency-injection). +**To access Dispatcher from Views and Components** you should register it in [ComponentUtils](./views-and-components.md#utilities-shared-across-views-and-components). ```javascript // app/config/bind.js @@ -171,7 +171,7 @@ onLightboxShow(data) { will still receive the `showLightbox` event when it's fired. > **Note:** A great place to -mount components like Lightbox is [ManagedRootView](/docs/rendering-process#managedrootview). +mount components like Lightbox is [ManagedRootView](./rendering-process.md#managedrootview). Note that events distributed using the Dispatcher are useful only in very specific use-cases, so the Dispatcher logs a warning to the console if there @@ -197,7 +197,7 @@ before the page change starts. The data passed with the event look like this: path, // route options extended of options provided to the function // that triggered the routing - options, + options, // an action object describing what triggered the routing // if a PopStateEvent triggered the routing the action object will // look like this { type: 'popstate', event: PopStateEvent } @@ -231,12 +231,12 @@ following data: } ``` -> **Note:** You can mutate the `newState` object if you wish. Mutating +> **Note:** You can mutate the `newState` object if you wish. Mutating `oldState` and `patchState` will have no effect. ### StateEvents.`AFTER_CHANGE_STATE` -An event fired after the page state changes. The data passed with this event +An event fired after the page state changes. The data passed with this event contain only the `newState` object. ### RendererEvents.`MOUNTED` diff --git a/docs/docs/extensions.md b/docs/basic-features/extensions.md similarity index 84% rename from docs/docs/extensions.md rename to docs/basic-features/extensions.md index 02bf629547..6e021445fe 100644 --- a/docs/docs/extensions.md +++ b/docs/basic-features/extensions.md @@ -1,37 +1,36 @@ --- -layout: "docs" -title: "Docs - Extensions" +title: Extensions +description: Basic features > Extensions as a companion to Controllers --- Extensions provide means of extending the page controllers with additional -managed state and logic. +managed state and logic. -An extension has access to the current route -parameters, can specify the resources to load when the page is loading or -being updated, may intercept event bus events and modify the state of the -page just like an ordinary controller, except that the modifications are -restricted to the state fields which the extension explicitly specifies +An extension has access to the current route +parameters, can specify the resources to load when the page is loading or +being updated, may intercept event bus events and modify the state of the +page just like an ordinary controller, except that the modifications are +restricted to the state fields which the extension explicitly specifies using its `getAllowedStateKeys()` method. -
    - -
    +![](/img/docs/diagram-extensions.png) + ## Why use extensions -Best case to use extension is a component that -requires interception of controller lifecycle events and/or loading external +Best case to use extension is a component that +requires interception of controller lifecycle events and/or loading external data. -Putting the component's logic inside the controller would be unwise for 3 +Putting the component's logic inside the controller would be unwise for 3 reasons: -1. Controller would contain code that is not as clear. For new-commers to -your project it'd seem strange why you're mixing e.g. **HomeController** +1. Controller would contain code that is not as clear. For new-commers to +your project it'd seem strange why you're mixing e.g. **HomeController** logic with **GalleryComponent** logic. -2. Component file and its extension file should be kept together because nothing is +2. Component file and its extension file should be kept together because nothing is bigger pain than searching for related code in the whole project structure. -3. Component can be used in multiple Views. That means you'd have to +3. Component can be used in multiple Views. That means you'd have to copy & paste the same logic to multiple controllers. ## How to use extensions @@ -52,10 +51,10 @@ app/ └─ ... ``` -In the extension file should be plain `class` extending +In the extension file should be plain `class` extending `ima/extension/AbstractExtension` with the same methods as you'd use in the controller. In addition you should implement `getAllowedStateKeys()` method which returns array of keys the extension is allowed to change in controller's state. -> **Note:** List and description of controller methods can be seen in [Controller lifecycle](/docs/controller-lifecycle). +> **Note:** List and description of controller methods can be seen in [Controller lifecycle](./controller-lifecycle). ```javascript // app/component/gallery/GalleryExtension.js @@ -73,8 +72,8 @@ export default class GalleryExtension extends AbstractExtension { ``` All extensions to be used on a page must be added to the current controller -via `addExtension()` method before the controller is initialized (Good -place for that is the [`init()`](/docs/controller-lifecycle#init-serverclient) method). After that, the extensions will go +via `addExtension()` method before the controller is initialized (Good +place for that is the [`init()`](./controller-lifecycle#init-serverclient) method). After that, the extensions will go through the same lifecycle as the controller. ```javascript @@ -109,7 +108,7 @@ Addition of `async/await` functionality in **v17** can lead to dramatic performa // app/component/gallery/GalleryExtension.js load() { - const { + const { user: userPromise, // needs to be chained with .then() userGroupName, } = this.getState(); @@ -124,6 +123,3 @@ load() { }; } ``` - - - diff --git a/docs/docs/object-container.md b/docs/basic-features/object-container.md similarity index 94% rename from docs/docs/object-container.md rename to docs/basic-features/object-container.md index 972a443e7a..b93a0fb711 100644 --- a/docs/docs/object-container.md +++ b/docs/basic-features/object-container.md @@ -1,10 +1,10 @@ --- -layout: "docs" -title: "Docs - Object container" +title: Object Container +description: Basic features > Object Container and IMA.js dependency injection --- -The **Object Container (OC)** is an enhanced dependency injector with support -for aliases and constants. It is sophisticated and registers everything it comes across but only if it actually matters. For example it registers only **Controllers** and **Views** that you use in `app/config/routes.js`, or [all classes with declared dependencies](https://imajs.io/docs/plugin-interface#automatic-registration-with-object-container) exported by plugins. +The **Object Container (OC)** is an enhanced dependency injector with support +for aliases and constants. It is sophisticated and registers everything it comes across but only if it actually matters. For example it registers only **Controllers** and **Views** that you use in `app/config/routes.js`, or [all classes with declared dependencies](https://imajs.io/docs/plugin-interface#automatic-registration-with-object-container) exported by plugins. By registering controllers and views the OC can simply follow your dependency tree and register everything you might possibly need. Below is a diagram of simple dependency tree. @@ -31,7 +31,7 @@ app/config/routes.js ## Manually registering dependencies Since the OC cannot discover everything and doesn't know about interfaces you can register your dependencies in a file `app/config/bind.js`. -This file contains a function that receives the namespace register +This file contains a function that receives the namespace register *(deprecated)*, OC instance and a config object. ```javascript @@ -49,10 +49,10 @@ Below is list of methods that the OC provides to register your dependencies. ### 1. `bind()` -Binds the specified class or factory function and dependencies to the +Binds the specified class or factory function and dependencies to the specified alias. -This allows to create new instances of the class or the -function by referencing the alias. Same goes for specifying the class of +This allows to create new instances of the class or the +function by referencing the alias. Same goes for specifying the class of the function as a dependency. Also note that the same class or function may be bound to several @@ -64,7 +64,7 @@ dependencies are provided. ```javascript // app/config/bind.js // -// Binding custom router implementation and +// Binding custom router implementation and // UserAgent class from IMA.js user-agent plugin import { UserAgent } from '@ima/plugin-useragent'; @@ -84,7 +84,7 @@ export let init = (ns, oc, config) => { } ``` -> **Note:** The dollar-sign `$` at the beginning of an alias marks IMA.js +> **Note:** The dollar-sign `$` at the beginning of an alias marks IMA.js internal component. ### 2. `constant()` @@ -97,7 +97,7 @@ or constant names. Once the constant is defined it cannot be redefined. ```javascript // app/config/bind.js // -// Assigning API root URL to a constant that can be later used as a dependency +// Assigning API root URL to a constant that can be later used as a dependency // (for example in IMA.js RestAPI client) export let init = (ns, oc, config) => { @@ -105,21 +105,21 @@ export let init = (ns, oc, config) => { } ``` -> **Note:** Constants are not limited to primitive values but can also +> **Note:** Constants are not limited to primitive values but can also take objects. ### 3. `inject()` -Configures the object loader with the specified default dependencies for +Configures the object loader with the specified default dependencies for the specified class. - -New instances of the class created by the OC will receive the provided + +New instances of the class created by the OC will receive the provided dependencies into constructor unless custom dependencies are provided. ```javascript // app/config/bind.js // -// Injecting the rest client. +// Injecting the rest client. // Notice how we used the REST_API_ROOT_URL constant import Cache from 'ima/cache/Cache'; @@ -138,7 +138,7 @@ export let init = (ns, oc, config) => { ### 4. `provide()` -Configures the default implementation of the specified interface. +Configures the default implementation of the specified interface. When the interface is requested from the OC the default implementation is provided. @@ -148,7 +148,7 @@ dependencies or the dependencies provided to the [`create()`](#3-create) method. ```javascript // app/config/bind.js // -// +// import { AbstractRestClient } from 'ima-plugin-rest-client'; import SimpleRestClient from 'app/rest-client-impl/SimpleRestClient'; @@ -156,12 +156,12 @@ import SimpleRestClient from 'app/rest-client-impl/SimpleRestClient'; export let init = (ns, oc, config) => { oc.provide(AbstractRestClient, SimpleRestClient); - // We didn't specify any dependencies on purpose + // We didn't specify any dependencies on purpose // they were set in the previous example. // Otherwise it would be like this: oc.provide( - AbstractRestClient, + AbstractRestClient, SimpleRestClient, [ HttpAgent, Cache, 'REST_API_ROOT_URL', LinkGenerator @@ -247,19 +247,19 @@ import LinkGenerator from 'app/rest-client-impl/LinkGenerator'; oc.create('UserAgent'); oc.create( - SimpleRestClient, + SimpleRestClient, [ HttpAgent, Cache, 'REST_API_ROOT_URL', LinkGenerator ] ); ``` -The last two method are not used as much as the first one but can be +The last two method are not used as much as the first one but can be useful inside the `app/config/bind.js` and `app/config/routes.js` ## Other methods -- `has()` returns `true` if the specified object, class or resource is registered +- `has()` returns `true` if the specified object, class or resource is registered within the OC. ```javascript diff --git a/docs/docs/page-manager.md b/docs/basic-features/page-manager.md similarity index 60% rename from docs/docs/page-manager.md rename to docs/basic-features/page-manager.md index aa33636af3..c56e74726c 100644 --- a/docs/docs/page-manager.md +++ b/docs/basic-features/page-manager.md @@ -1,43 +1,41 @@ --- -layout: "docs" -title: "Docs - Page manager" +title: Page Manager +description: Basic features > Page Manager and app rendering --- Page Manager is an essential part of IMA.js. It's something like a puppeteer that manipulates with pages and views. Once a router matches URL to one of route's path the page manager takes care of the rest. -
    - -
    +![](/img/docs/diagram-page-manager.png) ## Managing process -If the new matched route has [`onlyUpdate` option](/docs/routing#4-options) set to `true` and the controller and view hasn't changed the route transition is dispatched only through [`update` method](/docs/controller-lifecycle#update-client) of the controller. +If the new matched route has [`onlyUpdate` option](./routing#4-options) set to `true` and the controller and view hasn't changed the route transition is dispatched only through [`update` method](./controller-lifecycle#update-client) of the controller. In every other case the manager goes through it's full process: -1. **Unload previous controller and extensions** - To make room for the new, manager has to get rid of the old controller and extensions. First calls [`deactivate` method](/docs/controller-lifecycle#deactivate-client) on every extension registered in the old controller and then the same method on the controller itself. -Same process follows with [`destroy` method](/docs/controller-lifecycle#destroy-client). +1. **Unload previous controller and extensions** - To make room for the new, manager has to get rid of the old controller and extensions. First calls [`deactivate` method](./controller-lifecycle#deactivate-client) on every extension registered in the old controller and then the same method on the controller itself. +Same process follows with [`destroy` method](./controller-lifecycle#destroy-client). -2. **Clear state and unmount view** - After unloading controller and extensions the page state is cleared and view (starting from [ManagedRootView](/docs/rendering-process#managedrootview)) is unmounted. However if the [DocumentView](/docs/rendering-process#documentview), [ViewAdapter](/docs/rendering-process#viewadapter) and [ManagedRootView](/docs/rendering-process#managedrootview) are the same for the new route the view is cleared rather then unmounted. This way you can achieve component persistency. +2. **Clear state and unmount view** - After unloading controller and extensions the page state is cleared and view (starting from [ManagedRootView](./rendering-process#managedrootview)) is unmounted. However if the [DocumentView](./rendering-process#documentview), [ViewAdapter](./rendering-process#viewadapter) and [ManagedRootView](./rendering-process#managedrootview) are the same for the new route the view is cleared rather then unmounted. This way you can achieve component persistency. -3. **Loading new controller and extensions** - After the manager is done with clearing previous resource it initialises the new ones. First the [`init` method](/docs/controller-lifecycle#init-serverclient) is called on controller then on every extension (Extensions may [be initialised](/docs/extensions#how-to-use-extensions) during the controllers `init` method call). -When the initialisation is complete manager starts loading resources via `load` method of the controller and extensions. For detailed explanation see the [`load` method documentation](/docs/controller-lifecycle#load-serverclient). +3. **Loading new controller and extensions** - After the manager is done with clearing previous resource it initialises the new ones. First the [`init` method](./controller-lifecycle#init-serverclient) is called on controller then on every extension (Extensions may [be initialised](./extensions#how-to-use-extensions) during the controllers `init` method call). +When the initialisation is complete manager starts loading resources via `load` method of the controller and extensions. For detailed explanation see the [`load` method documentation](./controller-lifecycle#load-serverclient). -4. **Rendering new view** - After the `load` method has been called a view for the controller is rendered. It doesn't matter if all promises returned by the `load` method have been resolved. The process of handling promises is described in the [`load` method documentation](/docs/controller-lifecycle#load-serverclient). Following rendering process is described on a page [Rendering process](/docs/rendering-process) and [View & Components](/docs/views-and-components). +4. **Rendering new view** - After the `load` method has been called a view for the controller is rendered. It doesn't matter if all promises returned by the `load` method have been resolved. The process of handling promises is described in the [`load` method documentation](./controller-lifecycle#load-serverclient). Following rendering process is described on a page [Rendering process](./rendering-process) and [View & Components](./views-and-components). ## Intervene into the process -It's possible for you to intervene into the process before it starts and after it finished. One way is to listen to [`BEFORE_HANDLE_ROUTE`](/docs/events#built-in-events) and [`AFTER_HANDLE_ROUTE`](/docs/events#built-in-events) dispatcher events. However from inside event listeners you cannot intercept or modify the process. For this purpose we've introduced PageManagerHandlers in [v16](/docs/migration-0.16.0) +It's possible for you to intervene into the process before it starts and after it finished. One way is to listen to [`BEFORE_HANDLE_ROUTE`](./events#built-in-events) and [`AFTER_HANDLE_ROUTE`](./events#built-in-events) dispatcher events. However from inside event listeners you cannot intercept or modify the process. For this purpose we've introduced PageManagerHandlers in [v16](../migration/migration-0.16.0.md) ### PageManagerHandlers -PageManagerHandler is a simple class that extends `ima/page/handler/PageHandler`. It can obtain dependencies through [dependency injection](/docs/object-container#1-dependency-injection). Each handler should contain 4 methods: +PageManagerHandler is a simple class that extends `ima/page/handler/PageHandler`. It can obtain dependencies through [dependency injection](./object-container#1-dependency-injection). Each handler should contain 4 methods: #### 1. `init()` method For purpose of initialising. #### 2. `handlePreManagedState()` method -This method is called before the page manager start taking any action. It receives 3 arguments `managedPage`, `nextManagedPage` and `action`. `managedPage` holds information about current page, `nextManagedPage` about following page. Each of the "managed page" arguments has following shape: +This method is called before the page manager start taking any action. It receives 3 arguments `managedPage`, `nextManagedPage` and `action`. `managedPage` holds information about current page, `nextManagedPage` about following page. Each of the "managed page" arguments has following shape: ```javascript { @@ -48,7 +46,7 @@ This method is called before the page manager start taking any action. It receiv viewInstance: ?React.Element, // instantiated view route: ?Route, // matched route that leads to the controller options: ?RouteOptions, // route options - params: ?Object, // route parameters and their values + params: ?Object, // route parameters and their values state: { activated: boolean // if the page has been activated } @@ -60,14 +58,14 @@ and finally the `action` is an object describing what triggered the routing. If This method is a counterpart to `handlePreManagedState()` method. It's called after page transition is finished. It receives similar arguments (`managedPage`, `previousManagedPage` and `action`). `previousManagedPage` holds information about previous page. -> **Note:** `handlePreManagedState()` and `handlePostManagedState()` methods can interrupt transition process by throwing an error. The thrown error should be instance of [`GenericError`](/docs/errors) with a status code specified. That way the router can handle thrown error accordingly. +> **Note:** `handlePreManagedState()` and `handlePostManagedState()` methods can interrupt transition process by throwing an error. The thrown error should be instance of [`GenericError`](./errors) with a status code specified. That way the router can handle thrown error accordingly. #### 4. `destroy()` method For purpose of destructing ## Registering PageManagerHandlers -PageManagerHandlers have their own registry **PageHandlerRegistry**. Every handler you create should be registered as a dependency of this registry. +PageManagerHandlers have their own registry **PageHandlerRegistry**. Every handler you create should be registered as a dependency of this registry. ```javascript // app/config/bind.js @@ -89,7 +87,7 @@ export let init = (ns, oc, config) => { ## PageNavigationHandler -With introduction of PageManagerHandlers in [v16](/docs/migration-0.16.0) we've moved some functionality to predefined handler [**PageNavigationHandler**](https://github.com/seznam/ima/blob/master/packages/core/src/page/handler/PageNavigationHandler.js). This handler takes care of saving scroll position, restoring scroll position and settings browser's address bar URL. You're free to extend it, override it or whatever else you want. +With introduction of PageManagerHandlers in [v16](../migration/migration-0.16.0.md) we've moved some functionality to predefined handler [**PageNavigationHandler**](https://github.com/seznam/ima/blob/master/packages/core/src/page/handler/PageNavigationHandler.js). This handler takes care of saving scroll position, restoring scroll position and settings browser's address bar URL. You're free to extend it, override it or whatever else you want. PageNavigationHandler is registered by default, but when you register your own handlers you need to specify PageNavigationHandler as well. @@ -102,7 +100,3 @@ export let init = (ns, oc, config) => { oc.inject(PageHandlerRegistry, [PageNavigationHandler, MyOwnHandler]); }; ``` - - - - diff --git a/docs/docs/page-state.md b/docs/basic-features/page-state.md similarity index 92% rename from docs/docs/page-state.md rename to docs/basic-features/page-state.md index b442abf594..887b1c0e52 100644 --- a/docs/docs/page-state.md +++ b/docs/basic-features/page-state.md @@ -1,13 +1,12 @@ --- -layout: "docs" -title: "Docs - Page state" +title: Page State +description: Basic features > Page State and it's usage --- Core of each application is the data the app is working with. The data needs to be managed in some manner and user needs to be able to manipulate with the data during application run. IMA.js adopted a React style of state management. -
    - -
    +![](/img/docs/diagram-page-state.png) + A **PageStateManager** class is used for managing **page state** and is in tight cooperation with **PageManager**. PageManager need state manager to collect initial state from Controller and registered extension, and to be informed about every state change that happens inside Controller or Extension. @@ -27,7 +26,7 @@ onVisibilityToggle() { ``` ## Initial page state -First additions to page state are set when `load` method of a Controller and Extensions returns an object of resources. These resources may be plain data or (un)resolved promises. Promises are handled differently on server vs. client. This behaviour is described in Controller's [`load` method documentation](/docs/controller-lifecycle#load-serverclient). +First additions to page state are set when `load` method of a Controller and Extensions returns an object of resources. These resources may be plain data or (un)resolved promises. Promises are handled differently on server vs. client. This behaviour is described in Controller's [`load` method documentation](./controller-lifecycle#load-serverclient). ## Partial state Since Extensions also have a word in loading resources it may be necessary to share resources between Controller and Extensions. Here comes partial state into play. It allows you to call `getState` method in `load` method of an Extension. Received state consists of states collected from loaded Controller and Extensions loaded prior to the current Extension. Extensions are loaded in the same order as they were registered in a Controller. @@ -84,7 +83,7 @@ If you want to see what changes are in queue from the begin of transaction call To finish the transaction you have to call `commitStateTransaction()` method. It will squash all the patches made during the transaction into a one and apply it to the original state. -Therefore your application will re-render only once and you'll also receive [state events](/docs/events#stateeventsbefore_change_state) only once. +Therefore your application will re-render only once and you'll also receive [state events](./events#stateeventsbefore_change_state) only once. Another way to finish the transaction is to cancel it via `cancelStateTransaction()` method. @@ -118,6 +117,3 @@ async deleteArtiacleRevisions() { In the example above, after the form is submitted with `deleteRevisions = true`: - Two `setState` calls are made - Only one render is triggered after the `commitStateTransaction` call - - - diff --git a/docs/docs/rendering-process.md b/docs/basic-features/rendering-process.md similarity index 82% rename from docs/docs/rendering-process.md rename to docs/basic-features/rendering-process.md index 21313a2d41..df24f3fcba 100644 --- a/docs/docs/rendering-process.md +++ b/docs/basic-features/rendering-process.md @@ -1,25 +1,23 @@ --- -layout: "docs" -title: "Docs - Rendering process" +title: Rendering process +description: Basic features > Rendering process --- -The rendering process goes through many points you can customize or take -advantage of. First thing IMA.js will want to render is a **DocumentView** +The rendering process goes through many points you can customize or take +advantage of. First thing IMA.js will want to render is a **DocumentView** followed by **ViewAdapter** and **ManagedRootView**. -
    - -
    +![](/img/docs/diagram-rendering.png) ## DocumentView DocumentView is the root of your application's html markup and a mounting point -for all the views. It's only rendered at the server-side and then send to the -client with the application state inlined as a string. The application state is +for all the views. It's only rendered at the server-side and then send to the +client with the application state inlined as a string. The application state is then revived and your application re-rendered. DocumentView component can be found in `app/component/document/DocumentView.jsx` -and is registered in a file `app/config/settings.js` in property +and is registered in a file `app/config/settings.js` in property `$Page.$Render.documentView`. ```javascript @@ -39,55 +37,55 @@ export default (ns, oc, config) => { } } }; -} +} ``` This configuration affects all pages across the -application. To change DocumentView for an individual route use option -`documentView` when registering the route (See [Route options](/docs/routing#4-options) -for more information). This feature is extremely useful when creating pages +application. To change DocumentView for an individual route use option +`documentView` when registering the route (See [Route options](./routing#4-options) +for more information). This feature is extremely useful when creating pages that are embedded in an iframe. -If you take a closer look at the contents of the DocumentView you'll see it -consists of 3 main HTML elements (`div#page`, `script#revivalSettings` and -`script#scripts`). For documentation about the MetaManager and how it's used in -the `` tags see the [SEO & MetaManager](/docs/seo-and-meta-manager) page. +If you take a closer look at the contents of the DocumentView you'll see it +consists of 3 main HTML elements (`div#page`, `script#revivalSettings` and +`script#scripts`). For documentation about the MetaManager and how it's used in +the `` tags see the [SEO & MetaManager](./seo-and-meta-manager) page. -1. **div#page** - This is the actual point where your application **will mount** with the help of -**ViewAdapter**. The whole component tree (starting with the ViewAdapter) is +1. **div#page** - This is the actual point where your application **will mount** with the help of +**ViewAdapter**. The whole component tree (starting with the ViewAdapter) is contained in the `page` property and is embedded into the `div#page` via a React workaround `dangerouslySetInnerHTML={{ __html: this.props.page }}`. - You're completely free to change the `#page` ID of the div but IMA.js needs to know where - the mounting point is. Therefore there is a `static get masterElementId()` + You're completely free to change the `#page` ID of the div but IMA.js needs to know where + the mounting point is. Therefore there is a `static get masterElementId()` method that should return the ID as a `string`. 2. **script#revivalSettings** - Inside this `